~ubuntu-branches/ubuntu/raring/sudo/raring

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Tyler Hicks
  • Date: 2012-07-16 14:01:42 UTC
  • mfrom: (1.3.22 sid)
  • Revision ID: package-import@ubuntu.com-20120716140142-b0tgau0k6nid4mrf
Tags: 1.8.5p2-1ubuntu1
* Merge from debian/testing (LP: #1024154), remaining changes:
  - debian/patches/keep_home_by_default.patch:
    + Set HOME in initial_keepenv_table.
  - debian/rules:
    + compile with --without-lecture --with-tty-tickets (Ubuntu specific)
    + install man/man8/sudo_root.8 in both flavours (Ubuntu specific)
    + install apport hooks
    + The ubuntu-sudo-as-admin-successful.patch was taken upstream by
      Debian however it requires a --enable-admin-flag configure flag to
      actually enable it in both flavours.
  - debian/control:
    + Mark Debian Vcs-* as XS-Debian-Vcs-*
    + update debian/control
  - debian/sudoers:
    + grant admin group sudo access
  - debian/source_sudo.py, debian/sudo-ldap.dirs, debian/sudo.dirs:
    + add usr/share/apport/package-hooks
  - debian/sudo.pam:
    + Use pam_env to read /etc/environment and /etc/default/locale
      environment files. Reading ~/.pam_environment is not permitted due to
      security reasons.
* Dropped changes:
  - debian/patches/lp927828-fix-abort-in-pam-modules-when-timestamp-valid.patch
    + Fixed upstream in 1.8.5
  - debian/patches/CVE-2012-2337.patch:
    + Fixed upstream in 1.8.4p5
  - debian/patches/pam_env_merge.patch:
    + Feature released upstream in 1.8.5
  - debian/{sudo,sudo-ldap}.{preinst,postinst,postrm}:
    + Drop Ubuntu-specific sudoers file migration code because the only
      upgrade path to quantal is from precise. All necessary sudoers file
      migration will have already been done by the time this version of the
      sudo package is installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for sudo 1.8.3p2.
 
3
# Generated by GNU Autoconf 2.68 for sudo 1.8.5p2.
4
4
#
5
5
# Report bugs to <http://www.sudo.ws/bugs/>.
6
6
#
570
570
# Identity of this package.
571
571
PACKAGE_NAME='sudo'
572
572
PACKAGE_TARNAME='sudo'
573
 
PACKAGE_VERSION='1.8.3p2'
574
 
PACKAGE_STRING='sudo 1.8.3p2'
 
573
PACKAGE_VERSION='1.8.5p2'
 
574
PACKAGE_STRING='sudo 1.8.5p2'
575
575
PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
576
576
PACKAGE_URL=''
577
577
 
691
691
timeout
692
692
timedir
693
693
iolog_dir
 
694
COMPAT_TEST_PROGS
694
695
SUDO_NLS
695
696
LIBINTL
696
697
LT_STATIC
718
719
SEMAN
719
720
LCMAN
720
721
BAMAN
721
 
DEV
 
722
DEVEL
722
723
SUDOERS_GID
723
724
SUDOERS_UID
724
725
SUDOERS_MODE
803
804
with_long_otp_prompt
804
805
with_SecurID
805
806
with_fwtk
806
 
with_kerb4
807
807
with_kerb5
808
808
with_aixauth
809
809
with_pam
892
892
enable_largefile
893
893
with_pam_login
894
894
enable_pam_session
 
895
enable_kerb5_instance
895
896
'
896
897
      ac_precious_vars='build_alias
897
898
host_alias
1446
1447
  # Omit some internal or obsolete options to make the list less imposing.
1447
1448
  # This message is too long to be a string in the A/UX 3.1 sh.
1448
1449
  cat <<_ACEOF
1449
 
\`configure' configures sudo 1.8.3p2 to adapt to many kinds of systems.
 
1450
\`configure' configures sudo 1.8.5p2 to adapt to many kinds of systems.
1450
1451
 
1451
1452
Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453
 
1511
1512
 
1512
1513
if test -n "$ac_init_help"; then
1513
1514
  case $ac_init_help in
1514
 
     short | recursive ) echo "Configuration of sudo 1.8.3p2:";;
 
1515
     short | recursive ) echo "Configuration of sudo 1.8.5p2:";;
1515
1516
   esac
1516
1517
  cat <<\_ACEOF
1517
1518
 
1548
1549
  --disable-sia           Disable SIA on Digital UNIX
1549
1550
  --disable-largefile     omit support for large files
1550
1551
  --disable-pam-session   Disable PAM session support
 
1552
  --enable-kerb5-instance instance string to append to the username (separated
 
1553
                          by a slash)
1551
1554
 
1552
1555
Optional Packages:
1553
1556
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571
1574
  --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1572
1575
  --with-SecurID[=DIR]    enable SecurID support
1573
1576
  --with-fwtk[=DIR]       enable FWTK AuthSRV support
1574
 
  --with-kerb4[=DIR]      enable Kerberos IV support
1575
1577
  --with-kerb5[=DIR]      enable Kerberos V support
1576
1578
  --with-aixauth          enable AIX general authentication support
1577
1579
  --with-pam              enable PAM support
1637
1639
  --with-askpass=PATH     Fully qualified pathname of askpass helper
1638
1640
  --with-plugindir        set directory to load plugins from
1639
1641
  --with-selinux          enable SELinux support
1640
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1642
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1641
1643
                          both]
1642
1644
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1643
1645
  --with-sysroot=DIR Search for dependent libraries within DIR
1728
1730
test -n "$ac_init_help" && exit $ac_status
1729
1731
if $ac_init_version; then
1730
1732
  cat <<\_ACEOF
1731
 
sudo configure 1.8.3p2
 
1733
sudo configure 1.8.5p2
1732
1734
generated by GNU Autoconf 2.68
1733
1735
 
1734
1736
Copyright (C) 2010 Free Software Foundation, Inc.
2003
2005
 
2004
2006
} # ac_fn_c_check_func
2005
2007
 
 
2008
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2009
# -------------------------------------------
 
2010
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2011
# variable VAR accordingly.
 
2012
ac_fn_c_check_type ()
 
2013
{
 
2014
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2015
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2016
$as_echo_n "checking for $2... " >&6; }
 
2017
if eval \${$3+:} false; then :
 
2018
  $as_echo_n "(cached) " >&6
 
2019
else
 
2020
  eval "$3=no"
 
2021
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2022
/* end confdefs.h.  */
 
2023
$4
 
2024
int
 
2025
main ()
 
2026
{
 
2027
if (sizeof ($2))
 
2028
         return 0;
 
2029
  ;
 
2030
  return 0;
 
2031
}
 
2032
_ACEOF
 
2033
if ac_fn_c_try_compile "$LINENO"; then :
 
2034
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2035
/* end confdefs.h.  */
 
2036
$4
 
2037
int
 
2038
main ()
 
2039
{
 
2040
if (sizeof (($2)))
 
2041
            return 0;
 
2042
  ;
 
2043
  return 0;
 
2044
}
 
2045
_ACEOF
 
2046
if ac_fn_c_try_compile "$LINENO"; then :
 
2047
 
 
2048
else
 
2049
  eval "$3=yes"
 
2050
fi
 
2051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2052
fi
 
2053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2054
fi
 
2055
eval ac_res=\$$3
 
2056
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2057
$as_echo "$ac_res" >&6; }
 
2058
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2059
 
 
2060
} # ac_fn_c_check_type
 
2061
 
2006
2062
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007
2063
# -------------------------------------------------------
2008
2064
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2094
2150
 
2095
2151
} # ac_fn_c_check_header_mongrel
2096
2152
 
2097
 
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2098
 
# -------------------------------------------
2099
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2100
 
# variable VAR accordingly.
2101
 
ac_fn_c_check_type ()
 
2153
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2154
# ----------------------------------------------------
 
2155
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2156
# INCLUDES, setting cache variable VAR accordingly.
 
2157
ac_fn_c_check_member ()
2102
2158
{
2103
2159
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105
 
$as_echo_n "checking for $2... " >&6; }
2106
 
if eval \${$3+:} false; then :
 
2160
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2161
$as_echo_n "checking for $2.$3... " >&6; }
 
2162
if eval \${$4+:} false; then :
2107
2163
  $as_echo_n "(cached) " >&6
2108
2164
else
2109
 
  eval "$3=no"
2110
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111
 
/* end confdefs.h.  */
2112
 
$4
2113
 
int
2114
 
main ()
2115
 
{
2116
 
if (sizeof ($2))
2117
 
         return 0;
2118
 
  ;
2119
 
  return 0;
2120
 
}
2121
 
_ACEOF
2122
 
if ac_fn_c_try_compile "$LINENO"; then :
2123
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124
 
/* end confdefs.h.  */
2125
 
$4
2126
 
int
2127
 
main ()
2128
 
{
2129
 
if (sizeof (($2)))
2130
 
            return 0;
2131
 
  ;
2132
 
  return 0;
2133
 
}
2134
 
_ACEOF
2135
 
if ac_fn_c_try_compile "$LINENO"; then :
2136
 
 
2137
 
else
2138
 
  eval "$3=yes"
2139
 
fi
2140
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141
 
fi
2142
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143
 
fi
2144
 
eval ac_res=\$$3
 
2165
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2166
/* end confdefs.h.  */
 
2167
$5
 
2168
int
 
2169
main ()
 
2170
{
 
2171
static $2 ac_aggr;
 
2172
if (ac_aggr.$3)
 
2173
return 0;
 
2174
  ;
 
2175
  return 0;
 
2176
}
 
2177
_ACEOF
 
2178
if ac_fn_c_try_compile "$LINENO"; then :
 
2179
  eval "$4=yes"
 
2180
else
 
2181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2182
/* end confdefs.h.  */
 
2183
$5
 
2184
int
 
2185
main ()
 
2186
{
 
2187
static $2 ac_aggr;
 
2188
if (sizeof ac_aggr.$3)
 
2189
return 0;
 
2190
  ;
 
2191
  return 0;
 
2192
}
 
2193
_ACEOF
 
2194
if ac_fn_c_try_compile "$LINENO"; then :
 
2195
  eval "$4=yes"
 
2196
else
 
2197
  eval "$4=no"
 
2198
fi
 
2199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2200
fi
 
2201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2202
fi
 
2203
eval ac_res=\$$4
2145
2204
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146
2205
$as_echo "$ac_res" >&6; }
2147
2206
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
2207
 
2149
 
} # ac_fn_c_check_type
 
2208
} # ac_fn_c_check_member
2150
2209
 
2151
2210
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2152
2211
# --------------------------------------------
2326
2385
 
2327
2386
} # ac_fn_c_compute_int
2328
2387
 
2329
 
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2330
 
# ----------------------------------------------------
2331
 
# Tries to find if the field MEMBER exists in type AGGR, after including
2332
 
# INCLUDES, setting cache variable VAR accordingly.
2333
 
ac_fn_c_check_member ()
2334
 
{
2335
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2337
 
$as_echo_n "checking for $2.$3... " >&6; }
2338
 
if eval \${$4+:} false; then :
2339
 
  $as_echo_n "(cached) " >&6
2340
 
else
2341
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342
 
/* end confdefs.h.  */
2343
 
$5
2344
 
int
2345
 
main ()
2346
 
{
2347
 
static $2 ac_aggr;
2348
 
if (ac_aggr.$3)
2349
 
return 0;
2350
 
  ;
2351
 
  return 0;
2352
 
}
2353
 
_ACEOF
2354
 
if ac_fn_c_try_compile "$LINENO"; then :
2355
 
  eval "$4=yes"
2356
 
else
2357
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358
 
/* end confdefs.h.  */
2359
 
$5
2360
 
int
2361
 
main ()
2362
 
{
2363
 
static $2 ac_aggr;
2364
 
if (sizeof ac_aggr.$3)
2365
 
return 0;
2366
 
  ;
2367
 
  return 0;
2368
 
}
2369
 
_ACEOF
2370
 
if ac_fn_c_try_compile "$LINENO"; then :
2371
 
  eval "$4=yes"
2372
 
else
2373
 
  eval "$4=no"
2374
 
fi
2375
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376
 
fi
2377
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378
 
fi
2379
 
eval ac_res=\$$4
2380
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381
 
$as_echo "$ac_res" >&6; }
2382
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
 
 
2384
 
} # ac_fn_c_check_member
2385
 
 
2386
2388
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2387
2389
# ---------------------------------------------
2388
2390
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2432
2434
This file contains any messages produced by compilers while
2433
2435
running configure, to aid debugging if configure makes a mistake.
2434
2436
 
2435
 
It was created by sudo $as_me 1.8.3p2, which was
 
2437
It was created by sudo $as_me 1.8.5p2, which was
2436
2438
generated by GNU Autoconf 2.68.  Invocation command line was
2437
2439
 
2438
2440
  $ $0 $@
2871
2873
 
2872
2874
 
2873
2875
 
 
2876
 
2874
2877
#
2875
2878
# Begin initial values for man page substitution
2876
2879
#
2921
2924
: ${SUDOERS_MODE='0440'}
2922
2925
: ${SUDOERS_UID='0'}
2923
2926
: ${SUDOERS_GID='0'}
2924
 
DEV="#"
 
2927
DEVEL=
2925
2928
LDAP="#"
2926
2929
BAMAN=0
2927
2930
LCMAN=0
2943
2946
shadow_libs_optional=
2944
2947
CONFIGURE_ARGS="$@"
2945
2948
 
 
2949
RTLD_PRELOAD_VAR="LD_PRELOAD"
 
2950
RTLD_PRELOAD_ENABLE_VAR=
 
2951
RTLD_PRELOAD_DELIM=":"
 
2952
RTLD_PRELOAD_DEFAULT=
 
2953
 
2946
2954
 
2947
2955
 
2948
2956
 
2978
2986
    yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2979
2987
$as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2980
2988
                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2981
 
                DEV=""
 
2989
                DEVEL="true"
2982
2990
                devdir=.
2983
2991
                ;;
2984
2992
    no)         ;;
4062
4070
 
4063
4071
 
4064
4072
 
4065
 
# Check whether --with-kerb4 was given.
4066
 
if test "${with_kerb4+set}" = set; then :
4067
 
  withval=$with_kerb4; case $with_kerb4 in
4068
 
    no)         ;;
4069
 
    *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4070
 
$as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4071
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4072
 
$as_echo "yes" >&6; }
4073
 
                AUTH_REG="$AUTH_REG kerb4"
4074
 
                ;;
4075
 
esac
4076
 
fi
4077
 
 
4078
 
 
4079
 
 
4080
4073
# Check whether --with-kerb5 was given.
4081
4074
if test "${with_kerb5+set}" = set; then :
4082
4075
  withval=$with_kerb5; case $with_kerb5 in
5478
5471
if test "$env_reset" = "on"; then
5479
5472
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480
5473
$as_echo "yes" >&6; }
5481
 
    $as_echo "#define ENV_RESET TRUE" >>confdefs.h
 
5474
    $as_echo "#define ENV_RESET 1" >>confdefs.h
5482
5475
 
5483
5476
else
5484
5477
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485
5478
$as_echo "no" >&6; }
5486
 
    $as_echo "#define ENV_RESET FALSE" >>confdefs.h
 
5479
    $as_echo "#define ENV_RESET 0" >>confdefs.h
5487
5480
 
5488
5481
fi
5489
5482
 
6105
6098
 
6106
6099
 
6107
6100
 
6108
 
macro_version='2.4'
6109
 
macro_revision='1.3293'
 
6101
macro_version='2.4.2'
 
6102
macro_revision='1.3337'
6110
6103
 
6111
6104
 
6112
6105
 
6880
6873
    lt_cv_sys_max_cmd_len=196608
6881
6874
    ;;
6882
6875
 
 
6876
  os2*)
 
6877
    # The test takes a long time on OS/2.
 
6878
    lt_cv_sys_max_cmd_len=8192
 
6879
    ;;
 
6880
 
6883
6881
  osf*)
6884
6882
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6885
6883
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6919
6917
      # If test is not a shell built-in, we'll probably end up computing a
6920
6918
      # maximum length that is only half of the actual maximum length, but
6921
6919
      # we can't tell.
6922
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
6920
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6923
6921
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6924
6922
              test $i != 17 # 1/2 MB should be enough
6925
6923
      do
7348
7346
  lt_cv_deplibs_check_method=pass_all
7349
7347
  ;;
7350
7348
 
7351
 
# This must be Linux ELF.
 
7349
# This must be glibc/ELF.
7352
7350
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7353
7351
  lt_cv_deplibs_check_method=pass_all
7354
7352
  ;;
7988
7986
if test -n "$RANLIB"; then
7989
7987
  case $host_os in
7990
7988
  openbsd*)
7991
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7989
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7992
7990
    ;;
7993
7991
  *)
7994
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7992
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7995
7993
    ;;
7996
7994
  esac
7997
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7995
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7998
7996
fi
7999
7997
 
8000
7998
case $host_os in
8183
8181
    # which start with @ or ?.
8184
8182
    lt_cv_sys_global_symbol_pipe="$AWK '"\
8185
8183
"     {last_section=section; section=\$ 3};"\
 
8184
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8186
8185
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8187
8186
"     \$ 0!~/External *\|/{next};"\
8188
8187
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8571
8570
    CFLAGS="$SAVE_CFLAGS"
8572
8571
  fi
8573
8572
  ;;
8574
 
sparc*-*solaris*)
 
8573
*-*solaris*)
8575
8574
  # Find out which ABI we are using.
8576
8575
  echo 'int i;' > conftest.$ac_ext
8577
8576
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8582
8581
    case `/usr/bin/file conftest.o` in
8583
8582
    *64-bit*)
8584
8583
      case $lt_cv_prog_gnu_ld in
8585
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
8584
      yes*)
 
8585
        case $host in
 
8586
        i?86-*-solaris*)
 
8587
          LD="${LD-ld} -m elf_x86_64"
 
8588
          ;;
 
8589
        sparc*-*-solaris*)
 
8590
          LD="${LD-ld} -m elf64_sparc"
 
8591
          ;;
 
8592
        esac
 
8593
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
8594
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
8595
          LD="${LD-ld}_sol2"
 
8596
        fi
 
8597
        ;;
8586
8598
      *)
8587
8599
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8588
8600
          LD="${LD-ld} -64"
9222
9234
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9223
9235
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9224
9236
        _lt_result=$?
9225
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
9237
        # If there is a non-empty error log, and "single_module"
 
9238
        # appears in it, assume the flag caused a linker warning
 
9239
        if test -s conftest.err && $GREP single_module conftest.err; then
 
9240
          cat conftest.err >&5
 
9241
        # Otherwise, if the output was created with a 0 exit code from
 
9242
        # the compiler, it worked.
 
9243
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9226
9244
          lt_cv_apple_cc_single_mod=yes
9227
9245
        else
9228
9246
          cat conftest.err >&5
9233
9251
fi
9234
9252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9235
9253
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
9254
 
9236
9255
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9237
9256
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9238
9257
if ${lt_cv_ld_exported_symbols_list+:} false; then :
9265
9284
fi
9266
9285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9267
9286
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
9287
 
9268
9288
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9269
9289
$as_echo_n "checking for -force_load linker flag... " >&6; }
9270
9290
if ${lt_cv_ld_force_load+:} false; then :
9286
9306
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9287
9307
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9288
9308
      _lt_result=$?
9289
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
9309
      if test -s conftest.err && $GREP force_load conftest.err; then
 
9310
        cat conftest.err >&5
 
9311
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9290
9312
        lt_cv_ld_force_load=yes
9291
9313
      else
9292
9314
        cat conftest.err >&5
9553
9575
 
9554
9576
# Check whether --with-pic was given.
9555
9577
if test "${with_pic+set}" = set; then :
9556
 
  withval=$with_pic; pic_mode="$withval"
 
9578
  withval=$with_pic; lt_p=${PACKAGE-default}
 
9579
    case $withval in
 
9580
    yes|no) pic_mode=$withval ;;
 
9581
    *)
 
9582
      pic_mode=default
 
9583
      # Look at the argument we got.  We use all the common list separators.
 
9584
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9585
      for lt_pkg in $withval; do
 
9586
        IFS="$lt_save_ifs"
 
9587
        if test "X$lt_pkg" = "X$lt_p"; then
 
9588
          pic_mode=yes
 
9589
        fi
 
9590
      done
 
9591
      IFS="$lt_save_ifs"
 
9592
      ;;
 
9593
    esac
9557
9594
else
9558
9595
  pic_mode=default
9559
9596
fi
9631
9668
 
9632
9669
 
9633
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
9634
9675
test -z "$LN_S" && LN_S="ln -s"
9635
9676
 
9636
9677
 
10090
10131
    case $cc_basename in
10091
10132
    nvcc*) # Cuda Compiler Driver 2.2
10092
10133
      lt_prog_compiler_wl='-Xlinker '
10093
 
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
10134
      if test -n "$lt_prog_compiler_pic"; then
 
10135
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
10136
      fi
10094
10137
      ;;
10095
10138
    esac
10096
10139
  else
10181
10224
        ;;
10182
10225
      *)
10183
10226
        case `$CC -V 2>&1 | sed 5q` in
10184
 
        *Sun\ F* | *Sun*Fortran*)
 
10227
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10185
10228
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
10186
10229
          lt_prog_compiler_pic='-KPIC'
10187
10230
          lt_prog_compiler_static='-Bstatic'
10188
10231
          lt_prog_compiler_wl=''
10189
10232
          ;;
 
10233
        *Sun\ F* | *Sun*Fortran*)
 
10234
          lt_prog_compiler_pic='-KPIC'
 
10235
          lt_prog_compiler_static='-Bstatic'
 
10236
          lt_prog_compiler_wl='-Qoption ld '
 
10237
          ;;
10190
10238
        *Sun\ C*)
10191
10239
          # Sun C 5.9
10192
10240
          lt_prog_compiler_pic='-KPIC'
10193
10241
          lt_prog_compiler_static='-Bstatic'
10194
10242
          lt_prog_compiler_wl='-Wl,'
10195
10243
          ;;
 
10244
        *Intel*\ [CF]*Compiler*)
 
10245
          lt_prog_compiler_wl='-Wl,'
 
10246
          lt_prog_compiler_pic='-fPIC'
 
10247
          lt_prog_compiler_static='-static'
 
10248
          ;;
 
10249
        *Portland\ Group*)
 
10250
          lt_prog_compiler_wl='-Wl,'
 
10251
          lt_prog_compiler_pic='-fpic'
 
10252
          lt_prog_compiler_static='-Bstatic'
 
10253
          ;;
10196
10254
        esac
10197
10255
        ;;
10198
10256
      esac
10554
10612
  hardcode_direct=no
10555
10613
  hardcode_direct_absolute=no
10556
10614
  hardcode_libdir_flag_spec=
10557
 
  hardcode_libdir_flag_spec_ld=
10558
10615
  hardcode_libdir_separator=
10559
10616
  hardcode_minus_L=no
10560
10617
  hardcode_shlibpath_var=unsupported
10804
10861
        xlf* | bgf* | bgxlf* | mpixlf*)
10805
10862
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10806
10863
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10807
 
          hardcode_libdir_flag_spec=
10808
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10864
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809
10865
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10810
10866
          if test "x$supports_anon_versioning" = xyes; then
10811
10867
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11184
11240
        # The linker will not automatically build a static lib if we build a DLL.
11185
11241
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11186
11242
        enable_shared_with_static_runtimes=yes
 
11243
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11187
11244
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11188
11245
        # Don't use ranlib
11189
11246
        old_postinstall_cmds='chmod 644 $oldlib'
11229
11286
  hardcode_shlibpath_var=unsupported
11230
11287
  if test "$lt_cv_ld_force_load" = "yes"; then
11231
11288
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
11289
 
11232
11290
  else
11233
11291
    whole_archive_flag_spec=''
11234
11292
  fi
11257
11315
      hardcode_shlibpath_var=no
11258
11316
      ;;
11259
11317
 
11260
 
    freebsd1*)
11261
 
      ld_shlibs=no
11262
 
      ;;
11263
 
 
11264
11318
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11265
11319
    # support.  Future versions do this automatically, but an explicit c++rt0.o
11266
11320
    # does not break anything, and helps significantly (at the cost of a little
11273
11327
      ;;
11274
11328
 
11275
11329
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11276
 
    freebsd2*)
 
11330
    freebsd2.*)
11277
11331
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11278
11332
      hardcode_direct=yes
11279
11333
      hardcode_minus_L=yes
11312
11366
      fi
11313
11367
      if test "$with_gnu_ld" = no; then
11314
11368
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11315
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
11316
11369
        hardcode_libdir_separator=:
11317
11370
        hardcode_direct=yes
11318
11371
        hardcode_direct_absolute=yes
11936
11989
 
11937
11990
 
11938
11991
 
11939
 
 
11940
 
 
11941
 
 
11942
 
 
11943
 
 
11944
11992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11945
11993
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11946
11994
 
12030
12078
 
12031
12079
case $host_os in
12032
12080
aix3*)
12033
 
  version_type=linux
 
12081
  version_type=linux # correct to gnu/linux during the next big refactor
12034
12082
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12035
12083
  shlibpath_var=LIBPATH
12036
12084
 
12039
12087
  ;;
12040
12088
 
12041
12089
aix[4-9]*)
12042
 
  version_type=linux
 
12090
  version_type=linux # correct to gnu/linux during the next big refactor
12043
12091
  need_lib_prefix=no
12044
12092
  need_version=no
12045
12093
  hardcode_into_libs=yes
12104
12152
  ;;
12105
12153
 
12106
12154
bsdi[45]*)
12107
 
  version_type=linux
 
12155
  version_type=linux # correct to gnu/linux during the next big refactor
12108
12156
  need_version=no
12109
12157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12110
12158
  soname_spec='${libname}${release}${shared_ext}$major'
12243
12291
  ;;
12244
12292
 
12245
12293
dgux*)
12246
 
  version_type=linux
 
12294
  version_type=linux # correct to gnu/linux during the next big refactor
12247
12295
  need_lib_prefix=no
12248
12296
  need_version=no
12249
12297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12251
12299
  shlibpath_var=LD_LIBRARY_PATH
12252
12300
  ;;
12253
12301
 
12254
 
freebsd1*)
12255
 
  dynamic_linker=no
12256
 
  ;;
12257
 
 
12258
12302
freebsd* | dragonfly*)
12259
12303
  # DragonFly does not have aout.  When/if they implement a new
12260
12304
  # versioning mechanism, adjust this.
12262
12306
    objformat=`/usr/bin/objformat`
12263
12307
  else
12264
12308
    case $host_os in
12265
 
    freebsd[123]*) objformat=aout ;;
 
12309
    freebsd[23].*) objformat=aout ;;
12266
12310
    *) objformat=elf ;;
12267
12311
    esac
12268
12312
  fi
12280
12324
  esac
12281
12325
  shlibpath_var=LD_LIBRARY_PATH
12282
12326
  case $host_os in
12283
 
  freebsd2*)
 
12327
  freebsd2.*)
12284
12328
    shlibpath_overrides_runpath=yes
12285
12329
    ;;
12286
12330
  freebsd3.[01]* | freebsdelf3.[01]*)
12300
12344
  ;;
12301
12345
 
12302
12346
gnu*)
12303
 
  version_type=linux
 
12347
  version_type=linux # correct to gnu/linux during the next big refactor
12304
12348
  need_lib_prefix=no
12305
12349
  need_version=no
12306
12350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12307
12351
  soname_spec='${libname}${release}${shared_ext}$major'
12308
12352
  shlibpath_var=LD_LIBRARY_PATH
 
12353
  shlibpath_overrides_runpath=no
12309
12354
  hardcode_into_libs=yes
12310
12355
  ;;
12311
12356
 
12312
12357
haiku*)
12313
 
  version_type=linux
 
12358
  version_type=linux # correct to gnu/linux during the next big refactor
12314
12359
  need_lib_prefix=no
12315
12360
  need_version=no
12316
12361
  dynamic_linker="$host_os runtime_loader"
12371
12416
  ;;
12372
12417
 
12373
12418
interix[3-9]*)
12374
 
  version_type=linux
 
12419
  version_type=linux # correct to gnu/linux during the next big refactor
12375
12420
  need_lib_prefix=no
12376
12421
  need_version=no
12377
12422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12387
12432
    nonstopux*) version_type=nonstopux ;;
12388
12433
    *)
12389
12434
        if test "$lt_cv_prog_gnu_ld" = yes; then
12390
 
                version_type=linux
 
12435
                version_type=linux # correct to gnu/linux during the next big refactor
12391
12436
        else
12392
12437
                version_type=irix
12393
12438
        fi ;;
12424
12469
  dynamic_linker=no
12425
12470
  ;;
12426
12471
 
12427
 
# This must be Linux ELF.
 
12472
# This must be glibc/ELF.
12428
12473
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12429
 
  version_type=linux
 
12474
  version_type=linux # correct to gnu/linux during the next big refactor
12430
12475
  need_lib_prefix=no
12431
12476
  need_version=no
12432
12477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508
12553
  ;;
12509
12554
 
12510
12555
newsos6)
12511
 
  version_type=linux
 
12556
  version_type=linux # correct to gnu/linux during the next big refactor
12512
12557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12513
12558
  shlibpath_var=LD_LIBRARY_PATH
12514
12559
  shlibpath_overrides_runpath=yes
12577
12622
  ;;
12578
12623
 
12579
12624
solaris*)
12580
 
  version_type=linux
 
12625
  version_type=linux # correct to gnu/linux during the next big refactor
12581
12626
  need_lib_prefix=no
12582
12627
  need_version=no
12583
12628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602
12647
  ;;
12603
12648
 
12604
12649
sysv4 | sysv4.3*)
12605
 
  version_type=linux
 
12650
  version_type=linux # correct to gnu/linux during the next big refactor
12606
12651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607
12652
  soname_spec='${libname}${release}${shared_ext}$major'
12608
12653
  shlibpath_var=LD_LIBRARY_PATH
12626
12671
 
12627
12672
sysv4*MP*)
12628
12673
  if test -d /usr/nec ;then
12629
 
    version_type=linux
 
12674
    version_type=linux # correct to gnu/linux during the next big refactor
12630
12675
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12631
12676
    soname_spec='$libname${shared_ext}.$major'
12632
12677
    shlibpath_var=LD_LIBRARY_PATH
12657
12702
 
12658
12703
tpf*)
12659
12704
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12660
 
  version_type=linux
 
12705
  version_type=linux # correct to gnu/linux during the next big refactor
12661
12706
  need_lib_prefix=no
12662
12707
  need_version=no
12663
12708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667
12712
  ;;
12668
12713
 
12669
12714
uts4*)
12670
 
  version_type=linux
 
12715
  version_type=linux # correct to gnu/linux during the next big refactor
12671
12716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672
12717
  soname_spec='${libname}${release}${shared_ext}$major'
12673
12718
  shlibpath_var=LD_LIBRARY_PATH
13449
13494
 
13450
13495
 
13451
13496
 
 
13497
 
 
13498
 
13452
13499
        ac_config_commands="$ac_config_commands libtool"
13453
13500
 
13454
13501
 
13463
13510
    enable_dlopen=no
13464
13511
    lt_cv_dlopen=none
13465
13512
    lt_cv_dlopen_libs=
 
13513
    ac_cv_func_dlopen=no
13466
13514
else
13467
13515
    eval _shrext="$shrext_cmds"
13468
13516
    # Darwin uses .dylib for libraries but .so for modules
13685
13733
 
13686
13734
case "$host" in
13687
13735
    *-*-sunos4*)
 
13736
                # LD_PRELOAD is space-delimited
 
13737
                RTLD_PRELOAD_DELIM=" "
 
13738
 
13688
13739
                # getcwd(3) opens a pipe to getpwd(1)!?!
13689
13740
                BROKEN_GETCWD=1
13690
13741
 
13696
13747
                shadow_funcs="getpwanam issecure"
13697
13748
                ;;
13698
13749
    *-*-solaris2*)
 
13750
                # LD_PRELOAD is space-delimited
 
13751
                RTLD_PRELOAD_DELIM=" "
 
13752
 
13699
13753
                # To get the crypt(3) prototype (so we pass -Wall)
13700
13754
                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13701
13755
                # AFS support needs -lucb
13812
13866
                # LDR_PRELOAD is only supported in AIX 5.3 and later
13813
13867
                if test $OSMAJOR -lt 5; then
13814
13868
                    with_noexec=no
 
13869
                else
 
13870
                    RTLD_PRELOAD_VAR="LDR_PRELOAD"
13815
13871
                fi
13816
13872
 
13817
13873
                # AIX-specific functions
14013
14069
 
14014
14070
fi
14015
14071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14072
                # ":DEFAULT" must be appended to _RLD_LIST
 
14073
                RTLD_PRELOAD_VAR="_RLD_LIST"
 
14074
                RTLD_PRELOAD_DEFAULT="DEFAULT"
14016
14075
                : ${mansectsu='8'}
14017
14076
                : ${mansectform='4'}
14018
14077
                ;;
14079
14138
fi
14080
14139
 
14081
14140
                fi
 
14141
                # ":DEFAULT" must be appended to _RLD_LIST
 
14142
                RTLD_PRELOAD_VAR="_RLD_LIST"
 
14143
                RTLD_PRELOAD_DEFAULT="DEFAULT"
14082
14144
                : ${mansectsu='1m'}
14083
14145
                : ${mansectform='4'}
14084
14146
                ;;
14270
14332
                CHECKSHADOW="false"
14271
14333
                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14272
14334
                : ${with_logincap='yes'}
 
14335
                RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
 
14336
                RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14273
14337
                ;;
14274
14338
    *-*-nextstep*)
14275
14339
                # lockf() on is broken on the NeXT -- use flock instead
14276
14340
                ac_cv_func_lockf=no
14277
14341
                ac_cv_func_flock=yes
 
14342
                RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
 
14343
                RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14278
14344
                ;;
14279
14345
    *-*-*sysv4*)
14280
14346
                : ${mansectsu='1m'}
14290
14356
                ;;
14291
14357
esac
14292
14358
 
 
14359
if test -n "$with_noexec"; then
 
14360
    cat >>confdefs.h <<EOF
 
14361
#define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
 
14362
EOF
 
14363
 
 
14364
    cat >>confdefs.h <<EOF
 
14365
#define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
 
14366
EOF
 
14367
 
 
14368
    if test -n "$RTLD_PRELOAD_DEFAULT"; then
 
14369
        cat >>confdefs.h <<EOF
 
14370
#define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
 
14371
EOF
 
14372
 
 
14373
    fi
 
14374
    if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
 
14375
        cat >>confdefs.h <<EOF
 
14376
#define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
 
14377
EOF
 
14378
 
 
14379
    fi
 
14380
fi
 
14381
 
14293
14382
AUTH_REG=${AUTH_REG# }
14294
14383
AUTH_EXCL=${AUTH_EXCL# }
14295
14384
if test -n "$AUTH_EXCL"; then
14495
14584
 
14496
14585
fi
14497
14586
 
 
14587
# Check for variadic macro support in cpp
 
14588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14589
/* end confdefs.h.  */
 
14590
 
 
14591
$ac_includes_default
 
14592
#if defined(__GNUC__) && __GNUC__ == 2
 
14593
# define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
 
14594
#else
 
14595
# define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
 
14596
#endif
 
14597
 
 
14598
int
 
14599
main ()
 
14600
{
 
14601
sudo_fprintf(stderr, "a %s", "test");
 
14602
  ;
 
14603
  return 0;
 
14604
}
 
14605
_ACEOF
 
14606
if ac_fn_c_try_compile "$LINENO"; then :
 
14607
 
 
14608
else
 
14609
  as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
 
14610
fi
 
14611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498
14612
if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14499
14613
    _CFLAGS="$CFLAGS"
14500
14614
    CFLAGS="$CFLAGS -static-libgcc"
15029
15143
 
15030
15144
fi
15031
15145
 
15032
 
for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15033
 
do :
15034
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15035
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15036
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15037
 
  cat >>confdefs.h <<_ACEOF
15038
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15039
 
_ACEOF
15040
 
 
 
15146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
15147
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
15148
if ${ac_cv_header_stdbool_h+:} false; then :
 
15149
  $as_echo_n "(cached) " >&6
 
15150
else
 
15151
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15152
/* end confdefs.h.  */
 
15153
 
 
15154
#include <stdbool.h>
 
15155
#ifndef bool
 
15156
 "error: bool is not defined"
 
15157
#endif
 
15158
#ifndef false
 
15159
 "error: false is not defined"
 
15160
#endif
 
15161
#if false
 
15162
 "error: false is not 0"
 
15163
#endif
 
15164
#ifndef true
 
15165
 "error: true is not defined"
 
15166
#endif
 
15167
#if true != 1
 
15168
 "error: true is not 1"
 
15169
#endif
 
15170
#ifndef __bool_true_false_are_defined
 
15171
 "error: __bool_true_false_are_defined is not defined"
 
15172
#endif
 
15173
 
 
15174
        struct s { _Bool s: 1; _Bool t; } s;
 
15175
 
 
15176
        char a[true == 1 ? 1 : -1];
 
15177
        char b[false == 0 ? 1 : -1];
 
15178
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
15179
        char d[(bool) 0.5 == true ? 1 : -1];
 
15180
        /* See body of main program for 'e'.  */
 
15181
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
15182
        char g[true];
 
15183
        char h[sizeof (_Bool)];
 
15184
        char i[sizeof s.t];
 
15185
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
15186
        /* The following fails for
 
15187
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
15188
        _Bool n[m];
 
15189
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
15190
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
15191
        /* Catch a bug in an HP-UX C compiler.  See
 
15192
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
15193
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
15194
         */
 
15195
        _Bool q = true;
 
15196
        _Bool *pq = &q;
 
15197
 
 
15198
int
 
15199
main ()
 
15200
{
 
15201
 
 
15202
        bool e = &s;
 
15203
        *pq |= q;
 
15204
        *pq |= ! q;
 
15205
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
15206
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
15207
                + !m + !n + !o + !p + !q + !pq);
 
15208
 
 
15209
  ;
 
15210
  return 0;
 
15211
}
 
15212
_ACEOF
 
15213
if ac_fn_c_try_compile "$LINENO"; then :
 
15214
  ac_cv_header_stdbool_h=yes
 
15215
else
 
15216
  ac_cv_header_stdbool_h=no
 
15217
fi
 
15218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15219
fi
 
15220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
15221
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
15222
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
15223
if test "x$ac_cv_type__Bool" = xyes; then :
 
15224
 
 
15225
cat >>confdefs.h <<_ACEOF
 
15226
#define HAVE__BOOL 1
 
15227
_ACEOF
 
15228
 
 
15229
 
 
15230
fi
 
15231
 
 
15232
if test $ac_cv_header_stdbool_h = yes; then
 
15233
 
 
15234
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
15235
 
 
15236
fi
 
15237
 
 
15238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
 
15239
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
 
15240
if ${ac_cv_header_sys_types_h_makedev+:} false; then :
 
15241
  $as_echo_n "(cached) " >&6
 
15242
else
 
15243
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15244
/* end confdefs.h.  */
 
15245
#include <sys/types.h>
 
15246
int
 
15247
main ()
 
15248
{
 
15249
return makedev(0, 0);
 
15250
  ;
 
15251
  return 0;
 
15252
}
 
15253
_ACEOF
 
15254
if ac_fn_c_try_link "$LINENO"; then :
 
15255
  ac_cv_header_sys_types_h_makedev=yes
 
15256
else
 
15257
  ac_cv_header_sys_types_h_makedev=no
 
15258
fi
 
15259
rm -f core conftest.err conftest.$ac_objext \
 
15260
    conftest$ac_exeext conftest.$ac_ext
 
15261
 
 
15262
fi
 
15263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
 
15264
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
 
15265
 
 
15266
if test $ac_cv_header_sys_types_h_makedev = no; then
 
15267
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
 
15268
if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
 
15269
 
 
15270
$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
 
15271
 
 
15272
fi
 
15273
 
 
15274
 
 
15275
 
 
15276
  if test $ac_cv_header_sys_mkdev_h = no; then
 
15277
    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
 
15278
if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
 
15279
 
 
15280
$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
 
15281
 
 
15282
fi
 
15283
 
 
15284
 
 
15285
  fi
 
15286
fi
 
15287
 
 
15288
for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
 
15289
do :
 
15290
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15291
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15292
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
15293
  cat >>confdefs.h <<_ACEOF
 
15294
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15295
_ACEOF
 
15296
 
 
15297
fi
 
15298
 
 
15299
done
 
15300
 
 
15301
for ac_header in procfs.h sys/procfs.h
 
15302
do :
 
15303
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15304
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15305
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
15306
  cat >>confdefs.h <<_ACEOF
 
15307
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15308
_ACEOF
 
15309
 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
 
15310
#ifdef HAVE_PROCFS_H
 
15311
#include <procfs.h>
 
15312
#endif
 
15313
#ifdef HAVE_SYS_PROCFS_H
 
15314
#include <sys/procfs.h>
 
15315
#endif
 
15316
 
 
15317
"
 
15318
if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
 
15319
 
 
15320
cat >>confdefs.h <<_ACEOF
 
15321
#define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
 
15322
_ACEOF
 
15323
 
 
15324
for ac_func in _ttyname_dev
 
15325
do :
 
15326
  ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
 
15327
if test "x$ac_cv_func__ttyname_dev" = xyes; then :
 
15328
  cat >>confdefs.h <<_ACEOF
 
15329
#define HAVE__TTYNAME_DEV 1
 
15330
_ACEOF
 
15331
 
 
15332
fi
 
15333
done
 
15334
 
 
15335
fi
 
15336
 
 
15337
break
15041
15338
fi
15042
15339
 
15043
15340
done
15541
15838
#define HAVE_SIGACTION_T 1
15542
15839
_ACEOF
15543
15840
 
15544
 
$as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
15545
15841
 
15546
15842
fi
15547
15843
 
15552
15848
#include <time.h>
15553
15849
"
15554
15850
if test "x$ac_cv_type_struct_timespec" = xyes; then :
15555
 
  $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
 
15851
 
 
15852
cat >>confdefs.h <<_ACEOF
 
15853
#define HAVE_STRUCT_TIMESPEC 1
 
15854
_ACEOF
 
15855
 
15556
15856
 
15557
15857
fi
15558
15858
 
15565
15865
#define HAVE_STRUCT_IN6_ADDR 1
15566
15866
_ACEOF
15567
15867
 
15568
 
$as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
15569
15868
 
15570
15869
fi
15571
15870
 
15693
15992
_ACEOF
15694
15993
 
15695
15994
 
15696
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15697
 
$as_echo_n "checking for size_t... " >&6; }
15698
 
if ${sudo_cv_type_size_t+:} false; then :
15699
 
  $as_echo_n "(cached) " >&6
15700
 
else
15701
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702
 
/* end confdefs.h.  */
15703
 
#include <sys/types.h>
15704
 
#include <stdio.h>
15705
 
#if STDC_HEADERS
15706
 
#include <stdlib.h>
15707
 
#endif
15708
 
#if HAVE_UNISTD_H
15709
 
#include <unistd.h>
15710
 
#endif
15711
 
_ACEOF
15712
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15713
 
  $EGREP "size_t" >/dev/null 2>&1; then :
15714
 
  sudo_cv_type_size_t=yes
15715
 
else
15716
 
  sudo_cv_type_size_t=no
15717
 
fi
15718
 
rm -f conftest*
15719
 
 
15720
 
fi
15721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
15722
 
$as_echo "$sudo_cv_type_size_t" >&6; }
15723
 
if test $sudo_cv_type_size_t = no; then
15724
 
 
15725
 
$as_echo "#define size_t int" >>confdefs.h
15726
 
 
15727
 
fi
15728
 
 
15729
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15730
 
$as_echo_n "checking for ssize_t... " >&6; }
15731
 
if ${sudo_cv_type_ssize_t+:} false; then :
15732
 
  $as_echo_n "(cached) " >&6
15733
 
else
15734
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735
 
/* end confdefs.h.  */
15736
 
#include <sys/types.h>
15737
 
#include <stdio.h>
15738
 
#if STDC_HEADERS
15739
 
#include <stdlib.h>
15740
 
#endif
15741
 
#if HAVE_UNISTD_H
15742
 
#include <unistd.h>
15743
 
#endif
15744
 
_ACEOF
15745
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15746
 
  $EGREP "ssize_t" >/dev/null 2>&1; then :
15747
 
  sudo_cv_type_ssize_t=yes
15748
 
else
15749
 
  sudo_cv_type_ssize_t=no
15750
 
fi
15751
 
rm -f conftest*
15752
 
 
15753
 
fi
15754
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
15755
 
$as_echo "$sudo_cv_type_ssize_t" >&6; }
15756
 
if test $sudo_cv_type_ssize_t = no; then
15757
 
 
15758
 
$as_echo "#define ssize_t int" >>confdefs.h
15759
 
 
15760
 
fi
15761
 
 
15762
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
15763
 
$as_echo_n "checking for dev_t... " >&6; }
15764
 
if ${sudo_cv_type_dev_t+:} false; then :
15765
 
  $as_echo_n "(cached) " >&6
15766
 
else
15767
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768
 
/* end confdefs.h.  */
15769
 
#include <sys/types.h>
15770
 
#include <stdio.h>
15771
 
#if STDC_HEADERS
15772
 
#include <stdlib.h>
15773
 
#endif
15774
 
#if HAVE_UNISTD_H
15775
 
#include <unistd.h>
15776
 
#endif
15777
 
_ACEOF
15778
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15779
 
  $EGREP "dev_t" >/dev/null 2>&1; then :
15780
 
  sudo_cv_type_dev_t=yes
15781
 
else
15782
 
  sudo_cv_type_dev_t=no
15783
 
fi
15784
 
rm -f conftest*
15785
 
 
15786
 
fi
15787
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
15788
 
$as_echo "$sudo_cv_type_dev_t" >&6; }
15789
 
if test $sudo_cv_type_dev_t = no; then
15790
 
 
15791
 
$as_echo "#define dev_t int" >>confdefs.h
15792
 
 
15793
 
fi
15794
 
 
15795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
15796
 
$as_echo_n "checking for ino_t... " >&6; }
15797
 
if ${sudo_cv_type_ino_t+:} false; then :
15798
 
  $as_echo_n "(cached) " >&6
15799
 
else
15800
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801
 
/* end confdefs.h.  */
15802
 
#include <sys/types.h>
15803
 
#include <stdio.h>
15804
 
#if STDC_HEADERS
15805
 
#include <stdlib.h>
15806
 
#endif
15807
 
#if HAVE_UNISTD_H
15808
 
#include <unistd.h>
15809
 
#endif
15810
 
_ACEOF
15811
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15812
 
  $EGREP "ino_t" >/dev/null 2>&1; then :
15813
 
  sudo_cv_type_ino_t=yes
15814
 
else
15815
 
  sudo_cv_type_ino_t=no
15816
 
fi
15817
 
rm -f conftest*
15818
 
 
15819
 
fi
15820
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
15821
 
$as_echo "$sudo_cv_type_ino_t" >&6; }
15822
 
if test $sudo_cv_type_ino_t = no; then
15823
 
 
15824
 
$as_echo "#define ino_t unsigned int" >>confdefs.h
 
15995
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
15996
if test "x$ac_cv_type_size_t" = xyes; then :
 
15997
 
 
15998
else
 
15999
 
 
16000
cat >>confdefs.h <<_ACEOF
 
16001
#define size_t unsigned int
 
16002
_ACEOF
 
16003
 
 
16004
fi
 
16005
 
 
16006
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
 
16007
if test "x$ac_cv_type_ssize_t" = xyes; then :
 
16008
 
 
16009
else
 
16010
 
 
16011
cat >>confdefs.h <<_ACEOF
 
16012
#define ssize_t int
 
16013
_ACEOF
 
16014
 
 
16015
fi
 
16016
 
 
16017
ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
 
16018
if test "x$ac_cv_type_dev_t" = xyes; then :
 
16019
 
 
16020
else
 
16021
 
 
16022
cat >>confdefs.h <<_ACEOF
 
16023
#define dev_t int
 
16024
_ACEOF
 
16025
 
 
16026
fi
 
16027
 
 
16028
ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
 
16029
if test "x$ac_cv_type_ino_t" = xyes; then :
 
16030
 
 
16031
else
 
16032
 
 
16033
cat >>confdefs.h <<_ACEOF
 
16034
#define ino_t unsigned int
 
16035
_ACEOF
 
16036
 
 
16037
fi
 
16038
 
 
16039
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
 
16040
$ac_includes_default
 
16041
#include <sys/socket.h>
 
16042
"
 
16043
if test "x$ac_cv_type_socklen_t" = xyes; then :
 
16044
 
 
16045
else
 
16046
  $as_echo "#define socklen_t unsigned int" >>confdefs.h
15825
16047
 
15826
16048
fi
15827
16049
 
15884
16106
"
15885
16107
if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15886
16108
 
15887
 
$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
 
16109
$as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
15888
16110
 
15889
16111
fi
15890
16112
 
16257
16479
fi
16258
16480
LIBS=$ac_save_LIBS
16259
16481
 
16260
 
for ac_func in strrchr sysconf tzset strftime \
16261
 
               regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
16262
 
               setrlimit64 sysctl
 
16482
for ac_func in glob strrchr sysconf tzset strftime setenv \
 
16483
               regcomp setlocale nl_langinfo mbr_check_membership \
 
16484
               setrlimit64
16263
16485
do :
16264
16486
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16265
16487
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16316
16538
fi
16317
16539
done
16318
16540
 
 
16541
O_CPPFLAGS="$CPPFLAGS"
 
16542
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
 
16543
ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
 
16544
if test "x$ac_cv_func___sprintf_chk" = xyes; then :
 
16545
 
 
16546
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16547
/* end confdefs.h.  */
 
16548
 
 
16549
int
 
16550
main ()
 
16551
{
 
16552
char buf[4]; (void)sprintf(buf, "%s", "foo");
 
16553
  ;
 
16554
  return 0;
 
16555
}
 
16556
_ACEOF
 
16557
if ac_fn_c_try_link "$LINENO"; then :
 
16558
  OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
 
16559
fi
 
16560
rm -f core conftest.err conftest.$ac_objext \
 
16561
    conftest$ac_exeext conftest.$ac_ext
 
16562
 
 
16563
fi
 
16564
 
 
16565
CPPFLAGS="$O_CPPFLAGS"
 
16566
 
16319
16567
utmp_style=LEGACY
16320
16568
for ac_func in getutxid getutid
16321
16569
do :
16344
16592
 
16345
16593
fi
16346
16594
 
 
16595
for ac_func in sysctl
 
16596
do :
 
16597
  ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
 
16598
if test "x$ac_cv_func_sysctl" = xyes; then :
 
16599
  cat >>confdefs.h <<_ACEOF
 
16600
#define HAVE_SYSCTL 1
 
16601
_ACEOF
 
16602
 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
 
16603
        #include <sys/param.h>
 
16604
        #include <sys/sysctl.h>
 
16605
        #include <sys/user.h>
 
16606
 
 
16607
"
 
16608
if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
 
16609
 
 
16610
cat >>confdefs.h <<_ACEOF
 
16611
#define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
 
16612
_ACEOF
 
16613
 
 
16614
 
 
16615
else
 
16616
 
 
16617
        ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
 
16618
            #include <sys/param.h>
 
16619
            #include <sys/sysctl.h>
 
16620
 
 
16621
"
 
16622
if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
 
16623
 
 
16624
cat >>confdefs.h <<_ACEOF
 
16625
#define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
 
16626
_ACEOF
 
16627
 
 
16628
 
 
16629
else
 
16630
 
 
16631
            ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
 
16632
                #include <sys/param.h>
 
16633
                #include <sys/sysctl.h>
 
16634
 
 
16635
"
 
16636
if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
 
16637
 
 
16638
cat >>confdefs.h <<_ACEOF
 
16639
#define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
 
16640
_ACEOF
 
16641
 
 
16642
 
 
16643
else
 
16644
 
 
16645
                ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
 
16646
                    #include <sys/param.h>
 
16647
                    #include <sys/sysctl.h>
 
16648
 
 
16649
"
 
16650
if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
 
16651
 
 
16652
cat >>confdefs.h <<_ACEOF
 
16653
#define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
 
16654
_ACEOF
 
16655
 
 
16656
 
 
16657
fi
 
16658
 
 
16659
 
 
16660
fi
 
16661
 
 
16662
 
 
16663
fi
 
16664
 
 
16665
 
 
16666
fi
 
16667
 
 
16668
 
 
16669
fi
 
16670
done
 
16671
 
 
16672
 
16347
16673
for ac_func in openpty
16348
16674
do :
16349
16675
  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16533
16859
 
16534
16860
    fi
16535
16861
 
16536
 
else
16537
 
  case " $LIBOBJS " in
16538
 
  *" unsetenv.$ac_objext "* ) ;;
16539
 
  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16540
 
 ;;
16541
 
esac
16542
 
 
16543
16862
fi
16544
16863
done
16545
16864
 
 
16865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
 
16866
$as_echo_n "checking whether putenv takes a const argument... " >&6; }
 
16867
if ${sudo_cv_func_putenv_const+:} false; then :
 
16868
  $as_echo_n "(cached) " >&6
 
16869
else
 
16870
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16871
/* end confdefs.h.  */
 
16872
$ac_includes_default
 
16873
int putenv(const char *string) {return 0;}
 
16874
int
 
16875
main ()
 
16876
{
 
16877
 
 
16878
  ;
 
16879
  return 0;
 
16880
}
 
16881
_ACEOF
 
16882
if ac_fn_c_try_compile "$LINENO"; then :
 
16883
  sudo_cv_func_putenv_const=yes
 
16884
else
 
16885
  sudo_cv_func_putenv_const=no
 
16886
fi
 
16887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16888
 
 
16889
fi
 
16890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
 
16891
$as_echo "$sudo_cv_func_putenv_const" >&6; }
 
16892
  if test $sudo_cv_func_putenv_const = yes; then
 
16893
 
 
16894
$as_echo "#define PUTENV_CONST const" >>confdefs.h
 
16895
 
 
16896
  else
 
16897
    $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
 
16898
 
 
16899
  fi
 
16900
 
16546
16901
if test -z "$SKIP_SETRESUID"; then
16547
16902
    for ac_func in setresuid
16548
16903
do :
16634
16989
 
16635
16990
 
16636
16991
fi
16637
 
for ac_func in glob
16638
 
do :
16639
 
  ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16640
 
if test "x$ac_cv_func_glob" = xyes; then :
16641
 
  cat >>confdefs.h <<_ACEOF
16642
 
#define HAVE_GLOB 1
16643
 
_ACEOF
16644
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16645
 
$as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16646
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647
 
/* end confdefs.h.  */
16648
 
#include <glob.h>
16649
 
int
16650
 
main ()
16651
 
{
16652
 
int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16653
 
  ;
16654
 
  return 0;
16655
 
}
16656
 
_ACEOF
16657
 
if ac_fn_c_try_compile "$LINENO"; then :
16658
 
  $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16659
 
 
16660
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16661
 
$as_echo "yes" >&6; }
16662
 
else
16663
 
  case " $LIBOBJS " in
16664
 
  *" glob.$ac_objext "* ) ;;
16665
 
  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16666
 
 ;;
16667
 
esac
16668
 
 
16669
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670
 
$as_echo "no" >&6; }
16671
 
fi
16672
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673
 
else
16674
 
  case " $LIBOBJS " in
16675
 
  *" glob.$ac_objext "* ) ;;
16676
 
  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16677
 
 ;;
16678
 
esac
16679
 
 
16680
 
fi
16681
 
done
16682
 
 
16683
16992
for ac_func in lockf flock
16684
16993
do :
16685
16994
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16809
17118
 ;;
16810
17119
esac
16811
17120
 
 
17121
    COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
 
17122
 
16812
17123
fi
16813
17124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
16814
17125
$as_echo_n "checking for isblank... " >&6; }
16863
17174
 
16864
17175
fi
16865
17176
 
 
17177
ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
 
17178
if test "x$ac_cv_func_pw_dup" = xyes; then :
 
17179
  $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
 
17180
 
 
17181
else
 
17182
  case " $LIBOBJS " in
 
17183
  *" pw_dup.$ac_objext "* ) ;;
 
17184
  *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
 
17185
 ;;
 
17186
esac
 
17187
 
 
17188
fi
 
17189
 
16866
17190
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16867
17191
if test "x$ac_cv_func_strlcpy" = xyes; then :
16868
17192
  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16889
17213
 
16890
17214
fi
16891
17215
 
16892
 
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
16893
 
if test "x$ac_cv_func_setenv" = xyes; then :
16894
 
  $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16895
 
 
16896
 
else
16897
 
  case " $LIBOBJS " in
16898
 
  *" setenv.$ac_objext "* ) ;;
16899
 
  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
16900
 
 ;;
16901
 
esac
16902
 
 
16903
 
fi
16904
 
 
16905
17216
 
16906
17217
for ac_func in nanosleep
16907
17218
do :
17097
17408
fi
17098
17409
rm -f core conftest.err conftest.$ac_objext \
17099
17410
    conftest$ac_exeext conftest.$ac_ext
 
17411
ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
 
17412
$ac_includes_default
 
17413
#include <$ac_header_dirent>
 
17414
 
 
17415
"
 
17416
if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
 
17417
 
 
17418
cat >>confdefs.h <<_ACEOF
 
17419
#define HAVE_STRUCT_DIRENT_D_TYPE 1
 
17420
_ACEOF
 
17421
 
 
17422
 
 
17423
fi
 
17424
 
17100
17425
if test -n "$NEED_SNPRINTF"; then
17101
17426
    case " $LIBOBJS " in
17102
17427
  *" snprintf.$ac_objext "* ) ;;
17109
17434
if test "x$ac_cv_func_socket" = xyes; then :
17110
17435
 
17111
17436
else
17112
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17113
 
$as_echo_n "checking for socket in -lsocket... " >&6; }
17114
 
if ${ac_cv_lib_socket_socket+:} false; then :
17115
 
  $as_echo_n "(cached) " >&6
17116
 
else
17117
 
  ac_check_lib_save_LIBS=$LIBS
17118
 
LIBS="-lsocket  $LIBS"
17119
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120
 
/* end confdefs.h.  */
17121
 
 
17122
 
/* Override any GCC internal prototype to avoid an error.
17123
 
   Use char because int might match the return type of a GCC
17124
 
   builtin and then its argument prototype would still apply.  */
17125
 
#ifdef __cplusplus
17126
 
extern "C"
17127
 
#endif
17128
 
char socket ();
17129
 
int
17130
 
main ()
17131
 
{
17132
 
return socket ();
17133
 
  ;
17134
 
  return 0;
17135
 
}
17136
 
_ACEOF
17137
 
if ac_fn_c_try_link "$LINENO"; then :
17138
 
  ac_cv_lib_socket_socket=yes
17139
 
else
17140
 
  ac_cv_lib_socket_socket=no
17141
 
fi
17142
 
rm -f core conftest.err conftest.$ac_objext \
17143
 
    conftest$ac_exeext conftest.$ac_ext
17144
 
LIBS=$ac_check_lib_save_LIBS
17145
 
fi
17146
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17147
 
$as_echo "$ac_cv_lib_socket_socket" >&6; }
17148
 
if test "x$ac_cv_lib_socket_socket" = xyes; then :
17149
 
  NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17150
 
else
17151
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
17152
 
$as_echo_n "checking for socket in -linet... " >&6; }
17153
 
if ${ac_cv_lib_inet_socket+:} false; then :
17154
 
  $as_echo_n "(cached) " >&6
17155
 
else
17156
 
  ac_check_lib_save_LIBS=$LIBS
17157
 
LIBS="-linet  $LIBS"
17158
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159
 
/* end confdefs.h.  */
17160
 
 
17161
 
/* Override any GCC internal prototype to avoid an error.
17162
 
   Use char because int might match the return type of a GCC
17163
 
   builtin and then its argument prototype would still apply.  */
17164
 
#ifdef __cplusplus
17165
 
extern "C"
17166
 
#endif
17167
 
char socket ();
17168
 
int
17169
 
main ()
17170
 
{
17171
 
return socket ();
17172
 
  ;
17173
 
  return 0;
17174
 
}
17175
 
_ACEOF
17176
 
if ac_fn_c_try_link "$LINENO"; then :
17177
 
  ac_cv_lib_inet_socket=yes
17178
 
else
17179
 
  ac_cv_lib_inet_socket=no
17180
 
fi
17181
 
rm -f core conftest.err conftest.$ac_objext \
17182
 
    conftest$ac_exeext conftest.$ac_ext
17183
 
LIBS=$ac_check_lib_save_LIBS
17184
 
fi
17185
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
17186
 
$as_echo "$ac_cv_lib_inet_socket" >&6; }
17187
 
if test "x$ac_cv_lib_inet_socket" = xyes; then :
17188
 
  NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17189
 
else
17190
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
17191
 
$as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
17192
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17193
 
$as_echo_n "checking for socket in -lsocket... " >&6; }
17194
 
if ${ac_cv_lib_socket_socket_lnsl+:} false; then :
17195
 
  $as_echo_n "(cached) " >&6
17196
 
else
17197
 
  ac_check_lib_save_LIBS=$LIBS
17198
 
LIBS="-lsocket -lnsl $LIBS"
17199
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200
 
/* end confdefs.h.  */
17201
 
 
17202
 
/* Override any GCC internal prototype to avoid an error.
17203
 
   Use char because int might match the return type of a GCC
17204
 
   builtin and then its argument prototype would still apply.  */
17205
 
#ifdef __cplusplus
17206
 
extern "C"
17207
 
#endif
17208
 
char socket ();
17209
 
int
17210
 
main ()
17211
 
{
17212
 
return socket ();
17213
 
  ;
17214
 
  return 0;
17215
 
}
17216
 
_ACEOF
17217
 
if ac_fn_c_try_link "$LINENO"; then :
17218
 
  ac_cv_lib_socket_socket_lnsl=yes
17219
 
else
17220
 
  ac_cv_lib_socket_socket_lnsl=no
17221
 
fi
17222
 
rm -f core conftest.err conftest.$ac_objext \
17223
 
    conftest$ac_exeext conftest.$ac_ext
17224
 
LIBS=$ac_check_lib_save_LIBS
17225
 
fi
17226
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
17227
 
$as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
17228
 
if test "x$ac_cv_lib_socket_socket_lnsl" = xyes; then :
17229
 
  NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17230
 
fi
17231
 
 
17232
 
fi
17233
 
 
17234
 
fi
 
17437
 
 
17438
    for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
 
17439
        _libs=
 
17440
        for lib in $libs; do
 
17441
            case "$NET_LIBS" in
 
17442
                *"$lib"*)   ;;
 
17443
                *)          _libs="$_libs $lib";;
 
17444
            esac
 
17445
        done
 
17446
        libs="${_libs# }"
 
17447
        test -z "$libs" && continue
 
17448
        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
 
17449
        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
 
17450
 
 
17451
    _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
 
17452
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
 
17453
$as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
 
17454
    if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
 
17455
  $as_echo_n "(cached) " >&6
 
17456
else
 
17457
 
 
17458
        SUDO_CHECK_LIB_OLIBS="$LIBS"
 
17459
        LIBS="$LIBS -l$lib${5+ }$extralibs"
 
17460
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17461
/* end confdefs.h.  */
 
17462
 
 
17463
/* Override any GCC internal prototype to avoid an error.
 
17464
   Use char because int might match the return type of a GCC
 
17465
   builtin and then its argument prototype would still apply.  */
 
17466
#ifdef __cplusplus
 
17467
extern "C"
 
17468
#endif
 
17469
char socket ();
 
17470
int
 
17471
main ()
 
17472
{
 
17473
return socket ();
 
17474
  ;
 
17475
  return 0;
 
17476
}
 
17477
_ACEOF
 
17478
if ac_fn_c_try_link "$LINENO"; then :
 
17479
  eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
 
17480
else
 
17481
  eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
 
17482
 
 
17483
fi
 
17484
rm -f core conftest.err conftest.$ac_objext \
 
17485
    conftest$ac_exeext conftest.$ac_ext
 
17486
        LIBS="$SUDO_CHECK_LIB_OLIBS"
 
17487
 
 
17488
fi
 
17489
 
 
17490
    if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
 
17491
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17492
$as_echo "yes" >&6; }
 
17493
        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
 
17494
    else
 
17495
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17496
$as_echo "no" >&6; }
 
17497
 
 
17498
    fi
 
17499
 
 
17500
    done
17235
17501
 
17236
17502
fi
17237
17503
 
17239
17505
if test "x$ac_cv_func_inet_addr" = xyes; then :
17240
17506
 
17241
17507
else
17242
 
  ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
 
17508
 
 
17509
    ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17243
17510
if test "x$ac_cv_func___inet_addr" = xyes; then :
17244
17511
 
17245
17512
else
17246
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17247
 
$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17248
 
if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17249
 
  $as_echo_n "(cached) " >&6
17250
 
else
17251
 
  ac_check_lib_save_LIBS=$LIBS
17252
 
LIBS="-lnsl  $LIBS"
17253
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254
 
/* end confdefs.h.  */
17255
 
 
17256
 
/* Override any GCC internal prototype to avoid an error.
17257
 
   Use char because int might match the return type of a GCC
17258
 
   builtin and then its argument prototype would still apply.  */
17259
 
#ifdef __cplusplus
17260
 
extern "C"
17261
 
#endif
17262
 
char inet_addr ();
17263
 
int
17264
 
main ()
17265
 
{
17266
 
return inet_addr ();
17267
 
  ;
17268
 
  return 0;
17269
 
}
17270
 
_ACEOF
17271
 
if ac_fn_c_try_link "$LINENO"; then :
17272
 
  ac_cv_lib_nsl_inet_addr=yes
17273
 
else
17274
 
  ac_cv_lib_nsl_inet_addr=no
17275
 
fi
17276
 
rm -f core conftest.err conftest.$ac_objext \
17277
 
    conftest$ac_exeext conftest.$ac_ext
17278
 
LIBS=$ac_check_lib_save_LIBS
17279
 
fi
17280
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17281
 
$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17282
 
if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17283
 
  NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17284
 
else
17285
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
17286
 
$as_echo_n "checking for inet_addr in -linet... " >&6; }
17287
 
if ${ac_cv_lib_inet_inet_addr+:} false; then :
17288
 
  $as_echo_n "(cached) " >&6
17289
 
else
17290
 
  ac_check_lib_save_LIBS=$LIBS
17291
 
LIBS="-linet  $LIBS"
17292
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293
 
/* end confdefs.h.  */
17294
 
 
17295
 
/* Override any GCC internal prototype to avoid an error.
17296
 
   Use char because int might match the return type of a GCC
17297
 
   builtin and then its argument prototype would still apply.  */
17298
 
#ifdef __cplusplus
17299
 
extern "C"
17300
 
#endif
17301
 
char inet_addr ();
17302
 
int
17303
 
main ()
17304
 
{
17305
 
return inet_addr ();
17306
 
  ;
17307
 
  return 0;
17308
 
}
17309
 
_ACEOF
17310
 
if ac_fn_c_try_link "$LINENO"; then :
17311
 
  ac_cv_lib_inet_inet_addr=yes
17312
 
else
17313
 
  ac_cv_lib_inet_inet_addr=no
17314
 
fi
17315
 
rm -f core conftest.err conftest.$ac_objext \
17316
 
    conftest$ac_exeext conftest.$ac_ext
17317
 
LIBS=$ac_check_lib_save_LIBS
17318
 
fi
17319
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
17320
 
$as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
17321
 
if test "x$ac_cv_lib_inet_inet_addr" = xyes; then :
17322
 
  NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17323
 
else
17324
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
17325
 
$as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
17326
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
17327
 
$as_echo_n "checking for inet_addr in -lsocket... " >&6; }
17328
 
if ${ac_cv_lib_socket_inet_addr_lnsl+:} false; then :
17329
 
  $as_echo_n "(cached) " >&6
17330
 
else
17331
 
  ac_check_lib_save_LIBS=$LIBS
17332
 
LIBS="-lsocket -lnsl $LIBS"
17333
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334
 
/* end confdefs.h.  */
17335
 
 
17336
 
/* Override any GCC internal prototype to avoid an error.
17337
 
   Use char because int might match the return type of a GCC
17338
 
   builtin and then its argument prototype would still apply.  */
17339
 
#ifdef __cplusplus
17340
 
extern "C"
17341
 
#endif
17342
 
char inet_addr ();
17343
 
int
17344
 
main ()
17345
 
{
17346
 
return inet_addr ();
17347
 
  ;
17348
 
  return 0;
17349
 
}
17350
 
_ACEOF
17351
 
if ac_fn_c_try_link "$LINENO"; then :
17352
 
  ac_cv_lib_socket_inet_addr_lnsl=yes
17353
 
else
17354
 
  ac_cv_lib_socket_inet_addr_lnsl=no
17355
 
fi
17356
 
rm -f core conftest.err conftest.$ac_objext \
17357
 
    conftest$ac_exeext conftest.$ac_ext
17358
 
LIBS=$ac_check_lib_save_LIBS
17359
 
fi
17360
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
17361
 
$as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
17362
 
if test "x$ac_cv_lib_socket_inet_addr_lnsl" = xyes; then :
17363
 
  NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17364
 
fi
17365
 
 
17366
 
fi
17367
 
 
17368
 
fi
17369
 
 
17370
 
fi
 
17513
 
 
17514
        for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
 
17515
            _libs=
 
17516
            for lib in $libs; do
 
17517
                case "$NET_LIBS" in
 
17518
                    *"$lib"*)   ;;
 
17519
                    *)          _libs="$_libs $lib";;
 
17520
                esac
 
17521
            done
 
17522
            libs="${_libs# }"
 
17523
            test -z "$libs" && continue
 
17524
            lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
 
17525
            extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
 
17526
 
 
17527
    _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
 
17528
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
 
17529
$as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
 
17530
    if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
 
17531
  $as_echo_n "(cached) " >&6
 
17532
else
 
17533
 
 
17534
        SUDO_CHECK_LIB_OLIBS="$LIBS"
 
17535
        LIBS="$LIBS -l$lib${5+ }$extralibs"
 
17536
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17537
/* end confdefs.h.  */
 
17538
 
 
17539
/* Override any GCC internal prototype to avoid an error.
 
17540
   Use char because int might match the return type of a GCC
 
17541
   builtin and then its argument prototype would still apply.  */
 
17542
#ifdef __cplusplus
 
17543
extern "C"
 
17544
#endif
 
17545
char inet_addr ();
 
17546
int
 
17547
main ()
 
17548
{
 
17549
return inet_addr ();
 
17550
  ;
 
17551
  return 0;
 
17552
}
 
17553
_ACEOF
 
17554
if ac_fn_c_try_link "$LINENO"; then :
 
17555
  eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
 
17556
else
 
17557
  eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
 
17558
 
 
17559
fi
 
17560
rm -f core conftest.err conftest.$ac_objext \
 
17561
    conftest$ac_exeext conftest.$ac_ext
 
17562
        LIBS="$SUDO_CHECK_LIB_OLIBS"
 
17563
 
 
17564
fi
 
17565
 
 
17566
    if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
 
17567
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17568
$as_echo "yes" >&6; }
 
17569
        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
 
17570
    else
 
17571
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17572
$as_echo "no" >&6; }
 
17573
 
 
17574
    fi
 
17575
 
 
17576
        done
 
17577
 
 
17578
fi
 
17579
 
17371
17580
 
17372
17581
fi
17373
17582
 
17375
17584
if test "x$ac_cv_func_syslog" = xyes; then :
17376
17585
 
17377
17586
else
17378
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
17379
 
$as_echo_n "checking for syslog in -lsocket... " >&6; }
17380
 
if ${ac_cv_lib_socket_syslog+:} false; then :
17381
 
  $as_echo_n "(cached) " >&6
17382
 
else
17383
 
  ac_check_lib_save_LIBS=$LIBS
17384
 
LIBS="-lsocket  $LIBS"
17385
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386
 
/* end confdefs.h.  */
17387
 
 
17388
 
/* Override any GCC internal prototype to avoid an error.
17389
 
   Use char because int might match the return type of a GCC
17390
 
   builtin and then its argument prototype would still apply.  */
17391
 
#ifdef __cplusplus
17392
 
extern "C"
17393
 
#endif
17394
 
char syslog ();
17395
 
int
17396
 
main ()
17397
 
{
17398
 
return syslog ();
17399
 
  ;
17400
 
  return 0;
17401
 
}
17402
 
_ACEOF
17403
 
if ac_fn_c_try_link "$LINENO"; then :
17404
 
  ac_cv_lib_socket_syslog=yes
17405
 
else
17406
 
  ac_cv_lib_socket_syslog=no
17407
 
fi
17408
 
rm -f core conftest.err conftest.$ac_objext \
17409
 
    conftest$ac_exeext conftest.$ac_ext
17410
 
LIBS=$ac_check_lib_save_LIBS
17411
 
fi
17412
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
17413
 
$as_echo "$ac_cv_lib_socket_syslog" >&6; }
17414
 
if test "x$ac_cv_lib_socket_syslog" = xyes; then :
17415
 
  NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17416
 
else
17417
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
17418
 
$as_echo_n "checking for syslog in -lnsl... " >&6; }
17419
 
if ${ac_cv_lib_nsl_syslog+:} false; then :
17420
 
  $as_echo_n "(cached) " >&6
17421
 
else
17422
 
  ac_check_lib_save_LIBS=$LIBS
17423
 
LIBS="-lnsl  $LIBS"
17424
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425
 
/* end confdefs.h.  */
17426
 
 
17427
 
/* Override any GCC internal prototype to avoid an error.
17428
 
   Use char because int might match the return type of a GCC
17429
 
   builtin and then its argument prototype would still apply.  */
17430
 
#ifdef __cplusplus
17431
 
extern "C"
17432
 
#endif
17433
 
char syslog ();
17434
 
int
17435
 
main ()
17436
 
{
17437
 
return syslog ();
17438
 
  ;
17439
 
  return 0;
17440
 
}
17441
 
_ACEOF
17442
 
if ac_fn_c_try_link "$LINENO"; then :
17443
 
  ac_cv_lib_nsl_syslog=yes
17444
 
else
17445
 
  ac_cv_lib_nsl_syslog=no
17446
 
fi
17447
 
rm -f core conftest.err conftest.$ac_objext \
17448
 
    conftest$ac_exeext conftest.$ac_ext
17449
 
LIBS=$ac_check_lib_save_LIBS
17450
 
fi
17451
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
17452
 
$as_echo "$ac_cv_lib_nsl_syslog" >&6; }
17453
 
if test "x$ac_cv_lib_nsl_syslog" = xyes; then :
17454
 
  NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17455
 
else
17456
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
17457
 
$as_echo_n "checking for syslog in -linet... " >&6; }
17458
 
if ${ac_cv_lib_inet_syslog+:} false; then :
17459
 
  $as_echo_n "(cached) " >&6
17460
 
else
17461
 
  ac_check_lib_save_LIBS=$LIBS
17462
 
LIBS="-linet  $LIBS"
17463
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464
 
/* end confdefs.h.  */
17465
 
 
17466
 
/* Override any GCC internal prototype to avoid an error.
17467
 
   Use char because int might match the return type of a GCC
17468
 
   builtin and then its argument prototype would still apply.  */
17469
 
#ifdef __cplusplus
17470
 
extern "C"
17471
 
#endif
17472
 
char syslog ();
17473
 
int
17474
 
main ()
17475
 
{
17476
 
return syslog ();
17477
 
  ;
17478
 
  return 0;
17479
 
}
17480
 
_ACEOF
17481
 
if ac_fn_c_try_link "$LINENO"; then :
17482
 
  ac_cv_lib_inet_syslog=yes
17483
 
else
17484
 
  ac_cv_lib_inet_syslog=no
17485
 
fi
17486
 
rm -f core conftest.err conftest.$ac_objext \
17487
 
    conftest$ac_exeext conftest.$ac_ext
17488
 
LIBS=$ac_check_lib_save_LIBS
17489
 
fi
17490
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
17491
 
$as_echo "$ac_cv_lib_inet_syslog" >&6; }
17492
 
if test "x$ac_cv_lib_inet_syslog" = xyes; then :
17493
 
  NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17494
 
fi
17495
 
 
17496
 
fi
17497
 
 
17498
 
fi
17499
 
 
17500
 
fi
 
17587
 
 
17588
    for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
 
17589
        _libs=
 
17590
        for lib in $libs; do
 
17591
            case "$NET_LIBS" in
 
17592
                *"$lib"*)   ;;
 
17593
                *)          _libs="$_libs $lib";;
 
17594
            esac
 
17595
        done
 
17596
        libs="${_libs# }"
 
17597
        test -z "$libs" && continue
 
17598
        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
 
17599
        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
 
17600
 
 
17601
    _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
 
17602
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
 
17603
$as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
 
17604
    if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
 
17605
  $as_echo_n "(cached) " >&6
 
17606
else
 
17607
 
 
17608
        SUDO_CHECK_LIB_OLIBS="$LIBS"
 
17609
        LIBS="$LIBS -l$lib${5+ }$extralibs"
 
17610
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17611
/* end confdefs.h.  */
 
17612
 
 
17613
/* Override any GCC internal prototype to avoid an error.
 
17614
   Use char because int might match the return type of a GCC
 
17615
   builtin and then its argument prototype would still apply.  */
 
17616
#ifdef __cplusplus
 
17617
extern "C"
 
17618
#endif
 
17619
char syslog ();
 
17620
int
 
17621
main ()
 
17622
{
 
17623
return syslog ();
 
17624
  ;
 
17625
  return 0;
 
17626
}
 
17627
_ACEOF
 
17628
if ac_fn_c_try_link "$LINENO"; then :
 
17629
  eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
 
17630
else
 
17631
  eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
 
17632
 
 
17633
fi
 
17634
rm -f core conftest.err conftest.$ac_objext \
 
17635
    conftest$ac_exeext conftest.$ac_ext
 
17636
        LIBS="$SUDO_CHECK_LIB_OLIBS"
 
17637
 
 
17638
fi
 
17639
 
 
17640
    if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
 
17641
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17642
$as_echo "yes" >&6; }
 
17643
        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
 
17644
    else
 
17645
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17646
$as_echo "no" >&6; }
 
17647
 
 
17648
    fi
 
17649
 
 
17650
    done
 
17651
 
 
17652
fi
 
17653
 
 
17654
for ac_func in getaddrinfo
 
17655
do :
 
17656
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
 
17657
if test "x$ac_cv_func_getaddrinfo" = xyes; then :
 
17658
  cat >>confdefs.h <<_ACEOF
 
17659
#define HAVE_GETADDRINFO 1
 
17660
_ACEOF
 
17661
 
 
17662
else
 
17663
 
 
17664
    found=no
 
17665
    for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
 
17666
        _libs=
 
17667
        for lib in $libs; do
 
17668
            case "$NET_LIBS" in
 
17669
                *"$lib"*)   ;;
 
17670
                *)          _libs="$_libs $lib";;
 
17671
            esac
 
17672
        done
 
17673
        libs="${_libs# }"
 
17674
        test -z "$libs" && continue
 
17675
        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
 
17676
        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
 
17677
 
 
17678
    _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
 
17679
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
 
17680
$as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
 
17681
    if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
 
17682
  $as_echo_n "(cached) " >&6
 
17683
else
 
17684
 
 
17685
        SUDO_CHECK_LIB_OLIBS="$LIBS"
 
17686
        LIBS="$LIBS -l$lib${5+ }$extralibs"
 
17687
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17688
/* end confdefs.h.  */
 
17689
 
 
17690
/* Override any GCC internal prototype to avoid an error.
 
17691
   Use char because int might match the return type of a GCC
 
17692
   builtin and then its argument prototype would still apply.  */
 
17693
#ifdef __cplusplus
 
17694
extern "C"
 
17695
#endif
 
17696
char getaddrinfo ();
 
17697
int
 
17698
main ()
 
17699
{
 
17700
return getaddrinfo ();
 
17701
  ;
 
17702
  return 0;
 
17703
}
 
17704
_ACEOF
 
17705
if ac_fn_c_try_link "$LINENO"; then :
 
17706
  eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
 
17707
else
 
17708
  eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
 
17709
 
 
17710
fi
 
17711
rm -f core conftest.err conftest.$ac_objext \
 
17712
    conftest$ac_exeext conftest.$ac_ext
 
17713
        LIBS="$SUDO_CHECK_LIB_OLIBS"
 
17714
 
 
17715
fi
 
17716
 
 
17717
    if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
 
17718
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17719
$as_echo "yes" >&6; }
 
17720
        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
 
17721
    else
 
17722
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17723
$as_echo "no" >&6; }
 
17724
 
 
17725
    fi
 
17726
 
 
17727
    done
 
17728
    if test X"$found" != X"no"; then
 
17729
        $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
 
17730
 
 
17731
    fi
 
17732
 
 
17733
fi
 
17734
done
17501
17735
 
17502
17736
for ac_func in getprogname
17503
17737
do :
17552
17786
fi
17553
17787
done
17554
17788
 
 
17789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
 
17790
$as_echo_n "checking for __func__... " >&6; }
 
17791
if ${sudo_cv___func__+:} false; then :
 
17792
  $as_echo_n "(cached) " >&6
 
17793
else
 
17794
 
 
17795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17796
/* end confdefs.h.  */
 
17797
 
 
17798
int
 
17799
main ()
 
17800
{
 
17801
(void)puts(__func__);
 
17802
  ;
 
17803
  return 0;
 
17804
}
 
17805
_ACEOF
 
17806
if ac_fn_c_try_link "$LINENO"; then :
 
17807
  sudo_cv___func__=yes
 
17808
else
 
17809
  sudo_cv___func__=no
 
17810
fi
 
17811
rm -f core conftest.err conftest.$ac_objext \
 
17812
    conftest$ac_exeext conftest.$ac_ext
 
17813
fi
 
17814
 
 
17815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
 
17816
$as_echo "$sudo_cv___func__" >&6; }
 
17817
if test "$sudo_cv___func__" = "yes"; then
 
17818
    $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
 
17819
 
 
17820
elif test -n "$GCC"; then
 
17821
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
 
17822
$as_echo_n "checking for __FUNCTION__... " >&6; }
 
17823
    if ${sudo_cv___FUNCTION__+:} false; then :
 
17824
  $as_echo_n "(cached) " >&6
 
17825
else
 
17826
 
 
17827
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17828
/* end confdefs.h.  */
 
17829
 
 
17830
int
 
17831
main ()
 
17832
{
 
17833
(void)puts(__FUNCTION__);
 
17834
  ;
 
17835
  return 0;
 
17836
}
 
17837
_ACEOF
 
17838
if ac_fn_c_try_link "$LINENO"; then :
 
17839
  sudo_cv___FUNCTION__=yes
 
17840
else
 
17841
  sudo_cv___FUNCTION__=no
 
17842
fi
 
17843
rm -f core conftest.err conftest.$ac_objext \
 
17844
    conftest$ac_exeext conftest.$ac_ext
 
17845
fi
 
17846
 
 
17847
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
 
17848
$as_echo "$sudo_cv___FUNCTION__" >&6; }
 
17849
    if test "$sudo_cv___FUNCTION__" = "yes"; then
 
17850
        $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
 
17851
 
 
17852
 
 
17853
$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
 
17854
 
 
17855
    fi
 
17856
fi
17555
17857
 
17556
17858
# gettext() and friends may be located in libc (Linux and Solaris)
17557
17859
# or in libintl.  However, it is possible to have libintl installed
17717
18019
    *)
17718
18020
        $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17719
18021
 
17720
 
        CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
 
18022
        CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
17721
18023
 
17722
18024
    if test X"$with_rpath" = X"yes"; then
17723
18025
        case "$host" in
17739
18041
if test X"$enable_zlib" = X"builtin"; then
17740
18042
    $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17741
18043
 
17742
 
    CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
 
18044
    CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
17743
18045
    ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17744
18046
    ZLIB_SRC=zlib
17745
18047
    ac_config_headers="$ac_config_headers zlib/zconf.h"
17764
18066
_ACEOF
17765
18067
 
17766
18068
 
 
18069
ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
 
18070
$ac_includes_default
 
18071
#include <netdb.h>
 
18072
 
 
18073
"
 
18074
if test "x$ac_cv_have_decl_h_errno" = xyes; then :
 
18075
  ac_have_decl=1
 
18076
else
 
18077
  ac_have_decl=0
 
18078
fi
 
18079
 
 
18080
cat >>confdefs.h <<_ACEOF
 
18081
#define HAVE_DECL_H_ERRNO $ac_have_decl
 
18082
_ACEOF
 
18083
 
 
18084
 
17767
18085
for ac_func in strsignal
17768
18086
do :
17769
18087
  ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17882
18200
fi
17883
18201
 
17884
18202
if test ${with_pam-"no"} != "no"; then
17885
 
    # We already link with -ldl (see LIBDL below) so no need for that here.
17886
 
    SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
17887
 
 
17888
 
                    for ac_header in security/pam_appl.h pam/pam_appl.h
 
18203
    #
 
18204
    # Check for pam_start() in libpam first, then for pam_appl.h.
 
18205
    #
 
18206
    found_pam_lib=no
 
18207
    as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
 
18208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
 
18209
$as_echo_n "checking for pam_start in -lpam... " >&6; }
 
18210
if eval \${$as_ac_Lib+:} false; then :
 
18211
  $as_echo_n "(cached) " >&6
 
18212
else
 
18213
  ac_check_lib_save_LIBS=$LIBS
 
18214
LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
 
18215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18216
/* end confdefs.h.  */
 
18217
 
 
18218
/* Override any GCC internal prototype to avoid an error.
 
18219
   Use char because int might match the return type of a GCC
 
18220
   builtin and then its argument prototype would still apply.  */
 
18221
#ifdef __cplusplus
 
18222
extern "C"
 
18223
#endif
 
18224
char pam_start ();
 
18225
int
 
18226
main ()
 
18227
{
 
18228
return pam_start ();
 
18229
  ;
 
18230
  return 0;
 
18231
}
 
18232
_ACEOF
 
18233
if ac_fn_c_try_link "$LINENO"; then :
 
18234
  eval "$as_ac_Lib=yes"
 
18235
else
 
18236
  eval "$as_ac_Lib=no"
 
18237
fi
 
18238
rm -f core conftest.err conftest.$ac_objext \
 
18239
    conftest$ac_exeext conftest.$ac_ext
 
18240
LIBS=$ac_check_lib_save_LIBS
 
18241
fi
 
18242
eval ac_res=\$$as_ac_Lib
 
18243
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18244
$as_echo "$ac_res" >&6; }
 
18245
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
 
18246
  found_pam_lib=yes
 
18247
fi
 
18248
 
 
18249
    #
 
18250
    # Some PAM implementations (MacOS X for example) put the PAM headers
 
18251
    # in /usr/include/pam instead of /usr/include/security...
 
18252
    #
 
18253
    found_pam_hdrs=no
 
18254
    for ac_header in security/pam_appl.h pam/pam_appl.h
17889
18255
do :
17890
18256
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17891
18257
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17893
18259
  cat >>confdefs.h <<_ACEOF
17894
18260
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17895
18261
_ACEOF
17896
 
 with_pam=yes; break
 
18262
 found_pam_hdrs=yes; break
17897
18263
fi
17898
18264
 
17899
18265
done
17900
18266
 
 
18267
    if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
 
18268
        # Found both PAM libs and headers
 
18269
        with_pam=yes
 
18270
    elif test "$with_pam" = "yes"; then
 
18271
        if test "$found_pam_lib" = "no"; then
 
18272
            as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
 
18273
        fi
 
18274
        if test "$found_pam_hdrs" = "no"; then
 
18275
            as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
 
18276
        fi
 
18277
    elif test "$found_pam_lib" != "$found_pam_hdrs"; then
 
18278
        if test "$found_pam_lib" = "no"; then
 
18279
            as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
 
18280
        fi
 
18281
        if test "$found_pam_hdrs" = "no"; then
 
18282
            as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
 
18283
        fi
 
18284
    fi
 
18285
 
17901
18286
    if test "$with_pam" = "yes"; then
17902
18287
        # Older PAM implementations lack pam_getenvlist
17903
18288
        OLIBS="$LIBS"
17914
18299
done
17915
18300
 
17916
18301
        LIBS="$OLIBS"
 
18302
 
 
18303
        # We already link with -ldl if needed (see LIBDL below)
 
18304
        SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
17917
18305
        $as_echo "#define HAVE_PAM 1" >>confdefs.h
17918
18306
 
17919
18307
        AUTH_OBJS="$AUTH_OBJS pam.lo";
18044
18432
        with_SecurID=/usr/ace
18045
18433
    fi
18046
18434
    CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18047
 
    _LDFLAGS="${LDFLAGS}"
18048
18435
 
18049
18436
    if test X"$with_rpath" = X"yes"; then
18050
18437
        case "$host" in
18060
18447
        blibpath_add="${blibpath_add}:${with_SecurID}"
18061
18448
    fi
18062
18449
 
18063
 
    #
18064
 
    # Determine whether to use the new or old SecurID API
18065
 
    #
18066
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
18067
 
$as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
18068
 
if ${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+:} false; then :
18069
 
  $as_echo_n "(cached) " >&6
18070
 
else
18071
 
  ac_check_lib_save_LIBS=$LIBS
18072
 
LIBS="-laceclnt
18073
 
            -lpthread
18074
 
 
18075
 
     $LIBS"
18076
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077
 
/* end confdefs.h.  */
18078
 
 
18079
 
/* Override any GCC internal prototype to avoid an error.
18080
 
   Use char because int might match the return type of a GCC
18081
 
   builtin and then its argument prototype would still apply.  */
18082
 
#ifdef __cplusplus
18083
 
extern "C"
18084
 
#endif
18085
 
char SD_Init ();
18086
 
int
18087
 
main ()
18088
 
{
18089
 
return SD_Init ();
18090
 
  ;
18091
 
  return 0;
18092
 
}
18093
 
_ACEOF
18094
 
if ac_fn_c_try_link "$LINENO"; then :
18095
 
  ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
18096
 
else
18097
 
  ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
18098
 
fi
18099
 
rm -f core conftest.err conftest.$ac_objext \
18100
 
    conftest$ac_exeext conftest.$ac_ext
18101
 
LIBS=$ac_check_lib_save_LIBS
18102
 
fi
18103
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
18104
 
$as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
18105
 
if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = xyes; then :
18106
 
 
18107
 
            AUTH_OBJS="$AUTH_OBJS securid5.lo";
18108
 
            SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18109
 
 
18110
 
 
18111
 
 
18112
 
    if test X"$with_rpath" = X"yes"; then
18113
 
        case "$host" in
18114
 
            *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18115
 
                        ;;
18116
 
            *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18117
 
                        ;;
18118
 
        esac
18119
 
    else
18120
 
        SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18121
 
    fi
18122
 
    if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18123
 
        blibpath_add="${blibpath_add}:${with_SecurID}"
18124
 
    fi
18125
 
 
18126
 
 
18127
 
else
18128
 
 
18129
 
            AUTH_OBJS="$AUTH_OBJS securid.lo";
18130
 
            SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
18131
 
 
18132
 
fi
18133
 
 
18134
 
    LDFLAGS="${_LDFLAGS}"
 
18450
    SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
 
18451
    AUTH_OBJS="$AUTH_OBJS securid5.lo";
18135
18452
fi
18136
18453
 
18137
18454
 
18143
18460
    done
18144
18461
fi
18145
18462
 
18146
 
if test ${with_kerb4-'no'} != "no"; then
18147
 
    $as_echo "#define HAVE_KERB4 1" >>confdefs.h
18148
 
 
18149
 
                O_LDFLAGS="$LDFLAGS"
18150
 
    if test "$with_kerb4" = "yes"; then
18151
 
        found=no
18152
 
        O_CPPFLAGS="$CPPFLAGS"
18153
 
        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
18154
 
            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18155
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156
 
/* end confdefs.h.  */
18157
 
#include <krb.h>
18158
 
int
18159
 
main ()
18160
 
{
18161
 
 
18162
 
  ;
18163
 
  return 0;
18164
 
}
18165
 
_ACEOF
18166
 
if ac_fn_c_try_cpp "$LINENO"; then :
18167
 
  found=yes; break
18168
 
fi
18169
 
rm -f conftest.err conftest.i conftest.$ac_ext
18170
 
        done
18171
 
        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
18172
 
    else
18173
 
 
18174
 
    if test X"$with_rpath" = X"yes"; then
18175
 
        case "$host" in
18176
 
            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18177
 
                        ;;
18178
 
            *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18179
 
                        ;;
18180
 
        esac
18181
 
    else
18182
 
        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
18183
 
    fi
18184
 
    if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18185
 
        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18186
 
    fi
18187
 
 
18188
 
 
18189
 
    if test X"$with_rpath" = X"yes"; then
18190
 
        case "$host" in
18191
 
            *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18192
 
                        ;;
18193
 
            *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18194
 
                        ;;
18195
 
        esac
18196
 
    else
18197
 
        SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
18198
 
    fi
18199
 
    if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18200
 
        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18201
 
    fi
18202
 
 
18203
 
        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
18204
 
        ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18205
 
if test "x$ac_cv_header_krb_h" = xyes; then :
18206
 
  found=yes
18207
 
else
18208
 
  found=no
18209
 
fi
18210
 
 
18211
 
 
18212
 
    fi
18213
 
    if test X"$found" = X"no"; then
18214
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
18215
 
$as_echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
18216
 
    fi
18217
 
 
18218
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18219
 
$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18220
 
if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18221
 
  $as_echo_n "(cached) " >&6
18222
 
else
18223
 
  ac_check_lib_save_LIBS=$LIBS
18224
 
LIBS="-ldes  $LIBS"
18225
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226
 
/* end confdefs.h.  */
18227
 
 
18228
 
/* Override any GCC internal prototype to avoid an error.
18229
 
   Use char because int might match the return type of a GCC
18230
 
   builtin and then its argument prototype would still apply.  */
18231
 
#ifdef __cplusplus
18232
 
extern "C"
18233
 
#endif
18234
 
char des_cbc_encrypt ();
18235
 
int
18236
 
main ()
18237
 
{
18238
 
return des_cbc_encrypt ();
18239
 
  ;
18240
 
  return 0;
18241
 
}
18242
 
_ACEOF
18243
 
if ac_fn_c_try_link "$LINENO"; then :
18244
 
  ac_cv_lib_des_des_cbc_encrypt=yes
18245
 
else
18246
 
  ac_cv_lib_des_des_cbc_encrypt=no
18247
 
fi
18248
 
rm -f core conftest.err conftest.$ac_objext \
18249
 
    conftest$ac_exeext conftest.$ac_ext
18250
 
LIBS=$ac_check_lib_save_LIBS
18251
 
fi
18252
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18253
 
$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18254
 
if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18255
 
  K4LIBS="-ldes"
18256
 
else
18257
 
 
18258
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18259
 
$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18260
 
if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18261
 
  $as_echo_n "(cached) " >&6
18262
 
else
18263
 
  ac_check_lib_save_LIBS=$LIBS
18264
 
LIBS="-ldes425  $LIBS"
18265
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266
 
/* end confdefs.h.  */
18267
 
 
18268
 
/* Override any GCC internal prototype to avoid an error.
18269
 
   Use char because int might match the return type of a GCC
18270
 
   builtin and then its argument prototype would still apply.  */
18271
 
#ifdef __cplusplus
18272
 
extern "C"
18273
 
#endif
18274
 
char des_cbc_encrypt ();
18275
 
int
18276
 
main ()
18277
 
{
18278
 
return des_cbc_encrypt ();
18279
 
  ;
18280
 
  return 0;
18281
 
}
18282
 
_ACEOF
18283
 
if ac_fn_c_try_link "$LINENO"; then :
18284
 
  ac_cv_lib_des425_des_cbc_encrypt=yes
18285
 
else
18286
 
  ac_cv_lib_des425_des_cbc_encrypt=no
18287
 
fi
18288
 
rm -f core conftest.err conftest.$ac_objext \
18289
 
    conftest$ac_exeext conftest.$ac_ext
18290
 
LIBS=$ac_check_lib_save_LIBS
18291
 
fi
18292
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18293
 
$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18294
 
if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18295
 
  K4LIBS="-ldes425"
18296
 
else
18297
 
  K4LIBS=""
18298
 
fi
18299
 
 
18300
 
 
18301
 
fi
18302
 
 
18303
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
18304
 
$as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
18305
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306
 
/* end confdefs.h.  */
18307
 
#include <krb.h>
18308
 
int
18309
 
main ()
18310
 
{
18311
 
const char *tmp = krb4_version;
18312
 
  ;
18313
 
  return 0;
18314
 
}
18315
 
_ACEOF
18316
 
if ac_fn_c_try_compile "$LINENO"; then :
18317
 
 
18318
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18319
 
$as_echo "yes" >&6; }
18320
 
            K4LIBS="${K4LIBS} -lcom_err"
18321
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18322
 
$as_echo_n "checking for main in -lroken... " >&6; }
18323
 
if ${ac_cv_lib_roken_main+:} false; then :
18324
 
  $as_echo_n "(cached) " >&6
18325
 
else
18326
 
  ac_check_lib_save_LIBS=$LIBS
18327
 
LIBS="-lroken  $LIBS"
18328
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329
 
/* end confdefs.h.  */
18330
 
 
18331
 
 
18332
 
int
18333
 
main ()
18334
 
{
18335
 
return main ();
18336
 
  ;
18337
 
  return 0;
18338
 
}
18339
 
_ACEOF
18340
 
if ac_fn_c_try_link "$LINENO"; then :
18341
 
  ac_cv_lib_roken_main=yes
18342
 
else
18343
 
  ac_cv_lib_roken_main=no
18344
 
fi
18345
 
rm -f core conftest.err conftest.$ac_objext \
18346
 
    conftest$ac_exeext conftest.$ac_ext
18347
 
LIBS=$ac_check_lib_save_LIBS
18348
 
fi
18349
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18350
 
$as_echo "$ac_cv_lib_roken_main" >&6; }
18351
 
if test "x$ac_cv_lib_roken_main" = xyes; then :
18352
 
  K4LIBS="${K4LIBS} -lroken"
18353
 
fi
18354
 
 
18355
 
 
18356
 
else
18357
 
 
18358
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359
 
$as_echo "no" >&6; }
18360
 
 
18361
 
 
18362
 
fi
18363
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364
 
                as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
18365
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
18366
 
$as_echo_n "checking for main in -lkrb... " >&6; }
18367
 
if eval \${$as_ac_Lib+:} false; then :
18368
 
  $as_echo_n "(cached) " >&6
18369
 
else
18370
 
  ac_check_lib_save_LIBS=$LIBS
18371
 
LIBS="-lkrb $K4LIBS $LIBS"
18372
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373
 
/* end confdefs.h.  */
18374
 
 
18375
 
 
18376
 
int
18377
 
main ()
18378
 
{
18379
 
return main ();
18380
 
  ;
18381
 
  return 0;
18382
 
}
18383
 
_ACEOF
18384
 
if ac_fn_c_try_link "$LINENO"; then :
18385
 
  eval "$as_ac_Lib=yes"
18386
 
else
18387
 
  eval "$as_ac_Lib=no"
18388
 
fi
18389
 
rm -f core conftest.err conftest.$ac_objext \
18390
 
    conftest$ac_exeext conftest.$ac_ext
18391
 
LIBS=$ac_check_lib_save_LIBS
18392
 
fi
18393
 
eval ac_res=\$$as_ac_Lib
18394
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18395
 
$as_echo "$ac_res" >&6; }
18396
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18397
 
  K4LIBS="-lkrb $K4LIBS"
18398
 
else
18399
 
 
18400
 
        as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
18401
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
18402
 
$as_echo_n "checking for main in -lkrb4... " >&6; }
18403
 
if eval \${$as_ac_Lib+:} false; then :
18404
 
  $as_echo_n "(cached) " >&6
18405
 
else
18406
 
  ac_check_lib_save_LIBS=$LIBS
18407
 
LIBS="-lkrb4 $K4LIBS $LIBS"
18408
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409
 
/* end confdefs.h.  */
18410
 
 
18411
 
 
18412
 
int
18413
 
main ()
18414
 
{
18415
 
return main ();
18416
 
  ;
18417
 
  return 0;
18418
 
}
18419
 
_ACEOF
18420
 
if ac_fn_c_try_link "$LINENO"; then :
18421
 
  eval "$as_ac_Lib=yes"
18422
 
else
18423
 
  eval "$as_ac_Lib=no"
18424
 
fi
18425
 
rm -f core conftest.err conftest.$ac_objext \
18426
 
    conftest$ac_exeext conftest.$ac_ext
18427
 
LIBS=$ac_check_lib_save_LIBS
18428
 
fi
18429
 
eval ac_res=\$$as_ac_Lib
18430
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18431
 
$as_echo "$ac_res" >&6; }
18432
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18433
 
  K4LIBS="-lkrb4 $K4LIBS"
18434
 
else
18435
 
  K4LIBS="-lkrb $K4LIBS"
18436
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&5
18437
 
$as_echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&2;}
18438
 
 
18439
 
fi
18440
 
 
18441
 
 
18442
 
fi
18443
 
 
18444
 
    LDFLAGS="$O_LDFLAGS"
18445
 
    SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
18446
 
    AUTH_OBJS="$AUTH_OBJS kerb4.lo"
18447
 
fi
18448
 
 
18449
18463
if test ${with_kerb5-'no'} != "no"; then
18450
18464
    # Extract the first word of "krb5-config", so it can be a program name with args.
18451
18465
set dummy krb5-config; ac_word=$2
18728
18742
 
18729
18743
    fi
18730
18744
    LIBS="$_LIBS"
 
18745
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
 
18746
$as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
 
18747
    # Check whether --enable-kerb5-instance was given.
 
18748
if test "${enable_kerb5_instance+set}" = set; then :
 
18749
  enableval=$enable_kerb5_instance;  case "$enableval" in
 
18750
            yes)        as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
 
18751
                        ;;
 
18752
            no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18753
$as_echo "no" >&6; }
 
18754
                        ;;
 
18755
            *)          cat >>confdefs.h <<EOF
 
18756
#define SUDO_KRB5_INSTANCE "$enableval"
 
18757
EOF
 
18758
 
 
18759
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
 
18760
$as_echo "$enableval" >&6; }
 
18761
                        ;;
 
18762
        esac
 
18763
else
 
18764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18765
$as_echo "no" >&6; }
 
18766
fi
 
18767
 
18731
18768
fi
18732
18769
 
18733
18770
if test ${with_AFS-'no'} = "yes"; then
20072
20109
        PROGS="${PROGS} libsudo_noexec.la"
20073
20110
        INSTALL_NOEXEC="install-noexec"
20074
20111
 
20075
 
        eval noexec_file="$with_noexec"
 
20112
        noexec_file="$with_noexec"
 
20113
        _noexec_file=
 
20114
        while test X"$noexec_file" != X"$_noexec_file"; do
 
20115
            _noexec_file="$noexec_file"
 
20116
            eval noexec_file="$_noexec_file"
 
20117
        done
20076
20118
        cat >>confdefs.h <<EOF
20077
20119
#define _PATH_SUDO_NOEXEC "$noexec_file"
20078
20120
EOF
20079
20121
 
20080
20122
    fi
20081
20123
    if test X"$with_selinux" != X"no"; then
20082
 
        eval sesh_file="$libexecdir/sesh"
 
20124
        sesh_file="$libexecdir/sesh"
 
20125
        _sesh_file=
 
20126
        while test X"$sesh_file" != X"$_sesh_file"; do
 
20127
            _sesh_file="$sesh_file"
 
20128
            eval sesh_file="$_sesh_file"
 
20129
        done
20083
20130
        cat >>confdefs.h <<EOF
20084
20131
#define _PATH_SUDO_SESH "$sesh_file"
20085
20132
EOF
20086
20133
 
20087
20134
    fi
20088
 
    eval PLUGINDIR="$with_plugindir"
 
20135
    PLUGINDIR="$with_plugindir"
 
20136
    _PLUGINDIR=
 
20137
    while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
 
20138
        _PLUGINDIR="$PLUGINDIR"
 
20139
        eval PLUGINDIR="$_PLUGINDIR"
 
20140
    done
20089
20141
    cat >>confdefs.h <<EOF
20090
20142
#define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20091
20143
EOF
20110
20162
test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20111
20163
test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20112
20164
 
20113
 
ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
 
20165
ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20114
20166
 
20115
20167
cat >confcache <<\_ACEOF
20116
20168
# This file is a shell script that caches the results of configure
20630
20682
# report actual input values of CONFIG_FILES etc. instead of their
20631
20683
# values after options handling.
20632
20684
ac_log="
20633
 
This file was extended by sudo $as_me 1.8.3p2, which was
 
20685
This file was extended by sudo $as_me 1.8.5p2, which was
20634
20686
generated by GNU Autoconf 2.68.  Invocation command line was
20635
20687
 
20636
20688
  CONFIG_FILES    = $CONFIG_FILES
20696
20748
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20697
20749
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20698
20750
ac_cs_version="\\
20699
 
sudo config.status 1.8.3p2
 
20751
sudo config.status 1.8.5p2
20700
20752
configured by $0, generated by GNU Autoconf 2.68,
20701
20753
  with options \\"\$ac_cs_config\\"
20702
20754
 
20830
20882
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20831
20883
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20832
20884
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
20885
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20833
20886
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20834
20887
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20835
20888
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20912
20965
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20913
20966
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20914
20967
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20915
 
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20916
20968
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20917
20969
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20918
20970
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20968
21020
# Quote evaled strings.
20969
21021
for var in SHELL \
20970
21022
ECHO \
 
21023
PATH_SEPARATOR \
20971
21024
SED \
20972
21025
GREP \
20973
21026
EGREP \
21018
21071
allow_undefined_flag \
21019
21072
no_undefined_flag \
21020
21073
hardcode_libdir_flag_spec \
21021
 
hardcode_libdir_flag_spec_ld \
21022
21074
hardcode_libdir_separator \
21023
21075
exclude_expsyms \
21024
21076
include_expsyms \
21113
21165
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21114
21166
    "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21115
21167
    "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
 
21168
    "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
21116
21169
    "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21117
21170
    "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21118
21171
 
21686
21739
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21687
21740
#
21688
21741
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21689
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21690
 
#                 Inc.
 
21742
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
21743
#                 Foundation, Inc.
21691
21744
#   Written by Gordon Matzigkeit, 1996
21692
21745
#
21693
21746
#   This file is part of GNU Libtool.
21741
21794
# An echo program that protects backslashes.
21742
21795
ECHO=$lt_ECHO
21743
21796
 
 
21797
# The PATH separator for the build system.
 
21798
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
21799
 
21744
21800
# The host system.
21745
21801
host_alias=$host_alias
21746
21802
host=$host
22042
22098
# This must work even if \$libdir does not exist
22043
22099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22044
22100
 
22045
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
22046
 
# during linking.  This must work even if \$libdir does not exist.
22047
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22048
 
 
22049
22101
# Whether we need a single "-rpath" flag with a separated argument.
22050
22102
hardcode_libdir_separator=$lt_hardcode_libdir_separator
22051
22103
 
22337
22389
 
22338
22390
if test "$with_pam" = "yes"; then
22339
22391
    case $host in
 
22392
        *-*-hpux*)
 
22393
            if test -f /usr/lib/security/libpam_hpsec.so.1; then
 
22394
                { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
 
22395
$as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
 
22396
                { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
 
22397
$as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
 
22398
            fi
 
22399
            ;;
22340
22400
        *-*-linux*)
22341
22401
            { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22342
22402
$as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
22436
22496
 
22437
22497
 
22438
22498
 
 
22499
 
 
22500