]> granicus.if.org Git - sudo/commitdiff
Go back to checking whether the compiler is ANSI C when detecting
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 16:11:23 +0000 (12:11 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 16:11:23 +0000 (12:11 -0400)
the HP-UX bundled C compiler.

--HG--
branch : 1.7

configure
configure.in

index 834c1bdfb64c67a215e8bc853bec3571ef9252b1..e217b14b6387155865b951bfe213121845991027 100755 (executable)
--- a/configure
+++ b/configure
@@ -12889,7 +12889,9 @@ done
 
                if test -z "$GCC"; then
                    # HP-UX bundled compiler can't generate shared objects
-                   test -z "$pic_flag" && with_noexec=no
+                   if test "x$ac_cv_prog_cc_c89" = "xno"; then
+                       with_noexec=no
+                   fi
 
                    # Use the +DAportable flag on hppa if it is supported
                    case "$host_cpu" in
index 7c022c75f7c57b07ce823550960d48f7fc8ce7cf..cefa4aa5c109126fd62d1d8f2c0688af91e67b97 100644 (file)
@@ -1480,7 +1480,9 @@ case "$host" in
 
                if test -z "$GCC"; then
                    # HP-UX bundled compiler can't generate shared objects
-                   test -z "$pic_flag" && with_noexec=no
+                   if test "x$ac_cv_prog_cc_c89" = "xno"; then
+                       with_noexec=no
+                   fi
 
                    # Use the +DAportable flag on hppa if it is supported
                    case "$host_cpu" in