aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 01:42:22 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 01:42:22 +0000
commitb29fe3ed48c72e6a30a29c7fbdf3b841c59551c5 (patch)
tree9e7d103d523da09947398564fae5f90c9297121e /configure
parent14f87098c07c33cc46fb7510be739e63c3a9be07 (diff)
Preliminary AIX support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5732 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure b/configure
index cf76e9c357..1f3d23397c 100755
--- a/configure
+++ b/configure
@@ -32,7 +32,7 @@ ar="ar"
make="make"
install="install"
strip="strip"
-cpu=`uname -m`
+cpu=`test $(uname -s) = AIX && uname -p || uname -m`
target_list=""
case "$cpu" in
i386|i486|i586|i686|i86pc|BePC)
@@ -68,7 +68,7 @@ case "$cpu" in
mips64)
cpu="mips64"
;;
- "Power Macintosh"|ppc|ppc64)
+ "Power Macintosh"|ppc|ppc64|powerpc)
cpu="powerpc"
;;
s390*)
@@ -117,6 +117,7 @@ mixemu="no"
bluez="yes"
kvm="yes"
kerneldir=""
+aix="no"
# OS specific
targetos=`uname -s`
@@ -206,6 +207,10 @@ SunOS)
fi
audio_possible_drivers="oss sdl"
;;
+AIX)
+aix="yes"
+make="gmake"
+;;
*)
audio_drv_list="oss"
audio_possible_drivers="oss alsa sdl esd pa"
@@ -1220,6 +1225,12 @@ if test "$darwin" = "yes" ; then
echo "CONFIG_DARWIN=yes" >> $config_mak
echo "#define CONFIG_DARWIN 1" >> $config_h
fi
+
+if test "$aix" = "yes" ; then
+ echo "CONFIG_AIX=yes" >> $config_mak
+ echo "#define CONFIG_AIX 1" >> $config_h
+fi
+
if test "$solaris" = "yes" ; then
echo "CONFIG_SOLARIS=yes" >> $config_mak
echo "#define HOST_SOLARIS $solarisrev" >> $config_h