source: trunk/third/libart_lgpl/configure.in @ 21479

Revision 21479, 1.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21478, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(art_misc.h)
2AM_CONFIG_HEADER(config.h)
3
4LIBART_MAJOR_VERSION=2
5LIBART_MINOR_VERSION=3
6LIBART_MICRO_VERSION=17
7LIBART_VERSION=$LIBART_MAJOR_VERSION.$LIBART_MINOR_VERSION.$LIBART_MICRO_VERSION
8LIBART_VERSION_INFO=`expr $LIBART_MAJOR_VERSION + $LIBART_MINOR_VERSION`:$LIBART_MICRO_VERSION:$LIBART_MINOR_VERSION
9
10AC_SUBST(LIBART_MAJOR_VERSION)
11AC_SUBST(LIBART_MINOR_VERSION)
12AC_SUBST(LIBART_MICRO_VERSION)
13AC_SUBST(LIBART_VERSION)
14AC_SUBST(LIBART_VERSION_INFO)
15
16VERSION=$LIBART_VERSION
17
18AM_INIT_AUTOMAKE(libart_lgpl, $VERSION)
19
20AC_ARG_ENABLE(ansi, [  --enable-ansi           turn on strict ansi [default=no]],
21                    , enable_ansi=no)
22
23AC_PROG_CC
24AC_PROG_CPP
25AC_LIBTOOL_WIN32_DLL
26AM_PROG_LIBTOOL
27
28AM_MAINTAINER_MODE
29
30AC_MSG_CHECKING([for Win32])
31case "$host" in
32  *-*-mingw*)
33    os_win32=yes
34    ;;
35  *)
36    os_win32=no
37    ;;
38esac
39AC_MSG_RESULT([$os_win32])
40AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
41
42if test "$os_win32" = "yes"; then
43  AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
44fi
45AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
46
47changequote(,)dnl
48if test "x$GCC" = "xyes"; then
49  case " $CFLAGS " in
50  *[\ \ ]-Wall[\ \      ]*) ;;
51  *) CFLAGS="$CFLAGS -Wall" ;;
52  esac
53
54  case " $CFLAGS " in
55  *[\ \ ]-Wmissing-prototypes[\ \       ]*) ;;
56  *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
57  esac
58
59  if test "x$enable_ansi" = "xyes"; then
60    case " $CFLAGS " in
61    *[\ \       ]-ansi[\ \      ]*) ;;
62    *) CFLAGS="$CFLAGS -ansi" ;;
63    esac
64
65    case " $CFLAGS " in
66    *[\ \       ]-pedantic[\ \  ]*) ;;
67    *) CFLAGS="$CFLAGS -pedantic" ;;
68    esac
69  fi
70fi
71changequote([,])dnl
72
73AC_FUNC_ALLOCA
74
75LIBART_LIBDIR='-L${libdir}'
76LIBART_INCLUDEDIR='-I${includedir}'
77LIBART_LIBS='-lart_lgpl'
78
79AC_SUBST(LIBART_LIBDIR)
80AC_SUBST(LIBART_INCLUDEDIR)
81AC_SUBST(LIBART_LIBS)
82
83AC_C_BIGENDIAN
84
85AC_OUTPUT([
86libart-features.h
87Makefile
88libart-config
89libart-2.0.pc
90libart-2.0-uninstalled.pc
91libart-zip], [case "$CONFIG_FILES" in *libart-config*) chmod +x libart-config;; esac])
Note: See TracBrowser for help on using the repository browser.