source: trunk/base/configure @ 60008

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

base: add comment

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