X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fconfigure.ac;h=9a516889155cfdcef503d8c30eaa9ea414e11874;hb=54ca9b53d5c442288b8104086348e5b0035625e9;hp=6e792d389b0a77f97493c5928f746b05b93bd7e9;hpb=5ee17950e2c44804fbaf660837f88d725136b978;p=xestiaab%2F.git diff --git a/source/configure.ac b/source/configure.ac index 6e792d3..9a51688 100644 --- a/source/configure.ac +++ b/source/configure.ac @@ -13,6 +13,25 @@ AC_PROG_CXX AC_PROG_CC AC_PROG_CPP +# Check prefix directories. + +if test "x$prefix" = "xNONE" ; then + prefix="/usr/local" +fi + +if test "x$exec_prefix" = "xNONE" ; then + exec_prefix=$prefix +fi + +PREFIX=$prefix +AC_SUBST([PREFIX]) + +if test "x$bindir" = "xNONE" ; then + bindir="/bin" +fi +BINDIR=`eval echo $bindir` +AC_SUBST([BINDIR]) + # Checks for libraries. # wxWidgets @@ -63,20 +82,6 @@ before running configure again." exit -1 ]) -# ossp-uuid Library - -AC_CHECK_LIB([ossp-uuid++], [main], [], [echo "The OSSP UUID C++ library must be installed on your system. -Please check that this library is installed properly before -running configure again." - exit -1 - ]) - -AC_CHECK_HEADER([ossp/uuid++.hh], [], [echo "The OSSP UUID C++ library headers must be installed on your system. -Please check that the library headers are installed properly -before running configure again." - exit -1 - ]) - AC_LANG_PUSH([C++]) # curl Library @@ -125,6 +130,28 @@ variable before running configure again." exit -1 ]) +# file application + +AC_CHECK_PROG([FOUND_FILE], [file], [yes], [no]) +AM_CONDITIONAL([FOUND_FILE_RES], [test x$FOUND_FILE = xyes]) + +AM_COND_IF([FOUND_FILE_RES], [], [echo "Cannot find the file program on your system. +If it is installed on your system, adjust your PATH environment +variable before running configure again." + exit -1 + ]) + +# uuidgen application + +AC_CHECK_PROG([FOUND_UUIDGEN], [uuidgen], [yes], [no]) +AM_CONDITIONAL([FOUND_UUIDGEN_RES], [test x$FOUND_UUIDGEN = xyes]) + +AM_COND_IF([FOUND_UUIDGEN_RES], [], [echo "Cannot find the uuidgen program on your system. +If it is installed on your system, adjust your PATH environment +variable before running configure again." + exit -1 + ]) + # Checks for header files. AC_CHECK_HEADERS([stdlib.h string.h iostream iomanip ios algorithm map vector utility]) @@ -135,7 +162,7 @@ AC_C_INLINE # Setup the debug setting. AC_ARG_ENABLE([debug], -[ --enable-debug Enable a debugging build], +[ --enable-debug Enable debugging features for the build.], [case "${enableval}" in yes) debug=true;; no) debug=false;;