[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using CommonC++-1.9.2 library
From: |
Dung Le |
Subject: |
Using CommonC++-1.9.2 library |
Date: |
Fri, 21 Dec 2001 14:02:07 +0700 |
Hi,
Using KDevelop, Where will I set configuration for my project?
ccgnu-config ---flags
Reference to bayonne-0.7.2, CCGNU-Config Setting following::
<aclocal.m4>
...
dnl
OST_CCXX_VERSION([MINIMUM-VERSION[,ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]])
dnl Test for usable version of CommonC++
AC_DEFUN(OST_CCXX_DYNLOADER,[
ost_cv_dynloader=`$CCGNU_CONFIG --dso`
])
AC_DEFUN(OST_CCXX_VERSION,
[
AC_PATH_PROG(CCGNU_CONFIG, ccgnu-config, no)
ccgnu_version=ifelse([$1], ,1.3.3,$1)
AC_MSG_CHECKING(for CommonC++ version >= $ccgnu_version)
if test "$CCGNU_CONFIG" = "no" ; then
AC_MSG_RESULT(not found)
echo "*** The ccgnu-config script installed by CommonC++ 1.3.0"
echo "*** or later could not be found."
ifelse([$3], , :, [$3])
exit -1
else
config_version=`$CCGNU_CONFIG --version`
ccgnu_config_major_version=`echo $config_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
ccgnu_config_minor_version=`echo $config_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
ccgnu_config_micro_version=`echo $config_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
ccgnu_check_major_version=`echo "$ccgnu_version" | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
ccgnu_check_minor_version=`echo "$ccgnu_version" | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
ccgnu_check_micro_version=`echo "$ccgnu_version" | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
version_ok=no
if test $ccgnu_config_major_version -gt $ccgnu_check_major_version ;
then
version_ok=yes
elif test $ccgnu_config_major_version -eq $ccgnu_check_major_version \
&& test $ccgnu_config_minor_version -gt $ccgnu_check_minor_version ;
then
version_ok=yes
elif test $ccgnu_config_major_version -eq $ccgnu_check_major_version \
&& test $ccgnu_config_minor_version -eq $ccgnu_check_minor_version \
&& test $ccgnu_config_micro_version -ge $ccgnu_check_micro_version;
then
version_ok=yes
fi
if test "$version_ok" = "no"; then
AC_MSG_RESULT(no)
ost_cv_ccxx_config=false
echo "*** An old version of CommonC++ of $config_version was found."
echo "*** You need a version of CommonC++ newer than $ccgnu_version.
The latest version of"
echo "*** CommonC++ is always available from
ftp://ftp.gnu.org/gnu/commonc++/."
ifelse([$3], , :, [$3])
else
AC_MSG_RESULT(yes)
ost_cv_ccxx_config=true
SINGLE_FLAGS="$CXXFLAGS"
SINGLE_LIBS="$LIBS"
AC_SUBST(SINGLE_LIBS)
AC_SUBST(SINGLE_FLAGS)
CXXFLAGS="$CXXFLAGS "`$CCGNU_CONFIG --flags`
GNULIBS="$LIBS "`$CCGNU_CONFIG --gnulibs`
EXTLIBS=`$CCGNU_CONFIG --extlibs`
LIBS="$LIBS `$CCGNU_CONFIG --stdlibs`"
AC_SUBST(GNULIBS)
AC_SUBST(EXTLIBS)
fi
fi
])
...
<Makefile.in>
CCGNU_CONFIG = @CCGNU_CONFIG@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
...
GNULIBS = @GNULIBS@
LIBTOOL = @LIBTOOL@
...
So that how to setting paramter linking to CommonC++
Thanks