aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-01-18 19:23:36 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-01-18 19:23:36 +0000
commitc377f1e3fec328bdf9bdfce25190b2c8356e4be7 (patch)
tree000cf84df0483724bb243c4c1533d9c5377f350c /libgloss
parent7a01d046d4c331f7871b3c219730fe7f0d9fb3e3 (diff)
downloadnewlib-c377f1e3fec328bdf9bdfce25190b2c8356e4be7.zip
newlib-c377f1e3fec328bdf9bdfce25190b2c8356e4be7.tar.gz
newlib-c377f1e3fec328bdf9bdfce25190b2c8356e4be7.tar.bz2
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
* libnosys/configure.in (libc_cv_asm_previous_directive): Set cache-id variable. (libc_cv_asm_popsection_directive): Ditto. (libc_cv_section_attributes): Ditto. (libc_symbol_prefix): Rename from libc_dollar_prefix. Check for "_" as well, and set __SYMBOL_PREFIX accordingly. * libnosys/configure: Regenerate.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog10
-rwxr-xr-xlibgloss/libnosys/configure58
-rw-r--r--libgloss/libnosys/configure.in20
3 files changed, 59 insertions, 29 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index cf9bf75..8cbc808 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,5 +1,15 @@
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
+ * libnosys/configure.in (libc_cv_asm_previous_directive): Set
+ cache-id variable.
+ (libc_cv_asm_popsection_directive): Ditto.
+ (libc_cv_section_attributes): Ditto.
+ (libc_symbol_prefix): Rename from libc_dollar_prefix. Check for
+ "_" as well, and set __SYMBOL_PREFIX accordingly.
+ * libnosys/configure: Regenerate.
+
+2005-01-18 Hans-Peter Nilsson <hp@axis.com>
+
* libnosys/Makefile.in (LD, AS): Correct obsoleted suffix: Say
as-new and ld-new, not as.new and ld.new.
diff --git a/libgloss/libnosys/configure b/libgloss/libnosys/configure
index 6e8e082..9c8d08e 100755
--- a/libgloss/libnosys/configure
+++ b/libgloss/libnosys/configure
@@ -811,11 +811,13 @@ echo "configure:811: checking for .previous assembler directive" >&5
if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.s <<EOF
+ libc_cv_asm_previous_directive=no
+ cat > conftest.s <<EOF
.section foo_section
.previous
EOF
- if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ libc_cv_asm_previous_directive=yes
cat >> confdefs.h <<\EOF
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
EOF
@@ -827,15 +829,17 @@ fi
echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
-echo "configure:831: checking for .popsection assembler directive" >&5
+echo "configure:833: checking for .popsection assembler directive" >&5
if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.s <<EOF
+ libc_cv_asm_popsection_directive=no
+ cat > conftest.s <<EOF
.pushsection foo_section
.popsection
EOF
- if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ libc_cv_asm_popsection_directive=yes
cat >> confdefs.h <<\EOF
#define HAVE_ASM_POPSECTION_DIRECTIVE 1
EOF
@@ -847,15 +851,17 @@ fi
echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
echo $ac_n "checking for section attributes""... $ac_c" 1>&6
-echo "configure:851: checking for section attributes" >&5
+echo "configure:855: checking for section attributes" >&5
if eval "test \"`echo '$''{'libc_cv_section_attributes'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.c <<EOF
+ libc_cv_section_attributes=no
+ cat > conftest.c <<EOF
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
int main() {}
EOF
- if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ libc_cv_section_attributes=yes
cat >> confdefs.h <<\EOF
#define HAVE_SECTION_ATTRIBUTES 1
EOF
@@ -868,27 +874,31 @@ echo "$ac_t""$libc_cv_section_attributes" 1>&6
;;
esac
-echo $ac_n "checking for function prefix""... $ac_c" 1>&6
-echo "configure:873: checking for function prefix" >&5
-if eval "test \"`echo '$''{'libc_dollar_prefix'+set}'`\" = set"; then
+echo $ac_n "checking for symbol prefix""... $ac_c" 1>&6
+echo "configure:879: checking for symbol prefix" >&5
+if eval "test \"`echo '$''{'libc_symbol_prefix'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<\EOF
foo () { }
EOF
-if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
+libc_symbol_prefix=none
+if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
then
- libc_dollar_prefix=yes
+ libc_symbol_prefix='$'
else
- libc_dollar_prefix=no
+ if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null'; { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
+ then
+ libc_symbol_prefix=_
+ fi
fi
rm -f conftest*
fi
-echo "$ac_t""$libc_dollar_prefix" 1>&6
-if test $libc_dollar_prefix = yes ; then
- cat >> confdefs.h <<\EOF
-#define __SYMBOL_PREFIX "$"
+echo "$ac_t""$libc_symbol_prefix" 1>&6
+if test $libc_symbol_prefix != none; then
+ cat >> confdefs.h <<EOF
+#define __SYMBOL_PREFIX "$libc_symbol_prefix"
EOF
else
@@ -901,7 +911,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:905: checking for $ac_word" >&5
+echo "configure:915: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -931,7 +941,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:935: checking for $ac_word" >&5
+echo "configure:945: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -980,7 +990,7 @@ fi
fi
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:984: checking whether we are using GNU C" >&5
+echo "configure:994: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -989,7 +999,7 @@ else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@@ -1004,7 +1014,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1018: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1040,7 +1050,7 @@ LD=${LD-ld}
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1044: checking for $ac_word" >&5
+echo "configure:1054: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
diff --git a/libgloss/libnosys/configure.in b/libgloss/libnosys/configure.in
index 9149e39..91acc0f 100644
--- a/libgloss/libnosys/configure.in
+++ b/libgloss/libnosys/configure.in
@@ -137,53 +137,63 @@ case "${target}" in
AC_CACHE_CHECK(for .previous assembler directive,
libc_cv_asm_previous_directive, [dnl
+ libc_cv_asm_previous_directive=no
cat > conftest.s <<EOF
.section foo_section
.previous
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ libc_cv_asm_previous_directive=yes
AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE)
fi
rm -f conftest*])
AC_CACHE_CHECK(for .popsection assembler directive,
libc_cv_asm_popsection_directive, [dnl
+ libc_cv_asm_popsection_directive=no
cat > conftest.s <<EOF
.pushsection foo_section
.popsection
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ libc_cv_asm_popsection_directive=yes
AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE)
fi
rm -f conftest*])
AC_CACHE_CHECK(for section attributes,
libc_cv_section_attributes, [dnl
+ libc_cv_section_attributes=no
cat > conftest.c <<EOF
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
int main() {}
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
+ libc_cv_section_attributes=yes
AC_DEFINE(HAVE_SECTION_ATTRIBUTES)
fi
rm -f conftest*])
;;
esac
-AC_CACHE_CHECK(for function prefix, libc_dollar_prefix, [dnl
+AC_CACHE_CHECK(for symbol prefix, libc_symbol_prefix, [dnl
cat > conftest.c <<\EOF
foo () { }
EOF
dnl
+libc_symbol_prefix=none
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
then
- libc_dollar_prefix=yes
+ libc_symbol_prefix='$'
else
- libc_dollar_prefix=no
+ if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
+ then
+ libc_symbol_prefix=_
+ fi
fi
rm -f conftest* ])
-if test $libc_dollar_prefix = yes ; then
- AC_DEFINE(__SYMBOL_PREFIX, "$")
+if test $libc_symbol_prefix != none; then
+ AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_symbol_prefix")
else
AC_DEFINE(__SYMBOL_PREFIX, "")
fi