added glibc and gcc version to piler -V

This commit is contained in:
SJ 2012-12-04 12:00:47 +01:00
parent 0ded5892db
commit 06a1897970
2 changed files with 12 additions and 3 deletions

7
configure vendored
View File

@ -3446,10 +3446,15 @@ if test "$os" = "SunOS"; then MAKE="gmake"; fi
rm -f $CONFIGURE_PARAMS_FILE
LDD_VERSION=`ldd --version | head -1`
GCC_VERSION=''
if test -f `which gcc`; then gcc -v 2> aa; GCC_VERSION=`tail -1 aa`; rm -f aa; fi
if test "$os" = "SunOS"; then
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`'\\n" \\' > $CONFIGURE_PARAMS_FILE
else
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`"\\n\" \\" > $CONFIGURE_PARAMS_FILE
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`"\\nldd version: $LDD_VERSION\\ngcc version: $GCC_VERSION\n"\" \\ > $CONFIGURE_PARAMS_FILE
fi
echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE

View File

@ -68,15 +68,19 @@ if test "$os" = "SunOS"; then MAKE="gmake"; fi
rm -f $CONFIGURE_PARAMS_FILE
LDD_VERSION=`ldd --version | head -1`
GCC_VERSION=''
if test -f `which gcc`; then gcc -v 2> aa; GCC_VERSION=`tail -1 aa`; rm -f aa; fi
if test "$os" = "SunOS"; then
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`'\\n" \\' > $CONFIGURE_PARAMS_FILE
else
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`"\\n\" \\" > $CONFIGURE_PARAMS_FILE
echo "#define CONFIGURE_PARAMS \"Build Date: "`date`"\\nldd version: $LDD_VERSION\\ngcc version: $GCC_VERSION\n"\" \\ > $CONFIGURE_PARAMS_FILE
fi
echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE
dnl SUBDIRS="src etc util perl init.d templates history contrib/stat"
SUBDIRS="src etc util init.d test"