Ignore:
Timestamp:
Jun 15, 2007, 8:06:03 AM (10 years ago)
Author:
jmpp@…
Message:

Merging landonf's r26135: Autoconf support for objc, foundation, and optionally-enabled -Werror.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dp2mp-move/base/configure

    r25783 r26175  
    580580
    581581ac_unique_file="src/pextlib1.0/Pextlib.c"
    582 ac_default_prefix=/opt/local
    583582# Factoring default headers for most tests.
    584583ac_includes_default="\
     
    617616#endif"
    618617
     618ac_default_prefix=/opt/local
    619619ac_subst_vars='SHELL
    620620PATH_SEPARATOR
     
    673673EXEEXT
    674674OBJEXT
     675OBJC
     676OBJCFLAGS
     677ac_ct_OBJC
    675678INSTALL_PROGRAM
    676679INSTALL_SCRIPT
     
    692695TAR_CMD
    693696CFLAGS_QUICHEEATERS
     697CFLAGS_WERROR
     698OBJCPP
     699GREP
     700EGREP
     701OBJC_RUNTIME
     702OBJC_RUNTIME_FLAGS
     703OBJC_LIBS
     704OBJC_PTHREAD_LIBS
     705OBJC_PTHREAD_CFLAGS
    694706HAVE_FRAMEWORK_COREFOUNDATION
    695707HAVE_FRAMEWORK_SYSTEMCONFIGURATION
     
    704716DSTMODE
    705717CPP
    706 GREP
    707 EGREP
    708718READLINK_IS_NOT_P1003_1A
    709719MD5_LIBS
     
    756766LIBS
    757767CPPFLAGS
     768OBJC
     769OBJCFLAGS
    758770MTREE
    759771CVS
     
    765777XAR
    766778OPEN
     779OBJCPP
    767780CPP
    768781XMKMF'
     
    13471360  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    13481361  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1362  --enable-werror         Add -Werror to CFLAGS. Used for development.
    13491363  --enable-shared         build and link with shared libraries --enable-shared
    13501364
     
    13521366  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    13531367  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1368  --with-objc-runtime     Specify either "GNU" or "apple"
     1369  --with-objc-foundation  Specify either "GNUstep" or "apple"
    13541370  --with-ports-dir=DIR    Specify alternate ports directory
    13551371  --with-install-user=USER
     
    13771393  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    13781394              you have headers in a nonstandard directory <include dir>
     1395  OBJC        Objective C compiler command
     1396  OBJCFLAGS   Objective C compiler flags
    13791397  MTREE       path to mtree command
    13801398  CVS         path to cvs command
     
    13861404  XAR         path to xar command
    13871405  OPEN        path to open command
     1406  OBJCPP      Objective C preprocessor
    13881407  CPP         C preprocessor
    13891408  XMKMF       Path to xmkmf, Makefile generator for X Window System
     
    29262945ac_compiler_gnu=$ac_cv_c_compiler_gnu
    29272946
     2947ac_ext=m
     2948ac_cpp='$OBJCPP $CPPFLAGS'
     2949ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2950ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2951ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     2952if test -n "$ac_tool_prefix"; then
     2953  for ac_prog in $CCC gcc cc objc
     2954  do
     2955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     2958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2959if test "${ac_cv_prog_OBJC+set}" = set; then
     2960  echo $ECHO_N "(cached) $ECHO_C" >&6
     2961else
     2962  if test -n "$OBJC"; then
     2963  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
     2964else
     2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2966for as_dir in $PATH
     2967do
     2968  IFS=$as_save_IFS
     2969  test -z "$as_dir" && as_dir=.
     2970  for ac_exec_ext in '' $ac_executable_extensions; do
     2971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2972    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
     2973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2974    break 2
     2975  fi
     2976done
     2977done
     2978IFS=$as_save_IFS
     2979
     2980fi
     2981fi
     2982OBJC=$ac_cv_prog_OBJC
     2983if test -n "$OBJC"; then
     2984  { echo "$as_me:$LINENO: result: $OBJC" >&5
     2985echo "${ECHO_T}$OBJC" >&6; }
     2986else
     2987  { echo "$as_me:$LINENO: result: no" >&5
     2988echo "${ECHO_T}no" >&6; }
     2989fi
     2990
     2991
     2992    test -n "$OBJC" && break
     2993  done
     2994fi
     2995if test -z "$OBJC"; then
     2996  ac_ct_OBJC=$OBJC
     2997  for ac_prog in $CCC gcc cc objc
     2998do
     2999  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3000set dummy $ac_prog; ac_word=$2
     3001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     3002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3003if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
     3004  echo $ECHO_N "(cached) $ECHO_C" >&6
     3005else
     3006  if test -n "$ac_ct_OBJC"; then
     3007  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
     3008else
     3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3010for as_dir in $PATH
     3011do
     3012  IFS=$as_save_IFS
     3013  test -z "$as_dir" && as_dir=.
     3014  for ac_exec_ext in '' $ac_executable_extensions; do
     3015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3016    ac_cv_prog_ac_ct_OBJC="$ac_prog"
     3017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3018    break 2
     3019  fi
     3020done
     3021done
     3022IFS=$as_save_IFS
     3023
     3024fi
     3025fi
     3026ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
     3027if test -n "$ac_ct_OBJC"; then
     3028  { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
     3029echo "${ECHO_T}$ac_ct_OBJC" >&6; }
     3030else
     3031  { echo "$as_me:$LINENO: result: no" >&5
     3032echo "${ECHO_T}no" >&6; }
     3033fi
     3034
     3035
     3036  test -n "$ac_ct_OBJC" && break
     3037done
     3038
     3039  if test "x$ac_ct_OBJC" = x; then
     3040    OBJC="gcc"
     3041  else
     3042    case $cross_compiling:$ac_tool_warned in
     3043yes:)
     3044{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     3045whose name does not start with the host triplet.  If you think this
     3046configuration is useful to you, please write to autoconf@gnu.org." >&5
     3047echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     3048whose name does not start with the host triplet.  If you think this
     3049configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     3050ac_tool_warned=yes ;;
     3051esac
     3052    OBJC=$ac_ct_OBJC
     3053  fi
     3054fi
     3055
     3056
     3057# Provide some information about the compiler.
     3058echo "$as_me:$LINENO:" \
     3059     "checking for Objective C compiler version" >&5
     3060ac_compiler=`set X $ac_compile; echo $2`
     3061{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3062  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3063  ac_status=$?
     3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3065  (exit $ac_status); }
     3066{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3067  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3068  ac_status=$?
     3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3070  (exit $ac_status); }
     3071{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3072  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3073  ac_status=$?
     3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3075  (exit $ac_status); }
     3076
     3077{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
     3078echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
     3079if test "${ac_cv_objc_compiler_gnu+set}" = set; then
     3080  echo $ECHO_N "(cached) $ECHO_C" >&6
     3081else
     3082  cat >conftest.$ac_ext <<_ACEOF
     3083/* confdefs.h.  */
     3084_ACEOF
     3085cat confdefs.h >>conftest.$ac_ext
     3086cat >>conftest.$ac_ext <<_ACEOF
     3087/* end confdefs.h.  */
     3088
     3089int
     3090main ()
     3091{
     3092#ifndef __GNUC__
     3093       choke me
     3094#endif
     3095
     3096  ;
     3097  return 0;
     3098}
     3099_ACEOF
     3100rm -f conftest.$ac_objext
     3101if { (ac_try="$ac_compile"
     3102case "(($ac_try" in
     3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3104  *) ac_try_echo=$ac_try;;
     3105esac
     3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3107  (eval "$ac_compile") 2>conftest.er1
     3108  ac_status=$?
     3109  grep -v '^ *+' conftest.er1 >conftest.err
     3110  rm -f conftest.er1
     3111  cat conftest.err >&5
     3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3113  (exit $ac_status); } && {
     3114         test -z "$ac_objc_werror_flag" ||
     3115         test ! -s conftest.err
     3116       } && test -s conftest.$ac_objext; then
     3117  ac_compiler_gnu=yes
     3118else
     3119  echo "$as_me: failed program was:" >&5
     3120sed 's/^/| /' conftest.$ac_ext >&5
     3121
     3122        ac_compiler_gnu=no
     3123fi
     3124
     3125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3126ac_cv_objc_compiler_gnu=$ac_compiler_gnu
     3127
     3128fi
     3129{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
     3130echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
     3131GOBJC=`test $ac_compiler_gnu = yes && echo yes`
     3132ac_test_OBJCFLAGS=${OBJCFLAGS+set}
     3133ac_save_OBJCFLAGS=$OBJCFLAGS
     3134OBJCFLAGS="-g"
     3135{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
     3136echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
     3137if test "${ac_cv_prog_objc_g+set}" = set; then
     3138  echo $ECHO_N "(cached) $ECHO_C" >&6
     3139else
     3140  cat >conftest.$ac_ext <<_ACEOF
     3141/* confdefs.h.  */
     3142_ACEOF
     3143cat confdefs.h >>conftest.$ac_ext
     3144cat >>conftest.$ac_ext <<_ACEOF
     3145/* end confdefs.h.  */
     3146
     3147int
     3148main ()
     3149{
     3150
     3151  ;
     3152  return 0;
     3153}
     3154_ACEOF
     3155rm -f conftest.$ac_objext
     3156if { (ac_try="$ac_compile"
     3157case "(($ac_try" in
     3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3159  *) ac_try_echo=$ac_try;;
     3160esac
     3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3162  (eval "$ac_compile") 2>conftest.er1
     3163  ac_status=$?
     3164  grep -v '^ *+' conftest.er1 >conftest.err
     3165  rm -f conftest.er1
     3166  cat conftest.err >&5
     3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3168  (exit $ac_status); } && {
     3169         test -z "$ac_objc_werror_flag" ||
     3170         test ! -s conftest.err
     3171       } && test -s conftest.$ac_objext; then
     3172  ac_cv_prog_objc_g=yes
     3173else
     3174  echo "$as_me: failed program was:" >&5
     3175sed 's/^/| /' conftest.$ac_ext >&5
     3176
     3177        ac_cv_prog_objc_g=no
     3178fi
     3179
     3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3181fi
     3182{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
     3183echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
     3184if test "$ac_test_OBJCFLAGS" = set; then
     3185  OBJCFLAGS=$ac_save_OBJCFLAGS
     3186elif test $ac_cv_prog_objc_g = yes; then
     3187  if test "$GOBJC" = yes; then
     3188    OBJCFLAGS="-g -O2"
     3189  else
     3190    OBJCFLAGS="-g"
     3191  fi
     3192else
     3193  if test "$GOBJC" = yes; then
     3194    OBJCFLAGS="-O2"
     3195  else
     3196    OBJCFLAGS=
     3197  fi
     3198fi
     3199ac_ext=c
     3200ac_cpp='$CPP $CPPFLAGS'
     3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3204
    29283205# Find a good install program.  We prefer a C program (faster),
    29293206# so one script is as good as another.  But avoid the broken or
     
    35703847
    35713848
     3849        # Check whether --enable-werror was given.
     3850if test "${enable_werror+set}" = set; then
     3851  enableval=$enable_werror; enable_werror=${enableval}
     3852else
     3853  enable_werror=no
     3854fi
     3855
     3856        if test x"$enable_werror" != "xno"; then
     3857                CFLAGS_WERROR="-Werror"
     3858        else
     3859                CFLAGS_WERROR=""
     3860        fi
     3861
     3862
     3863
     3864
    35723865
    35733866        { echo "$as_me:$LINENO: checking how to mark unused variables" >&5
     
    36203913
    36213914
    3622 
    3623         FRAMEWORK_LIBS="-framework CoreFoundation"
    3624 
    3625         { echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
    3626 echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6; }
    3627 
    3628         if test "${mp_cv_have_framework_corefoundation+set}" = set; then
     3915        { echo "$as_me:$LINENO: checking for gcc symbol visibility attribute" >&5
     3916echo $ECHO_N "checking for gcc symbol visibility attribute... $ECHO_C" >&6; }
     3917        if test "${mp_cv_attribute_mp_private+set}" = set; then
    36293918  echo $ECHO_N "(cached) $ECHO_C" >&6
    36303919else
    3631 
    3632                 ac_save_LIBS="$LIBS"
    3633                 LIBS="$FRAMEWORK_LIBS $LIBS"
    36343920
    36353921                cat >conftest.$ac_ext <<_ACEOF
     
    36413927/* end confdefs.h.  */
    36423928
    3643                                         #include <CoreFoundation/CoreFoundation.h>
    3644 
    3645 int
    3646 main ()
    3647 {
    3648 
    3649                                         CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
    3650                                         CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
    3651 
    3652   ;
    3653   return 0;
    3654 }
    3655 
    3656 _ACEOF
    3657 rm -f conftest.$ac_objext conftest$ac_exeext
    3658 if { (ac_try="$ac_link"
     3929                                #if defined(__GNUC__) && defined(__APPLE__) && __GNUC__ < 4
     3930                                # error Darwin does not support the visibility attribute with gcc releases prior to 4
     3931                                #elif defined(WIN32) && __GNUC__ < 4
     3932                                # error MinGW/Cygwin do not support the visibility attribute with gcc releases prior to 4.
     3933                                #endif
     3934                                int a __attribute__ ((visibility("hidden")));
     3935
     3936
     3937_ACEOF
     3938rm -f conftest.$ac_objext
     3939if { (ac_try="$ac_compile"
    36593940case "(($ac_try" in
    36603941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     
    36623943esac
    36633944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3664   (eval "$ac_link") 2>conftest.er1
     3945  (eval "$ac_compile") 2>conftest.er1
    36653946  ac_status=$?
    36663947  grep -v '^ *+' conftest.er1 >conftest.err
     
    36713952         test -z "$ac_c_werror_flag" ||
    36723953         test ! -s conftest.err
    3673        } && test -s conftest$ac_exeext &&
    3674        $as_test_x conftest$ac_exeext; then
    3675 
    3676                                 mp_cv_have_framework_corefoundation="yes"
     3954       } && test -s conftest.$ac_objext; then
     3955
     3956                        mp_cv_attribute_mp_private="__attribute__((visibility(\"hidden\")))"
    36773957
    36783958else
     
    36813961
    36823962
    3683                                 mp_cv_have_framework_corefoundation="no"
    3684 
    3685 
    3686 fi
    3687 
    3688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    3689       conftest$ac_exeext conftest.$ac_ext
    3690 
    3691                 LIBS="$ac_save_LIBS"
    3692 
    3693 fi
    3694 
    3695 
    3696         { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_corefoundation}" >&5
    3697 echo "${ECHO_T}${mp_cv_have_framework_corefoundation}" >&6; }
    3698 
    3699         if test x"${mp_cv_have_framework_corefoundation}" = "xyes"; then
    3700 
    3701 cat >>confdefs.h <<\_ACEOF
    3702 #define HAVE_FRAMEWORK_COREFOUNDATION
    3703 _ACEOF
    3704 
     3963                        mp_cv_attribute_mp_private="no"
     3964
     3965fi
     3966
     3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3968
     3969fi
     3970
     3971
     3972        { echo "$as_me:$LINENO: result: $mp_cv_attribute_mp_private" >&5
     3973echo "${ECHO_T}$mp_cv_attribute_mp_private" >&6; }
     3974
     3975        if test x"$mp_cv_attribute_mp_private" = "xno"; then
     3976                MP_PRIVATE=""
     3977        else
     3978                MP_PRIVATE="$mp_cv_attribute_mp_private"
    37053979        fi
    37063980
    37073981
    3708 
    3709 
    3710         FRAMEWORK_LIBS="-framework SystemConfiguration"
    3711 
    3712         { echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
    3713 echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6; }
    3714 
    3715         if test "${mp_cv_have_framework_systemconfiguration+set}" = set; then
     3982cat >>confdefs.h <<_ACEOF
     3983#define MP_PRIVATE $MP_PRIVATE
     3984_ACEOF
     3985
     3986
     3987
     3988# Foundation checks
     3989
     3990ac_ext=m
     3991ac_cpp='$OBJCPP $CPPFLAGS'
     3992ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3993ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3994ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     3995{ echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&5
     3996echo $ECHO_N "checking how to run the Objective C preprocessor... $ECHO_C" >&6; }
     3997if test -z "$OBJCPP"; then
     3998  if test "${ac_cv_prog_OBJCPP+set}" = set; then
    37163999  echo $ECHO_N "(cached) $ECHO_C" >&6
    37174000else
    3718 
    3719                 ac_save_LIBS="$LIBS"
    3720                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3721 
    3722                 cat >conftest.$ac_ext <<_ACEOF
    3723 
    3724                         /* confdefs.h.  */
    3725 _ACEOF
    3726 cat confdefs.h >>conftest.$ac_ext
    3727 cat >>conftest.$ac_ext <<_ACEOF
    3728 /* end confdefs.h.  */
    3729 
    3730                                         #include <SystemConfiguration/SystemConfiguration.h>
    3731 
    3732 int
    3733 main ()
    3734 {
    3735 
    3736                                         int err = SCError();
    3737                                         SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
    3738 
    3739   ;
    3740   return 0;
    3741 }
    3742 
    3743 _ACEOF
    3744 rm -f conftest.$ac_objext conftest$ac_exeext
    3745 if { (ac_try="$ac_link"
    3746 case "(($ac_try" in
    3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3748   *) ac_try_echo=$ac_try;;
    3749 esac
    3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3751   (eval "$ac_link") 2>conftest.er1
    3752   ac_status=$?
    3753   grep -v '^ *+' conftest.er1 >conftest.err
    3754   rm -f conftest.er1
    3755   cat conftest.err >&5
    3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3757   (exit $ac_status); } && {
    3758          test -z "$ac_c_werror_flag" ||
    3759          test ! -s conftest.err
    3760        } && test -s conftest$ac_exeext &&
    3761        $as_test_x conftest$ac_exeext; then
    3762 
    3763                                 mp_cv_have_framework_systemconfiguration="yes"
    3764 
    3765 else
    3766   echo "$as_me: failed program was:" >&5
    3767 sed 's/^/| /' conftest.$ac_ext >&5
    3768 
    3769 
    3770                                 mp_cv_have_framework_systemconfiguration="no"
    3771 
    3772 
    3773 fi
    3774 
    3775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    3776       conftest$ac_exeext conftest.$ac_ext
    3777 
    3778                 LIBS="$ac_save_LIBS"
    3779 
    3780 fi
    3781 
    3782 
    3783         { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_systemconfiguration}" >&5
    3784 echo "${ECHO_T}${mp_cv_have_framework_systemconfiguration}" >&6; }
    3785 
    3786         if test x"${mp_cv_have_framework_systemconfiguration}" = "xyes"; then
    3787 
    3788 cat >>confdefs.h <<\_ACEOF
    3789 #define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
    3790 _ACEOF
    3791 
    3792         fi
    3793 
    3794 
    3795 
    3796 
    3797         FRAMEWORK_LIBS="-framework IOKit"
    3798 
    3799         { echo "$as_me:$LINENO: checking for IOKit framework" >&5
    3800 echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6; }
    3801 
    3802         if test "${mp_cv_have_framework_iokit+set}" = set; then
    3803   echo $ECHO_N "(cached) $ECHO_C" >&6
    3804 else
    3805 
    3806                 ac_save_LIBS="$LIBS"
    3807                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3808 
    3809                 cat >conftest.$ac_ext <<_ACEOF
    3810 
    3811                         /* confdefs.h.  */
    3812 _ACEOF
    3813 cat confdefs.h >>conftest.$ac_ext
    3814 cat >>conftest.$ac_ext <<_ACEOF
    3815 /* end confdefs.h.  */
    3816 
    3817                                         #include <IOKit/IOKitLib.h>
    3818 
    3819 int
    3820 main ()
    3821 {
    3822 
    3823                                         IOCreateReceivePort(0, NULL);
    3824                                         IORegisterForSystemPower(0, NULL, NULL, NULL);
    3825 
    3826   ;
    3827   return 0;
    3828 }
    3829 
    3830 _ACEOF
    3831 rm -f conftest.$ac_objext conftest$ac_exeext
    3832 if { (ac_try="$ac_link"
    3833 case "(($ac_try" in
    3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3835   *) ac_try_echo=$ac_try;;
    3836 esac
    3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3838   (eval "$ac_link") 2>conftest.er1
    3839   ac_status=$?
    3840   grep -v '^ *+' conftest.er1 >conftest.err
    3841   rm -f conftest.er1
    3842   cat conftest.err >&5
    3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3844   (exit $ac_status); } && {
    3845          test -z "$ac_c_werror_flag" ||
    3846          test ! -s conftest.err
    3847        } && test -s conftest$ac_exeext &&
    3848        $as_test_x conftest$ac_exeext; then
    3849 
    3850                                 mp_cv_have_framework_iokit="yes"
    3851 
    3852 else
    3853   echo "$as_me: failed program was:" >&5
    3854 sed 's/^/| /' conftest.$ac_ext >&5
    3855 
    3856 
    3857                                 mp_cv_have_framework_iokit="no"
    3858 
    3859 
    3860 fi
    3861 
    3862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    3863       conftest$ac_exeext conftest.$ac_ext
    3864 
    3865                 LIBS="$ac_save_LIBS"
    3866 
    3867 fi
    3868 
    3869 
    3870         { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_iokit}" >&5
    3871 echo "${ECHO_T}${mp_cv_have_framework_iokit}" >&6; }
    3872 
    3873         if test x"${mp_cv_have_framework_iokit}" = "xyes"; then
    3874 
    3875 cat >>confdefs.h <<\_ACEOF
    3876 #define HAVE_FRAMEWORK_IOKIT
    3877 _ACEOF
    3878 
    3879         fi
    3880 
    3881 
    3882 
    3883 
    3884         FRAMEWORK_LIBS="-framework CoreFoundation"
    3885 
    3886         { echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
    3887 echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6; }
    3888 
    3889         if test "${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
    3890   echo $ECHO_N "(cached) $ECHO_C" >&6
    3891 else
    3892 
    3893                 ac_save_LIBS="$LIBS"
    3894                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3895 
    3896                 cat >conftest.$ac_ext <<_ACEOF
    3897 
    3898                         /* confdefs.h.  */
    3899 _ACEOF
    3900 cat confdefs.h >>conftest.$ac_ext
    3901 cat >>conftest.$ac_ext <<_ACEOF
    3902 /* end confdefs.h.  */
    3903 
    3904                                         #include <CoreFoundation/CoreFoundation.h>
    3905 
    3906 int
    3907 main ()
    3908 {
    3909 
    3910                                         CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
    3911 
    3912   ;
    3913   return 0;
    3914 }
    3915 
    3916 _ACEOF
    3917 rm -f conftest.$ac_objext conftest$ac_exeext
    3918 if { (ac_try="$ac_link"
    3919 case "(($ac_try" in
    3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3921   *) ac_try_echo=$ac_try;;
    3922 esac
    3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3924   (eval "$ac_link") 2>conftest.er1
    3925   ac_status=$?
    3926   grep -v '^ *+' conftest.er1 >conftest.err
    3927   rm -f conftest.er1
    3928   cat conftest.err >&5
    3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3930   (exit $ac_status); } && {
    3931          test -z "$ac_c_werror_flag" ||
    3932          test ! -s conftest.err
    3933        } && test -s conftest$ac_exeext &&
    3934        $as_test_x conftest$ac_exeext; then
    3935 
    3936                                 mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
    3937 
    3938 else
    3939   echo "$as_me: failed program was:" >&5
    3940 sed 's/^/| /' conftest.$ac_ext >&5
    3941 
    3942 
    3943                                 mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
    3944 
    3945 
    3946 fi
    3947 
    3948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    3949       conftest$ac_exeext conftest.$ac_ext
    3950 
    3951                 LIBS="$ac_save_LIBS"
    3952 
    3953 fi
    3954 
    3955 
    3956         { echo "$as_me:$LINENO: result: ${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
    3957 echo "${ECHO_T}${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6; }
    3958 
    3959         if test x"${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
    3960 
    3961 cat >>confdefs.h <<\_ACEOF
    3962 #define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
    3963 _ACEOF
    3964 
    3965         fi
    3966 
    3967 
    3968 
    3969 
    3970 
    3971 
    3972 
    3973 
    3974 
    3975     { echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
    3976 echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6; }
    3977     result=no
    3978         case $host_os in
    3979         darwin*)
    3980                 if test "x$mp_cv_have_framework_corefoundation" == "xyes" &&
    3981                    test "x$mp_cv_have_framework_systemconfiguration" == "xyes" &&
    3982                    test "x$mp_cv_have_framework_iokit" == "xyes" &&
    3983                    test "x$mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
    3984                         result=yes
    3985                         EXTRA_PROGS="$EXTRA_PROGS daemondo"
    3986                         ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
    3987 
    3988                 fi
    3989                 ;;
    3990         *)
    3991         esac
    3992         { echo "$as_me:$LINENO: result: ${result}" >&5
    3993 echo "${ECHO_T}${result}" >&6; }
    3994 
    3995 #MP_PROG_XAR
    3996 
    3997 
    3998 
    3999 
    4000 # set default ports-directory
    4001 PORTS_DIR_DEFAULT=`pwd | sed -e "s/base/ports/"`
    4002 
    4003 # Check for paths
    4004 
    4005 
    4006 
    4007 
    4008 
    4009 # Check whether --with-ports-dir was given.
    4010 if test "${with_ports_dir+set}" = set; then
    4011   withval=$with_ports_dir;  portsdir="$withval"
    4012 fi
    4013 
    4014 
    4015 
    4016         { echo "$as_me:$LINENO: checking for ports tree" >&5
    4017 echo $ECHO_N "checking for ports tree... $ECHO_C" >&6; }
    4018         if test "x$portsdir" != "x" ; then
    4019           if test -d "$portsdir" -a -e "$portsdir/PortIndex" ; then
    4020                 :
    4021           else
    4022                 { { echo "$as_me:$LINENO: error: $portsdir not a valid ports tree" >&5
    4023 echo "$as_me: error: $portsdir not a valid ports tree" >&2;}
    4024    { (exit 1); exit 1; }; }
    4025           fi
    4026         else
    4027                                 if test "x$PORTS_DIR_DEFAULT" != "x" ; then
    4028                   if test -d "$PORTS_DIR_DEFAULT" -a -e "$PORTS_DIR_DEFAULT/PortIndex" ; then
    4029                         portsdir=$PORTS_DIR_DEFAULT
    4030                   fi
    4031                 fi
    4032         fi
    4033 
    4034         if test "x$portsdir" != "x" ; then
    4035                 { echo "$as_me:$LINENO: result: $portsdir" >&5
    4036 echo "${ECHO_T}$portsdir" >&6; }
    4037                 PORTSDIR="$portsdir"
    4038 
    4039         else
    4040                 { echo "$as_me:$LINENO: WARNING: No ports tree found" >&5
    4041 echo "$as_me: WARNING: No ports tree found" >&2;}
    4042         fi
    4043 
    4044 
    4045 
    4046 
    4047         { echo "$as_me:$LINENO: checking for MacPorts config directory" >&5
    4048 echo $ECHO_N "checking for MacPorts config directory... $ECHO_C" >&6; }
    4049 
    4050         mpconfigdir='${sysconfdir}/macports'
    4051 
    4052         { echo "$as_me:$LINENO: result: $mpconfigdir" >&5
    4053 echo "${ECHO_T}$mpconfigdir" >&6; }
    4054         MPCONFIGDIR="$mpconfigdir"
    4055 
    4056 
    4057 
    4058 
    4059 # Check for install ownership
    4060 
    4061 
    4062 
    4063 
    4064 # Check whether --with-install-user was given.
    4065 if test "${with_install_user+set}" = set; then
    4066   withval=$with_install_user;  DSTUSR=$withval
    4067 fi
    4068 
    4069 
    4070         { echo "$as_me:$LINENO: checking for install user" >&5
    4071 echo $ECHO_N "checking for install user... $ECHO_C" >&6; }
    4072         if test "x$DSTUSR" = "x" ; then
    4073            DSTUSR=root
    4074         fi
    4075 
    4076         { echo "$as_me:$LINENO: result: $DSTUSR" >&5
    4077 echo "${ECHO_T}$DSTUSR" >&6; }
    4078 
    4079 
    4080 
    4081 
    4082 
    4083 
    4084 # Check whether --with-install-group was given.
    4085 if test "${with_install_group+set}" = set; then
    4086   withval=$with_install_group;  DSTGRP=$withval
    4087 fi
    4088 
    4089 
    4090         { echo "$as_me:$LINENO: checking for install group" >&5
    4091 echo $ECHO_N "checking for install group... $ECHO_C" >&6; }
    4092         if test "x$DSTGRP" = "x" ; then
    4093 
    4094            case $host_os in
    4095            darwin*)
    4096                 DSTGRP="admin"
    4097                 ;;
    4098            *)
    4099                 DSTGRP="wheel"
    4100                 ;;
    4101            esac
    4102         fi
    4103 
    4104         { echo "$as_me:$LINENO: result: $DSTGRP" >&5
    4105 echo "${ECHO_T}$DSTGRP" >&6; }
    4106 
    4107 
    4108 
    4109 
    4110 
    4111 
    4112 # Check whether --with-directory-mode was given.
    4113 if test "${with_directory_mode+set}" = set; then
    4114   withval=$with_directory_mode;  DSTMODE=$withval
    4115 fi
    4116 
    4117 
    4118         { echo "$as_me:$LINENO: checking what permissions to use for installation directories" >&5
    4119 echo $ECHO_N "checking what permissions to use for installation directories... $ECHO_C" >&6; }
    4120         if test "x$DSTMODE" = "x" ; then
    4121            DSTMODE=0775
    4122         fi
    4123 
    4124         { echo "$as_me:$LINENO: result: $DSTMODE" >&5
    4125 echo "${ECHO_T}$DSTMODE" >&6; }
    4126 
    4127 
    4128 
    4129 # Check for standard header files.
    4130 ac_ext=c
    4131 ac_cpp='$CPP $CPPFLAGS'
    4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4135 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    4136 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
    4137 # On Suns, sometimes $CPP names a directory.
    4138 if test -n "$CPP" && test -d "$CPP"; then
    4139   CPP=
    4140 fi
    4141 if test -z "$CPP"; then
    4142   if test "${ac_cv_prog_CPP+set}" = set; then
    4143   echo $ECHO_N "(cached) $ECHO_C" >&6
    4144 else
    4145       # Double quotes because CPP needs to be expanded
    4146     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     4001      # Double quotes because OBJCPP needs to be expanded
     4002    for OBJCPP in "$OBJC -E" "/lib/cpp"
    41474003    do
    41484004      ac_preproc_ok=false
    4149 for ac_c_preproc_warn_flag in '' yes
     4005for ac_objc_preproc_warn_flag in '' yes
    41504006do
    41514007  # Use a header file that comes with gcc, so configuring glibc
     
    41814037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41824038  (exit $ac_status); } >/dev/null && {
    4183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4039         test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
    41844040         test ! -s conftest.err
    41854041       }; then
     
    42184074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42194075  (exit $ac_status); } >/dev/null && {
    4220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4076         test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
    42214077         test ! -s conftest.err
    42224078       }; then
     
    42424098
    42434099    done
    4244     ac_cv_prog_CPP=$CPP
    4245 
    4246 fi
    4247   CPP=$ac_cv_prog_CPP
    4248 else
    4249   ac_cv_prog_CPP=$CPP
    4250 fi
    4251 { echo "$as_me:$LINENO: result: $CPP" >&5
    4252 echo "${ECHO_T}$CPP" >&6; }
     4100    ac_cv_prog_OBJCPP=$OBJCPP
     4101
     4102fi
     4103  OBJCPP=$ac_cv_prog_OBJCPP
     4104else
     4105  ac_cv_prog_OBJCPP=$OBJCPP
     4106fi
     4107{ echo "$as_me:$LINENO: result: $OBJCPP" >&5
     4108echo "${ECHO_T}$OBJCPP" >&6; }
    42534109ac_preproc_ok=false
    4254 for ac_c_preproc_warn_flag in '' yes
     4110for ac_objc_preproc_warn_flag in '' yes
    42554111do
    42564112  # Use a header file that comes with gcc, so configuring glibc
     
    42864142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42874143  (exit $ac_status); } >/dev/null && {
    4288          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4144         test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
    42894145         test ! -s conftest.err
    42904146       }; then
     
    43234179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43244180  (exit $ac_status); } >/dev/null && {
    4325          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4181         test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
    43264182         test ! -s conftest.err
    43274183       }; then
     
    43454201  :
    43464202else
    4347   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     4203  { { echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
    43484204See \`config.log' for more details." >&5
    4349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     4205echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
    43504206See \`config.log' for more details." >&2;}
    43514207   { (exit 1); exit 1; }; }
    43524208fi
    43534209
    4354 ac_ext=c
    4355 ac_cpp='$CPP $CPPFLAGS'
    4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4210ac_ext=m
     4211ac_cpp='$OBJCPP $CPPFLAGS'
     4212ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4213ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4214ac_compiler_gnu=$ac_cv_objc_compiler_gnu
    43594215
    43604216
     
    45594415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45604416  (exit $ac_status); } && {
    4561          test -z "$ac_c_werror_flag" ||
     4417         test -z "$ac_objc_werror_flag" ||
    45624418         test ! -s conftest.err
    45634419       } && test -s conftest.$ac_objext; then
     
    46954551fi
    46964552
     4553# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4554
     4555
     4556
     4557
     4558
     4559
     4560
     4561
     4562
     4563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4564                  inttypes.h stdint.h unistd.h
     4565do
     4566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4567{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     4568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     4570  echo $ECHO_N "(cached) $ECHO_C" >&6
     4571else
     4572  cat >conftest.$ac_ext <<_ACEOF
     4573/* confdefs.h.  */
     4574_ACEOF
     4575cat confdefs.h >>conftest.$ac_ext
     4576cat >>conftest.$ac_ext <<_ACEOF
     4577/* end confdefs.h.  */
     4578$ac_includes_default
     4579
     4580#include <$ac_header>
     4581_ACEOF
     4582rm -f conftest.$ac_objext
     4583if { (ac_try="$ac_compile"
     4584case "(($ac_try" in
     4585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4586  *) ac_try_echo=$ac_try;;
     4587esac
     4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4589  (eval "$ac_compile") 2>conftest.er1
     4590  ac_status=$?
     4591  grep -v '^ *+' conftest.er1 >conftest.err
     4592  rm -f conftest.er1
     4593  cat conftest.err >&5
     4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4595  (exit $ac_status); } && {
     4596         test -z "$ac_objc_werror_flag" ||
     4597         test ! -s conftest.err
     4598       } && test -s conftest.$ac_objext; then
     4599  eval "$as_ac_Header=yes"
     4600else
     4601  echo "$as_me: failed program was:" >&5
     4602sed 's/^/| /' conftest.$ac_ext >&5
     4603
     4604        eval "$as_ac_Header=no"
     4605fi
     4606
     4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4608fi
     4609ac_res=`eval echo '${'$as_ac_Header'}'`
     4610               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4611echo "${ECHO_T}$ac_res" >&6; }
     4612if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4613  cat >>confdefs.h <<_ACEOF
     4614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4615_ACEOF
     4616
     4617fi
     4618
     4619done
     4620
     4621
     4622
     4623
     4624
     4625# Check whether --with-objc-runtime was given.
     4626if test "${with_objc_runtime+set}" = set; then
     4627  withval=$with_objc_runtime; with_objc_runtime=${withval}
     4628fi
     4629
     4630
     4631        if test x"${with_objc_runtime}" != x; then
     4632                case "${with_objc_runtime}" in
     4633                        GNU)
     4634                                ;;
     4635                        apple)
     4636                                ;;
     4637                        *)
     4638                                { { echo "$as_me:$LINENO: error: ${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either \"GNU\" or \"apple\"" >&5
     4639echo "$as_me: error: ${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either \"GNU\" or \"apple\"" >&2;}
     4640   { (exit 1); exit 1; }; }
     4641                                ;;
     4642                esac
     4643        fi
     4644
     4645        ac_ext=m
     4646ac_cpp='$OBJCPP $CPPFLAGS'
     4647ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4648ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4649ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     4650
     4651
     4652        # Check for common header, objc/objc.h
     4653
     4654for ac_header in objc/objc.h
     4655do
     4656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     4658  { echo "$as_me:$LINENO: checking for $ac_header" >&5
     4659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     4661  echo $ECHO_N "(cached) $ECHO_C" >&6
     4662fi
     4663ac_res=`eval echo '${'$as_ac_Header'}'`
     4664               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4665echo "${ECHO_T}$ac_res" >&6; }
     4666else
     4667  # Is the header compilable?
     4668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
     4670cat >conftest.$ac_ext <<_ACEOF
     4671/* confdefs.h.  */
     4672_ACEOF
     4673cat confdefs.h >>conftest.$ac_ext
     4674cat >>conftest.$ac_ext <<_ACEOF
     4675/* end confdefs.h.  */
     4676$ac_includes_default
     4677#include <$ac_header>
     4678_ACEOF
     4679rm -f conftest.$ac_objext
     4680if { (ac_try="$ac_compile"
     4681case "(($ac_try" in
     4682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4683  *) ac_try_echo=$ac_try;;
     4684esac
     4685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4686  (eval "$ac_compile") 2>conftest.er1
     4687  ac_status=$?
     4688  grep -v '^ *+' conftest.er1 >conftest.err
     4689  rm -f conftest.er1
     4690  cat conftest.err >&5
     4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4692  (exit $ac_status); } && {
     4693         test -z "$ac_objc_werror_flag" ||
     4694         test ! -s conftest.err
     4695       } && test -s conftest.$ac_objext; then
     4696  ac_header_compiler=yes
     4697else
     4698  echo "$as_me: failed program was:" >&5
     4699sed 's/^/| /' conftest.$ac_ext >&5
     4700
     4701        ac_header_compiler=no
     4702fi
     4703
     4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4705{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4706echo "${ECHO_T}$ac_header_compiler" >&6; }
     4707
     4708# Is the header present?
     4709{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
     4711cat >conftest.$ac_ext <<_ACEOF
     4712/* confdefs.h.  */
     4713_ACEOF
     4714cat confdefs.h >>conftest.$ac_ext
     4715cat >>conftest.$ac_ext <<_ACEOF
     4716/* end confdefs.h.  */
     4717#include <$ac_header>
     4718_ACEOF
     4719if { (ac_try="$ac_cpp conftest.$ac_ext"
     4720case "(($ac_try" in
     4721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4722  *) ac_try_echo=$ac_try;;
     4723esac
     4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4726  ac_status=$?
     4727  grep -v '^ *+' conftest.er1 >conftest.err
     4728  rm -f conftest.er1
     4729  cat conftest.err >&5
     4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4731  (exit $ac_status); } >/dev/null && {
     4732         test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
     4733         test ! -s conftest.err
     4734       }; then
     4735  ac_header_preproc=yes
     4736else
     4737  echo "$as_me: failed program was:" >&5
     4738sed 's/^/| /' conftest.$ac_ext >&5
     4739
     4740  ac_header_preproc=no
     4741fi
     4742
     4743rm -f conftest.err conftest.$ac_ext
     4744{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4745echo "${ECHO_T}$ac_header_preproc" >&6; }
     4746
     4747# So?  What about this header?
     4748case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in
     4749  yes:no: )
     4750    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4754    ac_header_preproc=yes
     4755    ;;
     4756  no:yes:* )
     4757    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4759    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4760echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4761    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4763    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4764echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4767    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4769    ( cat <<\_ASBOX
     4770## ------------------------------------------------ ##
     4771## Report this to macports-dev@lists.macosforge.org ##
     4772## ------------------------------------------------ ##
     4773_ASBOX
     4774     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4775    ;;
     4776esac
     4777{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     4778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     4780  echo $ECHO_N "(cached) $ECHO_C" >&6
     4781else
     4782  eval "$as_ac_Header=\$ac_header_preproc"
     4783fi
     4784ac_res=`eval echo '${'$as_ac_Header'}'`
     4785               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4786echo "${ECHO_T}$ac_res" >&6; }
     4787
     4788fi
     4789if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4790  cat >>confdefs.h <<_ACEOF
     4791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4792_ACEOF
     4793
     4794else
     4795  { { echo "$as_me:$LINENO: error: Can't locate Objective C runtime headers" >&5
     4796echo "$as_me: error: Can't locate Objective C runtime headers" >&2;}
     4797   { (exit 1); exit 1; }; }
     4798fi
     4799
     4800done
     4801
     4802
     4803        # Save LIBS & OBJCFLAGS
     4804        # depending on whether the cache is used,
     4805        # the variables may or may not be modified.
     4806        OLD_LIBS="${LIBS}"
     4807        OLD_OBJCFLAGS="${OBJCFLAGS}"
     4808
     4809        # Add -lobjc. The following tests will ensure that the library exists and functions with the detected Objective C compiler
     4810        LIBS="${LIBS} -lobjc"
     4811
     4812        # Test if pthreads are required to link against
     4813        # libobjc - this is the case on FreeBSD.
     4814
     4815        { echo "$as_me:$LINENO: checking if linking libobjc requires pthreads" >&5
     4816echo $ECHO_N "checking if linking libobjc requires pthreads... $ECHO_C" >&6; }
     4817        if test "${mp_cv_objc_req_pthread+set}" = set; then
     4818  echo $ECHO_N "(cached) $ECHO_C" >&6
     4819else
     4820
     4821                # First, test if objc links without pthreads
     4822                # The following uses quadrigraphs
     4823                # '[' = '['
     4824                # ']' = ']'
     4825                cat >conftest.$ac_ext <<_ACEOF
     4826
     4827                                /* confdefs.h.  */
     4828_ACEOF
     4829cat confdefs.h >>conftest.$ac_ext
     4830cat >>conftest.$ac_ext <<_ACEOF
     4831/* end confdefs.h.  */
     4832
     4833                                                #include <objc/objc.h>
     4834                                                #include <objc/Object.h>
     4835
     4836int
     4837main ()
     4838{
     4839
     4840                                                Object *obj = [Object alloc];
     4841                                                puts([obj name]);
     4842
     4843  ;
     4844  return 0;
     4845}
     4846
     4847_ACEOF
     4848rm -f conftest.$ac_objext conftest$ac_exeext
     4849if { (ac_try="$ac_link"
     4850case "(($ac_try" in
     4851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4852  *) ac_try_echo=$ac_try;;
     4853esac
     4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4855  (eval "$ac_link") 2>conftest.er1
     4856  ac_status=$?
     4857  grep -v '^ *+' conftest.er1 >conftest.err
     4858  rm -f conftest.er1
     4859  cat conftest.err >&5
     4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4861  (exit $ac_status); } && {
     4862         test -z "$ac_objc_werror_flag" ||
     4863         test ! -s conftest.err
     4864       } && test -s conftest$ac_exeext &&
     4865       $as_test_x conftest$ac_exeext; then
     4866
     4867                                        # Linked without -pthread
     4868                                        mp_cv_objc_req_pthread="no"
     4869
     4870else
     4871  echo "$as_me: failed program was:" >&5
     4872sed 's/^/| /' conftest.$ac_ext >&5
     4873
     4874
     4875                                        # Failed to link without -pthread
     4876                                        mp_cv_objc_req_pthread="yes"
     4877
     4878
     4879fi
     4880
     4881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4882      conftest$ac_exeext conftest.$ac_ext
     4883
     4884                # If the above failed, try with pthreads
     4885                if test x"${mp_cv_objc_req_pthread}" = x"yes"; then
     4886                        LIBS="${LIBS} ${PTHREAD_LIBS}"
     4887                        OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
     4888                        cat >conftest.$ac_ext <<_ACEOF
     4889
     4890                                        /* confdefs.h.  */
     4891_ACEOF
     4892cat confdefs.h >>conftest.$ac_ext
     4893cat >>conftest.$ac_ext <<_ACEOF
     4894/* end confdefs.h.  */
     4895
     4896                                                        #include <objc/objc.h>
     4897                                                        #include <objc/Object.h>
     4898
     4899int
     4900main ()
     4901{
     4902
     4903                                                        Object *obj = [Object alloc];
     4904                                                        puts([obj name]);
     4905
     4906  ;
     4907  return 0;
     4908}
     4909
     4910_ACEOF
     4911rm -f conftest.$ac_objext conftest$ac_exeext
     4912if { (ac_try="$ac_link"
     4913case "(($ac_try" in
     4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4915  *) ac_try_echo=$ac_try;;
     4916esac
     4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4918  (eval "$ac_link") 2>conftest.er1
     4919  ac_status=$?
     4920  grep -v '^ *+' conftest.er1 >conftest.err
     4921  rm -f conftest.er1
     4922  cat conftest.err >&5
     4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4924  (exit $ac_status); } && {
     4925         test -z "$ac_objc_werror_flag" ||
     4926         test ! -s conftest.err
     4927       } && test -s conftest$ac_exeext &&
     4928       $as_test_x conftest$ac_exeext; then
     4929
     4930                                                # Linked with -lpthread
     4931                                                mp_cv_objc_req_pthread="yes"
     4932
     4933else
     4934  echo "$as_me: failed program was:" >&5
     4935sed 's/^/| /' conftest.$ac_ext >&5
     4936
     4937
     4938                                                # Failed to link against objc at all
     4939                                                # This will be caught in the runtime
     4940                                                # checks below
     4941                                                mp_cv_objc_req_pthread="no"
     4942
     4943
     4944fi
     4945
     4946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4947      conftest$ac_exeext conftest.$ac_ext
     4948                fi
     4949
     4950fi
     4951
     4952        { echo "$as_me:$LINENO: result: ${mp_cv_objc_req_pthread}" >&5
     4953echo "${ECHO_T}${mp_cv_objc_req_pthread}" >&6; }
     4954
     4955        if test x"${mp_cv_objc_req_pthread}" = x"no"; then
     4956                OBJC_LIBS="-lobjc"
     4957                OBJC_PTHREAD_LIBS="${PTHREAD_LIBS}"
     4958                OBJC_PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
     4959        elif test x"${mp_cv_objc_req_pthread}" = x"yes"; then
     4960                OBJC_LIBS="-lobjc ${PTHREAD_LIBS}"
     4961                OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
     4962        fi
     4963
     4964        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"apple"; then
     4965                { echo "$as_me:$LINENO: checking for Apple Objective-C runtime" >&5
     4966echo $ECHO_N "checking for Apple Objective-C runtime... $ECHO_C" >&6; }
     4967                if test "${mp_cv_objc_runtime_apple+set}" = set; then
     4968  echo $ECHO_N "(cached) $ECHO_C" >&6
     4969else
     4970
     4971                        # The following uses quadrigraphs
     4972                        # '[' = '['
     4973                        # ']' = ']'
     4974                        cat >conftest.$ac_ext <<_ACEOF
     4975
     4976                                        /* confdefs.h.  */
     4977_ACEOF
     4978cat confdefs.h >>conftest.$ac_ext
     4979cat >>conftest.$ac_ext <<_ACEOF
     4980/* end confdefs.h.  */
     4981
     4982                                                        #include <objc/objc.h>
     4983                                                        #include <objc/objc-api.h>
     4984
     4985int
     4986main ()
     4987{
     4988
     4989                                                        id class = objc_lookUpClass("Object");
     4990                                                        id obj = [class alloc];
     4991                                                        puts([obj name]);
     4992
     4993  ;
     4994  return 0;
     4995}
     4996
     4997_ACEOF
     4998rm -f conftest.$ac_objext conftest$ac_exeext
     4999if { (ac_try="$ac_link"
     5000case "(($ac_try" in
     5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5002  *) ac_try_echo=$ac_try;;
     5003esac
     5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5005  (eval "$ac_link") 2>conftest.er1
     5006  ac_status=$?
     5007  grep -v '^ *+' conftest.er1 >conftest.err
     5008  rm -f conftest.er1
     5009  cat conftest.err >&5
     5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5011  (exit $ac_status); } && {
     5012         test -z "$ac_objc_werror_flag" ||
     5013         test ! -s conftest.err
     5014       } && test -s conftest$ac_exeext &&
     5015       $as_test_x conftest$ac_exeext; then
     5016
     5017                                                mp_cv_objc_runtime_apple="yes"
     5018
     5019else
     5020  echo "$as_me: failed program was:" >&5
     5021sed 's/^/| /' conftest.$ac_ext >&5
     5022
     5023
     5024                                                mp_cv_objc_runtime_apple="no"
     5025
     5026
     5027fi
     5028
     5029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5030      conftest$ac_exeext conftest.$ac_ext
     5031
     5032fi
     5033
     5034                { echo "$as_me:$LINENO: result: ${mp_cv_objc_runtime_apple}" >&5
     5035echo "${ECHO_T}${mp_cv_objc_runtime_apple}" >&6; }
     5036        else
     5037                mp_cv_objc_runtime_apple="no"
     5038        fi
     5039
     5040        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"GNU"; then
     5041                { echo "$as_me:$LINENO: checking for GNU Objective C runtime" >&5
     5042echo $ECHO_N "checking for GNU Objective C runtime... $ECHO_C" >&6; }
     5043                if test "${mp_cv_objc_runtime_gnu+set}" = set; then
     5044  echo $ECHO_N "(cached) $ECHO_C" >&6
     5045else
     5046
     5047                        # The following uses quadrigraphs
     5048                        # '[' = '['
     5049                        # ']' = ']'
     5050                        cat >conftest.$ac_ext <<_ACEOF
     5051
     5052                                        /* confdefs.h.  */
     5053_ACEOF
     5054cat confdefs.h >>conftest.$ac_ext
     5055cat >>conftest.$ac_ext <<_ACEOF
     5056/* end confdefs.h.  */
     5057
     5058                                                        #include <objc/objc.h>
     5059                                                        #include <objc/objc-api.h>
     5060
     5061int
     5062main ()
     5063{
     5064
     5065                                                        id class = objc_lookup_class("Object");
     5066                                                        id obj = [class alloc];
     5067                                                        puts([obj name]);
     5068
     5069  ;
     5070  return 0;
     5071}
     5072
     5073_ACEOF
     5074rm -f conftest.$ac_objext conftest$ac_exeext
     5075if { (ac_try="$ac_link"
     5076case "(($ac_try" in
     5077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5078  *) ac_try_echo=$ac_try;;
     5079esac
     5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5081  (eval "$ac_link") 2>conftest.er1
     5082  ac_status=$?
     5083  grep -v '^ *+' conftest.er1 >conftest.err
     5084  rm -f conftest.er1
     5085  cat conftest.err >&5
     5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5087  (exit $ac_status); } && {
     5088         test -z "$ac_objc_werror_flag" ||
     5089         test ! -s conftest.err
     5090       } && test -s conftest$ac_exeext &&
     5091       $as_test_x conftest$ac_exeext; then
     5092
     5093                                                mp_cv_objc_runtime_gnu="yes"
     5094
     5095else
     5096  echo "$as_me: failed program was:" >&5
     5097sed 's/^/| /' conftest.$ac_ext >&5
     5098
     5099
     5100                                                mp_cv_objc_runtime_gnu="no"
     5101
     5102
     5103fi
     5104
     5105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5106      conftest$ac_exeext conftest.$ac_ext
     5107
     5108fi
     5109
     5110                { echo "$as_me:$LINENO: result: ${mp_cv_objc_runtime_gnu}" >&5
     5111echo "${ECHO_T}${mp_cv_objc_runtime_gnu}" >&6; }
     5112        else
     5113                mp_cv_objc_runtime_gnu="no"
     5114        fi
     5115
     5116        # Apple runtime is prefered
     5117        if test x"${mp_cv_objc_runtime_apple}" = x"yes"; then
     5118                        OBJC_RUNTIME="APPLE_RUNTIME"
     5119                        OBJC_RUNTIME_FLAGS="-fnext-runtime"
     5120                        { echo "$as_me:$LINENO: Using Apple Objective-C runtime" >&5
     5121echo "$as_me: Using Apple Objective-C runtime" >&6;}
     5122
     5123cat >>confdefs.h <<\_ACEOF
     5124#define APPLE_RUNTIME 1
     5125_ACEOF
     5126
     5127        elif test x"${mp_cv_objc_runtime_gnu}" = x"yes"; then
     5128                        OBJC_RUNTIME="GNU_RUNTIME"
     5129                        OBJC_RUNTIME_FLAGS="-fgnu-runtime"
     5130                        { echo "$as_me:$LINENO: Using GNU Objective-C runtime" >&5
     5131echo "$as_me: Using GNU Objective-C runtime" >&6;}
     5132
     5133cat >>confdefs.h <<\_ACEOF
     5134#define GNU_RUNTIME 1
     5135_ACEOF
     5136
     5137        else
     5138                        { { echo "$as_me:$LINENO: error: Could not locate a working Objective-C runtime.
     5139See \`config.log' for more details." >&5
     5140echo "$as_me: error: Could not locate a working Objective-C runtime.
     5141See \`config.log' for more details." >&2;}
     5142   { (exit 1); exit 1; }; }
     5143        fi
     5144
     5145        # Restore LIBS & OBJCFLAGS
     5146        LIBS="${OLD_LIBS}"
     5147        OBJCFLAGS="${OLD_OBJCFLAGS}"
     5148
     5149
     5150
     5151
     5152
     5153
     5154
     5155
     5156        ac_ext=c
     5157ac_cpp='$CPP $CPPFLAGS'
     5158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5160ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5161
     5162
     5163
     5164
     5165
     5166# Check whether --with-objc-foundation was given.
     5167if test "${with_objc_foundation+set}" = set; then
     5168  withval=$with_objc_foundation; with_objc_foundation=${withval}
     5169fi
     5170
     5171
     5172        if test x"${with_objc_foundation}" != x; then
     5173                case "${with_objc_foundation}" in
     5174                        GNUstep)
     5175                                ;;
     5176                        GNU)
     5177                                with_objc_foundation="GNUstep"
     5178                                ;;
     5179                        apple)
     5180                                ;;
     5181                        *)
     5182                                { { echo "$as_me:$LINENO: error: ${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either \"GNU\" or \"apple\"" >&5
     5183echo "$as_me: error: ${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either \"GNU\" or \"apple\"" >&2;}
     5184   { (exit 1); exit 1; }; }
     5185                                ;;
     5186                esac
     5187        fi
     5188
     5189        ac_ext=m
     5190ac_cpp='$OBJCPP $CPPFLAGS'
     5191ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5192ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5193ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     5194
     5195
     5196        if test x"${with_objc_foundation}" == x || test x"${with_objc_foundation}" == x"apple"; then
     5197                # '[' = '['
     5198                # ']' = ']'
     5199                { echo "$as_me:$LINENO: checking for Apple Foundation library" >&5
     5200echo $ECHO_N "checking for Apple Foundation library... $ECHO_C" >&6; }
     5201
     5202                # Set NeXT LIBS and CFLAGS
     5203                APPLE_FOUNDATION_CFLAGS="-framework Foundation"
     5204                APPLE_FOUNDATION_LIBS="-framework Foundation"
     5205
     5206                if test "${ac_cv_objc_foundation_apple+set}" = set; then
     5207  echo $ECHO_N "(cached) $ECHO_C" >&6
     5208else
     5209
     5210                        # Save old LIBS and CFLAGS
     5211                        LIBS_OLD="${LIBS}"
     5212                        CFLAGS_OLD="${CFLAGS}"
     5213
     5214                        CFLAGS="${APPLE_FOUNDATION_CFLAGS} ${CFLAGS}"
     5215                        LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
     5216
     5217                        cat >conftest.$ac_ext <<_ACEOF
     5218
     5219                                        /* confdefs.h.  */
     5220_ACEOF
     5221cat confdefs.h >>conftest.$ac_ext
     5222cat >>conftest.$ac_ext <<_ACEOF
     5223/* end confdefs.h.  */
     5224
     5225                                                                #include <Foundation/Foundation.h>
     5226
     5227int
     5228main ()
     5229{
     5230
     5231                                                                NSString *string = [[NSString alloc] initWithCString: "Hello World"];
     5232                                                                [NSString length];
     5233
     5234  ;
     5235  return 0;
     5236}
     5237
     5238_ACEOF
     5239rm -f conftest.$ac_objext conftest$ac_exeext
     5240if { (ac_try="$ac_link"
     5241case "(($ac_try" in
     5242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5243  *) ac_try_echo=$ac_try;;
     5244esac
     5245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5246  (eval "$ac_link") 2>conftest.er1
     5247  ac_status=$?
     5248  grep -v '^ *+' conftest.er1 >conftest.err
     5249  rm -f conftest.er1
     5250  cat conftest.err >&5
     5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5252  (exit $ac_status); } && {
     5253         test -z "$ac_objc_werror_flag" ||
     5254         test ! -s conftest.err
     5255       } && test -s conftest$ac_exeext &&
     5256       $as_test_x conftest$ac_exeext; then
     5257
     5258                                                ac_cv_objc_foundation_apple="yes"
     5259
     5260else
     5261  echo "$as_me: failed program was:" >&5
     5262sed 's/^/| /' conftest.$ac_ext >&5
     5263
     5264
     5265                                                ac_cv_objc_foundation_apple="no"
     5266
     5267
     5268fi
     5269
     5270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5271      conftest$ac_exeext conftest.$ac_ext
     5272                        # Restore LIBS and CFLAGS
     5273                        LIBS="${LIBS_OLD}"
     5274                        CFLAGS="${CFLAGS_OLD}"
     5275
     5276fi
     5277
     5278                { echo "$as_me:$LINENO: result: ${ac_cv_objc_foundation_apple}" >&5
     5279echo "${ECHO_T}${ac_cv_objc_foundation_apple}" >&6; }
     5280        else
     5281                ac_cv_objc_foundation_apple="no"
     5282        fi
     5283
     5284        if test x"${with_objc_foundation}" == x || test x${with_objc_foundation} == x"GNUstep"; then
     5285                if test x"${GNUSTEP_SYSTEM_ROOT}" == x; then
     5286                        if test x"${with_objc_foundation}" == x"GNUstep"; then
     5287                                { { echo "$as_me:$LINENO: error: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&5
     5288echo "$as_me: error: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&2;}
     5289   { (exit 1); exit 1; }; }
     5290                        else
     5291                                { echo "$as_me:$LINENO: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&5
     5292echo "$as_me: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&2;}
     5293                        fi
     5294                else
     5295
     5296                        { echo "$as_me:$LINENO: checking for GNUstep Foundation library" >&5
     5297echo $ECHO_N "checking for GNUstep Foundation library... $ECHO_C" >&6; }
     5298
     5299                        # Set GNUstep LDFLAGS, CPPFLAGS, and LIBS
     5300                        GNUSTEP_LDFLAGS="-L${GNUSTEP_SYSTEM_ROOT}/Library/Libraries/"
     5301                        GNUSTEP_CPPFLAGS="-I${GNUSTEP_SYSTEM_ROOT}/Library/Headers/"
     5302                        GNUSTEP_LIBS="-lgnustep-base"
     5303
     5304                        if test "${ac_cv_objc_foundation_gnustep+set}" = set; then
     5305  echo $ECHO_N "(cached) $ECHO_C" >&6
     5306else
     5307
     5308                                # Save old LDFLAGS, CPPFLAGS, and LIBS
     5309                                LDFLAGS_OLD="${LDFLAGS}"
     5310                                CPPFLAGS_OLD="${CPPFLAGS}"
     5311                                LIBS_OLD="${LIBS}"
     5312
     5313                                LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
     5314                                CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
     5315                                LIBS="${GNUSTEP_LIBS} ${LIBS}"
     5316
     5317                                cat >conftest.$ac_ext <<_ACEOF
     5318
     5319                                                /* confdefs.h.  */
     5320_ACEOF
     5321cat confdefs.h >>conftest.$ac_ext
     5322cat >>conftest.$ac_ext <<_ACEOF
     5323/* end confdefs.h.  */
     5324
     5325                                                                        #include <Foundation/Foundation.h>
     5326
     5327int
     5328main ()
     5329{
     5330
     5331                                                                        NSString *string = [[NSString alloc] initWithCString: "Hello World"];
     5332                                                                        [NSString length];
     5333
     5334  ;
     5335  return 0;
     5336}
     5337
     5338_ACEOF
     5339rm -f conftest.$ac_objext conftest$ac_exeext
     5340if { (ac_try="$ac_link"
     5341case "(($ac_try" in
     5342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5343  *) ac_try_echo=$ac_try;;
     5344esac
     5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5346  (eval "$ac_link") 2>conftest.er1
     5347  ac_status=$?
     5348  grep -v '^ *+' conftest.er1 >conftest.err
     5349  rm -f conftest.er1
     5350  cat conftest.err >&5
     5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5352  (exit $ac_status); } && {
     5353         test -z "$ac_objc_werror_flag" ||
     5354         test ! -s conftest.err
     5355       } && test -s conftest$ac_exeext &&
     5356       $as_test_x conftest$ac_exeext; then
     5357
     5358                                                        ac_cv_objc_foundation_gnustep="yes"
     5359
     5360else
     5361  echo "$as_me: failed program was:" >&5
     5362sed 's/^/| /' conftest.$ac_ext >&5
     5363
     5364
     5365                                                        ac_cv_objc_foundation_gnustep="no"
     5366
     5367
     5368fi
     5369
     5370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5371      conftest$ac_exeext conftest.$ac_ext
     5372                                # Restore LDFLAGS, CPPFLAGS, and LIBS
     5373                                LDFLAGS="${LDFLAGS_OLD}"
     5374                                CPPFLAGS="${CPPFLAGS_OLD}"
     5375                                LIBS="${LIBS_OLD}"
     5376
     5377fi
     5378
     5379                        { echo "$as_me:$LINENO: result: ${ac_cv_objc_foundation_gnustep}" >&5
     5380echo "${ECHO_T}${ac_cv_objc_foundation_gnustep}" >&6; }
     5381                fi
     5382        else
     5383                ac_cv_objc_foundation_gnustep="no"
     5384        fi
     5385
     5386        # NeXT Foundation is prefered
     5387        if test x"${ac_cv_objc_foundation_apple}" == x"yes"; then
     5388                OBJC_FOUNDATION="Apple"
     5389                CPPFLAGS="${APPLE_FOUNDATION_CPPFLAGS} ${CPPFLAGS}"
     5390                LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
     5391
     5392cat >>confdefs.h <<\_ACEOF
     5393#define APPLE_FOUNDATION 1
     5394_ACEOF
     5395
     5396                { echo "$as_me:$LINENO: Using Apple Foundation library" >&5
     5397echo "$as_me: Using Apple Foundation library" >&6;}
     5398        elif test x"${ac_cv_objc_foundation_gnustep}" == x"yes"; then
     5399                OBJC_FOUNDATION="GNUstep"
     5400                CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
     5401                LIBS="${GNUSTEP_LIBS} ${LIBS}"
     5402                LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
     5403
     5404cat >>confdefs.h <<\_ACEOF
     5405#define GNUSTEP_FOUNDATION 1
     5406_ACEOF
     5407
     5408                { echo "$as_me:$LINENO: Using GNUstep Foundation library" >&5
     5409echo "$as_me: Using GNUstep Foundation library" >&6;}
     5410        else
     5411                { { echo "$as_me:$LINENO: error: Could not find a working Foundation implementation" >&5
     5412echo "$as_me: error: Could not find a working Foundation implementation" >&2;}
     5413   { (exit 1); exit 1; }; }
     5414        fi
     5415
     5416        ac_ext=c
     5417ac_cpp='$CPP $CPPFLAGS'
     5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5421
     5422
     5423
     5424
     5425        FRAMEWORK_LIBS="-framework CoreFoundation"
     5426
     5427        { echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
     5428echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6; }
     5429
     5430        if test "${mp_cv_have_framework_corefoundation+set}" = set; then
     5431  echo $ECHO_N "(cached) $ECHO_C" >&6
     5432else
     5433
     5434                ac_save_LIBS="$LIBS"
     5435                LIBS="$FRAMEWORK_LIBS $LIBS"
     5436
     5437                cat >conftest.$ac_ext <<_ACEOF
     5438
     5439                        /* confdefs.h.  */
     5440_ACEOF
     5441cat confdefs.h >>conftest.$ac_ext
     5442cat >>conftest.$ac_ext <<_ACEOF
     5443/* end confdefs.h.  */
     5444
     5445                                        #include <CoreFoundation/CoreFoundation.h>
     5446
     5447int
     5448main ()
     5449{
     5450
     5451                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
     5452                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
     5453
     5454  ;
     5455  return 0;
     5456}
     5457
     5458_ACEOF
     5459rm -f conftest.$ac_objext conftest$ac_exeext
     5460if { (ac_try="$ac_link"
     5461case "(($ac_try" in
     5462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5463  *) ac_try_echo=$ac_try;;
     5464esac
     5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5466  (eval "$ac_link") 2>conftest.er1
     5467  ac_status=$?
     5468  grep -v '^ *+' conftest.er1 >conftest.err
     5469  rm -f conftest.er1
     5470  cat conftest.err >&5
     5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5472  (exit $ac_status); } && {
     5473         test -z "$ac_c_werror_flag" ||
     5474         test ! -s conftest.err
     5475       } && test -s conftest$ac_exeext &&
     5476       $as_test_x conftest$ac_exeext; then
     5477
     5478                                mp_cv_have_framework_corefoundation="yes"
     5479
     5480else
     5481  echo "$as_me: failed program was:" >&5
     5482sed 's/^/| /' conftest.$ac_ext >&5
     5483
     5484
     5485                                mp_cv_have_framework_corefoundation="no"
     5486
     5487
     5488fi
     5489
     5490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5491      conftest$ac_exeext conftest.$ac_ext
     5492
     5493                LIBS="$ac_save_LIBS"
     5494
     5495fi
     5496
     5497
     5498        { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_corefoundation}" >&5
     5499echo "${ECHO_T}${mp_cv_have_framework_corefoundation}" >&6; }
     5500
     5501        if test x"${mp_cv_have_framework_corefoundation}" = "xyes"; then
     5502
     5503cat >>confdefs.h <<\_ACEOF
     5504#define HAVE_FRAMEWORK_COREFOUNDATION
     5505_ACEOF
     5506
     5507        fi
     5508
     5509
     5510
     5511
     5512        FRAMEWORK_LIBS="-framework SystemConfiguration"
     5513
     5514        { echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
     5515echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6; }
     5516
     5517        if test "${mp_cv_have_framework_systemconfiguration+set}" = set; then
     5518  echo $ECHO_N "(cached) $ECHO_C" >&6
     5519else
     5520
     5521                ac_save_LIBS="$LIBS"
     5522                LIBS="$FRAMEWORK_LIBS $LIBS"
     5523
     5524                cat >conftest.$ac_ext <<_ACEOF
     5525
     5526                        /* confdefs.h.  */
     5527_ACEOF
     5528cat confdefs.h >>conftest.$ac_ext
     5529cat >>conftest.$ac_ext <<_ACEOF
     5530/* end confdefs.h.  */
     5531
     5532                                        #include <SystemConfiguration/SystemConfiguration.h>
     5533
     5534int
     5535main ()
     5536{
     5537
     5538                                        int err = SCError();
     5539                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
     5540
     5541  ;
     5542  return 0;
     5543}
     5544
     5545_ACEOF
     5546rm -f conftest.$ac_objext conftest$ac_exeext
     5547if { (ac_try="$ac_link"
     5548case "(($ac_try" in
     5549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5550  *) ac_try_echo=$ac_try;;
     5551esac
     5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5553  (eval "$ac_link") 2>conftest.er1
     5554  ac_status=$?
     5555  grep -v '^ *+' conftest.er1 >conftest.err
     5556  rm -f conftest.er1
     5557  cat conftest.err >&5
     5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5559  (exit $ac_status); } && {
     5560         test -z "$ac_c_werror_flag" ||
     5561         test ! -s conftest.err
     5562       } && test -s conftest$ac_exeext &&
     5563       $as_test_x conftest$ac_exeext; then
     5564
     5565                                mp_cv_have_framework_systemconfiguration="yes"
     5566
     5567else
     5568  echo "$as_me: failed program was:" >&5
     5569sed 's/^/| /' conftest.$ac_ext >&5
     5570
     5571
     5572                                mp_cv_have_framework_systemconfiguration="no"
     5573
     5574
     5575fi
     5576
     5577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5578      conftest$ac_exeext conftest.$ac_ext
     5579
     5580                LIBS="$ac_save_LIBS"
     5581
     5582fi
     5583
     5584
     5585        { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_systemconfiguration}" >&5
     5586echo "${ECHO_T}${mp_cv_have_framework_systemconfiguration}" >&6; }
     5587
     5588        if test x"${mp_cv_have_framework_systemconfiguration}" = "xyes"; then
     5589
     5590cat >>confdefs.h <<\_ACEOF
     5591#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
     5592_ACEOF
     5593
     5594        fi
     5595
     5596
     5597
     5598
     5599        FRAMEWORK_LIBS="-framework IOKit"
     5600
     5601        { echo "$as_me:$LINENO: checking for IOKit framework" >&5
     5602echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6; }
     5603
     5604        if test "${mp_cv_have_framework_iokit+set}" = set; then
     5605  echo $ECHO_N "(cached) $ECHO_C" >&6
     5606else
     5607
     5608                ac_save_LIBS="$LIBS"
     5609                LIBS="$FRAMEWORK_LIBS $LIBS"
     5610
     5611                cat >conftest.$ac_ext <<_ACEOF
     5612
     5613                        /* confdefs.h.  */
     5614_ACEOF
     5615cat confdefs.h >>conftest.$ac_ext
     5616cat >>conftest.$ac_ext <<_ACEOF
     5617/* end confdefs.h.  */
     5618
     5619                                        #include <IOKit/IOKitLib.h>
     5620
     5621int
     5622main ()
     5623{
     5624
     5625                                        IOCreateReceivePort(0, NULL);
     5626                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
     5627
     5628  ;
     5629  return 0;
     5630}
     5631
     5632_ACEOF
     5633rm -f conftest.$ac_objext conftest$ac_exeext
     5634if { (ac_try="$ac_link"
     5635case "(($ac_try" in
     5636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5637  *) ac_try_echo=$ac_try;;
     5638esac
     5639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5640  (eval "$ac_link") 2>conftest.er1
     5641  ac_status=$?
     5642  grep -v '^ *+' conftest.er1 >conftest.err
     5643  rm -f conftest.er1
     5644  cat conftest.err >&5
     5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5646  (exit $ac_status); } && {
     5647         test -z "$ac_c_werror_flag" ||
     5648         test ! -s conftest.err
     5649       } && test -s conftest$ac_exeext &&
     5650       $as_test_x conftest$ac_exeext; then
     5651
     5652                                mp_cv_have_framework_iokit="yes"
     5653
     5654else
     5655  echo "$as_me: failed program was:" >&5
     5656sed 's/^/| /' conftest.$ac_ext >&5
     5657
     5658
     5659                                mp_cv_have_framework_iokit="no"
     5660
     5661
     5662fi
     5663
     5664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5665      conftest$ac_exeext conftest.$ac_ext
     5666
     5667                LIBS="$ac_save_LIBS"
     5668
     5669fi
     5670
     5671
     5672        { echo "$as_me:$LINENO: result: ${mp_cv_have_framework_iokit}" >&5
     5673echo "${ECHO_T}${mp_cv_have_framework_iokit}" >&6; }
     5674
     5675        if test x"${mp_cv_have_framework_iokit}" = "xyes"; then
     5676
     5677cat >>confdefs.h <<\_ACEOF
     5678#define HAVE_FRAMEWORK_IOKIT
     5679_ACEOF
     5680
     5681        fi
     5682
     5683
     5684
     5685
     5686        FRAMEWORK_LIBS="-framework CoreFoundation"
     5687
     5688        { echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
     5689echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6; }
     5690
     5691        if test "${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
     5692  echo $ECHO_N "(cached) $ECHO_C" >&6
     5693else
     5694
     5695                ac_save_LIBS="$LIBS"
     5696                LIBS="$FRAMEWORK_LIBS $LIBS"
     5697
     5698                cat >conftest.$ac_ext <<_ACEOF
     5699
     5700                        /* confdefs.h.  */
     5701_ACEOF
     5702cat confdefs.h >>conftest.$ac_ext
     5703cat >>conftest.$ac_ext <<_ACEOF
     5704/* end confdefs.h.  */
     5705
     5706                                        #include <CoreFoundation/CoreFoundation.h>
     5707
     5708int
     5709main ()
     5710{
     5711
     5712                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
     5713
     5714  ;
     5715  return 0;
     5716}
     5717
     5718_ACEOF
     5719rm -f conftest.$ac_objext conftest$ac_exeext
     5720if { (ac_try="$ac_link"
     5721case "(($ac_try" in
     5722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5723  *) ac_try_echo=$ac_try;;
     5724esac
     5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5726  (eval "$ac_link") 2>conftest.er1
     5727  ac_status=$?
     5728  grep -v '^ *+' conftest.er1 >conftest.err
     5729  rm -f conftest.er1
     5730  cat conftest.err >&5
     5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5732  (exit $ac_status); } && {
     5733         test -z "$ac_c_werror_flag" ||
     5734         test ! -s conftest.err
     5735       } && test -s conftest$ac_exeext &&
     5736       $as_test_x conftest$ac_exeext; then
     5737
     5738                                mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
     5739
     5740else
     5741  echo "$as_me: failed program was:" >&5
     5742sed 's/^/| /' conftest.$ac_ext >&5
     5743
     5744
     5745                                mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
     5746
     5747
     5748fi
     5749
     5750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5751      conftest$ac_exeext conftest.$ac_ext
     5752
     5753                LIBS="$ac_save_LIBS"
     5754
     5755fi
     5756
     5757
     5758        { echo "$as_me:$LINENO: result: ${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
     5759echo "${ECHO_T}${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6; }
     5760
     5761        if test x"${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
     5762
     5763cat >>confdefs.h <<\_ACEOF
     5764#define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
     5765_ACEOF
     5766
     5767        fi
     5768
     5769
     5770
     5771
     5772
     5773
     5774
     5775
     5776
     5777    { echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
     5778echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6; }
     5779    result=no
     5780        case $host_os in
     5781        darwin*)
     5782                if test "x$mp_cv_have_framework_corefoundation" == "xyes" &&
     5783                   test "x$mp_cv_have_framework_systemconfiguration" == "xyes" &&
     5784                   test "x$mp_cv_have_framework_iokit" == "xyes" &&
     5785                   test "x$mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
     5786                        result=yes
     5787                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
     5788                        ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
     5789
     5790                fi
     5791                ;;
     5792        *)
     5793        esac
     5794        { echo "$as_me:$LINENO: result: ${result}" >&5
     5795echo "${ECHO_T}${result}" >&6; }
     5796
     5797#MP_PROG_XAR
     5798
     5799
     5800
     5801
     5802# set default ports-directory
     5803PORTS_DIR_DEFAULT=`pwd | sed -e "s/base/ports/"`
     5804
     5805# Check for paths
     5806
     5807
     5808
     5809
     5810
     5811# Check whether --with-ports-dir was given.
     5812if test "${with_ports_dir+set}" = set; then
     5813  withval=$with_ports_dir;  portsdir="$withval"
     5814fi
     5815
     5816
     5817
     5818        { echo "$as_me:$LINENO: checking for ports tree" >&5
     5819echo $ECHO_N "checking for ports tree... $ECHO_C" >&6; }
     5820        if test "x$portsdir" != "x" ; then
     5821          if test -d "$portsdir" -a -e "$portsdir/PortIndex" ; then
     5822                :
     5823          else
     5824                { { echo "$as_me:$LINENO: error: $portsdir not a valid ports tree" >&5
     5825echo "$as_me: error: $portsdir not a valid ports tree" >&2;}
     5826   { (exit 1); exit 1; }; }
     5827          fi
     5828        else
     5829                                if test "x$PORTS_DIR_DEFAULT" != "x" ; then
     5830                  if test -d "$PORTS_DIR_DEFAULT" -a -e "$PORTS_DIR_DEFAULT/PortIndex" ; then
     5831                        portsdir=$PORTS_DIR_DEFAULT
     5832                  fi
     5833                fi
     5834        fi
     5835
     5836        if test "x$portsdir" != "x" ; then
     5837                { echo "$as_me:$LINENO: result: $portsdir" >&5
     5838echo "${ECHO_T}$portsdir" >&6; }
     5839                PORTSDIR="$portsdir"
     5840
     5841        else
     5842                { echo "$as_me:$LINENO: WARNING: No ports tree found" >&5
     5843echo "$as_me: WARNING: No ports tree found" >&2;}
     5844        fi
     5845
     5846
     5847
     5848
     5849        { echo "$as_me:$LINENO: checking for MacPorts config directory" >&5
     5850echo $ECHO_N "checking for MacPorts config directory... $ECHO_C" >&6; }
     5851
     5852        mpconfigdir='${sysconfdir}/macports'
     5853
     5854        { echo "$as_me:$LINENO: result: $mpconfigdir" >&5
     5855echo "${ECHO_T}$mpconfigdir" >&6; }
     5856        MPCONFIGDIR="$mpconfigdir"
     5857
     5858
     5859
     5860
     5861# Check for install ownership
     5862
     5863
     5864
     5865
     5866# Check whether --with-install-user was given.
     5867if test "${with_install_user+set}" = set; then
     5868  withval=$with_install_user;  DSTUSR=$withval
     5869fi
     5870
     5871
     5872        { echo "$as_me:$LINENO: checking for install user" >&5
     5873echo $ECHO_N "checking for install user... $ECHO_C" >&6; }
     5874        if test "x$DSTUSR" = "x" ; then
     5875           DSTUSR=root
     5876        fi
     5877
     5878        { echo "$as_me:$LINENO: result: $DSTUSR" >&5
     5879echo "${ECHO_T}$DSTUSR" >&6; }
     5880
     5881
     5882
     5883
     5884
     5885
     5886# Check whether --with-install-group was given.
     5887if test "${with_install_group+set}" = set; then
     5888  withval=$with_install_group;  DSTGRP=$withval
     5889fi
     5890
     5891
     5892        { echo "$as_me:$LINENO: checking for install group" >&5
     5893echo $ECHO_N "checking for install group... $ECHO_C" >&6; }
     5894        if test "x$DSTGRP" = "x" ; then
     5895
     5896           case $host_os in
     5897           darwin*)
     5898                DSTGRP="admin"
     5899                ;;
     5900           *)
     5901                DSTGRP="wheel"
     5902                ;;
     5903           esac
     5904        fi
     5905
     5906        { echo "$as_me:$LINENO: result: $DSTGRP" >&5
     5907echo "${ECHO_T}$DSTGRP" >&6; }
     5908
     5909
     5910
     5911
     5912
     5913
     5914# Check whether --with-directory-mode was given.
     5915if test "${with_directory_mode+set}" = set; then
     5916  withval=$with_directory_mode;  DSTMODE=$withval
     5917fi
     5918
     5919
     5920        { echo "$as_me:$LINENO: checking what permissions to use for installation directories" >&5
     5921echo $ECHO_N "checking what permissions to use for installation directories... $ECHO_C" >&6; }
     5922        if test "x$DSTMODE" = "x" ; then
     5923           DSTMODE=0775
     5924        fi
     5925
     5926        { echo "$as_me:$LINENO: result: $DSTMODE" >&5
     5927echo "${ECHO_T}$DSTMODE" >&6; }
     5928
     5929
     5930
     5931# Check for standard header files.
     5932ac_ext=c
     5933ac_cpp='$CPP $CPPFLAGS'
     5934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5936ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5937{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     5938echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
     5939# On Suns, sometimes $CPP names a directory.
     5940if test -n "$CPP" && test -d "$CPP"; then
     5941  CPP=
     5942fi
     5943if test -z "$CPP"; then
     5944  if test "${ac_cv_prog_CPP+set}" = set; then
     5945  echo $ECHO_N "(cached) $ECHO_C" >&6
     5946else
     5947      # Double quotes because CPP needs to be expanded
     5948    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     5949    do
     5950      ac_preproc_ok=false
     5951for ac_c_preproc_warn_flag in '' yes
     5952do
     5953  # Use a header file that comes with gcc, so configuring glibc
     5954  # with a fresh cross-compiler works.
     5955  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5956  # <limits.h> exists even on freestanding compilers.
     5957  # On the NeXT, cc -E runs the code through the compiler's parser,
     5958  # not just through cpp. "Syntax error" is here to catch this case.
     5959  cat >conftest.$ac_ext <<_ACEOF
     5960/* confdefs.h.  */
     5961_ACEOF
     5962cat confdefs.h >>conftest.$ac_ext
     5963cat >>conftest.$ac_ext <<_ACEOF
     5964/* end confdefs.h.  */
     5965#ifdef __STDC__
     5966# include <limits.h>
     5967#else
     5968# include <assert.h>
     5969#endif
     5970                     Syntax error
     5971_ACEOF
     5972if { (ac_try="$ac_cpp conftest.$ac_ext"
     5973case "(($ac_try" in
     5974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5975  *) ac_try_echo=$ac_try;;
     5976esac
     5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     5978  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5979  ac_status=$?
     5980  grep -v '^ *+' conftest.er1 >conftest.err
     5981  rm -f conftest.er1
     5982  cat conftest.err >&5
     5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5984  (exit $ac_status); } >/dev/null && {
     5985         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     5986         test ! -s conftest.err
     5987       }; then
     5988  :
     5989else
     5990  echo "$as_me: failed program was:" >&5
     5991sed 's/^/| /' conftest.$ac_ext >&5
     5992
     5993  # Broken: fails on valid input.
     5994continue
     5995fi
     5996
     5997rm -f conftest.err conftest.$ac_ext
     5998
     5999  # OK, works on sane cases.  Now check whether nonexistent headers
     6000  # can be detected and how.
     6001  cat >conftest.$ac_ext <<_ACEOF
     6002/* confdefs.h.  */
     6003_ACEOF
     6004cat confdefs.h >>conftest.$ac_ext
     6005cat >>conftest.$ac_ext <<_ACEOF
     6006/* end confdefs.h.  */
     6007#include <ac_nonexistent.h>
     6008_ACEOF
     6009if { (ac_try="$ac_cpp conftest.$ac_ext"
     6010case "(($ac_try" in
     6011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6012  *) ac_try_echo=$ac_try;;
     6013esac
     6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6015  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     6016  ac_status=$?
     6017  grep -v '^ *+' conftest.er1 >conftest.err
     6018  rm -f conftest.er1
     6019  cat conftest.err >&5
     6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6021  (exit $ac_status); } >/dev/null && {
     6022         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     6023         test ! -s conftest.err
     6024       }; then
     6025  # Broken: success on invalid input.
     6026continue
     6027else
     6028  echo "$as_me: failed program was:" >&5
     6029sed 's/^/| /' conftest.$ac_ext >&5
     6030
     6031  # Passes both tests.
     6032ac_preproc_ok=:
     6033break
     6034fi
     6035
     6036rm -f conftest.err conftest.$ac_ext
     6037
     6038done
     6039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6040rm -f conftest.err conftest.$ac_ext
     6041if $ac_preproc_ok; then
     6042  break
     6043fi
     6044
     6045    done
     6046    ac_cv_prog_CPP=$CPP
     6047
     6048fi
     6049  CPP=$ac_cv_prog_CPP
     6050else
     6051  ac_cv_prog_CPP=$CPP
     6052fi
     6053{ echo "$as_me:$LINENO: result: $CPP" >&5
     6054echo "${ECHO_T}$CPP" >&6; }
     6055ac_preproc_ok=false
     6056for ac_c_preproc_warn_flag in '' yes
     6057do
     6058  # Use a header file that comes with gcc, so configuring glibc
     6059  # with a fresh cross-compiler works.
     6060  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6061  # <limits.h> exists even on freestanding compilers.
     6062  # On the NeXT, cc -E runs the code through the compiler's parser,
     6063  # not just through cpp. "Syntax error" is here to catch this case.
     6064  cat >conftest.$ac_ext <<_ACEOF
     6065/* confdefs.h.  */
     6066_ACEOF
     6067cat confdefs.h >>conftest.$ac_ext
     6068cat >>conftest.$ac_ext <<_ACEOF
     6069/* end confdefs.h.  */
     6070#ifdef __STDC__
     6071# include <limits.h>
     6072#else
     6073# include <assert.h>
     6074#endif
     6075                     Syntax error
     6076_ACEOF
     6077if { (ac_try="$ac_cpp conftest.$ac_ext"
     6078case "(($ac_try" in
     6079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6080  *) ac_try_echo=$ac_try;;
     6081esac
     6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6083  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     6084  ac_status=$?
     6085  grep -v '^ *+' conftest.er1 >conftest.err
     6086  rm -f conftest.er1
     6087  cat conftest.err >&5
     6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6089  (exit $ac_status); } >/dev/null && {
     6090         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     6091         test ! -s conftest.err
     6092       }; then
     6093  :
     6094else
     6095  echo "$as_me: failed program was:" >&5
     6096sed 's/^/| /' conftest.$ac_ext >&5
     6097
     6098  # Broken: fails on valid input.
     6099continue
     6100fi
     6101
     6102rm -f conftest.err conftest.$ac_ext
     6103
     6104  # OK, works on sane cases.  Now check whether nonexistent headers
     6105  # can be detected and how.
     6106  cat >conftest.$ac_ext <<_ACEOF
     6107/* confdefs.h.  */
     6108_ACEOF
     6109cat confdefs.h >>conftest.$ac_ext
     6110cat >>conftest.$ac_ext <<_ACEOF
     6111/* end confdefs.h.  */
     6112#include <ac_nonexistent.h>
     6113_ACEOF
     6114if { (ac_try="$ac_cpp conftest.$ac_ext"
     6115case "(($ac_try" in
     6116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6117  *) ac_try_echo=$ac_try;;
     6118esac
     6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6120  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     6121  ac_status=$?
     6122  grep -v '^ *+' conftest.er1 >conftest.err
     6123  rm -f conftest.er1
     6124  cat conftest.err >&5
     6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6126  (exit $ac_status); } >/dev/null && {
     6127         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     6128         test ! -s conftest.err
     6129       }; then
     6130  # Broken: success on invalid input.
     6131continue
     6132else
     6133  echo "$as_me: failed program was:" >&5
     6134sed 's/^/| /' conftest.$ac_ext >&5
     6135
     6136  # Passes both tests.
     6137ac_preproc_ok=:
     6138break
     6139fi
     6140
     6141rm -f conftest.err conftest.$ac_ext
     6142
     6143done
     6144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6145rm -f conftest.err conftest.$ac_ext
     6146if $ac_preproc_ok; then
     6147  :
     6148else
     6149  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     6150See \`config.log' for more details." >&5
     6151echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     6152See \`config.log' for more details." >&2;}
     6153   { (exit 1); exit 1; }; }
     6154fi
     6155
     6156ac_ext=c
     6157ac_cpp='$CPP $CPPFLAGS'
     6158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6160ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6161
     6162
     6163{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6164echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
     6165if test "${ac_cv_header_stdc+set}" = set; then
     6166  echo $ECHO_N "(cached) $ECHO_C" >&6
     6167else
     6168  cat >conftest.$ac_ext <<_ACEOF
     6169/* confdefs.h.  */
     6170_ACEOF
     6171cat confdefs.h >>conftest.$ac_ext
     6172cat >>conftest.$ac_ext <<_ACEOF
     6173/* end confdefs.h.  */
     6174#include <stdlib.h>
     6175#include <stdarg.h>
     6176#include <string.h>
     6177#include <float.h>
     6178
     6179int
     6180main ()
     6181{
     6182
     6183  ;
     6184  return 0;
     6185}
     6186_ACEOF
     6187rm -f conftest.$ac_objext
     6188if { (ac_try="$ac_compile"
     6189case "(($ac_try" in
     6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6191  *) ac_try_echo=$ac_try;;
     6192esac
     6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6194  (eval "$ac_compile") 2>conftest.er1
     6195  ac_status=$?
     6196  grep -v '^ *+' conftest.er1 >conftest.err
     6197  rm -f conftest.er1
     6198  cat conftest.err >&5
     6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6200  (exit $ac_status); } && {
     6201         test -z "$ac_c_werror_flag" ||
     6202         test ! -s conftest.err
     6203       } && test -s conftest.$ac_objext; then
     6204  ac_cv_header_stdc=yes
     6205else
     6206  echo "$as_me: failed program was:" >&5
     6207sed 's/^/| /' conftest.$ac_ext >&5
     6208
     6209        ac_cv_header_stdc=no
     6210fi
     6211
     6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6213
     6214if test $ac_cv_header_stdc = yes; then
     6215  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     6216  cat >conftest.$ac_ext <<_ACEOF
     6217/* confdefs.h.  */
     6218_ACEOF
     6219cat confdefs.h >>conftest.$ac_ext
     6220cat >>conftest.$ac_ext <<_ACEOF
     6221/* end confdefs.h.  */
     6222#include <string.h>
     6223
     6224_ACEOF
     6225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6226  $EGREP "memchr" >/dev/null 2>&1; then
     6227  :
     6228else
     6229  ac_cv_header_stdc=no
     6230fi
     6231rm -f conftest*
     6232
     6233fi
     6234
     6235if test $ac_cv_header_stdc = yes; then
     6236  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     6237  cat >conftest.$ac_ext <<_ACEOF
     6238/* confdefs.h.  */
     6239_ACEOF
     6240cat confdefs.h >>conftest.$ac_ext
     6241cat >>conftest.$ac_ext <<_ACEOF
     6242/* end confdefs.h.  */
     6243#include <stdlib.h>
     6244
     6245_ACEOF
     6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6247  $EGREP "free" >/dev/null 2>&1; then
     6248  :
     6249else
     6250  ac_cv_header_stdc=no
     6251fi
     6252rm -f conftest*
     6253
     6254fi
     6255
     6256if test $ac_cv_header_stdc = yes; then
     6257  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     6258  if test "$cross_compiling" = yes; then
     6259  :
     6260else
     6261  cat >conftest.$ac_ext <<_ACEOF
     6262/* confdefs.h.  */
     6263_ACEOF
     6264cat confdefs.h >>conftest.$ac_ext
     6265cat >>conftest.$ac_ext <<_ACEOF
     6266/* end confdefs.h.  */
     6267#include <ctype.h>
     6268#include <stdlib.h>
     6269#if ((' ' & 0x0FF) == 0x020)
     6270# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     6271# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     6272#else
     6273# define ISLOWER(c) \
     6274                   (('a' <= (c) && (c) <= 'i') \
     6275                     || ('j' <= (c) && (c) <= 'r') \
     6276                     || ('s' <= (c) && (c) <= 'z'))
     6277# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     6278#endif
     6279
     6280#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     6281int
     6282main ()
     6283{
     6284  int i;
     6285  for (i = 0; i < 256; i++)
     6286    if (XOR (islower (i), ISLOWER (i))
     6287        || toupper (i) != TOUPPER (i))
     6288      return 2;
     6289  return 0;
     6290}
     6291_ACEOF
     6292rm -f conftest$ac_exeext
     6293if { (ac_try="$ac_link"
     6294case "(($ac_try" in
     6295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6296  *) ac_try_echo=$ac_try;;
     6297esac
     6298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6299  (eval "$ac_link") 2>&5
     6300  ac_status=$?
     6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6302  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6303  { (case "(($ac_try" in
     6304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6305  *) ac_try_echo=$ac_try;;
     6306esac
     6307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     6308  (eval "$ac_try") 2>&5
     6309  ac_status=$?
     6310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6311  (exit $ac_status); }; }; then
     6312  :
     6313else
     6314  echo "$as_me: program exited with status $ac_status" >&5
     6315echo "$as_me: failed program was:" >&5
     6316sed 's/^/| /' conftest.$ac_ext >&5
     6317
     6318( exit $ac_status )
     6319ac_cv_header_stdc=no
     6320fi
     6321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6322fi
     6323
     6324
     6325fi
     6326fi
     6327{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     6328echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
     6329if test $ac_cv_header_stdc = yes; then
     6330
     6331cat >>confdefs.h <<\_ACEOF
     6332#define STDC_HEADERS 1
     6333_ACEOF
     6334
     6335fi
     6336
    46976337
    46986338
     
    50706710
    50716711fi
    5072 
    5073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    5074 
    5075 
    5076 
    5077 
    5078 
    5079 
    5080 
    5081 
    5082 
    5083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    5084                   inttypes.h stdint.h unistd.h
    5085 do
    5086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    5088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
    5089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    5090   echo $ECHO_N "(cached) $ECHO_C" >&6
    5091 else
    5092   cat >conftest.$ac_ext <<_ACEOF
    5093 /* confdefs.h.  */
    5094 _ACEOF
    5095 cat confdefs.h >>conftest.$ac_ext
    5096 cat >>conftest.$ac_ext <<_ACEOF
    5097 /* end confdefs.h.  */
    5098 $ac_includes_default
    5099 
    5100 #include <$ac_header>
    5101 _ACEOF
    5102 rm -f conftest.$ac_objext
    5103 if { (ac_try="$ac_compile"
    5104 case "(($ac_try" in
    5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5106   *) ac_try_echo=$ac_try;;
    5107 esac
    5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    5109   (eval "$ac_compile") 2>conftest.er1
    5110   ac_status=$?
    5111   grep -v '^ *+' conftest.er1 >conftest.err
    5112   rm -f conftest.er1
    5113   cat conftest.err >&5
    5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5115   (exit $ac_status); } && {
    5116          test -z "$ac_c_werror_flag" ||
    5117          test ! -s conftest.err
    5118        } && test -s conftest.$ac_objext; then
    5119   eval "$as_ac_Header=yes"
    5120 else
    5121   echo "$as_me: failed program was:" >&5
    5122 sed 's/^/| /' conftest.$ac_ext >&5
    5123 
    5124         eval "$as_ac_Header=no"
    5125 fi
    5126 
    5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5128 fi
    5129 ac_res=`eval echo '${'$as_ac_Header'}'`
    5130                { echo "$as_me:$LINENO: result: $ac_res" >&5
    5131 echo "${ECHO_T}$ac_res" >&6; }
    5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    5133   cat >>confdefs.h <<_ACEOF
    5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    5135 _ACEOF
    5136 
    5137 fi
    5138 
    5139 done
    5140 
    51416712
    51426713
     
    1036511936EXEEXT!$EXEEXT$ac_delim
    1036611937OBJEXT!$OBJEXT$ac_delim
     11938OBJC!$OBJC$ac_delim
     11939OBJCFLAGS!$OBJCFLAGS$ac_delim
     11940ac_ct_OBJC!$ac_ct_OBJC$ac_delim
    1036711941INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
    1036811942INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
     
    1038411958TAR_CMD!$TAR_CMD$ac_delim
    1038511959CFLAGS_QUICHEEATERS!$CFLAGS_QUICHEEATERS$ac_delim
     11960CFLAGS_WERROR!$CFLAGS_WERROR$ac_delim
     11961OBJCPP!$OBJCPP$ac_delim
     11962GREP!$GREP$ac_delim
     11963EGREP!$EGREP$ac_delim
     11964OBJC_RUNTIME!$OBJC_RUNTIME$ac_delim
     11965OBJC_RUNTIME_FLAGS!$OBJC_RUNTIME_FLAGS$ac_delim
     11966OBJC_LIBS!$OBJC_LIBS$ac_delim
     11967OBJC_PTHREAD_LIBS!$OBJC_PTHREAD_LIBS$ac_delim
     11968OBJC_PTHREAD_CFLAGS!$OBJC_PTHREAD_CFLAGS$ac_delim
    1038611969HAVE_FRAMEWORK_COREFOUNDATION!$HAVE_FRAMEWORK_COREFOUNDATION$ac_delim
    1038711970HAVE_FRAMEWORK_SYSTEMCONFIGURATION!$HAVE_FRAMEWORK_SYSTEMCONFIGURATION$ac_delim
     
    1039411977DSTUSR!$DSTUSR$ac_delim
    1039511978DSTGRP!$DSTGRP$ac_delim
    10396 DSTMODE!$DSTMODE$ac_delim
    10397 CPP!$CPP$ac_delim
    10398 GREP!$GREP$ac_delim
    10399 EGREP!$EGREP$ac_delim
    10400 READLINK_IS_NOT_P1003_1A!$READLINK_IS_NOT_P1003_1A$ac_delim
    10401 MD5_LIBS!$MD5_LIBS$ac_delim
    10402 XMKMF!$XMKMF$ac_delim
    10403 X_CFLAGS!$X_CFLAGS$ac_delim
    10404 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
    10405 X_LIBS!$X_LIBS$ac_delim
    10406 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
    10407 TCL_VERSION!$TCL_VERSION$ac_delim
    1040811979_ACEOF
    1040911980
     
    1044712018for ac_last_try in false false false false false :; do
    1044812019  cat >conf$$subs.sed <<_ACEOF
     12020DSTMODE!$DSTMODE$ac_delim
     12021CPP!$CPP$ac_delim
     12022READLINK_IS_NOT_P1003_1A!$READLINK_IS_NOT_P1003_1A$ac_delim
     12023MD5_LIBS!$MD5_LIBS$ac_delim
     12024XMKMF!$XMKMF$ac_delim
     12025X_CFLAGS!$X_CFLAGS$ac_delim
     12026X_PRE_LIBS!$X_PRE_LIBS$ac_delim
     12027X_LIBS!$X_LIBS$ac_delim
     12028X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
     12029TCL_VERSION!$TCL_VERSION$ac_delim
    1044912030TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
    1045012031TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
     
    1048212063_ACEOF
    1048312064
    10484   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
     12065  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
    1048512066    break
    1048612067  elif $ac_last_try; then
Note: See TracChangeset for help on using the changeset viewer.