* configure.ac: [SV 40790] Fix load autoconf variables.
authorAlan Hourihane <alanh@fairlite.co.uk>
Sat, 18 Jan 2014 21:41:47 +0000 (16:41 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 20 Jan 2014 05:17:44 +0000 (00:17 -0500)
Copyright-paperwork-exempt: yes

configure.ac

index 8e11328d97641f1cde3e3ff27461e2cac48e0b3a..0922e77790ec44f5669e3b5a8a9665adc704c61c 100644 (file)
@@ -318,20 +318,20 @@ AC_ARG_ENABLE([load],
   [make_cv_load="$enableval" user_load="$enableval"],
   [make_cv_load="yes"])
 
-AS_CASE([/$ac_cv_func_dlopen/$ac_cv_func_dlsym/$ac_cv_func_dlerror/],
+AS_CASE([/$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/],
   [*/no/*], [make_cv_load=no])
 
+# We might need -ldl
+AS_IF([test "$make_cv_load" = yes], [
+  AC_SEARCH_LIBS([dlopen], [dl], [], [make_cv_load=])
+  ])
+
 AS_CASE([/$make_cv_load/$user_load/],
   [*/no/*], [make_cv_load=no],
   [AC_DEFINE(MAKE_LOAD, 1,
              [Define to 1 to enable 'load' support in GNU make.])
   ])
 
-# We might need -ldl
-AS_IF([test "$make_cv_load" = yes], [
-  AC_SEARCH_LIBS([dlopen], [dl], [], [make_cv_load=])
-  ])
-
 # If we want load support, we might need to link with export-dynamic.
 # See if we can figure it out.  Unfortunately this is very difficult.
 # For example passing -rdynamic to the SunPRO linker gives a warning