diff --git a/configure.ac b/configure.ac index d362ed5a..ad2b8bba 100644 --- a/configure.ac +++ b/configure.ac @@ -485,6 +485,7 @@ DX_INIT_DOXYGEN([$PACKAGE_NAME], [doxygen.cfg]) ############### Ouput cwd=`pwd -P`; cd ${srcdir}; abs_srcdir=`pwd -P`; cd ${cwd} +GRID_CXX="$CXX" GRID_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" GRID_LDFLAGS="$AM_LDFLAGS $LDFLAGS" GRID_LIBS=$LIBS @@ -497,6 +498,7 @@ AM_LDFLAGS="-L${cwd}/Grid $AM_LDFLAGS" AC_SUBST([AM_CFLAGS]) AC_SUBST([AM_CXXFLAGS]) AC_SUBST([AM_LDFLAGS]) +AC_SUBST([GRID_CXX]) AC_SUBST([GRID_CXXFLAGS]) AC_SUBST([GRID_LDFLAGS]) AC_SUBST([GRID_LIBS]) diff --git a/grid-config.in b/grid-config.in index bd340846..f39b01bd 100755 --- a/grid-config.in +++ b/grid-config.in @@ -61,6 +61,10 @@ while test $# -gt 0; do echo @GRID_CXXFLAGS@ ;; + --cxx) + echo @GRID_CXX@ + ;; + --ldflags) echo @GRID_LDFLAGS@ ;;