1dnl Process this file with autoconf to produce a configure script. 2dnl 3dnl This file is free software; as a special exception the author gives 4dnl unlimited permission to copy and/or distribute it, with or without 5dnl modifications, as long as this notice is preserved. 6dnl 7dnl This program is distributed in the hope that it will be useful, but 8dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 9dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 11AC_INIT([GNU Hello], 12 [m4_esyscmd([build-aux/git-version-gen .tarball-version])], 13 [bug-hello@gnu.org], [], 14 [http://www.gnu.org/software/hello/]) 15 16dnl Must come before AM_INIT_AUTOMAKE. 17AC_CONFIG_AUX_DIR([build-aux]) 18AM_INIT_AUTOMAKE([ 19 1.11.1 20 readme-alpha 21 subdir-objects 22]) 23 24dnl Minimum Autoconf version required. 25AC_PREREQ([2.62]) 26 27dnl Where to generate output; srcdir location. 28AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS. 29AC_CONFIG_SRCDIR([src/hello.c]) 30 31dnl Checks for programs. 32dnl We need a C compiler. 33AC_PROG_CC 34 35dnl Since we use gnulib: gl_EARLY must be called as soon as possible after 36dnl the C compiler is checked. The others could be later, but we just 37dnl keep everything together. 38gl_EARLY 39gl_INIT 40 41dnl Copyright will apply as long as these sources are in use, e.g., are 42dnl being compiled, which is reasonable year to claim the copyright. 43AC_DEFINE([COPYRIGHT_YEAR], [m4_esyscmd([date +%Y])], [year in copyright message]) 44 45dnl Are we building from git checked-out sources, or a tarball ? 46dnl This is used in "Makefile.am" to avoid re-generating the manpage 47dnl when building from tarballs. 48AM_CONDITIONAL([BUILD_FROM_GIT], [test -d "$srcdir/.git"]) 49AM_CONDITIONAL([GIT_CROSS_COMPILING], 50 [test -d "$srcdir/.git" && test $cross_compiling = yes]) 51 52dnl GNU help2man creates man pages from --help output; in many cases, this 53dnl is sufficient, and obviates the need to maintain man pages separately. 54dnl However, this means invoking executables, which we generally cannot do 55dnl when cross-compiling, so we test to avoid that (the variable 56dnl "cross_compiling" is set by AC_PROG_CC). 57AS_IF([test $cross_compiling = no], [ 58 AM_MISSING_PROG([HELP2MAN], [help2man]) 59], [ 60 HELP2MAN=: 61]) 62 63dnl i18n support from GNU gettext. 64AM_GNU_GETTEXT_VERSION([0.18.1]) 65AM_GNU_GETTEXT([external]) 66 67AC_CONFIG_FILES([Makefile 68 po/Makefile.in]) 69AC_OUTPUT 70