source: trunk/base/configure @ 118736

Last change on this file since 118736 was 118736, checked in by jeremyhu@…, 6 years ago

Fix configure when the BZIP2 envvar is set

configure: === extracting vendor/tclx8.4.1.tar.bz2
bzip2: Can't guess original name for /usr/bin/bzip2 -- using /usr/bin/bzip2.out
bzip2: Input file /usr/bin/bzip2 has 2 other links.
configure: error: tarball vendor/tclx8.4.1.tar.bz2 did not extract to vendor/tclx8.4
make: * [config.status] Error 1

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