Projects
Browse Source     Search     Timeline     Wiki

Changeset 23492

Show
Ignore:
Timestamp:
2008-01-23 09:09:49 (9 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5254675> Merge embedded changes into TOT
<rdar://problem/5692704> SpringBoard needs custom launchd job management API

Location:
branches/SULeopard
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • branches/SULeopard/Makefile

    r23114 r23492  
    44include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make 
    55Install_Flags = DESTDIR=$(DSTROOT) 
     6 
     7ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),YES) 
     8        Extra_Configure_Flags += --host=none-apple-darwin 
     9endif 
    610 
    711launchd_after_install:: 
     
    1923        cp $(OBJROOT)/src/launchctl $(SYMROOT) 
    2024        cp $(OBJROOT)/src/launchproxy $(SYMROOT) 
    21         dsymutil $(SYMROOT)/launchd 
    22         dsymutil $(SYMROOT)/launchctl 
    23         dsymutil $(SYMROOT)/launchproxy 
     25        -dsymutil $(SYMROOT)/launchd 
     26        -dsymutil $(SYMROOT)/launchctl 
     27        -dsymutil $(SYMROOT)/launchproxy 
    2428endif 
    2529 
  • branches/SULeopard/launchd/Makefile.in

    r23279 r23492  
    9898LIBOBJS = @LIBOBJS@ 
    9999LIBS = @LIBS@ 
     100LIBS_SECURITY = @LIBS_SECURITY@ 
    100101LTLIBOBJS = @LTLIBOBJS@ 
    101102MAKEINFO = @MAKEINFO@ 
     
    114115STRIP = @STRIP@ 
    115116VERSION = @VERSION@ 
     117WEAKLIBS_SECURITY = @WEAKLIBS_SECURITY@ 
    116118abs_builddir = @abs_builddir@ 
    117119abs_srcdir = @abs_srcdir@ 
  • branches/SULeopard/launchd/aclocal.m4

    r23279 r23492  
    365365     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 
    366366]) 
    367  
    368 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 
    369 # Free Software Foundation, Inc. 
    370 # 
    371 # This file is free software; the Free Software Foundation 
    372 # gives unlimited permission to copy and/or distribute it, 
    373 # with or without modifications, as long as this notice is preserved. 
    374  
    375 # serial 8 
    376  
    377 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS. 
    378 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 
    379367 
    380368# Do all the work for Automake.                             -*- Autoconf -*- 
  • branches/SULeopard/launchd/configure

    r23279 r23492  
    699699ALLOCA 
    700700LIBOBJS 
     701LIBS_SECURITY 
     702WEAKLIBS_SECURITY 
    701703LIBS_ONLY_TRUE 
    702704LIBS_ONLY_FALSE 
     
    65766578 
    65776579 
    6578 for ac_header in stdlib.h 
     6580 
     6581 
     6582 
     6583for ac_header in $ac_header_list 
    65796584do 
    65806585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     
    67206725done 
    67216726 
    6722 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 
    6723 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 
    6724 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 
     6727 
     6728 
     6729 
     6730 
     6731 
     6732 
     6733 
     6734 
     6735for ac_func in $ac_func_list 
     6736do 
     6737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 
     6738{ echo "$as_me:$LINENO: checking for $ac_func" >&5 
     6739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 
     6740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 
    67256741  echo $ECHO_N "(cached) $ECHO_C" >&6 
    6726 else 
    6727   if test "$cross_compiling" = yes; then 
    6728   ac_cv_func_malloc_0_nonnull=no 
    67296742else 
    67306743  cat >conftest.$ac_ext <<_ACEOF 
     
    67346747cat >>conftest.$ac_ext <<_ACEOF 
    67356748/* end confdefs.h.  */ 
    6736 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 
    6737 # include <stdlib.h> 
     6749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 
     6750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */ 
     6751#define $ac_func innocuous_$ac_func 
     6752 
     6753/* System header to define __stub macros and hopefully few prototypes, 
     6754    which can conflict with char $ac_func (); below. 
     6755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 
     6756    <limits.h> exists even on freestanding compilers.  */ 
     6757 
     6758#ifdef __STDC__ 
     6759# include <limits.h> 
    67386760#else 
    6739 char *malloc (); 
     6761# include <assert.h> 
     6762#endif 
     6763 
     6764#undef $ac_func 
     6765 
     6766/* Override any GCC internal prototype to avoid an error. 
     6767   Use char because int might match the return type of a GCC 
     6768   builtin and then its argument prototype would still apply.  */ 
     6769#ifdef __cplusplus 
     6770extern "C" 
     6771#endif 
     6772char $ac_func (); 
     6773/* The GNU C library defines this for functions which it implements 
     6774    to always fail with ENOSYS.  Some functions are actually named 
     6775    something starting with __ and the normal name is an alias.  */ 
     6776#if defined __stub_$ac_func || defined __stub___$ac_func 
     6777choke me 
    67406778#endif 
    67416779 
     
    67436781main () 
    67446782{ 
    6745 return ! malloc (0); 
     6783return $ac_func (); 
    67466784  ; 
    67476785  return 0; 
     6786} 
     6787_ACEOF 
     6788rm -f conftest.$ac_objext conftest$ac_exeext 
     6789if { (ac_try="$ac_link" 
     6790case "(($ac_try" in 
     6791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6792  *) ac_try_echo=$ac_try;; 
     6793esac 
     6794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     6795  (eval "$ac_link") 2>conftest.er1 
     6796  ac_status=$? 
     6797  grep -v '^ *+' conftest.er1 >conftest.err 
     6798  rm -f conftest.er1 
     6799  cat conftest.err >&5 
     6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6801  (exit $ac_status); } && { 
     6802         test -z "$ac_c_werror_flag" || 
     6803         test ! -s conftest.err 
     6804       } && test -s conftest$ac_exeext && 
     6805       $as_test_x conftest$ac_exeext; then 
     6806  eval "$as_ac_var=yes" 
     6807else 
     6808  echo "$as_me: failed program was:" >&5 
     6809sed 's/^/| /' conftest.$ac_ext >&5 
     6810 
     6811        eval "$as_ac_var=no" 
     6812fi 
     6813 
     6814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     6815      conftest$ac_exeext conftest.$ac_ext 
     6816fi 
     6817ac_res=`eval echo '${'$as_ac_var'}'` 
     6818               { echo "$as_me:$LINENO: result: $ac_res" >&5 
     6819echo "${ECHO_T}$ac_res" >&6; } 
     6820if test `eval echo '${'$as_ac_var'}'` = yes; then 
     6821  cat >>confdefs.h <<_ACEOF 
     6822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 
     6823_ACEOF 
     6824 
     6825fi 
     6826done 
     6827 
     6828 
     6829 
     6830 
     6831 
     6832 
     6833 
     6834 
     6835 
     6836 
     6837 
     6838 
     6839 
     6840 
     6841 
     6842 
     6843 
     6844{ echo "$as_me:$LINENO: checking for working mktime" >&5 
     6845echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } 
     6846if test "${ac_cv_func_working_mktime+set}" = set; then 
     6847  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6848else 
     6849  if test "$cross_compiling" = yes; then 
     6850  ac_cv_func_working_mktime=no 
     6851else 
     6852  cat >conftest.$ac_ext <<_ACEOF 
     6853/* confdefs.h.  */ 
     6854_ACEOF 
     6855cat confdefs.h >>conftest.$ac_ext 
     6856cat >>conftest.$ac_ext <<_ACEOF 
     6857/* end confdefs.h.  */ 
     6858/* Test program from Paul Eggert and Tony Leneis.  */ 
     6859#ifdef TIME_WITH_SYS_TIME 
     6860# include <sys/time.h> 
     6861# include <time.h> 
     6862#else 
     6863# ifdef HAVE_SYS_TIME_H 
     6864#  include <sys/time.h> 
     6865# else 
     6866#  include <time.h> 
     6867# endif 
     6868#endif 
     6869 
     6870#include <stdlib.h> 
     6871 
     6872#ifdef HAVE_UNISTD_H 
     6873# include <unistd.h> 
     6874#endif 
     6875 
     6876#ifndef HAVE_ALARM 
     6877# define alarm(X) /* empty */ 
     6878#endif 
     6879 
     6880/* Work around redefinition to rpl_putenv by other config tests.  */ 
     6881#undef putenv 
     6882 
     6883static time_t time_t_max; 
     6884static time_t time_t_min; 
     6885 
     6886/* Values we'll use to set the TZ environment variable.  */ 
     6887static char *tz_strings[] = { 
     6888  (char *) 0, "TZ=GMT0", "TZ=JST-9", 
     6889  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 
     6890}; 
     6891#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 
     6892 
     6893/* Return 0 if mktime fails to convert a date in the spring-forward gap. 
     6894   Based on a problem report from Andreas Jaeger.  */ 
     6895static int 
     6896spring_forward_gap () 
     6897{ 
     6898  /* glibc (up to about 1998-10-07) failed this test. */ 
     6899  struct tm tm; 
     6900 
     6901  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 
     6902     instead of "TZ=America/Vancouver" in order to detect the bug even 
     6903     on systems that don't support the Olson extension, or don't have the 
     6904     full zoneinfo tables installed.  */ 
     6905  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 
     6906 
     6907  tm.tm_year = 98; 
     6908  tm.tm_mon = 3; 
     6909  tm.tm_mday = 5; 
     6910  tm.tm_hour = 2; 
     6911  tm.tm_min = 0; 
     6912  tm.tm_sec = 0; 
     6913  tm.tm_isdst = -1; 
     6914  return mktime (&tm) != (time_t) -1; 
     6915} 
     6916 
     6917static int 
     6918mktime_test1 (now) 
     6919     time_t now; 
     6920{ 
     6921  struct tm *lt; 
     6922  return ! (lt = localtime (&now)) || mktime (lt) == now; 
     6923} 
     6924 
     6925static int 
     6926mktime_test (now) 
     6927     time_t now; 
     6928{ 
     6929  return (mktime_test1 (now) 
     6930          && mktime_test1 ((time_t) (time_t_max - now)) 
     6931          && mktime_test1 ((time_t) (time_t_min + now))); 
     6932} 
     6933 
     6934static int 
     6935irix_6_4_bug () 
     6936{ 
     6937  /* Based on code from Ariel Faigon.  */ 
     6938  struct tm tm; 
     6939  tm.tm_year = 96; 
     6940  tm.tm_mon = 3; 
     6941  tm.tm_mday = 0; 
     6942  tm.tm_hour = 0; 
     6943  tm.tm_min = 0; 
     6944  tm.tm_sec = 0; 
     6945  tm.tm_isdst = -1; 
     6946  mktime (&tm); 
     6947  return tm.tm_mon == 2 && tm.tm_mday == 31; 
     6948} 
     6949 
     6950static int 
     6951bigtime_test (j) 
     6952     int j; 
     6953{ 
     6954  struct tm tm; 
     6955  time_t now; 
     6956  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 
     6957  now = mktime (&tm); 
     6958  if (now != (time_t) -1) 
     6959    { 
     6960      struct tm *lt = localtime (&now); 
     6961      if (! (lt 
     6962             && lt->tm_year == tm.tm_year 
     6963             && lt->tm_mon == tm.tm_mon 
     6964             && lt->tm_mday == tm.tm_mday 
     6965             && lt->tm_hour == tm.tm_hour 
     6966             && lt->tm_min == tm.tm_min 
     6967             && lt->tm_sec == tm.tm_sec 
     6968             && lt->tm_yday == tm.tm_yday 
     6969             && lt->tm_wday == tm.tm_wday 
     6970             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 
     6971                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 
     6972        return 0; 
     6973    } 
     6974  return 1; 
     6975} 
     6976 
     6977static int 
     6978year_2050_test () 
     6979{ 
     6980  /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 
     6981     ignoring leap seconds.  */ 
     6982  unsigned long int answer = 2527315200UL; 
     6983 
     6984  struct tm tm; 
     6985  time_t t; 
     6986  tm.tm_year = 2050 - 1900; 
     6987  tm.tm_mon = 2 - 1; 
     6988  tm.tm_mday = 1; 
     6989  tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 
     6990  tm.tm_isdst = -1; 
     6991 
     6992  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 
     6993     instead of "TZ=America/Vancouver" in order to detect the bug even 
     6994     on systems that don't support the Olson extension, or don't have the 
     6995     full zoneinfo tables installed.  */ 
     6996  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 
     6997 
     6998  t = mktime (&tm); 
     6999 
     7000  /* Check that the result is either a failure, or close enough 
     7001     to the correct answer that we can assume the discrepancy is 
     7002     due to leap seconds.  */ 
     7003  return (t == (time_t) -1 
     7004          || (0 < t && answer - 120 <= t && t <= answer + 120)); 
     7005} 
     7006 
     7007int 
     7008main () 
     7009{ 
     7010  time_t t, delta; 
     7011  int i, j; 
     7012 
     7013  /* This test makes some buggy mktime implementations loop. 
     7014     Give up after 60 seconds; a mktime slower than that 
     7015     isn't worth using anyway.  */ 
     7016  alarm (60); 
     7017 
     7018  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 
     7019    continue; 
     7020  time_t_max--; 
     7021  if ((time_t) -1 < 0) 
     7022    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) 
     7023      continue; 
     7024  delta = time_t_max / 997; /* a suitable prime number */ 
     7025  for (i = 0; i < N_STRINGS; i++) 
     7026    { 
     7027      if (tz_strings[i]) 
     7028        putenv (tz_strings[i]); 
     7029 
     7030      for (t = 0; t <= time_t_max - delta; t += delta) 
     7031        if (! mktime_test (t)) 
     7032          return 1; 
     7033      if (! (mktime_test ((time_t) 1) 
     7034             && mktime_test ((time_t) (60 * 60)) 
     7035             && mktime_test ((time_t) (60 * 60 * 24)))) 
     7036        return 1; 
     7037 
     7038      for (j = 1; 0 < j; j *= 2) 
     7039        if (! bigtime_test (j)) 
     7040          return 1; 
     7041      if (! bigtime_test (j - 1)) 
     7042        return 1; 
     7043    } 
     7044  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 
    67487045} 
    67497046_ACEOF 
     
    67687065  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    67697066  (exit $ac_status); }; }; then 
    6770   ac_cv_func_malloc_0_nonnull=yes 
     7067  ac_cv_func_working_mktime=yes 
    67717068else 
    67727069  echo "$as_me: program exited with status $ac_status" >&5 
     
    67757072 
    67767073( exit $ac_status ) 
    6777 ac_cv_func_malloc_0_nonnull=no 
     7074ac_cv_func_working_mktime=no 
    67787075fi 
    67797076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 
     
    67827079 
    67837080fi 
    6784 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 
    6785 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 
    6786 if test $ac_cv_func_malloc_0_nonnull = yes; then 
    6787  
    6788 cat >>confdefs.h <<\_ACEOF 
    6789 #define HAVE_MALLOC 1 
    6790 _ACEOF 
    6791  
    6792 else 
    6793   cat >>confdefs.h <<\_ACEOF 
    6794 #define HAVE_MALLOC 0 
    6795 _ACEOF 
    6796  
    6797    case " $LIBOBJS " in 
    6798   *" malloc.$ac_objext "* ) ;; 
    6799   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 
     7081{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 
     7082echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } 
     7083if test $ac_cv_func_working_mktime = no; then 
     7084  case " $LIBOBJS " in 
     7085  *" mktime.$ac_objext "* ) ;; 
     7086  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 
    68007087 ;; 
    68017088esac 
    68027089 
    6803  
    6804 cat >>confdefs.h <<\_ACEOF 
    6805 #define malloc rpl_malloc 
    6806 _ACEOF 
    6807  
    6808 fi 
    6809  
    6810  
    6811  
    6812  
    6813  
    6814  
    6815  
    6816 for ac_header in $ac_header_list 
     7090fi 
     7091 
     7092 
     7093 
     7094for ac_header in sys/select.h sys/socket.h 
    68177095do 
    68187096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     
    69587236done 
    69597237 
    6960  
    6961  
    6962  
    6963  
    6964  
    6965  
    6966  
    6967  
    6968 for ac_func in $ac_func_list 
     7238{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 
     7239echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 
     7240if test "${ac_cv_func_select_args+set}" = set; then 
     7241  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7242else 
     7243  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 
     7244 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 
     7245  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 
     7246   cat >conftest.$ac_ext <<_ACEOF 
     7247/* confdefs.h.  */ 
     7248_ACEOF 
     7249cat confdefs.h >>conftest.$ac_ext 
     7250cat >>conftest.$ac_ext <<_ACEOF 
     7251/* end confdefs.h.  */ 
     7252$ac_includes_default 
     7253#ifdef HAVE_SYS_SELECT_H 
     7254# include <sys/select.h> 
     7255#endif 
     7256#ifdef HAVE_SYS_SOCKET_H 
     7257# include <sys/socket.h> 
     7258#endif 
     7259 
     7260int 
     7261main () 
     7262{ 
     7263extern int select ($ac_arg1, 
     7264                                            $ac_arg234, $ac_arg234, $ac_arg234, 
     7265                                            $ac_arg5); 
     7266  ; 
     7267  return 0; 
     7268} 
     7269_ACEOF 
     7270rm -f conftest.$ac_objext 
     7271if { (ac_try="$ac_compile" 
     7272case "(($ac_try" in 
     7273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7274  *) ac_try_echo=$ac_try;; 
     7275esac 
     7276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     7277  (eval "$ac_compile") 2>conftest.er1 
     7278  ac_status=$? 
     7279  grep -v '^ *+' conftest.er1 >conftest.err 
     7280  rm -f conftest.er1 
     7281  cat conftest.err >&5 
     7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7283  (exit $ac_status); } && { 
     7284         test -z "$ac_c_werror_flag" || 
     7285         test ! -s conftest.err 
     7286       } && test -s conftest.$ac_objext; then 
     7287  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 
     7288else 
     7289  echo "$as_me: failed program was:" >&5 
     7290sed 's/^/| /' conftest.$ac_ext >&5 
     7291 
     7292 
     7293fi 
     7294 
     7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7296  done 
     7297 done 
     7298done 
     7299# Provide a safe default value. 
     7300: ${ac_cv_func_select_args='int,int *,struct timeval *'} 
     7301 
     7302fi 
     7303{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 
     7304echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 
     7305ac_save_IFS=$IFS; IFS=',' 
     7306set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 
     7307IFS=$ac_save_IFS 
     7308shift 
     7309 
     7310cat >>confdefs.h <<_ACEOF 
     7311#define SELECT_TYPE_ARG1 $1 
     7312_ACEOF 
     7313 
     7314 
     7315cat >>confdefs.h <<_ACEOF 
     7316#define SELECT_TYPE_ARG234 ($2) 
     7317_ACEOF 
     7318 
     7319 
     7320cat >>confdefs.h <<_ACEOF 
     7321#define SELECT_TYPE_ARG5 ($3) 
     7322_ACEOF 
     7323 
     7324rm -f conftest* 
     7325 
     7326{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 
     7327echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 
     7328if test "${ac_cv_type_signal+set}" = set; then 
     7329  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7330else 
     7331  cat >conftest.$ac_ext <<_ACEOF 
     7332/* confdefs.h.  */ 
     7333_ACEOF 
     7334cat confdefs.h >>conftest.$ac_ext 
     7335cat >>conftest.$ac_ext <<_ACEOF 
     7336/* end confdefs.h.  */ 
     7337#include <sys/types.h> 
     7338#include <signal.h> 
     7339 
     7340int 
     7341main () 
     7342{ 
     7343return *(signal (0, 0)) (0) == 1; 
     7344  ; 
     7345  return 0; 
     7346} 
     7347_ACEOF 
     7348rm -f conftest.$ac_objext 
     7349if { (ac_try="$ac_compile" 
     7350case "(($ac_try" in 
     7351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7352  *) ac_try_echo=$ac_try;; 
     7353esac 
     7354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     7355  (eval "$ac_compile") 2>conftest.er1 
     7356  ac_status=$? 
     7357  grep -v '^ *+' conftest.er1 >conftest.err 
     7358  rm -f conftest.er1 
     7359  cat conftest.err >&5 
     7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7361  (exit $ac_status); } && { 
     7362         test -z "$ac_c_werror_flag" || 
     7363         test ! -s conftest.err 
     7364       } && test -s conftest.$ac_objext; then 
     7365  ac_cv_type_signal=int 
     7366else 
     7367  echo "$as_me: failed program was:" >&5 
     7368sed 's/^/| /' conftest.$ac_ext >&5 
     7369 
     7370        ac_cv_type_signal=void 
     7371fi 
     7372 
     7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7374fi 
     7375{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 
     7376echo "${ECHO_T}$ac_cv_type_signal" >&6; } 
     7377 
     7378cat >>confdefs.h <<_ACEOF 
     7379#define RETSIGTYPE $ac_cv_type_signal 
     7380_ACEOF 
     7381 
     7382 
     7383{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 
     7384echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } 
     7385if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 
     7386  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7387else 
     7388  if test "$cross_compiling" = yes; then 
     7389  ac_cv_func_stat_empty_string_bug=yes 
     7390else 
     7391  cat >conftest.$ac_ext <<_ACEOF 
     7392/* confdefs.h.  */ 
     7393_ACEOF 
     7394cat confdefs.h >>conftest.$ac_ext 
     7395cat >>conftest.$ac_ext <<_ACEOF 
     7396/* end confdefs.h.  */ 
     7397$ac_includes_default 
     7398int 
     7399main () 
     7400{ 
     7401struct stat sbuf; 
     7402  return stat ("", &sbuf) == 0; 
     7403  ; 
     7404  return 0; 
     7405} 
     7406_ACEOF 
     7407rm -f conftest$ac_exeext 
     7408if { (ac_try="$ac_link" 
     7409case "(($ac_try" in 
     7410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7411  *) ac_try_echo=$ac_try;; 
     7412esac 
     7413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     7414  (eval "$ac_link") 2>&5 
     7415  ac_status=$? 
     7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 
     7418  { (case "(($ac_try" in 
     7419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7420  *) ac_try_echo=$ac_try;; 
     7421esac 
     7422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     7423  (eval "$ac_try") 2>&5 
     7424  ac_status=$? 
     7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7426  (exit $ac_status); }; }; then 
     7427  ac_cv_func_stat_empty_string_bug=no 
     7428else 
     7429  echo "$as_me: program exited with status $ac_status" >&5 
     7430echo "$as_me: failed program was:" >&5 
     7431sed 's/^/| /' conftest.$ac_ext >&5 
     7432 
     7433( exit $ac_status ) 
     7434ac_cv_func_stat_empty_string_bug=yes 
     7435fi 
     7436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 
     7437fi 
     7438 
     7439 
     7440fi 
     7441{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 
     7442echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } 
     7443if test $ac_cv_func_stat_empty_string_bug = yes; then 
     7444  case " $LIBOBJS " in 
     7445  *" stat.$ac_objext "* ) ;; 
     7446  *) LIBOBJS="$LIBOBJS stat.$ac_objext" 
     7447 ;; 
     7448esac 
     7449 
     7450 
     7451cat >>confdefs.h <<_ACEOF 
     7452#define HAVE_STAT_EMPTY_STRING_BUG 1 
     7453_ACEOF 
     7454 
     7455fi 
     7456 
     7457 
     7458 
     7459 
     7460 
     7461 
     7462 
     7463 
     7464 
     7465 
     7466 
     7467 
     7468 
     7469 
     7470 
     7471 
     7472 
     7473 
     7474 
     7475 
     7476 
     7477 
     7478 
     7479for ac_func in atexit dup2 gethostname gettimeofday malloc mmap memmove memset mkdir munmap realloc rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol 
    69697480do 
    69707481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 
     
    70607571 
    70617572 
    7062  
    7063  
    7064  
    7065  
    7066  
    7067  
    7068  
    7069  
    7070  
    7071  
    7072  
    7073  
    7074  
    7075  
    7076  
    7077 { echo "$as_me:$LINENO: checking for working mktime" >&5 
    7078 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } 
    7079 if test "${ac_cv_func_working_mktime+set}" = set; then 
     7573# check for a Security framework that includes session support 
     7574ac_func_search_save_LIBS=$LIBS 
     7575LIBS="-framework Security $ac_func_search_save_LIBS" 
     7576{ echo "$as_me:$LINENO: checking for SessionCreate" >&5 
     7577echo $ECHO_N "checking for SessionCreate... $ECHO_C" >&6; } 
     7578if test "${ac_cv_func_SessionCreate+set}" = set; then 
    70807579  echo $ECHO_N "(cached) $ECHO_C" >&6 
    7081 else 
    7082   if test "$cross_compiling" = yes; then 
    7083   ac_cv_func_working_mktime=no 
    70847580else 
    708