source: branches/gsoc08-privileges/base/configure @ 94655

Last change on this file since 94655 was 39000, checked in by pmagrath@…, 12 years ago

Merged revisions 38683-38684,38753,38756,38765,38835,38883,38940-38942,38960-38961,38973 via svnmerge from
https://svn.macosforge.org/repository/macports/trunk/base

........

r38683 | febeling@… | 2008-07-28 22:21:33 +0100 (Mon, 28 Jul 2008) | 9 lines


Support for ruby19 ports in the ruby port group.


The command ruby.setup accepts an new optional
parameter "implementation", which is ruby18 by
default, and can also be ruby19. (As more ruby
implementations appear these may be added as
well.) Unit tests are in the new sub-directory
tests/.

........

r38684 | febeling@… | 2008-07-28 22:32:47 +0100 (Mon, 28 Jul 2008) | 2 lines


ChangeLog for ruby group change, #15912.

........

r38753 | afb@… | 2008-07-30 08:30:39 +0100 (Wed, 30 Jul 2008) | 2 lines


update changelog for r38577

........

r38756 | afb@… | 2008-07-30 11:13:23 +0100 (Wed, 30 Jul 2008) | 2 lines


unbreak test case when ruby19 is not installed or not running leopard

........

r38765 | toby@… | 2008-07-30 20:59:14 +0100 (Wed, 30 Jul 2008) | 2 lines


fix distclean

........

r38835 | febeling@… | 2008-08-01 09:47:58 +0100 (Fri, 01 Aug 2008) | 2 lines


remove hard-coded mp prefix in test case setup

........

r38883 | wsiegrist@… | 2008-08-02 00:53:41 +0100 (Sat, 02 Aug 2008) | 2 lines


Make the guide chunkier at <http://guide.macports.org/chunked/>

........

r38940 | raimue@… | 2008-08-03 09:05:42 +0100 (Sun, 03 Aug 2008) | 4 lines


pextlib1.0:
Add a wrapper for isatty(3). Add term_get_size to find the size of a connected
terminal for a channel using ioctl(2).

........

r38941 | raimue@… | 2008-08-03 09:10:26 +0100 (Sun, 03 Aug 2008) | 4 lines


port/port.tcl:
Use isatty and term_get_size from pextlib to determine the size of the
connected terminal. This requires the Pextlib package.

........

r38942 | raimue@… | 2008-08-03 09:19:05 +0100 (Sun, 03 Aug 2008) | 3 lines


pextlib1.0/tty.c:
Tabs to spaces

........

r38960 | afb@… | 2008-08-04 10:23:00 +0100 (Mon, 04 Aug 2008) | 2 lines


add use_lzma for .tar.lzma support

........

r38961 | afb@… | 2008-08-04 10:29:00 +0100 (Mon, 04 Aug 2008) | 2 lines


fix typo

........

r38973 | jmr@… | 2008-08-04 17:11:28 +0100 (Mon, 04 Aug 2008) | 2 lines


mirror sites: order sourceforge mirrors more or less geographically

........

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