summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-13 20:14:05 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-13 20:14:05 +0000
commit2749975763a83b00a9fb929f2ad0b59177aaf669 (patch)
treee832d5c55b51fafafd36c3121657d58f59f2688e /configure
parent95f3e087b8428cbf59ff588238e84c6e7a4d2dc0 (diff)
downloadmpv-2749975763a83b00a9fb929f2ad0b59177aaf669.tar.bz2
mpv-2749975763a83b00a9fb929f2ad0b59177aaf669.tar.xz
"function f()" non supported by FreeBSD's /bin/sh
"if ! true" construction neither (thanks to Bohdan 'Nexus' Horst <nexus at irc.pl> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2194 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 10 insertions, 10 deletions
diff --git a/configure b/configure
index f4429d3b2e..4cd52358e5 100755
--- a/configure
+++ b/configure
@@ -109,13 +109,13 @@
# SOME MACROS/USEFUL FUNCTIONS
# Returns error code only - NO displaye
-function cc_check() {
+cc_check() {
"$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
return "$?"
}
# Display error message, flushes tempfile, exit
-function die () {
+die () {
echo
echo "Error: $@" >&2
echo >&2
@@ -123,23 +123,23 @@ function die () {
exit 1
}
-function linux() {
+linux() {
test "$system_name" = "Linux"
return "$?"
}
-function freebsd() {
+freebsd() {
test "$system_name" = "FreeBSD"
return "$?"
}
-function openbsd() {
+openbsd() {
test "$system_name" = "OpenBSD"
return "$?"
}
-function bsdos() {
+bsdos() {
test "$system_name" = "BSD/OS"
return "$?"
}
-function bsd() {
+bsd() {
freebsd || openbsd || bsdos
return "$?"
}
@@ -1948,10 +1948,10 @@ else
fi
# malloc.h useless in FreeBSD
-if test "$_malloc_h" = yes && ! freebsd ; then
- _have_malloc_h='#define HAVE_MALLOC_H 1'
+if test "$_malloc_h" = yes && test ! freebsd ; then
+ _have_malloc_h='#define HAVE_MALLOC_H 1'
else
- _have_malloc_h='#undef HAVE_MALLOC_H'
+ _have_malloc_h='#undef HAVE_MALLOC_H'
fi
if test "$_memalign" = yes ; then