Changeset 25783
- Timestamp:
- 06/01/07 11:48:14 (18 months ago)
- Location:
- branches/dp2mp-move/base
- Files:
-
- 2 added
- 6 modified
-
Mk/macports.autoconf.mk.in (modified) (1 diff)
-
Mk/macports.tea.mk (modified) (1 diff)
-
aclocal.m4 (modified) (1 diff)
-
configure (modified) (12 diffs)
-
configure.ac (modified) (3 diffs)
-
src/Makefile.in (modified) (1 diff)
-
src/sqlite-3.1.3.diff (added)
-
src/sqlite-3.1.3.tar.gz (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/dp2mp-move/base/Mk/macports.autoconf.mk.in
r25399 r25783 25 25 LIBS = @LIBS@ 26 26 MD5_LIBS = @MD5_LIBS@ 27 SQLITE3_LIBS = @SQLITE3_LIBS@ 27 28 INSTALL = @INSTALL@ 28 29 MTREE = @MTREE@ -
branches/dp2mp-move/base/Mk/macports.tea.mk
r24454 r25783 3 3 4 4 $(SHLIB_NAME):: ${OBJS} 5 ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} 5 ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} ${SQLITE3_LIBS} 6 6 7 7 all:: ${SHLIB_NAME} -
branches/dp2mp-move/base/aclocal.m4
r24454 r25783 728 728 729 729 730 # MP_PATH_SQLITE3731 # Specify sqlite3 location732 #733 # Arguments:734 # None.735 #736 # Requires:737 # System or user-specified --with-sqlite=dir to specify738 #739 # Results:740 # Sets SQLITE3_DIR to the directory where sqlite3 tcl pkgIndex.tcl is741 #---------------------------------------742 AC_DEFUN([MP_PATH_SQLITE3],[743 744 AC_ARG_WITH([sqlite],745 AS_HELP_STRING([--with-sqlite3=DIR],746 [directory for sqlite3 (default /usr/lib/sqlite3)]),747 [mp_sqlite3_dir=$withval], [mp_sqlite3_dir=/usr/lib/sqlite3])748 749 AC_CACHE_CHECK([for sqlite3 location], [mp_cv_sqlite3_dir],750 [mp_cv_sqlite3_dir=751 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir752 ])753 754 SQLITE3_DIR=$mp_cv_sqlite3_dir755 AC_SUBST(SQLITE3_DIR)756 ])757 758 730 dnl This macro tests if the compiler supports GCC's 759 731 dnl __attribute__ syntax for unused variables/parameters -
branches/dp2mp-move/base/configure
r25352 r25783 700 700 PORTSDIR 701 701 MPCONFIGDIR 702 SQLITE3_DIR703 702 DSTUSR 704 703 DSTGRP … … 730 729 LDFLAGS_LIBCURL 731 730 subdirs 731 SQLITE3_LIBS 732 SQLITE3_DIR 732 733 OUR_INCLUDED_PACKAGES 733 734 INCLUDES … … 766 767 CPP 767 768 XMKMF' 768 ac_subdirs_all='src/thread2.6' 769 ac_subdirs_all='src/thread2.6 770 src/sqlite-3.1.3' 769 771 770 772 # Initialize some variables set by options. … … 1351 1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1352 1354 --with-ports-dir=DIR Specify alternate ports directory 1353 --with-sqlite3=DIR directory for sqlite3 (default /usr/lib/sqlite3)1354 1355 --with-install-user=USER 1355 1356 Specify user ownership of installed files … … 1363 1364 --with-tclpackage Tcl package installation directory. 1364 1365 --with-curlprefix base directory for the cURL install '/usr', '/usr/local',... 1365 --with-included-tclthread install included Thread package. 1366 --with-included-tclthread 1367 install included Thread package. 1368 --with-included-sqlite3 build using bundled sqlite3 package 1369 --with-tcl-sqlite3=DIR directory for Tcl sqlite3 (default /usr/lib/sqlite3) 1366 1370 1367 1371 Some influential environment variables: … … 4053 4057 4054 4058 4055 4056 4057 # Check whether --with-sqlite was given.4058 if test "${with_sqlite+set}" = set; then4059 withval=$with_sqlite; mp_sqlite3_dir=$withval4060 else4061 mp_sqlite3_dir=/usr/lib/sqlite34062 fi4063 4064 4065 { echo "$as_me:$LINENO: checking for sqlite3 location" >&54066 echo $ECHO_N "checking for sqlite3 location... $ECHO_C" >&6; }4067 if test "${mp_cv_sqlite3_dir+set}" = set; then4068 echo $ECHO_N "(cached) $ECHO_C" >&64069 else4070 mp_cv_sqlite3_dir=4071 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir4072 4073 fi4074 { echo "$as_me:$LINENO: result: $mp_cv_sqlite3_dir" >&54075 echo "${ECHO_T}$mp_cv_sqlite3_dir" >&6; }4076 4077 SQLITE3_DIR=$mp_cv_sqlite3_dir4078 4079 4080 4081 4059 # Check for install ownership 4082 4060 … … 9492 9470 patch -p0 < src/thread2.6.diff 9493 9471 fi 9472 9473 ## sqlite3 package. 9474 9475 # Check whether --with-included-sqlite3 was given. 9476 if test "${with_included_sqlite3+set}" = set; then 9477 withval=$with_included_sqlite3; with_included_sqlite3=$withval 9478 else 9479 with_included_sqlite3="unspecified" 9480 fi 9481 9482 9483 # Check if sqlite3 package is already installed. 9484 if test "x$with_included_sqlite3" = "xunspecified" ; then 9485 { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 9486 echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; } 9487 if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then 9488 echo $ECHO_N "(cached) $ECHO_C" >&6 9489 else 9490 ac_check_lib_save_LIBS=$LIBS 9491 LIBS="-lsqlite3 $LIBS" 9492 cat >conftest.$ac_ext <<_ACEOF 9493 /* confdefs.h. */ 9494 _ACEOF 9495 cat confdefs.h >>conftest.$ac_ext 9496 cat >>conftest.$ac_ext <<_ACEOF 9497 /* end confdefs.h. */ 9498 9499 /* Override any GCC internal prototype to avoid an error. 9500 Use char because int might match the return type of a GCC 9501 builtin and then its argument prototype would still apply. */ 9502 #ifdef __cplusplus 9503 extern "C" 9504 #endif 9505 char sqlite3_open (); 9506 int 9507 main () 9508 { 9509 return sqlite3_open (); 9510 ; 9511 return 0; 9512 } 9513 _ACEOF 9514 rm -f conftest.$ac_objext conftest$ac_exeext 9515 if { (ac_try="$ac_link" 9516 case "(($ac_try" in 9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9518 *) ac_try_echo=$ac_try;; 9519 esac 9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9521 (eval "$ac_link") 2>conftest.er1 9522 ac_status=$? 9523 grep -v '^ *+' conftest.er1 >conftest.err 9524 rm -f conftest.er1 9525 cat conftest.err >&5 9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9527 (exit $ac_status); } && { 9528 test -z "$ac_c_werror_flag" || 9529 test ! -s conftest.err 9530 } && test -s conftest$ac_exeext && 9531 $as_test_x conftest$ac_exeext; then 9532 ac_cv_lib_sqlite3_sqlite3_open=yes 9533 else 9534 echo "$as_me: failed program was:" >&5 9535 sed 's/^/| /' conftest.$ac_ext >&5 9536 9537 ac_cv_lib_sqlite3_sqlite3_open=no 9538 fi 9539 9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9541 conftest$ac_exeext conftest.$ac_ext 9542 LIBS=$ac_check_lib_save_LIBS 9543 fi 9544 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 9545 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 9546 if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then 9547 with_included_sqlite3=no 9548 else 9549 with_included_sqlite3=yes 9550 fi 9551 9552 fi 9553 9554 9555 # Check whether --with-tcl-sqlite3 was given. 9556 if test "${with_tcl_sqlite3+set}" = set; then 9557 withval=$with_tcl_sqlite3; mp_sqlite3_dir=$withval 9558 else 9559 mp_sqlite3_dir=/usr/lib/sqlite3 9560 fi 9561 9562 9563 # If sqlite3 package isn't installed, configure and install sqlite3 package. 9564 if test "$with_included_sqlite3" = "yes"; then 9565 OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3" 9566 subdirs="$subdirs src/sqlite-3.1.3" 9567 9568 # Extract sqlite3 package 9569 (cd src/; gzip -d < sqlite-3.1.3.tar.gz | tar xf -) 9570 # patch sqlite3 with desired configure options 9571 patch -p0 < src/sqlite-3.1.3.diff 9572 # the new tclinstaller.tcl needs to have substitution occur 9573 mv src/sqlite-3.1.3/tclinstaller.tcl src/sqlite-3.1.3/tclinstaller.tcl.in 9574 SQLITE3_LIBS=`pwd`"/src/sqlite-3.1.3/.libs/libsqlite3.a" 9575 if test "x$prefix" = "xNONE" ; then 9576 SQLITE3_DIR=$ac_default_prefix/share/macports/Tcl/sqlite3 9577 else 9578 SQLITE3_DIR=$prefix/share/macports/Tcl/sqlite3 9579 fi 9580 else 9581 SQLITE3_LIBS="-lsqlite3" 9582 9583 { echo "$as_me:$LINENO: checking for Tcl sqlite3 location" >&5 9584 echo $ECHO_N "checking for Tcl sqlite3 location... $ECHO_C" >&6; } 9585 if test "${mp_cv_sqlite3_dir+set}" = set; then 9586 echo $ECHO_N "(cached) $ECHO_C" >&6 9587 else 9588 mp_cv_sqlite3_dir= 9589 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 9590 9591 fi 9592 { echo "$as_me:$LINENO: result: $mp_cv_sqlite3_dir" >&5 9593 echo "${ECHO_T}$mp_cv_sqlite3_dir" >&6; } 9594 9595 SQLITE3_DIR=$mp_cv_sqlite3_dir 9596 fi 9597 9598 9599 9494 9600 9495 9601 … … 10286 10392 PORTSDIR!$PORTSDIR$ac_delim 10287 10393 MPCONFIGDIR!$MPCONFIGDIR$ac_delim 10288 SQLITE3_DIR!$SQLITE3_DIR$ac_delim10289 10394 DSTUSR!$DSTUSR$ac_delim 10290 10395 DSTGRP!$DSTGRP$ac_delim … … 10300 10405 X_LIBS!$X_LIBS$ac_delim 10301 10406 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 10407 TCL_VERSION!$TCL_VERSION$ac_delim 10302 10408 _ACEOF 10303 10409 … … 10341 10447 for ac_last_try in false false false false false :; do 10342 10448 cat >conf$$subs.sed <<_ACEOF 10343 TCL_VERSION!$TCL_VERSION$ac_delim10344 10449 TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 10345 10450 TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim … … 10357 10462 LDFLAGS_LIBCURL!$LDFLAGS_LIBCURL$ac_delim 10358 10463 subdirs!$subdirs$ac_delim 10464 SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim 10465 SQLITE3_DIR!$SQLITE3_DIR$ac_delim 10359 10466 OUR_INCLUDED_PACKAGES!$OUR_INCLUDED_PACKAGES$ac_delim 10360 10467 INCLUDES!$INCLUDES$ac_delim … … 10375 10482 _ACEOF 10376 10483 10377 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3 2; then10484 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then 10378 10485 break 10379 10486 elif $ac_last_try; then -
branches/dp2mp-move/base/configure.ac
r25352 r25783 59 59 MP_PATH_PORTSDIR([$PORTS_DIR_DEFAULT]) 60 60 MP_PATH_MPCONFIGDIR 61 MP_PATH_SQLITE362 61 63 62 # Check for install ownership … … 136 135 AC_ARG_WITH( 137 136 included-tclthread, 138 [ --with-included-tclthread install included Thread package.], 137 AS_HELP_STRING([--with-included-tclthread], 138 [install included Thread package.]), 139 139 [with_included_tclthread=$withval], 140 140 [with_included_tclthread="unspecified"]) … … 157 157 patch -p0 < src/thread2.6.diff 158 158 fi 159 160 ## sqlite3 package. 161 AC_ARG_WITH( 162 included-sqlite3, 163 AS_HELP_STRING([--with-included-sqlite3], 164 [build using bundled sqlite3 package]), 165 [with_included_sqlite3=$withval], 166 [with_included_sqlite3="unspecified"]) 167 168 # Check if sqlite3 package is already installed. 169 if test "x$with_included_sqlite3" = "xunspecified" ; then 170 AC_CHECK_LIB([sqlite3],[sqlite3_open], 171 [with_included_sqlite3=no], 172 [with_included_sqlite3=yes]) 173 fi 174 175 AC_ARG_WITH( 176 tcl-sqlite3, 177 AS_HELP_STRING([--with-tcl-sqlite3=DIR], 178 [directory for Tcl sqlite3 (default /usr/lib/sqlite3)]), 179 [mp_sqlite3_dir=$withval], 180 [mp_sqlite3_dir=/usr/lib/sqlite3]) 181 182 # If sqlite3 package isn't installed, configure and install sqlite3 package. 183 if test "$with_included_sqlite3" = "yes"; then 184 OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3" 185 AC_CONFIG_SUBDIRS([src/sqlite-3.1.3]) 186 # Extract sqlite3 package 187 (cd src/; gzip -d < sqlite-3.1.3.tar.gz | tar xf -) 188 # patch sqlite3 with desired configure options 189 patch -p0 < src/sqlite-3.1.3.diff 190 # the new tclinstaller.tcl needs to have substitution occur 191 mv src/sqlite-3.1.3/tclinstaller.tcl src/sqlite-3.1.3/tclinstaller.tcl.in 192 SQLITE3_LIBS=`pwd`"/src/sqlite-3.1.3/.libs/libsqlite3.a" 193 if test "x$prefix" = "xNONE" ; then 194 SQLITE3_DIR=$ac_default_prefix/share/macports/Tcl/sqlite3 195 else 196 SQLITE3_DIR=$prefix/share/macports/Tcl/sqlite3 197 fi 198 else 199 SQLITE3_LIBS="-lsqlite3" 200 201 AC_CACHE_CHECK([for Tcl sqlite3 location], [mp_cv_sqlite3_dir], 202 [mp_cv_sqlite3_dir= 203 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 204 ]) 205 206 SQLITE3_DIR=$mp_cv_sqlite3_dir 207 fi 208 209 AC_SUBST(SQLITE3_LIBS) 210 AC_SUBST(SQLITE3_DIR) 159 211 160 212 AC_SUBST(OUR_INCLUDED_PACKAGES) -
branches/dp2mp-move/base/src/Makefile.in
r24454 r25783 1 TCLPKG= macports1.0 port1.0 package1.0 pextlib1.0 registry1.0 \2 darwintracelib1.0 @OUR_INCLUDED_PACKAGES@1 TCLPKG= @OUR_INCLUDED_PACKAGES@ macports1.0 port1.0 package1.0 \ 2 pextlib1.0 registry1.0 darwintracelib1.0 3 3 SUBDIR= ${TCLPKG} port programs 4 4

