source: trunk/base/configure @ 52324

Last change on this file since 52324 was 52324, checked in by toby@…, 11 years ago

Merge universal-sanity branch. Changes are relatively straightforward, although somewhat risky:

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