Mercurial > emacs
comparison configure.in @ 12580:03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Use Makefile.c for intermediate file.
Rename src/config.h.in to src/config.in.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 18 Jul 1995 06:08:04 +0000 |
parents | 81040c51494b |
children | 5569b3a43323 |
comparison
equal
deleted
inserted
replaced
12579:16b03ae9214b | 12580:03d3249e5d24 |
---|---|
2 dnl To rebuild the `configure' script from this, execute the command | 2 dnl To rebuild the `configure' script from this, execute the command |
3 dnl autoconf | 3 dnl autoconf |
4 dnl in the directory containing this script. | 4 dnl in the directory containing this script. |
5 AC_PREREQ(2.4.1)dnl | 5 AC_PREREQ(2.4.1)dnl |
6 AC_INIT(src/lisp.h) | 6 AC_INIT(src/lisp.h) |
7 AC_CONFIG_HEADER(src/config.h) | 7 AC_CONFIG_HEADER(src/config.h:src/config.in) |
8 | 8 |
9 lispdir='${datadir}/emacs/${version}/lisp' | 9 lispdir='${datadir}/emacs/${version}/lisp' |
10 locallisppath='${datadir}/emacs/site-lisp' | 10 locallisppath='${datadir}/emacs/site-lisp' |
11 lisppath='${locallisppath}:${lispdir}' | 11 lisppath='${locallisppath}:${lispdir}' |
12 etcdir='${datadir}/emacs/${version}/etc' | 12 etcdir='${datadir}/emacs/${version}/etc' |
1366 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 1366 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
1367 test "${exec_prefix}" != NONE && | 1367 test "${exec_prefix}" != NONE && |
1368 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 1368 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
1369 changequote([, ])dnl | 1369 changequote([, ])dnl |
1370 | 1370 |
1371 AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile \ | 1371 AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ |
1372 man/Makefile lwlib/Makefile src/Makefile.in, [ | 1372 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in, [ |
1373 | 1373 |
1374 ### Make the necessary directories, if they don't exist. | 1374 ### Make the necessary directories, if they don't exist. |
1375 for dir in cpp etc ; do | 1375 for dir in cpp etc ; do |
1376 test -d ${dir} || mkdir ${dir} | 1376 test -d ${dir} || mkdir ${dir} |
1377 done | 1377 done |
1378 | 1378 |
1379 # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done | 1379 # Build src/Makefile from ${srcdir}/src/Makefile.c |
1380 # after src/config.h is built, since we rely on that file. | 1380 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
1381 # This must be done after src/config.h is built, since we rely on that file. | |
1381 | 1382 |
1382 changequote(, )dnl The horror, the horror. | 1383 changequote(, )dnl The horror, the horror. |
1383 # Now get this: Some word that is part of the ${srcdir} directory name | 1384 # Now get this: Some word that is part of the ${srcdir} directory name |
1384 # or the ${configuration} value might, just might, happen to be an | 1385 # or the ${configuration} value might, just might, happen to be an |
1385 # identifier like `sun4' or `i386' or something, and be predefined by | 1386 # identifier like `sun4' or `i386' or something, and be predefined by |
1394 | 1395 |
1395 echo creating lib-src/Makefile | 1396 echo creating lib-src/Makefile |
1396 ( cd lib-src | 1397 ( cd lib-src |
1397 rm -f junk.c junk1.c junk2.c | 1398 rm -f junk.c junk1.c junk2.c |
1398 sed -e '/start of cpp stuff/q' \ | 1399 sed -e '/start of cpp stuff/q' \ |
1399 < Makefile.in > junk1.c | 1400 < Makefile.c > junk1.c |
1400 sed -e '1,/start of cpp stuff/d'\ | 1401 sed -e '1,/start of cpp stuff/d'\ |
1401 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | 1402 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ |
1402 < Makefile.in > junk.c | 1403 < Makefile.c > junk.c |
1403 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | 1404 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
1404 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 1405 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
1405 cat junk1.c junk2.c > Makefile.new | 1406 cat junk1.c junk2.c > Makefile.new |
1406 rm -f junk.c junk1.c junk2.c | 1407 rm -f junk.c junk1.c junk2.c |
1407 chmod 444 Makefile.new | 1408 chmod 444 Makefile.new |
1410 | 1411 |
1411 echo creating src/Makefile | 1412 echo creating src/Makefile |
1412 ( cd src | 1413 ( cd src |
1413 rm -f junk.c junk1.c junk2.c | 1414 rm -f junk.c junk1.c junk2.c |
1414 sed -e '/start of cpp stuff/q' \ | 1415 sed -e '/start of cpp stuff/q' \ |
1415 < Makefile.in > junk1.c | 1416 < Makefile.c > junk1.c |
1416 sed -e '1,/start of cpp stuff/d'\ | 1417 sed -e '1,/start of cpp stuff/d'\ |
1417 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | 1418 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ |
1418 < Makefile.in > junk.c | 1419 < Makefile.c > junk.c |
1419 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | 1420 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
1420 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 1421 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
1421 cat junk1.c junk2.c > Makefile.new | 1422 cat junk1.c junk2.c > Makefile.new |
1422 rm -f junk.c junk1.c junk2.c | 1423 rm -f junk.c junk1.c junk2.c |
1423 chmod 444 Makefile.new | 1424 chmod 444 Makefile.new |