mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
configure.ac: don't rely on bashisms
93fb037d84
introduced unportable shell
syntax, which led to erros like
./configure: 3179: ./configure: CFLAGS+= -D__STDC_WANT_LIB_EXT1__=1: not found
in case a posix shell is used.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
69138c848d
commit
9a440ae885
@ -19,13 +19,13 @@ AM_INIT_AUTOMAKE([foreign 1.9 tar-pax])
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
||||
|
||||
dnl enable C11 extensions for features like memset_s()
|
||||
CFLAGS+=" -D__STDC_WANT_LIB_EXT1__=1"
|
||||
CFLAGS="$CFLAGS -D__STDC_WANT_LIB_EXT1__=1"
|
||||
dnl enable features like htole16()
|
||||
CFLAGS+=" -D_DEFAULT_SOURCE=1"
|
||||
CFLAGS="$CFLAGS -D_DEFAULT_SOURCE=1"
|
||||
dnl Enable features like strndup()
|
||||
CFLAGS+=" -D_POSIX_C_SOURCE=200809L"
|
||||
CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200809L"
|
||||
dnl fail hard when includes statements are missing
|
||||
CFLAGS+=" -Werror=implicit-function-declaration"
|
||||
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
||||
|
||||
AC_PROG_CC_C99
|
||||
AC_DISABLE_STATIC
|
||||
|
Loading…
Reference in New Issue
Block a user