[Cbe-oss-dev] [PATCH 1/2] MARS: add missing build files

Yuji Mano Yuji.Mano at am.sony.com
Fri Aug 15 07:18:37 EST 2008


This adds missing build files needed to build the MARS library from the source
repository at git://git.infradead.org/ps3/mars-src.git.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
diff --git a/bootstrap b/bootstrap
new file mode 100644
index 0000000..cfd7fd3
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,69 @@
+#! /bin/bash
+#  bootstrap -- Use this script to create generated files from a VCS checkout
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+if [ $VERSION ]; then
+	version=$VERSION
+	echo "VERSION =" $version
+elif [ -f VERSION ]; then
+	version=`cat VERSION`
+	echo "VERSION =" $version
+else
+	version=""
+	echo "No VERSION file found!"
+fi
+
+version_maj=$(echo ${version} | sed -e 's/\.[0-9.]*//')
+version_min=$(echo ${version} | sed -e 's/^[0-9]*\.//' | sed -e 's/\.[0-9]*$//')
+version_rev=$(echo ${version} | sed -e 's/[0-9.]*\.//')
+
+sed -e s, at version@,${version},g \
+	configure.ac.in > configure.ac
+
+aclocal
+libtoolize --force --copy
+autoheader
+automake --foreign --add-missing --copy
+autoconf
+
+pushd src/host && ./bootstrap $version && popd
+pushd src/mpu && ./bootstrap $version && popd
+
+if [ -e config.sub ]; then
+	patch -p1 < config.sub.patch
+fi
diff --git a/config.sub.patch b/config.sub.patch
new file mode 100644
index 0000000..3a44479
--- /dev/null
+++ b/config.sub.patch
@@ -0,0 +1,24 @@
+--- a/config.sub	2005-11-22 05:18:02.000000000 -0800
++++ b/config.sub	2006-07-11 12:09:36.000000000 -0700
+@@ -816,6 +816,10 @@
+ 	ppc64le-* | powerpc64little-*)
+ 		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
++	ppu)
++		basic_machine=powerpc64-cell
++		os=-linux
++		;;
+ 	ps2)
+ 		basic_machine=i386-ibm
+ 		;;
+@@ -868,6 +872,10 @@
+ 	spur)
+ 		basic_machine=spur-unknown
+ 		;;
++	spu)
++		basic_machine=spu-cell
++		os=-none
++		;;
+ 	st2000)
+ 		basic_machine=m68k-tandem
+ 		;;
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index cf7a6e6..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,63 +0,0 @@
-## configure.ac -- Process this file with autoconf to produce configure
-#
-#  Copyright 2008 Sony Corporation of America
-#
-#
-#  Permission is hereby granted, free of charge, to any person obtaining
-#  a copy of this Library and associated documentation files (the
-#  "Library"), to deal in the Library without restriction, including
-#  without limitation the rights to use, copy, modify, merge, publish,
-#  distribute, sublicense, and/or sell copies of the Library, and to
-#  permit persons to whom the Library is furnished to do so, subject to
-#  the following conditions:
-#
-#   The above copyright notice and this permission notice shall be
-#   included in all copies or substantial portions of the Library.
-#
-#   If you modify the Library, you may copy and distribute your modified
-#   version of the Library in object code or as an executable provided
-#   that you also do one of the following:
-#
-#    Accompany the modified version of the Library with the complete
-#    corresponding machine-readable source code for the modified version
-#    of the Library; or,
-#
-#    Accompany the modified version of the Library with a written offer
-#    for a complete machine-readable copy of the corresponding source
-#    code of the modified version of the Library.
-#
-#
-#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
-#
-
-AC_INIT(mars, 08.06.26, Yuji Mano <yuji.mano at am.sony.com>)
-
-AC_PREFIX_DEFAULT(/usr)
-
-if test "x${prefix}" = "xNONE"; then
-	prefix=$ac_default_prefix
-	ac_configure_args="$ac_configure_args --prefix $prefix"
-fi
-
-AM_INIT_AUTOMAKE
-AC_PROG_LIBTOOL
-
-AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_FILES([
-	Makefile
-	include/Makefile
-	src/Makefile
-])
-
-AC_CONFIG_SUBDIRS([
-	src/host
-	src/mpu
-])
-
-AC_OUTPUT
diff --git a/configure.ac.in b/configure.ac.in
new file mode 100644
index 0000000..4a31773
--- /dev/null
+++ b/configure.ac.in
@@ -0,0 +1,63 @@
+## configure.ac -- Process this file with autoconf to produce configure
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+AC_INIT(mars, @version@, Yuji Mano <yuji.mano at am.sony.com>)
+
+AC_PREFIX_DEFAULT(/usr)
+
+if test "x${prefix}" = "xNONE"; then
+	prefix=$ac_default_prefix
+	ac_configure_args="$ac_configure_args --prefix $prefix"
+fi
+
+AM_INIT_AUTOMAKE
+AC_PROG_LIBTOOL
+
+AC_CONFIG_HEADERS(config.h)
+AC_CONFIG_FILES([
+	Makefile
+	include/Makefile
+	src/Makefile
+])
+
+AC_CONFIG_SUBDIRS([
+	src/host
+	src/mpu
+])
+
+AC_OUTPUT
diff --git a/src/host/bootstrap b/src/host/bootstrap
new file mode 100644
index 0000000..f54a498
--- /dev/null
+++ b/src/host/bootstrap
@@ -0,0 +1,53 @@
+#! /bin/bash
+#  bootstrap -- Use this script to create generated files from a VCS checkout
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+version="$1"
+
+sed -e s, at version@,${version},g \
+	configure.ac.in > configure.ac
+
+aclocal
+libtoolize --force --copy
+autoheader
+automake --foreign --add-missing --copy
+autoconf
+
+if [ -e config.sub ]; then
+	patch -p1 < config.sub.patch
+fi
diff --git a/src/host/config.sub.patch b/src/host/config.sub.patch
new file mode 100644
index 0000000..3a44479
--- /dev/null
+++ b/src/host/config.sub.patch
@@ -0,0 +1,24 @@
+--- a/config.sub	2005-11-22 05:18:02.000000000 -0800
++++ b/config.sub	2006-07-11 12:09:36.000000000 -0700
+@@ -816,6 +816,10 @@
+ 	ppc64le-* | powerpc64little-*)
+ 		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
++	ppu)
++		basic_machine=powerpc64-cell
++		os=-linux
++		;;
+ 	ps2)
+ 		basic_machine=i386-ibm
+ 		;;
+@@ -868,6 +872,10 @@
+ 	spur)
+ 		basic_machine=spur-unknown
+ 		;;
++	spu)
++		basic_machine=spu-cell
++		os=-none
++		;;
+ 	st2000)
+ 		basic_machine=m68k-tandem
+ 		;;
diff --git a/src/host/configure.ac b/src/host/configure.ac
deleted file mode 100644
index 118cf99..0000000
--- a/src/host/configure.ac
+++ /dev/null
@@ -1,55 +0,0 @@
-## configure.ac -- Process this file with autoconf to produce configure
-#
-#  Copyright 2008 Sony Corporation of America
-#
-#
-#  Permission is hereby granted, free of charge, to any person obtaining
-#  a copy of this Library and associated documentation files (the
-#  "Library"), to deal in the Library without restriction, including
-#  without limitation the rights to use, copy, modify, merge, publish,
-#  distribute, sublicense, and/or sell copies of the Library, and to
-#  permit persons to whom the Library is furnished to do so, subject to
-#  the following conditions:
-#
-#   The above copyright notice and this permission notice shall be
-#   included in all copies or substantial portions of the Library.
-#
-#   If you modify the Library, you may copy and distribute your modified
-#   version of the Library in object code or as an executable provided
-#   that you also do one of the following:
-#
-#    Accompany the modified version of the Library with the complete
-#    corresponding machine-readable source code for the modified version
-#    of the Library; or,
-#
-#    Accompany the modified version of the Library with a written offer
-#    for a complete machine-readable copy of the corresponding source
-#    code of the modified version of the Library.
-#
-#
-#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
-#
-
-AC_INIT(host, 08.06.26, Yuji Mano <yuji.mano at am.sony.com>)
-
-host_alias=ppu
-AC_SUBST(host_alias)
-
-AC_CONFIG_AUX_DIR([.])
-
-AC_PROG_LIBTOOL
-AM_INIT_AUTOMAKE
-
-AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_FILES([
-	Makefile
-	lib/Makefile
-])
-
-AC_OUTPUT
diff --git a/src/host/configure.ac.in b/src/host/configure.ac.in
new file mode 100644
index 0000000..6d28ae1
--- /dev/null
+++ b/src/host/configure.ac.in
@@ -0,0 +1,55 @@
+## configure.ac -- Process this file with autoconf to produce configure
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+AC_INIT(host, @version@, Yuji Mano <yuji.mano at am.sony.com>)
+
+host_alias=ppu
+AC_SUBST(host_alias)
+
+AC_CONFIG_AUX_DIR([.])
+
+AC_PROG_LIBTOOL
+AM_INIT_AUTOMAKE
+
+AC_CONFIG_HEADERS(config.h)
+AC_CONFIG_FILES([
+	Makefile
+	lib/Makefile
+])
+
+AC_OUTPUT
diff --git a/src/mpu/bootstrap b/src/mpu/bootstrap
new file mode 100644
index 0000000..f54a498
--- /dev/null
+++ b/src/mpu/bootstrap
@@ -0,0 +1,53 @@
+#! /bin/bash
+#  bootstrap -- Use this script to create generated files from a VCS checkout
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+version="$1"
+
+sed -e s, at version@,${version},g \
+	configure.ac.in > configure.ac
+
+aclocal
+libtoolize --force --copy
+autoheader
+automake --foreign --add-missing --copy
+autoconf
+
+if [ -e config.sub ]; then
+	patch -p1 < config.sub.patch
+fi
diff --git a/src/mpu/config.sub.patch b/src/mpu/config.sub.patch
new file mode 100644
index 0000000..3a44479
--- /dev/null
+++ b/src/mpu/config.sub.patch
@@ -0,0 +1,24 @@
+--- a/config.sub	2005-11-22 05:18:02.000000000 -0800
++++ b/config.sub	2006-07-11 12:09:36.000000000 -0700
+@@ -816,6 +816,10 @@
+ 	ppc64le-* | powerpc64little-*)
+ 		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
++	ppu)
++		basic_machine=powerpc64-cell
++		os=-linux
++		;;
+ 	ps2)
+ 		basic_machine=i386-ibm
+ 		;;
+@@ -868,6 +872,10 @@
+ 	spur)
+ 		basic_machine=spur-unknown
+ 		;;
++	spu)
++		basic_machine=spu-cell
++		os=-none
++		;;
+ 	st2000)
+ 		basic_machine=m68k-tandem
+ 		;;
diff --git a/src/mpu/configure.ac b/src/mpu/configure.ac
deleted file mode 100644
index 5db07f8..0000000
--- a/src/mpu/configure.ac
+++ /dev/null
@@ -1,65 +0,0 @@
-## configure.ac -- Process this file with autoconf to produce configure
-#
-#  Copyright 2008 Sony Corporation of America
-#
-#
-#  Permission is hereby granted, free of charge, to any person obtaining
-#  a copy of this Library and associated documentation files (the
-#  "Library"), to deal in the Library without restriction, including
-#  without limitation the rights to use, copy, modify, merge, publish,
-#  distribute, sublicense, and/or sell copies of the Library, and to
-#  permit persons to whom the Library is furnished to do so, subject to
-#  the following conditions:
-#
-#   The above copyright notice and this permission notice shall be
-#   included in all copies or substantial portions of the Library.
-#
-#   If you modify the Library, you may copy and distribute your modified
-#   version of the Library in object code or as an executable provided
-#   that you also do one of the following:
-#
-#    Accompany the modified version of the Library with the complete
-#    corresponding machine-readable source code for the modified version
-#    of the Library; or,
-#
-#    Accompany the modified version of the Library with a written offer
-#    for a complete machine-readable copy of the corresponding source
-#    code of the modified version of the Library.
-#
-#
-#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
-#
-
-AC_INIT(mpu, 08.06.26, Yuji Mano <yuji.mano at am.sony.com>)
-
-host_alias=spu
-AC_SUBST(host_alias)
-
-libdir=${prefix}/spu/lib
-ac_configure_args="$ac_configure_args --libdir $libdir"
-
-AC_CONFIG_AUX_DIR([.])
-
-AC_PROG_CC(spu-gcc)
-AC_PROG_CXX(spu-g++)
-AC_PROG_LD(spu-ld)
-AM_PROG_AS(spu-as)
-AC_PATH_TOOL(PPU_EMBEDSPU, ppu-embedspu)
-
-AC_PROG_LIBTOOL
-AM_INIT_AUTOMAKE
-
-AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_FILES([
-	Makefile
-	kernel/Makefile
-	lib/Makefile
-])
-
-AC_OUTPUT
diff --git a/src/mpu/configure.ac.in b/src/mpu/configure.ac.in
new file mode 100644
index 0000000..e013814
--- /dev/null
+++ b/src/mpu/configure.ac.in
@@ -0,0 +1,65 @@
+## configure.ac -- Process this file with autoconf to produce configure
+#
+#  Copyright 2008 Sony Corporation of America
+#
+#
+#  Permission is hereby granted, free of charge, to any person obtaining
+#  a copy of this Library and associated documentation files (the
+#  "Library"), to deal in the Library without restriction, including
+#  without limitation the rights to use, copy, modify, merge, publish,
+#  distribute, sublicense, and/or sell copies of the Library, and to
+#  permit persons to whom the Library is furnished to do so, subject to
+#  the following conditions:
+#
+#   The above copyright notice and this permission notice shall be
+#   included in all copies or substantial portions of the Library.
+#
+#   If you modify the Library, you may copy and distribute your modified
+#   version of the Library in object code or as an executable provided
+#   that you also do one of the following:
+#
+#    Accompany the modified version of the Library with the complete
+#    corresponding machine-readable source code for the modified version
+#    of the Library; or,
+#
+#    Accompany the modified version of the Library with a written offer
+#    for a complete machine-readable copy of the corresponding source
+#    code of the modified version of the Library.
+#
+#
+#  THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+#  LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
+#
+
+AC_INIT(mpu, @version@, Yuji Mano <yuji.mano at am.sony.com>)
+
+host_alias=spu
+AC_SUBST(host_alias)
+
+libdir=${prefix}/spu/lib
+ac_configure_args="$ac_configure_args --libdir $libdir"
+
+AC_CONFIG_AUX_DIR([.])
+
+AC_PROG_CC(spu-gcc)
+AC_PROG_CXX(spu-g++)
+AC_PROG_LD(spu-ld)
+AM_PROG_AS(spu-as)
+AC_PATH_TOOL(PPU_EMBEDSPU, ppu-embedspu)
+
+AC_PROG_LIBTOOL
+AM_INIT_AUTOMAKE
+
+AC_CONFIG_HEADERS(config.h)
+AC_CONFIG_FILES([
+	Makefile
+	kernel/Makefile
+	lib/Makefile
+])
+
+AC_OUTPUT





More information about the cbe-oss-dev mailing list