Ticket #12310: libs.patch

File libs.patch, 5.2 KB (added by sfiera@…, 17 years ago)
  • base/Mk/macports.autoconf.mk.in

    diff --git a/base/Mk/macports.autoconf.mk.in b/base/Mk/macports.autoconf.mk.in
    index 8e70b0a..b91f7a1 100644
    a b srcdir = @srcdir@ 
    55VPATH                   = @srcdir@
    66
    77CC                      = @CC@
    8 CFLAGS                  = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL)
    9 OBJCFLAGS               = @OBJCFLAGS@ $(CFLAGS_WERROR) ${CFLAGS_DEBUG}  $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL)
     8CFLAGS                  = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS)
     9OBJCFLAGS               = @OBJCFLAGS@ $(CFLAGS_WERROR) ${CFLAGS_DEBUG} $(CFLAGS_OPTIMIZE) $(CPPFLAGS)
    1010CPPFLAGS                = @CPPFLAGS@ @DEFS@ @INCLUDES@ @TCL_INCLUDES@
    1111TCL_DEFS                = @TCL_DEFS@
    1212SHLIB_CFLAGS            = @SHLIB_CFLAGS@
    CFLAGS_DEBUG = @CFLAGS_DEBUG@ 
    1414CFLAGS_OPTIMIZE         = @CFLAGS_OPTIMIZE@
    1515CFLAGS_QUICHEEATERS     = @CFLAGS_QUICHEEATERS@
    1616CFLAGS_WERROR           = @CFLAGS_WERROR@
    17 CFLAGS_LIBCURL          = @CFLAGS_LIBCURL@
     17
     18READLINE_CFLAGS         =
     19MD5_CFLAGS              =
     20SQLITE3_CFLAGS          =
     21CURL_CFLAGS             = @CFLAGS_LIBCURL@
    1822
    1923OBJC_RUNTIME            = @OBJC_RUNTIME@
    2024OBJC_RUNTIME_FLAGS      = @OBJC_RUNTIME_FLAGS@
    OBJC_FOUNDATION_LIBS = @OBJC_FOUNDATION_LIBS@ 
    2731
    2832TCL_CC                  = @TCL_CC@
    2933SHLIB_LD                = @SHLIB_LD@
    30 LDFLAGS_LIBCURL         = @LDFLAGS_LIBCURL@
    31 LDFLAGS                 =  -L/usr/local/lib @LDFLAGS@ $(LDFLAGS_LIBCURL)
     34STLIB_LD                = @STLIB_LD@
     35LDFLAGS                 = -L/usr/local/lib @LDFLAGS@
    3236SHLIB_LDFLAGS           = @SHLIB_LDFLAGS@ ${LDFLAGS}
    3337SHLIB_SUFFIX            = @SHLIB_SUFFIX@
    3438TCL_STUB_LIB_SPEC       = @TCL_STUB_LIB_SPEC@
    3539
    3640LIBS                    = @LIBS@
     41READLINE_LIBS           = @READLINE_LIBS@
    3742MD5_LIBS                = @MD5_LIBS@
    3843SQLITE3_LIBS            = @SQLITE3_LIBS@
     44CURL_LIBS               = @LDFLAGS_LIBCURL@
    3945INSTALL                 = @INSTALL@
    4046MTREE                   = @MTREE@
    4147LN_S                    = @LN_S@
  • base/Mk/macports.tea.mk

    diff --git a/base/Mk/macports.tea.mk b/base/Mk/macports.tea.mk
    index 9d73866..2b1ee1e 100644
    a b  
    77        ${CC} -c -DUSE_TCL_STUBS ${CFLAGS} ${TCL_DEFS} ${SHLIB_CFLAGS} $< -o $@
    88
    99$(SHLIB_NAME):: ${OBJS}
    10         ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} ${SQLITE3_LIBS}
     10        ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS}
    1111
    1212all:: ${SHLIB_NAME}
    1313
  • base/configure

    diff --git a/base/configure b/base/configure
    index 3b081e3..b0469f5 100755
    a b X_CFLAGS 
    729729X_PRE_LIBS
    730730X_LIBS
    731731X_EXTRA_LIBS
     732READLINE_LIBS
    732733TCL_VERSION
    733734TCL_BIN_DIR
    734735TCL_SRC_DIR
    echo "$as_me: error: Broken X11 install" >&2;} 
    1032610327
    1032710328
    1032810329# Check for readline
    10329 
    1033010330{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
    1033110331echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
    1033210332if test "${ac_cv_lib_readline_readline+set}" = set; then
    fi 
    1038910389{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
    1039010390echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
    1039110391if test $ac_cv_lib_readline_readline = yes; then
    10392   cat >>confdefs.h <<_ACEOF
     10392
     10393              READLINE_LIBS=-lreadline
     10394
     10395cat >>confdefs.h <<\_ACEOF
    1039310396#define HAVE_LIBREADLINE 1
    1039410397_ACEOF
    1039510398
    10396   LIBS="-lreadline $LIBS"
    1039710399
    1039810400fi
    1039910401
    fi 
    1083210834
    1083310835
    1083410836
     10837
    1083510838# Lowest non-system-reserved uid and gid (Apple claims <500)
    1083610839
    1083710840cat >>confdefs.h <<\_ACEOF
    X_CFLAGS!$X_CFLAGS$ac_delim 
    1247412477X_PRE_LIBS!$X_PRE_LIBS$ac_delim
    1247512478X_LIBS!$X_LIBS$ac_delim
    1247612479X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
     12480READLINE_LIBS!$READLINE_LIBS$ac_delim
    1247712481TCL_VERSION!$TCL_VERSION$ac_delim
    1247812482TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
    1247912483TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
    LIBOBJS!$LIBOBJS$ac_delim 
    1251012514LTLIBOBJS!$LTLIBOBJS$ac_delim
    1251112515_ACEOF
    1251212516
    12513   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
     12517  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
    1251412518    break
    1251512519  elif $ac_last_try; then
    1251612520    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  • base/configure.ac

    diff --git a/base/configure.ac b/base/configure.ac
    index 4249844..92b7889 100644
    a b MP_LIB_MD5 
    9595MP_CHECK_X11
    9696
    9797# Check for readline
    98 AC_CHECK_LIB([readline], [readline])
     98AC_CHECK_LIB([readline], [readline], [
     99              READLINE_LIBS=-lreadline
     100              AC_DEFINE([HAVE_LIBREADLINE], [1], [Define to 1 if you have the `readline' library (-lreadline).])
     101              ])
    99102AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function,rl_completion_matches,username_completion_function,filename_completion_function,completion_matches], [], [],
    100103[
    101104#include <stdio.h>
    AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function, 
    103106# include <readline/readline.h>
    104107#endif
    105108])
     109AC_SUBST(READLINE_LIBS)
    106110
    107111# Lowest non-system-reserved uid and gid (Apple claims <500)
    108112AC_DEFINE([MIN_USABLE_UID], [500], [Lowest non-system-reserved UID.])
  • base/src/pextlib1.0/Makefile

    diff --git a/base/src/pextlib1.0/Makefile b/base/src/pextlib1.0/Makefile
    index 4fd0a16..2fef0fb 100644
    a b export MACOSX_DEPLOYMENT_TARGET=10.3 
    99include ../../Mk/macports.autoconf.mk
    1010include ../../Mk/macports.tea.mk
    1111
     12CFLAGS+= ${CURL_CFLAGS} ${MD5_CFLAGS} ${READLINE_CFLAGS}
     13LIBS+= ${CURL_LIBS} ${MD5_LIBS} ${READLINE_LIBS}
     14
    1215.PHONY: test
    1316
    1417test:: ${SHLIB_NAME}