diff -r -u collectd-4.10.1.orig/configure.in collectd-4.10.1/configure.in --- collectd-4.10.1.orig/configure.in 2010-07-09 12:01:59.000000000 +0200 +++ collectd-4.10.1/configure.in 2010-09-24 20:15:22.666434555 +0200 @@ -2607,11 +2607,13 @@ then SAVE_CFLAGS="$CFLAGS" SAVE_LDFLAGS="$LDFLAGS" + SAVE_LIBS="$LIBS" dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string) PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts` PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts` CFLAGS="$CFLAGS $PERL_CFLAGS" LDFLAGS="$LDFLAGS $PERL_LDFLAGS" + LIBS="$LIBS -lperl" AC_CACHE_CHECK([for libperl], [c_cv_have_libperl], @@ -2630,7 +2632,10 @@ Nullsv); ]]), [c_cv_have_libperl="yes"], - [c_cv_have_libperl="no"] + [ + c_cv_have_libperl="no" + LIBS="$SAVE_LIBS" + ] ) )