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