Ticket #35727: patch-pkgdatadir.diff
File patch-pkgdatadir.diff, 5.6 KB (added by ajdudman, 12 years ago) |
---|
-
./Makefile.am
old new 34 34 path.c imacs.c sysintf.c parse.c getinp.c quit.c state.c\ 35 35 dmdump.c macparse.c rulparse.c percent.c function.c 36 36 37 BUILT_SOURCES = dmakeroot.h 38 37 39 # set the include path found by configure 38 40 INCLUDES = -I$(top_srcdir) -I$(top_builddir) \ 39 41 -I$(top_srcdir)/@OS_TYPE@/@OS_VERSION@ -I$(top_srcdir)/@OS_TYPE@ … … 59 61 INCLUDES += -I$(top_srcdir)/@OS_TYPE@/@OS_VERSION@ -I$(top_srcdir)/@OS_TYPE@ 60 62 endif 61 63 62 SUBDIRS = startup tests64 SUBDIRS = startup man tests 63 65 64 66 EXTRA_DIST = NEWS ChangeLog 67 68 dmakeroot.h: dmakeroot.h.in 69 $(SED) -e 's%@DMAKEROOT_H_LINE1\@%"DMAKEROOT := ${dmakerootprefix}/startup",%' $< > $@ 70 -
./configure.in
old new 21 21 22 22 dnl Extra parameters 23 23 AC_ARG_ENABLE(dbug, 24 [ --enable-dbug: Enable build with dbug macros.25 ],,)24 [AS_HELP_STRING([--enable-dbug],[Enable build with dbug macros.])],, 25 ) 26 26 27 27 AC_ARG_ENABLE(spawn, 28 [ --enable-spawn: Enables the use of spawn instead of fork/exec 29 if it is supported. 30 ],,) 28 [AS_HELP_STRING([--enable-spawn],[Enables the use of spawn instead of fork/exec, if it is supported.])],, 29 ) 30 31 AC_ARG_WITH(dmakeroot, 32 [AS_HELP_STRING([--with-dmakeroot],[Use DIR as dataroot prefix @<:@default=\${pkgdatadir}@:>@])],, 33 ) 34 31 35 dnl Checks for programs. 32 36 AC_PROG_CPP 33 37 AC_PROG_INSTALL 34 38 AC_PROG_LN_S 35 39 AC_PROG_MAKE_SET 36 40 AC_PROG_RANLIB 41 AC_PROG_SED 37 42 38 43 dnl Checks for utilities. 39 44 AC_PROG_AWK … … 160 165 AC_MSG_RESULT([no]) 161 166 fi 162 167 163 dnl Predefine the DMAKEROOT macro for unix targets. 164 eval dmakerootprefix="$datarootdir" 165 # $datadir is ${prefix}/share if not overridden 166 test "x$dmakerootprefix" != "x${dmakerootprefix##NONE}" && dmakerootprefix=${ac_default_prefix}/share 167 168 dnl Define the DMAKEROOT macro differently for unix targets. 168 169 if test x$OS_TYPE = xunix; then 169 DMAKEROOT_H_LINE1='"DMAKEROOT := '${dmakerootprefix}'/startup",' 170 dmakerootprefix='${pkgdatadir}' 171 else 172 dmakerootprefix='${datadir}' 170 173 fi 171 AC_SUBST(DMAKEROOT_H_LINE1) 174 case X$with_dmakeroot in 175 X|Xyes|Xno) ;; 176 *) dmakerootprefix=$with_dmakeroot 177 esac 178 AC_SUBST(dmakerootprefix) 172 179 173 180 dnl List (all possible) *.in files 174 AC_CONFIG_FILES(dmakeroot.h Makefile startup/config.mk \ 175 startup/Makefile startup/unix/Makefile \ 176 startup/unix/linux/Makefile startup/unix/solaris/Makefile \ 177 startup/unix/macosx/Makefile startup/unix/sysvr4/Makefile \ 178 startup/unix/cygwin/Makefile \ 179 startup/unix/os2/Makefile \ 180 startup/winnt/Makefile startup/winnt/mingw/Makefile \ 181 startup/winnt/msvc6/Makefile \ 182 tests/Makefile) 181 AC_CONFIG_FILES([ 182 startup/config.mk 183 Makefile 184 man/Makefile 185 startup/Makefile 186 startup/unix/Makefile 187 startup/unix/cygwin/Makefile 188 startup/unix/linux/Makefile 189 startup/unix/macosx/Makefile 190 startup/unix/os2/Makefile 191 startup/unix/solaris/Makefile 192 startup/unix/sysvr4/Makefile 193 startup/winnt/Makefile 194 startup/winnt/mingw/Makefile 195 startup/winnt/msvc6/Makefile 196 tests/Makefile 197 ]) 183 198 184 199 dnl Checks for libraries. 185 200 -
./man/Makefile.am
old new 1 man1_MANS = dmake.1 2 3 dmake.1: dmake.tf 4 $(LN_S) $< $@ 5 6 EXTRA_DIST = dmake.nc dmake.tf readme 7 -
./startup/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup2 startupdir = $(pkgdatadir)/startup 3 3 4 4 startup_DATA = startup.mk config.mk 5 5 -
./startup/unix/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix2 startupdir = $(pkgdatadir)/startup/unix 3 3 4 4 startup_DATA = macros.mk recipes.mk 5 5 -
./startup/unix/cygwin/Makefile.am
old new 1 startupdir = $( datadir)/startup/unix/cygwin1 startupdir = $(pkgdatadir)/startup/unix/cygwin 2 2 3 3 startup_DATA = macros.mk 4 4 -
./startup/unix/linux/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix/linux2 startupdir = $(pkgdatadir)/startup/unix/linux 3 3 4 4 startup_DATA = macros.mk 5 5 -
./startup/unix/macosx/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix/macosx2 startupdir = $(pkgdatadir)/startup/unix/macosx 3 3 4 4 startup_DATA = macros.mk 5 5 -
./startup/unix/os2/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix/os22 startupdir = $(pkgdatadir)/startup/unix/os2 3 3 4 4 startup_DATA = macros.mk 5 5 -
./startup/unix/solaris/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix/solaris2 startupdir = $(pkgdatadir)/startup/unix/solaris 3 3 4 4 startup_DATA = macros.mk 5 5 -
./startup/unix/sysvr4/Makefile.am
old new 1 1 2 startupdir = $( datadir)/startup/unix/sysvr42 startupdir = $(pkgdatadir)/startup/unix/sysvr4 3 3 4 4 startup_DATA = macros.mk 5 5