IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2005, 9:00:06 AM (21 years ago)
Author:
desonia
Message:

made mysql and swig to be enabled by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r3410 r3440  
    4444dnl MYSQL_CFLAGS="-I${includedir}/mysql"
    4545AC_ARG_ENABLE(mysql,
    46  [AC_HELP_STRING([--enable-mysql],[Build MySQL portions of psLib])],
    47  [AC_MSG_RESULT([enable building MySQL portions])
    48   MYSQL_REQ="yes"],
    49  [AC_MSG_RESULT([disable building MySQL portions])])
     46 [AC_HELP_STRING([--disable-mysql],[Disable MySQL functionality])],
     47 [MYSQL_REQ=$enableval],
     48 [MYSQL_REQ="yes"])
    5049
    5150if test "$MYSQL_REQ" == "yes"
    5251then
     52  AC_MSG_RESULT([enable building MySQL functionality])
    5353  AC_ARG_WITH(mysql,
    5454  [AC_HELP_STRING([--with-mysql=DIR],[Specify location of MYSQL.])],
     
    7979
    8080  CFLAGS="${CFLAGS=} -DBUILD_PSDB"
     81else
     82  AC_MSG_RESULT([disable building MySQL functionality])
    8183fi
    8284
     
    146148dnl ------------------- SWIG options ---------------------
    147149AC_ARG_ENABLE(perlmodule,
    148  [AC_HELP_STRING([--enable-perlmodule],[Create a perl module to allow use of psLib in perl])],
    149  [SWIG_REQ="yes"
    150   AC_MSG_RESULT([enable building perl module])],
    151  [
    152   AC_MSG_RESULT([disable building perl module])])
     150 [AC_HELP_STRING([--disable-perlmodule],[Disable creation of perl module])],
     151 [SWIG_REQ="$enableval"],
     152 [SWIG_REQ="yes"])
    153153
    154154if test "$SWIG_REQ" == "yes"
    155155then
     156  AC_MSG_RESULT([enable building perl module])
    156157  AC_ARG_WITH(swig,
    157158  [AC_HELP_STRING([--with-swig=FILE],[Specify location of SWIG executable.])],
     
    181182    [PERL_PREFIX="$prefix"])
    182183    AC_SUBST(PERL_PREFIX,$PERL_PREFIX)
     184else
     185  AC_MSG_RESULT([disable building perl module])
    183186fi
    184187
Note: See TracChangeset for help on using the changeset viewer.