#!/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=libiwlocator DISTNAME=iwlocator DISTDIR=iwlocator VERSION=0.8.0 #include it . ./conf/functions EXTRACLEANFILES="test doxygen.log libiw*" STERILFILES="*.tag lib/*.a lib/*.so* include/config.h makefile.conf" STERILDIRS="doc/html" LIBLIBS="-liwdb -liwsens" # Files to be linked together to the library WIRELESS=" apinfo.o iwlib.o qinfo.o rangeinfo.o wlanlocator.o wlocation.o " LIBFILES_src=" dummylocator.o fixedlocator.o location.o locationmanager.o optionguard.o locator.o locatorevent.o $WIRELESS " # do the prechecks, among others it tells us the os type class . ./conf/common_precheck . ./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 # This file contains the loop end as well as the common variable setting and the default case . ./conf/common_optiondefaults done 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_ostype check_dynlib check_gcc 4.1.2 check_cxx 4.1.2 check_gmake 3.81 check_echo check_doxygen check_pkg_config check_pgsql 7.3.0 # need to check here too because of sql scripts and cmds. check_iwear 0.7.0 check_iwsens 0.2.0 check_iwdb 0.1.0 check_iwidl check_wireless if [ "$HAVE_WIRELESS" != "yes" ] then logecho "Removing wireless code from build set" # echo "Old libfiles : " # echo $LIBFILES_src for wf in $WIRELESS do logecho "Removing $wf" LIBFILES_src=$( echo $LIBFILES_src | sed "s/$wf//g" ) done # echo "New libfiles : " # echo $LIBFILES_src fi gen_makefile makefile.conf gen_config $CONFIG_H output_config PREFIX SYSCONF