]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix cross-compile support in ./configure
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 29 Aug 2010 14:07:18 +0000 (08:07 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 29 Aug 2010 14:07:18 +0000 (08:07 -0600)
acinclude/krb5.m4
acinclude/os-deps.m4
configure.in

index 38e225c23b3c57957a7d4b95734bde8d89dbaf04..f572b3da99a2be2038c7f0fb546e6f09bae3f385 100644 (file)
@@ -95,7 +95,7 @@ main()
     return krb5_cc_resolve(context, "MEMORY:test_cache", &cc);
 }
       ]])
-    ], [ squid_cv_memory_cache=yes ], [ squid_cv_memory_cache=no ])
+    ], [ squid_cv_memory_cache=yes ], [ squid_cv_memory_cache=no ], [:])
   ])
 ])
 
@@ -133,7 +133,7 @@ main(void)
 
         return 0;
 }
-  ]])],  [ squid_cv_working_gssapi=yes ], [ squid_cv_working_gssapi=no ])])
+  ]])],  [ squid_cv_working_gssapi=yes ], [ squid_cv_working_gssapi=no ], [:])])
 ])
 
 
@@ -180,7 +180,7 @@ gss_OID gss_mech_spnego = &_gss_mech_spnego;
  return 1;
 }
   ]])],  
-  [ squid_cv_have_spnego=yes ], [ squid_cv_have_spnego=no ])])
+  [ squid_cv_have_spnego=yes ], [ squid_cv_have_spnego=no ],[:])])
 ])
 
 dnl checks that krb5 is functional. Sets squid_cv_working_krb5
@@ -207,5 +207,5 @@ main(void)
 
         return 0;
 }
-  ]])], [ squid_cv_working_krb5=yes ], [ squid_cv_working_krb5=no ])])
+  ]])], [ squid_cv_working_krb5=yes ], [ squid_cv_working_krb5=no ],[:])])
 ])
index 682300b04e7e7c2d8e8f066ff6c585aca9183785..2ae250bd9baf491439676d5f5e7ba907548e3833 100644 (file)
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
     strnstr(str, "fubar", size);
     return 0;
 }
-  ]])],[squid_cv_func_strnstr="yes"],[squid_cv_func_strnstr="no"],[])
+  ]])],[squid_cv_func_strnstr="yes"],[squid_cv_func_strnstr="no"],[:])
 )
 if test "$squid_cv_func_strnstr" = "yes" ; then
   AC_DEFINE(HAVE_STRNSTR,1)
@@ -79,7 +79,7 @@ AC_CACHE_CHECK(if va_copy is implemented, squid_cv_func_va_copy,
          return 0;
       }
       int main(int argc, char **argv) { return f (0, 42); }
-      ]])],[squid_cv_func_va_copy="yes"],[squid_cv_func_va_copy="no"],[])
+      ]])],[squid_cv_func_va_copy="yes"],[squid_cv_func_va_copy="no"],[:])
 )
 if test "$squid_cv_func_va_copy" = "yes" ; then
   AC_DEFINE(HAVE_VA_COPY, 1)
@@ -106,7 +106,7 @@ AC_CACHE_CHECK(if __va_copy is implemented, squid_cv_func___va_copy,
          return 0;
       }
       int main(int argc, char **argv) { return f (0, 42); }
-      ]])],[squid_cv_func___va_copy="yes"],[squid_cv_func___va_copy="no"],[])
+      ]])],[squid_cv_func___va_copy="yes"],[squid_cv_func___va_copy="no"],[:])
 )
 if test "$squid_cv_func___va_copy" = "yes" ; then
   AC_DEFINE(HAVE___VA_COPY, 1)
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
     }
     return 0;
 }
-      ]])],[squid_cv_epoll_works=yes],[squid_cv_epoll_works=no],[]))
+      ]])],[squid_cv_epoll_works=yes],[squid_cv_epoll_works=no],[:]))
 
 ]) dnl SQUID_CHECK_EPOLL
 
@@ -811,6 +811,6 @@ AC_DEFUN([SQUID_CHECK_SETRESUID_WORKS],[
   }
   ]])],[
     squid_cv_resuid_works="yes" ],[
-    squid_cv_resuid_works="no" ],[])
+    squid_cv_resuid_works="no" ],[:])
   )
 ])
index 81ef1b73e647ae1c87e3ba49e877763e81bc79e6..c06564908f9672afa3427f058148d51a50a0a495 100644 (file)
@@ -345,7 +345,7 @@ AC_MSG_NOTICE([cbdata debugging enabled: $enable_debug_cbdata])
 
 dnl Nasty hack to get autoconf 2.64 on Linux to run.
 dnl all other uses of RUN_IFELSE are wrapped inside CACHE_CHECK which breaks on 2.64
-AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[])
+AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[:])
 
 dnl This is a developer only option.. developers know how to set defines
 dnl
@@ -2558,7 +2558,8 @@ case "$host_os" in
                ]])], 
                [ AC_DEFINE(HAVE_LDAP, 1, [LDAP support]) 
                  AC_MSG_RESULT(yes) ],
-               [ AC_MSG_RESULT(no) ])
+               [ AC_MSG_RESULT(no) ],
+               [ AC_MSG_RESULT(cross-compiler cant tell) ])
                LIBS=$oLIBS
 
                dnl
@@ -2578,7 +2579,8 @@ case "$host_os" in
                ]])], 
                [ AC_DEFINE(HAVE_OPENLDAP, 1, [OpenLDAP support]) 
                  AC_MSG_RESULT(yes) ],
-               [ AC_MSG_RESULT(no) ])
+               [ AC_MSG_RESULT(no) ],
+               [ AC_MSG_RESULT(cross-compiler cant tell) ])
 
                AC_MSG_CHECKING([for Sun LDAP SDK])
                AC_RUN_IFELSE([AC_LANG_SOURCE([[
@@ -2594,7 +2596,8 @@ case "$host_os" in
                ]])], 
                [ AC_DEFINE(HAVE_SUN_LDAP_SDK, 1, [Sun LDAP SDK support])
                  AC_MSG_RESULT(yes) ],
-               [ AC_MSG_RESULT(no) ])
+               [ AC_MSG_RESULT(no) ],
+               [ AC_MSG_RESULT(cross-compiler cant tell) ])
 
                AC_MSG_CHECKING([for Mozilla LDAP SDK])
                AC_RUN_IFELSE([AC_LANG_SOURCE([[
@@ -2612,7 +2615,8 @@ case "$host_os" in
                ]])], 
                [ AC_DEFINE(HAVE_MOZILLA_LDAP_SDK, 1, [Mozilla LDAP SDK support])
                  AC_MSG_RESULT(yes) ],
-               [ AC_MSG_RESULT(no)])
+               [ AC_MSG_RESULT(no)],
+               [ AC_MSG_RESULT(cross-compiler cant tell) ])
 
                dnl
                dnl Check for LDAP_REBINDPROC_CALLBACK