From 9a70fcabea9f4c3b330ee04469f6aafbd43b7c3b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 17 Jul 1995 12:43:55 +0000 Subject: The test for the .set directive needs the global directive. Change order of tests and add global directive to .set test code. --- configure.in | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/configure.in b/configure.in index 7e1697d1b1..6ae7cf81ed 100644 --- a/configure.in +++ b/configure.in @@ -337,12 +337,35 @@ if test $libc_cv_need_minus_P = yes; then asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." fi +AC_MSG_CHECKING(for assembler global-symbol directive) +AC_CACHE_VAL(libc_cv_asm_global_directive, [dnl +libc_cv_asm_global_directive=UNKNOWN +for ac_globl in .globl .global; do + cat > conftest.s </dev/null; then + libc_cv_asm_global_directive=${ac_globl} + fi + rm -f conftest* + test $libc_cv_asm_global_directive != UNKNOWN && break +done]) +AC_MSG_RESULT($libc_cv_asm_global_directive) +if test $libc_cv_asm_global_directive = UNKNOWN; then + AC_MSG_ERROR(cannot determine asm global directive) +else + AC_DEFINE_UNQUOTED(ASM_GLOBAL_DIRECTIVE, ${libc_cv_asm_global_directive}) +fi + AC_MSG_CHECKING(for .set assembler directive) AC_CACHE_VAL(libc_cv_asm_set_directive, [dnl -cat > conftest.s <<\EOF +cat > conftest.s < conftest.s </dev/null; then - libc_cv_asm_global_directive=${ac_globl} - fi - rm -f conftest* - test $libc_cv_asm_global_directive != UNKNOWN && break -done]) -AC_MSG_RESULT($libc_cv_asm_global_directive) -if test $libc_cv_asm_global_directive = UNKNOWN; then - AC_MSG_ERROR(cannot determine asm global directive) -else - AC_DEFINE_UNQUOTED(ASM_GLOBAL_DIRECTIVE, ${libc_cv_asm_global_directive}) -fi - # sysdeps configure fragments may set these with files to be linked below. libc_link_dests= -- cgit v1.2.3-70-g09d2