/[MITgcm]/MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/libtoolhack.m4
ViewVC logotype

Contents of /MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/libtoolhack.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Feb 23 20:13:31 2008 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
- get new version from: http://packages.qa.debian.org/m/mpack.html
  (files: mpack_1.6.orig.tar.gz, mpack_1.6-4.diff.gz, mpack_1.6-4.dsc)
  and apply patch 'mpack_1.6-4.diff' to original dir: mpack_1.6/
- this fix the MD5 coding on 64.bit platforms (well, seems to).
- added in Contrib to allow separate test (since building mpack seems fishy)

1 dnl libtoolhack.m4--hack to make libtool behave better
2 dnl Rob Earhart
3 dnl $Id: libtoolhack.m4,v 1.3 2002/05/25 19:57:42 leg Exp $
4
5 dnl Libtool tries to compile an empty file to see whether it can build
6 dnl shared libraries, and treats *any* warning as a problem.
7 dnl Solaris's and HP's cc complains about the empty file. So we hack
8 dnl the CFLAGS to make cc not complain.
9
10 AC_DEFUN(CMU_PROG_LIBTOOL, [
11 AC_REQUIRE([AC_PROG_CC])
12 if test "$ac_cv_prog_gcc" = no; then
13 case "$host_os" in
14 solaris2*)
15 save_cflags="${CFLAGS}"
16 CFLAGS="-erroff=E_EMPTY_TRANSLATION_UNIT ${CFLAGS}"
17 ;;
18 hpux*)
19 save_cflags="${CFLAGS}"
20 CFLAGS="-w"
21 ;;
22 esac
23 fi
24
25 AM_PROG_LIBTOOL
26
27 if test "$ac_cv_prog_gcc" = no; then
28 case "$host_os" in
29 solaris2*|hpux*)
30 CFLAGS="${save_cflags}"
31 esac
32 fi
33 ])

  ViewVC Help
Powered by ViewVC 1.1.22