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
This commit is contained in:
Vadim Zeitlin 1999-06-02 12:03:19 +00:00
parent 45ec03f3d3
commit c7114f5962
3 changed files with 25 additions and 11 deletions

View File

@ -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}"
]
)

View File

@ -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

View File

@ -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)