Skip to content

Commit 304e0e5

Browse files
authored
Merge pull request #5 from CDAT/1.0.2
replace lapack and clapack for openblas
2 parents 994aa30 + 04f5fd4 commit 304e0e5

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

cf_config.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define HAVE_MEMORY_H 1
5353

5454
/* Define to 1 if you have the <mpi.h> header file. */
55-
/* #undef HAVE_MPI_H */
55+
#define HAVE_MPI_H 1
5656

5757
/* Define to 1 if you have the <netcdf.h> header file. */
5858
#define HAVE_NETCDF_H 1
@@ -70,7 +70,7 @@
7070
#define HAVE_STRING_H 1
7171

7272
/* Define this if you have strlcat() */
73-
#define HAVE_STRLCAT 1
73+
/* #undef HAVE_STRLCAT */
7474

7575
/* Define to 1 if `st_blksize' is a member of `struct stat'. */
7676
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
@@ -89,7 +89,7 @@
8989
#define HAVE_UNISTD_H 1
9090

9191
/* Define if uuid is found */
92-
#define HAVE_UUID_H 1
92+
/* #undef HAVE_UUID_H */
9393

9494
/* if true, turn on logging */
9595
/* #undef LOGGING */
@@ -178,6 +178,11 @@
178178
# endif
179179
#endif
180180

181+
/* Enable large inode numbers on Mac OS X 10.5. */
182+
#ifndef _DARWIN_USE_64_BIT_INODE
183+
# define _DARWIN_USE_64_BIT_INODE 1
184+
#endif
185+
181186
/* Number of bits in a file offset, on hosts where this is settable. */
182187
/* #undef _FILE_OFFSET_BITS */
183188

cf_config.h.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@
177177
# endif
178178
#endif
179179

180+
/* Enable large inode numbers on Mac OS X 10.5. */
181+
#ifndef _DARWIN_USE_64_BIT_INODE
182+
# define _DARWIN_USE_64_BIT_INODE 1
183+
#endif
184+
180185
/* Number of bits in a file offset, on hosts where this is settable. */
181186
#undef _FILE_OFFSET_BITS
182187

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18225,7 +18225,8 @@ for ac_lib in '' $possible_blas_library_names; do
1822518225
ac_res="none required"
1822618226
else
1822718227
ac_res=-l$ac_lib
18228-
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18228+
LIBS="-l$ac_lib "-lgfortran"
18229+
$ac_func_search_save_LIBS"
1822918230
fi
1823018231
if ac_fn_c_try_link "$LINENO"; then :
1823118232
ac_cv_search_dcopy=$ac_res
@@ -18288,7 +18289,8 @@ for ac_lib in '' $possible_blas_library_names; do
1828818289
ac_res="none required"
1828918290
else
1829018291
ac_res=-l$ac_lib
18291-
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18292+
LIBS="-l$ac_lib "-lgfortran"
18293+
$ac_func_search_save_LIBS"
1829218294
fi
1829318295
if ac_fn_c_try_link "$LINENO"; then :
1829418296
ac_cv_search_dcopy_=$ac_res
@@ -18313,13 +18315,11 @@ ac_res=$ac_cv_search_dcopy_
1831318315
if test "$ac_res" != no; then :
1831418316
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1831518317
have_blas_underscore="yes"
18316-
1831718318
fi
1831818319

18319-
1832018320
fi
1832118321

18322-
possible_lapack_library_names="sci_quadcore_mp nag essl mkl lapack"
18322+
possible_lapack_library_names="openblas blas sci_quadcore_mp nag essl mkl lapack"
1832318323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgetrf" >&5
1832418324
$as_echo_n "checking for library containing dgetrf... " >&6; }
1832518325
if ${ac_cv_search_dgetrf+:} false; then :
@@ -18357,7 +18357,8 @@ for ac_lib in '' $possible_lapack_library_names; do
1835718357
ac_res="none required"
1835818358
else
1835918359
ac_res=-l$ac_lib
18360-
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18360+
LIBS="-l$ac_lib "-lgfortran"
18361+
$ac_func_search_save_LIBS"
1836118362
fi
1836218363
if ac_fn_c_try_link "$LINENO"; then :
1836318364
ac_cv_search_dgetrf=$ac_res
@@ -18420,7 +18421,8 @@ for ac_lib in '' $possible_lapack_library_names; do
1842018421
ac_res="none required"
1842118422
else
1842218423
ac_res=-l$ac_lib
18423-
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18424+
LIBS="-l$ac_lib "-lgfortran"
18425+
$ac_func_search_save_LIBS"
1842418426
fi
1842518427
if ac_fn_c_try_link "$LINENO"; then :
1842618428
ac_cv_search_dgetrf_=$ac_res
@@ -18445,10 +18447,8 @@ ac_res=$ac_cv_search_dgetrf_
1844518447
if test "$ac_res" != no; then :
1844618448
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1844718449
have_lapack_underscore="yes"
18448-
1844918450
fi
1845018451

18451-
1845218452
fi
1845318453

1845418454
fi

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,15 @@ possible_blas_library_names="sci_quadcore_mp nag essl mkl f77blas blas"
289289
AC_SEARCH_LIBS([dcopy], [$possible_blas_library_names],
290290
[have_blas="yes"],
291291
[AC_SEARCH_LIBS([dcopy_], [$possible_blas_library_names],
292-
[have_blas_underscore="yes"]
293-
)]
292+
[have_blas_underscore="yes"], [], ["-lgfortran"]
293+
)], ["-lgfortran"]
294294
)
295-
possible_lapack_library_names="sci_quadcore_mp nag essl mkl lapack"
295+
possible_lapack_library_names="openblas blas sci_quadcore_mp nag essl mkl lapack"
296296
AC_SEARCH_LIBS([dgetrf], [$possible_lapack_library_names],
297297
[have_lapack="yes"],
298298
AC_SEARCH_LIBS([dgetrf_], [$possible_lapack_library_names],
299-
[have_lapack_underscore="yes"]
300-
)
299+
[have_lapack_underscore="yes"], [], ["-lgfortran"]
300+
), ["-lgfortran"]
301301
)
302302
fi
303303
AC_SUBST([HAVE_LAPACK_NO_UNDERSCORE], [0])

0 commit comments

Comments
 (0)