2007-09-14 04:32:46 +00:00
|
|
|
AC_DEFUN([TARGET_SHIZZLE],
|
|
|
|
[
|
|
|
|
ARCH=""
|
2009-03-18 10:39:35 +00:00
|
|
|
LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
|
2007-09-14 04:32:46 +00:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([target operating system])
|
|
|
|
|
|
|
|
case $target in
|
|
|
|
*-*-linux*)
|
|
|
|
ARCH=linux
|
|
|
|
LIBBURN_ARCH_LIBS=
|
|
|
|
;;
|
|
|
|
*-*-freebsd*)
|
|
|
|
ARCH=freebsd
|
|
|
|
LIBBURN_ARCH_LIBS=-lcam
|
2009-03-18 10:39:35 +00:00
|
|
|
LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
|
2007-09-14 04:32:46 +00:00
|
|
|
;;
|
|
|
|
*)
|
2009-03-05 12:18:41 +00:00
|
|
|
ARCH=
|
|
|
|
LIBBURN_ARCH_LIBS=
|
|
|
|
# AC_ERROR([You are attempting to compile for an unsupported platform])
|
2007-09-14 04:32:46 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_MSG_RESULT([$ARCH])
|
|
|
|
])
|