* unwind-dw2-fde-glibc.c: #define _Unwind_Find_FDE to itself
[official-gcc.git] / fastjar / configure.in
blobc73f0e2d5c6fd7c097da159a46b7cbd0b590f85c
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(jartool.h)
3 AM_INIT_AUTOMAKE(fastar, 0.92-gcc)
4 AM_CONFIG_HEADER(config.h)
6 dnl Checks for programs.
7 AC_PROG_CC
8 AC_PROG_INSTALL
9 AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/local/bin)
10 AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin)
11 AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
12 AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
13 AC_EXEEXT
15 dnl Add warning flags if we are using gcc.
16 if test "$GCC" = yes; then
17   fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
19 AC_SUBST(fastjar_warn_cflags)
21 dnl Checks for header files.
22 AC_HEADER_DIRENT
23 AC_HEADER_STDC
24 AC_STRUCT_TM
25 AC_CHECK_HEADERS(fcntl.h unistd.h sys/param.h getopt.h)
27 dnl Checks for typedefs, structures, and compiler characteristics.
28 AC_TYPE_OFF_T
29 AC_STRUCT_TM
31 dnl Check for type-widths
32 AC_CHECK_SIZEOF(char)
33 AC_CHECK_SIZEOF(short)
34 AC_CHECK_SIZEOF(int)
35 AC_CHECK_SIZEOF(long)
36 AC_CHECK_SIZEOF(long long)
38 dnl Check byte order
39 AC_C_BIGENDIAN
41 AC_ARG_WITH(system-zlib,
42 [  --with-system-zlib      use installed libz])
44 ZLIBS=
45 ZDEPS=
46 ZINCS=
47 use_zlib=maybe
48 if test "$with_system_zlib" = yes; then
49    AC_CHECK_LIB(z, deflate, ZLIBS=-lz, use_zlib=no)
50 else
51    use_zlib=no
54 if test "$use_zlib" = no; then
55    # Brain dead way to find tree's zlib.
56    ZDEPS='$(top_builddir)/../zlib/libz.a'
57    ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
58    ZINCS='-I$(top_srcdir)/../zlib'
60 AC_SUBST(ZLIBS)
61 AC_SUBST(ZDEPS)
62 AC_SUBST(ZINCS)
64 AC_OUTPUT(Makefile install-defs.sh)