Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag

AC_INIT([serf], [1.3.9],
  [dev@serf.apache.org], [serf], [https://serf.apache.org])

AC_CANONICAL_TARGET

AC_CHECK_TOOL([AR], [ar], [:])
AC_CHECK_TOOL([CC], [gcc], [:])
AC_CHECK_TOOL([STRIP], [strip], [:])
AC_PROG_CPP
AC_PROG_RANLIB

AC_PROG_LN_S
AC_CHECK_TOOL([INSTALL], [install], [:])

AC_CHECK_TOOL([APU_CONFIG], [apu-1-config], [:])

AC_CONFIG_HEADERS([config.h])
AC_PREFIX_DEFAULT(/usr/local)

SERF_CHECK_APU_CONFIG

dnl
dnl Find a particular SSL library
dnl
AC_CHECK_LIB([crypto], [EVP_EncryptInit], serf_has_lib_crypto="1",
             [AC_MSG_FAILURE([can't find openssl crypto lib])], [])
AC_CHECK_LIB([ssl], [SSL_CTX_new], serf_has_lib_ssl="1",
             [AC_MSG_FAILURE([can't find openssl ssl lib])], [])
if test "$serf_has_lib_ssl" = "1" ; then
  LIBS="$LIBS -lssl"
fi
if test "$serf_has_lib_crypto" = "1" ; then
  LIBS="$LIBS -lcrypto"
fi

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(LIBS)

AC_SUBST(APR_CFLAGS)
AC_SUBST(APR_LDFLAGS)
AC_SUBST(APR_LIBS)

AC_ARG_VAR([CC],[C compiler command])
AC_ARG_VAR([CFLAGS],[C compiler flags])
AC_ARG_VAR([LDFLAGS],[linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>])
AC_ARG_VAR([LIBS],[libraries to pass to the linker, e.g. -l<library>])
AC_ARG_VAR([CPPFLAGS],[(Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>])
AC_ARG_VAR([CPP],[C preprocessor])
AC_ARG_VAR([STRIP],[strip command])

AC_ARG_VAR([APU_CONFIG],[Path to apu-config script])

AC_CONFIG_FILES([
Makefile
serf-1.pc
])
AC_OUTPUT