mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
b1f747c1f1
If the user hasn't specified CFLAGS on the command line to ./configure, then autoconf will set them to -g -O2 if the compiler supports those options. For compatibility with what OpenAFS has always done, and to let us manually set optimisation and debugging flags later, disable this behaviour. Change-Id: Ic78d5f824433d94d76f16c107af3488132d57155 Reviewed-on: http://gerrit.openafs.org/2895 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
32 lines
755 B
Plaintext
32 lines
755 B
Plaintext
AC_PRERQ([2.60])
|
|
AC_INIT([OpenAFS], m4_esyscmd([build-tools/git-version .]))
|
|
AC_CONFIG_AUX_DIR([build-tools])
|
|
AC_CONFIG_SRCDIR(src/libafs/Makefile.common.in)
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_HEADER(src/config/afsconfig.h)
|
|
MACOS_VERSION=1.5.76
|
|
LINUX_PKGVER=1.5.76
|
|
#LINUX_PKGREL=0.pre3
|
|
LINUX_PKGREL=1.1
|
|
|
|
AC_SUBST(MACOS_VERSION)
|
|
AC_SUBST(LINUX_PKGVER)
|
|
AC_SUBST(LINUX_PKGREL)
|
|
|
|
dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
|
|
AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
|
|
AC_PROG_CC
|
|
|
|
OPENAFS_CONFIGURE_COMMON
|
|
|
|
AC_OUTPUT( \
|
|
Makefile \
|
|
src/config/Makefile \
|
|
src/config/Makefile.config \
|
|
src/config/Makefile.version-CML \
|
|
src/config/Makefile.version-NOCML \
|
|
src/libafs/Makefile.common \
|
|
src/libafs/MakefileProto \
|
|
)
|