diff options
author | Rich Megginson <rmeggins@redhat.com> | 2009-04-06 17:23:32 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2009-04-06 17:23:32 +0000 |
commit | 350238782ac664195a350d85c40768f5cc83f66e (patch) | |
tree | 914912b556094e60f5d9887d4f189203f88a0cad | |
parent | 2e31d017f1c1acb90c00ae51e009836d3509677a (diff) | |
download | ds-350238782ac664195a350d85c40768f5cc83f66e.tar.gz ds-350238782ac664195a350d85c40768f5cc83f66e.tar.xz ds-350238782ac664195a350d85c40768f5cc83f66e.zip |
add back support for linux ppc
-rwxr-xr-x | configure | 63 | ||||
-rw-r--r-- | configure.ac | 33 |
2 files changed, 29 insertions, 67 deletions
@@ -23381,7 +23381,7 @@ initdir=/rc.d # those with our 64 bit compiled product. perlexec='/usr/bin/env perl' case $host in - i*86-*-linux*) + *-*-linux*) cat >>confdefs.h <<\_ACEOF #define XP_UNIX 1 @@ -23414,12 +23414,18 @@ _ACEOF cat >>confdefs.h <<\_ACEOF -#define CPU_x86 +#define _GNU_SOURCE 1 _ACEOF + platform="linux" + # relative to sysconfdir + initdir=/rc.d/init.d + # do arch specific linux stuff here + case $host in + i*86-*-linux*) cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 +#define CPU_x86 _ACEOF @@ -23427,7 +23433,7 @@ cat >>confdefs.h <<\_ACEOF #define ATOMIC_64BIT_OPERATIONS 1 _ACEOF - echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5 + echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5 echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -23499,41 +23505,8 @@ _ACEOF fi - platform="linux" - # relative to sysconfdir - initdir=/rc.d/init.d - ;; - x86_64-*-linux*) - -cat >>confdefs.h <<\_ACEOF -#define XP_UNIX 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define Linux 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define LINUX 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define LINUX2_0 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define LINUX2_2 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define LINUX2_4 1 -_ACEOF - + ;; + x86_64-*-linux*) cat >>confdefs.h <<\_ACEOF #define CPU_x86_64 @@ -23541,15 +23514,10 @@ _ACEOF cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF #define ATOMIC_64BIT_OPERATIONS 1 _ACEOF - echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5 + echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5 echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -23621,9 +23589,8 @@ _ACEOF fi - platform="linux" - # relative to sysconfdir - initdir=/rc.d/init.d + ;; + esac ;; ia64-hp-hpux*) diff --git a/configure.ac b/configure.ac index 17b400ba..96261729 100644 --- a/configure.ac +++ b/configure.ac @@ -296,35 +296,30 @@ initdir=/rc.d # those with our 64 bit compiled product. perlexec='/usr/bin/env perl' case $host in - i*86-*-linux*) + *-*-linux*) AC_DEFINE([XP_UNIX], [1], [UNIX]) AC_DEFINE([Linux], [1], [Linux]) AC_DEFINE([LINUX], [1], [Linux]) AC_DEFINE([LINUX2_0], [1], [Linux 2.0]) AC_DEFINE([LINUX2_2], [1], [Linux 2.2]) AC_DEFINE([LINUX2_4], [1], [Linux 2.4]) - AC_DEFINE([CPU_x86], [], [cpu type x86]) AC_DEFINE([_GNU_SOURCE], [1], [GNU Source]) - AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter]) - AC_CHECK_DECLS([__sync_add_and_fetch]) - platform="linux" - # relative to sysconfdir - initdir=/rc.d/init.d - ;; - x86_64-*-linux*) - AC_DEFINE([XP_UNIX], [1], [UNIX]) - AC_DEFINE([Linux], [1], [Linux]) - AC_DEFINE([LINUX], [1], [Linux]) - AC_DEFINE([LINUX2_0], [1], [Linux 2.0]) - AC_DEFINE([LINUX2_2], [1], [Linux 2.2]) - AC_DEFINE([LINUX2_4], [1], [Linux 2.4]) - AC_DEFINE([CPU_x86_64], [], [cpu type x86_64]) - AC_DEFINE([_GNU_SOURCE], [1], [GNU Source]) - AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter]) - AC_CHECK_DECLS([__sync_add_and_fetch]) platform="linux" # relative to sysconfdir initdir=/rc.d/init.d + # do arch specific linux stuff here + case $host in + i*86-*-linux*) + AC_DEFINE([CPU_x86], [], [cpu type x86]) + AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter]) + AC_CHECK_DECLS([__sync_add_and_fetch]) + ;; + x86_64-*-linux*) + AC_DEFINE([CPU_x86_64], [], [cpu type x86_64]) + AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter]) + AC_CHECK_DECLS([__sync_add_and_fetch]) + ;; + esac ;; ia64-hp-hpux*) AC_DEFINE([XP_UNIX], [1], [UNIX]) |