Move AC_SUBST([EXTRA_LIBS]) later in configure.ac
authorIan Lynagh <ian@well-typed.com>
Tue, 21 May 2013 02:19:05 +0000 (03:19 +0100)
committerIan Lynagh <ian@well-typed.com>
Tue, 21 May 2013 02:19:05 +0000 (03:19 +0100)
I don't think that it matters, but putting it after all the places
that alter EXTRA_LIBS is a little nicer.

configure.ac

index e1eb68c..e5c2c07 100644 (file)
@@ -229,7 +229,6 @@ fi
 
 # Avoid adding dl if absent or unneeded
 AC_CHECK_LIB(dl, dlopen, [EXTRA_LIBS="$EXTRA_LIBS dl"])
-AC_SUBST([EXTRA_LIBS])
 
 # -{l,}pthread goo
 AC_CANONICAL_TARGET
@@ -238,6 +237,7 @@ AC_SEARCH_LIBS(sem_close, pthread,
     [EXTRA_LIBS="$EXTRA_LIBS $ac_lib"],
     [AC_MSG_NOTICE([Not found])])
 
+AC_SUBST([EXTRA_LIBS])
 AC_CONFIG_FILES([unix.buildinfo])
 
 AC_OUTPUT