@@ -620,6 +620,7 @@ ac_includes_default="\
620
620
621
621
ac_subst_vars='LTLIBOBJS
622
622
LIBOBJS
623
+ SED
623
624
HYPERLIGHT
624
625
MEMORY_STATS
625
626
MBA3D
@@ -3040,6 +3041,25 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040
3041
3041
3042
3042
3043
3044
+ case $host_os in
3045
+ darwin* )
3046
+ LINUX=no
3047
+ DARWIN=yes
3048
+ FCFLAGS="-DDARWIN $FCFLAGS"
3049
+ CXXFLAGS="-DDARWIN -fpermissive $CXXFLAGS"
3050
+ CPPFLAGS="-DDARWIN $CPPFLAGS"
3051
+ # Should really check for Mac OS vs. straight Darwin here, or at least test
3052
+ # that the framework is valid
3053
+ LIBS="$LIBS -framework Carbon";;
3054
+ linux* )
3055
+ LINUX=yes
3056
+ DARWIN=no;;
3057
+ * )
3058
+ LINUX=no
3059
+ DARWIN=no;;
3060
+ esac
3061
+
3062
+
3043
3063
# Find compilers
3044
3064
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Fishing for legacy fortran compiler." >&5
3045
3065
$as_echo "$as_me: *** Fishing for legacy fortran compiler." >&6;}
@@ -10613,7 +10633,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
10613
10633
FCFLAGS="-fbounds-check -Wall -Wimplicit-interface -Wno-surprising ${FCFLAGS}"
10614
10634
CFLAGS="-fbounds-check -Wall ${CFLAGS}"
10615
10635
CXXFLAGS="-fbounds-check -Wall ${CXXFLAGS}"
10616
- LDFLAGS="-rdynamic ${LDFLAGS}"
10636
+ if test "$DARWIN" = "no" ; then
10637
+ LDFLAGS="-rdynamic ${LDFLAGS}"
10638
+ fi
10617
10639
elif test "$fcompiler" = "g95" ; then
10618
10640
FFLAGS="-fbounds-check -ftrace=full ${FFLAGS}"
10619
10641
FCFLAGS="-fbounds-check -ftrace=full ${FCFLAGS}"
@@ -15787,7 +15809,141 @@ fi
15787
15809
15788
15810
#*******************
15789
15811
15790
- ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile tools/version-info python/setup.py climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libwm/Makefile libvtkfortran/Makefile reduced_modelling/Makefile"
15812
+
15813
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15814
+ $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15815
+ if ${ac_cv_path_SED+:} false; then :
15816
+ $as_echo_n "(cached) " >&6
15817
+ else
15818
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15819
+ for ac_i in 1 2 3 4 5 6 7; do
15820
+ ac_script="$ac_script$as_nl$ac_script"
15821
+ done
15822
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15823
+ { ac_script=; unset ac_script;}
15824
+ if test -z "$SED"; then
15825
+ ac_path_SED_found=false
15826
+ # Loop through the user's path and test for each of PROGNAME-LIST
15827
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15828
+ for as_dir in $PATH
15829
+ do
15830
+ IFS=$as_save_IFS
15831
+ test -z "$as_dir" && as_dir=.
15832
+ for ac_prog in sed gsed; do
15833
+ for ac_exec_ext in '' $ac_executable_extensions; do
15834
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15835
+ as_fn_executable_p "$ac_path_SED" || continue
15836
+ # Check for GNU ac_path_SED and select it if it is found.
15837
+ # Check for GNU $ac_path_SED
15838
+ case `"$ac_path_SED" --version 2>&1` in
15839
+ *GNU*)
15840
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15841
+ *)
15842
+ ac_count=0
15843
+ $as_echo_n 0123456789 >"conftest.in"
15844
+ while :
15845
+ do
15846
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
15847
+ mv "conftest.tmp" "conftest.in"
15848
+ cp "conftest.in" "conftest.nl"
15849
+ $as_echo '' >> "conftest.nl"
15850
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15851
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15852
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
15853
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
15854
+ # Best one so far, save it but keep looking for a better one
15855
+ ac_cv_path_SED="$ac_path_SED"
15856
+ ac_path_SED_max=$ac_count
15857
+ fi
15858
+ # 10*(2^10) chars as input seems more than enough
15859
+ test $ac_count -gt 10 && break
15860
+ done
15861
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15862
+ esac
15863
+
15864
+ $ac_path_SED_found && break 3
15865
+ done
15866
+ done
15867
+ done
15868
+ IFS=$as_save_IFS
15869
+ if test -z "$ac_cv_path_SED"; then
15870
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15871
+ fi
15872
+ else
15873
+ ac_cv_path_SED=$SED
15874
+ fi
15875
+
15876
+ fi
15877
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15878
+ $as_echo "$ac_cv_path_SED" >&6; }
15879
+ SED="$ac_cv_path_SED"
15880
+ rm -f conftest.sed
15881
+
15882
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
15883
+ $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
15884
+ if ${ac_cv_path_GREP+:} false; then :
15885
+ $as_echo_n "(cached) " >&6
15886
+ else
15887
+ if test -z "$GREP"; then
15888
+ ac_path_GREP_found=false
15889
+ # Loop through the user's path and test for each of PROGNAME-LIST
15890
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15891
+ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15892
+ do
15893
+ IFS=$as_save_IFS
15894
+ test -z "$as_dir" && as_dir=.
15895
+ for ac_prog in grep ggrep; do
15896
+ for ac_exec_ext in '' $ac_executable_extensions; do
15897
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15898
+ as_fn_executable_p "$ac_path_GREP" || continue
15899
+ # Check for GNU ac_path_GREP and select it if it is found.
15900
+ # Check for GNU $ac_path_GREP
15901
+ case `"$ac_path_GREP" --version 2>&1` in
15902
+ *GNU*)
15903
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
15904
+ *)
15905
+ ac_count=0
15906
+ $as_echo_n 0123456789 >"conftest.in"
15907
+ while :
15908
+ do
15909
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
15910
+ mv "conftest.tmp" "conftest.in"
15911
+ cp "conftest.in" "conftest.nl"
15912
+ $as_echo 'GREP' >> "conftest.nl"
15913
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15914
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15915
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
15916
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
15917
+ # Best one so far, save it but keep looking for a better one
15918
+ ac_cv_path_GREP="$ac_path_GREP"
15919
+ ac_path_GREP_max=$ac_count
15920
+ fi
15921
+ # 10*(2^10) chars as input seems more than enough
15922
+ test $ac_count -gt 10 && break
15923
+ done
15924
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15925
+ esac
15926
+
15927
+ $ac_path_GREP_found && break 3
15928
+ done
15929
+ done
15930
+ done
15931
+ IFS=$as_save_IFS
15932
+ if test -z "$ac_cv_path_GREP"; then
15933
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15934
+ fi
15935
+ else
15936
+ ac_cv_path_GREP=$GREP
15937
+ fi
15938
+
15939
+ fi
15940
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
15941
+ $as_echo "$ac_cv_path_GREP" >&6; }
15942
+ GREP="$ac_cv_path_GREP"
15943
+
15944
+
15945
+
15946
+ ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile tools/version-info python/setup.py climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libwm/Makefile libvtkfortran/Makefile reduced_modelling/Makefile tests/tools.mk"
15791
15947
15792
15948
cat >confcache <<\_ACEOF
15793
15949
# This file is a shell script that caches the results of configure
@@ -16518,6 +16674,7 @@ do
16518
16674
"libwm/Makefile") CONFIG_FILES="$CONFIG_FILES libwm/Makefile" ;;
16519
16675
"libvtkfortran/Makefile") CONFIG_FILES="$CONFIG_FILES libvtkfortran/Makefile" ;;
16520
16676
"reduced_modelling/Makefile") CONFIG_FILES="$CONFIG_FILES reduced_modelling/Makefile" ;;
16677
+ "tests/tools.mk") CONFIG_FILES="$CONFIG_FILES tests/tools.mk" ;;
16521
16678
16522
16679
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16523
16680
esac
0 commit comments