From 380ab024a4eeadfed0e566c5d7e79b252c6ed9cc Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Mon, 4 Dec 2017 11:02:03 -0600 Subject: [PATCH] Add --with-udunits path to TRICK_EXCLUDE Fixes #524 --- autoconf/configure.ac | 2 + configure | 1367 ++--------------------- share/trick/makefiles/config_user.mk.in | 1 + 3 files changed, 79 insertions(+), 1291 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index b09f79ab..7e83121f 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -260,6 +260,7 @@ AS_IF([test "$UDUNITS_HOME" = ""], UDUNITS_LDFLAGS=-ludunits2 ], [ + UDUNITS_EXCLUDE=$UDUNITS_HOME AC_CHECK_FILE([$UDUNITS_HOME/include/udunits2.h], [UDUNITS_INCLUDES=-I$UDUNITS_HOME/include UDUNITS_LDFLAGS="-L$UDUNITS_HOME/lib -ludunits2" @@ -275,6 +276,7 @@ AS_IF([test "$UDUNITS_HOME" = ""], ) AC_SUBST([UDUNITS_INCLUDES]) AC_SUBST([UDUNITS_LDFLAGS]) +AC_SUBST([UDUNITS_EXCLUDE]) dnl process the other optional command line arguments AX_HDF5_HOME([]) diff --git a/configure b/configure index 0e90678b..8362b7a1 100755 --- a/configure +++ b/configure @@ -627,6 +627,7 @@ BC635_HOME TPROCTE_HOME DMTCP_HOME HDF5_HOME +UDUNITS_EXCLUDE UDUNITS_LDFLAGS UDUNITS_INCLUDES UDUNITS_HOME @@ -644,6 +645,7 @@ PTHREAD_LIBS PTHREAD_CC ax_pthread_config CPP +SED host_os host_vendor host_cpu @@ -675,8 +677,6 @@ LEX_OUTPUT_ROOT LEX LD TEE -GCC_VERSION -SED ac_ct_CXX CXXFLAGS CXX @@ -1572,231 +1572,6 @@ fi } # ac_fn_cxx_try_compile -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - -# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES -# -------------------------------------------- -# Tries to find the compile-time value of EXPR in a program that includes -# INCLUDES, setting VAR accordingly. Returns whether the value could be -# computed -ac_fn_c_compute_int () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=0 ac_mid=0 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid; break -else - as_fn_arith $ac_mid + 1 && ac_lo=$as_val - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=-1 ac_mid=-1 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=$ac_mid; break -else - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid -else - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in #(( -?*) eval "$3=\$ac_lo"; ac_retval=0 ;; -'') ac_retval=1 ;; -esac - else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (($2) < 0) - { - long int i = longval (); - if (i != ($2)) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ($2)) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - echo >>conftest.val; read $3 &5 -$as_echo_n "checking for C compiler vendor... " >&6; } -if ${ax_cv_c_compiler_vendor+:} false; then : - $as_echo_n "(cached) " >&6 -else - # note: don't check for gcc first since some other compilers define __GNUC__ - vendors="intel: __ICC,__ECC,__INTEL_COMPILER - ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ - pathscale: __PATHCC__,__PATHSCALE__ - clang: __clang__ - cray: _CRAYC - fujitsu: __FUJITSU - gnu: __GNUC__ - sun: __SUNPRO_C,__SUNPRO_CC - hp: __HP_cc,__HP_aCC - dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER - borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ - comeau: __COMO__ - kai: __KCC - lcc: __LCC__ - sgi: __sgi,sgi - microsoft: _MSC_VER - metrowerks: __MWERKS__ - watcom: __WATCOMC__ - portland: __PGI - tcc: __TINYC__ - unknown: UNKNOWN" - for ventest in $vendors; do - case $ventest in - *:) vendor=$ventest; continue ;; - *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; - esac - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - #if !($vencpp) - thisisanerror; - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 -$as_echo "$ax_cv_c_compiler_vendor" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -$as_echo_n "checking for C compiler version... " >&6; } -if ${ax_cv_c_compiler_version+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ax_cv_c_compiler_vendor in #( - intel) : - if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - ibm) : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -int -main () -{ - - #if defined(__COMPILER_VER__) - choke me; - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" - -else - - if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; #( - pathscale) : - - if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - clang) : - - if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch" ""; then : - -else - 0 -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - cray) : - - if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" - ;; #( - fujitsu) : - - if ac_fn_c_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_c_compiler_version" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release -See \`config.log' for more details" "$LINENO" 5; } -fi - - ;; #( - gnu) : - - if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - sun) : - - - if ac_fn_c_compute_int "$LINENO" "!!( - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - < 0x1000)" "_ax_c_compiler_version_until59" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if test "X$_ax_c_compiler_version_until59" = X1; then : - if ac_fn_c_compute_int "$LINENO" " - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - % 0x10" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - / 0x10) % 0x10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - / 0x100)" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - -else - if ac_fn_c_compute_int "$LINENO" " - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - % 0x10" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - / 0x100) % 0x100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__SUNPRO_CC) - __SUNPRO_CC - #else - __SUNPRO_C - #endif - / 0x1000)" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - -fi - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - hp) : - - - if ac_fn_c_compute_int "$LINENO" "!!( - #if defined(__HP_cc) - __HP_cc - #else - __HP_aCC - #endif - <= 1)" "_ax_c_compiler_version_untilA0121" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if test "X$_ax_c_compiler_version_untilA0121" = X1; then : - ax_cv_c_compiler_version="01.21.00" - -else - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__HP_cc) - __HP_cc - #else - __HP_aCC - #endif - % 100)" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(( - #if defined(__HP_cc) - __HP_cc - #else - __HP_aCC - #endif - / 100)%100)" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(( - #if defined(__HP_cc) - __HP_cc - #else - __HP_aCC - #endif - / 10000)%100)" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - -fi - ;; #( - dec) : - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__DECC_VER) - __DECC_VER - #else - __DECCXX_VER - #endif - % 10000)" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(( - #if defined(__DECC_VER) - __DECC_VER - #else - __DECCXX_VER - #endif - / 100000UL)%100)" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(( - #if defined(__DECC_VER) - __DECC_VER - #else - __DECCXX_VER - #endif - / 10000000UL)%100)" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - borland) : - - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - #if defined(__TURBOC__) - __TURBOC__ - #else - choke me - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if ac_fn_c_compute_int "$LINENO" " - #if defined(__TURBOC__) - __TURBOC__ - #else - choke me - #endif - " "_ax_c_compiler_version_turboc_raw" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023; then : - if ac_fn_c_compute_int "$LINENO" " - #if defined(__TURBOC__) - __TURBOC__ - #else - choke me - #endif - % 0x100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(__TURBOC__) - __TURBOC__ - #else - choke me - #endif - /0x100)%0x100" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" -else - case $_ax_c_compiler_version_turboc_raw in #( - 661) : - ax_cv_c_compiler_version="0turboc:1.00" ;; #( - 662) : - ax_cv_c_compiler_version="0turboc:1.01" ;; #( - 663) : - ax_cv_c_compiler_version="0turboc:2.00" ;; #( - *) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5 -$as_echo "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;} - ax_cv_c_compiler_version="" - ;; -esac - -fi - -else - # borlandc - - if ac_fn_c_compute_int "$LINENO" " - #if defined(__BORLANDC__) - __BORLANDC__ - #else - __CODEGEARC__ - #endif - " "_ax_c_compiler_version_borlandc_raw" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version -See \`config.log' for more details" "$LINENO" 5; } -fi - - case $_ax_c_compiler_version_borlandc_raw in #( - 512 ) : - ax_cv_c_compiler_version="1borlanc:2.00" ;; #( - 1024) : - ax_cv_c_compiler_version="1borlanc:3.00" ;; #( - 1024) : - ax_cv_c_compiler_version="1borlanc:3.00" ;; #( - 1040) : - ax_cv_c_compiler_version="1borlanc:3.1" ;; #( - 1106) : - ax_cv_c_compiler_version="1borlanc:4.0" ;; #( - 1280) : - ax_cv_c_compiler_version="1borlanc:5.0" ;; #( - 1312) : - ax_cv_c_compiler_version="1borlanc:5.02" ;; #( - 1328) : - ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #( - 1344) : - ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #( - 1360) : - ax_cv_c_compiler_version="3borlancpp:5.5" ;; #( - 1361) : - ax_cv_c_compiler_version="3borlancpp:5.51" ;; #( - 1378) : - ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #( - 1392) : - ax_cv_c_compiler_version="4cppbuilder:2006" ;; #( - 1424) : - ax_cv_c_compiler_version="4cppbuilder:2007" ;; #( - 1555) : - ax_cv_c_compiler_version="4cppbuilder:2009" ;; #( - 1569) : - ax_cv_c_compiler_version="4cppbuilder:2010" ;; #( - 1584) : - ax_cv_c_compiler_version="5xe" ;; #( - 1600) : - ax_cv_c_compiler_version="5xe:2" ;; #( - 1616) : - ax_cv_c_compiler_version="5xe:3" ;; #( - 1632) : - ax_cv_c_compiler_version="5xe:4" ;; #( - *) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknow borlanc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5 -$as_echo "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknow borlanc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&2;} - ;; -esac - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; #( - comeau) : - if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" - ;; #( - kai) : - - if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - sgi) : - - - if ac_fn_c_compute_int "$LINENO" " - #if defined(_COMPILER_VERSION) - _COMPILER_VERSION - #else - _SGI_COMPILER_VERSION - #endif - %10" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(_COMPILER_VERSION) - _COMPILER_VERSION - #else - _SGI_COMPILER_VERSION - #endif - /10)%10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "( - #if defined(_COMPILER_VERSION) - _COMPILER_VERSION - #else - _SGI_COMPILER_VERSION - #endif - /100)%10" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - microsoft) : - - if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - _ax_c_compiler_version_patch=0 - _ax_c_compiler_version_build=0 - # special case for version 6 - if test "X$_ax_c_compiler_version_major" = "X12"; then : - if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then : - -else - _ax_c_compiler_version_patch=0 -fi - -fi - # for version 7 - if test "X$_ax_c_compiler_version_major" = "X13"; then : - if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - -fi - # for version > 8 - if test $_ax_c_compiler_version_major -ge 14; then : - if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - -fi - if test $_ax_c_compiler_version_major -ge 15; then : - if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version -See \`config.log' for more details" "$LINENO" 5; } -fi - - -fi - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" - ;; #( - metrowerks) : - if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - watcom) : - if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" - ;; #( - portland) : - - if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor -See \`config.log' for more details" "$LINENO" 5; } -fi - - if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level -See \`config.log' for more details" "$LINENO" 5; } -fi - - ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" - ;; #( - tcc) : - - ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'` - ;; #( - *) : - ax_cv_c_compiler_version="" ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5 -$as_echo "$ax_cv_c_compiler_version" >&6; } - - - - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - GCC_VERSION="" - ax_cv_gcc_version="" - if test "X$ax_cv_c_compiler_vendor" = "Xgnu"; then : - ax_cv_gcc_version=$ax_cv_c_compiler_version - GCC_VERSION=$ax_cv_gcc_version - -fi - - +AX_GCC_VERSION if test "x$GCC_VERSION" = "x"; then : else @@ -6310,6 +5023,76 @@ IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7203,7 +5986,7 @@ variable to configure. See \`\`configure --help'' for reference. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 $as_echo_n "checking for the distutils Python package... " >&6; } ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` - if test -z "$ac_distutils_result"; then + if test $? -eq 0; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else @@ -7959,6 +6742,7 @@ fi else + UDUNITS_EXCLUDE=$UDUNITS_HOME as_ac_File=`$as_echo "ac_cv_file_$UDUNITS_HOME/include/udunits2.h" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UDUNITS_HOME/include/udunits2.h" >&5 $as_echo_n "checking for $UDUNITS_HOME/include/udunits2.h... " >&6; } @@ -8018,6 +6802,7 @@ fi + # Check whether --with-hdf5 was given. if test "${with_hdf5+set}" = set; then : withval=$with_hdf5; HDF5_HOME="$withval" diff --git a/share/trick/makefiles/config_user.mk.in b/share/trick/makefiles/config_user.mk.in index d74fce6e..ca72ec51 100644 --- a/share/trick/makefiles/config_user.mk.in +++ b/share/trick/makefiles/config_user.mk.in @@ -26,6 +26,7 @@ MOTIF_HOME = @MOTIF_HOME@ UDUNITS_INCLUDES = @UDUNITS_INCLUDES@ UDUNITS_LDFLAGS = @UDUNITS_LDFLAGS@ +TRICK_EXCLUDE += :@UDUNITS_EXCLUDE@ HDF5 = @HDF5_HOME@ DMTCP = @DMTCP_HOME@