#!/usr/bin/env bash # # This is not generated by autoconf or similar, just handcoded, since we don't # need this much complexity # Our configuration for the makefiles !! LIBNAME=libiwear_core DISTNAME=iwear DISTDIR=iwear-core VERSION=0.7.0 # include the check function library . ./conf/functions EXTRACLEANFILES="test doxygen.log libiw* idl/*.o idl/*.h idl/*.c idl/*.cc src/*.pp src/*.ao src/*.P src/*.d" STERILFILES="*.tag lib/*.a lib/*.so* include/config.h makefile.conf" STERILDIRS="doc/html" LIBLIBS="-lboost_filesystem -lpthread" # Files to be linked together to the library LIBFILES_src=" basemodulemanager.o buildphase.o configuration.o constants.o debugarea.o debugmanager.o debugmodule.o debugmoduleconsole.o debugmodulefd.o debugmodulefile.o debugmodulesyslog.o debugstream.o eventdispatcher.o eventscheduler.o exceptions.o i18n.o iniloader.o inisaver.o iwm.o maplestream.o optionguard.o module.o modulehandle.o moloader.o pluginhandle.o scopetracer.o service.o servicehandle.o servicemanager.o shmemory.o thread.o threadexecutor.o uid.o utility.o " # do the prechecks, among others it tells us the os type class . ./conf/common_precheck if [ "$OS_TYPE" == "linux" -o "$OS_TYPE" == "solaris" ] then LIBLIBS="$LIBLIBS -lrt" fi . ./conf/config_cache # simple command line parameter parsing prev= option=--`echo $prev | sed 's/_/-/g'` optarg=`expr "x$option" : 'x[^=]*=\(.*\)'` for option do . ./conf/common_optionparse # These are the module specific options case $option in --debuglevel=*) DEBUGLEVEL="$optarg" continue;; esac # This file contains the loop end as well as the common variable setting and the default case . ./conf/common_optiondefaults done add_private_config DEBUGLEVEL "#define IWEAR_DEBUGLEVEL $DEBUGLEVEL" set_dirs . ./conf/common_help add_help "\t--debuglevel=#\tNumber of max debuglevel to compile in (for d_* streams)" maybe_display_help write_config_cache $@ check_gcc 4.1.2 check_cxx 4.1.2 check_gmake 3.81 check_dlopen check_pthread check_char_bit 8 check_strnlen check_clock_gettime check_pthread_timedlock check_strcasestr check_vasprintf check_strerror_r check_echo check_pkg_config check_boost 1.34.0 check_doxygen gen_makefile makefile.conf gen_config $CONFIG_H output_config PREFIX SYSCONF