From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44747 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxSit-0007Og-QX for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxSir-0004pH-FJ for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:03 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:53683) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxSir-0004oe-2q for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:01 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 20 Sep 2010 00:50:43 +0200 Message-Id: <1284936650-1203-2-git-send-email-andreas.faerber@web.de> In-Reply-To: <1284936650-1203-1-git-send-email-andreas.faerber@web.de> References: <7861078417-BeMail@haiku> <1284936650-1203-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/8] configure: Add basic support for Haiku List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: haikuports-devs@ports.haiku-files.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Fran=C3=A7ois=20Revol?= , Ingo Weinhold From: Andreas F=C3=A4rber For compatibility with BeOS, Haiku's error codes are negative whereas rec= ent POSIX versions require them to be positive. As spotted by Fran=C3=A7ois, = some parts of QEMU code rely on this, so use a mapper library to convert them to positive ones. Cc: Fran=C3=A7ois Revol Cc: Ingo Weinhold Haiku has network functions in libnetwork.so. It doesn't ship libutil.so. Signed-off-by: Andreas F=C3=A4rber --- configure | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 6a21bf2..da32a1c 100755 --- a/configure +++ b/configure @@ -315,6 +315,7 @@ io_thread=3D"no" mixemu=3D"no" kerneldir=3D"" aix=3D"no" +haiku=3D"no" blobs=3D"yes" pkgversion=3D"" check_utests=3D"no" @@ -332,6 +333,8 @@ elif check_define __OpenBSD__ ; then targetos=3D'OpenBSD' elif check_define __sun__ ; then targetos=3D'SunOS' +elif check_define __HAIKU__ ; then + targetos=3D'Haiku' else targetos=3D`uname -s` fi @@ -447,6 +450,11 @@ AIX) aix=3D"yes" make=3D"gmake" ;; +Haiku) + haiku=3D"yes" + QEMU_CFLAGS=3D"-DB_USE_POSITIVE_POSIX_ERRORS $QEMU_CFLAGS" + LIBS=3D"-lposix_error_mapper -lnetwork $LIBS" +;; *) audio_drv_list=3D"oss" audio_possible_drivers=3D"oss alsa sdl esd pa" @@ -2026,7 +2034,7 @@ elif compile_prog "" "-lrt" ; then fi =20 if test "$darwin" !=3D "yes" -a "$mingw32" !=3D "yes" -a "$solaris" !=3D= yes -a \ - "$aix" !=3D "yes" ; then + "$aix" !=3D "yes" -a "$haiku" !=3D "yes" ; then libs_softmmu=3D"-lutil $libs_softmmu" fi =20 @@ -2340,6 +2348,9 @@ if test "$solaris" =3D "yes" ; then echo "CONFIG_NEEDS_LIBSUNMATH=3Dy" >> $config_host_mak fi fi +if test "$haiku" =3D "yes" ; then + echo "CONFIG_HAIKU=3Dy" >> $config_host_mak +fi if test "$static" =3D "yes" ; then echo "CONFIG_STATIC=3Dy" >> $config_host_mak fi --=20 1.7.1.rc2.7.g3e7f1