pike.git / src / aclocal.m4

version» Context lines:

pike.git/src/aclocal.m4:1962:    fi    fi    if test "x$add_ldflags" = "x"; then    AC_MSG_RESULT([nothing - already added])    ifelse([$4], , :, [$4])    else    OLD_LDFLAGS="${LDFLAGS}"    LDFLAGS="${LDFLAGS} $add_ldflags -lm"    AC_TRY_RUN([   #include <stdio.h> + #include <stdlib.h>   #include <math.h>   int main(int argc, char **argv)   {    double (*foo)(double) = ceil;    exit(0);   }    ],[ LDFLAGS="$OLD_LDFLAGS $add_ldflags"    AC_MSG_RESULT($add_ldflags)    ],[ LDFLAGS="$OLD_LDFLAGS"    AC_MSG_RESULT(nothing - $add_ldflags causes failures)    add_ldflags=""    ],[AC_TRY_LINK([   #include <stdio.h> -  + #include <stdlib.h>   #include <math.h>    ],[    double (*foo)(double) = ceil;    exit(0);    ],[ LDFLAGS="$OLD_LDFLAGS $add_ldflags"    AC_MSG_RESULT($add_ldflags)    ],[ LDFLAGS="$OLD_LDFLAGS"    AC_MSG_RESULT(nothing - $add_ldflags causes failures)    add_ldflags=""    ])
pike.git/src/aclocal.m4:2075:    PKG_SAVE_CFLAGS="$CFLAGS"    PKG_SAVE_LDFLAGS="$LDFLAGS"    PKG_SAVE_LIBS="$LIBS"    PIKE_LOW_PKG_CONFIG([$1], [CPPFLAGS], [--cflags-only-I])    PIKE_LOW_PKG_CONFIG([$1], [CFLAGS], [--cflags-only-other])    PIKE_LOW_PKG_CONFIG([$1], [LDFLAGS], [--libs-only-L])    PIKE_LOW_PKG_CONFIG([$1], [LIBS], [--libs-only-l --libs-only-other])    AC_MSG_CHECKING([if $1 breaks compilation...])    AC_TRY_COMPILE([   #include <stdio.h> + #include <stdlib.h>   ],[    printf("Hello, world\n");    exit(0);    ],[    AC_MSG_RESULT([no, everything seems ok])    pike_cv_pkg_config_$1=yes    ],[    AC_MSG_RESULT([yes, do not use])    CPPFLAGS="$PKG_SAVE_CPPFLAGS"    CFLAGS="$PKG_SAVE_CFLAGS"