1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(Makefile.am)
3
4LIB3DS_MAJOR_VERSION=1
5LIB3DS_MINOR_VERSION=3
6LIB3DS_MICRO_VERSION=0
7LIB3DS_VERSION=$LIB3DS_MAJOR_VERSION.$LIB3DS_MINOR_VERSION.$LIB3DS_MICRO_VERSION
8AC_SUBST(LIB3DS_MAJOR_VERSION)
9AC_SUBST(LIB3DS_MINOR_VERSION)
10AC_SUBST(LIB3DS_MICRO_VERSION)
11AC_SUBST(LIB3DS_VERSION)
12
13AM_CONFIG_HEADER(config.h)
14AM_INIT_AUTOMAKE(lib3ds, $LIB3DS_VERSION)
15
16AC_PROG_CC
17AC_PROG_LIBTOOL
18
19AC_MSG_CHECKING([for debugging mode])
20AC_ARG_ENABLE(debug-mode,
21  [  --enable-debug-mode     enable debugging mode],
22  [
23    LIB3DS_DEBUG_MODE=yes
24  ]
25)
26if test "$LIB3DS_DEBUG_MODE" = yes; then
27  AC_MSG_RESULT(yes)
28  CFLAGS="$CFLAGS -D_DEBUG"
29else
30  AC_MSG_RESULT(no)
31fi
32
33AC_OUTPUT([ \
34  lib3ds-config \
35  lib3ds-config.1 \
36  Makefile \
37  lib3ds/Makefile \
38  tools/Makefile \
39  tools/3dsdump.1 \
40  lib3ds.spec \
41  3ds-utils.spec \
42],[chmod a+x lib3ds-config])
43