source: trunk/base/configure

Last change on this file was 146454, checked in by snc@…, 4 years ago

configure: regen.sh

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