diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-04-28 23:48:38 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-04-28 23:48:38 +0200 |
commit | 18989b08218d682a092c06bfcb79396f354a4560 (patch) | |
tree | 1ccd9bc49a53328cac86bb2fad7cdc450dd27b01 /configure | |
parent | 66dd8c9cb2ad88362f01c74df7c894ba98c00f00 (diff) | |
download | gmp-18989b08218d682a092c06bfcb79396f354a4560.tar.gz |
Regenerate for:
* acinclude.m4 (GMP_C_ANSI2KNR): New macro.
(GMP_CHECK_ASM_MMX, GMP_CHECK_ASM_SHLDL_CL): Correction, use
$gmp_cv_check_asm_text which is what GMP_CHECK_ASM_TEXT sets.
* configure.in (GMP_C_ANSI2KNR): Use this instead of AM_C_PROTOTYPES,
for reasons described with its definition in acinclude.m4.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 199 |
1 files changed, 63 insertions, 136 deletions
@@ -2499,7 +2499,7 @@ if test "${gmp_cv_check_asm_shldl_cl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat > conftest.s <<EOF - $gmp_check_asm_text + $gmp_cv_check_asm_text shldl %cl, %eax, %ebx EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" @@ -2544,7 +2544,7 @@ if test "${gmp_cv_check_asm_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat > conftest.s <<EOF - $gmp_check_asm_text + $gmp_cv_check_asm_text por %mm0, %mm0 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" @@ -3930,110 +3930,95 @@ EOF fi echo "$ECHO_T""${ac_cv_c_stringize}" 1>&6 -echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6 -echo "configure:3935: checking for ${CC-cc} option to accept ANSI C" 1>&5 -if test "${am_cv_prog_cc_stdc+set}" = set; then +for ac_func in getopt_long strtoul sysconf sysctlbyname +do +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 +echo "configure:3938: checking for $ac_func" 1>&5 +if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else - am_cv_prog_cc_stdc=no -ac_save_CC="$CC" -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX 10.20 and later -Ae -# HP-UX older versions -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext <<EOF -#line 3952 "configure" +#line 3943 "configure" #include "confdefs.h" -#include <stdarg.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); +char (*f)(); int -main () +main() { -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +f = $ac_func; +#endif ; return 0; } EOF -if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - am_cv_prog_cc_stdc="$ac_arg"; break + eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "$ac_ac_var=no" fi rm -f conftest* -done -CC="$ac_save_CC" fi +echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <<EOF +#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 +EOF -if test -z "$am_cv_prog_cc_stdc"; then - echo "$ECHO_T""none needed" 1>&6 -else - echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6 fi -case "x$am_cv_prog_cc_stdc" in - x|xno) ;; - *) CC="$CC $am_cv_prog_cc_stdc" ;; -esac +done -echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6 -echo "configure:4017: checking for function prototypes" 1>&5 -if test "$am_cv_prog_cc_stdc" != no; then - echo "$ECHO_T""yes" 1>&6 - cat >>confdefs.h <<\EOF -#define PROTOTYPES 1 + echo $ECHO_N "checking if ansi2knr should be used... $ECHO_C" 1>&6 +echo "configure:3993: checking if ansi2knr should be used" 1>&5 +if test "${gmp_cv_c_ansi2knr+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" 1>&6 +else + cat >conftest.c <<EOF +int main (int argc, char *argv) { return 0; } EOF +if { (eval echo configure:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + gmp_cv_c_ansi2knr=no +else + gmp_cv_c_ansi2knr=yes +fi +rm -f conftest.* +fi +echo "$ECHO_T""$gmp_cv_c_ansi2knr" 1>&6 +if test $gmp_cv_c_ansi2knr = no; then U= ANSI2KNR= else - echo "$ECHO_T""no" 1>&6 - U=_ ANSI2KNR=./ansi2knr + U= ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6 -echo "configure:4031: checking for ANSI C header files" 1>&5 +echo "configure:4016: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 4037 "configure" +#line 4022 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -4042,7 +4027,7 @@ cat >conftest.$ac_ext <<EOF EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4060,7 +4045,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<EOF -#line 4064 "configure" +#line 4049 "configure" #include "confdefs.h" #include <string.h> @@ -4080,7 +4065,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<EOF -#line 4084 "configure" +#line 4069 "configure" #include "confdefs.h" #include <stdlib.h> @@ -4102,7 +4087,7 @@ if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<EOF -#line 4106 "configure" +#line 4091 "configure" #include "confdefs.h" #include <ctype.h> #if ((' ' & 0x0FF) == 0x020) @@ -4127,7 +4112,7 @@ main () exit (0); } EOF -if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -4154,19 +4139,19 @@ fi do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 -echo "configure:4158: checking for $ac_header" 1>&5 +echo "configure:4143: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 4164 "configure" +#line 4149 "configure" #include "confdefs.h" #include <$ac_header> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4191,64 +4176,6 @@ done fi -for ac_func in getopt_long strtoul sysconf sysctlbyname -do -ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 -echo "configure:4199: checking for $ac_func" 1>&5 -if eval "test \"\${$ac_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" 1>&6 -else - cat >conftest.$ac_ext <<EOF -#line 4204 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); -char (*f)(); - -int -main() -{ - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -EOF -if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "$ac_ac_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "$ac_ac_var=no" -fi -rm -f conftest* - -fi -echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 -if test `eval echo '${'$ac_ac_var'}'` = yes; then - cat >>confdefs.h <<EOF -#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 -EOF - -fi -done - syntax= # For now, we use the old switch for setting syntax. # FIXME: Remove when conversion to .asm is completed. |