aboutsummaryrefslogtreecommitdiff
path: root/src/configure.macosx.orig
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-03-04 21:21:30 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-03-04 21:21:30 -0500
commitd54fe7c1f704a63824c5bfa0ece65245572e9b27 (patch)
treeafc52015ffc2c74e0266653eecef1c8ef8ba5d91 /src/configure.macosx.orig
downloadcalfuse-d54fe7c1f704a63824c5bfa0ece65245572e9b27.tar.gz
Initial commit
Diffstat (limited to 'src/configure.macosx.orig')
-rwxr-xr-xsrc/configure.macosx.orig78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/configure.macosx.orig b/src/configure.macosx.orig
new file mode 100755
index 0000000..e391b24
--- /dev/null
+++ b/src/configure.macosx.orig
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+echo "***********************************"
+echo "***** Preparing Makefiles *********"
+echo "******** for Mac OS X *************"
+echo "***********************************"
+
+cp Makefile.MacOSX Makefile
+cp fuv/Makefile.MacOSX fuv/Makefile
+# cp fes/Makefile.MacOSX fes/Makefile
+cp analysis/Makefile.MacOSX analysis/Makefile
+cp libcf/Makefile.MacOSX libcf/Makefile
+cp cal/jitter/Makefile.MacOSX cal/jitter/Makefile
+cp slalib/mk.sv slalib/mk
+
+echo "***********************************"
+echo "***** Configuring cfitsio *********"
+echo "***********************************"
+
+
+cd cfitsio
+./configure
+cd ..
+
+echo "***********************************"
+echo "***** Done configuring cfitsio ****"
+echo "***********************************"
+echo
+
+FC=""
+for ac_prog in gfortran g77
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2
+ echo "checking for $ac_word..."
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ FC="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ if test -n "$FC"; then
+ echo " yes"
+ else
+ echo " no"
+ fi
+ test -n "$FC" && break
+done
+test -n "$FC" || FC="nope"
+
+if test $FC = 'nope' ; then
+ echo "Warning: No acceptable fortran compiler was found. Please install one from the GNU compilers."
+ echo "Read INSTALLING_CalFUSEv3.2.1 for details."
+else
+ if test $FC = 'g77' ; then
+ for mk in Makefile fuv/Makefile analysis/Makefile libcf/Makefile cal/jitter/Makefile
+ do
+ mv $mk ${mk}.sv
+ sed -e "s/-lgfortran/-lg2c/g" ${mk}.sv > $mk
+ done
+ sed -e "s/gfortran/g77/g" slalib/mk.sv > slalib/mk
+ fi
+ if ! test -d /sw/lib ; then
+ libfort=""
+ test -d /usr/local/lib && libfort="-L\/usr\/local\/lib\/ "
+ for mk in Makefile fuv/Makefile analysis/Makefile libcf/Makefile cal/jitter/Makefile
+ do
+ mv $mk ${mk}.sv2
+ sed -e "s/-L\/sw\/lib\/ /${libfort}/g" ${mk}.sv2 > ${mk}
+ done
+ fi
+ echo
+ echo "Type 'make clean' then 'make -e install'"
+fi