PYTHON_LIBS=
if test "$withval" != "no"; then
if test "$withval" = "yes"; then
- for python_root in /usr /usr/local /usr/sfw; do
- for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
- if test -f $python_root/include/${ver}/Python.h; then
- PYTHON_INCDIR=-I$python_root/include/${ver}
- if test -d $python_root/lib64/${ver}/config; then
- PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
- else
- PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
+ if test -e /usr/bin/python-config ; then
+ PYTHON_INCDIR=`/usr/bin/python-config --includes`
+ PYTHON_LIBS=`/usr/bin/python-config --libs`
+ else
+ for python_root in /usr /usr/local /usr/sfw; do
+ for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
+ if test -f $python_root/include/${ver}/Python.h; then
+ PYTHON_INCDIR=-I$python_root/include/${ver}
+ if test -d $python_root/lib64/${ver}/config; then
+ PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
+ else
+ PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
+ fi
+ break
fi
- break
- fi
+ done
done
- done
- if test x$PYTHON_INCDIR = x; then
- if test -f $prefix/include/Python.h; then
- PYTHON_INCDIR=-I$prefix/include
- if test -d $prefix/lib64/config; then
- PYTHON_LIBS="-L$prefix/lib64/config -lpython"
+ if test x$PYTHON_INCDIR = x; then
+ if test -f $prefix/include/Python.h; then
+ PYTHON_INCDIR=-I$prefix/include
+ if test -d $prefix/lib64/config; then
+ PYTHON_LIBS="-L$prefix/lib64/config -lpython"
+ else
+ PYTHON_LIBS="-L$prefix/lib/config -lpython"
+ fi
else
- PYTHON_LIBS="-L$prefix/lib/config -lpython"
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR(Unable to find Python.h in standard locations)
fi
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(Unable to find Python.h in standard locations)
fi
fi
else
- if test -f $withval/Python.h; then
+ if test -e $withval/bin/python-config ; then
+ PYTHON_INCDIR=`$withval/bin/python-config --includes`
+ PYTHON_LIBS=`$withval/bin/python-config --libs`
+ elif test -f $withval/Python.h; then
PYTHON_INCDIR=-I$withval
PYTHON_LIBS="-L$withval/config -lpython"
elif test -f $withval/include/Python.h; then
OPENSSL_INC=""
fi
+if test "$support_tls" = "no"; then
+ OPENSSL_LIBS=""
+ OPENSSL_INC=""
+fi
+
AC_MSG_RESULT([$support_tls])
AC_SUBST(OPENSSL_LIBS)
AC_SUBST(OPENSSL_INC)
PSCMD="ps -e"
WIN32=
MACOSX=
+
hostname=`uname -n | cut -d '.' -f 1`
if test x${hostname} = x ; then
hostname="localhost"
fi
+dnl Make sure hostname is resolved
+ping -c 1 $hostname 2>/dev/null 1>/dev/null
+if test ! $? = 0; then
+ hostname="localhost"
+fi
+
case "$DISTNAME" in
aix)
DISTVER=`uname -r`
platforms/darwin/Makefile"
;;
debian)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
DISTNAME="ubuntu"
fi
fi
;;
freebsd)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTVER=`uname -a |awk '{print $3}'`
VER=`echo $DISTVER | cut -c 1`
if test x$VER = x4 ; then
platforms/openbsd/bacula-dir"
;;
redhat)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
if test -f /etc/whitebox-release ; then
f=/etc/whitebox-release
else
platforms/redhat/Makefile \
platforms/redhat/bacula-fd \
platforms/redhat/bacula-sd \
- platforms/redhat/bacula-dir \
- platforms/redhat/bacula.spec \
+ platforms/redhat/bacula-dir
"
;;
mandrake)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTVER=`cat /etc/mandrake-release | grep release |\
cut -f 5 -d ' '`
TAPEDRIVE="/dev/nst0"
"
;;
gentoo)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
platforms/gentoo/bacula-dir"
;;
slackware)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTVER=`cat /etc/slackware-version`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
LIBS="$LIBS -lresolv"
;;
suse)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTVER=`cat /etc/SuSE-release |grep VERSION|\
cut -f 3 -d ' '`
TAPEDRIVE="/dev/nst0"
platforms/suse/bacula.spec"
;;
suse5)
- dnl Make sure hostname is resolved
- ping -c 1 $hostname 2>&1 1>/dev/null
- if test ! $? = 0; then
- hostname="localhost"
- fi
DISTNAME=suse
DISTVER=5.x
TAPEDRIVE="/dev/nst0"