From c7114f5962c554c4d5c330209482337db660b845 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Jun 1999 12:03:19 +0000 Subject: [PATCH] 1. make install/uninstall seems to work 2. setup.h will be automatically updated/recreated when needed (due to automake stupidness I have to create the real setup.h in the top level build directory now) 3. wx-config --cflags gives -I@prefix@/include only once, not twice git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 21 +++++++++++++-------- samples/Makefile.am | 13 +++++++++++-- wx-config.in | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/configure.in b/configure.in index fea2eb0..b0fa21b 100644 --- a/configure.in +++ b/configure.in @@ -752,10 +752,6 @@ dnl install checks dnl defines INSTALL with the appropriate command AC_PROG_INSTALL -dnl does ln -s works -dnl defines LN_S with the appropriate command -AC_PROG_LN_S - dnl strip command dnl defines STRIP as strip or nothing if not found AC_CHECK_PROG(STRIP, strip, strip, true) @@ -807,6 +803,9 @@ dnl defines LEX_OUTPUT_ROOT as to the base of the dnl filename output by the lexer AM_PROG_LEX +dnl needed for making link to setup.h +AC_PROG_LN_S + dnl libtool checks (disable static libs by default, this takes too much time...) AM_DISABLE_STATIC AM_PROG_LIBTOOL @@ -1930,9 +1929,11 @@ AC_SUBST(EXTRA_LIBS) AC_SUBST(LIBS) dnl create the configuration header file from the template -SETUPH_DIR=include/wx/${TOOLKIT_DIR} -AC_SUBST(SETUPH_DIR) -AM_CONFIG_HEADER(${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in) +dnl +dnl NB: automake can't work correctly if our header lives in a directory which +dnl is only determined at configure time, so we create it on the top-level +dnl and make a link to allow '#include "wx/setup.h"' to still work +AM_CONFIG_HEADER(setup.h:include/wx/unix/setup.h.in) dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE dnl itself (this is macro is required if SUBDIRS variable is used in Makefile.am @@ -2004,9 +2005,13 @@ AC_OUTPUT([ ], [ chmod +x wx-config + if test ! -e include/wx/${TOOLKIT_DIR}/setup.h; then + ${LN_S} `pwd`/setup.h include/wx/${TOOLKIT_DIR}/setup.h + fi ], [ - SETUPH_DIR=${SETUPH_DIR} + LN_S="${ac_cv_prog_LN_S}" + TOOLKIT_DIR="${TOOLKIT_DIR}" ] ) diff --git a/samples/Makefile.am b/samples/Makefile.am index 049d870..d119098 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -8,8 +8,17 @@ SUBDIRS = minimal \ @SAMPLES_SUBDIRS@ -# do nothing during "make install" in the samples subdirectory (can't override -# install because install-recursive is its dependency which is still built) +# do nothing during "make [un]install" in the samples subdirectory (can't +# override install because install-recursive is its dependency which is still +# built) +# +# this results in warnings from make about "overriding commands for garget +# install-recursive", but it's more than compensated by the time we gain by not +# entering/leaving all samples directories (but if somebody has a better +# solution it would be welcome!) install-recursive: @true +uninstall-recursive: + @true + diff --git a/wx-config.in b/wx-config.in index 6b59a40..884eb80 100755 --- a/wx-config.in +++ b/wx-config.in @@ -44,7 +44,7 @@ while test $# -gt 0; do includes=-I@includedir@ fi fi - includes="$includes -I@includedir@ -I@datadir@/@PACKAGE@/include" + includes="$includes -I@datadir@/@PACKAGE@/include" echo $includes @WXDEBUG_DEFINE@ @TOOLKIT_DEF@ @TOOLKIT_INCLUDE@ ;; --libs) -- 2.7.4