1AC_INIT
2AC_CONFIG_SRCDIR([include/opal/manager.h])
3
4m4_include(../opal.m4)
5
6AC_ARG_ENABLE([samples-static-linking],
7              [AC_HELP_STRING([--enable-samples-static-linking],[Link the samples to static opal and ptlib libraries])],
8              [OPAL_SAMPLES_STATIC=$enableval],
9              [OPAL_SAMPLES_STATIC=no])
10
11AC_ARG_ENABLE([samples-debug],
12              [AC_HELP_STRING([--enable-debug],[Enable samples debug flags and link to debug opal and ptlib libraries.])],
13              [OPAL_SAMPLES_DEBUG=$enableval],
14              [OPAL_SAMPLES_DEBUG=no])
15
16if test "x$OPAL_SAMPLES_DEBUG" = xyes; then
17  if test "x$OPAL_SAMPLES_STATIC" = xyes; then
18    SAMPLES_LIBS="-lopal_d_s -lpt_d_s"
19  else
20    SAMPLES_LIBS="-lopal_d -lpt_d"
21  fi
22  SAMPLES_DEBUG=yes
23else
24  if test "x$OPAL_SAMPLES_STATIC" = xyes; then
25    SAMPLES_LIBS="-lopal_s -lpt_s"
26  else
27    SAMPLES_LIBS="-lopal -lpt"
28  fi
29  SAMPLES_DEBUG=no
30fi
31
32
33AC_SUBST(SAMPLES_LIBS)
34AC_SUBST(SAMPLES_DEBUG)
35
36AC_CONFIG_FILES(opal_samples.mak)
37AC_OUTPUT
38