source: trunk/src/gcc/fastjar/configure.in@ 1569

Last change on this file since 1569 was 1392, checked in by bird, 21 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.2 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(jartool.h)
3AM_INIT_AUTOMAKE(fastjar, 0.92-gcc)
4AM_CONFIG_HEADER(config.h)
5
6dnl Checks for programs.
7AC_PROG_CC
8AC_PROG_INSTALL
9AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/local/bin)
10AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin)
11AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
12AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
13AC_EXEEXT
14
15AM_MAINTAINER_MODE
16
17dnl Add warning flags if we are using gcc.
18if test "$GCC" = yes; then
19 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
20fi
21AC_SUBST(fastjar_warn_cflags)
22
23dnl Checks for header files.
24AC_HEADER_DIRENT
25AC_HEADER_STDC
26AC_STRUCT_TM
27AC_CHECK_HEADERS(fcntl.h unistd.h sys/param.h stdlib.h limits.h)
28
29dnl Checks for typedefs, structures, and compiler characteristics.
30AC_TYPE_OFF_T
31AC_STRUCT_TM
32
33# mkdir takes a single argument on some systems.
34gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
35
36dnl Check for type-widths
37gcc_AC_COMPILE_CHECK_SIZEOF(char)
38gcc_AC_COMPILE_CHECK_SIZEOF(short)
39gcc_AC_COMPILE_CHECK_SIZEOF(int)
40gcc_AC_COMPILE_CHECK_SIZEOF(long)
41gcc_AC_COMPILE_CHECK_SIZEOF(long long)
42
43dnl Check byte order
44fastjar_AC_COMPILE_C_BIGENDIAN
45
46AC_ARG_WITH(system-zlib,
47[ --with-system-zlib use installed libz])
48
49ZLIBS=
50ZDEPS=
51ZINCS=
52use_zlib=maybe
53if test "$with_system_zlib" = yes; then
54 AC_CHECK_LIB(z, deflate, ZLIBS=-lz, use_zlib=no)
55else
56 use_zlib=no
57fi
58
59if test "$use_zlib" = no; then
60 # Brain dead way to find tree's zlib.
61 ZDEPS='$(top_builddir)/../zlib/libz.a'
62 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
63 ZINCS='-I$(top_srcdir)/../zlib'
64fi
65AC_SUBST(ZLIBS)
66AC_SUBST(ZDEPS)
67AC_SUBST(ZINCS)
68
69# Get the version trigger filename from the toplevel
70if test "${with_gcc_version_trigger+set}" = set; then
71 gcc_version_trigger=$with_gcc_version_trigger
72else
73 gcc_version_trigger=${srcdir}/version.c
74fi
75changequote(,)dnl
76gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
77gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
78changequote([,])dnl
79AC_SUBST(gcc_version)
80
81AC_OUTPUT(Makefile install-defs.sh)
Note: See TracBrowser for help on using the repository browser.