From 2d6c00722652589b6c2532d9e9a43417d29612c1 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sat, 13 Sep 2014 17:01:43 -0700 Subject: Add autotools build system Signed-off-by: Timothy Gu --- .gitignore | 59 +++++++++++++++ Makefile | 75 ------------------- Makefile.am | 6 ++ Makefile2 | 75 +++++++++++++++++++ acinclude.m4 | 68 +++++++++++++++++ configure | 233 ---------------------------------------------------------- configure.ac | 31 ++++++++ configure2 | 235 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 474 insertions(+), 308 deletions(-) create mode 100644 .gitignore delete mode 100644 Makefile create mode 100644 Makefile.am create mode 100644 Makefile2 create mode 100644 acinclude.m4 delete mode 100755 configure create mode 100644 configure.ac create mode 100755 configure2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08504f2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,59 @@ +# Object files +*.o +*.ko +*.obj +*.elf + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Deps & libs +.deps +.libs + +# http://www.gnu.org/software/automake + +Makefile.in + +# http://www.gnu.org/software/autoconf + +/m4 +/autom4te.cache +/aclocal.m4 +/compile +/config.guess +/config.sub +/configure +/depcomp +/install-sh +/missing +/stamp-h1 + +# configure-generated + +Makefile +/config.log +/config.status +/libtool +/ltmain.sh \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index 4d11de8..0000000 --- a/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# -# dlfcn-win32 Makefile -# -include config.mak - -ifeq ($(BUILD_SHARED),yes) - TARGETS += libdl.dll libdl.dll.a - SHFLAGS += -Wl,--out-implib,libdl.dll.a - INSTALL += shared-install -endif -ifeq ($(BUILD_STATIC),yes) - TARGETS += libdl.a - INSTALL += static-install -endif -ifeq ($(BUILD_MSVC),yes) - TARGETS += libdl.lib - SHFLAGS += -Wl,--output-def,libdl.def - INSTALL += lib-install -endif - -LIB_OBJS := dlfcn.o -HEADERS := dlfcn.h - -all: $(TARGETS) - -%.o: %.c - $(CC) -o $@ -c $< -Wall -O3 -fomit-frame-pointer - -libdl.a: $(LIB_OBJS) - $(AR) cru $@ $^ - $(RANLIB) libdl.a - -libdl.dll libdl.dll.a: $(LIB_OBJS) - $(CC) $(SHFLAGS) -shared -o $@ $^ - -libdl.lib: libdl.dll - $(LIBCMD) /machine:i386 /def:libdl.def - -include-install: $(HEADERS) - mkdir -p $(DESTDIR)$(incdir) - install -m 644 $^ "$(DESTDIR)$(incdir)" - -shared-install: include-install - mkdir -p $(DESTDIR)$(prefix)/bin - cp libdl.dll $(DESTDIR)$(prefix)/bin - $(STRIP) $(DESTDIR)$(prefix)/bin/libdl.dll - mkdir -p $(DESTDIR)$(libdir) - cp libdl.dll.a $(DESTDIR)$(libdir) - -static-install: include-install - mkdir -p $(DESTDIR)$(libdir) - cp libdl.a $(DESTDIR)$(libdir) - -lib-install: $(LIBS) - mkdir -p $(DESTDIR)$(libdir) - cp libdl.lib $(DESTDIR)$(libdir) - -install: $(INSTALL) - -test.exe: test.o $(TARGETS) - $(CC) -o $@ $< -L. -ldl - -testdll.dll: testdll.c - $(CC) -shared -o $@ $^ - -test: $(TARGETS) test.exe testdll.dll - $(WINE) test.exe - -clean:: - rm -f dlfcn.o libdl.dll libdl.a libdl.def libdl.dll.a libdl.lib libdl.exp test.exe testdll.dll - -distclean: clean - rm -f config.mak - -.PHONY: clean distclean install test diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..1c8ce13 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,6 @@ +ACLOCAL_AMFLAGS = -I m4 + +lib_LTLIBRARIES = libdl.la +libdl_la_SOURCES = dlfcn.c +libdl_la_LDFLAGS = -no-undefined +include_HEADERS = dlfcn.h \ No newline at end of file diff --git a/Makefile2 b/Makefile2 new file mode 100644 index 0000000..4d11de8 --- /dev/null +++ b/Makefile2 @@ -0,0 +1,75 @@ +# +# dlfcn-win32 Makefile +# +include config.mak + +ifeq ($(BUILD_SHARED),yes) + TARGETS += libdl.dll libdl.dll.a + SHFLAGS += -Wl,--out-implib,libdl.dll.a + INSTALL += shared-install +endif +ifeq ($(BUILD_STATIC),yes) + TARGETS += libdl.a + INSTALL += static-install +endif +ifeq ($(BUILD_MSVC),yes) + TARGETS += libdl.lib + SHFLAGS += -Wl,--output-def,libdl.def + INSTALL += lib-install +endif + +LIB_OBJS := dlfcn.o +HEADERS := dlfcn.h + +all: $(TARGETS) + +%.o: %.c + $(CC) -o $@ -c $< -Wall -O3 -fomit-frame-pointer + +libdl.a: $(LIB_OBJS) + $(AR) cru $@ $^ + $(RANLIB) libdl.a + +libdl.dll libdl.dll.a: $(LIB_OBJS) + $(CC) $(SHFLAGS) -shared -o $@ $^ + +libdl.lib: libdl.dll + $(LIBCMD) /machine:i386 /def:libdl.def + +include-install: $(HEADERS) + mkdir -p $(DESTDIR)$(incdir) + install -m 644 $^ "$(DESTDIR)$(incdir)" + +shared-install: include-install + mkdir -p $(DESTDIR)$(prefix)/bin + cp libdl.dll $(DESTDIR)$(prefix)/bin + $(STRIP) $(DESTDIR)$(prefix)/bin/libdl.dll + mkdir -p $(DESTDIR)$(libdir) + cp libdl.dll.a $(DESTDIR)$(libdir) + +static-install: include-install + mkdir -p $(DESTDIR)$(libdir) + cp libdl.a $(DESTDIR)$(libdir) + +lib-install: $(LIBS) + mkdir -p $(DESTDIR)$(libdir) + cp libdl.lib $(DESTDIR)$(libdir) + +install: $(INSTALL) + +test.exe: test.o $(TARGETS) + $(CC) -o $@ $< -L. -ldl + +testdll.dll: testdll.c + $(CC) -shared -o $@ $^ + +test: $(TARGETS) test.exe testdll.dll + $(WINE) test.exe + +clean:: + rm -f dlfcn.o libdl.dll libdl.a libdl.def libdl.dll.a libdl.lib libdl.exp test.exe testdll.dll + +distclean: clean + rm -f config.mak + +.PHONY: clean distclean install test diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..352fbdd --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,68 @@ +# MSVC-compatibe import lib generation recipe +# +# Copyright (C) 2007, MinGW Project +# Written by Keith Marshall +# +# +# This is free software. It is provided AS IS, in the hope that it may +# be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY +# of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE. +# +# Permission is granted to redistribute this software, either "as is" or +# in modified form, under the terms of the GNU Lesser General Public License, +# as published by the Free Software Foundation; either version 2.1, or (at +# your option) any later version. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this software; see the file COPYING. If not, write to the +# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston, +# MA 02110-1301, USA. + +# Copied from http://sourceforge.net/p/mingw/regex/ci/e7b1d8be1cd5dcf0c654228c2af30fd769cac61d/tree/aclocal.m4 +# +# Modifications: +# - License header: +# - Short description of file added +# - Changed 'see the file COPYING.lib' to 'see the file COPYING' +# - Removed all macros besides MINGW_AC_MSVC_IMPORT_LIBS +# - MINGW_AC_MSVC_IMPORT_LIBS: +# - Renamed the option to --enable-msvc for compatibility with the old +# configure script. +# - Cosmetics: +# - Use '' instead of `' + +# MINGW_AC_MSVC_IMPORT_LIBS( VARNAME, TARGET ) +# -------------------------------------------- +# Check for the availability of the MSVC 'lib' program. +# If it is found in $PATH, and the user has requested '--enable-msvc', +# then set the AC_SUBST variable VARNAME to TARGET, otherwise set VARNAME to +# the null string. +# +# If the user has requested '--enable-msvc', but MSVC 'lib' cannot be +# found, then 'configure' will print a warning; this will be suppressed, if +# '--enable-msvc' has not been requested. +# +AC_DEFUN([MINGW_AC_MSVC_IMPORT_LIBS], +[AC_ARG_ENABLE([msvc], + AS_HELP_STRING([--enable-msvc], + [enable building of MSVC compatible import libraries]),[], + [enable_msvc=no]) + AC_CHECK_TOOL([MSVCLIB], [lib]) + if test "x$enable_msvc" = xyes && test -n "$MSVCLIB" + then $1="$2" + elif test "x$enable_msvc" = xyes + then AC_MSG_WARN([no MSVC compatible 'lib' program found in \$PATH + + The MSVC 'lib' program is required to build MSVC compatible import libs. + Since this program does not appear to be installed on this computer, MSVC + compatible import libs will not be built; configuration will continue, but + only MinGW format import libs will be included in the resultant build. + + If you wish to build a development kit which does include import libs for + MSVC, in addition to those for MinGW, you should ensure that MSVC has been + installed on this computer, and that \$PATH includes the directory in which + its 'lib' program is located, then run 'configure' again. + ]) + fi + AC_SUBST([$1])dnl +])# MINGW_AC_MSVC_IMPORT_LIBS diff --git a/configure b/configure deleted file mode 100755 index 91f7d07..0000000 --- a/configure +++ /dev/null @@ -1,233 +0,0 @@ -#!/bin/sh -# dlfcn-win32 configure script -# -# Copyright (c) 2007, 2009, 2012 Ramiro Polla -# Copyright (c) 2014 Tiancheng "Timothy" Gu -# -# Parts copied from FFmpeg's configure. Original license was: -# -# Copyright (c) 2000-2002 Fabrice Bellard -# Copyright (c) 2005-2007 Diego Biurrun -# Copyright (c) 2005-2007 Mans Rullgard -# -# dlfcn-win32 is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. - -# dlfcn-win32 is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with dlfcn-win32; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -set_all(){ - value=$1 - shift - for var in $*; do - eval $var=$value - done -} - -enable(){ - set_all yes $* -} - -disable(){ - set_all no $* -} - -enabled(){ - eval test "x\$$1" = "xyes" -} - -disabled(){ - eval test "x\$$1" = "xno" -} - -show_help(){ - echo "Usage: configure [options]" - echo "Options: [defaults in brackets after descriptions]" - echo "All \"enable\" options have \"disable\" counterparts" - echo - echo " --help print this message" - echo " --prefix=PREFIX install in PREFIX [$prefix]" - echo " --libdir=DIR install libs in DIR [$libdir]" - echo " --incdir=DIR install includes in DIR [$incdir]" - echo " --enable-shared build shared libraries [no]" - echo " --enable-static build static libraries [yes]" - echo " --enable-msvc create msvc-compatible import lib [auto]" - echo " --enable-stripping strip shared library [yes]" - echo " --enable-wine[=cmd] use wine in tests [auto,cmd=$winecmd]" - echo - echo " --cc=CC use C compiler CC [$cc_default]" - echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]" - exit 1 -} - -die_unknown(){ - echo "Unknown option \"$1\"." - echo "See $0 --help for available options." - exit 1 -} - -prefix="/mingw" -libdir='${prefix}/lib' -incdir='${prefix}/include' -ar="ar" -cc_default="gcc" -ranlib="ranlib" -strip="strip" -winecmd="wine" - -DEFAULT="msvc - wine -" - -DEFAULT_NO="shared -" - -DEFAULT_YES="static - stripping -" - -CMDLINE_SELECT="$DEFAULT - $DEFAULT_NO - $DEFAULT_YES -" - -enable $DEFAULT_YES -disable $DEFAULT_NO - -for opt do - optval="${opt#*=}" - case "$opt" in - --help) - show_help - ;; - --prefix=*) - prefix="$optval" - ;; - --libdir=*) - libdir="$optval" - ;; - --incdir=*) - incdir="$optval" - ;; - --cc=*) - cc="$optval" - ;; - --cross-prefix=*) - cross_prefix="$optval" - ;; - --enable-wine=*) - winecmd="$optval" - enable wine - ;; - --enable-?*|--disable-?*) - eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` - echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt - $action $option - ;; - *) - die_unknown $opt - ;; - esac -done - -ar="${cross_prefix}${ar}" -cc_default="${cross_prefix}${cc_default}" -ranlib="${cross_prefix}${ranlib}" -strip="${cross_prefix}${strip}" - -if ! test -z $cc; then - cc_default="${cc}" -fi -cc="${cc_default}" - -disabled shared && disabled static && { - echo "At least one library type must be set."; - exit 1; -} - -# simple cc test -cat > /tmp/test.c << EOF -#include -void function(void) -{ LoadLibrary(NULL); } -EOF -echo testing compiler: $cc -shared -o /tmp/test.dll /tmp/test.c -$cc -shared -o /tmp/test.dll /tmp/test.c - -test "$?" != 0 && { - echo "$cc could not create shared file with Windows API functions."; - echo "Make sure your MinGW system is working properly."; - exit 1; -} - -if enabled wine; then # wine explicitly enabled - $winecmd --version > /dev/null 2>&1 /dev/null || { - echo "wine command not found." - echo "Make sure wine is installed and its bin folder is in your \$PATH." - exit 1 - } -elif disabled wine; then # explicitly disabled - winecmd="" -else # autodetect - $winecmd --version > /dev/null 2>&1 /dev/null && enable wine || winecmd="" -fi - -if ! enabled stripping; then - strip="@echo ignoring strip" -fi - -if enabled msvc; then # msvc explicitly enabled - disabled shared && { - echo "MSVC understands static libraries created by gcc." - echo "There's no need to create an import lib." - exit 1 - } - lib /? > /dev/null 2>&1 /dev/null || { - echo "MSVC's lib command not found." - echo "Make sure MSVC is installed and its bin folder is in your \$PATH." - exit 1 - } -fi - -if enabled shared; then # msvc autodetected - lib /? > /dev/null 2>&1 /dev/null && enable msvc || disable msvc -fi - -enabled msvc && libcmd="lib" || libcmd="@echo ignoring lib" - -echo "# Automatically generated by configure" > config.mak -echo "prefix=$prefix" >> config.mak -echo "libdir=$libdir" >> config.mak -echo "incdir=$incdir" >> config.mak -echo "AR=$ar" >> config.mak -echo "CC=$cc" >> config.mak -echo "RANLIB=$ranlib" >> config.mak -echo "STRIP=$strip" >> config.mak -echo "BUILD_SHARED=$shared" >> config.mak -echo "BUILD_STATIC=$static" >> config.mak -echo "BUILD_MSVC=$msvc" >> config.mak -echo "LIBCMD=$libcmd" >> config.mak -echo "WINE=$winecmd" >> config.mak - -echo "prefix: $prefix" -echo "libdir: $libdir" -echo "incdir: $incdir" -echo "ar: $ar" -echo "cc: $cc" -echo "ranlib: $ranlib" -echo "strip: $strip" -echo "static: $static" -echo "shared: $shared" -if enabled shared; then - echo "msvc: $msvc"; - echo "strip: $stripping"; -fi -echo "wine: $wine $winecmd" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..c9596bd --- /dev/null +++ b/configure.ac @@ -0,0 +1,31 @@ +AC_PREREQ(2.59) + +AC_INIT([dlfcn-win32], [1.0.0.99], [timothygu99@gmail.com]) + +AC_CONFIG_MACRO_DIR([m4]) + +AC_CANONICAL_BUILD + +AM_INIT_AUTOMAKE([foreign]) +LT_INIT + +AC_PROG_CC + +AC_MSG_CHECKING([windows.h and win32 API]) +AC_LINK_IFELSE([ + AC_LANG_PROGRAM([[ + #include + ]], [[ + LoadLibrary(NULL); + ]]) +], [ + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([C compiler is not able to link standard win32 program.]) +]) + +MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib]) + +AC_CONFIG_FILES(Makefile) +AC_OUTPUT \ No newline at end of file diff --git a/configure2 b/configure2 new file mode 100755 index 0000000..ba5fcd7 --- /dev/null +++ b/configure2 @@ -0,0 +1,235 @@ +#!/bin/sh +# dlfcn-win32 configure script +# +# Copyright (c) 2007, 2009, 2012 Ramiro Polla +# Copyright (c) 2014 Tiancheng "Timothy" Gu +# +# Parts copied from FFmpeg's configure. Original license was: +# +# Copyright (c) 2000-2002 Fabrice Bellard +# Copyright (c) 2005-2007 Diego Biurrun +# Copyright (c) 2005-2007 Mans Rullgard +# +# dlfcn-win32 is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# dlfcn-win32 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with dlfcn-win32; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +set_all(){ + value=$1 + shift + for var in $*; do + eval $var=$value + done +} + +enable(){ + set_all yes $* +} + +disable(){ + set_all no $* +} + +enabled(){ + eval test "x\$$1" = "xyes" +} + +disabled(){ + eval test "x\$$1" = "xno" +} + +show_help(){ + echo "Usage: configure [options]" + echo "Options: [defaults in brackets after descriptions]" + echo "All \"enable\" options have \"disable\" counterparts" + echo + echo " --help print this message" + echo " --prefix=PREFIX install in PREFIX [$prefix]" + echo " --libdir=DIR install libs in DIR [$libdir]" + echo " --incdir=DIR install includes in DIR [$incdir]" + echo " --enable-shared build shared libraries [no]" + echo " --enable-static build static libraries [yes]" + echo " --enable-msvc create msvc-compatible import lib [auto]" + echo " --enable-stripping strip shared library [yes]" + echo " --enable-wine[=cmd] use wine in tests [auto,cmd=$winecmd]" + echo + echo " --cc=CC use C compiler CC [$cc_default]" + echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]" + exit 1 +} + +die_unknown(){ + echo "Unknown option \"$1\"." + echo "See $0 --help for available options." + exit 1 +} + +prefix="/mingw" +libdir='${prefix}/lib' +incdir='${prefix}/include' +ar="ar" +cc_default="gcc" +ranlib="ranlib" +strip="strip" +winecmd="wine" + +DEFAULT="msvc + wine +" + +DEFAULT_NO="shared +" + +DEFAULT_YES="static + stripping +" + +CMDLINE_SELECT="$DEFAULT + $DEFAULT_NO + $DEFAULT_YES +" + +enable $DEFAULT_YES +disable $DEFAULT_NO + +for opt do + optval="${opt#*=}" + case "$opt" in + --help) + show_help + ;; + --prefix=*) + prefix="$optval" + ;; + --libdir=*) + libdir="$optval" + ;; + --incdir=*) + incdir="$optval" + ;; + --cc=*) + cc="$optval" + ;; + --cross-prefix=*) + cross_prefix="$optval" + ;; + --enable-wine=*) + winecmd="$optval" + enable wine + ;; + --enable-?*|--disable-?*) + eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` + echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt + $action $option + ;; + *) + die_unknown $opt + ;; + esac +done + +ar="${cross_prefix}${ar}" +cc_default="${cross_prefix}${cc_default}" +ranlib="${cross_prefix}${ranlib}" +strip="${cross_prefix}${strip}" + +if ! test -z $cc; then + cc_default="${cc}" +fi +cc="${cc_default}" + +disabled shared && disabled static && { + echo "At least one library type must be set."; + exit 1; +} + +# simple cc test +cat > /tmp/test.c << EOF +#include +void function(void) +{ LoadLibrary(NULL); } +EOF +echo testing compiler: $cc -shared -o /tmp/test.dll /tmp/test.c +$cc -shared -o /tmp/test.dll /tmp/test.c + +test "$?" != 0 && { + echo "$cc could not create shared file with Windows API functions."; + echo "Make sure your MinGW system is working properly."; + exit 1; +} + +if enabled wine; then # wine explicitly enabled + $winecmd --version > /dev/null 2>&1 /dev/null || { + echo "wine command not found." + echo "Make sure wine is installed and its bin folder is in your \$PATH." + exit 1 + } +elif disabled wine; then # explicitly disabled + winecmd="" +else # autodetect + $winecmd --version > /dev/null 2>&1 /dev/null && enable wine || winecmd="" +fi + +if ! enabled stripping; then + strip="@echo ignoring strip" +fi + +if enabled msvc; then # msvc explicitly enabled + disabled shared && { + echo "MSVC understands static libraries created by gcc." + echo "There's no need to create an import lib." + exit 1 + } + lib /? > /dev/null 2>&1 /dev/null || { + echo "MSVC's lib command not found." + echo "Make sure MSVC is installed and its bin folder is in your \$PATH." + exit 1 + } +fi + +if enabled shared; then # msvc autodetected + lib /? > /dev/null 2>&1 /dev/null && enable msvc || disable msvc +fi + +enabled msvc && libcmd="lib" || libcmd="@echo ignoring lib" + +echo "# Automatically generated by configure2" > config.mak +echo "prefix=$prefix" >> config.mak +echo "libdir=$libdir" >> config.mak +echo "incdir=$incdir" >> config.mak +echo "AR=$ar" >> config.mak +echo "CC=$cc" >> config.mak +echo "RANLIB=$ranlib" >> config.mak +echo "STRIP=$strip" >> config.mak +echo "BUILD_SHARED=$shared" >> config.mak +echo "BUILD_STATIC=$static" >> config.mak +echo "BUILD_MSVC=$msvc" >> config.mak +echo "LIBCMD=$libcmd" >> config.mak +echo "WINE=$winecmd" >> config.mak + +echo "prefix: $prefix" +echo "libdir: $libdir" +echo "incdir: $incdir" +echo "ar: $ar" +echo "cc: $cc" +echo "ranlib: $ranlib" +echo "strip: $strip" +echo "static: $static" +echo "shared: $shared" +if enabled shared; then + echo "msvc: $msvc"; + echo "strip: $stripping"; +fi +echo "wine: $wine $winecmd" + +echo "Run `make -f Makefile2` to build." \ No newline at end of file -- cgit v1.2.3-55-g6feb