Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/configure.in

    r149 r204  
    258258             ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
    259259           fi
    260            if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_l= d_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
     260           if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
    261261             ac_cv_gnu_ld_version_script=yes
    262262           fi
     
    859859fi
    860860
     861AC_CACHE_CHECK([for struct sigevent type],samba_cv_struct_sigevent, [
     862    AC_TRY_COMPILE([
     863#include <sys/types.h>
     864#if STDC_HEADERS
     865#include <stdlib.h>
     866#include <stddef.h>
     867#endif
     868#include <signal.h>],[struct sigevent s;],
     869        samba_cv_struct_sigevent=yes,samba_cv_struct_sigevent=no)])
     870if test x"$samba_cv_struct_sigevent" = x"yes"; then
     871   AC_DEFINE(HAVE_STRUCT_SIGEVENT,1,[Whether we have the struct sigevent])
     872   AC_CHECK_MEMBERS([struct sigevent.sigev_value.sival_ptr,struct sigevent.sigev_value.sigval_ptr], , ,
     873        [#include <signal.h>])
     874fi
     875
    861876AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [
    862877    AC_TRY_COMPILE([
     
    13331348    AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1,
    13341349            [whether struct stat has sub-second timestamps without struct timespec])
     1350fi
     1351
     1352AC_CACHE_CHECK([whether struct stat has st_birthtimespec], samba_cv_stat_st_birthtimespec,
     1353    [
     1354        AC_TRY_COMPILE(
     1355            [
     1356#if TIME_WITH_SYS_TIME
     1357# include <sys/time.h>
     1358# include <time.h>
     1359#else
     1360# if HAVE_SYS_TIME_H
     1361#  include <sys/time.h>
     1362# else
     1363#  include <time.h>
     1364# endif
     1365#endif
     1366#ifdef HAVE_SYS_STAT_H
     1367#include <sys/stat.h>
     1368#endif
     1369            ],
     1370            [
     1371                struct timespec t;
     1372                struct stat s = {0};
     1373                t = s.st_birthtimespec;
     1374            ],
     1375            samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_birthtimespec=no)
     1376    ])
     1377
     1378if test x"$samba_cv_stat_st_birthtimespec" = x"yes" ; then
     1379    AC_DEFINE(HAVE_STAT_ST_BIRTHTIMESPEC, 1, [whether struct stat contains st_birthtimespec])
     1380fi
     1381
     1382AC_CACHE_CHECK([whether struct stat has st_birthtimensec], samba_cv_stat_st_birthtimensec,
     1383    [
     1384        AC_TRY_COMPILE(
     1385            [
     1386#if TIME_WITH_SYS_TIME
     1387# include <sys/time.h>
     1388# include <time.h>
     1389#else
     1390# if HAVE_SYS_TIME_H
     1391#  include <sys/time.h>
     1392# else
     1393#  include <time.h>
     1394# endif
     1395#endif
     1396#ifdef HAVE_SYS_STAT_H
     1397#include <sys/stat.h>
     1398#endif
     1399            ],
     1400            [
     1401                struct timespec t;
     1402                struct stat s = {0};
     1403                t.tv_nsec = s.st_birthtimensec;
     1404            ],
     1405            samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_birthtimensec=no)
     1406    ])
     1407
     1408if test x"$samba_cv_stat_st_birthtimensec" = x"yes" ; then
     1409    AC_DEFINE(HAVE_STAT_ST_BIRTHTIMENSEC, 1, [whether struct stat contains st_birthtimensec])
     1410fi
     1411
     1412AC_CACHE_CHECK([whether struct stat has st_birthtime], samba_cv_stat_st_birthtime,
     1413    [
     1414        AC_TRY_COMPILE(
     1415            [
     1416#if TIME_WITH_SYS_TIME
     1417# include <sys/time.h>
     1418# include <time.h>
     1419#else
     1420# if HAVE_SYS_TIME_H
     1421#  include <sys/time.h>
     1422# else
     1423#  include <time.h>
     1424# endif
     1425#endif
     1426#ifdef HAVE_SYS_STAT_H
     1427#include <sys/stat.h>
     1428#endif
     1429            ],
     1430            [
     1431                struct time_t t;
     1432                struct stat s = {0};
     1433                t = s.st_birthtime;
     1434            ],
     1435            samba_cv_stat_st_birthtime=yes, samba_cv_stat_birthtime=no)
     1436    ])
     1437
     1438if test x"$samba_cv_stat_st_birthtime" = x"yes" ; then
     1439    AC_DEFINE(HAVE_STAT_ST_BIRTHTIME, 1, [whether struct stat contains st_birthtime])
    13351440fi
    13361441
     
    26042709# look for a method of setting the effective uid
    26052710seteuid=no;
     2711
     2712if test $seteuid = no; then
     2713AC_CACHE_CHECK([for setreuid],samba_cv_USE_SETREUID,[
     2714AC_TRY_RUN([
     2715#define AUTOCONF_TEST 1
     2716#define USE_SETREUID 1
     2717#include "confdefs.h"
     2718#include "${srcdir-.}/lib/util_sec.c"],
     2719           samba_cv_USE_SETREUID=yes,samba_cv_USE_SETREUID=no,samba_cv_USE_SETREUID=cross)])
     2720if test x"$samba_cv_USE_SETREUID" = x"yes"; then
     2721    seteuid=yes;AC_DEFINE(USE_SETREUID,1,[Whether setreuid() is available])
     2722fi
     2723fi
     2724
     2725# we check for setresuid second as it conflicts with AIO on Linux.
     2726# see http://samba.org/~tridge/junkcode/aio_uid.c
    26062727if test $seteuid = no; then
    26072728AC_CACHE_CHECK([for setresuid],samba_cv_USE_SETRESUID,[
     
    26142735if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
    26152736    seteuid=yes;AC_DEFINE(USE_SETRESUID,1,[Whether setresuid() is available])
    2616 fi
    2617 fi
    2618 
    2619 
    2620 if test $seteuid = no; then
    2621 AC_CACHE_CHECK([for setreuid],samba_cv_USE_SETREUID,[
    2622 AC_TRY_RUN([
    2623 #define AUTOCONF_TEST 1
    2624 #define USE_SETREUID 1
    2625 #include "confdefs.h"
    2626 #include "${srcdir-.}/lib/util_sec.c"],
    2627            samba_cv_USE_SETREUID=yes,samba_cv_USE_SETREUID=no,samba_cv_USE_SETREUID=cross)])
    2628 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
    2629     seteuid=yes;AC_DEFINE(USE_SETREUID,1,[Whether setreuid() is available])
    26302737fi
    26312738fi
     
    40224129AC_MSG_CHECKING(whether to build cifs.upcall)
    40234130AC_ARG_WITH(cifsupcall,
    4024 [AS_HELP_STRING([--with-cifsupcall], [Include cifs.upcall (Linux only) support (default=no)])],
     4131[AS_HELP_STRING([--with-cifsupcall], [Include cifs.upcall (Linux only) support (default=yes)])],
    40254132[ case "$withval" in
    40264133  no)
     
    40484155    ;;
    40494156  esac ],
    4050 [
    4051   AC_MSG_RESULT(no)
    4052   ]
     4157[ case "$host_os" in
     4158  *linux*)
     4159        if test x"$use_ads" != x"yes"; then
     4160                AC_MSG_WARN(ADS support should be enabled for building cifs.upcall)
     4161        elif test x"$HAVE_KEYUTILS_H" != "x1"; then
     4162                AC_MSG_WARN(keyutils package is required for cifs.upcall)
     4163        else
     4164                AC_MSG_RESULT(yes)
     4165                AC_DEFINE(WITH_CIFSUPCALL,1,[whether to build cifs.upcall])
     4166                CIFSUPCALL_PROGS="bin/cifs.upcall"
     4167                INSTALL_CIFSUPCALL="installcifsupcall"
     4168                UNINSTALL_CIFSUPCALL="uninstallcifsupcall"
     4169        fi
     4170        ;;
     4171  *)
     4172        AC_MSG_RESULT(no)
     4173        ;;
     4174  esac ]
    40534175)
    40544176
Note: See TracChangeset for help on using the changeset viewer.