From: Bruno Haible Date: Fri, 19 Oct 2018 12:14:28 +0000 (+0200) Subject: examples: Modernize configure.ac. X-Git-Tag: v0.20~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fca582193480468d5baac46bc7354d8965ea6ec;p=thirdparty%2Fgettext.git examples: Modernize configure.ac. * gettext-tools/examples/hello-*/configure.ac: Use the recommended AC_INIT and AM_INIT_AUTOMAKE syntax. Require automake >= 1.11. --- diff --git a/gettext-tools/examples/hello-c++-gnome/configure.ac b/gettext-tools/examples/hello-c++-gnome/configure.ac index 3da422184..cf1c010ab 100644 --- a/gettext-tools/examples/hello-c++-gnome/configure.ac +++ b/gettext-tools/examples/hello-c++-gnome/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cc) -AM_INIT_AUTOMAKE(hello-c++-gnome, 0) +AC_INIT([hello-c++-gnome], [0], , [hello-c++-gnome]) +AC_CONFIG_SRCDIR([hello.cc]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CXX diff --git a/gettext-tools/examples/hello-c++-qt/configure.ac b/gettext-tools/examples/hello-c++-qt/configure.ac index 9858a528d..20e932477 100644 --- a/gettext-tools/examples/hello-c++-qt/configure.ac +++ b/gettext-tools/examples/hello-c++-qt/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cc) -AM_INIT_AUTOMAKE(hello-c++-qt, 0) +AC_INIT([hello-c++-qt], [0], , [hello-c++-qt]) +AC_CONFIG_SRCDIR([hello.cc]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CXX FUN_TYPE_BOOL diff --git a/gettext-tools/examples/hello-c++-wxwidgets/configure.ac b/gettext-tools/examples/hello-c++-wxwidgets/configure.ac index a25a6b94b..cb4545131 100644 --- a/gettext-tools/examples/hello-c++-wxwidgets/configure.ac +++ b/gettext-tools/examples/hello-c++-wxwidgets/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cc) -AM_INIT_AUTOMAKE(hello-c++-wxwidgets, 0) +AC_INIT([hello-c++-wxwidgets], [0], , [hello-c++-wxwidgets]) +AC_CONFIG_SRCDIR([hello.cc]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CXX AC_CHECK_HEADERS([unistd.h]) diff --git a/gettext-tools/examples/hello-c++/configure.ac b/gettext-tools/examples/hello-c++/configure.ac index 999937ebd..ae7e2aeee 100644 --- a/gettext-tools/examples/hello-c++/configure.ac +++ b/gettext-tools/examples/hello-c++/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cc) -AM_INIT_AUTOMAKE(hello-c++, 0) +AC_INIT([hello-c++], [0], , [hello-c++]) +AC_CONFIG_SRCDIR([hello.cc]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CXX AC_CHECK_HEADERS([unistd.h]) diff --git a/gettext-tools/examples/hello-c-gnome/configure.ac b/gettext-tools/examples/hello-c-gnome/configure.ac index d2e42c97b..a3d691f49 100644 --- a/gettext-tools/examples/hello-c-gnome/configure.ac +++ b/gettext-tools/examples/hello-c-gnome/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.c) -AM_INIT_AUTOMAKE(hello-c-gnome, 0) +AC_INIT([hello-c-gnome], [0]) +AC_CONFIG_SRCDIR([hello.c]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CC GNOME_INIT diff --git a/gettext-tools/examples/hello-c-gnome3/configure.ac b/gettext-tools/examples/hello-c-gnome3/configure.ac index 738f53b6c..113644bdc 100644 --- a/gettext-tools/examples/hello-c-gnome3/configure.ac +++ b/gettext-tools/examples/hello-c-gnome3/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.c) -AM_INIT_AUTOMAKE(hello-c-gnome3, 0) +AC_INIT([hello-c-gnome3], [0]) +AC_CONFIG_SRCDIR([hello.c]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CC AC_CHECK_HEADERS([unistd.h]) diff --git a/gettext-tools/examples/hello-c/configure.ac b/gettext-tools/examples/hello-c/configure.ac index ce35685ab..d1d9f6522 100644 --- a/gettext-tools/examples/hello-c/configure.ac +++ b/gettext-tools/examples/hello-c/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.c) -AM_INIT_AUTOMAKE(hello-c, 0) +AC_INIT([hello-c], [0]) +AC_CONFIG_SRCDIR([hello.c]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CC AC_CHECK_HEADERS([unistd.h]) diff --git a/gettext-tools/examples/hello-clisp/configure.ac b/gettext-tools/examples/hello-clisp/configure.ac index 5eed3262c..041dad400 100644 --- a/gettext-tools/examples/hello-clisp/configure.ac +++ b/gettext-tools/examples/hello-clisp/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.lisp.in) -AM_INIT_AUTOMAKE(hello-clisp, 0) +AC_INIT([hello-clisp], [0]) +AC_CONFIG_SRCDIR([hello.lisp.in]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Lisp system. AC_PATH_PROG(CLISP, clisp) diff --git a/gettext-tools/examples/hello-csharp-forms/configure.ac b/gettext-tools/examples/hello-csharp-forms/configure.ac index 8b4ddb366..95bf0baeb 100644 --- a/gettext-tools/examples/hello-csharp-forms/configure.ac +++ b/gettext-tools/examples/hello-csharp-forms/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cs) -AM_INIT_AUTOMAKE(hello-csharp-forms, 0) +AC_INIT([hello-csharp-forms], [0]) +AC_CONFIG_SRCDIR([hello.cs]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can build C# programs at all. gt_CSHARPCOMP diff --git a/gettext-tools/examples/hello-csharp/configure.ac b/gettext-tools/examples/hello-csharp/configure.ac index 9a61c18ae..4565d346c 100644 --- a/gettext-tools/examples/hello-csharp/configure.ac +++ b/gettext-tools/examples/hello-csharp/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.cs) -AM_INIT_AUTOMAKE(hello-csharp, 0) +AC_INIT([hello-csharp], [0]) +AC_CONFIG_SRCDIR([hello.cs]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can build C# programs at all. gt_CSHARPCOMP diff --git a/gettext-tools/examples/hello-gawk/configure.ac b/gettext-tools/examples/hello-gawk/configure.ac index f48794d48..aa1fd4de1 100644 --- a/gettext-tools/examples/hello-gawk/configure.ac +++ b/gettext-tools/examples/hello-gawk/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.awk) -AM_INIT_AUTOMAKE(hello-gawk, 0) +AC_INIT([hello-gawk], [0]) +AC_CONFIG_SRCDIR([hello.awk]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of GNU awk. AC_PATH_PROG(GAWK, gawk) diff --git a/gettext-tools/examples/hello-guile/configure.ac b/gettext-tools/examples/hello-guile/configure.ac index 0c2ceb218..2906dbd77 100644 --- a/gettext-tools/examples/hello-guile/configure.ac +++ b/gettext-tools/examples/hello-guile/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.scm) -AM_INIT_AUTOMAKE(hello-guile, 0) +AC_INIT([hello-guile], [0]) +AC_CONFIG_SRCDIR([hello.scm]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the guile interpreter. AC_PATH_PROG(GUILE, guile) diff --git a/gettext-tools/examples/hello-java-awt/configure.ac b/gettext-tools/examples/hello-java-awt/configure.ac index 9cbadfdd1..7d84a97c6 100644 --- a/gettext-tools/examples/hello-java-awt/configure.ac +++ b/gettext-tools/examples/hello-java-awt/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(Hello.java) -AM_INIT_AUTOMAKE(hello-java-awt, 0) +AC_INIT([hello-java-awt], [0]) +AC_CONFIG_SRCDIR([Hello.java]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can execute Java programs. gt_JAVAEXEC([TestAWT], [$srcdir/m4]) diff --git a/gettext-tools/examples/hello-java-qtjambi/configure.ac b/gettext-tools/examples/hello-java-qtjambi/configure.ac index 2a5c1f4f0..33c10d3f6 100644 --- a/gettext-tools/examples/hello-java-qtjambi/configure.ac +++ b/gettext-tools/examples/hello-java-qtjambi/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(Hello.java) -AM_INIT_AUTOMAKE(hello-java-qtjambi, 0) +AC_INIT([hello-java-qtjambi], [0]) +AC_CONFIG_SRCDIR([Hello.java]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can execute Java programs. gt_JAVAEXEC([Test15], [$srcdir/m4]) diff --git a/gettext-tools/examples/hello-java-swing/configure.ac b/gettext-tools/examples/hello-java-swing/configure.ac index fa9dd5348..227e7bcd2 100644 --- a/gettext-tools/examples/hello-java-swing/configure.ac +++ b/gettext-tools/examples/hello-java-swing/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(Hello.java) -AM_INIT_AUTOMAKE(hello-java-swing, 0) +AC_INIT([hello-java-swing], [0]) +AC_CONFIG_SRCDIR([Hello.java]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can execute Java programs. gt_JAVAEXEC([TestAWT], [$srcdir/m4]) diff --git a/gettext-tools/examples/hello-java/configure.ac b/gettext-tools/examples/hello-java/configure.ac index 29da82452..e4512fd94 100644 --- a/gettext-tools/examples/hello-java/configure.ac +++ b/gettext-tools/examples/hello-java/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(Hello.java) -AM_INIT_AUTOMAKE(hello-java, 0) +AC_INIT([hello-java], [0]) +AC_CONFIG_SRCDIR([Hello.java]) +AM_INIT_AUTOMAKE([1.11]) dnl Check whether we can execute Java programs. gt_JAVAEXEC diff --git a/gettext-tools/examples/hello-librep/configure.ac b/gettext-tools/examples/hello-librep/configure.ac index b29e62274..ae49fcf3d 100644 --- a/gettext-tools/examples/hello-librep/configure.ac +++ b/gettext-tools/examples/hello-librep/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.jl.in) -AM_INIT_AUTOMAKE(hello-librep, 0) +AC_INIT([hello-librep], [0]) +AC_CONFIG_SRCDIR([hello.jl.in]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the librep interpreter. AC_PATH_PROG(REP, rep) diff --git a/gettext-tools/examples/hello-objc-gnome/configure.ac b/gettext-tools/examples/hello-objc-gnome/configure.ac index 9c64efe29..89756c777 100644 --- a/gettext-tools/examples/hello-objc-gnome/configure.ac +++ b/gettext-tools/examples/hello-objc-gnome/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.m) -AM_INIT_AUTOMAKE(hello-objc-gnome, 0) +AC_INIT([hello-objc-gnome], [0]) +AC_CONFIG_SRCDIR([hello.m]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CC AC_SUBST([OBJC],["$CC"]) diff --git a/gettext-tools/examples/hello-objc/configure.ac b/gettext-tools/examples/hello-objc/configure.ac index 86ddc704d..0838c137f 100644 --- a/gettext-tools/examples/hello-objc/configure.ac +++ b/gettext-tools/examples/hello-objc/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.m) -AM_INIT_AUTOMAKE(hello-objc, 0) +AC_INIT([hello-objc], [0]) +AC_CONFIG_SRCDIR([hello.m]) +AM_INIT_AUTOMAKE([1.11]) AC_PROG_CC AC_SUBST(OBJC,["$CC"]) diff --git a/gettext-tools/examples/hello-pascal/configure.ac b/gettext-tools/examples/hello-pascal/configure.ac index 37fd52216..1585e5d4f 100644 --- a/gettext-tools/examples/hello-pascal/configure.ac +++ b/gettext-tools/examples/hello-pascal/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.pas) -AM_INIT_AUTOMAKE(hello-pascal, 0) +AC_INIT([hello-pascal], [0]) +AC_CONFIG_SRCDIR([hello.pas]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Free Pascal Compiler. AC_PATH_PROGS(PPC, ppc386 ppcx64) diff --git a/gettext-tools/examples/hello-perl/configure.ac b/gettext-tools/examples/hello-perl/configure.ac index df25eb92f..885ef164c 100644 --- a/gettext-tools/examples/hello-perl/configure.ac +++ b/gettext-tools/examples/hello-perl/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello-1.pl.in) -AM_INIT_AUTOMAKE(hello-perl, 0) +AC_INIT([hello-perl], [0]) +AC_CONFIG_SRCDIR([hello-1.pl.in]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Perl interpreter. AC_PATH_PROG(PERL, perl) diff --git a/gettext-tools/examples/hello-php/configure.ac b/gettext-tools/examples/hello-php/configure.ac index d31eefde5..e686d457e 100644 --- a/gettext-tools/examples/hello-php/configure.ac +++ b/gettext-tools/examples/hello-php/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.php) -AM_INIT_AUTOMAKE(hello-php, 0) +AC_INIT([hello-php], [0]) +AC_CONFIG_SRCDIR([hello.php]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the PHP system. AC_PATH_PROG(PHP, php) diff --git a/gettext-tools/examples/hello-python/configure.ac b/gettext-tools/examples/hello-python/configure.ac index c4831280d..80acee95d 100644 --- a/gettext-tools/examples/hello-python/configure.ac +++ b/gettext-tools/examples/hello-python/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.py.in) -AM_INIT_AUTOMAKE(hello-python, 0) +AC_INIT([hello-python], [0]) +AC_CONFIG_SRCDIR([hello.py.in]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Python interpreter. AM_PATH_PYTHON diff --git a/gettext-tools/examples/hello-sh/configure.ac b/gettext-tools/examples/hello-sh/configure.ac index 0251b4181..ed3e57400 100644 --- a/gettext-tools/examples/hello-sh/configure.ac +++ b/gettext-tools/examples/hello-sh/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.sh) -AM_INIT_AUTOMAKE(hello-sh, 0) +AC_INIT([hello-sh], [0]) +AC_CONFIG_SRCDIR([hello.sh]) +AM_INIT_AUTOMAKE([1.11]) dnl The installed program must know where to find its message catalogs. dnl Unfortunately, prefix gets only finally determined at the end of configure. diff --git a/gettext-tools/examples/hello-smalltalk/configure.ac b/gettext-tools/examples/hello-smalltalk/configure.ac index 2cb1bec25..820a30a46 100644 --- a/gettext-tools/examples/hello-smalltalk/configure.ac +++ b/gettext-tools/examples/hello-smalltalk/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.st.in) -AM_INIT_AUTOMAKE(hello-smalltalk, 0) +AC_INIT([hello-smalltalk], [0]) +AC_CONFIG_SRCDIR([hello.st.in]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of GNU Smalltalk. AC_PATH_PROG(GST, gst) diff --git a/gettext-tools/examples/hello-tcl-tk/configure.ac b/gettext-tools/examples/hello-tcl-tk/configure.ac index afe18a286..dc1596378 100644 --- a/gettext-tools/examples/hello-tcl-tk/configure.ac +++ b/gettext-tools/examples/hello-tcl-tk/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.tcl) -AM_INIT_AUTOMAKE(hello-tcl-tk, 0) +AC_INIT([hello-tcl-tk], [0]) +AC_CONFIG_SRCDIR([hello.tcl]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Tcl/Tk interpreter. AC_PATH_PROG(WISH, wish) diff --git a/gettext-tools/examples/hello-tcl/configure.ac b/gettext-tools/examples/hello-tcl/configure.ac index 5de9a0771..3c30d521b 100644 --- a/gettext-tools/examples/hello-tcl/configure.ac +++ b/gettext-tools/examples/hello-tcl/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.tcl) -AM_INIT_AUTOMAKE(hello-tcl, 0) +AC_INIT([hello-tcl], [0]) +AC_CONFIG_SRCDIR([hello.tcl]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of the Tcl interpreter. AC_PATH_PROG(TCLSH, tclsh) diff --git a/gettext-tools/examples/hello-ycp/configure.ac b/gettext-tools/examples/hello-ycp/configure.ac index 91bba9318..78f88c408 100644 --- a/gettext-tools/examples/hello-ycp/configure.ac +++ b/gettext-tools/examples/hello-ycp/configure.ac @@ -3,9 +3,9 @@ dnl This file is in the public domain. dnl dnl Configuration file - processed by autoconf. -AC_INIT -AC_CONFIG_SRCDIR(hello.ycp) -AM_INIT_AUTOMAKE(hello-ycp, 0) +AC_INIT([hello-ycp], [0]) +AC_CONFIG_SRCDIR([hello.ycp]) +AM_INIT_AUTOMAKE([1.11]) dnl Check for availability of YaST's engine. test -f /usr/lib/YaST2/bin/y2base || {