X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.in;h=567d5426f50154f21069e156b0afb0695994f804;hb=6d43c759c9495118ef3c088fd2d06fd09c4fda8f;hp=1c591c2f5f579057f300d12e990a2da75cdcb107;hpb=af18c7e09d7d09f7e542021f26fc3094858ffbc4;p=collectd.git diff --git a/configure.in b/configure.in index 1c591c2f..567d5426 100644 --- a/configure.in +++ b/configure.in @@ -40,8 +40,8 @@ case $host_os in AC_DEFINE([KERNEL_SOLARIS], 1, [True if program is to be compiled for a Solaris kernel]) ac_system="Solaris" ;; - *apple-darwin*) - ac_system="Mac OS X" + *darwin*) + ac_system="Darwin" ;; *) ac_system="unknown" @@ -193,7 +193,7 @@ AC_CHECK_HEADERS(netinet/udp.h, [], [], # For cpu modules AC_CHECK_HEADERS(sys/dkstat.h) -if test ac_system = "Mac OS X" +if test "x$ac_system" = "xDarwin" then AC_CHECK_HEADERS(mach/mach_init.h mach/host_priv.h mach/mach_error.h mach/mach_host.h mach/mach_port.h mach/mach_types.h mach/message.h mach/processor_set.h mach/processor.h mach/processor_info.h mach/task.h mach/thread_act.h mach/vm_region.h mach/vm_map.h mach/vm_prot.h mach/vm_statistics.h mach/kern_return.h) AC_CHECK_HEADERS(CoreFoundation/CoreFoundation.h IOKit/IOKitLib.h IOKit/IOTypes.h IOKit/ps/IOPSKeys.h IOKit/IOBSD.h IOKit/storage/IOBlockStorageDriver.h) @@ -729,7 +729,7 @@ AC_DEFINE_UNQUOTED(HAVE_LIBPTHREAD, [$collect_pthread], [Wether or not to use pthread (POSIX threads) library]) AM_CONDITIONAL(BUILD_WITH_LIBPTHREAD, test "x$with_libpthread" = "xyes") -if test "$ac_system" = "Solaris" +if test "x$ac_system" = "xSolaris" then with_kstat="yes" with_devinfo="yes" @@ -1447,8 +1447,8 @@ then fi if test "x$with_libnetlink" = "xyes" then - BUILD_WITH_LIBNETLINK_CFLAGS="$with_curl_cflags" - BUILD_WITH_LIBNETLINK_LIBS="$with_curl_libs" + BUILD_WITH_LIBNETLINK_CFLAGS="$with_libnetlink_cflags" + BUILD_WITH_LIBNETLINK_LIBS="$with_libnetlink_libs" AC_SUBST(BUILD_WITH_LIBNETLINK_CFLAGS) AC_SUBST(BUILD_WITH_LIBNETLINK_LIBS) fi