Commit f5818d2f authored by Alexandre Julliard's avatar Alexandre Julliard

Upgraded configure script to use autoconf 2.50 features, and renamed

to configure.ac. Changed a few things to better follow the autoconf guidelines.
parent fb2b1c85
...@@ -92,7 +92,7 @@ prog_manext = 1 ...@@ -92,7 +92,7 @@ prog_manext = 1
conf_manext = 5 conf_manext = 5
includedir = @includedir@/wine includedir = @includedir@/wine
CLEAN_FILES = *.o *.a *.so *.ln \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \ CLEAN_FILES = *.o *.a *.so *.ln \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \
*.flc *.spec.c *.spec.def *.glue.c y.tab.c y.tab.h lex.yy.c core *.flc *.spec.c *.spec.def *.glue.c y.tab.c y.tab.h @LEX_OUTPUT_ROOT@.c core
OBJS = $(SPEC_SRCS:.spec=.spec.o) $(C_SRCS:.c=.o) $(GEN_C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) \ OBJS = $(SPEC_SRCS:.spec=.spec.o) $(C_SRCS:.c=.o) $(GEN_C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) \
$(ASM_SRCS:.S=.o) $(GLUE:.c=.glue.o) $(EXTRA_OBJS) $(ASM_SRCS:.S=.o) $(GLUE:.c=.glue.o) $(EXTRA_OBJS)
......
...@@ -151,7 +151,7 @@ clean:: ...@@ -151,7 +151,7 @@ clean::
$(RM) wine $(RM) wine
distclean: clean distclean: clean
$(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h documentation/wine.man documentation/wine.conf.man tools/winelauncher $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h include/wine/version.h
$(RM) `find . \( -name Makefile -o -size 0 \) -print` $(RM) `find . \( -name Makefile -o -size 0 \) -print`
### Dependencies: ### Dependencies:
Wine version 20020122
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -24,14 +24,14 @@ C_SRCS = \ ...@@ -24,14 +24,14 @@ C_SRCS = \
winedbg.c winedbg.c
EXTRA_SRCS = dbg.y debug.l EXTRA_SRCS = dbg.y debug.l
EXTRA_OBJS = y.tab.o lex.yy.o EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
@MAKE_PROG_RULES@ @MAKE_PROG_RULES@
y.tab.c y.tab.h: dbg.y y.tab.c y.tab.h: dbg.y
$(YACC) -d -t $(SRCDIR)/dbg.y $(YACC) -d -t $(SRCDIR)/dbg.y
lex.yy.c: debug.l @LEX_OUTPUT_ROOT@.c: debug.l
$(LEX) -8 -I $(SRCDIR)/debug.l $(LEX) -8 -I $(SRCDIR)/debug.l
### Dependencies: ### Dependencies:
...@@ -10,5 +10,4 @@ wine-doc ...@@ -10,5 +10,4 @@ wine-doc
wine-doc.pdf wine-doc.pdf
wine-doc.ps wine-doc.ps
wine-doc.rtf wine-doc.rtf
wine.conf.man
wine.man wine.man
...@@ -44,12 +44,14 @@ BOOK_SRCS = \ ...@@ -44,12 +44,14 @@ BOOK_SRCS = \
winelib-toolkit.sgml \ winelib-toolkit.sgml \
winelib-user.sgml winelib-user.sgml
MAN_TARGETS = wine.man
BOOK_TARGETS = \ BOOK_TARGETS = \
$(BOOKNAME)/index.html \ $(BOOKNAME)/index.html \
$(BOOKNAME).pdf \ $(BOOKNAME).pdf \
$(BOOKNAME).ps $(BOOKNAME).ps
all: $(BOOK_TARGETS) all: $(MAN_TARGETS) $(BOOK_TARGETS)
@MAKE_RULES@ @MAKE_RULES@
...@@ -62,14 +64,15 @@ $(BOOKNAME).pdf: $(BOOK_SRCS) ...@@ -62,14 +64,15 @@ $(BOOKNAME).pdf: $(BOOK_SRCS)
$(BOOKNAME).ps: $(BOOK_SRCS) $(BOOKNAME).ps: $(BOOK_SRCS)
db2ps $(BOOKNAME).sgml > /dev/null db2ps $(BOOKNAME).sgml > /dev/null
install:: wine.man: wine.man.in
sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' $(SRCDIR)/wine.man.in >wine.man
install:: $(MAN_TARGETS)
$(INSTALL) -d $(mandir)/man$(prog_manext) $(INSTALL) -d $(mandir)/man$(prog_manext)
$(INSTALL) -d $(mandir)/man$(conf_manext) $(INSTALL) -d $(mandir)/man$(conf_manext)
sed -e 's|$${prefix}|$(prefix)|g' < wine.man > wine.man.tmp && mv wine.man.tmp wine.man
$(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext) $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
$(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) $(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
sed -e 's|$${prefix}|$(prefix)|g' < wine.conf.man > wine.conf.man.tmp && mv wine.conf.man.tmp wine.conf.man $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
$(INSTALL_DATA) wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
uninstall:: uninstall::
$(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext) $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
...@@ -77,7 +80,7 @@ uninstall:: ...@@ -77,7 +80,7 @@ uninstall::
$(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext) $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
clean:: clean::
$(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log $(BOOKNAME).pdf $(BOOKNAME).ps $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log $(BOOKNAME).pdf $(BOOKNAME).ps $(MAN_TARGETS)
$(RM) -r $(BOOKNAME) html man3w *.junk DBTOHTML_OUTPUT_DIR* $(RM) -r $(BOOKNAME) html man3w *.junk DBTOHTML_OUTPUT_DIR*
### Dependencies: ### Dependencies:
...@@ -357,35 +357,32 @@ development, you might want to subscribe to the ...@@ -357,35 +357,32 @@ development, you might want to subscribe to the
.SH FILES .SH FILES
.PD 0 .PD 0
.TP .TP
.I @prefix@/bin/wine .I @bindir@/wine
The The
.B wine .B wine
program loader. program loader.
.TP .TP
.I @prefix@/bin/wineconsole .I @bindir@/wineconsole
The The
.B wine .B wine
program loader for CUI (console) applications. program loader for CUI (console) applications.
.TP .TP
.I @prefix@/bin/dosmod .I @bindir@/wineserver
The DOS program loader.
.TP
.I @prefix@/bin/wineserver
The The
.B wine .B wine
server server
.TP .TP
.I @prefix@/bin/winedbg .I @bindir@/winedbg
The The
.B wine .B wine
debugger debugger
.TP .TP
.I @prefix@/bin/wineclpsrv .I @bindir@/wineclpsrv
The The
.B wine .B wine
clipboard server clipboard server
.TP .TP
.I @prefix@/lib/ .I @libdir@
Directory containing Directory containing
.B wine's .B wine's
shared libraries shared libraries
......
#define WINE_RELEASE_INFO "Wine release 20020122"
...@@ -13,7 +13,7 @@ C_SRCS = \ ...@@ -13,7 +13,7 @@ C_SRCS = \
string.c string.c
EXTRA_SRCS = macro.yacc.y macro.lex.l EXTRA_SRCS = macro.yacc.y macro.lex.l
EXTRA_OBJS = y.tab.o lex.yy.o EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
...@@ -33,7 +33,7 @@ uninstall:: ...@@ -33,7 +33,7 @@ uninstall::
y.tab.c y.tab.h: macro.yacc.y y.tab.c y.tab.h: macro.yacc.y
$(YACC) -d -t $(SRCDIR)/macro.yacc.y $(YACC) -d -t $(SRCDIR)/macro.yacc.y
lex.yy.c: macro.lex.l @LEX_OUTPUT_ROOT@.c: macro.lex.l
$(LEX) -8 -i $(SRCDIR)/macro.lex.l $(LEX) -8 -i $(SRCDIR)/macro.lex.l
### Dependencies: ### Dependencies:
DEFS = -D__WINE__ DEFS = -D__WINE__ -DLEX_OUTPUT_ROOT="\"@LEX_OUTPUT_ROOT@\""
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = .. TOPOBJDIR = ..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
PROGRAMS = makedep fnt2bdf bin2res PROGRAMS = makedep fnt2bdf bin2res winelauncher
MODULE = none MODULE = none
C_SRCS = makedep.c fnt2bdf.c bin2res.c C_SRCS = makedep.c fnt2bdf.c bin2res.c
...@@ -40,6 +40,9 @@ fnt2bdf: fnt2bdf.o ...@@ -40,6 +40,9 @@ fnt2bdf: fnt2bdf.o
bin2res: bin2res.o bin2res: bin2res.o
$(CC) $(CFLAGS) -o bin2res bin2res.o $(CC) $(CFLAGS) -o bin2res bin2res.o
winelauncher: winelauncher.in
sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' $(SRCDIR)/winelauncher.in >winelauncher
install:: $(PROGRAMS) $(INSTALLSUBDIRS:%=%/__install__) install:: $(PROGRAMS) $(INSTALLSUBDIRS:%=%/__install__)
[ -d $(bindir) ] || $(MKDIR) $(bindir) [ -d $(bindir) ] || $(MKDIR) $(bindir)
$(INSTALL_PROGRAM) fnt2bdf $(bindir)/fnt2bdf $(INSTALL_PROGRAM) fnt2bdf $(bindir)/fnt2bdf
......
...@@ -324,7 +324,7 @@ static void output_src( FILE *file, INCL_FILE *pFile, int *column ) ...@@ -324,7 +324,7 @@ static void output_src( FILE *file, INCL_FILE *pFile, int *column )
} }
else if (!strcmp( ext, "l" )) /* lex file */ else if (!strcmp( ext, "l" )) /* lex file */
{ {
*column += fprintf( file, "lex.yy.o: lex.yy.c" ); *column += fprintf( file, "%s.o: %s.c", LEX_OUTPUT_ROOT, LEX_OUTPUT_ROOT );
} }
else if (!strcmp( ext, "rc" )) /* resource file */ else if (!strcmp( ext, "rc" )) /* resource file */
{ {
......
...@@ -19,14 +19,8 @@ ...@@ -19,14 +19,8 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Primary configuration area - change this if you installed Wine to # Primary configuration area - change this if you installed Wine to
# a location other than @prefix@ # a different location
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
prefix=@prefix@
#------------------------------------------------------------------------------
# Secondary configuration area; change these at your own risk.
#------------------------------------------------------------------------------
exec_prefix=@exec_prefix@
WINEBIN=@bindir@ WINEBIN=@bindir@
WINELIB=@libdir@ WINELIB=@libdir@
WINESERVER= WINESERVER=
......
...@@ -21,7 +21,7 @@ C_SRCS = \ ...@@ -21,7 +21,7 @@ C_SRCS = \
GEN_C_SRCS = ppy.tab.c lex.ppl.c GEN_C_SRCS = ppy.tab.c lex.ppl.c
EXTRA_SRCS = parser.y parser.l EXTRA_SRCS = parser.y parser.l
EXTRA_OBJS = y.tab.o lex.yy.o EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
all: $(PROGRAMS) all: $(PROGRAMS)
...@@ -39,7 +39,7 @@ y.tab.c y.tab.h: parser.y ...@@ -39,7 +39,7 @@ y.tab.c y.tab.h: parser.y
ppy.tab.c ppy.tab.h: ppy.y ppy.tab.c ppy.tab.h: ppy.y
$(YACC) $(YACCOPT) -bppy -ppp -d -t $(SRCDIR)/ppy.y $(YACC) $(YACCOPT) -bppy -ppp -d -t $(SRCDIR)/ppy.y
lex.yy.c: parser.l @LEX_OUTPUT_ROOT@.c: parser.l
$(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
lex.ppl.c: ppl.l lex.ppl.c: ppl.l
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment