Skip to content

Commit

Permalink
Further modernize configure.ac.
Browse files Browse the repository at this point in the history
* Remove `AM_PROG_CC_C_O`, it is implied my `AC_PROG_CC`.
* Move `AC_USE_SYSTEM_EXTENSIONS` up as it need to precede any check
  that uses the compiler.
  • Loading branch information
dag-erling committed Sep 10, 2024
1 parent eba0133 commit 0462d76
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AM_PROG_CC_C_O

dnl Checks for compiler characteristics.
AC_USE_SYSTEM_EXTENSIONS
AC_C_CONST
AC_C_INLINE

tre_version_1=`echo $PACKAGE_VERSION | cut -d . -f 1`
tre_version_2=`echo $PACKAGE_VERSION | cut -d . -f 2`
Expand Down Expand Up @@ -96,11 +100,6 @@ else
fi


dnl Checks for compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_USE_SYSTEM_EXTENSIONS

dnl Make sure locally configured headers are used (this adds the #define to config.h).
AC_DEFINE(USE_LOCAL_TRE_H, 1, [ Define to ensure locally configured headers are used ])

Expand Down

0 comments on commit 0462d76

Please sign in to comment.