summaryrefslogtreecommitdiff
path: root/source3/configure
diff options
context:
space:
mode:
Diffstat (limited to 'source3/configure')
-rwxr-xr-xsource3/configure86
1 files changed, 85 insertions, 1 deletions
diff --git a/source3/configure b/source3/configure
index a4813a627d..d687d96220 100755
--- a/source3/configure
+++ b/source3/configure
@@ -52018,7 +52018,9 @@ _ACEOF
BLDSHARED="true"
LDSHFLAGS="-shared"
SONAMEFLAG="-Wl,-soname,"
- PICFLAG="-fPIC"
+ if test "${GCC}" = "yes"; then
+ PICFLAG="-fPIC"
+ fi
cat >>confdefs.h <<\_ACEOF
#define STAT_ST_BLOCKSIZE 512
_ACEOF
@@ -55118,6 +55120,88 @@ _ACEOF
fi
+{ $as_echo "$as_me:$LINENO: checking for TIME_T_MAX" >&5
+$as_echo_n "checking for TIME_T_MAX... " >&6; }
+if test "${samba_cv_TIME_T_MAX+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+if test "$cross_compiling" = yes; then
+ samba_cv_TIME_T_MAX=cross
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <time.h>
+main() {
+ struct tm *tm;
+ if (sizeof(time_t) == 8) {
+ time_t max_time = 0x7fffffffffffffffll;
+ tm = gmtime(&max_time);
+ /* This should fail with 32-bit tm_year. */
+ if (tm == NULL) {
+ /* Max time_t that works with 32-bit int tm_year in struct tm. */
+ max_time = 67768036191676799ll;
+ tm = gmtime(&max_time);
+ if (tm) {
+ exit(0);
+ }
+ }
+ }
+ exit(1);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ samba_cv_TIME_T_MAX=yes
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+samba_cv_TIME_T_MAX=no
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $samba_cv_TIME_T_MAX" >&5
+$as_echo "$samba_cv_TIME_T_MAX" >&6; }
+if test x"$samba_cv_TIME_T_MAX" = x"yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TIME_T_MAX 67768036191676799ll
+_ACEOF
+
+fi
+
+
{ $as_echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
$as_echo_n "checking for 64 bit off_t... " >&6; }
if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then