From 1a2abdcd5afb2c5511bb45e34f24b79439ebf2e0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Oct 2010 12:11:23 -0400 Subject: [PATCH] Go back to checking whether the compiler is ANSI C when detecting the HP-UX bundled C compiler. --HG-- branch : 1.7 --- configure | 4 +++- configure.in | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 834c1bdfb..e217b14b6 100755 --- 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 diff --git a/configure.in b/configure.in index 7c022c75f..cefa4aa5c 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.40.0