aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-02-23 20:28:17 -0800
committerGlenn Morris2011-02-23 20:28:17 -0800
commit1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0 (patch)
tree5990f4b2dad8867d922afaf9693e175cf5627715
parentb36f2f1cb8fc121bf6fe44e5260d114a9f46d950 (diff)
downloademacs-1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0.tar.gz
emacs-1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0.zip
Replace some obsolete autoconf syntax.
* configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(), AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.
-rw-r--r--ChangeLog5
-rw-r--r--configure.in30
2 files changed, 24 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 5aacf77688b..b57b3236023 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12011-02-24 Glenn Morris <rgm@gnu.org>
2
3 * configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(),
4 AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.
5
12011-02-22 Paul Eggert <eggert@cs.ucla.edu> 62011-02-22 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Assume S_ISLNK etc. work, since gnulib supports this. 8 Assume S_ISLNK etc. work, since gnulib supports this.
diff --git a/configure.in b/configure.in
index fa5ae960c59..b832b79994e 100644
--- a/configure.in
+++ b/configure.in
@@ -3706,6 +3706,18 @@ fi
3706test "${exec_prefix}" != NONE && 3706test "${exec_prefix}" != NONE &&
3707 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] 3707 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`]
3708 3708
3709AC_CONFIG_FILES([Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \
3710 doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \
3711 doc/lispref/Makefile src/Makefile \
3712 lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile])
3713
3714dnl Make the necessary directories, if they don't exist.
3715AC_CONFIG_COMMANDS([mkdirs], [
3716for dir in etc lisp ; do
3717 test -d ${dir} || mkdir ${dir}
3718done
3719])
3720
3709dnl You might wonder (I did) why epaths.h is generated by running make, 3721dnl You might wonder (I did) why epaths.h is generated by running make,
3710dnl rather than just letting configure generate it from epaths.in. 3722dnl rather than just letting configure generate it from epaths.in.
3711dnl One reason is that the various paths are not fully expanded (see above); 3723dnl One reason is that the various paths are not fully expanded (see above);
@@ -3714,22 +3726,18 @@ dnl Secondly, the GNU Coding standards require that one should be able
3714dnl to run `make prefix=/some/where/else' and override the values set 3726dnl to run `make prefix=/some/where/else' and override the values set
3715dnl by configure. This also explains the `move-if-change' test and 3727dnl by configure. This also explains the `move-if-change' test and
3716dnl the use of force in the `epaths-force' rule in Makefile.in. 3728dnl the use of force in the `epaths-force' rule in Makefile.in.
3717AC_OUTPUT(Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \ 3729AC_CONFIG_COMMANDS([epaths], [
3718 doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \
3719 doc/lispref/Makefile src/Makefile \
3720 lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile, [
3721
3722### Make the necessary directories, if they don't exist.
3723for dir in etc lisp ; do
3724 test -d ${dir} || mkdir ${dir}
3725done
3726
3727echo creating src/epaths.h 3730echo creating src/epaths.h
3728${MAKE-make} epaths-force 3731${MAKE-make} epaths-force
3732], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"])
3729 3733
3734AC_CONFIG_COMMANDS([gdbinit], [
3730if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then 3735if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
3731 echo creating src/.gdbinit 3736 echo creating src/.gdbinit
3732 echo source $srcdir/src/.gdbinit > src/.gdbinit 3737 echo source $srcdir/src/.gdbinit > src/.gdbinit
3733fi 3738fi
3739])
3734 3740
3735], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) 3741AC_OUTPUT
3742
3743dnl configure.in ends here