You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
AC_INIT(ObjGTKGen, 0.2, objfw@codingpastor.de) |
|
AC_CONFIG_SRCDIR(src) |
|
AC_CONFIG_AUX_DIR(build-aux) |
|
AC_CONFIG_MACRO_DIR(build-aux/m4) |
|
|
|
for i in configure.ac build-aux/m4/*; do |
|
AS_IF([test $i -nt configure], [ |
|
AC_MSG_ERROR([$i is newer than configure! Run ./autogen.sh!]) |
|
]) |
|
done |
|
|
|
AC_CHECK_TOOL(OBJFW_CONFIG, objfw-config) |
|
AS_IF([test x"$OBJFW_CONFIG" = x""], [ |
|
AC_MSG_ERROR(You need ObjFW and objfw-config installed!) |
|
]) |
|
|
|
test x"$OBJC" = x"" && OBJC="$($OBJFW_CONFIG --objc)" |
|
|
|
AC_LANG([Objective C]) |
|
AC_PROG_OBJC |
|
AC_PROG_OBJCPP |
|
AC_CHECK_TOOL(AR, ar) |
|
AC_PROG_RANLIB |
|
AC_PROG_LN_S |
|
AC_PROG_INSTALL |
|
|
|
CPP="$OBJCPP" |
|
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)" |
|
OBJCFLAGS="$OBJCFLAGS -std=c11 -Wall -Wno-unknown-pragmas $($OBJFW_CONFIG --objcflags)" |
|
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags --rpath)" |
|
LIBS="$($OBJFW_CONFIG --libs --rpath)" |
|
|
|
AX_CHECK_COMPILER_FLAGS(-Wdocumentation, |
|
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"]) |
|
|
|
BUILDSYS_INIT |
|
|
|
dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP |
|
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself. |
|
AC_SUBST(CPP) |
|
AC_SUBST(CPPFLAGS) |
|
AC_SUBST(CPP, $OBJC) |
|
AC_SUBST(CPPFLAGS, $OBJCFLAGS) |
|
|
|
AC_CONFIG_FILES([buildsys.mk]) |
|
AC_OUTPUT
|
|
|