Changeset 17269


Ignore:
Timestamp:
Apr 1, 2006, 3:40:11 AM (14 years ago)
Author:
jberry
Message:

Add support for configuration of sqlite3 tcl library through autoconf
and loading of the library at runtime, based on this setting.

Defaults to location on 10.4, which is /usr/lib/sqlite3. Location may be
specified explicitly for 10.3 systems.

Note: there is no requirement yet for sqlite3 as a dependency for darwinports,
though there may be in the future.

Location:
trunk/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r16351 r17269  
    733733])
    734734
     735
     736# OD_PATH_SQLITE3
     737#       Specify sqlite3 location
     738#
     739# Arguments:
     740#       None.
     741#
     742# Requires:
     743#   System or user-specified --with-sqlite=dir to specify
     744#
     745# Results:
     746#   Sets SQLITE3_DIR to the directory where sqlite3 tcl pkgIndex.tcl is
     747#---------------------------------------
     748AC_DEFUN([OD_PATH_SQLITE3],[
     749
     750        AC_ARG_WITH([sqlite],
     751                AS_HELP_STRING([--with-sqlite3=DIR],
     752                        [directory for sqlite3 (default /usr/lib/sqlite3)]),           
     753                [od_sqlite3_dir=$withval], [od_sqlite3_dir=/usr/lib/sqlite3])
     754               
     755        AC_CACHE_CHECK([for sqlite3 location], [od_cv_sqlite3_dir],
     756                [od_cv_sqlite3_dir=
     757                test -r "${od_sqlite3_dir}/pkgIndex.tcl" && od_cv_sqlite3_dir=$od_sqlite3_dir
     758                ])
     759               
     760        SQLITE3_DIR=$od_cv_sqlite3_dir
     761        AC_SUBST(SQLITE3_DIR)
     762])
     763
    735764dnl This macro tests if the compiler supports GCC's
    736765dnl __attribute__ syntax for unused variables/parameters
  • trunk/base/configure.ac

    r17114 r17269  
    5353OD_PATH_DPORTSDIR([$DPORTS_DIR_DEFAULT])
    5454OD_PATH_PORTCONFIGDIR
     55OD_PATH_SQLITE3
    5556
    5657# Check for install ownership
  • trunk/base/src/darwinports1.0/darwinports_fastload.tcl.in

    r14161 r17269  
    11# darwinports_fastload.tcl.in
    2 # $Id: darwinports_fastload.tcl.in,v 1.4 2005/09/19 21:32:19 jberry Exp $
     2# $Id: darwinports_fastload.tcl.in,v 1.5 2006/04/01 03:40:11 jberry Exp $
    33#
    44# Copyright (c) 2004 Paul Guyot, Darwinports Team.
     
    8484set dir [file join "@prefix_expanded@" share darwinports Tcl registry1.0]
    8585catch {source [file join $dir pkgIndex.tcl]}
     86
     87if { "@SQLITE3_DIR@" != "" } {
     88        catch {source [file join "@SQLITE3_DIR@" pkgIndex.tcl]}
     89}
Note: See TracChangeset for help on using the changeset viewer.