Warning, /online_distribution/pmonitor/configure.ac is written in an unsupported language. File is not indexed.
0001 dnl Process this file with autoconf to produce a configure script.
0002 AC_INIT(pmonitor,[1.00])
0003 AC_CONFIG_SRCDIR([configure.ac])
0004
0005 dnl Checks for C++ compiler and sets default flags
0006 AC_PROG_CXX(cxx CC g++)
0007
0008 AC_CANONICAL_HOST
0009 AC_CONFIG_AUX_DIR([.])
0010
0011 AM_INIT_AUTOMAKE
0012
0013 LT_INIT([disable-static])
0014
0015 AC_PROG_INSTALL
0016
0017
0018 dnl no point in suppressing warnings people should
0019 dnl at least see them, so here we go for g++: -Wall
0020 if test $ac_cv_prog_gxx = yes; then
0021 CXXFLAGS="$CXXFLAGS -Wall -Werror -Wno-vexing-parse -Wno-unused-parameter"
0022 fi
0023
0024 ROOTCFLAGS=`root-config --cflags`
0025 ROOTLIBS=`root-config --libs`
0026 ROOTINC=`root-config --incdir`
0027 ROOTCFLAGS=`root-config --cflags`
0028 AC_SUBST(ROOTLIBS)
0029 AC_SUBST(ROOTINC)
0030 AC_SUBST(ROOTCFLAGS)
0031
0032 CXXFLAGS="$CXXFLAGS $ROOTCFLAGS"
0033
0034 dnl test for root 6
0035 if test `root-config --version | awk '{print $1=6.?"1":"0"}'` = 1; then
0036 CINTDEFS=" -noIncludePaths -inlineInputHeader "
0037 AC_SUBST(CINTDEFS)
0038 AC_DEFINE(HAVE_ROOT6)
0039 fi
0040 AM_CONDITIONAL([MAKEROOT6],[test `root-config --version | awk '{print $1>=6.?"1":"0"}'` = 1])
0041
0042 AC_CHECK_FILE( $OFFLINE_MAIN/include/FROG.h,have_frog=yes, have_frog=no)
0043 AC_MSG_RESULT([$have_frog])
0044
0045 AM_CONDITIONAL(FROG, test "$have_frog" = yes )
0046
0047 if test $have_frog = yes; then
0048 AC_DEFINE(HAVE_FROG)
0049 fi
0050
0051 AC_CONFIG_FILES([Makefile])
0052 AC_OUTPUT