[Mockpp-commits] mockpp mockpp-config.in,NONE,1.1 configure.in,1.113,1.114
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2006-03-12 08:26:04
|
Update of /cvsroot/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11869 Modified Files: configure.in Added Files: mockpp-config.in Log Message: added script to retrieve data from configure --- NEW FILE: mockpp-config.in --- #!/bin/sh # Output mockpp related data generated by the configure script # Taken from MARIE project (http://marie.sf.net) prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ libexecdir=@libexecdir@ datadir=@prefix@ sysconfdir=@sysconfdir@ sharedstatedir=@sharedstatedir@ localstatedir=@localstatedir@ libdir=@libdir@ infodir=@infodir@ mandir=@mandir@ includedir=@includedir@ pkgdatadir=${datadir}/@PACKAGE@ pkglibdir=${libdir}/@PACKAGE@ pkgincludedir=${includedir}/@PACKAGE@ MODULE_VERSION=@PACKAGE@-@VERSION@ module_dirs="$libdir" DEFS="@DEFS@" LIBS="@LIBS@" LDFLAGS="@LDFLAGS@" # stolen from autoconf if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi usage() { exit_code=$1 cat <<EOF Usage: mockpp-config [OPTION]... [LIBRARY]... Generic options --version output mockpp version information. --modversion output the module version information. --help display this help and exit. Compilation support options --cflags print pre-processor and compiler flags --libs print library linking information --libs-only-L only print the -L/-R part of --libs --libs-only-l only print the -l part of --libs Install directories mockpp was configured to --prefix --exec-prefix --bindir --sbindir --libexecdir --datadir --sysconfdir --sharedstatedir --localstatedir --libdir --infodir --mandir --includedir --toolboxdir Known values for LIBRARY are: libmockpp (mockpp library) config (Stuff found by autoconf) EOF exit $exit_code } if test $# -eq 0; then usage 1 fi cflags=false libs_L=false libs_l=false modversion=false while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --version) echo @PACKAGE@ @VERSION@ exit 0 ;; --exec-prefix) echo $exec_prefix exit 0 ;; --prefix) echo $prefix exit 0 ;; --*dir) dirname=\$`echo $1 | sed -e 's,^--,,'` dirname=`eval echo $dirname` test -z "$dirname" && exit 1 echo $dirname exit 0 ;; --help) usage 0 ;; --cflags) cflags=true ;; --libs) libs_L=true libs_l=true ;; --libs-only-L) libs_L=true ;; --libs-only-l) libs_l=true ;; --modversion) modversion=true ;; --*) usage 1 ;; libmockpp) the_libs="$the_libs -L$libdir -lmockpp " the_flags="$the_flags -I$includedir " ;; config) the_libs="$the_libs $LD_FLAGS $LIBS" the_flags="$the_flags $DEFS" ;; *) error=true for dir in `echo $module_dirs | sed 's/:/ /g'`; do cnf_sh=${dir}/${1}Conf.sh if test -f ${cnf_sh}; then . ${cnf_sh} up_name=`echo $1 | tr a-z A-Z` cnf_libdir=\$${up_name}_LIBDIR cnf_libs=\$${up_name}_LIBS cnf_flags=\$${up_name}_INCLUDEDIR the_libs="$the_libs `eval echo $cnf_libdir` `eval echo $cnf_libs`" the_flags="$the_flags `eval echo $cnf_flags`" error=false break fi done if $error; then echo Unknown library \`$1\' 1>&2 fi ;; esac shift done if $cflags; then all_flags="$the_flags" fi if $libs_L || $libs_l; then all_flags="$all_flags $the_libs" fi if $modversion; then echo $MODULE_VERSION exit 0 fi if test -z "$all_flags" || test "x$all_flags" = "x "; then exit 1 fi # Straight out any possible duplicates, but be careful to # get `-lfoo -lbar -lbaz' for `-lfoo -lbaz -lbar -lbaz' other_flags= lib_L_flags= rev_libs= for i in $all_flags; do case "$i" in # a library, save it for later, in reverse order -l*) rev_libs="$i $rev_libs" ;; -L*|-R*) if $libs_L; then case " $lib_L_flags " in *\ $i\ *) ;; # already there *) lib_L_flags="$lib_L_flags $i" ;; # add it to output esac fi;; *) case " $other_flags " in *\ $i\ *) ;; # already there *) other_flags="$other_flags $i" ;; # add it to output esac ;; esac done ord_libs= if $libs_l; then for i in $rev_libs; do case " $ord_libs " in *\ $i\ *) ;; # already there *) ord_libs="$i $ord_libs" ;; # add it to output in reverse order esac done fi echo $other_flags $lib_L_flags $ord_libs exit 0 Index: configure.in =================================================================== RCS file: /cvsroot/mockpp/mockpp/configure.in,v retrieving revision 1.113 retrieving revision 1.114 diff -u -d -r1.113 -r1.114 --- configure.in 6 Mar 2006 19:29:19 -0000 1.113 +++ configure.in 12 Mar 2006 08:25:53 -0000 1.114 @@ -17,7 +17,7 @@ # MOCKPP_MAJOR_VERSION=1 MOCKPP_MINOR_VERSION=11 -MOCKPP_PATCH_VERSION=3 +MOCKPP_PATCH_VERSION=4 MOCKPP_MICRO_VERSION=38 MOCKPP_INTERFACE_AGE=0 @@ -464,6 +464,7 @@ AC_OUTPUT(\ mockpp.spec \ + mockpp-config \ mockpp.doxygen \ \ Makefile \ |