source: trunk/packages/optimizer/src/pgapack/configure.in @ 1272

Last change on this file since 1272 was 1052, checked in by gah, 15 years ago

fixes to optimizer build

File size: 991 bytes
Line 
1AC_INIT([PGAPACK], [1.1], [rappture@nanohub.org])
2
3#------------------------------------------------------------------------
4# Handle the --prefix=... option
5#------------------------------------------------------------------------
6
7if test "${prefix}" = "NONE"; then
8    prefix=/usr/local
9fi
10if test "${exec_prefix}" = "NONE"; then
11    exec_prefix=$prefix
12fi
13
14if test "${libdir}" != "${prefix}/lib"; then
15    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
16else
17    LIB_SEARCH_DIRS="-L${libdir}"
18fi
19
20AC_SUBST(LIB_SEARCH_DIRS)
21
22AC_PROG_INSTALL
23AC_PROG_MAKE_SET
24
25dnl find and test the C compiler
26AC_PROG_CC
27AC_PROG_F77
28AC_LANG_C
29
30AC_PROG_INSTALL
31AC_PROG_RANLIB
32AC_PROG_LN_S
33
34pgapack=pgapack
35
36if test "$srcdir" != "."; then
37  rm -rf $pgapack
38  echo "tar -C $srcdir -clf - $pgapack | tar -xpf -"
39  tar -C $srcdir -clf - $pgapack | tar -xpf -
40fi
41host=linux
42CFLAGS="-fPIC $CFLAGS"
43(cd $pgapack ; ./configure -arch $host -f77 $F77 -cc $CC -cflags $CFLAGS -fflags $FFLAGS)
44
45AC_OUTPUT( [ Makefile ])
Note: See TracBrowser for help on using the repository browser.