X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=configure.in;h=d8a27e754cd5cb56220fddbe4640a12edfc2b132;hp=84d88cb03e8b6adc579cbde36c3978d16ba4e375;hb=e8f4081448f258adfbfa962b75d8392a7e152849;hpb=5837606887a6d81e8b1f7588525cb1c8783fb62b diff --git a/configure.in b/configure.in index 84d88cb..d8a27e7 100644 --- a/configure.in +++ b/configure.in @@ -50,6 +50,18 @@ else AC_MSG_CHECKING(for shared library extension) SO_EXT=`$PERL -e 'use Config; if (defined $Config{so} and $Config{so} ne 'a') {print "$Config{so}\n"} else {print "so\n"};'` AC_MSG_RESULT($SO_EXT) + AC_MSG_CHECKING(for the C compiler perl wants to use to build its modules) + PROBLEMCC=`$PERL -e 'use Config; map {if (-x "$_/$Config{cc}"){exit 0}} split /:/, $ENV{PATH};print $Config{cc}'` + if test x$PROBLEMCC != x; then + AC_MSG_RESULT(no) + echo Could not find the Compiler: '"'$PROBLEMCC'"' + echo which has been used to build perl. You may have to compile + echo your own copy of perl to make this work. Binary perls often + echo exhibit this problem + exit 1 + else + AC_MSG_RESULT(found) + fi fi AC_SUBST(COMP_PERL) AC_SUBST(SO_EXT) @@ -136,12 +148,14 @@ fi dnl add pic flag in any case this makes sure all our code is relocatable CFLAGS="$CFLAGS "`grep pic_flag= libtool | sed -e 's/.*pic_flag=//' -e 's/"//g'` +ZLIB_CFLAGS=$CFLAGS dnl it seems that hpux chockes on -fPIC for some reason case $target_os in *hpux*) - CLFAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` + ZLIB_CFLAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` ;; esac +AC_SUBST(ZLIB_CFLAGS) dnl Checks for library functions. AC_FUNC_STRFTIME