source: branches/new-help-system/base/configure @ 65841

Last change on this file since 65841 was 65841, checked in by raimue@…, 8 years ago

Regenerate configure (changes got lost in merge from trunk)

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