AC_CONFIG_HEADERS([build/config.h])
AC_CONFIG_AUX_DIR([build/build-aux])
+# AC_PROG_CC sets default CFLAGS which conflict with our own configuration
+CFLAGS_SAVE=$CFLAGS
+
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AM_MAINTAINER_MODE([enable])
AC_PROG_RANLIB
AC_PROG_SED
-AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
+CFLAGS=$CFLAGS_SAVE
+
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
# ------------------------------------------------------------------------------
-fdata-sections \
-fstack-protector \
-fstack-protector-strong \
- -fPIE \
+ -fPIC \
--param=ssp-buffer-size=4 \
-Wall \
-Wextra \