1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_AUX_DIR(config)
8 AM_INIT_AUTOMAKE(sid, 0.1-net)
18 dnl The following is needed for config/info.tcl.
21 dnl Disable shared libraries
22 AC_CACHE_CHECK(whether can build shared SID component libraries, ac_cv_libstdcxx_shared, [
24 ac_cv_libstdcxx_shared=$have_libstdcxx_shared
27 if test x$ac_cv_libstdcxx_shared != xyes -o x$enable_shared = xno
29 AC_MSG_WARN(Disabling shared SID component libraries.)
30 # This variable is not really proper to mess with. However,
31 # there appears to be no other way of adding an extra argument
32 # to child directories' configure runs. This is largely safe
33 # because this code is run long after the ac_configure_args were
34 # parsed for the enable_* etc. args.
35 ac_configure_args="$ac_configure_args --disable-shared"
40 AC_SUBST(enable_shared)
43 # In case this directory exists, we prefer it to non-pic.
44 # In case it doesn't exist, create at least a blank one here, so libtool doesn't barf looking for it
45 mkdir -p ../libiberty/pic
47 AC_CONFIG_SUBDIRS(include component main bsp samples demos)
48 AC_OUTPUT(Makefile doc/Makefile config/info.tcl)