1# **************************************************************************
2# data/configure.in
3
4AC_PREREQ(2.50)
5AC_INIT([SoAnyData], [1.0.0], [coin-support@coin3d.org])
6
7AC_CONFIG_SRCDIR(materials/Makefile.am)
8AC_CONFIG_AUX_DIR(cfg)
9
10# **************************************************************************
11# Miscellaneous options and initializations.
12
13AM_INIT_AUTOMAKE(data, 1.0.0)
14
15# File to cram results from the configure tests into.
16AM_CONFIG_HEADER(config.h)
17
18# Turn off default maintainer make-rules -- use ./bootstrap instead.
19AM_MAINTAINER_MODE
20
21# **************************************************************************
22# Search and set up necessary stuff to use the GUI library.
23
24files=0
25for file in ../so*-*.cfg; do
26  files=`expr $files + 1`
27done
28if test $files -gt 1; then
29  rm -f ../so*-*.cfg
30  AC_MSG_ERROR([
31  The configure script will now abort because the configure directory was
32  not clean from configuring/building with multiple --with-alternate options
33  without cleaning out the directory in-between.  The problematic duplicate
34  config files has been removed.  Please repeat the configure command -
35  you will get past this point on the next run.  Sorry for the inconvenience.])
36fi
37
38sim_ac_configfile=../so*-*.cfg
39if test -f $sim_ac_configfile; then
40  . $sim_ac_configfile;
41else
42  AC_MSG_ERROR([found no config file in ..])
43fi
44
45AC_SUBST([GUI], [$AC_SUBST_GUI])
46AC_SUBST([Gui], [$AC_SUBST_Gui])
47AC_SUBST([gui], [$AC_SUBST_gui])
48
49if test x"${sim_ac_framework+set}" = x"set" && $sim_ac_framework; then
50  AM_CONDITIONAL([MAC_FRAMEWORK], [true])
51else
52  AM_CONDITIONAL([MAC_FRAMEWORK], [false])
53fi
54AC_SUBST([MAC_FRAMEWORK_NAME])
55AC_SUBST([MAC_FRAMEWORK_PREFIX])
56AC_SUBST([MAC_FRAMEWORK_VERSION])
57
58# **************************************************************************
59# All files configure must automatically generate.
60
61AC_OUTPUT([
62	Makefile
63	bin/Makefile
64	materials/Makefile
65	materials/artdeco/Makefile
66	materials/autumn/Makefile
67	materials/glass/Makefile
68	materials/metal/Makefile
69	materials/neon/Makefile
70	materials/rococo/Makefile
71	materials/santafe/Makefile
72	materials/sheen/Makefile
73	materials/silky/Makefile
74	materials/spring/Makefile
75	materials/summer/Makefile
76	materials/tropical/Makefile
77	materials/winter/Makefile
78])
79
80# **************************************************************************
81