From 092aa0a96d8e3a6644cba38e4722ed52d7a0e49e Mon Sep 17 00:00:00 2001 From: "andreas.lagg" <lagg@mps.mpg.de> Date: Mon, 14 Aug 2023 15:47:11 +0200 Subject: [PATCH] library path order change in configure.ac --- configure.ac | 4 ++-- scripts/compile_mac | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index dd49daa..2512719 100644 --- a/configure.ac +++ b/configure.ac @@ -253,8 +253,8 @@ if test "$fitsio" != "1" ; then AC_CHECK_FILE([${with_cfitsio_lib_path}/libcfitsio.a], [ok=1], AC_MSG_ERROR([Library file libcfitsio.a not found])) fi - IPATH=$IPATH" -I$with_cfitsio_include_path " - LPATH=$LPATH" -L$with_cfitsio_lib_path " + IPATH=" -I$with_cfitsio_include_path "$IPATH + LPATH=" -L$with_cfitsio_lib_path "$LPATH AC_MSG_NOTICE([CFITSIO Libraries: $with_cfitsio_lib_path]) AC_MSG_NOTICE([CFITSIO Include: $with_cfitsio_include_path]) fi diff --git a/scripts/compile_mac b/scripts/compile_mac index 95b0388..925d6ba 100755 --- a/scripts/compile_mac +++ b/scripts/compile_mac @@ -16,6 +16,11 @@ cfitsio=/opt/homebrew/ dislin=/usr/local/dislin #dislin= +#create gfortran MPI version with MPI +./configure FC=gfortran --with-mpi --with-cfitsio=$cfitsio +make clean all install +[ $? != 0 ] && { echo "Compilation failed. Exit." ; exit ;} + #create ifort version with X11 ./configure FC=gfortran --with-dislin=$dislin --with-cfitsio=$cfitsio make clean all install @@ -27,12 +32,6 @@ make clean all install make clean all install [ $? != 0 ] && { echo "Compilation failed. Exit." ; exit ;} -#create gfortran MPI version with X11 -cfitsio=$HOME/idl/fitsdlm/cfitsio -./configure FC=gfortran --with-mpi --with-cfitsio=$cfitsio -make clean all install -[ $? != 0 ] && { echo "Compilation failed. Exit." ; exit ;} - #create IDL shared libraries using $FC cfitsio=$HOME/idl/fitsdlm/cfitsio ./configure FC=gfortran --with-idl --with-cfitsio=$cfitsio -- GitLab