From e2b8b0662c6132c0076dd703e80f9751caa439cf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Dec 1999 14:21:56 +0000 Subject: [PATCH] fixes for wxINSTALL_PREFIX definition git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 7 +++---- configure.in | 3 +-- src/make.env.in | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 15aa3048e0..e366a412fd 100755 --- a/configure +++ b/configure @@ -8266,7 +8266,7 @@ if test "$wxUSE_SHARED" = "yes"; then *-pc-os2_emx ) ;; *-*-beos* ) - SHARED_LD="${CC} -shared -o" + SHARED_LD="${LD} -shared -o" PIC_FLAG="-fPIC" WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" WX_ALL="CREATE_LINKS" @@ -12894,10 +12894,9 @@ if test "$wxUSE_GUI" = "yes"; then SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ font forty fractal image minimal richedit wxpoem" - EXTRADEFS="-DwxINSTALL_PREFIX=\"$prefix\"" + CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)" else SAMPLES_SUBDIRS="" - EXTRADEFS= fi SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" @@ -12959,7 +12958,7 @@ SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:12963: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:12962: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 diff --git a/configure.in b/configure.in index d7d470d681..ca8ee2824d 100644 --- a/configure.in +++ b/configure.in @@ -3124,10 +3124,9 @@ if test "$wxUSE_GUI" = "yes"; then font forty fractal image minimal richedit wxpoem" dnl this is needed to be able to find AFM files - EXTRADEFS="-DwxINSTALL_PREFIX=\"$prefix\"" + CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)" else SAMPLES_SUBDIRS="" - EXTRADEFS= fi dnl for convenience, sort the samples in alphabetical order diff --git a/src/make.env.in b/src/make.env.in index 5e2fc03a9a..d5ee1c213e 100644 --- a/src/make.env.in +++ b/src/make.env.in @@ -20,7 +20,7 @@ TOOLKITDIR = @TOOLKIT_DIR@ WXLIB = @WX_LIBRARY_NAME_STATIC@ WXSHLIB = @WX_LIBRARY_NAME_SHARED@ -EXTRADEFS = @EXTRADEFS@ +EXTRADEFS="-DwxINSTALL_PREFIX=\"@prefix@\"" ########################### VERSION ################################# @@ -65,8 +65,8 @@ SHARED_LD = @SHARED_LD@ # We *must* include CPPFLAGS in both of these, to make sure that all # header files get found. (KB) -CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@ @CPPFLAGS@ $(EXTRADEFS) -CPPFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CXXFLAGS@ @CPPFLAGS@ $(EXTRADEFS) +CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@ @CPPFLAGS@ +CPPFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CXXFLAGS@ @CPPFLAGS@ PICFLAGS = @PIC_FLAG@ LDFLAGS = @LDFLAGS@ -- 2.45.2