diff --git a/configure.ac b/configure.ac index 0b28dda44cd..ff523867e77 100644 --- a/configure.ac +++ b/configure.ac @@ -2839,6 +2839,11 @@ void *x = uuid_enc_be # pthread (first!) on Linux AC_SEARCH_LIBS(sem_init, pthread rt posix4) +if test $ac_sys_system = Darwin +then + LIBS="$LIBS -framework CoreFoundation" +fi + # check if we need libintl for locale functions AC_CHECK_LIB(intl, textdomain, [AC_DEFINE(WITH_LIBINTL, 1, @@ -5169,11 +5174,6 @@ if test "x$ac_cv_file__dev_ptc" = xyes; then [Define to 1 if you have the /dev/ptc device file.]) fi -if test $ac_sys_system = Darwin -then - LIBS="$LIBS -framework CoreFoundation" -fi - AC_CACHE_CHECK([for %zd printf() format support], ac_cv_have_size_t_format, [dnl AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include