[Mplayer-cvslog] CVS: main configure,1.187,1.188

pl pl at mplayer.dev.hu
Sat Oct 13 22:14:24 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv8254

Modified Files:
	configure 
Log Message:
"function f()" non supported by FreeBSD's /bin/sh
"if ! true" construction neither
(thanks to Bohdan 'Nexus' Horst <nexus at irc.pl>


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -r1.187 -r1.188
--- configure	13 Oct 2001 16:53:37 -0000	1.187
+++ configure	13 Oct 2001 20:14:05 -0000	1.188
@@ -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 @@
 	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 @@
 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




More information about the MPlayer-cvslog mailing list