Annotation of sql/sqlite/configure.in, revision 1.14

1.14    ! moko        1: dnl Autoconf initialisation
1.1       misha       2: 
1.14    ! moko        3: AC_PREREQ(2.59)
        !             4: AC_INIT(parser3sqlite.C, 10.2)
        !             5: AC_CONFIG_SRCDIR(parser3sqlite.C)
        !             6: AM_CONFIG_HEADER(config_auto.h)
        !             7: 
        !             8: dnl Automake Initialisation
1.1       misha       9: 
1.14    ! moko       10: AM_INIT_AUTOMAKE
        !            11: 
        !            12: dnl Checks for argumenrs
1.1       misha      13: 
                     14: AC_DEFUN([SQLITE_INC_CHK],[
1.2       misha      15:        if test -r "$1/sqlite3.h"; then
1.1       misha      16:                SQLITE_INC=$1
                     17:        fi
                     18: ])
1.14    ! moko       19: 
1.1       misha      20: dnl Arguments
                     21: 
                     22: AC_ARG_WITH(sqlite-inc,[  --with-sqlite-inc=DIR        DIR is the SQLite includes directory],
                     23:        SQLITE_INC_CHK($withval)
                     24: 
1.5       misha      25:        if test -z "$SQLITE_INC"; then
1.1       misha      26:                AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
1.5       misha      27:        fi
1.1       misha      28: ,
                     29:        AC_MSG_CHECKING(for SQLITE_INC directory)
                     30:        for d in \
1.11      moko       31:                /usr/local/include \
                     32:                /usr/include \
1.1       misha      33:                /usr/local/include/sqlite \
                     34:                /usr/include/sqlite ; do
                     35:                SQLITE_INC_CHK($d)
                     36:        done
                     37: 
1.5       misha      38:        if test -z "$SQLITE_INC"; then
                     39:                AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
                     40:        fi
1.1       misha      41: 
                     42:        AC_MSG_RESULT($SQLITE_INC)
                     43: )
                     44: 
                     45: AC_SUBST(SQLITE_INC)
                     46: 
1.7       misha      47: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     48:                           by default, libstdc++ is linked statically],[
                     49:                LDFLAGS="-lstdc++"
                     50: ],[
                     51:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     52: ])
                     53: 
                     54: AC_SUBST(LDFLAGS)
                     55: 
1.14    ! moko       56: dnl Checks for programs
        !            57: 
1.1       misha      58: AC_PROG_INSTALL
                     59: AC_PROG_CXX
                     60: AC_PROG_CC
                     61: 
                     62: dnl Enable building of the convenience library
                     63: dnl and set LIBLTDL accordingly
1.10      moko       64: 
1.14    ! moko       65: LT_CONFIG_LTDL_DIR([libltdl])
1.10      moko       66: LT_INIT([dlopen])
1.14    ! moko       67: LTDL_INIT
1.10      moko       68: 
1.14    ! moko       69: dnl Configure libtool
1.10      moko       70: 
1.1       misha      71: AC_DISABLE_STATIC
                     72: 
1.14    ! moko       73: dnl Checks for libraries
1.1       misha      74: 
1.14    ! moko       75: dnl Checks for header files
1.1       misha      76: 
                     77: AC_CHECK_HEADERS(
                     78: stdio.h \
                     79: stdlib.h \
                     80: string.h \
                     81: setjmp.h \
                     82: ctype.h
                     83: )
                     84: 
1.14    ! moko       85: dnl Checks for typedefs, structures, and compiler characteristics
1.1       misha      86: 
                     87: AC_TYPE_SIZE_T
                     88: 
1.14    ! moko       89: dnl Checks for library functions
1.1       misha      90: 
                     91: dnl Output makefiles
                     92: 
                     93: AC_OUTPUT(Makefile)

E-mail: