@@ -25,6 +25,8 @@ dnl ===========================================================================
25
25
AC_CONFIG_SRCDIR ( src )
26
26
AC_CONFIG_HEADERS ( config.h )
27
27
AC_CONFIG_MACRO_DIR ( [ m4] )
28
+ AC_SUBST ( [ ACLOCAL_AMFLAGS] , [ "-I $ac_macro_dir \${ACLOCAL_FLAGS}"] )
29
+ AX_IS_RELEASE ( [ git-directory] )
28
30
29
31
AM_INIT_AUTOMAKE ( [ foreign 1.11 dist-xz no-dist-gzip tar-ustar] )
30
32
m4_ifdef ( [ AM_SILENT_RULES ] , [ AM_SILENT_RULES ([ yes] )] )
@@ -170,50 +172,7 @@ AM_CONDITIONAL(ENABLE_EMPTY_VIEW, test "x$ENABLE_EMPTY_VIEW" = "x1")
170
172
171
173
dnl ==========================================================================
172
174
173
- dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
174
-
175
- WARNING_CFLAGS=""
176
-
177
- AC_ARG_ENABLE ( more-warnings ,
178
- AC_HELP_STRING ( [ --enable-more-warnings] , [ Maximum compiler warnings] ) ,
179
- set_more_warnings="$enableval" ,[
180
- if test -f $srcdir/.git; then
181
- set_more_warnings=yes
182
- else
183
- set_more_warnings=no
184
- fi
185
- ] )
186
- AC_MSG_CHECKING ( for more warnings , including - Werror )
187
- if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
188
- AC_MSG_RESULT ( yes )
189
- WARNING_CFLAGS="\
190
- -Wall \
191
- -Wmissing-declarations -Wmissing-prototypes \
192
- -Wnested-externs -Wpointer-arith \
193
- -Wcast-align \
194
- -Werror"
195
-
196
- for option in -Wstrict-aliasing=0 -Wno-pointer-sign; do
197
- SAVE_CFLAGS="$CFLAGS"
198
- CFLAGS="$CFLAGS $option"
199
- AC_MSG_CHECKING ( [ whether gcc understands $option] )
200
- AC_TRY_COMPILE ( [ ] , [ ] ,
201
- has_option=yes ,
202
- has_option=no ,)
203
- if test $has_option = yes; then
204
- WARNING_CFLAGS="$WARNING_CFLAGS $option"
205
- fi
206
- AC_MSG_RESULT ( $has_option )
207
- CFLAGS="$SAVE_CFLAGS"
208
- unset has_option
209
- unset SAVE_CFLAGS
210
- done
211
- unset option
212
- else
213
- AC_MSG_RESULT ( no )
214
- fi
215
-
216
- AC_SUBST ( WARNING_CFLAGS )
175
+ AX_COMPILER_FLAGS ( [ WARN_CFLAGS] ,[ WARN_LDFLAGS] )
217
176
218
177
dnl ===========================================================================
219
178
dnl Check for Tracker
0 commit comments