OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_AUX_DIR(config)
4
5 dnl set $CC early on
6 AC_PROG_CC
7
8 AM_INIT_AUTOMAKE(sid,0.1)
9
10 dnl automake support
11 AM_MAINTAINER_MODE
12 AC_EXEEXT
13 AC_PROG_CXX
14 AC_PROG_CXXCPP
15 AC_PROG_MAKE_SET
16 AC_ARG_PROGRAM
17 AC_LANG_CPLUSPLUS
18
19 dnl The following is needed for config/info.tcl.
20 CY_SIDTARGET_CHECK
21
22 dnl Disable shared libraries
23 AC_CACHE_CHECK(whether can build shared SID component libraries, ac_cv_libstdcxx_shared, [
24    CY_LIBSTDCXX_CHECK
25    ac_cv_libstdcxx_shared=$have_libstdcxx_shared
26 ])
27
28 if test x$ac_cv_libstdcxx_shared != xyes -o x$enable_shared = xno
29 then
30   AC_MSG_WARN(Disabling shared SID component libraries.)
31   # This variable is not really proper to mess with.  However,
32   # there appears to be no other way of adding an extra argument
33   # to child directories' configure runs.  This is largely safe
34   # because this code is run long after the ac_configure_args were
35   # parsed for the enable_* etc. args.
36   ac_configure_args="$ac_configure_args --disable-shared"
37   enable_shared=no
38 else
39   enable_shared=yes
40 fi
41 AC_SUBST(enable_shared)
42
43 AC_CONFIG_SUBDIRS(include component main bsp samples demos)
44 AC_OUTPUT(Makefile config/info.tcl)