summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2006-06-11 15:13:06 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2006-06-11 15:13:06 +0000
commit448be9fa3dcb50ff4b160a1b1566b20129731f3a (patch)
treeeb48be71fe0945537bf1aa7fef297cc2f68f89e5 /m4
parentba717771e1356acbc7c4c35cb2828098a5a31675 (diff)
downloadxine-lib-448be9fa3dcb50ff4b160a1b1566b20129731f3a.tar.gz
xine-lib-448be9fa3dcb50ff4b160a1b1566b20129731f3a.tar.bz2
Add xine-specific changes to the new intl files, other little correction.
CVS patchset: 8034 CVS date: 2006/06/11 15:13:06
Diffstat (limited to 'm4')
-rw-r--r--m4/_xine.m42
-rw-r--r--m4/iconv.m416
2 files changed, 17 insertions, 1 deletions
diff --git a/m4/_xine.m4 b/m4/_xine.m4
index a67425bdc..897ba07a2 100644
--- a/m4/_xine.m4
+++ b/m4/_xine.m4
@@ -180,7 +180,7 @@ dnl AC_CHECK_GENERATE_INTTYPES_H (INCLUDE-DIRECTORY)
dnl generate a default inttypes.h if the header file does not exist already
AC_DEFUN([AC_CHECK_GENERATE_INTTYPES],
[AC_CHECK_HEADER([inttypes.h],,
- [[ ! -d $1 ] && mkdir $1
+ [if test ! -d $1; then mkdir $1; fi
AC_CHECK_HEADER([stdint.h],
[cat >$1/inttypes.h << EOF
#ifndef _INTTYPES_H
diff --git a/m4/iconv.m4 b/m4/iconv.m4
index 654c41589..5ed7c43ae 100644
--- a/m4/iconv.m4
+++ b/m4/iconv.m4
@@ -15,6 +15,22 @@ AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
dnl accordingly.
AC_LIB_LINKFLAGS_BODY([iconv])
+
+ dnl
+ dnl xine: added the prefix /usr/local on FreeBSD if none specified
+ dnl
+ if test -z "$INCICONV"; then
+ case "$host" in
+ *-*-freebsd*)
+ dir=/usr/local
+ if test -d $dir/include; then INCICONV="$INCICONV -I$dir/include"; fi
+ if test -d $dir/lib; then
+ LIBICONV="$LIBICONV -L$dir/lib"
+ LTLIBICONV="$LTLIBICONV -L$dir/lib"
+ fi
+ ;;
+ esac
+ fi
])
AC_DEFUN([AM_ICONV_LINK],