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
dnl defines INSTALL with the appropriate command
AC_PROG_INSTALL
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)
dnl strip command
dnl defines STRIP as strip or nothing if not found
AC_CHECK_PROG(STRIP, strip, strip, true)
dnl filename output by the lexer
AM_PROG_LEX
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
dnl libtool checks (disable static libs by default, this takes too much time...)
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_SUBST(LIBS)
dnl create the configuration header file from the template
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
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
+ 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}"
SUBDIRS = minimal \
@SAMPLES_SUBDIRS@
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!)
+uninstall-recursive:
+ @true
+
includes=-I@includedir@
fi
fi
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)
echo $includes @WXDEBUG_DEFINE@ @TOOLKIT_DEF@ @TOOLKIT_INCLUDE@
;;
--libs)