source: trunk/base/configure @ 15733

Last change on this file since 15733 was 15732, checked in by jberry, 15 years ago

Merge configuration changes from jberry-preview-13

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 289.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenDarwin DarwinPorts 1.0.
4#
5# Report bugs to <darwinports@opendarwin.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='OpenDarwin DarwinPorts'
271PACKAGE_TARNAME='darwinports'
272PACKAGE_VERSION='1.0'
273PACKAGE_STRING='OpenDarwin DarwinPorts 1.0'
274PACKAGE_BUGREPORT='darwinports@opendarwin.org'
275
276ac_unique_file="src/pextlib1.0/Pextlib.c"
277ac_subdirs_all="$ac_subdirs_all src/programs/mtree"
278ac_default_prefix=/opt/local
279# Factoring default headers for most tests.
280ac_includes_default="\
281#include <stdio.h>
282#if HAVE_SYS_TYPES_H
283# include <sys/types.h>
284#endif
285#if HAVE_SYS_STAT_H
286# include <sys/stat.h>
287#endif
288#if STDC_HEADERS
289# include <stdlib.h>
290# include <stddef.h>
291#else
292# if HAVE_STDLIB_H
293#  include <stdlib.h>
294# endif
295#endif
296#if HAVE_STRING_H
297# if !STDC_HEADERS && HAVE_MEMORY_H
298#  include <memory.h>
299# endif
300# include <string.h>
301#endif
302#if HAVE_STRINGS_H
303# include <strings.h>
304#endif
305#if HAVE_INTTYPES_H
306# include <inttypes.h>
307#else
308# if HAVE_STDINT_H
309#  include <stdint.h>
310# endif
311#endif
312#if HAVE_UNISTD_H
313# include <unistd.h>
314#endif"
315
316ac_subdirs_all="$ac_subdirs_all src/thread2.6"
317ac_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 LN_S CVS HAVE_LAUNCHD LAUNCHCTL XCODEBUILD TAR GNUTAR TAR_CMD CFLAGS_QUICHEEATERS MTREE subdirs ENABLE_LAUNCHD_SUPPORT HAVE_FRAMEWORK_COREFOUNDATION HAVE_FRAMEWORK_SYSTEMCONFIGURATION HAVE_FRAMEWORK_IOKIT HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER REPLACEMENT_PROGS EXTRA_PROGS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP DSTMODE CPP EGREP MD5_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS 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 CURL_CONFIG CFLAGS_LIBCURL LDFLAGS_LIBCURL OUR_INCLUDED_PACKAGES 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'
318ac_subst_files=''
319
320# Initialize some variables set by options.
321ac_init_help=
322ac_init_version=false
323# The variables have the same names as the options, with
324# dashes changed to underlines.
325cache_file=/dev/null
326exec_prefix=NONE
327no_create=
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
336verbose=
337x_includes=NONE
338x_libraries=NONE
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
358ac_prev=
359for ac_option
360do
361  # If the previous option needs an argument, assign it.
362  if test -n "$ac_prev"; then
363    eval "$ac_prev=\$ac_option"
364    ac_prev=
365    continue
366  fi
367
368  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370  # Accept the important Cygnus configure options, so we can diagnose typos.
371
372  case $ac_option in
373
374  -bindir | --bindir | --bindi | --bind | --bin | --bi)
375    ac_prev=bindir ;;
376  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377    bindir=$ac_optarg ;;
378
379  -build | --build | --buil | --bui | --bu)
380    ac_prev=build_alias ;;
381  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382    build_alias=$ac_optarg ;;
383
384  -cache-file | --cache-file | --cache-fil | --cache-fi \
385  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386    ac_prev=cache_file ;;
387  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389    cache_file=$ac_optarg ;;
390
391  --config-cache | -C)
392    cache_file=config.cache ;;
393
394  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395    ac_prev=datadir ;;
396  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397  | --da=*)
398    datadir=$ac_optarg ;;
399
400  -disable-* | --disable-*)
401    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402    # Reject names that are not valid shell variable names.
403    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405   { (exit 1); exit 1; }; }
406    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407    eval "enable_$ac_feature=no" ;;
408
409  -enable-* | --enable-*)
410    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411    # Reject names that are not valid shell variable names.
412    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414   { (exit 1); exit 1; }; }
415    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416    case $ac_option in
417      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418      *) ac_optarg=yes ;;
419    esac
420    eval "enable_$ac_feature='$ac_optarg'" ;;
421
422  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424  | --exec | --exe | --ex)
425    ac_prev=exec_prefix ;;
426  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428  | --exec=* | --exe=* | --ex=*)
429    exec_prefix=$ac_optarg ;;
430
431  -gas | --gas | --ga | --g)
432    # Obsolete; use --with-gas.
433    with_gas=yes ;;
434
435  -help | --help | --hel | --he | -h)
436    ac_init_help=long ;;
437  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438    ac_init_help=recursive ;;
439  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440    ac_init_help=short ;;
441
442  -host | --host | --hos | --ho)
443    ac_prev=host_alias ;;
444  -host=* | --host=* | --hos=* | --ho=*)
445    host_alias=$ac_optarg ;;
446
447  -includedir | --includedir | --includedi | --included | --include \
448  | --includ | --inclu | --incl | --inc)
449    ac_prev=includedir ;;
450  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451  | --includ=* | --inclu=* | --incl=* | --inc=*)
452    includedir=$ac_optarg ;;
453
454  -infodir | --infodir | --infodi | --infod | --info | --inf)
455    ac_prev=infodir ;;
456  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457    infodir=$ac_optarg ;;
458
459  -libdir | --libdir | --libdi | --libd)
460    ac_prev=libdir ;;
461  -libdir=* | --libdir=* | --libdi=* | --libd=*)
462    libdir=$ac_optarg ;;
463
464  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465  | --libexe | --libex | --libe)
466    ac_prev=libexecdir ;;
467  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468  | --libexe=* | --libex=* | --libe=*)
469    libexecdir=$ac_optarg ;;
470
471  -localstatedir | --localstatedir | --localstatedi | --localstated \
472  | --localstate | --localstat | --localsta | --localst \
473  | --locals | --local | --loca | --loc | --lo)
474    ac_prev=localstatedir ;;
475  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478    localstatedir=$ac_optarg ;;
479
480  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481    ac_prev=mandir ;;
482  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483    mandir=$ac_optarg ;;
484
485  -nfp | --nfp | --nf)
486    # Obsolete; use --without-fp.
487    with_fp=no ;;
488
489  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490  | --no-cr | --no-c | -n)
491    no_create=yes ;;
492
493  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495    no_recursion=yes ;;
496
497  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499  | --oldin | --oldi | --old | --ol | --o)
500    ac_prev=oldincludedir ;;
501  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504    oldincludedir=$ac_optarg ;;
505
506  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507    ac_prev=prefix ;;
508  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509    prefix=$ac_optarg ;;
510
511  -program-prefix | --program-prefix | --program-prefi | --program-pref \
512  | --program-pre | --program-pr | --program-p)
513    ac_prev=program_prefix ;;
514  -program-prefix=* | --program-prefix=* | --program-prefi=* \
515  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516    program_prefix=$ac_optarg ;;
517
518  -program-suffix | --program-suffix | --program-suffi | --program-suff \
519  | --program-suf | --program-su | --program-s)
520    ac_prev=program_suffix ;;
521  -program-suffix=* | --program-suffix=* | --program-suffi=* \
522  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523    program_suffix=$ac_optarg ;;
524
525  -program-transform-name | --program-transform-name \
526  | --program-transform-nam | --program-transform-na \
527  | --program-transform-n | --program-transform- \
528  | --program-transform | --program-transfor \
529  | --program-transfo | --program-transf \
530  | --program-trans | --program-tran \
531  | --progr-tra | --program-tr | --program-t)
532    ac_prev=program_transform_name ;;
533  -program-transform-name=* | --program-transform-name=* \
534  | --program-transform-nam=* | --program-transform-na=* \
535  | --program-transform-n=* | --program-transform-=* \
536  | --program-transform=* | --program-transfor=* \
537  | --program-transfo=* | --program-transf=* \
538  | --program-trans=* | --program-tran=* \
539  | --progr-tra=* | --program-tr=* | --program-t=*)
540    program_transform_name=$ac_optarg ;;
541
542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543  | -silent | --silent | --silen | --sile | --sil)
544    silent=yes ;;
545
546  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547    ac_prev=sbindir ;;
548  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549  | --sbi=* | --sb=*)
550    sbindir=$ac_optarg ;;
551
552  -sharedstatedir | --sharedstatedir | --sharedstatedi \
553  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554  | --sharedst | --shareds | --shared | --share | --shar \
555  | --sha | --sh)
556    ac_prev=sharedstatedir ;;
557  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560  | --sha=* | --sh=*)
561    sharedstatedir=$ac_optarg ;;
562
563  -site | --site | --sit)
564    ac_prev=site ;;
565  -site=* | --site=* | --sit=*)
566    site=$ac_optarg ;;
567
568  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569    ac_prev=srcdir ;;
570  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571    srcdir=$ac_optarg ;;
572
573  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574  | --syscon | --sysco | --sysc | --sys | --sy)
575    ac_prev=sysconfdir ;;
576  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578    sysconfdir=$ac_optarg ;;
579
580  -target | --target | --targe | --targ | --tar | --ta | --t)
581    ac_prev=target_alias ;;
582  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583    target_alias=$ac_optarg ;;
584
585  -v | -verbose | --verbose | --verbos | --verbo | --verb)
586    verbose=yes ;;
587
588  -version | --version | --versio | --versi | --vers | -V)
589    ac_init_version=: ;;
590
591  -with-* | --with-*)
592    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593    # Reject names that are not valid shell variable names.
594    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595      { echo "$as_me: error: invalid package name: $ac_package" >&2
596   { (exit 1); exit 1; }; }
597    ac_package=`echo $ac_package| sed 's/-/_/g'`
598    case $ac_option in
599      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600      *) ac_optarg=yes ;;
601    esac
602    eval "with_$ac_package='$ac_optarg'" ;;
603
604  -without-* | --without-*)
605    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606    # Reject names that are not valid shell variable names.
607    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608      { echo "$as_me: error: invalid package name: $ac_package" >&2
609   { (exit 1); exit 1; }; }
610    ac_package=`echo $ac_package | sed 's/-/_/g'`
611    eval "with_$ac_package=no" ;;
612
613  --x)
614    # Obsolete; use --with-x.
615    with_x=yes ;;
616
617  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618  | --x-incl | --x-inc | --x-in | --x-i)
619    ac_prev=x_includes ;;
620  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622    x_includes=$ac_optarg ;;
623
624  -x-libraries | --x-libraries | --x-librarie | --x-librari \
625  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626    ac_prev=x_libraries ;;
627  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629    x_libraries=$ac_optarg ;;
630
631  -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633   { (exit 1); exit 1; }; }
634    ;;
635
636  *=*)
637    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638    # Reject names that are not valid shell variable names.
639    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641   { (exit 1); exit 1; }; }
642    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643    eval "$ac_envvar='$ac_optarg'"
644    export $ac_envvar ;;
645
646  *)
647    # FIXME: should be removed in autoconf 3.0.
648    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652    ;;
653
654  esac
655done
656
657if test -n "$ac_prev"; then
658  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659  { echo "$as_me: error: missing argument to $ac_option" >&2
660   { (exit 1); exit 1; }; }
661fi
662
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666  eval ac_val=$`echo $ac_var`
667  case $ac_val in
668    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670   { (exit 1); exit 1; }; };;
671  esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676              localstatedir libdir includedir oldincludedir infodir mandir
677do
678  eval ac_val=$`echo $ac_var`
679  case $ac_val in
680    [\\/$]* | ?:[\\/]* ) ;;
681    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682   { (exit 1); exit 1; }; };;
683  esac
684done
685
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695  if test "x$build_alias" = x; then
696    cross_compiling=maybe
697    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698    If a cross compiler is detected then cross compile mode will be used." >&2
699  elif test "x$build_alias" != "x$host_alias"; then
700    cross_compiling=yes
701  fi
702fi
703
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
708
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712  ac_srcdir_defaulted=yes
713  # Try the directory containing this script, then its parent.
714  ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716         X"$0" : 'X\(//\)[^/]' \| \
717         X"$0" : 'X\(//\)$' \| \
718         X"$0" : 'X\(/\)' \| \
719         .     : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723          /^X\(\/\/\)$/{ s//\1/; q; }
724          /^X\(\/\).*/{ s//\1/; q; }
725          s/.*/./; q'`
726  srcdir=$ac_confdir
727  if test ! -r $srcdir/$ac_unique_file; then
728    srcdir=..
729  fi
730else
731  ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734  if test "$ac_srcdir_defaulted" = yes; then
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736   { (exit 1); exit 1; }; }
737  else
738    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739   { (exit 1); exit 1; }; }
740  fi
741fi
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744   { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
778
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783  # Omit some internal or obsolete options to make the list less imposing.
784  # This message is too long to be a string in the A/UX 3.1 sh.
785  cat <<_ACEOF
786\`configure' configures OpenDarwin DarwinPorts 1.0 to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE.  See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796  -h, --help              display this help and exit
797      --help=short        display options specific to this package
798      --help=recursive    display the short help of all the included packages
799  -V, --version           display version information and exit
800  -q, --quiet, --silent   do not print \`checking...' messages
801      --cache-file=FILE   cache test results in FILE [disabled]
802  -C, --config-cache      alias for \`--cache-file=config.cache'
803  -n, --no-create         do not create output files
804      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808  cat <<_ACEOF
809Installation directories:
810  --prefix=PREFIX         install architecture-independent files in PREFIX
811                          [$ac_default_prefix]
812  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                          [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823  --bindir=DIR           user executables [EPREFIX/bin]
824  --sbindir=DIR          system admin executables [EPREFIX/sbin]
825  --libexecdir=DIR       program executables [EPREFIX/libexec]
826  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830  --libdir=DIR           object code libraries [EPREFIX/lib]
831  --includedir=DIR       C header files [PREFIX/include]
832  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833  --infodir=DIR          info documentation [PREFIX/info]
834  --mandir=DIR           man documentation [PREFIX/man]
835_ACEOF
836
837  cat <<\_ACEOF
838
839X features:
840  --x-includes=DIR    X include files are in DIR
841  --x-libraries=DIR   X library files are in DIR
842
843System types:
844  --build=BUILD     configure for building on BUILD [guessed]
845  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
846  --target=TARGET   configure for building compilers for TARGET [HOST]
847_ACEOF
848fi
849
850if test -n "$ac_init_help"; then
851  case $ac_init_help in
852     short | recursive ) echo "Configuration of OpenDarwin DarwinPorts 1.0:";;
853   esac
854  cat <<\_ACEOF
855
856Optional Features:
857  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859  --disable-launchd-support
860                          disable support for launchd startupitems
861  --enable-shared         build and link with shared libraries --enable-shared
862
863Optional Packages:
864  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866  --with-dports-dir=DIR   Specify alternate dports directory
867  --with-install-user=USER
868                          Specify user ownership of installed files
869  --with-install-group=GROUP
870                          Specify group ownership of installed files
871  --with-directory-mode=MODE
872                          Specify directory mode of installed directories
873  --with-x                use the X Window System
874  --with-tcl              directory containing tcl configuration (tclConfig.sh)
875  --with-tclinclude       directory containing the public Tcl header files.
876  --with-tclpackage       Tcl package installation directory.
877  --with-curlprefix       base directory for the cURL install '/usr', '/usr/local',...
878  --with-included-tclthread install included Thread package.
879
880Some influential environment variables:
881  CC          C compiler command
882  CFLAGS      C compiler flags
883  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884              nonstandard directory <lib dir>
885  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886              headers in a nonstandard directory <include dir>
887  CPP         C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892Report bugs to <darwinports@opendarwin.org>.
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897  # If there are subdirs, report their specific --help.
898  ac_popdir=`pwd`
899  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900    test -d $ac_dir || continue
901    ac_builddir=.
902
903if test "$ac_dir" != .; then
904  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905  # A "../" for each directory in $ac_dir_suffix.
906  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908  ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912  .)  # No --srcdir option.  We are building in place.
913    ac_srcdir=.
914    if test -z "$ac_top_builddir"; then
915       ac_top_srcdir=.
916    else
917       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918    fi ;;
919  [\\/]* | ?:[\\/]* )  # Absolute path.
920    ac_srcdir=$srcdir$ac_dir_suffix;
921    ac_top_srcdir=$srcdir ;;
922  *) # Relative path.
923    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924    ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932  case "$ac_dir" in
933  .) ac_abs_builddir=`pwd`;;
934  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935  *) ac_abs_builddir=`pwd`/"$ac_dir";;
936  esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941  case ${ac_top_builddir}. in
942  .) ac_abs_top_builddir=$ac_abs_builddir;;
943  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945  esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950  case $ac_srcdir in
951  .) ac_abs_srcdir=$ac_abs_builddir;;
952  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959  case $ac_top_srcdir in
960  .) ac_abs_top_srcdir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963  esac;;
964esac
965
966    cd $ac_dir
967    # Check for guested configure; otherwise get Cygnus style configure.
968    if test -f $ac_srcdir/configure.gnu; then
969      echo
970      $SHELL $ac_srcdir/configure.gnu  --help=recursive
971    elif test -f $ac_srcdir/configure; then
972      echo
973      $SHELL $ac_srcdir/configure  --help=recursive
974    elif test -f $ac_srcdir/configure.ac ||
975           test -f $ac_srcdir/configure.in; then
976      echo
977      $ac_configure --help
978    else
979      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980    fi
981    cd $ac_popdir
982  done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987  cat <<\_ACEOF
988OpenDarwin DarwinPorts configure 1.0
989generated by GNU Autoconf 2.59
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995  exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by OpenDarwin DarwinPorts $as_me 1.0, which was
1003generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005  $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036  IFS=$as_save_IFS
1037  test -z "$as_dir" && as_dir=.
1038  echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065  for ac_arg
1066  do
1067    case $ac_arg in
1068    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070    | -silent | --silent | --silen | --sile | --sil)
1071      continue ;;
1072    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074    esac
1075    case $ac_pass in
1076    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077    2)
1078      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079      if test $ac_must_keep_next = true; then
1080        ac_must_keep_next=false # Got value, back to normal.
1081      else
1082        case $ac_arg in
1083          *=* | --config-cache | -C | -disable-* | --disable-* \
1084          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086          | -with-* | --with-* | -without-* | --without-* | --x)
1087            case "$ac_configure_args0 " in
1088              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089            esac
1090            ;;
1091          -* ) ac_must_keep_next=true ;;
1092        esac
1093      fi
1094      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095      # Get rid of the leading space.
1096      ac_sep=" "
1097      ;;
1098    esac
1099  done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log.  We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110  # Save into config.log some information that might help in debugging.
1111  {
1112    echo
1113
1114    cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119    echo
1120    # The following way of writing the cache mishandles newlines in values,
1121{
1122  (set) 2>&1 |
1123    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124    *ac_space=\ *)
1125      sed -n \
1126        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128      ;;
1129    *)
1130      sed -n \
1131        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132      ;;
1133    esac;
1134}
1135    echo
1136
1137    cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142    echo
1143    for ac_var in $ac_subst_vars
1144    do
1145      eval ac_val=$`echo $ac_var`
1146      echo "$ac_var='"'"'$ac_val'"'"'"
1147    done | sort
1148    echo
1149
1150    if test -n "$ac_subst_files"; then
1151      cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156      echo
1157      for ac_var in $ac_subst_files
1158      do
1159        eval ac_val=$`echo $ac_var`
1160        echo "$ac_var='"'"'$ac_val'"'"'"
1161      done | sort
1162      echo
1163    fi
1164
1165    if test -s confdefs.h; then
1166      cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171      echo
1172      sed "/^$/d" confdefs.h | sort
1173      echo
1174    fi
1175    test "$ac_signal" != 0 &&
1176      echo "$as_me: caught signal $ac_signal"
1177    echo "$as_me: exit $exit_status"
1178  } >&5
1179  rm -f core *.core &&
1180  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181    exit $exit_status
1182     ' 0
1183for ac_signal in 1 2 13 15; do
1184  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223  if test "x$prefix" != xNONE; then
1224    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225  else
1226    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227  fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230  if test -r "$ac_site_file"; then
1231    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233    sed 's/^/| /' "$ac_site_file" >&5
1234    . "$ac_site_file"
1235  fi
1236done
1237
1238if test -r "$cache_file"; then
1239  # Some versions of bash will fail to source /dev/null (special
1240  # files actually), so we avoid doing that.
1241  if test -f "$cache_file"; then
1242    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244    case $cache_file in
1245      [\\/]* | ?:[\\/]* ) . $cache_file;;
1246      *)                      . ./$cache_file;;
1247    esac
1248  fi
1249else
1250  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252  >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261  eval ac_new_set=\$ac_env_${ac_var}_set
1262  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263  eval ac_new_val="\$ac_env_${ac_var}_value"
1264  case $ac_old_set,$ac_new_set in
1265    set,)
1266      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268      ac_cache_corrupted=: ;;
1269    ,set)
1270      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272      ac_cache_corrupted=: ;;
1273    ,);;
1274    *)
1275      if test "x$ac_old_val" != "x$ac_new_val"; then
1276        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279echo "$as_me:   former value:  $ac_old_val" >&2;}
1280        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281echo "$as_me:   current value: $ac_new_val" >&2;}
1282        ac_cache_corrupted=:
1283      fi;;
1284  esac
1285  # Pass precious variables to config.status.
1286  if test "$ac_new_set" = set; then
1287    case $ac_new_val in
1288    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290    *) ac_arg=$ac_var=$ac_new_val ;;
1291    esac
1292    case " $ac_configure_args " in
1293      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295    esac
1296  fi
1297done
1298if $ac_cache_corrupted; then
1299  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303   { (exit 1); exit 1; }; }
1304fi
1305
1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339          ac_config_headers="$ac_config_headers src/config.h"
1340
1341ac_aux_dir=
1342for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1343  if test -f $ac_dir/install-sh; then
1344    ac_aux_dir=$ac_dir
1345    ac_install_sh="$ac_aux_dir/install-sh -c"
1346    break
1347  elif test -f $ac_dir/install.sh; then
1348    ac_aux_dir=$ac_dir
1349    ac_install_sh="$ac_aux_dir/install.sh -c"
1350    break
1351  elif test -f $ac_dir/shtool; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/shtool install -c"
1354    break
1355  fi
1356done
1357if test -z "$ac_aux_dir"; then
1358  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1359echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1360   { (exit 1); exit 1; }; }
1361fi
1362ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366# Make sure we can run config.sub.
1367$ac_config_sub sun4 >/dev/null 2>&1 ||
1368  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1369echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1370   { (exit 1); exit 1; }; }
1371
1372echo "$as_me:$LINENO: checking build system type" >&5
1373echo $ECHO_N "checking build system type... $ECHO_C" >&6
1374if test "${ac_cv_build+set}" = set; then
1375  echo $ECHO_N "(cached) $ECHO_C" >&6
1376else
1377  ac_cv_build_alias=$build_alias
1378test -z "$ac_cv_build_alias" &&
1379  ac_cv_build_alias=`$ac_config_guess`
1380test -z "$ac_cv_build_alias" &&
1381  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1382echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1383   { (exit 1); exit 1; }; }
1384ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1385  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1386echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1387   { (exit 1); exit 1; }; }
1388
1389fi
1390echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1391echo "${ECHO_T}$ac_cv_build" >&6
1392build=$ac_cv_build
1393build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396
1397
1398echo "$as_me:$LINENO: checking host system type" >&5
1399echo $ECHO_N "checking host system type... $ECHO_C" >&6
1400if test "${ac_cv_host+set}" = set; then
1401  echo $ECHO_N "(cached) $ECHO_C" >&6
1402else
1403  ac_cv_host_alias=$host_alias
1404test -z "$ac_cv_host_alias" &&
1405  ac_cv_host_alias=$ac_cv_build_alias
1406ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1407  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1408echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1409   { (exit 1); exit 1; }; }
1410
1411fi
1412echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1413echo "${ECHO_T}$ac_cv_host" >&6
1414host=$ac_cv_host
1415host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420echo "$as_me:$LINENO: checking target system type" >&5
1421echo $ECHO_N "checking target system type... $ECHO_C" >&6
1422if test "${ac_cv_target+set}" = set; then
1423  echo $ECHO_N "(cached) $ECHO_C" >&6
1424else
1425  ac_cv_target_alias=$target_alias
1426test "x$ac_cv_target_alias" = "x" &&
1427  ac_cv_target_alias=$ac_cv_host_alias
1428ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1429  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1430echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1431   { (exit 1); exit 1; }; }
1432
1433fi
1434echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1435echo "${ECHO_T}$ac_cv_target" >&6
1436target=$ac_cv_target
1437target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440
1441
1442# The aliases save the names the user supplied, while $host etc.
1443# will get canonicalized.
1444test -n "$target_alias" &&
1445  test "$program_prefix$program_suffix$program_transform_name" = \
1446    NONENONEs,x,x, &&
1447  program_prefix=${target_alias}-
1448
1449# Check user PATH for DP paths, and remove as necessary.
1450
1451        oldprefix=$prefix
1452        if test "x$prefix" = "xNONE" ; then
1453                prefix=$ac_default_prefix
1454        fi
1455        oldPATH=$PATH
1456        newPATH=
1457        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458        for as_dir in $oldPATH
1459        do
1460                IFS=$as_save_IFS
1461                if test "x$as_dir" != "x$prefix/bin" &&
1462                        test "x$as_dir" != "x$prefix/sbin"; then
1463                        if test -z "$newPATH"; then
1464                                newPATH=$as_dir
1465                        else
1466                                newPATH=$newPATH$PATH_SEPARATOR$as_dir
1467                        fi
1468                fi
1469        done
1470        PATH=$newPATH; export PATH
1471        prefix=$oldprefix
1472
1473
1474# Checks for programs.
1475ac_ext=c
1476ac_cpp='$CPP $CPPFLAGS'
1477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480if test -n "$ac_tool_prefix"; then
1481  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1482set dummy ${ac_tool_prefix}gcc; ac_word=$2
1483echo "$as_me:$LINENO: checking for $ac_word" >&5
1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485if test "${ac_cv_prog_CC+set}" = set; then
1486  echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488  if test -n "$CC"; then
1489  ac_cv_prog_CC="$CC" # Let the user override the test.
1490else
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494  IFS=$as_save_IFS
1495  test -z "$as_dir" && as_dir=.
1496  for ac_exec_ext in '' $ac_executable_extensions; do
1497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500    break 2
1501  fi
1502done
1503done
1504
1505fi
1506fi
1507CC=$ac_cv_prog_CC
1508if test -n "$CC"; then
1509  echo "$as_me:$LINENO: result: $CC" >&5
1510echo "${ECHO_T}$CC" >&6
1511else
1512  echo "$as_me:$LINENO: result: no" >&5
1513echo "${ECHO_T}no" >&6
1514fi
1515
1516fi
1517if test -z "$ac_cv_prog_CC"; then
1518  ac_ct_CC=$CC
1519  # Extract the first word of "gcc", so it can be a program name with args.
1520set dummy gcc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524  echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526  if test -n "$ac_ct_CC"; then
1527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532  IFS=$as_save_IFS
1533  test -z "$as_dir" && as_dir=.
1534  for ac_exec_ext in '' $ac_executable_extensions; do
1535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536    ac_cv_prog_ac_ct_CC="gcc"
1537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538    break 2
1539  fi
1540done
1541done
1542
1543fi
1544fi
1545ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546if test -n "$ac_ct_CC"; then
1547  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548echo "${ECHO_T}$ac_ct_CC" >&6
1549else
1550  echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554  CC=$ac_ct_CC
1555else
1556  CC="$ac_cv_prog_CC"
1557fi
1558
1559if test -z "$CC"; then
1560  if test -n "$ac_tool_prefix"; then
1561  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1562set dummy ${ac_tool_prefix}cc; ac_word=$2
1563echo "$as_me:$LINENO: checking for $ac_word" >&5
1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565if test "${ac_cv_prog_CC+set}" = set; then
1566  echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568  if test -n "$CC"; then
1569  ac_cv_prog_CC="$CC" # Let the user override the test.
1570else
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574  IFS=$as_save_IFS
1575  test -z "$as_dir" && as_dir=.
1576  for ac_exec_ext in '' $ac_executable_extensions; do
1577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578    ac_cv_prog_CC="${ac_tool_prefix}cc"
1579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580    break 2
1581  fi
1582done
1583done
1584
1585fi
1586fi
1587CC=$ac_cv_prog_CC
1588if test -n "$CC"; then
1589  echo "$as_me:$LINENO: result: $CC" >&5
1590echo "${ECHO_T}$CC" >&6
1591else
1592  echo "$as_me:$LINENO: result: no" >&5
1593echo "${ECHO_T}no" >&6
1594fi
1595
1596fi
1597if test -z "$ac_cv_prog_CC"; then
1598  ac_ct_CC=$CC
1599  # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604  echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606  if test -n "$ac_ct_CC"; then
1607  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612  IFS=$as_save_IFS
1613  test -z "$as_dir" && as_dir=.
1614  for ac_exec_ext in '' $ac_executable_extensions; do
1615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616    ac_cv_prog_ac_ct_CC="cc"
1617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618    break 2
1619  fi
1620done
1621done
1622
1623fi
1624fi
1625ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626if test -n "$ac_ct_CC"; then
1627  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628echo "${ECHO_T}$ac_ct_CC" >&6
1629else
1630  echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634  CC=$ac_ct_CC
1635else
1636  CC="$ac_cv_prog_CC"
1637fi
1638
1639fi
1640if test -z "$CC"; then
1641  # Extract the first word of "cc", so it can be a program name with args.
1642set dummy cc; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$CC"; then
1649  ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
1651  ac_prog_rejected=no
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655  IFS=$as_save_IFS
1656  test -z "$as_dir" && as_dir=.
1657  for ac_exec_ext in '' $ac_executable_extensions; do
1658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1660       ac_prog_rejected=yes
1661       continue
1662     fi
1663    ac_cv_prog_CC="cc"
1664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665    break 2
1666  fi
1667done
1668done
1669
1670if test $ac_prog_rejected = yes; then
1671  # We found a bogon in the path, so make sure we never use it.
1672  set dummy $ac_cv_prog_CC
1673  shift
1674  if test $# != 0; then
1675    # We chose a different compiler from the bogus one.
1676    # However, it has the same basename, so the bogon will be chosen
1677    # first if we set CC to just the basename; use the full file name.
1678    shift
1679    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1680  fi
1681fi
1682fi
1683fi
1684CC=$ac_cv_prog_CC
1685if test -n "$CC"; then
1686  echo "$as_me:$LINENO: result: $CC" >&5
1687echo "${ECHO_T}$CC" >&6
1688else
1689  echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
1691fi
1692
1693fi
1694if test -z "$CC"; then
1695  if test -n "$ac_tool_prefix"; then
1696  for ac_prog in cl
1697  do
1698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_CC+set}" = set; then
1703  echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705  if test -n "$CC"; then
1706  ac_cv_prog_CC="$CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711  IFS=$as_save_IFS
1712  test -z "$as_dir" && as_dir=.
1713  for ac_exec_ext in '' $ac_executable_extensions; do
1714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717    break 2
1718  fi
1719done
1720done
1721
1722fi
1723fi
1724CC=$ac_cv_prog_CC
1725if test -n "$CC"; then
1726  echo "$as_me:$LINENO: result: $CC" >&5
1727echo "${ECHO_T}$CC" >&6
1728else
1729  echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733    test -n "$CC" && break
1734  done
1735fi
1736if test -z "$CC"; then
1737  ac_ct_CC=$CC
1738  for ac_prog in cl
1739do
1740  # Extract the first word of "$ac_prog", so it can be a program name with args.
1741set dummy $ac_prog; ac_word=$2
1742echo "$as_me:$LINENO: checking for $ac_word" >&5
1743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745  echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747  if test -n "$ac_ct_CC"; then
1748  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749else
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753  IFS=$as_save_IFS
1754  test -z "$as_dir" && as_dir=.
1755  for ac_exec_ext in '' $ac_executable_extensions; do
1756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757    ac_cv_prog_ac_ct_CC="$ac_prog"
1758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759    break 2
1760  fi
1761done
1762done
1763
1764fi
1765fi
1766ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767if test -n "$ac_ct_CC"; then
1768  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769echo "${ECHO_T}$ac_ct_CC" >&6
1770else
1771  echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
1773fi
1774
1775  test -n "$ac_ct_CC" && break
1776done
1777
1778  CC=$ac_ct_CC
1779fi
1780
1781fi
1782
1783
1784test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1785See \`config.log' for more details." >&5
1786echo "$as_me: error: no acceptable C compiler found in \$PATH
1787See \`config.log' for more details." >&2;}
1788   { (exit 1); exit 1; }; }
1789
1790# Provide some information about the compiler.
1791echo "$as_me:$LINENO:" \
1792     "checking for C compiler version" >&5
1793ac_compiler=`set X $ac_compile; echo $2`
1794{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1795  (eval $ac_compiler --version </dev/null >&5) 2>&5
1796  ac_status=$?
1797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798  (exit $ac_status); }
1799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1800  (eval $ac_compiler -v </dev/null >&5) 2>&5
1801  ac_status=$?
1802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803  (exit $ac_status); }
1804{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1805  (eval $ac_compiler -V </dev/null >&5) 2>&5
1806  ac_status=$?
1807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808  (exit $ac_status); }
1809
1810cat >conftest.$ac_ext <<_ACEOF
1811/* confdefs.h.  */
1812_ACEOF
1813cat confdefs.h >>conftest.$ac_ext
1814cat >>conftest.$ac_ext <<_ACEOF
1815/* end confdefs.h.  */
1816
1817int
1818main ()
1819{
1820
1821  ;
1822  return 0;
1823}
1824_ACEOF
1825ac_clean_files_save=$ac_clean_files
1826ac_clean_files="$ac_clean_files a.out a.exe b.out"
1827# Try to create an executable without -o first, disregard a.out.
1828# It will help us diagnose broken compilers, and finding out an intuition
1829# of exeext.
1830echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1831echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1832ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1833if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1834  (eval $ac_link_default) 2>&5
1835  ac_status=$?
1836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837  (exit $ac_status); }; then
1838  # Find the output, starting from the most likely.  This scheme is
1839# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840# resort.
1841
1842# Be careful to initialize this variable, since it used to be cached.
1843# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1844ac_cv_exeext=
1845# b.out is created by i960 compilers.
1846for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1847do
1848  test -f "$ac_file" || continue
1849  case $ac_file in
1850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851        ;;
1852    conftest.$ac_ext )
1853        # This is the source file.
1854        ;;
1855    [ab].out )
1856        # We found the default executable, but exeext='' is most
1857        # certainly right.
1858        break;;
1859    *.* )
1860        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861        # FIXME: I believe we export ac_cv_exeext for Libtool,
1862        # but it would be cool to find out if it's true.  Does anybody
1863        # maintain Libtool? --akim.
1864        export ac_cv_exeext
1865        break;;
1866    * )
1867        break;;
1868  esac
1869done
1870else
1871  echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: C compiler cannot create executables
1877See \`config.log' for more details." >&2;}
1878   { (exit 77); exit 77; }; }
1879fi
1880
1881ac_exeext=$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_file" >&5
1883echo "${ECHO_T}$ac_file" >&6
1884
1885# Check the compiler produces executables we can run.  If not, either
1886# the compiler is broken, or we cross compile.
1887echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1888echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1889# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1890# If not cross compiling, check that we can run a simple program.
1891if test "$cross_compiling" != yes; then
1892  if { ac_try='./$ac_file'
1893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894  (eval $ac_try) 2>&5
1895  ac_status=$?
1896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897  (exit $ac_status); }; }; then
1898    cross_compiling=no
1899  else
1900    if test "$cross_compiling" = maybe; then
1901        cross_compiling=yes
1902    else
1903        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1904If you meant to cross compile, use \`--host'.
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot run C compiled programs.
1907If you meant to cross compile, use \`--host'.
1908See \`config.log' for more details." >&2;}
1909   { (exit 1); exit 1; }; }
1910    fi
1911  fi
1912fi
1913echo "$as_me:$LINENO: result: yes" >&5
1914echo "${ECHO_T}yes" >&6
1915
1916rm -f a.out a.exe conftest$ac_cv_exeext b.out
1917ac_clean_files=$ac_clean_files_save
1918# Check the compiler produces executables we can run.  If not, either
1919# the compiler is broken, or we cross compile.
1920echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1922echo "$as_me:$LINENO: result: $cross_compiling" >&5
1923echo "${ECHO_T}$cross_compiling" >&6
1924
1925echo "$as_me:$LINENO: checking for suffix of executables" >&5
1926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1928  (eval $ac_link) 2>&5
1929  ac_status=$?
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); }; then
1932  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1933# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1934# work properly (i.e., refer to `conftest.exe'), while it won't with
1935# `rm'.
1936for ac_file in conftest.exe conftest conftest.*; do
1937  test -f "$ac_file" || continue
1938  case $ac_file in
1939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1940    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941          export ac_cv_exeext
1942          break;;
1943    * ) break;;
1944  esac
1945done
1946else
1947  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1948See \`config.log' for more details." >&5
1949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1950See \`config.log' for more details." >&2;}
1951   { (exit 1); exit 1; }; }
1952fi
1953
1954rm -f conftest$ac_cv_exeext
1955echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1956echo "${ECHO_T}$ac_cv_exeext" >&6
1957
1958rm -f conftest.$ac_ext
1959EXEEXT=$ac_cv_exeext
1960ac_exeext=$EXEEXT
1961echo "$as_me:$LINENO: checking for suffix of object files" >&5
1962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1963if test "${ac_cv_objext+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  cat >conftest.$ac_ext <<_ACEOF
1967/* confdefs.h.  */
1968_ACEOF
1969cat confdefs.h >>conftest.$ac_ext
1970cat >>conftest.$ac_ext <<_ACEOF
1971/* end confdefs.h.  */
1972
1973int
1974main ()
1975{
1976
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981rm -f conftest.o conftest.obj
1982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1983  (eval $ac_compile) 2>&5
1984  ac_status=$?
1985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986  (exit $ac_status); }; then
1987  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1988  case $ac_file in
1989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1990    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1991       break;;
1992  esac
1993done
1994else
1995  echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: cannot compute suffix of object files: cannot compile
2001See \`config.log' for more details." >&2;}
2002   { (exit 1); exit 1; }; }
2003fi
2004
2005rm -f conftest.$ac_cv_objext conftest.$ac_ext
2006fi
2007echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2008echo "${ECHO_T}$ac_cv_objext" >&6
2009OBJEXT=$ac_cv_objext
2010ac_objext=$OBJEXT
2011echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2012echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2013if test "${ac_cv_c_compiler_gnu+set}" = set; then
2014  echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016  cat >conftest.$ac_ext <<_ACEOF
2017/* confdefs.h.  */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h.  */
2022
2023int
2024main ()
2025{
2026#ifndef __GNUC__
2027       choke me
2028#endif
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034rm -f conftest.$ac_objext
2035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036  (eval $ac_compile) 2>conftest.er1
2037  ac_status=$?
2038  grep -v '^ *+' conftest.er1 >conftest.err
2039  rm -f conftest.er1
2040  cat conftest.err >&5
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); } &&
2043         { ac_try='test -z "$ac_c_werror_flag"
2044                         || test ! -s conftest.err'
2045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046  (eval $ac_try) 2>&5
2047  ac_status=$?
2048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049  (exit $ac_status); }; } &&
2050         { ac_try='test -s conftest.$ac_objext'
2051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }; }; then
2056  ac_compiler_gnu=yes
2057else
2058  echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061ac_compiler_gnu=no
2062fi
2063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2064ac_cv_c_compiler_gnu=$ac_compiler_gnu
2065
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069GCC=`test $ac_compiler_gnu = yes && echo yes`
2070ac_test_CFLAGS=${CFLAGS+set}
2071ac_save_CFLAGS=$CFLAGS
2072CFLAGS="-g"
2073echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075if test "${ac_cv_prog_cc_g+set}" = set; then
2076  echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078  cat >conftest.$ac_ext <<_ACEOF
2079/* confdefs.h.  */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h.  */
2084
2085int
2086main ()
2087{
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
2094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095  (eval $ac_compile) 2>conftest.er1
2096  ac_status=$?
2097  grep -v '^ *+' conftest.er1 >conftest.err
2098  rm -f conftest.er1
2099  cat conftest.err >&5
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); } &&
2102         { ac_try='test -z "$ac_c_werror_flag"
2103                         || test ! -s conftest.err'
2104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105  (eval $ac_try) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; } &&
2109         { ac_try='test -s conftest.$ac_objext'
2110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111  (eval $ac_try) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; }; then
2115  ac_cv_prog_cc_g=yes
2116else
2117  echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120ac_cv_prog_cc_g=no
2121fi
2122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2125echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2126if test "$ac_test_CFLAGS" = set; then
2127  CFLAGS=$ac_save_CFLAGS
2128elif test $ac_cv_prog_cc_g = yes; then
2129  if test "$GCC" = yes; then
2130    CFLAGS="-g -O2"
2131  else
2132    CFLAGS="-g"
2133  fi
2134else
2135  if test "$GCC" = yes; then
2136    CFLAGS="-O2"
2137  else
2138    CFLAGS=
2139  fi
2140fi
2141echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2142echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2143if test "${ac_cv_prog_cc_stdc+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  ac_cv_prog_cc_stdc=no
2147ac_save_CC=$CC
2148cat >conftest.$ac_ext <<_ACEOF
2149/* confdefs.h.  */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h.  */
2154#include <stdarg.h>
2155#include <stdio.h>
2156#include <sys/types.h>
2157#include <sys/stat.h>
2158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2159struct buf { int x; };
2160FILE * (*rcsopen) (struct buf *, struct stat *, int);
2161static char *e (p, i)
2162     char **p;
2163     int i;
2164{
2165  return p[i];
2166}
2167static char *f (char * (*g) (char **, int), char **p, ...)
2168{
2169  char *s;
2170  va_list v;
2171  va_start (v,p);
2172  s = g (p, va_arg (v,int));
2173  va_end (v);
2174  return s;
2175}
2176
2177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2178   function prototypes and stuff, but not '\xHH' hex character constants.
2179   These don't provoke an error unfortunately, instead are silently treated
2180   as 'x'.  The following induces an error, until -std1 is added to get
2181   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2182   array size at least.  It's necessary to write '\x00'==0 to get something
2183   that's true only with -std1.  */
2184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2185
2186int test (int i, double x);
2187struct s1 {int (*f) (int a);};
2188struct s2 {int (*f) (double a);};
2189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2190int argc;
2191char **argv;
2192int
2193main ()
2194{
2195return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200# Don't try gcc -ansi; that turns off useful extensions and
2201# breaks some systems' header files.
2202# AIX                   -qlanglvl=ansi
2203# Ultrix and OSF/1      -std1
2204# HP-UX 10.20 and later -Ae
2205# HP-UX older versions  -Aa -D_HPUX_SOURCE
2206# SVR4                  -Xc -D__EXTENSIONS__
2207for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2208do
2209  CC="$ac_save_CC $ac_arg"
2210  rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212  (eval $ac_compile) 2>conftest.er1
2213  ac_status=$?
2214  grep -v '^ *+' conftest.er1 >conftest.err
2215  rm -f conftest.er1
2216  cat conftest.err >&5
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); } &&
2219         { ac_try='test -z "$ac_c_werror_flag"
2220                         || test ! -s conftest.err'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; } &&
2226         { ac_try='test -s conftest.$ac_objext'
2227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228  (eval $ac_try) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; }; then
2232  ac_cv_prog_cc_stdc=$ac_arg
2233break
2234else
2235  echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238fi
2239rm -f conftest.err conftest.$ac_objext
2240done
2241rm -f conftest.$ac_ext conftest.$ac_objext
2242CC=$ac_save_CC
2243
2244fi
2245
2246case "x$ac_cv_prog_cc_stdc" in
2247  x|xno)
2248    echo "$as_me:$LINENO: result: none needed" >&5
2249echo "${ECHO_T}none needed" >&6 ;;
2250  *)
2251    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2252echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2253    CC="$CC $ac_cv_prog_cc_stdc" ;;
2254esac
2255
2256# Some people use a C++ compiler to compile C.  Since we use `exit',
2257# in C++ we need to declare it.  In case someone uses the same compiler
2258# for both compiling C and C++ we need to have the C++ compiler decide
2259# the declaration of exit, since it's the most demanding environment.
2260cat >conftest.$ac_ext <<_ACEOF
2261#ifndef __cplusplus
2262  choke me
2263#endif
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267  (eval $ac_compile) 2>conftest.er1
2268  ac_status=$?
2269  grep -v '^ *+' conftest.er1 >conftest.err
2270  rm -f conftest.er1
2271  cat conftest.err >&5
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); } &&
2274         { ac_try='test -z "$ac_c_werror_flag"
2275                         || test ! -s conftest.err'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; } &&
2281         { ac_try='test -s conftest.$ac_objext'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287  for ac_declaration in \
2288   '' \
2289   'extern "C" void std::exit (int) throw (); using std::exit;' \
2290   'extern "C" void std::exit (int); using std::exit;' \
2291   'extern "C" void exit (int) throw ();' \
2292   'extern "C" void exit (int);' \
2293   'void exit (int);'
2294do
2295  cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301$ac_declaration
2302#include <stdlib.h>
2303int
2304main ()
2305{
2306exit (42);
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>conftest.er1
2314  ac_status=$?
2315  grep -v '^ *+' conftest.er1 >conftest.err
2316  rm -f conftest.er1
2317  cat conftest.err >&5
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -z "$ac_c_werror_flag"
2321                         || test ! -s conftest.err'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; } &&
2327         { ac_try='test -s conftest.$ac_objext'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; }; then
2333  :
2334else
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338continue
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341  cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347$ac_declaration
2348int
2349main ()
2350{
2351exit (42);
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358  (eval $ac_compile) 2>conftest.er1
2359  ac_status=$?
2360  grep -v '^ *+' conftest.er1 >conftest.err
2361  rm -f conftest.er1
2362  cat conftest.err >&5
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); } &&
2365         { ac_try='test -z "$ac_c_werror_flag"
2366                         || test ! -s conftest.err'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; } &&
2372         { ac_try='test -s conftest.$ac_objext'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; }; then
2378  break
2379else
2380  echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385done
2386rm -f conftest*
2387if test -n "$ac_declaration"; then
2388  echo '#ifdef __cplusplus' >>confdefs.h
2389  echo $ac_declaration      >>confdefs.h
2390  echo '#endif'             >>confdefs.h
2391fi
2392
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399ac_ext=c
2400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404
2405# Find a good install program.  We prefer a C program (faster),
2406# so one script is as good as another.  But avoid the broken or
2407# incompatible versions:
2408# SysV /etc/install, /usr/sbin/install
2409# SunOS /usr/etc/install
2410# IRIX /sbin/install
2411# AIX /bin/install
2412# AmigaOS /C/install, which installs bootblocks on floppy discs
2413# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2414# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2415# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2416# OS/2's system install, which has a completely different semantic
2417# ./install, which can be erroneously created by make from ./install.sh.
2418echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2420if test -z "$INSTALL"; then
2421if test "${ac_cv_path_install+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429  # Account for people who put trailing slashes in PATH elements.
2430case $as_dir/ in
2431  ./ | .// | /cC/* | \
2432  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2434  /usr/ucb/* ) ;;
2435  *)
2436    # OSF1 and SCO ODT 3.0 have their own names for install.
2437    # Don't use installbsd from OSF since it installs stuff as root
2438    # by default.
2439    for ac_prog in ginstall scoinst install; do
2440      for ac_exec_ext in '' $ac_executable_extensions; do
2441        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2442          if test $ac_prog = install &&
2443            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444            # AIX install.  It has an incompatible calling convention.
2445            :
2446          elif test $ac_prog = install &&
2447            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448            # program-specific install script used by HP pwplus--don't use.
2449            :
2450          else
2451            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452            break 3
2453          fi
2454        fi
2455      done
2456    done
2457    ;;
2458esac
2459done
2460
2461
2462fi
2463  if test "${ac_cv_path_install+set}" = set; then
2464    INSTALL=$ac_cv_path_install
2465  else
2466    # As a last resort, use the slow shell script.  We don't cache a
2467    # path for INSTALL within a source directory, because that will
2468    # break other packages using the cache if that directory is
2469    # removed, or if the path is relative.
2470    INSTALL=$ac_install_sh
2471  fi
2472fi
2473echo "$as_me:$LINENO: result: $INSTALL" >&5
2474echo "${ECHO_T}$INSTALL" >&6
2475
2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477# It thinks the first close brace ends the variable substitution.
2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481
2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2485echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2486set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2487if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  cat >conftest.make <<\_ACEOF
2491all:
2492        @echo 'ac_maketemp="$(MAKE)"'
2493_ACEOF
2494# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2495eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2496if test -n "$ac_maketemp"; then
2497  eval ac_cv_prog_make_${ac_make}_set=yes
2498else
2499  eval ac_cv_prog_make_${ac_make}_set=no
2500fi
2501rm -f conftest.make
2502fi
2503if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2504  echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506  SET_MAKE=
2507else
2508  echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510  SET_MAKE="MAKE=${MAKE-make}"
2511fi
2512
2513echo "$as_me:$LINENO: checking whether ln -s works" >&5
2514echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2515LN_S=$as_ln_s
2516if test "$LN_S" = "ln -s"; then
2517  echo "$as_me:$LINENO: result: yes" >&5
2518echo "${ECHO_T}yes" >&6
2519else
2520  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2521echo "${ECHO_T}no, using $LN_S" >&6
2522fi
2523
2524# Extract the first word of "cvs", so it can be a program name with args.
2525set dummy cvs; ac_word=$2
2526echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528if test "${ac_cv_path_CVS+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  case $CVS in
2532  [\\/]* | ?:[\\/]*)
2533  ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
2534  ;;
2535  *)
2536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_path_CVS="$as_dir/$ac_word$ac_exec_ext"
2544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549
2550  ;;
2551esac
2552fi
2553CVS=$ac_cv_path_CVS
2554
2555if test -n "$CVS"; then
2556  echo "$as_me:$LINENO: result: $CVS" >&5
2557echo "${ECHO_T}$CVS" >&6
2558else
2559  echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561fi
2562
2563# Extract the first word of "launchd", so it can be a program name with args.
2564set dummy launchd; ac_word=$2
2565echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567if test "${ac_cv_prog_HAVE_LAUNCHD+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  if test -n "$HAVE_LAUNCHD"; then
2571  ac_cv_prog_HAVE_LAUNCHD="$HAVE_LAUNCHD" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578  for ac_exec_ext in '' $ac_executable_extensions; do
2579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580    ac_cv_prog_HAVE_LAUNCHD="yes"
2581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582    break 2
2583  fi
2584done
2585done
2586
2587fi
2588fi
2589HAVE_LAUNCHD=$ac_cv_prog_HAVE_LAUNCHD
2590if test -n "$HAVE_LAUNCHD"; then
2591  echo "$as_me:$LINENO: result: $HAVE_LAUNCHD" >&5
2592echo "${ECHO_T}$HAVE_LAUNCHD" >&6
2593else
2594  echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6
2596fi
2597
2598# Extract the first word of "launchctl", so it can be a program name with args.
2599set dummy launchctl; ac_word=$2
2600echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602if test "${ac_cv_path_LAUNCHCTL+set}" = set; then
2603  echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
2605  case $LAUNCHCTL in
2606  [\\/]* | ?:[\\/]*)
2607  ac_cv_path_LAUNCHCTL="$LAUNCHCTL" # Let the user override the test with a path.
2608  ;;
2609  *)
2610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615  for ac_exec_ext in '' $ac_executable_extensions; do
2616  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_path_LAUNCHCTL="$as_dir/$ac_word$ac_exec_ext"
2618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622done
2623
2624  ;;
2625esac
2626fi
2627LAUNCHCTL=$ac_cv_path_LAUNCHCTL
2628
2629if test -n "$LAUNCHCTL"; then
2630  echo "$as_me:$LINENO: result: $LAUNCHCTL" >&5
2631echo "${ECHO_T}$LAUNCHCTL" >&6
2632else
2633  echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6
2635fi
2636
2637# Extract the first word of "xcodebuild", so it can be a program name with args.
2638set dummy xcodebuild; ac_word=$2
2639echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641if test "${ac_cv_path_XCODEBUILD+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644  case $XCODEBUILD in
2645  [\\/]* | ?:[\\/]*)
2646  ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
2647  ;;
2648  *)
2649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654  for ac_exec_ext in '' $ac_executable_extensions; do
2655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656    ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
2657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661done
2662
2663  ;;
2664esac
2665fi
2666XCODEBUILD=$ac_cv_path_XCODEBUILD
2667
2668if test -n "$XCODEBUILD"; then
2669  echo "$as_me:$LINENO: result: $XCODEBUILD" >&5
2670echo "${ECHO_T}$XCODEBUILD" >&6
2671else
2672  echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6
2674fi
2675
2676
2677
2678        # Extract the first word of "tar", so it can be a program name with args.
2679set dummy tar; ac_word=$2
2680echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682if test "${ac_cv_path_TAR+set}" = set; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  case $TAR in
2686  [\\/]* | ?:[\\/]*)
2687  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2688  ;;
2689  *)
2690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695  for ac_exec_ext in '' $ac_executable_extensions; do
2696  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702done
2703
2704  ;;
2705esac
2706fi
2707TAR=$ac_cv_path_TAR
2708
2709if test -n "$TAR"; then
2710  echo "$as_me:$LINENO: result: $TAR" >&5
2711echo "${ECHO_T}$TAR" >&6
2712else
2713  echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715fi
2716
2717        # Extract the first word of "gnutar", so it can be a program name with args.
2718set dummy gnutar; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_path_GNUTAR+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  case $GNUTAR in
2725  [\\/]* | ?:[\\/]*)
2726  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
2727  ;;
2728  *)
2729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  for ac_exec_ext in '' $ac_executable_extensions; do
2735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
2737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741done
2742
2743  ;;
2744esac
2745fi
2746GNUTAR=$ac_cv_path_GNUTAR
2747
2748if test -n "$GNUTAR"; then
2749  echo "$as_me:$LINENO: result: $GNUTAR" >&5
2750echo "${ECHO_T}$GNUTAR" >&6
2751else
2752  echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754fi
2755
2756
2757        echo "$as_me:$LINENO: checking for which tar variant to use" >&5
2758echo $ECHO_N "checking for which tar variant to use... $ECHO_C" >&6
2759        if test -n "$GNUTAR"; then
2760  TAR_CMD=$GNUTAR
2761else
2762  TAR_CMD=$TAR
2763fi
2764
2765        echo "$as_me:$LINENO: result: $TAR_CMD" >&5
2766echo "${ECHO_T}$TAR_CMD" >&6
2767
2768
2769        echo "$as_me:$LINENO: checking for $TAR_CMD --no-same-owner support" >&5
2770echo $ECHO_N "checking for $TAR_CMD --no-same-owner support... $ECHO_C" >&6
2771        no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`
2772        if test -z "$no_same_owner_support" ; then
2773                echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775        else
2776                echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778                TAR_CMD="$TAR_CMD --no-same-owner"
2779        fi
2780
2781
2782# Quiche eaters options.
2783if test x$GCC = xyes; then
2784        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
2785fi
2786
2787
2788
2789
2790        echo "$as_me:$LINENO: checking how to mark unused variables" >&5
2791echo $ECHO_N "checking how to mark unused variables... $ECHO_C" >&6
2792        cat >conftest.$ac_ext <<_ACEOF
2793/* confdefs.h.  */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h.  */
2798int a __attribute__ ((unused));
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802  (eval $ac_compile) 2>conftest.er1
2803  ac_status=$?
2804  grep -v '^ *+' conftest.er1 >conftest.err
2805  rm -f conftest.er1
2806  cat conftest.err >&5
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); } &&
2809         { ac_try='test -z "$ac_c_werror_flag"
2810                         || test ! -s conftest.err'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; } &&
2816         { ac_try='test -s conftest.$ac_objext'
2817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818  (eval $ac_try) 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); }; }; then
2822
2823cat >>confdefs.h <<\_ACEOF
2824#define UNUSED __attribute__((unused))
2825_ACEOF
2826
2827else
2828  echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831cat >>confdefs.h <<\_ACEOF
2832#define UNUSED
2833_ACEOF
2834
2835fi
2836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837
2838        echo "$as_me:$LINENO: result: " >&5
2839echo "${ECHO_T}" >&6
2840
2841
2842
2843
2844
2845        # Extract the first word of "mtree", so it can be a program name with args.
2846set dummy mtree; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_path_MTREE+set}" = set; then
2850  echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852  case $MTREE in
2853  [\\/]* | ?:[\\/]*)
2854  ac_cv_path_MTREE="$MTREE" # Let the user override the test with a path.
2855  ;;
2856  *)
2857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858as_dummy="/usr/bin:/usr/sbin:/bin:/sbin"
2859for as_dir in $as_dummy
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863  for ac_exec_ext in '' $ac_executable_extensions; do
2864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865    ac_cv_path_MTREE="$as_dir/$ac_word$ac_exec_ext"
2866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870done
2871
2872  ;;
2873esac
2874fi
2875MTREE=$ac_cv_path_MTREE
2876
2877if test -n "$MTREE"; then
2878  echo "$as_me:$LINENO: result: $MTREE" >&5
2879echo "${ECHO_T}$MTREE" >&6
2880else
2881  echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885
2886        if test "x$MTREE" = "x" ; then
2887
2888
2889subdirs="$subdirs src/programs/mtree"
2890
2891                MTREE='$(TOPSRCDIR)/src/programs/mtree/mtree'
2892#               MTREE='${prefix}/bin/mtree'
2893                REPLACEMENT_PROGS="$REPLACEMENT_PROGS mtree"
2894        fi
2895
2896
2897
2898# Check whether --enable-launchd-support or --disable-launchd-support was given.
2899if test "${enable_launchd_support+set}" = set; then
2900  enableval="$enable_launchd_support"
2901
2902else
2903  enable_launchd_support=yes
2904fi;
2905ENABLE_LAUNCHD_SUPPORT=$enable_launchd_support
2906
2907if test x"${enable_launchd_support}" == "xyes"; then
2908
2909        FRAMEWORK_LIBS="-framework CoreFoundation"
2910
2911        echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
2912echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6
2913
2914        if test "${od_cv_have_framework_corefoundation+set}" = set; then
2915  echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917
2918                ac_save_LIBS="$LIBS"
2919                LIBS="$FRAMEWORK_LIBS $LIBS"
2920
2921                cat >conftest.$ac_ext <<_ACEOF
2922
2923                        /* confdefs.h.  */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h.  */
2928
2929                                        #include <CoreFoundation/CoreFoundation.h>
2930
2931int
2932main ()
2933{
2934
2935                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
2936                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
2937
2938  ;
2939  return 0;
2940}
2941
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965
2966                                od_cv_have_framework_corefoundation="yes"
2967
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972
2973                                od_cv_have_framework_corefoundation="no"
2974
2975
2976fi
2977rm -f conftest.err conftest.$ac_objext \
2978      conftest$ac_exeext conftest.$ac_ext
2979
2980                LIBS="$ac_save_LIBS"
2981
2982fi
2983
2984
2985        echo "$as_me:$LINENO: result: ${od_cv_have_framework_corefoundation}" >&5
2986echo "${ECHO_T}${od_cv_have_framework_corefoundation}" >&6
2987
2988        if test x"${od_cv_have_framework_corefoundation}" = "xyes"; then
2989
2990cat >>confdefs.h <<\_ACEOF
2991#define HAVE_FRAMEWORK_COREFOUNDATION
2992_ACEOF
2993
2994        fi
2995
2996
2997
2998
2999        FRAMEWORK_LIBS="-framework SystemConfiguration"
3000
3001        echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
3002echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6
3003
3004        if test "${od_cv_have_framework_systemconfiguration+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007
3008                ac_save_LIBS="$LIBS"
3009                LIBS="$FRAMEWORK_LIBS $LIBS"
3010
3011                cat >conftest.$ac_ext <<_ACEOF
3012
3013                        /* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019                                        #include <SystemConfiguration/SystemConfiguration.h>
3020
3021int
3022main ()
3023{
3024
3025                                        int err = SCError();
3026                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
3027
3028  ;
3029  return 0;
3030}
3031
3032_ACEOF
3033rm -f conftest.$ac_objext conftest$ac_exeext
3034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035  (eval $ac_link) 2>conftest.er1
3036  ac_status=$?
3037  grep -v '^ *+' conftest.er1 >conftest.err
3038  rm -f conftest.er1
3039  cat conftest.err >&5
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); } &&
3042         { ac_try='test -z "$ac_c_werror_flag"
3043                         || test ! -s conftest.err'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; } &&
3049         { ac_try='test -s conftest$ac_exeext'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055
3056                                od_cv_have_framework_systemconfiguration="yes"
3057
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062
3063                                od_cv_have_framework_systemconfiguration="no"
3064
3065
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069
3070                LIBS="$ac_save_LIBS"
3071
3072fi
3073
3074
3075        echo "$as_me:$LINENO: result: ${od_cv_have_framework_systemconfiguration}" >&5
3076echo "${ECHO_T}${od_cv_have_framework_systemconfiguration}" >&6
3077
3078        if test x"${od_cv_have_framework_systemconfiguration}" = "xyes"; then
3079
3080cat >>confdefs.h <<\_ACEOF
3081#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
3082_ACEOF
3083
3084        fi
3085
3086
3087
3088
3089        FRAMEWORK_LIBS="-framework IOKit"
3090
3091        echo "$as_me:$LINENO: checking for IOKit framework" >&5
3092echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6
3093
3094        if test "${od_cv_have_framework_iokit+set}" = set; then
3095  echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
3097
3098                ac_save_LIBS="$LIBS"
3099                LIBS="$FRAMEWORK_LIBS $LIBS"
3100
3101                cat >conftest.$ac_ext <<_ACEOF
3102
3103                        /* confdefs.h.  */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h.  */
3108
3109                                        #include <IOKit/IOKitLib.h>
3110
3111int
3112main ()
3113{
3114
3115                                        IOCreateReceivePort(0, NULL);
3116                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
3117
3118  ;
3119  return 0;
3120}
3121
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
3124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125  (eval $ac_link) 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } &&
3132         { ac_try='test -z "$ac_c_werror_flag"
3133                         || test ! -s conftest.err'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; } &&
3139         { ac_try='test -s conftest$ac_exeext'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; }; then
3145
3146                                od_cv_have_framework_iokit="yes"
3147
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153                                od_cv_have_framework_iokit="no"
3154
3155
3156fi
3157rm -f conftest.err conftest.$ac_objext \
3158      conftest$ac_exeext conftest.$ac_ext
3159
3160                LIBS="$ac_save_LIBS"
3161
3162fi
3163
3164
3165        echo "$as_me:$LINENO: result: ${od_cv_have_framework_iokit}" >&5
3166echo "${ECHO_T}${od_cv_have_framework_iokit}" >&6
3167
3168        if test x"${od_cv_have_framework_iokit}" = "xyes"; then
3169
3170cat >>confdefs.h <<\_ACEOF
3171#define HAVE_FRAMEWORK_IOKIT
3172_ACEOF
3173
3174        fi
3175
3176
3177
3178
3179        FRAMEWORK_LIBS="-framework CoreFoundation"
3180
3181        echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
3182echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6
3183
3184        if test "${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187
3188                ac_save_LIBS="$LIBS"
3189                LIBS="$FRAMEWORK_LIBS $LIBS"
3190
3191                cat >conftest.$ac_ext <<_ACEOF
3192
3193                        /* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199                                        #include <CoreFoundation/CoreFoundation.h>
3200
3201int
3202main ()
3203{
3204
3205                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
3206
3207  ;
3208  return 0;
3209}
3210
3211_ACEOF
3212rm -f conftest.$ac_objext conftest$ac_exeext
3213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214  (eval $ac_link) 2>conftest.er1
3215  ac_status=$?
3216  grep -v '^ *+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } &&
3221         { ac_try='test -z "$ac_c_werror_flag"
3222                         || test ! -s conftest.err'
3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224  (eval $ac_try) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; } &&
3228         { ac_try='test -s conftest$ac_exeext'
3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230  (eval $ac_try) 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234
3235                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
3236
3237else
3238  echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241
3242                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
3243
3244
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248
3249                LIBS="$ac_save_LIBS"
3250
3251fi
3252
3253
3254        echo "$as_me:$LINENO: result: ${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
3255echo "${ECHO_T}${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6
3256
3257        if test x"${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
3258
3259cat >>confdefs.h <<\_ACEOF
3260#define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
3261_ACEOF
3262
3263        fi
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273    echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
3274echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6
3275    result=no
3276        case $host_os in
3277        darwin*)
3278                if test "x$od_cv_have_framework_corefoundation" == "xyes" &&
3279                   test "x$od_cv_have_framework_systemconfiguration" == "xyes" &&
3280                   test "x$od_cv_have_framework_iokit" == "xyes" &&
3281                   test "x$od_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
3282                        result=yes
3283                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
3284                                  ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
3285
3286                fi
3287                ;;
3288        *)
3289        esac
3290        echo "$as_me:$LINENO: result: ${result}" >&5
3291echo "${ECHO_T}${result}" >&6
3292
3293fi
3294
3295
3296
3297
3298
3299# set default dports-directory
3300DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"`
3301
3302# Check for paths
3303
3304
3305
3306
3307
3308# Check whether --with-dports-dir or --without-dports-dir was given.
3309if test "${with_dports_dir+set}" = set; then
3310  withval="$with_dports_dir"
3311   dportsdir="$withval"
3312fi;
3313
3314
3315        echo "$as_me:$LINENO: checking for dports tree" >&5
3316echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
3317        if test "x$dportsdir" != "x" ; then
3318          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
3319                :
3320          else
3321                { { echo "$as_me:$LINENO: error: $dportsdir not a valid dports tree" >&5
3322echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
3323   { (exit 1); exit 1; }; }
3324          fi
3325        else
3326                                if test "x$DPORTS_DIR_DEFAULT" != "x" ; then
3327                  if test -d "$DPORTS_DIR_DEFAULT" -a -e "$DPORTS_DIR_DEFAULT/PortIndex" ; then
3328                        dportsdir=$DPORTS_DIR_DEFAULT
3329                  fi
3330                fi
3331        fi
3332
3333        if test "x$dportsdir" != "x" ; then
3334                echo "$as_me:$LINENO: result: $dportsdir" >&5
3335echo "${ECHO_T}$dportsdir" >&6
3336                DPORTSDIR="$dportsdir"
3337
3338        else
3339                { echo "$as_me:$LINENO: WARNING: No dports tree found" >&5
3340echo "$as_me: WARNING: No dports tree found" >&2;}
3341        fi
3342
3343
3344
3345
3346        echo "$as_me:$LINENO: checking for ports config directory" >&5
3347echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
3348
3349        portconfigdir='${sysconfdir}/ports'
3350
3351        echo "$as_me:$LINENO: result: $portconfigdir" >&5
3352echo "${ECHO_T}$portconfigdir" >&6
3353        PORTCONFIGDIR="$portconfigdir"
3354
3355
3356
3357
3358# Check for install ownership
3359
3360
3361
3362
3363# Check whether --with-install-user or --without-install-user was given.
3364if test "${with_install_user+set}" = set; then
3365  withval="$with_install_user"
3366   DSTUSR=$withval
3367fi;
3368
3369        echo "$as_me:$LINENO: checking for install user" >&5
3370echo $ECHO_N "checking for install user... $ECHO_C" >&6
3371        if test "x$DSTUSR" = "x" ; then
3372           DSTUSR=root
3373        fi
3374
3375        echo "$as_me:$LINENO: result: $DSTUSR" >&5
3376echo "${ECHO_T}$DSTUSR" >&6
3377
3378
3379
3380
3381
3382
3383# Check whether --with-install-group or --without-install-group was given.
3384if test "${with_install_group+set}" = set; then
3385  withval="$with_install_group"
3386   DSTGRP=$withval
3387fi;
3388
3389        echo "$as_me:$LINENO: checking for install group" >&5
3390echo $ECHO_N "checking for install group... $ECHO_C" >&6
3391        if test "x$DSTGRP" = "x" ; then
3392
3393           case $host_os in
3394           darwin*)
3395                DSTGRP="admin"
3396                ;;
3397           *)
3398                DSTGRP="wheel"
3399                ;;
3400           esac
3401        fi
3402
3403        echo "$as_me:$LINENO: result: $DSTGRP" >&5
3404echo "${ECHO_T}$DSTGRP" >&6
3405
3406
3407
3408
3409
3410
3411# Check whether --with-directory-mode or --without-directory-mode was given.
3412if test "${with_directory_mode+set}" = set; then
3413  withval="$with_directory_mode"
3414   DSTMODE=$withval
3415fi;
3416
3417        echo "$as_me:$LINENO: checking what permissions to use for installation directories" >&5
3418echo $ECHO_N "checking what permissions to use for installation directories... $ECHO_C" >&6
3419        if test "x$DSTMODE" = "x" ; then
3420           DSTMODE=0775
3421        fi
3422
3423        echo "$as_me:$LINENO: result: $DSTMODE" >&5
3424echo "${ECHO_T}$DSTMODE" >&6
3425
3426
3427
3428# Check for standard header files.
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3435echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3436# On Suns, sometimes $CPP names a directory.
3437if test -n "$CPP" && test -d "$CPP"; then
3438  CPP=
3439fi
3440if test -z "$CPP"; then
3441  if test "${ac_cv_prog_CPP+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444      # Double quotes because CPP needs to be expanded
3445    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446    do
3447      ac_preproc_ok=false
3448for ac_c_preproc_warn_flag in '' yes
3449do
3450  # Use a header file that comes with gcc, so configuring glibc
3451  # with a fresh cross-compiler works.
3452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453  # <limits.h> exists even on freestanding compilers.
3454  # On the NeXT, cc -E runs the code through the compiler's parser,
3455  # not just through cpp. "Syntax error" is here to catch this case.
3456  cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462#ifdef __STDC__
3463# include <limits.h>
3464#else
3465# include <assert.h>
3466#endif
3467                     Syntax error
3468_ACEOF
3469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3471  ac_status=$?
3472  grep -v '^ *+' conftest.er1 >conftest.err
3473  rm -f conftest.er1
3474  cat conftest.err >&5
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); } >/dev/null; then
3477  if test -s conftest.err; then
3478    ac_cpp_err=$ac_c_preproc_warn_flag
3479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480  else
3481    ac_cpp_err=
3482  fi
3483else
3484  ac_cpp_err=yes
3485fi
3486if test -z "$ac_cpp_err"; then
3487  :
3488else
3489  echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492  # Broken: fails on valid input.
3493continue
3494fi
3495rm -f conftest.err conftest.$ac_ext
3496
3497  # OK, works on sane cases.  Now check whether non-existent headers
3498  # can be detected and how.
3499  cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h.  */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h.  */
3505#include <ac_nonexistent.h>
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } >/dev/null; then
3515  if test -s conftest.err; then
3516    ac_cpp_err=$ac_c_preproc_warn_flag
3517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518  else
3519    ac_cpp_err=
3520  fi
3521else
3522  ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525  # Broken: success on invalid input.
3526continue
3527else
3528  echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531  # Passes both tests.
3532ac_preproc_ok=:
3533break
3534fi
3535rm -f conftest.err conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then
3541  break
3542fi
3543
3544    done
3545    ac_cv_prog_CPP=$CPP
3546
3547fi
3548  CPP=$ac_cv_prog_CPP
3549else
3550  ac_cv_prog_CPP=$CPP
3551fi
3552echo "$as_me:$LINENO: result: $CPP" >&5
3553echo "${ECHO_T}$CPP" >&6
3554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557  # Use a header file that comes with gcc, so configuring glibc
3558  # with a fresh cross-compiler works.
3559  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560  # <limits.h> exists even on freestanding compilers.
3561  # On the NeXT, cc -E runs the code through the compiler's parser,
3562  # not just through cpp. "Syntax error" is here to catch this case.
3563  cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h.  */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h.  */
3569#ifdef __STDC__
3570# include <limits.h>
3571#else
3572# include <assert.h>
3573#endif
3574                     Syntax error
3575_ACEOF
3576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } >/dev/null; then
3584  if test -s conftest.err; then
3585    ac_cpp_err=$ac_c_preproc_warn_flag
3586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587  else
3588    ac_cpp_err=
3589  fi
3590else
3591  ac_cpp_err=yes
3592fi
3593if test -z "$ac_cpp_err"; then
3594  :
3595else
3596  echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599  # Broken: fails on valid input.
3600continue
3601fi
3602rm -f conftest.err conftest.$ac_ext
3603
3604  # OK, works on sane cases.  Now check whether non-existent headers
3605  # can be detected and how.
3606  cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h.  */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h.  */
3612#include <ac_nonexistent.h>
3613_ACEOF
3614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3615  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616  ac_status=$?
3617  grep -v '^ *+' conftest.er1 >conftest.err
3618  rm -f conftest.er1
3619  cat conftest.err >&5
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); } >/dev/null; then
3622  if test -s conftest.err; then
3623    ac_cpp_err=$ac_c_preproc_warn_flag
3624    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625  else
3626    ac_cpp_err=
3627  fi
3628else
3629  ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
3632  # Broken: success on invalid input.
3633continue
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638  # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
3642rm -f conftest.err conftest.$ac_ext
3643
3644done
3645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646rm -f conftest.err conftest.$ac_ext
3647if $ac_preproc_ok; then
3648  :
3649else
3650  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651See \`config.log' for more details." >&5
3652echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653See \`config.log' for more details." >&2;}
3654   { (exit 1); exit 1; }; }
3655fi
3656
3657ac_ext=c
3658ac_cpp='$CPP $CPPFLAGS'
3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663
3664echo "$as_me:$LINENO: checking for egrep" >&5
3665echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3666if test "${ac_cv_prog_egrep+set}" = set; then
3667  echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3670    then ac_cv_prog_egrep='grep -E'
3671    else ac_cv_prog_egrep='egrep'
3672    fi
3673fi
3674echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3675echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3676 EGREP=$ac_cv_prog_egrep
3677
3678
3679echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3681if test "${ac_cv_header_stdc+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690#include <stdlib.h>
3691#include <stdarg.h>
3692#include <string.h>
3693#include <float.h>
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705  (eval $ac_compile) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712         { ac_try='test -z "$ac_c_werror_flag"
3713                         || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719         { ac_try='test -s conftest.$ac_objext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  ac_cv_header_stdc=yes
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_header_stdc=no
3731fi
3732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733
3734if test $ac_cv_header_stdc = yes; then
3735  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736  cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h.  */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h.  */
3742#include <string.h>
3743
3744_ACEOF
3745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746  $EGREP "memchr" >/dev/null 2>&1; then
3747  :
3748else
3749  ac_cv_header_stdc=no
3750fi
3751rm -f conftest*
3752
3753fi
3754
3755if test $ac_cv_header_stdc = yes; then
3756  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757  cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763#include <stdlib.h>
3764
3765_ACEOF
3766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767  $EGREP "free" >/dev/null 2>&1; then
3768  :
3769else
3770  ac_cv_header_stdc=no
3771fi
3772rm -f conftest*
3773
3774fi
3775
3776if test $ac_cv_header_stdc = yes; then
3777  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778  if test "$cross_compiling" = yes; then
3779  :
3780else
3781  cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h.  */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h.  */
3787#include <ctype.h>
3788#if ((' ' & 0x0FF) == 0x020)
3789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3791#else
3792# define ISLOWER(c) \
3793                   (('a' <= (c) && (c) <= 'i') \
3794                     || ('j' <= (c) && (c) <= 'r') \
3795                     || ('s' <= (c) && (c) <= 'z'))
3796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3797#endif
3798
3799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3800int
3801main ()
3802{
3803  int i;
3804  for (i = 0; i < 256; i++)
3805    if (XOR (islower (i), ISLOWER (i))
3806        || toupper (i) != TOUPPER (i))
3807      exit(2);
3808  exit (0);
3809}
3810_ACEOF
3811rm -f conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813  (eval $ac_link) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; }; then
3822  :
3823else
3824  echo "$as_me: program exited with status $ac_status" >&5
3825echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828( exit $ac_status )
3829ac_cv_header_stdc=no
3830fi
3831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3832fi
3833fi
3834fi
3835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3836echo "${ECHO_T}$ac_cv_header_stdc" >&6
3837if test $ac_cv_header_stdc = yes; then
3838
3839cat >>confdefs.h <<\_ACEOF
3840#define STDC_HEADERS 1
3841_ACEOF
3842
3843fi
3844
3845
3846
3847
3848
3849
3850ac_header_dirent=no
3851for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3852  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3853echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3854echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3855if eval "test \"\${$as_ac_Header+set}\" = set"; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864#include <sys/types.h>
3865#include <$ac_hdr>
3866
3867int
3868main ()
3869{
3870if ((DIR *) 0)
3871return 0;
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876rm -f conftest.$ac_objext
3877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878  (eval $ac_compile) 2>conftest.er1
3879  ac_status=$?
3880  grep -v '^ *+' conftest.er1 >conftest.err
3881  rm -f conftest.er1
3882  cat conftest.err >&5
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); } &&
3885         { ac_try='test -z "$ac_c_werror_flag"
3886                         || test ! -s conftest.err'
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); }; } &&
3892         { ac_try='test -s conftest.$ac_objext'
3893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894  (eval $ac_try) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); }; }; then
3898  eval "$as_ac_Header=yes"
3899else
3900  echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903eval "$as_ac_Header=no"
3904fi
3905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906fi
3907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3909if test `eval echo '${'$as_ac_Header'}'` = yes; then
3910  cat >>confdefs.h <<_ACEOF
3911#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3912_ACEOF
3913
3914ac_header_dirent=$ac_hdr; break
3915fi
3916
3917done
3918# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3919if test $ac_header_dirent = dirent.h; then
3920  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3921echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3922if test "${ac_cv_search_opendir+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  ac_func_search_save_LIBS=$LIBS
3926ac_cv_search_opendir=no
3927cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h.  */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h.  */
3933
3934/* Override any gcc2 internal prototype to avoid an error.  */
3935#ifdef __cplusplus
3936extern "C"
3937#endif
3938/* We use char because int might match the return type of a gcc2
3939   builtin and then its argument prototype would still apply.  */
3940char opendir ();
3941int
3942main ()
3943{
3944opendir ();
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext conftest$ac_exeext
3950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951  (eval $ac_link) 2>conftest.er1
3952  ac_status=$?
3953  grep -v '^ *+' conftest.er1 >conftest.err
3954  rm -f conftest.er1
3955  cat conftest.err >&5
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } &&
3958         { ac_try='test -z "$ac_c_werror_flag"
3959                         || test ! -s conftest.err'
3960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961  (eval $ac_try) 2>&5
3962  ac_status=$?
3963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964  (exit $ac_status); }; } &&
3965         { ac_try='test -s conftest$ac_exeext'
3966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967  (eval $ac_try) 2>&5
3968  ac_status=$?
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); }; }; then
3971  ac_cv_search_opendir="none required"
3972else
3973  echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976fi
3977rm -f conftest.err conftest.$ac_objext \
3978      conftest$ac_exeext conftest.$ac_ext
3979if test "$ac_cv_search_opendir" = no; then
3980  for ac_lib in dir; do
3981    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3982    cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988
3989/* Override any gcc2 internal prototype to avoid an error.  */
3990#ifdef __cplusplus
3991extern "C"
3992#endif
3993/* We use char because int might match the return type of a gcc2
3994   builtin and then its argument prototype would still apply.  */
3995char opendir ();
3996int
3997main ()
3998{
3999opendir ();
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
4005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006  (eval $ac_link) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013         { ac_try='test -z "$ac_c_werror_flag"
4014                         || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020         { ac_try='test -s conftest$ac_exeext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  ac_cv_search_opendir="-l$ac_lib"
4027break
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032fi
4033rm -f conftest.err conftest.$ac_objext \
4034      conftest$ac_exeext conftest.$ac_ext
4035  done
4036fi
4037LIBS=$ac_func_search_save_LIBS
4038fi
4039echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4040echo "${ECHO_T}$ac_cv_search_opendir" >&6
4041if test "$ac_cv_search_opendir" != no; then
4042  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4043
4044fi
4045
4046else
4047  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4049if test "${ac_cv_search_opendir+set}" = set; then
4050  echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052  ac_func_search_save_LIBS=$LIBS
4053ac_cv_search_opendir=no
4054cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060
4061/* Override any gcc2 internal prototype to avoid an error.  */
4062#ifdef __cplusplus
4063extern "C"
4064#endif
4065/* We use char because int might match the return type of a gcc2
4066   builtin and then its argument prototype would still apply.  */
4067char opendir ();
4068int
4069main ()
4070{
4071opendir ();
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076rm -f conftest.$ac_objext conftest$ac_exeext
4077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078  (eval $ac_link) 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } &&
4085         { ac_try='test -z "$ac_c_werror_flag"
4086                         || test ! -s conftest.err'
4087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088  (eval $ac_try) 2>&5
4089  ac_status=$?
4090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091  (exit $ac_status); }; } &&
4092         { ac_try='test -s conftest$ac_exeext'
4093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094  (eval $ac_try) 2>&5
4095  ac_status=$?
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); }; }; then
4098  ac_cv_search_opendir="none required"
4099else
4100  echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103fi
4104rm -f conftest.err conftest.$ac_objext \
4105      conftest$ac_exeext conftest.$ac_ext
4106if test "$ac_cv_search_opendir" = no; then
4107  for ac_lib in x; do
4108    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4109    cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115
4116/* Override any gcc2 internal prototype to avoid an error.  */
4117#ifdef __cplusplus
4118extern "C"
4119#endif
4120/* We use char because int might match the return type of a gcc2
4121   builtin and then its argument prototype would still apply.  */
4122char opendir ();
4123int
4124main ()
4125{
4126opendir ();
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext conftest$ac_exeext
4132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133  (eval $ac_link) 2>conftest.er1
4134  ac_status=$?
4135  grep -v '^ *+' conftest.er1 >conftest.err
4136  rm -f conftest.er1
4137  cat conftest.err >&5
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); } &&
4140         { ac_try='test -z "$ac_c_werror_flag"
4141                         || test ! -s conftest.err'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; } &&
4147         { ac_try='test -s conftest$ac_exeext'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; }; then
4153  ac_cv_search_opendir="-l$ac_lib"
4154break
4155else
4156  echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159fi
4160rm -f conftest.err conftest.$ac_objext \
4161      conftest$ac_exeext conftest.$ac_ext
4162  done
4163fi
4164LIBS=$ac_func_search_save_LIBS
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4167echo "${ECHO_T}$ac_cv_search_opendir" >&6
4168if test "$ac_cv_search_opendir" != no; then
4169  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4170
4171fi
4172
4173fi
4174
4175echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4176echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4177if test "${ac_cv_header_sys_wait_h+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186#include <sys/types.h>
4187#include <sys/wait.h>
4188#ifndef WEXITSTATUS
4189# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4190#endif
4191#ifndef WIFEXITED
4192# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4193#endif
4194
4195int
4196main ()
4197{
4198  int s;
4199  wait (&s);
4200  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4201  ;
4202  return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207  (eval $ac_compile) 2>conftest.er1
4208  ac_status=$?
4209  grep -v '^ *+' conftest.er1 >conftest.err
4210  rm -f conftest.er1
4211  cat conftest.err >&5
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } &&
4214         { ac_try='test -z "$ac_c_werror_flag"
4215                         || test ! -s conftest.err'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; } &&
4221         { ac_try='test -s conftest.$ac_objext'
4222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223  (eval $ac_try) 2>&5
4224  ac_status=$?
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); }; }; then
4227  ac_cv_header_sys_wait_h=yes
4228else
4229  echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232ac_cv_header_sys_wait_h=no
4233fi
4234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235fi
4236echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4237echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4238if test $ac_cv_header_sys_wait_h = yes; then
4239
4240cat >>confdefs.h <<\_ACEOF
4241#define HAVE_SYS_WAIT_H 1
4242_ACEOF
4243
4244fi
4245
4246echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4247echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4248if test "${ac_cv_header_stat_broken+set}" = set; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251  cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h.  */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h.  */
4257#include <sys/types.h>
4258#include <sys/stat.h>
4259
4260#if defined(S_ISBLK) && defined(S_IFDIR)
4261# if S_ISBLK (S_IFDIR)
4262You lose.
4263# endif
4264#endif
4265
4266#if defined(S_ISBLK) && defined(S_IFCHR)
4267# if S_ISBLK (S_IFCHR)
4268You lose.
4269# endif
4270#endif
4271
4272#if defined(S_ISLNK) && defined(S_IFREG)
4273# if S_ISLNK (S_IFREG)
4274You lose.
4275# endif
4276#endif
4277
4278#if defined(S_ISSOCK) && defined(S_IFREG)
4279# if S_ISSOCK (S_IFREG)
4280You lose.
4281# endif
4282#endif
4283
4284_ACEOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286  $EGREP "You lose" >/dev/null 2>&1; then
4287  ac_cv_header_stat_broken=yes
4288else
4289  ac_cv_header_stat_broken=no
4290fi
4291rm -f conftest*
4292
4293fi
4294echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4295echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4296if test $ac_cv_header_stat_broken = yes; then
4297
4298cat >>confdefs.h <<\_ACEOF
4299#define STAT_MACROS_BROKEN 1
4300_ACEOF
4301
4302fi
4303
4304# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4315                  inttypes.h stdint.h unistd.h
4316do
4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318echo "$as_me:$LINENO: checking for $ac_header" >&5
4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323  cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329$ac_includes_default
4330
4331#include <$ac_header>
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335  (eval $ac_compile) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342         { ac_try='test -z "$ac_c_werror_flag"
4343                         || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349         { ac_try='test -s conftest.$ac_objext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  eval "$as_ac_Header=yes"
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360eval "$as_ac_Header=no"
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366if test `eval echo '${'$as_ac_Header'}'` = yes; then
4367  cat >>confdefs.h <<_ACEOF
4368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369_ACEOF
4370
4371fi
4372
4373done
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388for ac_header in limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h libgen.h sys/socket.h \
4389        readline/readline.h readline/history.h
4390do
4391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393  echo "$as_me:$LINENO: checking for $ac_header" >&5
4394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4395if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397fi
4398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400else
4401  # Is the header compilable?
4402echo "$as_me:$LINENO: checking $ac_header usability" >&5
4403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4404cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h.  */
4406_ACEOF
4407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
4409/* end confdefs.h.  */
4410$ac_includes_default
4411#include <$ac_header>
4412_ACEOF
4413rm -f conftest.$ac_objext
4414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415  (eval $ac_compile) 2>conftest.er1
4416  ac_status=$?
4417  grep -v '^ *+' conftest.er1 >conftest.err
4418  rm -f conftest.er1
4419  cat conftest.err >&5
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); } &&
4422         { ac_try='test -z "$ac_c_werror_flag"
4423                         || test ! -s conftest.err'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; } &&
4429         { ac_try='test -s conftest.$ac_objext'
4430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431  (eval $ac_try) 2>&5
4432  ac_status=$?
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); }; }; then
4435  ac_header_compiler=yes
4436else
4437  echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440ac_header_compiler=no
4441fi
4442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4444echo "${ECHO_T}$ac_header_compiler" >&6
4445
4446# Is the header present?
4447echo "$as_me:$LINENO: checking $ac_header presence" >&5
4448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4449cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h.  */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h.  */
4455#include <$ac_header>
4456_ACEOF
4457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4459  ac_status=$?
4460  grep -v '^ *+' conftest.er1 >conftest.err
4461  rm -f conftest.er1
4462  cat conftest.err >&5
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); } >/dev/null; then
4465  if test -s conftest.err; then
4466    ac_cpp_err=$ac_c_preproc_warn_flag
4467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4468  else
4469    ac_cpp_err=
4470  fi
4471else
4472  ac_cpp_err=yes
4473fi
4474if test -z "$ac_cpp_err"; then
4475  ac_header_preproc=yes
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480  ac_header_preproc=no
4481fi
4482rm -f conftest.err conftest.$ac_ext
4483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4484echo "${ECHO_T}$ac_header_preproc" >&6
4485
4486# So?  What about this header?
4487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4488  yes:no: )
4489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4493    ac_header_preproc=yes
4494    ;;
4495  no:yes:* )
4496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4498    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4499echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4500    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4502    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4503echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4506    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4508    (
4509      cat <<\_ASBOX
4510## ----------------------------------------- ##
4511## Report this to darwinports@opendarwin.org ##
4512## ----------------------------------------- ##
4513_ASBOX
4514    ) |
4515      sed "s/^/$as_me: WARNING:     /" >&2
4516    ;;
4517esac
4518echo "$as_me:$LINENO: checking for $ac_header" >&5
4519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521  echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523  eval "$as_ac_Header=\$ac_header_preproc"
4524fi
4525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4527
4528fi
4529if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530  cat >>confdefs.h <<_ACEOF
4531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532_ACEOF
4533
4534fi
4535
4536done
4537
4538
4539INCLUDES="-I.. -I. $INCLUDES"
4540
4541# Checks for library functions.
4542echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4543echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4544if test "${ac_cv_func_closedir_void+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  if test "$cross_compiling" = yes; then
4548  ac_cv_func_closedir_void=yes
4549else
4550  cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h.  */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h.  */
4556$ac_includes_default
4557#include <$ac_header_dirent>
4558#ifndef __cplusplus
4559int closedir ();
4560#endif
4561
4562int
4563main ()
4564{
4565exit (closedir (opendir (".")) != 0);
4566  ;
4567  return 0;
4568}
4569_ACEOF
4570rm -f conftest$ac_exeext
4571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572  (eval $ac_link) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577  (eval $ac_try) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }; }; then
4581  ac_cv_func_closedir_void=no
4582else
4583  echo "$as_me: program exited with status $ac_status" >&5
4584echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587( exit $ac_status )
4588ac_cv_func_closedir_void=yes
4589fi
4590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4591fi
4592fi
4593echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4594echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
4595if test $ac_cv_func_closedir_void = yes; then
4596
4597cat >>confdefs.h <<\_ACEOF
4598#define CLOSEDIR_VOID 1
4599_ACEOF
4600
4601fi
4602
4603echo "$as_me:$LINENO: checking for pid_t" >&5
4604echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4605if test "${ac_cv_type_pid_t+set}" = set; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h.  */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h.  */
4614$ac_includes_default
4615int
4616main ()
4617{
4618if ((pid_t *) 0)
4619  return 0;
4620if (sizeof (pid_t))
4621  return 0;
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext
4627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628  (eval $ac_compile) 2>conftest.er1
4629  ac_status=$?
4630  grep -v '^ *+' conftest.er1 >conftest.err
4631  rm -f conftest.er1
4632  cat conftest.err >&5
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); } &&
4635         { ac_try='test -z "$ac_c_werror_flag"
4636                         || test ! -s conftest.err'
4637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638  (eval $ac_try) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; } &&
4642         { ac_try='test -s conftest.$ac_objext'
4643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644  (eval $ac_try) 2>&5
4645  ac_status=$?
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); }; }; then
4648  ac_cv_type_pid_t=yes
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653ac_cv_type_pid_t=no
4654fi
4655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656fi
4657echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4658echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4659if test $ac_cv_type_pid_t = yes; then
4660  :
4661else
4662
4663cat >>confdefs.h <<_ACEOF
4664#define pid_t int
4665_ACEOF
4666
4667fi
4668
4669
4670
4671for ac_header in unistd.h vfork.h
4672do
4673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675  echo "$as_me:$LINENO: checking for $ac_header" >&5
4676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4677if eval "test \"\${$as_ac_Header+set}\" = set"; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679fi
4680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4682else
4683  # Is the header compilable?
4684echo "$as_me:$LINENO: checking $ac_header usability" >&5
4685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4686cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h.  */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h.  */
4692$ac_includes_default
4693#include <$ac_header>
4694_ACEOF
4695rm -f conftest.$ac_objext
4696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697  (eval $ac_compile) 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704         { ac_try='test -z "$ac_c_werror_flag"
4705                         || test ! -s conftest.err'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711         { ac_try='test -s conftest.$ac_objext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  ac_header_compiler=yes
4718else
4719  echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722ac_header_compiler=no
4723fi
4724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4726echo "${ECHO_T}$ac_header_compiler" >&6
4727
4728# Is the header present?
4729echo "$as_me:$LINENO: checking $ac_header presence" >&5
4730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4731cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737#include <$ac_header>
4738_ACEOF
4739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4741  ac_status=$?
4742  grep -v '^ *+' conftest.er1 >conftest.err
4743  rm -f conftest.er1
4744  cat conftest.err >&5
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } >/dev/null; then
4747  if test -s conftest.err; then
4748    ac_cpp_err=$ac_c_preproc_warn_flag
4749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4750  else
4751    ac_cpp_err=
4752  fi
4753else
4754  ac_cpp_err=yes
4755fi
4756if test -z "$ac_cpp_err"; then
4757  ac_header_preproc=yes
4758else
4759  echo "$as_me: failed program was:" >&5
4760sed 's/^/| /' conftest.$ac_ext >&5
4761
4762  ac_header_preproc=no
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766echo "${ECHO_T}$ac_header_preproc" >&6
4767
4768# So?  What about this header?
4769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770  yes:no: )
4771    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4775    ac_header_preproc=yes
4776    ;;
4777  no:yes:* )
4778    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4780    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4781echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4782    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4784    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4785echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4788    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4790    (
4791      cat <<\_ASBOX
4792## ----------------------------------------- ##
4793## Report this to darwinports@opendarwin.org ##
4794## ----------------------------------------- ##
4795_ASBOX
4796    ) |
4797      sed "s/^/$as_me: WARNING:     /" >&2
4798    ;;
4799esac
4800echo "$as_me:$LINENO: checking for $ac_header" >&5
4801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4802if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805  eval "$as_ac_Header=\$ac_header_preproc"
4806fi
4807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4809
4810fi
4811if test `eval echo '${'$as_ac_Header'}'` = yes; then
4812  cat >>confdefs.h <<_ACEOF
4813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814_ACEOF
4815
4816fi
4817
4818done
4819
4820
4821
4822for ac_func in fork vfork
4823do
4824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4825echo "$as_me:$LINENO: checking for $ac_func" >&5
4826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4827if eval "test \"\${$as_ac_var+set}\" = set"; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  cat >conftest.$ac_ext <<_ACEOF
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4838#define $ac_func innocuous_$ac_func
4839
4840/* System header to define __stub macros and hopefully few prototypes,
4841    which can conflict with char $ac_func (); below.
4842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4843    <limits.h> exists even on freestanding compilers.  */
4844
4845#ifdef __STDC__
4846# include <limits.h>
4847#else
4848# include <assert.h>
4849#endif
4850
4851#undef $ac_func
4852
4853/* Override any gcc2 internal prototype to avoid an error.  */
4854#ifdef __cplusplus
4855extern "C"
4856{
4857#endif
4858/* We use char because int might match the return type of a gcc2
4859   builtin and then its argument prototype would still apply.  */
4860char $ac_func ();
4861/* The GNU C library defines this for functions which it implements
4862    to always fail with ENOSYS.  Some functions are actually named
4863    something starting with __ and the normal name is an alias.  */
4864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865choke me
4866#else
4867char (*f) () = $ac_func;
4868#endif
4869#ifdef __cplusplus
4870}
4871#endif
4872
4873int
4874main ()
4875{
4876return f != $ac_func;
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext conftest$ac_exeext
4882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883  (eval $ac_link) 2>conftest.er1
4884  ac_status=$?
4885  grep -v '^ *+' conftest.er1 >conftest.err
4886  rm -f conftest.er1
4887  cat conftest.err >&5
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); } &&
4890         { ac_try='test -z "$ac_c_werror_flag"
4891                         || test ! -s conftest.err'
4892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893  (eval $ac_try) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; } &&
4897         { ac_try='test -s conftest$ac_exeext'
4898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899  (eval $ac_try) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); }; }; then
4903  eval "$as_ac_var=yes"
4904else
4905  echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908eval "$as_ac_var=no"
4909fi
4910rm -f conftest.err conftest.$ac_objext \
4911      conftest$ac_exeext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4915if test `eval echo '${'$as_ac_var'}'` = yes; then
4916  cat >>confdefs.h <<_ACEOF
4917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4918_ACEOF
4919
4920fi
4921done
4922
4923if test "x$ac_cv_func_fork" = xyes; then
4924  echo "$as_me:$LINENO: checking for working fork" >&5
4925echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4926if test "${ac_cv_func_fork_works+set}" = set; then
4927  echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929  if test "$cross_compiling" = yes; then
4930  ac_cv_func_fork_works=cross
4931else
4932  cat >conftest.$ac_ext <<_ACEOF
4933/* By Ruediger Kuhlmann. */
4934      #include <sys/types.h>
4935      #if HAVE_UNISTD_H
4936      # include <unistd.h>
4937      #endif
4938      /* Some systems only have a dummy stub for fork() */
4939      int main ()
4940      {
4941        if (fork() < 0)
4942          exit (1);
4943        exit (0);
4944      }
4945_ACEOF
4946rm -f conftest$ac_exeext
4947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948  (eval $ac_link) 2>&5
4949  ac_status=$?
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953  (eval $ac_try) 2>&5
4954  ac_status=$?
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); }; }; then
4957  ac_cv_func_fork_works=yes
4958else
4959  echo "$as_me: program exited with status $ac_status" >&5
4960echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963( exit $ac_status )
4964ac_cv_func_fork_works=no
4965fi
4966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4967fi
4968fi
4969echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4970echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4971
4972else
4973  ac_cv_func_fork_works=$ac_cv_func_fork
4974fi
4975if test "x$ac_cv_func_fork_works" = xcross; then
4976  case $host in
4977    *-*-amigaos* | *-*-msdosdjgpp*)
4978      # Override, as these systems have only a dummy fork() stub
4979      ac_cv_func_fork_works=no
4980      ;;
4981    *)
4982      ac_cv_func_fork_works=yes
4983      ;;
4984  esac
4985  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4986echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4987fi
4988ac_cv_func_vfork_works=$ac_cv_func_vfork
4989if test "x$ac_cv_func_vfork" = xyes; then
4990  echo "$as_me:$LINENO: checking for working vfork" >&5
4991echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4992if test "${ac_cv_func_vfork_works+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  if test "$cross_compiling" = yes; then
4996  ac_cv_func_vfork_works=cross
4997else
4998  cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004/* Thanks to Paul Eggert for this test.  */
5005#include <stdio.h>
5006#include <stdlib.h>
5007#include <sys/types.h>
5008#include <sys/stat.h>
5009#include <sys/wait.h>
5010#if HAVE_UNISTD_H
5011# include <unistd.h>
5012#endif
5013#if HAVE_VFORK_H
5014# include <vfork.h>
5015#endif
5016/* On some sparc systems, changes by the child to local and incoming
5017   argument registers are propagated back to the parent.  The compiler
5018   is told about this with #include <vfork.h>, but some compilers
5019   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5020   static variable whose address is put into a register that is
5021   clobbered by the vfork.  */
5022static void
5023#ifdef __cplusplus
5024sparc_address_test (int arg)
5025# else
5026sparc_address_test (arg) int arg;
5027#endif
5028{
5029  static pid_t child;
5030  if (!child) {
5031    child = vfork ();
5032    if (child < 0) {
5033      perror ("vfork");
5034      _exit(2);
5035    }
5036    if (!child) {
5037      arg = getpid();
5038      write(-1, "", 0);
5039      _exit (arg);
5040    }
5041  }
5042}
5043
5044int
5045main ()
5046{
5047  pid_t parent = getpid ();
5048  pid_t child;
5049
5050  sparc_address_test (0);
5051
5052  child = vfork ();
5053
5054  if (child == 0) {
5055    /* Here is another test for sparc vfork register problems.  This
5056       test uses lots of local variables, at least as many local
5057       variables as main has allocated so far including compiler
5058       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5059       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5060       reuse the register of parent for one of the local variables,
5061       since it will think that parent can't possibly be used any more
5062       in this routine.  Assigning to the local variable will thus
5063       munge parent in the parent process.  */
5064    pid_t
5065      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5066      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5067    /* Convince the compiler that p..p7 are live; otherwise, it might
5068       use the same hardware register for all 8 local variables.  */
5069    if (p != p1 || p != p2 || p != p3 || p != p4
5070        || p != p5 || p != p6 || p != p7)
5071      _exit(1);
5072
5073    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5074       from child file descriptors.  If the child closes a descriptor
5075       before it execs or exits, this munges the parent's descriptor
5076       as well.  Test for this by closing stdout in the child.  */
5077    _exit(close(fileno(stdout)) != 0);
5078  } else {
5079    int status;
5080    struct stat st;
5081
5082    while (wait(&status) != child)
5083      ;
5084    exit(
5085         /* Was there some problem with vforking?  */
5086         child < 0
5087
5088         /* Did the child fail?  (This shouldn't happen.)  */
5089         || status
5090
5091         /* Did the vfork/compiler bug occur?  */
5092         || parent != getpid()
5093
5094         /* Did the file descriptor bug occur?  */
5095         || fstat(fileno(stdout), &st) != 0
5096         );
5097  }
5098}
5099_ACEOF
5100rm -f conftest$ac_exeext
5101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102  (eval $ac_link) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107  (eval $ac_try) 2>&5
5108  ac_status=$?
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); }; }; then
5111  ac_cv_func_vfork_works=yes
5112else
5113  echo "$as_me: program exited with status $ac_status" >&5
5114echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117( exit $ac_status )
5118ac_cv_func_vfork_works=no
5119fi
5120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121fi
5122fi
5123echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5124echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5125
5126fi;
5127if test "x$ac_cv_func_fork_works" = xcross; then
5128  ac_cv_func_vfork_works=$ac_cv_func_vfork
5129  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5130echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5131fi
5132
5133if test "x$ac_cv_func_vfork_works" = xyes; then
5134
5135cat >>confdefs.h <<\_ACEOF
5136#define HAVE_WORKING_VFORK 1
5137_ACEOF
5138
5139else
5140
5141cat >>confdefs.h <<\_ACEOF
5142#define vfork fork
5143_ACEOF
5144
5145fi
5146if test "x$ac_cv_func_fork_works" = xyes; then
5147
5148cat >>confdefs.h <<\_ACEOF
5149#define HAVE_WORKING_FORK 1
5150_ACEOF
5151
5152fi
5153
5154echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5155echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5156if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165$ac_includes_default
5166int
5167main ()
5168{
5169#ifndef strerror_r
5170  char *p = (char *) strerror_r;
5171#endif
5172
5173  ;
5174  return 0;
5175}
5176_ACEOF
5177rm -f conftest.$ac_objext
5178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179  (eval $ac_compile) 2>conftest.er1
5180  ac_status=$?
5181  grep -v '^ *+' conftest.er1 >conftest.err
5182  rm -f conftest.er1
5183  cat conftest.err >&5
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); } &&
5186         { ac_try='test -z "$ac_c_werror_flag"
5187                         || test ! -s conftest.err'
5188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189  (eval $ac_try) 2>&5
5190  ac_status=$?
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); }; } &&
5193         { ac_try='test -s conftest.$ac_objext'
5194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195  (eval $ac_try) 2>&5
5196  ac_status=$?
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); }; }; then
5199  ac_cv_have_decl_strerror_r=yes
5200else
5201  echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204ac_cv_have_decl_strerror_r=no
5205fi
5206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5207fi
5208echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5209echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5210if test $ac_cv_have_decl_strerror_r = yes; then
5211
5212cat >>confdefs.h <<_ACEOF
5213#define HAVE_DECL_STRERROR_R 1
5214_ACEOF
5215
5216
5217else
5218  cat >>confdefs.h <<_ACEOF
5219#define HAVE_DECL_STRERROR_R 0
5220_ACEOF
5221
5222
5223fi
5224
5225
5226
5227for ac_func in strerror_r
5228do
5229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5230echo "$as_me:$LINENO: checking for $ac_func" >&5
5231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5232if eval "test \"\${$as_ac_var+set}\" = set"; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5242   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5243#define $ac_func innocuous_$ac_func
5244
5245/* System header to define __stub macros and hopefully few prototypes,
5246    which can conflict with char $ac_func (); below.
5247    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248    <limits.h> exists even on freestanding compilers.  */
5249
5250#ifdef __STDC__
5251# include <limits.h>
5252#else
5253# include <assert.h>
5254#endif
5255
5256#undef $ac_func
5257
5258/* Override any gcc2 internal prototype to avoid an error.  */
5259#ifdef __cplusplus
5260extern "C"
5261{
5262#endif
5263/* We use char because int might match the return type of a gcc2
5264   builtin and then its argument prototype would still apply.  */
5265char $ac_func ();
5266/* The GNU C library defines this for functions which it implements
5267    to always fail with ENOSYS.  Some functions are actually named
5268    something starting with __ and the normal name is an alias.  */
5269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5270choke me
5271#else
5272char (*f) () = $ac_func;
5273#endif
5274#ifdef __cplusplus
5275}
5276#endif
5277
5278int
5279main ()
5280{
5281return f != $ac_func;
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext conftest$ac_exeext
5287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288  (eval $ac_link) 2>conftest.er1
5289  ac_status=$?
5290  grep -v '^ *+' conftest.er1 >conftest.err
5291  rm -f conftest.er1
5292  cat conftest.err >&5
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); } &&
5295         { ac_try='test -z "$ac_c_werror_flag"
5296                         || test ! -s conftest.err'
5297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298  (eval $ac_try) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }; } &&
5302         { ac_try='test -s conftest$ac_exeext'
5303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304  (eval $ac_try) 2>&5
5305  ac_status=$?
5306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307  (exit $ac_status); }; }; then
5308  eval "$as_ac_var=yes"
5309else
5310  echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313eval "$as_ac_var=no"
5314fi
5315rm -f conftest.err conftest.$ac_objext \
5316      conftest$ac_exeext conftest.$ac_ext
5317fi
5318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5320if test `eval echo '${'$as_ac_var'}'` = yes; then
5321  cat >>confdefs.h <<_ACEOF
5322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5323_ACEOF
5324
5325fi
5326done
5327
5328echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5329echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
5330if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333
5334    ac_cv_func_strerror_r_char_p=no
5335    if test $ac_cv_have_decl_strerror_r = yes; then
5336      cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342$ac_includes_default
5343int
5344main ()
5345{
5346
5347          char buf[100];
5348          char x = *strerror_r (0, buf, sizeof buf);
5349          char *p = strerror_r (0, buf, sizeof buf);
5350
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357  (eval $ac_compile) 2>conftest.er1
5358  ac_status=$?
5359  grep -v '^ *+' conftest.er1 >conftest.err
5360  rm -f conftest.er1
5361  cat conftest.err >&5
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); } &&
5364         { ac_try='test -z "$ac_c_werror_flag"
5365                         || test ! -s conftest.err'
5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367  (eval $ac_try) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }; } &&
5371         { ac_try='test -s conftest.$ac_objext'
5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373  (eval $ac_try) 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); }; }; then
5377  ac_cv_func_strerror_r_char_p=yes
5378else
5379  echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384    else
5385      # strerror_r is not declared.  Choose between
5386      # systems that have relatively inaccessible declarations for the
5387      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5388      # former has a strerror_r that returns char*, while the latter
5389      # has a strerror_r that returns `int'.
5390      # This test should segfault on the DEC system.
5391      if test "$cross_compiling" = yes; then
5392  :
5393else
5394  cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400$ac_includes_default
5401        extern char *strerror_r ();
5402int
5403main ()
5404{
5405char buf[100];
5406          char x = *strerror_r (0, buf, sizeof buf);
5407          exit (!isalpha (x));
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412rm -f conftest$ac_exeext
5413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414  (eval $ac_link) 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419  (eval $ac_try) 2>&5
5420  ac_status=$?
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); }; }; then
5423  ac_cv_func_strerror_r_char_p=yes
5424else
5425  echo "$as_me: program exited with status $ac_status" >&5
5426echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429fi
5430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431fi
5432    fi
5433
5434fi
5435echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5436echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
5437if test $ac_cv_func_strerror_r_char_p = yes; then
5438
5439cat >>confdefs.h <<\_ACEOF
5440#define STRERROR_R_CHAR_P 1
5441_ACEOF
5442
5443fi
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp copyfile
5460do
5461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5462echo "$as_me:$LINENO: checking for $ac_func" >&5
5463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5464if eval "test \"\${$as_ac_var+set}\" = set"; then
5465  echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467  cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5475#define $ac_func innocuous_$ac_func
5476
5477/* System header to define __stub macros and hopefully few prototypes,
5478    which can conflict with char $ac_func (); below.
5479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5480    <limits.h> exists even on freestanding compilers.  */
5481
5482#ifdef __STDC__
5483# include <limits.h>
5484#else
5485# include <assert.h>
5486#endif
5487
5488#undef $ac_func
5489
5490/* Override any gcc2 internal prototype to avoid an error.  */
5491#ifdef __cplusplus
5492extern "C"
5493{
5494#endif
5495/* We use char because int might match the return type of a gcc2
5496   builtin and then its argument prototype would still apply.  */
5497char $ac_func ();
5498/* The GNU C library defines this for functions which it implements
5499    to always fail with ENOSYS.  Some functions are actually named
5500    something starting with __ and the normal name is an alias.  */
5501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5502choke me
5503#else
5504char (*f) () = $ac_func;
5505#endif
5506#ifdef __cplusplus
5507}
5508#endif
5509
5510int
5511main ()
5512{
5513return f != $ac_func;
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext conftest$ac_exeext
5519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520  (eval $ac_link) 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } &&
5527         { ac_try='test -z "$ac_c_werror_flag"
5528                         || test ! -s conftest.err'
5529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530  (eval $ac_try) 2>&5
5531  ac_status=$?
5532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533  (exit $ac_status); }; } &&
5534         { ac_try='test -s conftest$ac_exeext'
5535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536  (eval $ac_try) 2>&5
5537  ac_status=$?
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); }; }; then
5540  eval "$as_ac_var=yes"
5541else
5542  echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545eval "$as_ac_var=no"
5546fi
5547rm -f conftest.err conftest.$ac_objext \
5548      conftest$ac_exeext conftest.$ac_ext
5549fi
5550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5552if test `eval echo '${'$as_ac_var'}'` = yes; then
5553  cat >>confdefs.h <<_ACEOF
5554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5555_ACEOF
5556
5557fi
5558done
5559
5560
5561# Check for md5 implementation
5562
5563
5564        # Check for libmd, which is prefered
5565        echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&5
5566echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
5567if test "${ac_cv_lib_md_MD5Update+set}" = set; then
5568  echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570  ac_check_lib_save_LIBS=$LIBS
5571LIBS="-lmd  $LIBS"
5572cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h.  */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h.  */
5578
5579/* Override any gcc2 internal prototype to avoid an error.  */
5580#ifdef __cplusplus
5581extern "C"
5582#endif
5583/* We use char because int might match the return type of a gcc2
5584   builtin and then its argument prototype would still apply.  */
5585char MD5Update ();
5586int
5587main ()
5588{
5589MD5Update ();
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596  (eval $ac_link) 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } &&
5603         { ac_try='test -z "$ac_c_werror_flag"
5604                         || test ! -s conftest.err'
5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606  (eval $ac_try) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); }; } &&
5610         { ac_try='test -s conftest$ac_exeext'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; }; then
5616  ac_cv_lib_md_MD5Update=yes
5617else
5618  echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621ac_cv_lib_md_MD5Update=no
5622fi
5623rm -f conftest.err conftest.$ac_objext \
5624      conftest$ac_exeext conftest.$ac_ext
5625LIBS=$ac_check_lib_save_LIBS
5626fi
5627echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&5
5628echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
5629if test $ac_cv_lib_md_MD5Update = yes; then
5630
5631
5632for ac_header in md5.h
5633do
5634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636  echo "$as_me:$LINENO: checking for $ac_header" >&5
5637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5638if eval "test \"\${$as_ac_Header+set}\" = set"; then
5639  echo $ECHO_N "(cached) $ECHO_C" >&6
5640fi
5641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5643else
5644  # Is the header compilable?
5645echo "$as_me:$LINENO: checking $ac_header usability" >&5
5646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5647cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h.  */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h.  */
5653$ac_includes_default
5654#include <$ac_header>
5655_ACEOF
5656rm -f conftest.$ac_objext
5657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658  (eval $ac_compile) 2>conftest.er1
5659  ac_status=$?
5660  grep -v '^ *+' conftest.er1 >conftest.err
5661  rm -f conftest.er1
5662  cat conftest.err >&5
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); } &&
5665         { ac_try='test -z "$ac_c_werror_flag"
5666                         || test ! -s conftest.err'
5667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668  (eval $ac_try) 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; } &&
5672         { ac_try='test -s conftest.$ac_objext'
5673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674  (eval $ac_try) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }; }; then
5678  ac_header_compiler=yes
5679else
5680  echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683ac_header_compiler=no
5684fi
5685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5687echo "${ECHO_T}$ac_header_compiler" >&6
5688
5689# Is the header present?
5690echo "$as_me:$LINENO: checking $ac_header presence" >&5
5691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5692cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698#include <$ac_header>
5699_ACEOF
5700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5701  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } >/dev/null; then
5708  if test -s conftest.err; then
5709    ac_cpp_err=$ac_c_preproc_warn_flag
5710    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5711  else
5712    ac_cpp_err=
5713  fi
5714else
5715  ac_cpp_err=yes
5716fi
5717if test -z "$ac_cpp_err"; then
5718  ac_header_preproc=yes
5719else
5720  echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723  ac_header_preproc=no
5724fi
5725rm -f conftest.err conftest.$ac_ext
5726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5727echo "${ECHO_T}$ac_header_preproc" >&6
5728
5729# So?  What about this header?
5730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5731  yes:no: )
5732    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5734    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5736    ac_header_preproc=yes
5737    ;;
5738  no:yes:* )
5739    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5741    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5742echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5743    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5745    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5746echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5747    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5749    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5751    (
5752      cat <<\_ASBOX
5753## ----------------------------------------- ##
5754## Report this to darwinports@opendarwin.org ##
5755## ----------------------------------------- ##
5756_ASBOX
5757    ) |
5758      sed "s/^/$as_me: WARNING:     /" >&2
5759    ;;
5760esac
5761echo "$as_me:$LINENO: checking for $ac_header" >&5
5762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5763if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  eval "$as_ac_Header=\$ac_header_preproc"
5767fi
5768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770
5771fi
5772if test `eval echo '${'$as_ac_Header'}'` = yes; then
5773  cat >>confdefs.h <<_ACEOF
5774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775_ACEOF
5776
5777else
5778
5779                        case $host_os in
5780                                darwin*)
5781                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
5782echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
5783                                        ;;
5784                                *)
5785                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
5786echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
5787                                        ;;
5788                        esac
5789                        { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&5
5790echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
5791   { (exit 1); exit 1; }; }
5792
5793fi
5794
5795done
5796
5797
5798cat >>confdefs.h <<\_ACEOF
5799#define HAVE_LIBMD
5800_ACEOF
5801
5802                MD5_LIBS="-lmd"
5803
5804fi
5805
5806        if test "x$MD5_LIBS" = "x" ; then
5807                # If libmd is not found, check for libcrypto from OpenSSL
5808                echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&5
5809echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
5810if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
5811  echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813  ac_check_lib_save_LIBS=$LIBS
5814LIBS="-lcrypto  $LIBS"
5815cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h.  */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h.  */
5821
5822/* Override any gcc2 internal prototype to avoid an error.  */
5823#ifdef __cplusplus
5824extern "C"
5825#endif
5826/* We use char because int might match the return type of a gcc2
5827   builtin and then its argument prototype would still apply.  */
5828char MD5_Update ();
5829int
5830main ()
5831{
5832MD5_Update ();
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext conftest$ac_exeext
5838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839  (eval $ac_link) 2>conftest.er1
5840  ac_status=$?
5841  grep -v '^ *+' conftest.er1 >conftest.err
5842  rm -f conftest.er1
5843  cat conftest.err >&5
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); } &&
5846         { ac_try='test -z "$ac_c_werror_flag"
5847                         || test ! -s conftest.err'
5848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849  (eval $ac_try) 2>&5
5850  ac_status=$?
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); }; } &&
5853         { ac_try='test -s conftest$ac_exeext'
5854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855  (eval $ac_try) 2>&5
5856  ac_status=$?
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); }; }; then
5859  ac_cv_lib_crypto_MD5_Update=yes
5860else
5861  echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864ac_cv_lib_crypto_MD5_Update=no
5865fi
5866rm -f conftest.err conftest.$ac_objext \
5867      conftest$ac_exeext conftest.$ac_ext
5868LIBS=$ac_check_lib_save_LIBS
5869fi
5870echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&5
5871echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
5872if test $ac_cv_lib_crypto_MD5_Update = yes; then
5873
5874
5875for ac_header in openssl/md5.h
5876do
5877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5878if eval "test \"\${$as_ac_Header+set}\" = set"; then
5879  echo "$as_me:$LINENO: checking for $ac_header" >&5
5880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5881if eval "test \"\${$as_ac_Header+set}\" = set"; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883fi
5884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886else
5887  # Is the header compilable?
5888echo "$as_me:$LINENO: checking $ac_header usability" >&5
5889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5890cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896$ac_includes_default
5897#include <$ac_header>
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901  (eval $ac_compile) 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } &&
5908         { ac_try='test -z "$ac_c_werror_flag"
5909                         || test ! -s conftest.err'
5910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911  (eval $ac_try) 2>&5
5912  ac_status=$?
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); }; } &&
5915         { ac_try='test -s conftest.$ac_objext'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  ac_header_compiler=yes
5922else
5923  echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926ac_header_compiler=no
5927fi
5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5930echo "${ECHO_T}$ac_header_compiler" >&6
5931
5932# Is the header present?
5933echo "$as_me:$LINENO: checking $ac_header presence" >&5
5934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5935cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941#include <$ac_header>
5942_ACEOF
5943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945  ac_status=$?
5946  grep -v '^ *+' conftest.er1 >conftest.err
5947  rm -f conftest.er1
5948  cat conftest.err >&5
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); } >/dev/null; then
5951  if test -s conftest.err; then
5952    ac_cpp_err=$ac_c_preproc_warn_flag
5953    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954  else
5955    ac_cpp_err=
5956  fi
5957else
5958  ac_cpp_err=yes
5959fi
5960if test -z "$ac_cpp_err"; then
5961  ac_header_preproc=yes
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966  ac_header_preproc=no
5967fi
5968rm -f conftest.err conftest.$ac_ext
5969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5970echo "${ECHO_T}$ac_header_preproc" >&6
5971
5972# So?  What about this header?
5973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5974  yes:no: )
5975    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5977    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5979    ac_header_preproc=yes
5980    ;;
5981  no:yes:* )
5982    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5984    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5985echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5986    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5988    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5989echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5992    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5994    (
5995      cat <<\_ASBOX
5996## ----------------------------------------- ##
5997## Report this to darwinports@opendarwin.org ##
5998## ----------------------------------------- ##
5999_ASBOX
6000    ) |
6001      sed "s/^/$as_me: WARNING:     /" >&2
6002    ;;
6003esac
6004echo "$as_me:$LINENO: checking for $ac_header" >&5
6005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6006if eval "test \"\${$as_ac_Header+set}\" = set"; then
6007  echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009  eval "$as_ac_Header=\$ac_header_preproc"
6010fi
6011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013
6014fi
6015if test `eval echo '${'$as_ac_Header'}'` = yes; then
6016  cat >>confdefs.h <<_ACEOF
6017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018_ACEOF
6019
6020else
6021
6022                                case $host_os in
6023                                        darwin*)
6024                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
6025echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
6026                                                ;;
6027                                        *)
6028                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
6029echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
6030                                                ;;
6031                                esac
6032                                { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
6033echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
6034   { (exit 1); exit 1; }; }
6035
6036fi
6037
6038done
6039
6040
6041cat >>confdefs.h <<\_ACEOF
6042#define HAVE_LIBCRYPTO
6043_ACEOF
6044
6045                        MD5_LIBS="-lcrypto"
6046
6047else
6048
6049                        { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6050echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6051   { (exit 1); exit 1; }; }
6052
6053fi
6054
6055        fi
6056        if test "x$MD5_LIBS" = "x"; then
6057                { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6058echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6059   { (exit 1); exit 1; }; }
6060        fi
6061
6062
6063# Check for X11 and paraphernalia
6064echo "$as_me:$LINENO: checking for X" >&5
6065echo $ECHO_N "checking for X... $ECHO_C" >&6
6066
6067
6068# Check whether --with-x or --without-x was given.
6069if test "${with_x+set}" = set; then
6070  withval="$with_x"
6071
6072fi;
6073# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6074if test "x$with_x" = xno; then
6075  # The user explicitly disabled X.
6076  have_x=disabled
6077else
6078  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6079    # Both variables are already set.
6080    have_x=yes
6081  else
6082    if test "${ac_cv_have_x+set}" = set; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085  # One or both of the vars are not set, and there is no cached value.
6086ac_x_includes=no ac_x_libraries=no
6087rm -fr conftest.dir
6088if mkdir conftest.dir; then
6089  cd conftest.dir
6090  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6091  cat >Imakefile <<'_ACEOF'
6092acfindx:
6093        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6094_ACEOF
6095  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6096    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6097    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6098    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6099    for ac_extension in a so sl; do
6100      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6101         test -f $ac_im_libdir/libX11.$ac_extension; then
6102        ac_im_usrlibdir=$ac_im_libdir; break
6103      fi
6104    done
6105    # Screen out bogus values from the imake configuration.  They are
6106    # bogus both because they are the default anyway, and because
6107    # using them would break gcc on systems where it needs fixed includes.
6108    case $ac_im_incroot in
6109        /usr/include) ;;
6110        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6111    esac
6112    case $ac_im_usrlibdir in
6113        /usr/lib | /lib) ;;
6114        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6115    esac
6116  fi
6117  cd ..
6118  rm -fr conftest.dir
6119fi
6120
6121# Standard set of common directories for X headers.
6122# Check X11 before X11Rn because it is often a symlink to the current release.
6123ac_x_header_dirs='
6124/usr/X11/include
6125/usr/X11R6/include
6126/usr/X11R5/include
6127/usr/X11R4/include
6128
6129/usr/include/X11
6130/usr/include/X11R6
6131/usr/include/X11R5
6132/usr/include/X11R4
6133
6134/usr/local/X11/include
6135/usr/local/X11R6/include
6136/usr/local/X11R5/include
6137/usr/local/X11R4/include
6138
6139/usr/local/include/X11
6140/usr/local/include/X11R6
6141/usr/local/include/X11R5
6142/usr/local/include/X11R4
6143
6144/usr/X386/include
6145/usr/x386/include
6146/usr/XFree86/include/X11
6147
6148/usr/include
6149/usr/local/include
6150/usr/unsupported/include
6151/usr/athena/include
6152/usr/local/x11r5/include
6153/usr/lpp/Xamples/include
6154
6155/usr/openwin/include
6156/usr/openwin/share/include'
6157
6158if test "$ac_x_includes" = no; then
6159  # Guess where to find include files, by looking for Intrinsic.h.
6160  # First, try using that file with no special directory specified.
6161  cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h.  */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h.  */
6167#include <X11/Intrinsic.h>
6168_ACEOF
6169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171  ac_status=$?
6172  grep -v '^ *+' conftest.er1 >conftest.err
6173  rm -f conftest.er1
6174  cat conftest.err >&5
6175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); } >/dev/null; then
6177  if test -s conftest.err; then
6178    ac_cpp_err=$ac_c_preproc_warn_flag
6179    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180  else
6181    ac_cpp_err=
6182  fi
6183else
6184  ac_cpp_err=yes
6185fi
6186if test -z "$ac_cpp_err"; then
6187  # We can compile using X headers with no special include directory.
6188ac_x_includes=
6189else
6190  echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193  for ac_dir in $ac_x_header_dirs; do
6194  if test -r "$ac_dir/X11/Intrinsic.h"; then
6195    ac_x_includes=$ac_dir
6196    break
6197  fi
6198done
6199fi
6200rm -f conftest.err conftest.$ac_ext
6201fi # $ac_x_includes = no
6202
6203if test "$ac_x_libraries" = no; then
6204  # Check for the libraries.
6205  # See if we find them without any special options.
6206  # Don't add to $LIBS permanently.
6207  ac_save_LIBS=$LIBS
6208  LIBS="-lXt $LIBS"
6209  cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h.  */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h.  */
6215#include <X11/Intrinsic.h>
6216int
6217main ()
6218{
6219XtMalloc (0)
6220  ;
6221  return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext conftest$ac_exeext
6225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226  (eval $ac_link) 2>conftest.er1
6227  ac_status=$?
6228  grep -v '^ *+' conftest.er1 >conftest.err
6229  rm -f conftest.er1
6230  cat conftest.err >&5
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); } &&
6233         { ac_try='test -z "$ac_c_werror_flag"
6234                         || test ! -s conftest.err'
6235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236  (eval $ac_try) 2>&5
6237  ac_status=$?
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); }; } &&
6240         { ac_try='test -s conftest$ac_exeext'
6241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242  (eval $ac_try) 2>&5
6243  ac_status=$?
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); }; }; then
6246  LIBS=$ac_save_LIBS
6247# We can link X programs with no special library path.
6248ac_x_libraries=
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253LIBS=$ac_save_LIBS
6254for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6255do
6256  # Don't even attempt the hair of trying to link an X program!
6257  for ac_extension in a so sl; do
6258    if test -r $ac_dir/libXt.$ac_extension; then
6259      ac_x_libraries=$ac_dir
6260      break 2
6261    fi
6262  done
6263done
6264fi
6265rm -f conftest.err conftest.$ac_objext \
6266      conftest$ac_exeext conftest.$ac_ext
6267fi # $ac_x_libraries = no
6268
6269if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6270  # Didn't find X anywhere.  Cache the known absence of X.
6271  ac_cv_have_x="have_x=no"
6272else
6273  # Record where we found X for the cache.
6274  ac_cv_have_x="have_x=yes \
6275                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6276fi
6277fi
6278
6279  fi
6280  eval "$ac_cv_have_x"
6281fi # $with_x != no
6282
6283if test "$have_x" != yes; then
6284  echo "$as_me:$LINENO: result: $have_x" >&5
6285echo "${ECHO_T}$have_x" >&6
6286  no_x=yes
6287else
6288  # If each of the values was on the command line, it overrides each guess.
6289  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6290  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6291  # Update the cache value to reflect the command line values.
6292  ac_cv_have_x="have_x=yes \
6293                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6294  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6295echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6296fi
6297
6298
6299
6300        if test "$no_x" = yes; then
6301  # Not all programs may use this symbol, but it does not hurt to define it.
6302
6303cat >>confdefs.h <<\_ACEOF
6304#define X_DISPLAY_MISSING 1
6305_ACEOF
6306
6307  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6308else
6309  if test -n "$x_includes"; then
6310    X_CFLAGS="$X_CFLAGS -I$x_includes"
6311  fi
6312
6313  # It would also be nice to do this for all -L options, not just this one.
6314  if test -n "$x_libraries"; then
6315    X_LIBS="$X_LIBS -L$x_libraries"
6316    # For Solaris; some versions of Sun CC require a space after -R and
6317    # others require no space.  Words are not sufficient . . . .
6318    case `(uname -sr) 2>/dev/null` in
6319    "SunOS 5"*)
6320      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6321echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6322      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6323      cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h.  */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h.  */
6329
6330int
6331main ()
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext conftest$ac_exeext
6339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340  (eval $ac_link) 2>conftest.er1
6341  ac_status=$?
6342  grep -v '^ *+' conftest.er1 >conftest.err
6343  rm -f conftest.er1
6344  cat conftest.err >&5
6345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346  (exit $ac_status); } &&
6347         { ac_try='test -z "$ac_c_werror_flag"
6348                         || test ! -s conftest.err'
6349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350  (eval $ac_try) 2>&5
6351  ac_status=$?
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); }; } &&
6354         { ac_try='test -s conftest$ac_exeext'
6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356  (eval $ac_try) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }; }; then
6360  ac_R_nospace=yes
6361else
6362  echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365ac_R_nospace=no
6366fi
6367rm -f conftest.err conftest.$ac_objext \
6368      conftest$ac_exeext conftest.$ac_ext
6369      if test $ac_R_nospace = yes; then
6370        echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
6372        X_LIBS="$X_LIBS -R$x_libraries"
6373      else
6374        LIBS="$ac_xsave_LIBS -R $x_libraries"
6375        cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h.  */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h.  */
6381
6382int
6383main ()
6384{
6385
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext conftest$ac_exeext
6391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392  (eval $ac_link) 2>conftest.er1
6393  ac_status=$?
6394  grep -v '^ *+' conftest.er1 >conftest.err
6395  rm -f conftest.er1
6396  cat conftest.err >&5
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } &&
6399         { ac_try='test -z "$ac_c_werror_flag"
6400                         || test ! -s conftest.err'
6401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402  (eval $ac_try) 2>&5
6403  ac_status=$?
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); }; } &&
6406         { ac_try='test -s conftest$ac_exeext'
6407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408  (eval $ac_try) 2>&5
6409  ac_status=$?
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); }; }; then
6412  ac_R_space=yes
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417ac_R_space=no
6418fi
6419rm -f conftest.err conftest.$ac_objext \
6420      conftest$ac_exeext conftest.$ac_ext
6421        if test $ac_R_space = yes; then
6422          echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424          X_LIBS="$X_LIBS -R $x_libraries"
6425        else
6426          echo "$as_me:$LINENO: result: neither works" >&5
6427echo "${ECHO_T}neither works" >&6
6428        fi
6429      fi
6430      LIBS=$ac_xsave_LIBS
6431    esac
6432  fi
6433
6434  # Check for system-dependent libraries X programs must link with.
6435  # Do this before checking for the system-independent R6 libraries
6436  # (-lICE), since we may need -lsocket or whatever for X linking.
6437
6438  if test "$ISC" = yes; then
6439    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6440  else
6441    # Martyn Johnson says this is needed for Ultrix, if the X
6442    # libraries were built with DECnet support.  And Karl Berry says
6443    # the Alpha needs dnet_stub (dnet does not exist).
6444    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6445    cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451
6452/* Override any gcc2 internal prototype to avoid an error.  */
6453#ifdef __cplusplus
6454extern "C"
6455#endif
6456/* We use char because int might match the return type of a gcc2
6457   builtin and then its argument prototype would still apply.  */
6458char XOpenDisplay ();
6459int
6460main ()
6461{
6462XOpenDisplay ();
6463  ;
6464  return 0;
6465}
6466_ACEOF
6467rm -f conftest.$ac_objext conftest$ac_exeext
6468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469  (eval $ac_link) 2>conftest.er1
6470  ac_status=$?
6471  grep -v '^ *+' conftest.er1 >conftest.err
6472  rm -f conftest.er1
6473  cat conftest.err >&5
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); } &&
6476         { ac_try='test -z "$ac_c_werror_flag"
6477                         || test ! -s conftest.err'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; } &&
6483         { ac_try='test -s conftest$ac_exeext'
6484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485  (eval $ac_try) 2>&5
6486  ac_status=$?
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); }; }; then
6489  :
6490else
6491  echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6495echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6496if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499  ac_check_lib_save_LIBS=$LIBS
6500LIBS="-ldnet  $LIBS"
6501cat >conftest.$ac_ext <<_ACEOF
6502/* confdefs.h.  */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h.  */
6507
6508/* Override any gcc2 internal prototype to avoid an error.  */
6509#ifdef __cplusplus
6510extern "C"
6511#endif
6512/* We use char because int might match the return type of a gcc2
6513   builtin and then its argument prototype would still apply.  */
6514char dnet_ntoa ();
6515int
6516main ()
6517{
6518dnet_ntoa ();
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523rm -f conftest.$ac_objext conftest$ac_exeext
6524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525  (eval $ac_link) 2>conftest.er1
6526  ac_status=$?
6527  grep -v '^ *+' conftest.er1 >conftest.err
6528  rm -f conftest.er1
6529  cat conftest.err >&5
6530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531  (exit $ac_status); } &&
6532         { ac_try='test -z "$ac_c_werror_flag"
6533                         || test ! -s conftest.err'
6534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535  (eval $ac_try) 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; } &&
6539         { ac_try='test -s conftest$ac_exeext'
6540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  (eval $ac_try) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); }; }; then
6545  ac_cv_lib_dnet_dnet_ntoa=yes
6546else
6547  echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550ac_cv_lib_dnet_dnet_ntoa=no
6551fi
6552rm -f conftest.err conftest.$ac_objext \
6553      conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6557echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6558if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6559  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6560fi
6561
6562    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6563      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6564echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6565if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  ac_check_lib_save_LIBS=$LIBS
6569LIBS="-ldnet_stub  $LIBS"
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h.  */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h.  */
6576
6577/* Override any gcc2 internal prototype to avoid an error.  */
6578#ifdef __cplusplus
6579extern "C"
6580#endif
6581/* We use char because int might match the return type of a gcc2
6582   builtin and then its argument prototype would still apply.  */
6583char dnet_ntoa ();
6584int
6585main ()
6586{
6587dnet_ntoa ();
6588  ;
6589  return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext conftest$ac_exeext
6593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594  (eval $ac_link) 2>conftest.er1
6595  ac_status=$?
6596  grep -v '^ *+' conftest.er1 >conftest.err
6597  rm -f conftest.er1
6598  cat conftest.err >&5
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); } &&
6601         { ac_try='test -z "$ac_c_werror_flag"
6602                         || test ! -s conftest.err'
6603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604  (eval $ac_try) 2>&5
6605  ac_status=$?
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); }; } &&
6608         { ac_try='test -s conftest$ac_exeext'
6609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610  (eval $ac_try) 2>&5
6611  ac_status=$?
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); }; }; then
6614  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619ac_cv_lib_dnet_stub_dnet_ntoa=no
6620fi
6621rm -f conftest.err conftest.$ac_objext \
6622      conftest$ac_exeext conftest.$ac_ext
6623LIBS=$ac_check_lib_save_LIBS
6624fi
6625echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6626echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6627if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6628  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6629fi
6630
6631    fi
6632fi
6633rm -f conftest.err conftest.$ac_objext \
6634      conftest$ac_exeext conftest.$ac_ext
6635    LIBS="$ac_xsave_LIBS"
6636
6637    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6638    # to get the SysV transport functions.
6639    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6640    # needs -lnsl.
6641    # The nsl library prevents programs from opening the X display
6642    # on Irix 5.2, according to T.E. Dickey.
6643    # The functions gethostbyname, getservbyname, and inet_addr are
6644    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6645    echo "$as_me:$LINENO: checking for gethostbyname" >&5
6646echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6647if test "${ac_cv_func_gethostbyname+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h.  */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h.  */
6656/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6657   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6658#define gethostbyname innocuous_gethostbyname
6659
6660/* System header to define __stub macros and hopefully few prototypes,
6661    which can conflict with char gethostbyname (); below.
6662    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6663    <limits.h> exists even on freestanding compilers.  */
6664
6665#ifdef __STDC__
6666# include <limits.h>
6667#else
6668# include <assert.h>
6669#endif
6670
6671#undef gethostbyname
6672
6673/* Override any gcc2 internal prototype to avoid an error.  */
6674#ifdef __cplusplus
6675extern "C"
6676{
6677#endif
6678/* We use char because int might match the return type of a gcc2
6679   builtin and then its argument prototype would still apply.  */
6680char gethostbyname ();
6681/* The GNU C library defines this for functions which it implements
6682    to always fail with ENOSYS.  Some functions are actually named
6683    something starting with __ and the normal name is an alias.  */
6684#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6685choke me
6686#else
6687char (*f) () = gethostbyname;
6688#endif
6689#ifdef __cplusplus
6690}
6691#endif
6692
6693int
6694main ()
6695{
6696return f != gethostbyname;
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703  (eval $ac_link) 2>conftest.er1
6704  ac_status=$?
6705  grep -v '^ *+' conftest.er1 >conftest.err
6706  rm -f conftest.er1
6707  cat conftest.err >&5
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); } &&
6710         { ac_try='test -z "$ac_c_werror_flag"
6711                         || test ! -s conftest.err'
6712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713  (eval $ac_try) 2>&5
6714  ac_status=$?
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); }; } &&
6717         { ac_try='test -s conftest$ac_exeext'
6718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719  (eval $ac_try) 2>&5
6720  ac_status=$?
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); }; }; then
6723  ac_cv_func_gethostbyname=yes
6724else
6725  echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728ac_cv_func_gethostbyname=no
6729fi
6730rm -f conftest.err conftest.$ac_objext \
6731      conftest$ac_exeext conftest.$ac_ext
6732fi
6733echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6734echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6735
6736    if test $ac_cv_func_gethostbyname = no; then
6737      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6738echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6739if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6740  echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742  ac_check_lib_save_LIBS=$LIBS
6743LIBS="-lnsl  $LIBS"
6744cat >conftest.$ac_ext <<_ACEOF
6745/* confdefs.h.  */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h.  */
6750
6751/* Override any gcc2 internal prototype to avoid an error.  */
6752#ifdef __cplusplus
6753extern "C"
6754#endif
6755/* We use char because int might match the return type of a gcc2
6756   builtin and then its argument prototype would still apply.  */
6757char gethostbyname ();
6758int
6759main ()
6760{
6761gethostbyname ();
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766rm -f conftest.$ac_objext conftest$ac_exeext
6767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6768  (eval $ac_link) 2>conftest.er1
6769  ac_status=$?
6770  grep -v '^ *+' conftest.er1 >conftest.err
6771  rm -f conftest.er1
6772  cat conftest.err >&5
6773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774  (exit $ac_status); } &&
6775         { ac_try='test -z "$ac_c_werror_flag"
6776                         || test ! -s conftest.err'
6777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778  (eval $ac_try) 2>&5
6779  ac_status=$?
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); }; } &&
6782         { ac_try='test -s conftest$ac_exeext'
6783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784  (eval $ac_try) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }; }; then
6788  ac_cv_lib_nsl_gethostbyname=yes
6789else
6790  echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793ac_cv_lib_nsl_gethostbyname=no
6794fi
6795rm -f conftest.err conftest.$ac_objext \
6796      conftest$ac_exeext conftest.$ac_ext
6797LIBS=$ac_check_lib_save_LIBS
6798fi
6799echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6800echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6801if test $ac_cv_lib_nsl_gethostbyname = yes; then
6802  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6803fi
6804
6805      if test $ac_cv_lib_nsl_gethostbyname = no; then
6806        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6807echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6808if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811  ac_check_lib_save_LIBS=$LIBS
6812LIBS="-lbsd  $LIBS"
6813cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819
6820/* Override any gcc2 internal prototype to avoid an error.  */
6821#ifdef __cplusplus
6822extern "C"
6823#endif
6824/* We use char because int might match the return type of a gcc2
6825   builtin and then its argument prototype would still apply.  */
6826char gethostbyname ();
6827int
6828main ()
6829{
6830gethostbyname ();
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835rm -f conftest.$ac_objext conftest$ac_exeext
6836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837  (eval $ac_link) 2>conftest.er1
6838  ac_status=$?
6839  grep -v '^ *+' conftest.er1 >conftest.err
6840  rm -f conftest.er1
6841  cat conftest.err >&5
6842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843  (exit $ac_status); } &&
6844         { ac_try='test -z "$ac_c_werror_flag"
6845                         || test ! -s conftest.err'
6846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847  (eval $ac_try) 2>&5
6848  ac_status=$?
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); }; } &&
6851         { ac_try='test -s conftest$ac_exeext'
6852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853  (eval $ac_try) 2>&5
6854  ac_status=$?
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); }; }; then
6857  ac_cv_lib_bsd_gethostbyname=yes
6858else
6859  echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862ac_cv_lib_bsd_gethostbyname=no
6863fi
6864rm -f conftest.err conftest.$ac_objext \
6865      conftest$ac_exeext conftest.$ac_ext
6866LIBS=$ac_check_lib_save_LIBS
6867fi
6868echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6869echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6870if test $ac_cv_lib_bsd_gethostbyname = yes; then
6871  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6872fi
6873
6874      fi
6875    fi
6876
6877    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6878    # socket/setsockopt and other routines are undefined under SCO ODT
6879    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6880    # on later versions), says Simon Leinen: it contains gethostby*
6881    # variants that don't use the name server (or something).  -lsocket
6882    # must be given before -lnsl if both are needed.  We assume that
6883    # if connect needs -lnsl, so does gethostbyname.
6884    echo "$as_me:$LINENO: checking for connect" >&5
6885echo $ECHO_N "checking for connect... $ECHO_C" >&6
6886if test "${ac_cv_func_connect+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  cat >conftest.$ac_ext <<_ACEOF
6890/* confdefs.h.  */
6891_ACEOF
6892cat confdefs.h >>conftest.$ac_ext
6893cat >>conftest.$ac_ext <<_ACEOF
6894/* end confdefs.h.  */
6895/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6897#define connect innocuous_connect
6898
6899/* System header to define __stub macros and hopefully few prototypes,
6900    which can conflict with char connect (); below.
6901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902    <limits.h> exists even on freestanding compilers.  */
6903
6904#ifdef __STDC__
6905# include <limits.h>
6906#else
6907# include <assert.h>
6908#endif
6909
6910#undef connect
6911
6912/* Override any gcc2 internal prototype to avoid an error.  */
6913#ifdef __cplusplus
6914extern "C"
6915{
6916#endif
6917/* We use char because int might match the return type of a gcc2
6918   builtin and then its argument prototype would still apply.  */
6919char connect ();
6920/* The GNU C library defines this for functions which it implements
6921    to always fail with ENOSYS.  Some functions are actually named
6922    something starting with __ and the normal name is an alias.  */
6923#if defined (__stub_connect) || defined (__stub___connect)
6924choke me
6925#else
6926char (*f) () = connect;
6927#endif
6928#ifdef __cplusplus
6929}
6930#endif
6931
6932int
6933main ()
6934{
6935return f != connect;
6936  ;
6937  return 0;
6938}
6939_ACEOF
6940rm -f conftest.$ac_objext conftest$ac_exeext
6941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942  (eval $ac_link) 2>conftest.er1
6943  ac_status=$?
6944  grep -v '^ *+' conftest.er1 >conftest.err
6945  rm -f conftest.er1
6946  cat conftest.err >&5
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); } &&
6949         { ac_try='test -z "$ac_c_werror_flag"
6950                         || test ! -s conftest.err'
6951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952  (eval $ac_try) 2>&5
6953  ac_status=$?
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); }; } &&
6956         { ac_try='test -s conftest$ac_exeext'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; }; then
6962  ac_cv_func_connect=yes
6963else
6964  echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967ac_cv_func_connect=no
6968fi
6969rm -f conftest.err conftest.$ac_objext \
6970      conftest$ac_exeext conftest.$ac_ext
6971fi
6972echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6973echo "${ECHO_T}$ac_cv_func_connect" >&6
6974
6975    if test $ac_cv_func_connect = no; then
6976      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6977echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6978if test "${ac_cv_lib_socket_connect+set}" = set; then
6979  echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981  ac_check_lib_save_LIBS=$LIBS
6982LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6983cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989
6990/* Override any gcc2 internal prototype to avoid an error.  */
6991#ifdef __cplusplus
6992extern "C"
6993#endif
6994/* We use char because int might match the return type of a gcc2
6995   builtin and then its argument prototype would still apply.  */
6996char connect ();
6997int
6998main ()
6999{
7000connect ();
7001  ;
7002  return 0;
7003}
7004_ACEOF
7005rm -f conftest.$ac_objext conftest$ac_exeext
7006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007  (eval $ac_link) 2>conftest.er1
7008  ac_status=$?
7009  grep -v '^ *+' conftest.er1 >conftest.err
7010  rm -f conftest.er1
7011  cat conftest.err >&5
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); } &&
7014         { ac_try='test -z "$ac_c_werror_flag"
7015                         || test ! -s conftest.err'
7016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017  (eval $ac_try) 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }; } &&
7021         { ac_try='test -s conftest$ac_exeext'
7022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023  (eval $ac_try) 2>&5
7024  ac_status=$?
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); }; }; then
7027  ac_cv_lib_socket_connect=yes
7028else
7029  echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032ac_cv_lib_socket_connect=no
7033fi
7034rm -f conftest.err conftest.$ac_objext \
7035      conftest$ac_exeext conftest.$ac_ext
7036LIBS=$ac_check_lib_save_LIBS
7037fi
7038echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7039echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7040if test $ac_cv_lib_socket_connect = yes; then
7041  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7042fi
7043
7044    fi
7045
7046    # Guillermo Gomez says -lposix is necessary on A/UX.
7047    echo "$as_me:$LINENO: checking for remove" >&5
7048echo $ECHO_N "checking for remove... $ECHO_C" >&6
7049if test "${ac_cv_func_remove+set}" = set; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052  cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7060#define remove innocuous_remove
7061
7062/* System header to define __stub macros and hopefully few prototypes,
7063    which can conflict with char remove (); below.
7064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7065    <limits.h> exists even on freestanding compilers.  */
7066
7067#ifdef __STDC__
7068# include <limits.h>
7069#else
7070# include <assert.h>
7071#endif
7072
7073#undef remove
7074
7075/* Override any gcc2 internal prototype to avoid an error.  */
7076#ifdef __cplusplus
7077extern "C"
7078{
7079#endif
7080/* We use char because int might match the return type of a gcc2
7081   builtin and then its argument prototype would still apply.  */
7082char remove ();
7083/* The GNU C library defines this for functions which it implements
7084    to always fail with ENOSYS.  Some functions are actually named
7085    something starting with __ and the normal name is an alias.  */
7086#if defined (__stub_remove) || defined (__stub___remove)
7087choke me
7088#else
7089char (*f) () = remove;
7090#endif
7091#ifdef __cplusplus
7092}
7093#endif
7094
7095int
7096main ()
7097{
7098return f != remove;
7099  ;
7100  return 0;
7101}
7102_ACEOF
7103rm -f conftest.$ac_objext conftest$ac_exeext
7104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105  (eval $ac_link) 2>conftest.er1
7106  ac_status=$?
7107  grep -v '^ *+' conftest.er1 >conftest.err
7108  rm -f conftest.er1
7109  cat conftest.err >&5
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); } &&
7112         { ac_try='test -z "$ac_c_werror_flag"
7113                         || test ! -s conftest.err'
7114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115  (eval $ac_try) 2>&5
7116  ac_status=$?
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); }; } &&
7119         { ac_try='test -s conftest$ac_exeext'
7120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121  (eval $ac_try) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); }; }; then
7125  ac_cv_func_remove=yes
7126else
7127  echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130ac_cv_func_remove=no
7131fi
7132rm -f conftest.err conftest.$ac_objext \
7133      conftest$ac_exeext conftest.$ac_ext
7134fi
7135echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7136echo "${ECHO_T}$ac_cv_func_remove" >&6
7137
7138    if test $ac_cv_func_remove = no; then
7139      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7140echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7141if test "${ac_cv_lib_posix_remove+set}" = set; then
7142  echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144  ac_check_lib_save_LIBS=$LIBS
7145LIBS="-lposix  $LIBS"
7146cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h.  */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h.  */
7152
7153/* Override any gcc2 internal prototype to avoid an error.  */
7154#ifdef __cplusplus
7155extern "C"
7156#endif
7157/* We use char because int might match the return type of a gcc2
7158   builtin and then its argument prototype would still apply.  */
7159char remove ();
7160int
7161main ()
7162{
7163remove ();
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext conftest$ac_exeext
7169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170  (eval $ac_link) 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } &&
7177         { ac_try='test -z "$ac_c_werror_flag"
7178                         || test ! -s conftest.err'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; } &&
7184         { ac_try='test -s conftest$ac_exeext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  ac_cv_lib_posix_remove=yes
7191else
7192  echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195ac_cv_lib_posix_remove=no
7196fi
7197rm -f conftest.err conftest.$ac_objext \
7198      conftest$ac_exeext conftest.$ac_ext
7199LIBS=$ac_check_lib_save_LIBS
7200fi
7201echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7202echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7203if test $ac_cv_lib_posix_remove = yes; then
7204  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7205fi
7206
7207    fi
7208
7209    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7210    echo "$as_me:$LINENO: checking for shmat" >&5
7211echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7212if test "${ac_cv_func_shmat+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h.  */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h.  */
7221/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7223#define shmat innocuous_shmat
7224
7225/* System header to define __stub macros and hopefully few prototypes,
7226    which can conflict with char shmat (); below.
7227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7228    <limits.h> exists even on freestanding compilers.  */
7229
7230#ifdef __STDC__
7231# include <limits.h>
7232#else
7233# include <assert.h>
7234#endif
7235
7236#undef shmat
7237
7238/* Override any gcc2 internal prototype to avoid an error.  */
7239#ifdef __cplusplus
7240extern "C"
7241{
7242#endif
7243/* We use char because int might match the return type of a gcc2
7244   builtin and then its argument prototype would still apply.  */
7245char shmat ();
7246/* The GNU C library defines this for functions which it implements
7247    to always fail with ENOSYS.  Some functions are actually named
7248    something starting with __ and the normal name is an alias.  */
7249#if defined (__stub_shmat) || defined (__stub___shmat)
7250choke me
7251#else
7252char (*f) () = shmat;
7253#endif
7254#ifdef __cplusplus
7255}
7256#endif
7257
7258int
7259main ()
7260{
7261return f != shmat;
7262  ;
7263  return 0;
7264}
7265_ACEOF
7266rm -f conftest.$ac_objext conftest$ac_exeext
7267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268  (eval $ac_link) 2>conftest.er1
7269  ac_status=$?
7270  grep -v '^ *+' conftest.er1 >conftest.err
7271  rm -f conftest.er1
7272  cat conftest.err >&5
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); } &&
7275         { ac_try='test -z "$ac_c_werror_flag"
7276                         || test ! -s conftest.err'
7277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278  (eval $ac_try) 2>&5
7279  ac_status=$?
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); }; } &&
7282         { ac_try='test -s conftest$ac_exeext'
7283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284  (eval $ac_try) 2>&5
7285  ac_status=$?
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); }; }; then
7288  ac_cv_func_shmat=yes
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293ac_cv_func_shmat=no
7294fi
7295rm -f conftest.err conftest.$ac_objext \
7296      conftest$ac_exeext conftest.$ac_ext
7297fi
7298echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7299echo "${ECHO_T}$ac_cv_func_shmat" >&6
7300
7301    if test $ac_cv_func_shmat = no; then
7302      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7303echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7304if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7305  echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307  ac_check_lib_save_LIBS=$LIBS
7308LIBS="-lipc  $LIBS"
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315
7316/* Override any gcc2 internal prototype to avoid an error.  */
7317#ifdef __cplusplus
7318extern "C"
7319#endif
7320/* We use char because int might match the return type of a gcc2
7321   builtin and then its argument prototype would still apply.  */
7322char shmat ();
7323int
7324main ()
7325{
7326shmat ();
7327  ;
7328  return 0;
7329}
7330_ACEOF
7331rm -f conftest.$ac_objext conftest$ac_exeext
7332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333  (eval $ac_link) 2>conftest.er1
7334  ac_status=$?
7335  grep -v '^ *+' conftest.er1 >conftest.err
7336  rm -f conftest.er1
7337  cat conftest.err >&5
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); } &&
7340         { ac_try='test -z "$ac_c_werror_flag"
7341                         || test ! -s conftest.err'
7342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343  (eval $ac_try) 2>&5
7344  ac_status=$?
7345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346  (exit $ac_status); }; } &&
7347         { ac_try='test -s conftest$ac_exeext'
7348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349  (eval $ac_try) 2>&5
7350  ac_status=$?
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); }; }; then
7353  ac_cv_lib_ipc_shmat=yes
7354else
7355  echo "$as_me: failed program was:" >&5
7356sed 's/^/| /' conftest.$ac_ext >&5
7357
7358ac_cv_lib_ipc_shmat=no
7359fi
7360rm -f conftest.err conftest.$ac_objext \
7361      conftest$ac_exeext conftest.$ac_ext
7362LIBS=$ac_check_lib_save_LIBS
7363fi
7364echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7365echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7366if test $ac_cv_lib_ipc_shmat = yes; then
7367  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7368fi
7369
7370    fi
7371  fi
7372
7373  # Check for libraries that X11R6 Xt/Xaw programs need.
7374  ac_save_LDFLAGS=$LDFLAGS
7375  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7376  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7377  # check for ICE first), but we must link in the order -lSM -lICE or
7378  # we get undefined symbols.  So assume we have SM if we have ICE.
7379  # These have to be linked with before -lX11, unlike the other
7380  # libraries we check for below, so use a different variable.
7381  # John Interrante, Karl Berry
7382  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7383echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7384if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387  ac_check_lib_save_LIBS=$LIBS
7388LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7389cat >conftest.$ac_ext <<_ACEOF
7390/* confdefs.h.  */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h.  */
7395
7396/* Override any gcc2 internal prototype to avoid an error.  */
7397#ifdef __cplusplus
7398extern "C"
7399#endif
7400/* We use char because int might match the return type of a gcc2
7401   builtin and then its argument prototype would still apply.  */
7402char IceConnectionNumber ();
7403int
7404main ()
7405{
7406IceConnectionNumber ();
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411rm -f conftest.$ac_objext conftest$ac_exeext
7412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413  (eval $ac_link) 2>conftest.er1
7414  ac_status=$?
7415  grep -v '^ *+' conftest.er1 >conftest.err
7416  rm -f conftest.er1
7417  cat conftest.err >&5
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); } &&
7420         { ac_try='test -z "$ac_c_werror_flag"
7421                         || test ! -s conftest.err'
7422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423  (eval $ac_try) 2>&5
7424  ac_status=$?
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); }; } &&
7427         { ac_try='test -s conftest$ac_exeext'
7428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429  (eval $ac_try) 2>&5
7430  ac_status=$?
7431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432  (exit $ac_status); }; }; then
7433  ac_cv_lib_ICE_IceConnectionNumber=yes
7434else
7435  echo "$as_me: failed program was:" >&5
7436sed 's/^/| /' conftest.$ac_ext >&5
7437
7438ac_cv_lib_ICE_IceConnectionNumber=no
7439fi
7440rm -f conftest.err conftest.$ac_objext \
7441      conftest$ac_exeext conftest.$ac_ext
7442LIBS=$ac_check_lib_save_LIBS
7443fi
7444echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7445echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7446if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7447  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7448fi
7449
7450  LDFLAGS=$ac_save_LDFLAGS
7451
7452fi
7453
7454
7455        # Check for libX11
7456        echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
7457echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
7458if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
7459  echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461  ac_check_lib_save_LIBS=$LIBS
7462LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"
7463cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h.  */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h.  */
7469
7470/* Override any gcc2 internal prototype to avoid an error.  */
7471#ifdef __cplusplus
7472extern "C"
7473#endif
7474/* We use char because int might match the return type of a gcc2
7475   builtin and then its argument prototype would still apply.  */
7476char XOpenDisplay ();
7477int
7478main ()
7479{
7480XOpenDisplay ();
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485rm -f conftest.$ac_objext conftest$ac_exeext
7486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7487  (eval $ac_link) 2>conftest.er1
7488  ac_status=$?
7489  grep -v '^ *+' conftest.er1 >conftest.err
7490  rm -f conftest.er1
7491  cat conftest.err >&5
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); } &&
7494         { ac_try='test -z "$ac_c_werror_flag"
7495                         || test ! -s conftest.err'
7496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497  (eval $ac_try) 2>&5
7498  ac_status=$?
7499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500  (exit $ac_status); }; } &&
7501         { ac_try='test -s conftest$ac_exeext'
7502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503  (eval $ac_try) 2>&5
7504  ac_status=$?
7505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506  (exit $ac_status); }; }; then
7507  ac_cv_lib_X11_XOpenDisplay=yes
7508else
7509  echo "$as_me: failed program was:" >&5
7510sed 's/^/| /' conftest.$ac_ext >&5
7511
7512ac_cv_lib_X11_XOpenDisplay=no
7513fi
7514rm -f conftest.err conftest.$ac_objext \
7515      conftest$ac_exeext conftest.$ac_ext
7516LIBS=$ac_check_lib_save_LIBS
7517fi
7518echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
7519echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
7520if test $ac_cv_lib_X11_XOpenDisplay = yes; then
7521
7522                has_x_runtime=yes
7523
7524else
7525   has_x_runtime=no
7526fi
7527
7528
7529#       echo "------done---------"
7530#       echo "x_includes=${x_includes}"
7531#       echo "x_libraries=${x_libraries}"
7532#       echo "no_x=${no_x}"
7533#       echo "X_CFLAGS=${X_CFLAGS}"
7534#       echo "X_LIBS=${X_LIBS}"
7535#       echo "X_DISPLAY_MISSING=${X_DISPLAY_MISSING}"
7536#       echo "has_x_runtime=${has_x_runtime}"
7537#       echo "host_os=${host_os}"
7538#       echo "------done---------"
7539
7540        state=
7541
7542        case "__${has_x_runtime}__${no_x}__" in
7543                "__no__yes__")
7544                # either the user said --without-x, or it was not found
7545                # at all (runtime or headers)
7546                        { echo "$as_me:$LINENO: WARNING: X11 not available. You will not be able to use dports that use X11" >&5
7547echo "$as_me: WARNING: X11 not available. You will not be able to use dports that use X11" >&2;}
7548                        state=0
7549                        ;;
7550                "__yes__yes__")
7551                        state=1
7552                        ;;
7553                "__yes____")
7554                        state=2
7555                        ;;
7556                *)
7557                        state=3
7558                        ;;
7559        esac
7560
7561        case $host_os in
7562                darwin*)
7563                        case $state in
7564                                1)
7565                                        cat <<EOF;
7566Please install the X11 SDK packages from the
7567Xcode Developer Tools CD
7568EOF
7569                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7570echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7571   { (exit 1); exit 1; }; }
7572
7573                                        ;;
7574                                3)
7575                                        cat <<EOF;
7576Unknown configuration problem. Please install the X11 runtime
7577and/or X11 SDK  packages from the Xcode Developer Tools CD
7578EOF
7579                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7580echo "$as_me: error: Broken X11 install" >&2;}
7581   { (exit 1); exit 1; }; }
7582                                        ;;
7583                        esac
7584                        ;;
7585                *)
7586                        case $state in
7587                                1)
7588                                        cat <<EOF;
7589Please install the X11 developer headers for your platform
7590EOF
7591                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7592echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7593   { (exit 1); exit 1; }; }
7594
7595                                        ;;
7596                                3)
7597                                        cat <<EOF;
7598Unknown configuration problem. Please install the X11
7599implementation for your platform
7600EOF
7601                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7602echo "$as_me: error: Broken X11 install" >&2;}
7603   { (exit 1); exit 1; }; }
7604                                        ;;
7605                        esac
7606                        ;;
7607        esac
7608
7609
7610
7611# Check for readline
7612
7613echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7614echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7615if test "${ac_cv_lib_readline_readline+set}" = set; then
7616  echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618  ac_check_lib_save_LIBS=$LIBS
7619LIBS="-lreadline  $LIBS"
7620cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h.  */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h.  */
7626
7627/* Override any gcc2 internal prototype to avoid an error.  */
7628#ifdef __cplusplus
7629extern "C"
7630#endif
7631/* We use char because int might match the return type of a gcc2
7632   builtin and then its argument prototype would still apply.  */
7633char readline ();
7634int
7635main ()
7636{
7637readline ();
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext conftest$ac_exeext
7643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644  (eval $ac_link) 2>conftest.er1
7645  ac_status=$?
7646  grep -v '^ *+' conftest.er1 >conftest.err
7647  rm -f conftest.er1
7648  cat conftest.err >&5
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } &&
7651         { ac_try='test -z "$ac_c_werror_flag"
7652                         || test ! -s conftest.err'
7653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654  (eval $ac_try) 2>&5
7655  ac_status=$?
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); }; } &&
7658         { ac_try='test -s conftest$ac_exeext'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; }; then
7664  ac_cv_lib_readline_readline=yes
7665else
7666  echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669ac_cv_lib_readline_readline=no
7670fi
7671rm -f conftest.err conftest.$ac_objext \
7672      conftest$ac_exeext conftest.$ac_ext
7673LIBS=$ac_check_lib_save_LIBS
7674fi
7675echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
7676echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
7677if test $ac_cv_lib_readline_readline = yes; then
7678  cat >>confdefs.h <<_ACEOF
7679#define HAVE_LIBREADLINE 1
7680_ACEOF
7681
7682  LIBS="-lreadline $LIBS"
7683
7684fi
7685
7686echo "$as_me:$LINENO: checking whether rl_username_completion_function is declared" >&5
7687echo $ECHO_N "checking whether rl_username_completion_function is declared... $ECHO_C" >&6
7688if test "${ac_cv_have_decl_rl_username_completion_function+set}" = set; then
7689  echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691  cat >conftest.$ac_ext <<_ACEOF
7692/* confdefs.h.  */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h.  */
7697
7698#include <stdio.h>
7699#if HAVE_READLINE_READLINE_H
7700# include <readline/readline.h>
7701#endif
7702
7703
7704int
7705main ()
7706{
7707#ifndef rl_username_completion_function
7708  char *p = (char *) rl_username_completion_function;
7709#endif
7710
7711  ;
7712  return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext
7716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717  (eval $ac_compile) 2>conftest.er1
7718  ac_status=$?
7719  grep -v '^ *+' conftest.er1 >conftest.err
7720  rm -f conftest.er1
7721  cat conftest.err >&5
7722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723  (exit $ac_status); } &&
7724         { ac_try='test -z "$ac_c_werror_flag"
7725                         || test ! -s conftest.err'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; } &&
7731         { ac_try='test -s conftest.$ac_objext'
7732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733  (eval $ac_try) 2>&5
7734  ac_status=$?
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); }; }; then
7737  ac_cv_have_decl_rl_username_completion_function=yes
7738else
7739  echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742ac_cv_have_decl_rl_username_completion_function=no
7743fi
7744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi
7746echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_username_completion_function" >&5
7747echo "${ECHO_T}$ac_cv_have_decl_rl_username_completion_function" >&6
7748if test $ac_cv_have_decl_rl_username_completion_function = yes; then
7749
7750cat >>confdefs.h <<_ACEOF
7751#define HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION 1
7752_ACEOF
7753
7754
7755else
7756  cat >>confdefs.h <<_ACEOF
7757#define HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION 0
7758_ACEOF
7759
7760
7761fi
7762echo "$as_me:$LINENO: checking whether rl_filename_completion_function is declared" >&5
7763echo $ECHO_N "checking whether rl_filename_completion_function is declared... $ECHO_C" >&6
7764if test "${ac_cv_have_decl_rl_filename_completion_function+set}" = set; then
7765  echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767  cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h.  */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h.  */
7773
7774#include <stdio.h>
7775#if HAVE_READLINE_READLINE_H
7776# include <readline/readline.h>
7777#endif
7778
7779
7780int
7781main ()
7782{
7783#ifndef rl_filename_completion_function
7784  char *p = (char *) rl_filename_completion_function;
7785#endif
7786
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791rm -f conftest.$ac_objext
7792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793  (eval $ac_compile) 2>conftest.er1
7794  ac_status=$?
7795  grep -v '^ *+' conftest.er1 >conftest.err
7796  rm -f conftest.er1
7797  cat conftest.err >&5
7798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799  (exit $ac_status); } &&
7800         { ac_try='test -z "$ac_c_werror_flag"
7801                         || test ! -s conftest.err'
7802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803  (eval $ac_try) 2>&5
7804  ac_status=$?
7805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806  (exit $ac_status); }; } &&
7807         { ac_try='test -s conftest.$ac_objext'
7808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809  (eval $ac_try) 2>&5
7810  ac_status=$?
7811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812  (exit $ac_status); }; }; then
7813  ac_cv_have_decl_rl_filename_completion_function=yes
7814else
7815  echo "$as_me: failed program was:" >&5
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818ac_cv_have_decl_rl_filename_completion_function=no
7819fi
7820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7821fi
7822echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_filename_completion_function" >&5
7823echo "${ECHO_T}$ac_cv_have_decl_rl_filename_completion_function" >&6
7824if test $ac_cv_have_decl_rl_filename_completion_function = yes; then
7825
7826cat >>confdefs.h <<_ACEOF
7827#define HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION 1
7828_ACEOF
7829
7830
7831else
7832  cat >>confdefs.h <<_ACEOF
7833#define HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION 0
7834_ACEOF
7835
7836
7837fi
7838echo "$as_me:$LINENO: checking whether rl_completion_matches is declared" >&5
7839echo $ECHO_N "checking whether rl_completion_matches is declared... $ECHO_C" >&6
7840if test "${ac_cv_have_decl_rl_completion_matches+set}" = set; then
7841  echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843  cat >conftest.$ac_ext <<_ACEOF
7844/* confdefs.h.  */
7845_ACEOF
7846cat confdefs.h >>conftest.$ac_ext
7847cat >>conftest.$ac_ext <<_ACEOF
7848/* end confdefs.h.  */
7849
7850#include <stdio.h>
7851#if HAVE_READLINE_READLINE_H
7852# include <readline/readline.h>
7853#endif
7854
7855
7856int
7857main ()
7858{
7859#ifndef rl_completion_matches
7860  char *p = (char *) rl_completion_matches;
7861#endif
7862
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext
7868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869  (eval $ac_compile) 2>conftest.er1
7870  ac_status=$?
7871  grep -v '^ *+' conftest.er1 >conftest.err
7872  rm -f conftest.er1
7873  cat conftest.err >&5
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); } &&
7876         { ac_try='test -z "$ac_c_werror_flag"
7877                         || test ! -s conftest.err'
7878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879  (eval $ac_try) 2>&5
7880  ac_status=$?
7881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882  (exit $ac_status); }; } &&
7883         { ac_try='test -s conftest.$ac_objext'
7884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885  (eval $ac_try) 2>&5
7886  ac_status=$?
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); }; }; then
7889  ac_cv_have_decl_rl_completion_matches=yes
7890else
7891  echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894ac_cv_have_decl_rl_completion_matches=no
7895fi
7896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7897fi
7898echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_completion_matches" >&5
7899echo "${ECHO_T}$ac_cv_have_decl_rl_completion_matches" >&6
7900if test $ac_cv_have_decl_rl_completion_matches = yes; then
7901
7902cat >>confdefs.h <<_ACEOF
7903#define HAVE_DECL_RL_COMPLETION_MATCHES 1
7904_ACEOF
7905
7906
7907else
7908  cat >>confdefs.h <<_ACEOF
7909#define HAVE_DECL_RL_COMPLETION_MATCHES 0
7910_ACEOF
7911
7912
7913fi
7914echo "$as_me:$LINENO: checking whether username_completion_function is declared" >&5
7915echo $ECHO_N "checking whether username_completion_function is declared... $ECHO_C" >&6
7916if test "${ac_cv_have_decl_username_completion_function+set}" = set; then
7917  echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919  cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h.  */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h.  */
7925
7926#include <stdio.h>
7927#if HAVE_READLINE_READLINE_H
7928# include <readline/readline.h>
7929#endif
7930
7931
7932int
7933main ()
7934{
7935#ifndef username_completion_function
7936  char *p = (char *) username_completion_function;
7937#endif
7938
7939  ;
7940  return 0;
7941}
7942_ACEOF
7943rm -f conftest.$ac_objext
7944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945  (eval $ac_compile) 2>conftest.er1
7946  ac_status=$?
7947  grep -v '^ *+' conftest.er1 >conftest.err
7948  rm -f conftest.er1
7949  cat conftest.err >&5
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); } &&
7952         { ac_try='test -z "$ac_c_werror_flag"
7953                         || test ! -s conftest.err'
7954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955  (eval $ac_try) 2>&5
7956  ac_status=$?
7957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958  (exit $ac_status); }; } &&
7959         { ac_try='test -s conftest.$ac_objext'
7960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961  (eval $ac_try) 2>&5
7962  ac_status=$?
7963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964  (exit $ac_status); }; }; then
7965  ac_cv_have_decl_username_completion_function=yes
7966else
7967  echo "$as_me: failed program was:" >&5
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7970ac_cv_have_decl_username_completion_function=no
7971fi
7972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7973fi
7974echo "$as_me:$LINENO: result: $ac_cv_have_decl_username_completion_function" >&5
7975echo "${ECHO_T}$ac_cv_have_decl_username_completion_function" >&6
7976if test $ac_cv_have_decl_username_completion_function = yes; then
7977
7978cat >>confdefs.h <<_ACEOF
7979#define HAVE_DECL_USERNAME_COMPLETION_FUNCTION 1
7980_ACEOF
7981
7982
7983else
7984  cat >>confdefs.h <<_ACEOF
7985#define HAVE_DECL_USERNAME_COMPLETION_FUNCTION 0
7986_ACEOF
7987
7988
7989fi
7990echo "$as_me:$LINENO: checking whether filename_completion_function is declared" >&5
7991echo $ECHO_N "checking whether filename_completion_function is declared... $ECHO_C" >&6
7992if test "${ac_cv_have_decl_filename_completion_function+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  cat >conftest.$ac_ext <<_ACEOF
7996/* confdefs.h.  */
7997_ACEOF
7998cat confdefs.h >>conftest.$ac_ext
7999cat >>conftest.$ac_ext <<_ACEOF
8000/* end confdefs.h.  */
8001
8002#include <stdio.h>
8003#if HAVE_READLINE_READLINE_H
8004# include <readline/readline.h>
8005#endif
8006
8007
8008int
8009main ()
8010{
8011#ifndef filename_completion_function
8012  char *p = (char *) filename_completion_function;
8013#endif
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext
8020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021  (eval $ac_compile) 2>conftest.er1
8022  ac_status=$?
8023  grep -v '^ *+' conftest.er1 >conftest.err
8024  rm -f conftest.er1
8025  cat conftest.err >&5
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); } &&
8028         { ac_try='test -z "$ac_c_werror_flag"
8029                         || test ! -s conftest.err'
8030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031  (eval $ac_try) 2>&5
8032  ac_status=$?
8033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034  (exit $ac_status); }; } &&
8035         { ac_try='test -s conftest.$ac_objext'
8036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037  (eval $ac_try) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); }; }; then
8041  ac_cv_have_decl_filename_completion_function=yes
8042else
8043  echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046ac_cv_have_decl_filename_completion_function=no
8047fi
8048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049fi
8050echo "$as_me:$LINENO: result: $ac_cv_have_decl_filename_completion_function" >&5
8051echo "${ECHO_T}$ac_cv_have_decl_filename_completion_function" >&6
8052if test $ac_cv_have_decl_filename_completion_function = yes; then
8053
8054cat >>confdefs.h <<_ACEOF
8055#define HAVE_DECL_FILENAME_COMPLETION_FUNCTION 1
8056_ACEOF
8057
8058
8059else
8060  cat >>confdefs.h <<_ACEOF
8061#define HAVE_DECL_FILENAME_COMPLETION_FUNCTION 0
8062_ACEOF
8063
8064
8065fi
8066echo "$as_me:$LINENO: checking whether completion_matches is declared" >&5
8067echo $ECHO_N "checking whether completion_matches is declared... $ECHO_C" >&6
8068if test "${ac_cv_have_decl_completion_matches+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h.  */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h.  */
8077
8078#include <stdio.h>
8079#if HAVE_READLINE_READLINE_H
8080# include <readline/readline.h>
8081#endif
8082
8083
8084int
8085main ()
8086{
8087#ifndef completion_matches
8088  char *p = (char *) completion_matches;
8089#endif
8090
8091  ;
8092  return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext
8096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097  (eval $ac_compile) 2>conftest.er1
8098  ac_status=$?
8099  grep -v '^ *+' conftest.er1 >conftest.err
8100  rm -f conftest.er1
8101  cat conftest.err >&5
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); } &&
8104         { ac_try='test -z "$ac_c_werror_flag"
8105                         || test ! -s conftest.err'
8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107  (eval $ac_try) 2>&5
8108  ac_status=$?
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); }; } &&
8111         { ac_try='test -s conftest.$ac_objext'
8112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113  (eval $ac_try) 2>&5
8114  ac_status=$?
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); }; }; then
8117  ac_cv_have_decl_completion_matches=yes
8118else
8119  echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122ac_cv_have_decl_completion_matches=no
8123fi
8124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8125fi
8126echo "$as_me:$LINENO: result: $ac_cv_have_decl_completion_matches" >&5
8127echo "${ECHO_T}$ac_cv_have_decl_completion_matches" >&6
8128if test $ac_cv_have_decl_completion_matches = yes; then
8129
8130cat >>confdefs.h <<_ACEOF
8131#define HAVE_DECL_COMPLETION_MATCHES 1
8132_ACEOF
8133
8134
8135else
8136  cat >>confdefs.h <<_ACEOF
8137#define HAVE_DECL_COMPLETION_MATCHES 0
8138_ACEOF
8139
8140
8141fi
8142
8143
8144
8145# Load tclConfig.sh
8146
8147    #
8148    # Ok, lets find the tcl configuration
8149    # First, look for one uninstalled.
8150    # the alternative search directory is invoked by --with-tcl
8151    #
8152
8153    if test x"${no_tcl}" = x ; then
8154        # we reset no_tcl in case something fails here
8155        no_tcl=true
8156
8157# Check whether --with-tcl or --without-tcl was given.
8158if test "${with_tcl+set}" = set; then
8159  withval="$with_tcl"
8160  with_tclconfig=${withval}
8161fi;
8162        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
8163echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
8164        if test "${ac_cv_c_tclconfig+set}" = set; then
8165  echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167
8168
8169            # First check to see if --with-tcl was specified.
8170            if test x"${with_tclconfig}" != x ; then
8171                if test -f "${with_tclconfig}/tclConfig.sh" ; then
8172                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
8173                else
8174                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
8175echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
8176   { (exit 1); exit 1; }; }
8177                fi
8178            fi
8179
8180            # then check for a private Tcl installation
8181            if test x"${ac_cv_c_tclconfig}" = x ; then
8182                for i in \
8183                        ../tcl \
8184                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
8185                        ../../tcl \
8186                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
8187                        ../../../tcl \
8188                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
8189                    if test -f "$i/unix/tclConfig.sh" ; then
8190                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8191                        break
8192                    fi
8193                done
8194            fi
8195
8196            # check in a few common install locations
8197            if test x"${ac_cv_c_tclconfig}" = x ; then
8198                for i in `ls -d ${libdir} 2>/dev/null` \
8199                        `ls -d /usr/local/lib 2>/dev/null` \
8200                        `ls -d /usr/contrib/lib 2>/dev/null` \
8201                        `ls -d /usr/lib 2>/dev/null` \
8202                        `ls -d /usr/pkg/lib 2>/dev/null` \
8203                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
8204                        `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \
8205                        `ls -d /usr/local/lib/tcl8.3 2>/dev/null` \
8206                        `ls -d /usr/lib/tcl8.4 2>/dev/null` \
8207                        `ls -d /usr/lib/tcl8.3 2>/dev/null` \
8208                        ; do
8209                    if test -f "$i/tclConfig.sh" ; then
8210                        ac_cv_c_tclconfig=`(cd $i; pwd)`
8211                        break
8212                    fi
8213                done
8214            fi
8215
8216            # check in a few other private locations
8217            if test x"${ac_cv_c_tclconfig}" = x ; then
8218                for i in \
8219                        ${srcdir}/../tcl \
8220                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
8221                    if test -f "$i/unix/tclConfig.sh" ; then
8222                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8223                    break
8224                fi
8225                done
8226            fi
8227
8228fi
8229
8230
8231        if test x"${ac_cv_c_tclconfig}" = x ; then
8232            TCL_BIN_DIR="# no Tcl configs found"
8233            { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
8234echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
8235   { (exit 1); exit 1; }; }
8236        else
8237            no_tcl=
8238            TCL_BIN_DIR=${ac_cv_c_tclconfig}
8239            echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
8240echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
8241        fi
8242    fi
8243
8244
8245    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
8246echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
8247
8248    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
8249        echo "$as_me:$LINENO: result: loading" >&5
8250echo "${ECHO_T}loading" >&6
8251        . $TCL_BIN_DIR/tclConfig.sh
8252    else
8253        echo "$as_me:$LINENO: result: file not found" >&5
8254echo "${ECHO_T}file not found" >&6
8255    fi
8256
8257    #
8258    # If the TCL_BIN_DIR is the build directory (not the install directory),
8259    # then set the common variable name to the value of the build variables.
8260    # For example, the variable TCL_LIB_SPEC will be set to the value
8261    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
8262    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
8263    # installed and uninstalled version of Tcl.
8264    #
8265
8266    if test -f $TCL_BIN_DIR/Makefile ; then
8267        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
8268        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
8269        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
8270    fi
8271
8272    #
8273    # eval is required to do the TCL_DBGX substitution
8274    #
8275
8276    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
8277    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
8278    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
8279
8280    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
8281    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
8282    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297# Check for Tcl public headers
8298CYGPATH=echo
8299
8300    echo "$as_me:$LINENO: checking for Tcl public headers" >&5
8301echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
8302
8303
8304# Check whether --with-tclinclude or --without-tclinclude was given.
8305if test "${with_tclinclude+set}" = set; then
8306  withval="$with_tclinclude"
8307  with_tclinclude=${withval}
8308fi;
8309
8310    if test x"${with_tclinclude}" != x ; then
8311        if test -f "${with_tclinclude}/tcl.h" ; then
8312            ac_cv_c_tclh=${with_tclinclude}
8313        else
8314            { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
8315echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
8316   { (exit 1); exit 1; }; }
8317        fi
8318    else
8319        if test "${ac_cv_c_tclh+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322
8323            # Use the value from --with-tclinclude, if it was given
8324
8325            if test x"${with_tclinclude}" != x ; then
8326                ac_cv_c_tclh=${with_tclinclude}
8327            else
8328                # Do NOT check in $includedir, we need to prevent automatic
8329                # location of Tcl headers in $prefix/include unless explicitly
8330                # specified with the --with-tclinclude option. But go ahead and
8331                # check some other possible local system locations.
8332
8333                for i in \
8334                        /usr/local/include /usr/include /usr/local/include/tcl${TCL_VERSION} /usr/include/tcl${TCL_VERSION}; do
8335                    if test -f "$i/tcl.h" ; then
8336                        ac_cv_c_tclh=$i
8337                        break
8338                    fi
8339                done
8340            fi
8341
8342fi
8343
8344    fi
8345
8346    # Print a message based on how we determined the include path
8347
8348    if test x"${ac_cv_c_tclh}" = x ; then
8349        { { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
8350echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
8351   { (exit 1); exit 1; }; }
8352    else
8353        echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
8354echo "${ECHO_T}${ac_cv_c_tclh}" >&6
8355    fi
8356
8357    # Convert to a native path and substitute into the output files.
8358
8359    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
8360
8361    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
8362
8363
8364
8365
8366# Check for tclsh binary
8367
8368
8369
8370        case $host_os in
8371                freebsd*)
8372                        # FreeBSD installs a dummy tclsh (annoying)
8373                        # Look for a real versioned tclsh first
8374                        # Extract the first word of "tclsh${TCL_VERSION} tclsh", so it can be a program name with args.
8375set dummy tclsh${TCL_VERSION} tclsh; ac_word=$2
8376echo "$as_me:$LINENO: checking for $ac_word" >&5
8377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8378if test "${ac_cv_path_TCLSH+set}" = set; then
8379  echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381  case $TCLSH in
8382  [\\/]* | ?:[\\/]*)
8383  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8384  ;;
8385  *)
8386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389  IFS=$as_save_IFS
8390  test -z "$as_dir" && as_dir=.
8391  for ac_exec_ext in '' $ac_executable_extensions; do
8392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395    break 2
8396  fi
8397done
8398done
8399
8400  ;;
8401esac
8402fi
8403TCLSH=$ac_cv_path_TCLSH
8404
8405if test -n "$TCLSH"; then
8406  echo "$as_me:$LINENO: result: $TCLSH" >&5
8407echo "${ECHO_T}$TCLSH" >&6
8408else
8409  echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6
8411fi
8412
8413                        ;;
8414                *)
8415                        # Otherwise, look for a non-versioned tclsh
8416                        # Extract the first word of "tclsh tclsh${TCL_VERSION}", so it can be a program name with args.
8417set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
8418echo "$as_me:$LINENO: checking for $ac_word" >&5
8419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8420if test "${ac_cv_path_TCLSH+set}" = set; then
8421  echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423  case $TCLSH in
8424  [\\/]* | ?:[\\/]*)
8425  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8426  ;;
8427  *)
8428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431  IFS=$as_save_IFS
8432  test -z "$as_dir" && as_dir=.
8433  for ac_exec_ext in '' $ac_executable_extensions; do
8434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8435    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437    break 2
8438  fi
8439done
8440done
8441
8442  ;;
8443esac
8444fi
8445TCLSH=$ac_cv_path_TCLSH
8446
8447if test -n "$TCLSH"; then
8448  echo "$as_me:$LINENO: result: $TCLSH" >&5
8449echo "${ECHO_T}$TCLSH" >&6
8450else
8451  echo "$as_me:$LINENO: result: no" >&5
8452echo "${ECHO_T}no" >&6
8453fi
8454
8455                        ;;
8456        esac
8457        if test "x$TCLSH" = "x" ; then
8458                { { echo "$as_me:$LINENO: error: Could not find tclsh" >&5
8459echo "$as_me: error: Could not find tclsh" >&2;}
8460   { (exit 1); exit 1; }; }
8461        fi
8462
8463
8464
8465
8466# Check for Tcl package path
8467
8468    echo "$as_me:$LINENO: checking for Tcl package directory" >&5
8469echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
8470
8471
8472# Check whether --with-tclpackage or --without-tclpackage was given.
8473if test "${with_tclpackage+set}" = set; then
8474  withval="$with_tclpackage"
8475  with_tclpackagedir=${withval}
8476fi;
8477
8478    if test x"${with_tclpackagedir}" != x ; then
8479        ac_cv_c_tclpkgd=${with_tclpackagedir}
8480    else
8481        if test "${ac_cv_c_tclpkgd+set}" = set; then
8482  echo $ECHO_N "(cached) $ECHO_C" >&6
8483else
8484
8485            # Use the value from --with-tclpackage, if it was given
8486
8487            if test x"${with_tclpackagedir}" != x ; then
8488                echo "tclpackagedir"
8489                ac_cv_c_tclpkgd=${with_tclpackagedir}
8490            else
8491                # On darwin we can do some intelligent guessing
8492                case $host_os in
8493                    darwin*)
8494                        tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
8495                        for path in $tcl_autopath; do
8496                            if test "$path" = "/Library/Tcl"; then
8497                                ac_cv_c_tclpkgd="$path"
8498                                break
8499                            fi
8500                            if test "$path" = "/System/Library/Tcl"; then
8501                                if test -d "$path"; then
8502                                    ac_cv_c_tclpkgd="$path"
8503                                    break
8504                                fi
8505                            fi
8506                        done
8507                    ;;
8508                esac
8509                if test x"${ac_cv_c_tclpkgd}" = x ; then
8510                    # Fudge a path from the first entry in the auto_path
8511                    tcl_pkgpath=`echo 'puts -nonewline [lindex \$auto_path 0]' | $TCLSH`
8512                    if test -d "$tcl_pkgpath"; then
8513                        ac_cv_c_tclpkgd="$tcl_pkgpath"
8514                    fi
8515                    # If the first entry does not exist, do nothing
8516                fi
8517            fi
8518
8519fi
8520
8521    fi
8522
8523    if test x"${ac_cv_c_tclpkgd}" = x ; then
8524        { { echo "$as_me:$LINENO: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&5
8525echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&2;}
8526   { (exit 1); exit 1; }; }
8527    else
8528        echo "$as_me:$LINENO: result: ${ac_cv_c_tclpkgd}" >&5
8529echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
8530    fi
8531
8532    # Convert to a native path and substitute into the output files.
8533
8534    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
8535
8536    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
8537
8538
8539
8540
8541# Check if thread is enabled.
8542
8543        echo "$as_me:$LINENO: checking whether tclsh was compiled with threads" >&5
8544echo $ECHO_N "checking whether tclsh was compiled with threads... $ECHO_C" >&6
8545        tcl_threadenabled=`echo 'puts -nonewline [info exists tcl_platform(threaded)]' | $TCLSH`
8546        if test "$tcl_threadenabled" = "1" ; then
8547                echo "$as_me:$LINENO: result: yes" >&5
8548echo "${ECHO_T}yes" >&6
8549        else
8550                echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6
8552                { { echo "$as_me:$LINENO: error: tcl wasn't compiled with threads enabled" >&5
8553echo "$as_me: error: tcl wasn't compiled with threads enabled" >&2;}
8554   { (exit 1); exit 1; }; }
8555        fi
8556
8557
8558## libcurl
8559
8560
8561# Check whether --with-curlprefix or --without-curlprefix was given.
8562if test "${with_curlprefix+set}" = set; then
8563  withval="$with_curlprefix"
8564    curlprefix=$withval
8565fi;
8566
8567        if test "x$curlprefix" = "x"; then
8568                # Extract the first word of "curl-config", so it can be a program name with args.
8569set dummy curl-config; ac_word=$2
8570echo "$as_me:$LINENO: checking for $ac_word" >&5
8571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8572if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8573  echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575  case $CURL_CONFIG in
8576  [\\/]* | ?:[\\/]*)
8577  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8578  ;;
8579  *)
8580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583  IFS=$as_save_IFS
8584  test -z "$as_dir" && as_dir=.
8585  for ac_exec_ext in '' $ac_executable_extensions; do
8586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589    break 2
8590  fi
8591done
8592done
8593
8594  ;;
8595esac
8596fi
8597CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8598
8599if test -n "$CURL_CONFIG"; then
8600  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8601echo "${ECHO_T}$CURL_CONFIG" >&6
8602else
8603  echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607        else
8608                # Extract the first word of "curl-config", so it can be a program name with args.
8609set dummy curl-config; ac_word=$2
8610echo "$as_me:$LINENO: checking for $ac_word" >&5
8611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8612if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8613  echo $ECHO_N "(cached) $ECHO_C" >&6
8614else
8615  case $CURL_CONFIG in
8616  [\\/]* | ?:[\\/]*)
8617  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8618  ;;
8619  *)
8620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $curlprefix/bin
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625  for ac_exec_ext in '' $ac_executable_extensions; do
8626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632done
8633
8634  ;;
8635esac
8636fi
8637CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8638
8639if test -n "$CURL_CONFIG"; then
8640  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8641echo "${ECHO_T}$CURL_CONFIG" >&6
8642else
8643  echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645fi
8646
8647        fi
8648
8649        if test "x$CURL_CONFIG" = "x"; then
8650                { { echo "$as_me:$LINENO: error: cannot find curl-config. Is libcurl installed?" >&5
8651echo "$as_me: error: cannot find curl-config. Is libcurl installed?" >&2;}
8652   { (exit 1); exit 1; }; }
8653        fi
8654
8655        CFLAGS_LIBCURL=$($CURL_CONFIG --cflags)
8656        # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
8657        # Get rid of them.
8658        LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | sed -E 's/-arch +[^ ]* ?//g')
8659
8660
8661
8662
8663
8664# Do we have curl_easy_strerror?
8665
8666
8667echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
8668echo $ECHO_N "checking for curl_easy_strerror in -lcurl... $ECHO_C" >&6
8669if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
8670  echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672  ac_check_lib_save_LIBS=$LIBS
8673LIBS="-lcurl $LDFLAGS_LIBCURL $LIBS"
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h.  */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h.  */
8680
8681/* Override any gcc2 internal prototype to avoid an error.  */
8682#ifdef __cplusplus
8683extern "C"
8684#endif
8685/* We use char because int might match the return type of a gcc2
8686   builtin and then its argument prototype would still apply.  */
8687char curl_easy_strerror ();
8688int
8689main ()
8690{
8691curl_easy_strerror ();
8692  ;
8693  return 0;
8694}
8695_ACEOF
8696rm -f conftest.$ac_objext conftest$ac_exeext
8697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698  (eval $ac_link) 2>conftest.er1
8699  ac_status=$?
8700  grep -v '^ *+' conftest.er1 >conftest.err
8701  rm -f conftest.er1
8702  cat conftest.err >&5
8703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704  (exit $ac_status); } &&
8705         { ac_try='test -z "$ac_c_werror_flag"
8706                         || test ! -s conftest.err'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; } &&
8712         { ac_try='test -s conftest$ac_exeext'
8713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714  (eval $ac_try) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); }; }; then
8718  ac_cv_lib_curl_curl_easy_strerror=yes
8719else
8720  echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723ac_cv_lib_curl_curl_easy_strerror=no
8724fi
8725rm -f conftest.err conftest.$ac_objext \
8726      conftest$ac_exeext conftest.$ac_ext
8727LIBS=$ac_check_lib_save_LIBS
8728fi
8729echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
8730echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_strerror" >&6
8731if test $ac_cv_lib_curl_curl_easy_strerror = yes; then
8732  cat >>confdefs.h <<\_ACEOF
8733#define HAVE_CURL_EASY_STRERROR 1
8734_ACEOF
8735
8736fi
8737
8738
8739# Determine if we need to install some bundled packages
8740OUR_INCLUDED_PACKAGES=
8741
8742## Thread package.
8743
8744# Check whether --with-included-tclthread or --without-included-tclthread was given.
8745if test "${with_included_tclthread+set}" = set; then
8746  withval="$with_included_tclthread"
8747  with_included_tclthread=$withval
8748else
8749  with_included_tclthread="unspecified"
8750fi;
8751
8752# Check if thread package is already installed.
8753if test "x$with_included_tclthread" = "xunspecified" ; then
8754
8755        echo "$as_me:$LINENO: checking for Tcl Thread package" >&5
8756echo $ECHO_N "checking for Tcl Thread package... $ECHO_C" >&6
8757        package_present=`echo 'if {[catch {package require Thread}]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
8758        if test "$package_present" = "1"; then
8759  echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6; with_included_tclthread=no
8761else
8762  echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6; with_included_tclthread=yes
8764fi
8765
8766
8767fi
8768
8769# If thread package isn't installed, configure and install thread package.
8770if test "$with_included_tclthread" = "yes"; then
8771        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES thread2.6"
8772
8773
8774subdirs="$subdirs src/thread2.6"
8775
8776        # Extract thread package
8777        (cd src/; gzip -d < thread2.6.tar.gz | tar xf -)
8778        # Patch thread package (so thread2.6 is the vanilla distribution directory)
8779        patch -p0 < src/thread2.6.diff
8780fi
8781
8782
8783
8784# Allows building of shared libraries
8785
8786    echo "$as_me:$LINENO: checking how to build libraries" >&5
8787echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
8788    # Check whether --enable-shared or --disable-shared was given.
8789if test "${enable_shared+set}" = set; then
8790  enableval="$enable_shared"
8791  tcl_ok=$enableval
8792else
8793  tcl_ok=yes
8794fi;
8795
8796    if test "${enable_shared+set}" = set; then
8797        enableval="$enable_shared"
8798        tcl_ok=$enableval
8799    else
8800        tcl_ok=yes
8801    fi
8802
8803    if test "$tcl_ok" = "yes" ; then
8804        echo "$as_me:$LINENO: result: shared" >&5
8805echo "${ECHO_T}shared" >&6
8806        SHARED_BUILD=1
8807    else
8808        echo "$as_me:$LINENO: result: static" >&5
8809echo "${ECHO_T}static" >&6
8810        SHARED_BUILD=0
8811
8812cat >>confdefs.h <<\_ACEOF
8813#define STATIC_BUILD 1
8814_ACEOF
8815
8816    fi
8817
8818
8819# Pull compiler / linker values from tclConfig.sh
8820CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
8821CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
8822LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
8823LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
8824SHLIB_LD=${TCL_SHLIB_LD}
8825STLIB_LD=${TCL_STLIB_LD}
8826SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
8827SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841#misc variables that need to be expanded for substitution into tcl
8842
8843oldprefix=$prefix
8844if test "x$prefix" = "xNONE" ; then
8845   prefix=$ac_default_prefix
8846fi
8847
8848eval "prefix_expanded=$prefix"
8849
8850# do this twice, since there is a nested variable of
8851# ${prefix} inside of ${sysconfdir}
8852eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
8853eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
8854
8855eval "localstatedir_expanded=$localstatedir"
8856
8857
8858prefix=$oldprefix
8859
8860
8861# Output
8862
8863                                                                                                    ac_config_files="$ac_config_files Makefile Mk/dports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/ports.conf src/Makefile src/darwinports1.0/darwinports_autoconf.tcl src/port1.0/port_autoconf.tcl src/programs/Makefile src/darwinports1.0/darwinports_fastload.tcl"
8864
8865
8866cat >confcache <<\_ACEOF
8867# This file is a shell script that caches the results of configure
8868# tests run on this system so they can be shared between configure
8869# scripts and configure runs, see configure's option --config-cache.
8870# It is not useful on other systems.  If it contains results you don't
8871# want to keep, you may remove or edit it.
8872#
8873# config.status only pays attention to the cache file if you give it
8874# the --recheck option to rerun configure.
8875#
8876# `ac_cv_env_foo' variables (set or unset) will be overridden when
8877# loading this file, other *unset* `ac_cv_foo' will be assigned the
8878# following values.
8879
8880_ACEOF
8881
8882# The following way of writing the cache mishandles newlines in values,
8883# but we know of no workaround that is simple, portable, and efficient.
8884# So, don't put newlines in cache variables' values.
8885# Ultrix sh set writes to stderr and can't be redirected directly,
8886# and sets the high bit in the cache file unless we assign to the vars.
8887{
8888  (set) 2>&1 |
8889    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8890    *ac_space=\ *)
8891      # `set' does not quote correctly, so add quotes (double-quote
8892      # substitution turns \\\\ into \\, and sed turns \\ into \).
8893      sed -n \
8894        "s/'/'\\\\''/g;
8895          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8896      ;;
8897    *)
8898      # `set' quotes correctly as required by POSIX, so do not add quotes.
8899      sed -n \
8900        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8901      ;;
8902    esac;
8903} |
8904  sed '
8905     t clear
8906     : clear
8907     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8908     t end
8909     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8910     : end' >>confcache
8911if diff $cache_file confcache >/dev/null 2>&1; then :; else
8912  if test -w $cache_file; then
8913    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8914    cat confcache >$cache_file
8915  else
8916    echo "not updating unwritable cache $cache_file"
8917  fi
8918fi
8919rm -f confcache
8920
8921test "x$prefix" = xNONE && prefix=$ac_default_prefix
8922# Let make expand exec_prefix.
8923test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8924
8925# VPATH may cause trouble with some makes, so we remove $(srcdir),
8926# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8927# trailing colons and then remove the whole line if VPATH becomes empty
8928# (actually we leave an empty line to preserve line numbers).
8929if test "x$srcdir" = x.; then
8930  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8931s/:*\$(srcdir):*/:/;
8932s/:*\${srcdir}:*/:/;
8933s/:*@srcdir@:*/:/;
8934s/^\([^=]*=[     ]*\):*/\1/;
8935s/:*$//;
8936s/^[^=]*=[       ]*$//;
8937}'
8938fi
8939
8940DEFS=-DHAVE_CONFIG_H
8941
8942ac_libobjs=
8943ac_ltlibobjs=
8944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8945  # 1. Remove the extension, and $U if already installed.
8946  ac_i=`echo "$ac_i" |
8947         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8948  # 2. Add them.
8949  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8950  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8951done
8952LIBOBJS=$ac_libobjs
8953
8954LTLIBOBJS=$ac_ltlibobjs
8955
8956
8957
8958: ${CONFIG_STATUS=./config.status}
8959ac_clean_files_save=$ac_clean_files
8960ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8961{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8962echo "$as_me: creating $CONFIG_STATUS" >&6;}
8963cat >$CONFIG_STATUS <<_ACEOF
8964#! $SHELL
8965# Generated by $as_me.
8966# Run this file to recreate the current configuration.
8967# Compiler output produced by configure, useful for debugging
8968# configure, is in config.log if it exists.
8969
8970debug=false
8971ac_cs_recheck=false
8972ac_cs_silent=false
8973SHELL=\${CONFIG_SHELL-$SHELL}
8974_ACEOF
8975
8976cat >>$CONFIG_STATUS <<\_ACEOF
8977## --------------------- ##
8978## M4sh Initialization.  ##
8979## --------------------- ##
8980
8981# Be Bourne compatible
8982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8983  emulate sh
8984  NULLCMD=:
8985  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8986  # is contrary to our usage.  Disable this feature.
8987  alias -g '${1+"$@"}'='"$@"'
8988elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8989  set -o posix
8990fi
8991DUALCASE=1; export DUALCASE # for MKS sh
8992
8993# Support unset when possible.
8994if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8995  as_unset=unset
8996else
8997  as_unset=false
8998fi
8999
9000
9001# Work around bugs in pre-3.0 UWIN ksh.
9002$as_unset ENV MAIL MAILPATH
9003PS1='$ '
9004PS2='> '
9005PS4='+ '
9006
9007# NLS nuisances.
9008for as_var in \
9009  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9010  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9011  LC_TELEPHONE LC_TIME
9012do
9013  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9014    eval $as_var=C; export $as_var
9015  else
9016    $as_unset $as_var
9017  fi
9018done
9019
9020# Required to use basename.
9021if expr a : '\(a\)' >/dev/null 2>&1; then
9022  as_expr=expr
9023else
9024  as_expr=false
9025fi
9026
9027if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9028  as_basename=basename
9029else
9030  as_basename=false
9031fi
9032
9033
9034# Name of the executable.
9035as_me=`$as_basename "$0" ||
9036$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9037         X"$0" : 'X\(//\)$' \| \
9038         X"$0" : 'X\(/\)$' \| \
9039         .     : '\(.\)' 2>/dev/null ||
9040echo X/"$0" |
9041    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9042          /^X\/\(\/\/\)$/{ s//\1/; q; }
9043          /^X\/\(\/\).*/{ s//\1/; q; }
9044          s/.*/./; q'`
9045
9046
9047# PATH needs CR, and LINENO needs CR and PATH.
9048# Avoid depending upon Character Ranges.
9049as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9050as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9051as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9052as_cr_digits='0123456789'
9053as_cr_alnum=$as_cr_Letters$as_cr_digits
9054
9055# The user is always right.
9056if test "${PATH_SEPARATOR+set}" != set; then
9057  echo "#! /bin/sh" >conf$$.sh
9058  echo  "exit 0"   >>conf$$.sh
9059  chmod +x conf$$.sh
9060  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9061    PATH_SEPARATOR=';'
9062  else
9063    PATH_SEPARATOR=:
9064  fi
9065  rm -f conf$$.sh
9066fi
9067
9068
9069  as_lineno_1=$LINENO
9070  as_lineno_2=$LINENO
9071  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9072  test "x$as_lineno_1" != "x$as_lineno_2" &&
9073  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9074  # Find who we are.  Look in the path if we contain no path at all
9075  # relative or not.
9076  case $0 in
9077    *[\\/]* ) as_myself=$0 ;;
9078    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081  IFS=$as_save_IFS
9082  test -z "$as_dir" && as_dir=.
9083  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9084done
9085
9086       ;;
9087  esac
9088  # We did not find ourselves, most probably we were run as `sh COMMAND'
9089  # in which case we are not to be found in the path.
9090  if test "x$as_myself" = x; then
9091    as_myself=$0
9092  fi
9093  if test ! -f "$as_myself"; then
9094    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9095echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9096   { (exit 1); exit 1; }; }
9097  fi
9098  case $CONFIG_SHELL in
9099  '')
9100    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9102do
9103  IFS=$as_save_IFS
9104  test -z "$as_dir" && as_dir=.
9105  for as_base in sh bash ksh sh5; do
9106         case $as_dir in
9107         /*)
9108           if ("$as_dir/$as_base" -c '
9109  as_lineno_1=$LINENO
9110  as_lineno_2=$LINENO
9111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9112  test "x$as_lineno_1" != "x$as_lineno_2" &&
9113  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9114             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9115             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9116             CONFIG_SHELL=$as_dir/$as_base
9117             export CONFIG_SHELL
9118             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9119           fi;;
9120         esac
9121       done
9122done
9123;;
9124  esac
9125
9126  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9127  # uniformly replaced by the line number.  The first 'sed' inserts a
9128  # line-number line before each line; the second 'sed' does the real
9129  # work.  The second script uses 'N' to pair each line-number line
9130  # with the numbered line, and appends trailing '-' during
9131  # substitution so that $LINENO is not a special case at line end.
9132  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9133  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9134  sed '=' <$as_myself |
9135    sed '
9136      N
9137      s,$,-,
9138      : loop
9139      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9140      t loop
9141      s,-$,,
9142      s,^['$as_cr_digits']*\n,,
9143    ' >$as_me.lineno &&
9144  chmod +x $as_me.lineno ||
9145    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9146echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9147   { (exit 1); exit 1; }; }
9148
9149  # Don't try to exec as it changes $[0], causing all sort of problems
9150  # (the dirname of $[0] is not the place where we might find the
9151  # original and so on.  Autoconf is especially sensible to this).
9152  . ./$as_me.lineno
9153  # Exit status is that of the last command.
9154  exit
9155}
9156
9157
9158case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9159  *c*,-n*) ECHO_N= ECHO_C='
9160' ECHO_T='      ' ;;
9161  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9162  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9163esac
9164
9165if expr a : '\(a\)' >/dev/null 2>&1; then
9166  as_expr=expr
9167else
9168  as_expr=false
9169fi
9170
9171rm -f conf$$ conf$$.exe conf$$.file
9172echo >conf$$.file
9173if ln -s conf$$.file conf$$ 2>/dev/null; then
9174  # We could just check for DJGPP; but this test a) works b) is more generic
9175  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9176  if test -f conf$$.exe; then
9177    # Don't use ln at all; we don't have any links
9178    as_ln_s='cp -p'
9179  else
9180    as_ln_s='ln -s'
9181  fi
9182elif ln conf$$.file conf$$ 2>/dev/null; then
9183  as_ln_s=ln
9184else
9185  as_ln_s='cp -p'
9186fi
9187rm -f conf$$ conf$$.exe conf$$.file
9188
9189if mkdir -p . 2>/dev/null; then
9190  as_mkdir_p=:
9191else
9192  test -d ./-p && rmdir ./-p
9193  as_mkdir_p=false
9194fi
9195
9196as_executable_p="test -f"
9197
9198# Sed expression to map a string onto a valid CPP name.
9199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9200
9201# Sed expression to map a string onto a valid variable name.
9202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9203
9204
9205# IFS
9206# We need space, tab and new line, in precisely that order.
9207as_nl='
9208'
9209IFS="   $as_nl"
9210
9211# CDPATH.
9212$as_unset CDPATH
9213
9214exec 6>&1
9215
9216# Open the log real soon, to keep \$[0] and so on meaningful, and to
9217# report actual input values of CONFIG_FILES etc. instead of their
9218# values after options handling.  Logging --version etc. is OK.
9219exec 5>>config.log
9220{
9221  echo
9222  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9223## Running $as_me. ##
9224_ASBOX
9225} >&5
9226cat >&5 <<_CSEOF
9227
9228This file was extended by OpenDarwin DarwinPorts $as_me 1.0, which was
9229generated by GNU Autoconf 2.59.  Invocation command line was
9230
9231  CONFIG_FILES    = $CONFIG_FILES
9232  CONFIG_HEADERS  = $CONFIG_HEADERS
9233  CONFIG_LINKS    = $CONFIG_LINKS
9234  CONFIG_COMMANDS = $CONFIG_COMMANDS
9235  $ $0 $@
9236
9237_CSEOF
9238echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9239echo >&5
9240_ACEOF
9241
9242# Files that config.status was made for.
9243if test -n "$ac_config_files"; then
9244  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9245fi
9246
9247if test -n "$ac_config_headers"; then
9248  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9249fi
9250
9251if test -n "$ac_config_links"; then
9252  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9253fi
9254
9255if test -n "$ac_config_commands"; then
9256  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9257fi
9258
9259cat >>$CONFIG_STATUS <<\_ACEOF
9260
9261ac_cs_usage="\
9262\`$as_me' instantiates files from templates according to the
9263current configuration.
9264
9265Usage: $0 [OPTIONS] [FILE]...
9266
9267  -h, --help       print this help, then exit
9268  -V, --version    print version number, then exit
9269  -q, --quiet      do not print progress messages
9270  -d, --debug      don't remove temporary files
9271      --recheck    update $as_me by reconfiguring in the same conditions
9272  --file=FILE[:TEMPLATE]
9273                   instantiate the configuration file FILE
9274  --header=FILE[:TEMPLATE]
9275                   instantiate the configuration header FILE
9276
9277Configuration files:
9278$config_files
9279
9280Configuration headers:
9281$config_headers
9282
9283Report bugs to <bug-autoconf@gnu.org>."
9284_ACEOF
9285
9286cat >>$CONFIG_STATUS <<_ACEOF
9287ac_cs_version="\\
9288OpenDarwin DarwinPorts config.status 1.0
9289configured by $0, generated by GNU Autoconf 2.59,
9290  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9291
9292Copyright (C) 2003 Free Software Foundation, Inc.
9293This config.status script is free software; the Free Software Foundation
9294gives unlimited permission to copy, distribute and modify it."
9295srcdir=$srcdir
9296INSTALL="$INSTALL"
9297_ACEOF
9298
9299cat >>$CONFIG_STATUS <<\_ACEOF
9300# If no file are specified by the user, then we need to provide default
9301# value.  By we need to know if files were specified by the user.
9302ac_need_defaults=:
9303while test $# != 0
9304do
9305  case $1 in
9306  --*=*)
9307    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9308    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9309    ac_shift=:
9310    ;;
9311  -*)
9312    ac_option=$1
9313    ac_optarg=$2
9314    ac_shift=shift
9315    ;;
9316  *) # This is not an option, so the user has probably given explicit
9317     # arguments.
9318     ac_option=$1
9319     ac_need_defaults=false;;
9320  esac
9321
9322  case $ac_option in
9323  # Handling of the options.
9324_ACEOF
9325cat >>$CONFIG_STATUS <<\_ACEOF
9326  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9327    ac_cs_recheck=: ;;
9328  --version | --vers* | -V )
9329    echo "$ac_cs_version"; exit 0 ;;
9330  --he | --h)
9331    # Conflict between --help and --header
9332    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9333Try \`$0 --help' for more information." >&5
9334echo "$as_me: error: ambiguous option: $1
9335Try \`$0 --help' for more information." >&2;}
9336   { (exit 1); exit 1; }; };;
9337  --help | --hel | -h )
9338    echo "$ac_cs_usage"; exit 0 ;;
9339  --debug | --d* | -d )
9340    debug=: ;;
9341  --file | --fil | --fi | --f )
9342    $ac_shift
9343    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9344    ac_need_defaults=false;;
9345  --header | --heade | --head | --hea )
9346    $ac_shift
9347    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9348    ac_need_defaults=false;;
9349  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9350  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9351    ac_cs_silent=: ;;
9352
9353  # This is an error.
9354  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9355Try \`$0 --help' for more information." >&5
9356echo "$as_me: error: unrecognized option: $1
9357Try \`$0 --help' for more information." >&2;}
9358   { (exit 1); exit 1; }; } ;;
9359
9360  *) ac_config_targets="$ac_config_targets $1" ;;
9361
9362  esac
9363  shift
9364done
9365
9366ac_configure_extra_args=
9367
9368if $ac_cs_silent; then
9369  exec 6>/dev/null
9370  ac_configure_extra_args="$ac_configure_extra_args --silent"
9371fi
9372
9373_ACEOF
9374cat >>$CONFIG_STATUS <<_ACEOF
9375if \$ac_cs_recheck; then
9376  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9377  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9378fi
9379
9380_ACEOF
9381
9382
9383
9384
9385
9386cat >>$CONFIG_STATUS <<\_ACEOF
9387for ac_config_target in $ac_config_targets
9388do
9389  case "$ac_config_target" in
9390  # Handling of arguments.
9391  "src/programs/daemondo/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/daemondo/Makefile" ;;
9392  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9393  "Mk/dports.autoconf.mk" ) CONFIG_FILES="$CONFIG_FILES Mk/dports.autoconf.mk" ;;
9394  "doc/prefix.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
9395  "doc/macosx.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
9396  "doc/ports.conf" ) CONFIG_FILES="$CONFIG_FILES doc/ports.conf" ;;
9397  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9398  "src/darwinports1.0/darwinports_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_autoconf.tcl" ;;
9399  "src/port1.0/port_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/port1.0/port_autoconf.tcl" ;;
9400  "src/programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
9401  "src/darwinports1.0/darwinports_fastload.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_fastload.tcl" ;;
9402  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9403  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9404echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9405   { (exit 1); exit 1; }; };;
9406  esac
9407done
9408
9409# If the user did not use the arguments to specify the items to instantiate,
9410# then the envvar interface is used.  Set only those that are not.
9411# We use the long form for the default assignment because of an extremely
9412# bizarre bug on SunOS 4.1.3.
9413if $ac_need_defaults; then
9414  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9415  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9416fi
9417
9418# Have a temporary directory for convenience.  Make it in the build tree
9419# simply because there is no reason to put it here, and in addition,
9420# creating and moving files from /tmp can sometimes cause problems.
9421# Create a temporary directory, and hook for its removal unless debugging.
9422$debug ||
9423{
9424  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9425  trap '{ (exit 1); exit 1; }' 1 2 13 15
9426}
9427
9428# Create a (secure) tmp directory for tmp files.
9429
9430{
9431  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9432  test -n "$tmp" && test -d "$tmp"
9433}  ||
9434{
9435  tmp=./confstat$$-$RANDOM
9436  (umask 077 && mkdir $tmp)
9437} ||
9438{
9439   echo "$me: cannot create a temporary directory in ." >&2
9440   { (exit 1); exit 1; }
9441}
9442
9443_ACEOF
9444
9445cat >>$CONFIG_STATUS <<_ACEOF
9446
9447#
9448# CONFIG_FILES section.
9449#
9450
9451# No need to generate the scripts if there are no CONFIG_FILES.
9452# This happens for instance when ./config.status config.h
9453if test -n "\$CONFIG_FILES"; then
9454  # Protect against being on the right side of a sed subst in config.status.
9455  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9456   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9457s,@SHELL@,$SHELL,;t t
9458s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9459s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9460s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9461s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9462s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9463s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9464s,@exec_prefix@,$exec_prefix,;t t
9465s,@prefix@,$prefix,;t t
9466s,@program_transform_name@,$program_transform_name,;t t
9467s,@bindir@,$bindir,;t t
9468s,@sbindir@,$sbindir,;t t
9469s,@libexecdir@,$libexecdir,;t t
9470s,@datadir@,$datadir,;t t
9471s,@sysconfdir@,$sysconfdir,;t t
9472s,@sharedstatedir@,$sharedstatedir,;t t
9473s,@localstatedir@,$localstatedir,;t t
9474s,@libdir@,$libdir,;t t
9475s,@includedir@,$includedir,;t t
9476s,@oldincludedir@,$oldincludedir,;t t
9477s,@infodir@,$infodir,;t t
9478s,@mandir@,$mandir,;t t
9479s,@build_alias@,$build_alias,;t t
9480s,@host_alias@,$host_alias,;t t
9481s,@target_alias@,$target_alias,;t t
9482s,@DEFS@,$DEFS,;t t
9483s,@ECHO_C@,$ECHO_C,;t t
9484s,@ECHO_N@,$ECHO_N,;t t
9485s,@ECHO_T@,$ECHO_T,;t t
9486s,@LIBS@,$LIBS,;t t
9487s,@build@,$build,;t t
9488s,@build_cpu@,$build_cpu,;t t
9489s,@build_vendor@,$build_vendor,;t t
9490s,@build_os@,$build_os,;t t
9491s,@host@,$host,;t t
9492s,@host_cpu@,$host_cpu,;t t
9493s,@host_vendor@,$host_vendor,;t t
9494s,@host_os@,$host_os,;t t
9495s,@target@,$target,;t t
9496s,@target_cpu@,$target_cpu,;t t
9497s,@target_vendor@,$target_vendor,;t t
9498s,@target_os@,$target_os,;t t
9499s,@CC@,$CC,;t t
9500s,@CFLAGS@,$CFLAGS,;t t
9501s,@LDFLAGS@,$LDFLAGS,;t t
9502s,@CPPFLAGS@,$CPPFLAGS,;t t
9503s,@ac_ct_CC@,$ac_ct_CC,;t t
9504s,@EXEEXT@,$EXEEXT,;t t
9505s,@OBJEXT@,$OBJEXT,;t t
9506s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9507s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9508s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9509s,@SET_MAKE@,$SET_MAKE,;t t
9510s,@LN_S@,$LN_S,;t t
9511s,@CVS@,$CVS,;t t
9512s,@HAVE_LAUNCHD@,$HAVE_LAUNCHD,;t t
9513s,@LAUNCHCTL@,$LAUNCHCTL,;t t
9514s,@XCODEBUILD@,$XCODEBUILD,;t t
9515s,@TAR@,$TAR,;t t
9516s,@GNUTAR@,$GNUTAR,;t t
9517s,@TAR_CMD@,$TAR_CMD,;t t
9518s,@CFLAGS_QUICHEEATERS@,$CFLAGS_QUICHEEATERS,;t t
9519s,@MTREE@,$MTREE,;t t
9520s,@subdirs@,$subdirs,;t t
9521s,@ENABLE_LAUNCHD_SUPPORT@,$ENABLE_LAUNCHD_SUPPORT,;t t
9522s,@HAVE_FRAMEWORK_COREFOUNDATION@,$HAVE_FRAMEWORK_COREFOUNDATION,;t t
9523s,@HAVE_FRAMEWORK_SYSTEMCONFIGURATION@,$HAVE_FRAMEWORK_SYSTEMCONFIGURATION,;t t
9524s,@HAVE_FRAMEWORK_IOKIT@,$HAVE_FRAMEWORK_IOKIT,;t t
9525s,@HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER@,$HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER,;t t
9526s,@REPLACEMENT_PROGS@,$REPLACEMENT_PROGS,;t t
9527s,@EXTRA_PROGS@,$EXTRA_PROGS,;t t
9528s,@DPORTSDIR@,$DPORTSDIR,;t t
9529s,@PORTCONFIGDIR@,$PORTCONFIGDIR,;t t
9530s,@DSTUSR@,$DSTUSR,;t t
9531s,@DSTGRP@,$DSTGRP,;t t
9532s,@DSTMODE@,$DSTMODE,;t t
9533s,@CPP@,$CPP,;t t
9534s,@EGREP@,$EGREP,;t t
9535s,@MD5_LIBS@,$MD5_LIBS,;t t
9536s,@X_CFLAGS@,$X_CFLAGS,;t t
9537s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9538s,@X_LIBS@,$X_LIBS,;t t
9539s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9540s,@TCL_VERSION@,$TCL_VERSION,;t t
9541s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
9542s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
9543s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
9544s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
9545s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
9546s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
9547s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
9548s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
9549s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
9550s,@TCLSH@,$TCLSH,;t t
9551s,@TCL_PACKAGE_DIR@,$TCL_PACKAGE_DIR,;t t
9552s,@CURL_CONFIG@,$CURL_CONFIG,;t t
9553s,@CFLAGS_LIBCURL@,$CFLAGS_LIBCURL,;t t
9554s,@LDFLAGS_LIBCURL@,$LDFLAGS_LIBCURL,;t t
9555s,@OUR_INCLUDED_PACKAGES@,$OUR_INCLUDED_PACKAGES,;t t
9556s,@INCLUDES@,$INCLUDES,;t t
9557s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
9558s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
9559s,@TCL_DEFS@,$TCL_DEFS,;t t
9560s,@STLIB_LD@,$STLIB_LD,;t t
9561s,@SHLIB_LD@,$SHLIB_LD,;t t
9562s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
9563s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
9564s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
9565s,@TCL_CC@,$TCL_CC,;t t
9566s,@prefix_expanded@,$prefix_expanded,;t t
9567s,@PORTCONFIGDIR_EXPANDED@,$PORTCONFIGDIR_EXPANDED,;t t
9568s,@localstatedir_expanded@,$localstatedir_expanded,;t t
9569s,@LIBOBJS@,$LIBOBJS,;t t
9570s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9571CEOF
9572
9573_ACEOF
9574
9575  cat >>$CONFIG_STATUS <<\_ACEOF
9576  # Split the substitutions into bite-sized pieces for seds with
9577  # small command number limits, like on Digital OSF/1 and HP-UX.
9578  ac_max_sed_lines=48
9579  ac_sed_frag=1 # Number of current file.
9580  ac_beg=1 # First line for current file.
9581  ac_end=$ac_max_sed_lines # Line after last line for current file.
9582  ac_more_lines=:
9583  ac_sed_cmds=
9584  while $ac_more_lines; do
9585    if test $ac_beg -gt 1; then
9586      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9587    else
9588      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9589    fi
9590    if test ! -s $tmp/subs.frag; then
9591      ac_more_lines=false
9592    else
9593      # The purpose of the label and of the branching condition is to
9594      # speed up the sed processing (if there are no `@' at all, there
9595      # is no need to browse any of the substitutions).
9596      # These are the two extra sed commands mentioned above.
9597      (echo ':t
9598  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9599      if test -z "$ac_sed_cmds"; then
9600        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9601      else
9602        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9603      fi
9604      ac_sed_frag=`expr $ac_sed_frag + 1`
9605      ac_beg=$ac_end
9606      ac_end=`expr $ac_end + $ac_max_sed_lines`
9607    fi
9608  done
9609  if test -z "$ac_sed_cmds"; then
9610    ac_sed_cmds=cat
9611  fi
9612fi # test -n "$CONFIG_FILES"
9613
9614_ACEOF
9615cat >>$CONFIG_STATUS <<\_ACEOF
9616for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9617  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9618  case $ac_file in
9619  - | *:- | *:-:* ) # input from stdin
9620        cat >$tmp/stdin
9621        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9622        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9623  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9624        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9625  * )   ac_file_in=$ac_file.in ;;
9626  esac
9627
9628  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9629  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9631         X"$ac_file" : 'X\(//\)[^/]' \| \
9632         X"$ac_file" : 'X\(//\)$' \| \
9633         X"$ac_file" : 'X\(/\)' \| \
9634         .     : '\(.\)' 2>/dev/null ||
9635echo X"$ac_file" |
9636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9637          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9638          /^X\(\/\/\)$/{ s//\1/; q; }
9639          /^X\(\/\).*/{ s//\1/; q; }
9640          s/.*/./; q'`
9641  { if $as_mkdir_p; then
9642    mkdir -p "$ac_dir"
9643  else
9644    as_dir="$ac_dir"
9645    as_dirs=
9646    while test ! -d "$as_dir"; do
9647      as_dirs="$as_dir $as_dirs"
9648      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9650         X"$as_dir" : 'X\(//\)[^/]' \| \
9651         X"$as_dir" : 'X\(//\)$' \| \
9652         X"$as_dir" : 'X\(/\)' \| \
9653         .     : '\(.\)' 2>/dev/null ||
9654echo X"$as_dir" |
9655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9656          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9657          /^X\(\/\/\)$/{ s//\1/; q; }
9658          /^X\(\/\).*/{ s//\1/; q; }
9659          s/.*/./; q'`
9660    done
9661    test ! -n "$as_dirs" || mkdir $as_dirs
9662  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9663echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9664   { (exit 1); exit 1; }; }; }
9665
9666  ac_builddir=.
9667
9668if test "$ac_dir" != .; then
9669  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9670  # A "../" for each directory in $ac_dir_suffix.
9671  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9672else
9673  ac_dir_suffix= ac_top_builddir=
9674fi
9675
9676case $srcdir in
9677  .)  # No --srcdir option.  We are building in place.
9678    ac_srcdir=.
9679    if test -z "$ac_top_builddir"; then
9680       ac_top_srcdir=.
9681    else
9682       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9683    fi ;;
9684  [\\/]* | ?:[\\/]* )  # Absolute path.
9685    ac_srcdir=$srcdir$ac_dir_suffix;
9686    ac_top_srcdir=$srcdir ;;
9687  *) # Relative path.
9688    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9689    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9690esac
9691
9692# Do not use `cd foo && pwd` to compute absolute paths, because
9693# the directories may not exist.
9694case `pwd` in
9695.) ac_abs_builddir="$ac_dir";;
9696*)
9697  case "$ac_dir" in
9698  .) ac_abs_builddir=`pwd`;;
9699  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9700  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9701  esac;;
9702esac
9703case $ac_abs_builddir in
9704.) ac_abs_top_builddir=${ac_top_builddir}.;;
9705*)
9706  case ${ac_top_builddir}. in
9707  .) ac_abs_top_builddir=$ac_abs_builddir;;
9708  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9709  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9710  esac;;
9711esac
9712case $ac_abs_builddir in
9713.) ac_abs_srcdir=$ac_srcdir;;
9714*)
9715  case $ac_srcdir in
9716  .) ac_abs_srcdir=$ac_abs_builddir;;
9717  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9718  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9719  esac;;
9720esac
9721case $ac_abs_builddir in
9722.) ac_abs_top_srcdir=$ac_top_srcdir;;
9723*)
9724  case $ac_top_srcdir in
9725  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9726  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9727  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9728  esac;;
9729esac
9730
9731
9732  case $INSTALL in
9733  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9734  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9735  esac
9736
9737  if test x"$ac_file" != x-; then
9738    { echo "$as_me:$LINENO: creating $ac_file" >&5
9739echo "$as_me: creating $ac_file" >&6;}
9740    rm -f "$ac_file"
9741  fi
9742  # Let's still pretend it is `configure' which instantiates (i.e., don't
9743  # use $as_me), people would be surprised to read:
9744  #    /* config.h.  Generated by config.status.  */
9745  if test x"$ac_file" = x-; then
9746    configure_input=
9747  else
9748    configure_input="$ac_file.  "
9749  fi
9750  configure_input=$configure_input"Generated from `echo $ac_file_in |
9751                                     sed 's,.*/,,'` by configure."
9752
9753  # First look for the input files in the build tree, otherwise in the
9754  # src tree.
9755  ac_file_inputs=`IFS=:
9756    for f in $ac_file_in; do
9757      case $f in
9758      -) echo $tmp/stdin ;;
9759      [\\/$]*)
9760         # Absolute (can't be DOS-style, as IFS=:)
9761         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9762echo "$as_me: error: cannot find input file: $f" >&2;}
9763   { (exit 1); exit 1; }; }
9764         echo "$f";;
9765      *) # Relative
9766         if test -f "$f"; then
9767           # Build tree
9768           echo "$f"
9769         elif test -f "$srcdir/$f"; then
9770           # Source tree
9771           echo "$srcdir/$f"
9772         else
9773           # /dev/null tree
9774           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9775echo "$as_me: error: cannot find input file: $f" >&2;}
9776   { (exit 1); exit 1; }; }
9777         fi;;
9778      esac
9779    done` || { (exit 1); exit 1; }
9780_ACEOF
9781cat >>$CONFIG_STATUS <<_ACEOF
9782  sed "$ac_vpsub
9783$extrasub
9784_ACEOF
9785cat >>$CONFIG_STATUS <<\_ACEOF
9786:t
9787/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9788s,@configure_input@,$configure_input,;t t
9789s,@srcdir@,$ac_srcdir,;t t
9790s,@abs_srcdir@,$ac_abs_srcdir,;t t
9791s,@top_srcdir@,$ac_top_srcdir,;t t
9792s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9793s,@builddir@,$ac_builddir,;t t
9794s,@abs_builddir@,$ac_abs_builddir,;t t
9795s,@top_builddir@,$ac_top_builddir,;t t
9796s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9797s,@INSTALL@,$ac_INSTALL,;t t
9798" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9799  rm -f $tmp/stdin
9800  if test x"$ac_file" != x-; then
9801    mv $tmp/out $ac_file
9802  else
9803    cat $tmp/out
9804    rm -f $tmp/out
9805  fi
9806
9807done
9808_ACEOF
9809cat >>$CONFIG_STATUS <<\_ACEOF
9810
9811#
9812# CONFIG_HEADER section.
9813#
9814
9815# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9816# NAME is the cpp macro being defined and VALUE is the value it is being given.
9817#
9818# ac_d sets the value in "#define NAME VALUE" lines.
9819ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9820ac_dB='[         ].*$,\1#\2'
9821ac_dC=' '
9822ac_dD=',;t'
9823# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9824ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9825ac_uB='$,\1#\2define\3'
9826ac_uC=' '
9827ac_uD=',;t'
9828
9829for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9830  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9831  case $ac_file in
9832  - | *:- | *:-:* ) # input from stdin
9833        cat >$tmp/stdin
9834        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9835        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9836  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9837        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9838  * )   ac_file_in=$ac_file.in ;;
9839  esac
9840
9841  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9842echo "$as_me: creating $ac_file" >&6;}
9843
9844  # First look for the input files in the build tree, otherwise in the
9845  # src tree.
9846  ac_file_inputs=`IFS=:
9847    for f in $ac_file_in; do
9848      case $f in
9849      -) echo $tmp/stdin ;;
9850      [\\/$]*)
9851         # Absolute (can't be DOS-style, as IFS=:)
9852         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9853echo "$as_me: error: cannot find input file: $f" >&2;}
9854   { (exit 1); exit 1; }; }
9855         # Do quote $f, to prevent DOS paths from being IFS'd.
9856         echo "$f";;
9857      *) # Relative
9858         if test -f "$f"; then
9859           # Build tree
9860           echo "$f"
9861         elif test -f "$srcdir/$f"; then
9862           # Source tree
9863           echo "$srcdir/$f"
9864         else
9865           # /dev/null tree
9866           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9867echo "$as_me: error: cannot find input file: $f" >&2;}
9868   { (exit 1); exit 1; }; }
9869         fi;;
9870      esac
9871    done` || { (exit 1); exit 1; }
9872  # Remove the trailing spaces.
9873  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9874
9875_ACEOF
9876
9877# Transform confdefs.h into two sed scripts, `conftest.defines' and
9878# `conftest.undefs', that substitutes the proper values into
9879# config.h.in to produce config.h.  The first handles `#define'
9880# templates, and the second `#undef' templates.
9881# And first: Protect against being on the right side of a sed subst in
9882# config.status.  Protect against being in an unquoted here document
9883# in config.status.
9884rm -f conftest.defines conftest.undefs
9885# Using a here document instead of a string reduces the quoting nightmare.
9886# Putting comments in sed scripts is not portable.
9887#
9888# `end' is used to avoid that the second main sed command (meant for
9889# 0-ary CPP macros) applies to n-ary macro definitions.
9890# See the Autoconf documentation for `clear'.
9891cat >confdef2sed.sed <<\_ACEOF
9892s/[\\&,]/\\&/g
9893s,[\\$`],\\&,g
9894t clear
9895: clear
9896s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9897t end
9898s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9899: end
9900_ACEOF
9901# If some macros were called several times there might be several times
9902# the same #defines, which is useless.  Nevertheless, we may not want to
9903# sort them, since we want the *last* AC-DEFINE to be honored.
9904uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9905sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9906rm -f confdef2sed.sed
9907
9908# This sed command replaces #undef with comments.  This is necessary, for
9909# example, in the case of _POSIX_SOURCE, which is predefined and required
9910# on some systems where configure will not decide to define it.
9911cat >>conftest.undefs <<\_ACEOF
9912s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9913_ACEOF
9914
9915# Break up conftest.defines because some shells have a limit on the size
9916# of here documents, and old seds have small limits too (100 cmds).
9917echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9918echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9919echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9920echo '  :' >>$CONFIG_STATUS
9921rm -f conftest.tail
9922while grep . conftest.defines >/dev/null
9923do
9924  # Write a limited-size here document to $tmp/defines.sed.
9925  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9926  # Speed up: don't consider the non `#define' lines.
9927  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9928  # Work around the forget-to-reset-the-flag bug.
9929  echo 't clr' >>$CONFIG_STATUS
9930  echo ': clr' >>$CONFIG_STATUS
9931  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9932  echo 'CEOF
9933  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9934  rm -f $tmp/in
9935  mv $tmp/out $tmp/in
9936' >>$CONFIG_STATUS
9937  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9938  rm -f conftest.defines
9939  mv conftest.tail conftest.defines
9940done
9941rm -f conftest.defines
9942echo '  fi # grep' >>$CONFIG_STATUS
9943echo >>$CONFIG_STATUS
9944
9945# Break up conftest.undefs because some shells have a limit on the size
9946# of here documents, and old seds have small limits too (100 cmds).
9947echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9948rm -f conftest.tail
9949while grep . conftest.undefs >/dev/null
9950do
9951  # Write a limited-size here document to $tmp/undefs.sed.
9952  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9953  # Speed up: don't consider the non `#undef'
9954  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9955  # Work around the forget-to-reset-the-flag bug.
9956  echo 't clr' >>$CONFIG_STATUS
9957  echo ': clr' >>$CONFIG_STATUS
9958  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9959  echo 'CEOF
9960  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9961  rm -f $tmp/in
9962  mv $tmp/out $tmp/in
9963' >>$CONFIG_STATUS
9964  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9965  rm -f conftest.undefs
9966  mv conftest.tail conftest.undefs
9967done
9968rm -f conftest.undefs
9969
9970cat >>$CONFIG_STATUS <<\_ACEOF
9971  # Let's still pretend it is `configure' which instantiates (i.e., don't
9972  # use $as_me), people would be surprised to read:
9973  #    /* config.h.  Generated by config.status.  */
9974  if test x"$ac_file" = x-; then
9975    echo "/* Generated by configure.  */" >$tmp/config.h
9976  else
9977    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9978  fi
9979  cat $tmp/in >>$tmp/config.h
9980  rm -f $tmp/in
9981  if test x"$ac_file" != x-; then
9982    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9983      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9984echo "$as_me: $ac_file is unchanged" >&6;}
9985    else
9986      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9988         X"$ac_file" : 'X\(//\)[^/]' \| \
9989         X"$ac_file" : 'X\(//\)$' \| \
9990         X"$ac_file" : 'X\(/\)' \| \
9991         .     : '\(.\)' 2>/dev/null ||
9992echo X"$ac_file" |
9993    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9994          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9995          /^X\(\/\/\)$/{ s//\1/; q; }
9996          /^X\(\/\).*/{ s//\1/; q; }
9997          s/.*/./; q'`
9998      { if $as_mkdir_p; then
9999    mkdir -p "$ac_dir"
10000  else
10001    as_dir="$ac_dir"
10002    as_dirs=
10003    while test ! -d "$as_dir"; do
10004      as_dirs="$as_dir $as_dirs"
10005      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10007         X"$as_dir" : 'X\(//\)[^/]' \| \
10008         X"$as_dir" : 'X\(//\)$' \| \
10009         X"$as_dir" : 'X\(/\)' \| \
10010         .     : '\(.\)' 2>/dev/null ||
10011echo X"$as_dir" |
10012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10013          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10014          /^X\(\/\/\)$/{ s//\1/; q; }
10015          /^X\(\/\).*/{ s//\1/; q; }
10016          s/.*/./; q'`
10017    done
10018    test ! -n "$as_dirs" || mkdir $as_dirs
10019  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10020echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10021   { (exit 1); exit 1; }; }; }
10022
10023      rm -f $ac_file
10024      mv $tmp/config.h $ac_file
10025    fi
10026  else
10027    cat $tmp/config.h
10028    rm -f $tmp/config.h
10029  fi
10030done
10031_ACEOF
10032
10033cat >>$CONFIG_STATUS <<\_ACEOF
10034
10035{ (exit 0); exit 0; }
10036_ACEOF
10037chmod +x $CONFIG_STATUS
10038ac_clean_files=$ac_clean_files_save
10039
10040
10041# configure is writing to config.log, and then calls config.status.
10042# config.status does its own redirection, appending to config.log.
10043# Unfortunately, on DOS this fails, as config.log is still kept open
10044# by configure, so config.status won't be able to write to it; its
10045# output is simply discarded.  So we exec the FD to /dev/null,
10046# effectively closing config.log, so it can be properly (re)opened and
10047# appended to by config.status.  When coming back to configure, we
10048# need to make the FD available again.
10049if test "$no_create" != yes; then
10050  ac_cs_success=:
10051  ac_config_status_args=
10052  test "$silent" = yes &&
10053    ac_config_status_args="$ac_config_status_args --quiet"
10054  exec 5>/dev/null
10055  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10056  exec 5>>config.log
10057  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10058  # would make configure fail if this is the last instruction.
10059  $ac_cs_success || { (exit 1); exit 1; }
10060fi
10061
10062#
10063# CONFIG_SUBDIRS section.
10064#
10065if test "$no_recursion" != yes; then
10066
10067  # Remove --cache-file and --srcdir arguments so they do not pile up.
10068  ac_sub_configure_args=
10069  ac_prev=
10070  for ac_arg in $ac_configure_args; do
10071    if test -n "$ac_prev"; then
10072      ac_prev=
10073      continue
10074    fi
10075    case $ac_arg in
10076    -cache-file | --cache-file | --cache-fil | --cache-fi \
10077    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10078      ac_prev=cache_file ;;
10079    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10080    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10081    | --c=*)
10082      ;;
10083    --config-cache | -C)
10084      ;;
10085    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10086      ac_prev=srcdir ;;
10087    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10088      ;;
10089    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10090      ac_prev=prefix ;;
10091    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10092      ;;
10093    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10094    esac
10095  done
10096
10097  # Always prepend --prefix to ensure using the same prefix
10098  # in subdir configurations.
10099  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10100
10101  ac_popdir=`pwd`
10102  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10103
10104    # Do not complain, so a configure script can configure whichever
10105    # parts of a large source tree are present.
10106    test -d $srcdir/$ac_dir || continue
10107
10108    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10109echo "$as_me: configuring in $ac_dir" >&6;}
10110    { if $as_mkdir_p; then
10111    mkdir -p "$ac_dir"
10112  else
10113    as_dir="$ac_dir"
10114    as_dirs=
10115    while test ! -d "$as_dir"; do
10116      as_dirs="$as_dir $as_dirs"
10117      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10119         X"$as_dir" : 'X\(//\)[^/]' \| \
10120         X"$as_dir" : 'X\(//\)$' \| \
10121         X"$as_dir" : 'X\(/\)' \| \
10122         .     : '\(.\)' 2>/dev/null ||
10123echo X"$as_dir" |
10124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10125          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10126          /^X\(\/\/\)$/{ s//\1/; q; }
10127          /^X\(\/\).*/{ s//\1/; q; }
10128          s/.*/./; q'`
10129    done
10130    test ! -n "$as_dirs" || mkdir $as_dirs
10131  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10133   { (exit 1); exit 1; }; }; }
10134
10135    ac_builddir=.
10136
10137if test "$ac_dir" != .; then
10138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10139  # A "../" for each directory in $ac_dir_suffix.
10140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10141else
10142  ac_dir_suffix= ac_top_builddir=
10143fi
10144
10145case $srcdir in
10146  .)  # No --srcdir option.  We are building in place.
10147    ac_srcdir=.
10148    if test -z "$ac_top_builddir"; then
10149       ac_top_srcdir=.
10150    else
10151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10152    fi ;;
10153  [\\/]* | ?:[\\/]* )  # Absolute path.
10154    ac_srcdir=$srcdir$ac_dir_suffix;
10155    ac_top_srcdir=$srcdir ;;
10156  *) # Relative path.
10157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10159esac
10160
10161# Do not use `cd foo && pwd` to compute absolute paths, because
10162# the directories may not exist.
10163case `pwd` in
10164.) ac_abs_builddir="$ac_dir";;
10165*)
10166  case "$ac_dir" in
10167  .) ac_abs_builddir=`pwd`;;
10168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10170  esac;;
10171esac
10172case $ac_abs_builddir in
10173.) ac_abs_top_builddir=${ac_top_builddir}.;;
10174*)
10175  case ${ac_top_builddir}. in
10176  .) ac_abs_top_builddir=$ac_abs_builddir;;
10177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10179  esac;;
10180esac
10181case $ac_abs_builddir in
10182.) ac_abs_srcdir=$ac_srcdir;;
10183*)
10184  case $ac_srcdir in
10185  .) ac_abs_srcdir=$ac_abs_builddir;;
10186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10188  esac;;
10189esac
10190case $ac_abs_builddir in
10191.) ac_abs_top_srcdir=$ac_top_srcdir;;
10192*)
10193  case $ac_top_srcdir in
10194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10197  esac;;
10198esac
10199
10200
10201    cd $ac_dir
10202
10203    # Check for guested configure; otherwise get Cygnus style configure.
10204    if test -f $ac_srcdir/configure.gnu; then
10205      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10206    elif test -f $ac_srcdir/configure; then
10207      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10208    elif test -f $ac_srcdir/configure.in; then
10209      ac_sub_configure=$ac_configure
10210    else
10211      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10212echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10213      ac_sub_configure=
10214    fi
10215
10216    # The recursion is here.
10217    if test -n "$ac_sub_configure"; then
10218      # Make the cache file name correct relative to the subdirectory.
10219      case $cache_file in
10220      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10221      *) # Relative path.
10222        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
10223      esac
10224
10225      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10226echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10227      # The eval makes quoting arguments work.
10228      eval $ac_sub_configure $ac_sub_configure_args \
10229           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10230        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10231echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10232   { (exit 1); exit 1; }; }
10233    fi
10234
10235    cd $ac_popdir
10236  done
10237fi
10238
Note: See TracBrowser for help on using the repository browser.