]> git.draconx.ca Git - gob-dx.git/blobdiff - configure.ac
Convert command-line options processing to getopt_long.
[gob-dx.git] / configure.ac
index 0fd20f7a406292d5d34cf1a2903a54705ea3c91a..89d0d855a3b16183ddb824618c9fb5f38f17a9e1 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2019-2020 Nick Bowler
+dnl Copyright © 2019-2021 Nick Bowler
 dnl
 dnl Based on original work Copyright © 1999-2013 Jiri (George) Lebl.
 dnl
@@ -8,22 +8,30 @@ dnl There is NO WARRANTY, to the extent permitted by law.
 
 AC_INIT([GObject Builder], [2.0.20a], [nbowler@draconx.ca], [gob-dx])
 AC_CONFIG_SRCDIR([src/treefuncs.def])
+AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_HEADERS([config.h])
 
-AM_INIT_AUTOMAKE([-Wall subdir-objects dist-xz])
+AM_INIT_AUTOMAKE([-Wall -Wno-portability subdir-objects dist-xz])
 AM_SILENT_RULES([yes])
 DX_AUTOMAKE_COMPAT
 
 AC_PROG_CC
+gl_EARLY
+
 AC_PROG_CXX
 AC_PROG_YACC
 
+LT_INIT
+gl_INIT
+
+AC_CACHE_SAVE
+
+m4_include([lib/gnulib.mk])
+
 AC_ARG_VAR([PERL], [command to execute perl programs])
 AC_CHECK_PROGS([PERL], [perl], [false])
 AM_CONDITIONAL([HAVE_PERL], [$PERL -e 'my $x = 42; exit $x'; test $? = 42])
 
-LT_INIT
-
 DX_PROG_FLEX([], [have_flex=yes], [have_flex=no])
 AM_CONDITIONAL([HAVE_FLEX], [test x"$have_flex" = x"yes"])