Changeset 415 for trunk/configure.ac
- Timestamp:
- Nov 1, 2012, 7:45:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r412 r415 12 12 dnl start 13 13 dnl 14 AM_INIT_AUTOMAKE(samhain, 3.0. 6)14 AM_INIT_AUTOMAKE(samhain, 3.0.8) 15 15 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 16 AC_CANONICAL_HOST … … 1425 1425 1426 1426 elif test "x${withval}" = "xoracle"; then 1427 AC_MSG_CHECKING(for oracle in /usr /usr/local ORACLE_HOME) 1427 1428 AC_MSG_CHECKING(for oracle in ORACLE_HOME /usr/local /usr) 1429 1428 1430 oracle_directory="/usr /usr/local ${ORACLE_HOME}" 1429 1431 for i in $oracle_directory; do 1430 if test -r $i/rdbms/demo/oci.h; then 1431 ORACLE_DIR=$i 1432 fi 1433 done 1432 1433 ff=`find $i -name oci.h 2>/dev/null | tail -1` 1434 if test "x$ff" = "x"; then 1435 : 1436 else 1437 ORACLE_INC=`dirname $ff` 1438 fi 1439 1440 fg=`find $i -name libclntsh.so 2>/dev/null | tail -1` 1441 if test "x$fg" = "x"; then 1442 : 1443 else 1444 ORACLE_LIB=`dirname $fg` 1445 fi 1446 1447 done 1434 1448 1435 if test -z "$ORACLE_DIR"; then 1449 if test -z "$ORACLE_INC"; then 1450 1436 1451 tmp="" 1437 1452 for i in $oracle_directory; do 1438 tmp="$tmp $i /rdbms/demo"1453 tmp="$tmp $i" 1439 1454 done 1440 FAIL_MESSAGE("OCI header file (oci.h)", $tmp) 1441 else 1442 for i in rdbms/demo rdbms/public network/public; do 1443 ORACLE_CPP_FLAGS="$ORACLE_CPP_FLAGS -I$ORACLE_DIR/$i" 1444 done 1445 ORACLE_LIB_DIR="$ORACLE_DIR/lib" 1446 AC_MSG_RESULT(yes) 1455 FAIL_MESSAGE("OCI header file (oci.h) please define ORACLE_INC directory where oci.h resides", $tmp) 1456 1457 elif test -z "$ORACLE_LIB"; then 1458 1459 tmp="" 1460 for i in $oracle_directory; do 1461 tmp="$tmp $i" 1462 done 1463 FAIL_MESSAGE("OCI library file (libclntsh.so) please define ORACLE_LIB directory where libclntsh.so resides", $tmp) 1464 1465 else 1466 1467 ORACLE_CPP_FLAGS="-I$ORACLE_INC" 1468 ORACLE_LIB_DIR="$ORACLE_LIB" 1469 1470 AC_MSG_RESULT([$ORACLE_INC $ORACLE_LIB]) 1447 1471 1448 1472 CPPFLAGS="${CPPFLAGS} ${ORACLE_CPP_FLAGS}" 1449 1473 1450 1474 ORACLE_LIBS="-lclntsh" 1475 1476 if test -r $ORACLE_LIB_DIR/libnnz11.so; then 1477 ORACLE_LIBS="${ORACLE_LIBS} -lnnz11" 1478 fi 1451 1479 if test -r $ORACLE_LIB_DIR/libwtc9.so; then 1452 1480 ORACLE_LIBS="${ORACLE_LIBS} -lwtc9"
Note:
See TracChangeset
for help on using the changeset viewer.