source: trunk/base/configure @ 84088

Last change on this file since 84088 was 81642, checked in by jmr@…, 9 years ago

split -pedantic into a separate variable so it can be turned off individually, and use -Wextra instead of -W

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