From: Todd C. Miller Date: Mon, 11 Oct 2010 16:11:23 +0000 (-0400) Subject: Go back to checking whether the compiler is ANSI C when detecting X-Git-Tag: SUDO_1_7_5~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a2abdcd5afb2c5511bb45e34f24b79439ebf2e0;p=sudo Go back to checking whether the compiler is ANSI C when detecting the HP-UX bundled C compiler. --HG-- branch : 1.7 --- 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