Ticket #42886: patch-admin-gildas-env.sh.diff
File patch-admin-gildas-env.sh.diff, 4.3 KB (added by smaret (Sebastien Maret), 11 years ago) |
---|
-
admin/gildas-env.sh
old new 418 418 fi 419 419 # 420 420 # Check availability of g++. This only has an impact on ATM2009 421 if \which g++> /dev/null 2>&1; then421 if \which @CXX@ > /dev/null 2>&1; then 422 422 ATM2009_PRESENT=yes 423 423 else 424 424 gagenv_message "g++ not found in your \$PATH" … … 435 435 NUMPY_PRESENT=no 436 436 NUMERIC_PRESENT=no 437 437 SQLITE3_PRESENT=no 438 if \which python> /dev/null 2>&1; then438 if \which @PYTHON@ > /dev/null 2>&1; then 439 439 # Check the version of python the user is currently using 440 if python-V 2>&1 > /dev/null 2>&1; then441 PY_VERS_FULL=` python-V 2>&1 | cut -d' ' -f2`440 if @PYTHON@ -V 2>&1 > /dev/null 2>&1; then 441 PY_VERS_FULL=`@PYTHON@ -V 2>&1 | cut -d' ' -f2` 442 442 PY_VERS=`echo $PY_VERS_FULL | sed "s%\([0-9]\.[0-9][0-9]*\).*%\1%"` 443 443 # Search for Python header and library. kernel/python/binding/setup.py 444 444 # does exactly the same, so this should be consistent 445 PYTHON_INC_DIR=` python-c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'))"`445 PYTHON_INC_DIR=`@PYTHON@ -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'))"` 446 446 if [ -e "$PYTHON_INC_DIR/Python.h" ]; then PYTHON_INC=yes; else PYTHON_INC=no; fi 447 PYTHON_LIB_DIR=` python-c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'))"`447 PYTHON_LIB_DIR=`@PYTHON@ -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'))"` 448 448 PYTHON_LIB=yes # libpython name on the various supported systems is just 449 449 # unpredictible. Can not check in advance if the linker will 450 450 # find it or not. 451 451 # 452 452 # Now search for Numpy or Numeric 453 if python-c "import numpy" > /dev/null 2>&1; then453 if @PYTHON@ -c "import numpy" > /dev/null 2>&1; then 454 454 NUMPY_PRESENT=yes 455 NUMPY_INC_DIR=` python-c "import numpy; print(numpy.__path__[0] + '/core/include')"`455 NUMPY_INC_DIR=`@PYTHON@ -c "import numpy; print(numpy.__path__[0] + '/core/include')"` 456 456 if [ -e "$NUMPY_INC_DIR/numpy/arrayobject.h" ]; then 457 457 NUMPY_INC_PRESENT=yes 458 458 else 459 459 NUMPY_INC_PRESENT=no 460 460 fi 461 elif python-c "import Numeric"> /dev/null 2>&1; then461 elif @PYTHON@ -c "import Numeric"> /dev/null 2>&1; then 462 462 NUMERIC_PRESENT=yes 463 463 fi 464 464 # Search for sqlite3 465 if python-c "import sqlite3" > /dev/null 2>&1; then465 if @PYTHON@ -c "import sqlite3" > /dev/null 2>&1; then 466 466 SQLITE3_PRESENT=yes 467 467 fi 468 468 fi … … 538 538 ATM2003_PRESENT=yes 539 539 ATM2003_LIB_DIR=$DIR 540 540 fi 541 if file_present "lib lapack." "${DIR}"; then541 if file_present "libLAPACK." "${DIR}"; then 542 542 LAPACK_PRESENT=yes 543 543 LAPACK_LIB_DIR=$DIR 544 544 fi 545 if file_present "lib blas." "${DIR}"; then545 if file_present "libBLAS." "${DIR}"; then 546 546 BLAS_PRESENT=yes 547 547 BLAS_LIB_DIR=$DIR 548 548 fi … … 550 550 SLATEC_PRESENT=yes 551 551 SLATEC_LIB_DIR=$DIR 552 552 fi 553 if file_present "libfftw3." "${DIR}"; then554 FFTW3_PRESENT=yes555 FFTW3_LIB_DIR=$DIR556 if file_present "libfftw3f." "${DIR}"; then557 FFTW3F_PRESENT=yes558 fi559 fi553 # if file_present "libfftw3." "${DIR}"; then 554 # FFTW3_PRESENT=yes 555 # FFTW3_LIB_DIR=$DIR 556 # if file_present "libfftw3f." "${DIR}"; then 557 # FFTW3F_PRESENT=yes 558 # fi 559 # fi 560 560 if file_present "libasdmStandalone." "${DIR}"; then 561 561 SDM_PRESENT=yes 562 562 if [ "$SDM_PRESENT" = "yes" ]; then … … 590 590 XML_PRESENT="yes" 591 591 # 592 592 unset GAG_LIB_DEP_PATH GAG_INC_DEP_PATH 593 GAG_INC_DEP_PATH=$GAG_INC_DEP_PATH:@PREFIX@/include 594 GAG_LIB_DEP_PATH=$GAG_INC_DEP_PATH:@PREFIX@/lib 593 595 # 594 596 if [ "$X11_INC" = "yes" ]; then 595 597 gagenv_message "Found X11 header in $X11_INC_DIR"