Branch: Tag:


2016-02-09 17:03:38 by Henrik Grubbström (Grubba) <>

Build [Gmp]: Try using pkg-config to find gmp and mpfr.

Solaris 11 installs the header files for gmp and mpfr in sub-
directories of /usr/include/, but it also installs corresponding
pkg-config files. Use pkg-config to adjust the search paths so
that the following configure tests can find the header files.

560:    PIKE_FUNCS_NEED_DECLS(yes)   fi    - AC_CHECK_HEADERS(unistd.h sys/stat.h sys/types.h sys/errno.h) + # NB: We need to have gmp.h in the search path for the entirety of Pike, + # since gmp.h is included by bignum.h, which in turn is included + # by much of Pike. + PIKE_PKG_CONFIG(libgmp)    -  + AC_CHECK_HEADERS(gmp.h unistd.h sys/stat.h sys/types.h sys/errno.h) +    if test "$GCC" = "yes"; then :; else   #   # Special hack for HP-UX stupid cc