diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-06-24 19:24:01 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-06-24 19:24:01 (GMT) |
commit | caadba7295e8c7b936c7fd9892ef59cc343d2cd0 (patch) | |
tree | d38dbc6bdaf43da9ee952706a3d0f722f9d4b559 | |
parent | 600a17154606f6b1b91873f70eb215e43d85edaa (diff) | |
download | hdf5-caadba7295e8c7b936c7fd9892ef59cc343d2cd0.zip hdf5-caadba7295e8c7b936c7fd9892ef59cc343d2cd0.tar.gz hdf5-caadba7295e8c7b936c7fd9892ef59cc343d2cd0.tar.bz2 |
[svn-r7093] Purpose:
MPE Fix
Description:
The MPE stuff needed the lmpe library.
Solution:
Added it.
Platforms tested:
Copper (Small fix)
Misc. update:
-rwxr-xr-x | configure | 201 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 205 insertions, 0 deletions
@@ -30930,6 +30930,73 @@ else unset MPE fi + +echo "$as_me:$LINENO: checking for CLOG_Init in -llmpe" >&5 +echo $ECHO_N "checking for CLOG_Init in -llmpe... $ECHO_C" >&6 +if test "${ac_cv_lib_lmpe_CLOG_Init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llmpe $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char CLOG_Init (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +CLOG_Init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_lmpe_CLOG_Init=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_lmpe_CLOG_Init=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_lmpe_CLOG_Init" >&5 +echo "${ECHO_T}$ac_cv_lib_lmpe_CLOG_Init" >&6 +if test $ac_cv_lib_lmpe_CLOG_Init = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLMPE 1 +_ACEOF + + LIBS="-llmpe $LIBS" + +else + unset MPE +fi + ;; *) case "$withval" in @@ -31260,6 +31327,73 @@ else LDFLAGS="$saved_LDFLAGS"; unset MPE fi + +echo "$as_me:$LINENO: checking for CLOG_Init in -llmpe" >&5 +echo $ECHO_N "checking for CLOG_Init in -llmpe... $ECHO_C" >&6 +if test "${ac_cv_lib_lmpe_CLOG_Init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llmpe $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char CLOG_Init (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +CLOG_Init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_lmpe_CLOG_Init=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_lmpe_CLOG_Init=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_lmpe_CLOG_Init" >&5 +echo "${ECHO_T}$ac_cv_lib_lmpe_CLOG_Init" >&6 +if test $ac_cv_lib_lmpe_CLOG_Init = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLMPE 1 +_ACEOF + + LIBS="-llmpe $LIBS" + +else + LDFLAGS="$saved_LDFLAGS"; unset MPE +fi + else echo "$as_me:$LINENO: checking for MPE_Init_log in -lmpe" >&5 @@ -31328,6 +31462,73 @@ else unset MPE fi + +echo "$as_me:$LINENO: checking for CLOG_Init in -llmpe" >&5 +echo $ECHO_N "checking for CLOG_Init in -llmpe... $ECHO_C" >&6 +if test "${ac_cv_lib_lmpe_CLOG_Init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llmpe $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char CLOG_Init (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +CLOG_Init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_lmpe_CLOG_Init=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_lmpe_CLOG_Init=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_lmpe_CLOG_Init" >&5 +echo "${ECHO_T}$ac_cv_lib_lmpe_CLOG_Init" >&6 +if test $ac_cv_lib_lmpe_CLOG_Init = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLMPE 1 +_ACEOF + + LIBS="-llmpe $LIBS" + +else + unset MPE +fi + fi ;; esac diff --git a/configure.in b/configure.in index 5ee4e88..42627af 100644 --- a/configure.in +++ b/configure.in @@ -1983,6 +1983,7 @@ dnl ---------------------------------------------------------------------- X-yes) AC_CHECK_HEADERS([mpe.h],, [unset MPE]) AC_CHECK_LIB([mpe], [MPE_Init_log],, [unset MPE]) + AC_CHECK_LIB([lmpe], [CLOG_Init],, [unset MPE]) ;; *) case "$withval" in @@ -2020,8 +2021,11 @@ dnl ---------------------------------------------------------------------- LDFLAGS="$LDFLAGS -L$mpe_lib" AC_CHECK_LIB([mpe], [MPE_Init_log],, [LDFLAGS="$saved_LDFLAGS"; unset MPE]) + AC_CHECK_LIB([lmpe], [CLOG_Init],, + [LDFLAGS="$saved_LDFLAGS"; unset MPE]) else AC_CHECK_LIB([mpe], [MPE_Init_log],, [unset MPE]) + AC_CHECK_LIB([lmpe], [CLOG_Init],, [unset MPE]) fi ;; esac |