comparison libgomp/configure @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
2752 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2752 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2753 # of other PACKAGE_* variables will, however, and there's nothing 2753 # of other PACKAGE_* variables will, however, and there's nothing
2754 # we can do about that; they come from AC_INIT). 2754 # we can do about that; they come from AC_INIT).
2755 # foreign: we don't follow the normal rules for GNU packages (no COPYING 2755 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2756 # file in the top srcdir, etc, etc), so stop complaining. 2756 # file in the top srcdir, etc, etc), so stop complaining.
2757 # no-dist: we don't want 'dist' and related rules.
2757 # -Wall: turns on all automake warnings... 2758 # -Wall: turns on all automake warnings...
2758 # -Wno-portability: ...except this one, since GNU make is required. 2759 # -Wno-portability: ...except this one, since GNU make is required.
2759 # -Wno-override: ... and this one, since we do want this in testsuite. 2760 # -Wno-override: ... and this one, since we do want this in testsuite.
2760 am__api_version='1.11' 2761 am__api_version='1.11'
2761 2762
11080 lt_cv_dlopen_self=cross 11081 lt_cv_dlopen_self=cross
11081 else 11082 else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown 11084 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF 11085 cat > conftest.$ac_ext <<_LT_EOF
11085 #line 11085 "configure" 11086 #line 11086 "configure"
11086 #include "confdefs.h" 11087 #include "confdefs.h"
11087 11088
11088 #if HAVE_DLFCN_H 11089 #if HAVE_DLFCN_H
11089 #include <dlfcn.h> 11090 #include <dlfcn.h>
11090 #endif 11091 #endif
11186 lt_cv_dlopen_self_static=cross 11187 lt_cv_dlopen_self_static=cross
11187 else 11188 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown 11190 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF 11191 cat > conftest.$ac_ext <<_LT_EOF
11191 #line 11191 "configure" 11192 #line 11192 "configure"
11192 #include "confdefs.h" 11193 #include "confdefs.h"
11193 11194
11194 #if HAVE_DLFCN_H 11195 #if HAVE_DLFCN_H
11195 #include <dlfcn.h> 11196 #include <dlfcn.h>
11196 #endif 11197 #endif
11457 #AC_PROG_FC(gfortran) 11458 #AC_PROG_FC(gfortran)
11458 case `echo $GFORTRAN` in 11459 case `echo $GFORTRAN` in
11459 -* | no* ) 11460 -* | no* )
11460 FC=no ;; 11461 FC=no ;;
11461 *) 11462 *)
11462 FC="$GFORTRAN" ;; 11463 set dummy $GFORTRAN; ac_word=$2
11464 if test -x "$ac_word"; then
11465 FC="$GFORTRAN"
11466 else
11467 FC=no
11468 fi ;;
11463 esac 11469 esac
11464 ac_ext=${ac_fc_srcext-f} 11470 ac_ext=${ac_fc_srcext-f}
11465 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11471 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11466 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11472 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11473 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15945 /* end confdefs.h. */ 15951 /* end confdefs.h. */
15946 15952
15947 int 15953 int
15948 main () 15954 main ()
15949 { 15955 {
15950 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); 15956 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
15951 ; 15957 ;
15952 return 0; 15958 return 0;
15953 } 15959 }
15954 _ACEOF 15960 _ACEOF
15955 if ac_fn_c_try_link "$LINENO"; then : 15961 if ac_fn_c_try_link "$LINENO"; then :
18844 18850
18845 #ifndef _UINT8_T 18851 #ifndef _UINT8_T
18846 #define _UINT8_T 18852 #define _UINT8_T
18847 #ifndef __uint8_t_defined 18853 #ifndef __uint8_t_defined
18848 #define __uint8_t_defined 18854 #define __uint8_t_defined
18855 #ifndef uint8_t
18849 typedef unsigned $acx_cv_type_int8_t uint8_t; 18856 typedef unsigned $acx_cv_type_int8_t uint8_t;
18857 #endif
18850 #endif 18858 #endif
18851 #endif 18859 #endif
18852 18860
18853 #ifndef _UINT16_T 18861 #ifndef _UINT16_T
18854 #define _UINT16_T 18862 #define _UINT16_T
18855 #ifndef __uint16_t_defined 18863 #ifndef __uint16_t_defined
18856 #define __uint16_t_defined 18864 #define __uint16_t_defined
18865 #ifndef uint16_t
18857 typedef unsigned $acx_cv_type_int16_t uint16_t; 18866 typedef unsigned $acx_cv_type_int16_t uint16_t;
18867 #endif
18858 #endif 18868 #endif
18859 #endif 18869 #endif
18860 18870
18861 #ifndef _UINT32_T 18871 #ifndef _UINT32_T
18862 #define _UINT32_T 18872 #define _UINT32_T
18863 #ifndef __uint32_t_defined 18873 #ifndef __uint32_t_defined
18864 #define __uint32_t_defined 18874 #define __uint32_t_defined
18875 #ifndef uint32_t
18865 typedef unsigned $acx_cv_type_int32_t uint32_t; 18876 typedef unsigned $acx_cv_type_int32_t uint32_t;
18877 #endif
18866 #endif 18878 #endif
18867 #endif 18879 #endif
18868 18880
18869 #ifndef _INT8_T 18881 #ifndef _INT8_T
18870 #define _INT8_T 18882 #define _INT8_T
18871 #ifndef __int8_t_defined 18883 #ifndef __int8_t_defined
18872 #define __int8_t_defined 18884 #define __int8_t_defined
18885 #ifndef int8_t
18873 typedef $acx_cv_type_int8_t int8_t; 18886 typedef $acx_cv_type_int8_t int8_t;
18887 #endif
18874 #endif 18888 #endif
18875 #endif 18889 #endif
18876 18890
18877 #ifndef _INT16_T 18891 #ifndef _INT16_T
18878 #define _INT16_T 18892 #define _INT16_T
18879 #ifndef __int16_t_defined 18893 #ifndef __int16_t_defined
18880 #define __int16_t_defined 18894 #define __int16_t_defined
18895 #ifndef int16_t
18881 typedef $acx_cv_type_int16_t int16_t; 18896 typedef $acx_cv_type_int16_t int16_t;
18897 #endif
18882 #endif 18898 #endif
18883 #endif 18899 #endif
18884 18900
18885 #ifndef _INT32_T 18901 #ifndef _INT32_T
18886 #define _INT32_T 18902 #define _INT32_T
18887 #ifndef __int32_t_defined 18903 #ifndef __int32_t_defined
18888 #define __int32_t_defined 18904 #define __int32_t_defined
18905 #ifndef int32_t
18889 typedef $acx_cv_type_int32_t int32_t; 18906 typedef $acx_cv_type_int32_t int32_t;
18907 #endif
18890 #endif 18908 #endif
18891 #endif 18909 #endif
18892 EOF 18910 EOF
18893 elif test "$ac_cv_type_u_int32_t" = yes; then 18911 elif test "$ac_cv_type_u_int32_t" = yes; then
18894 sed 's/^ *//' >> tmp-stdint.h <<EOF 18912 sed 's/^ *//' >> tmp-stdint.h <<EOF
18906 18924
18907 #ifndef _UINT8_T 18925 #ifndef _UINT8_T
18908 #define _UINT8_T 18926 #define _UINT8_T
18909 #ifndef __uint8_t_defined 18927 #ifndef __uint8_t_defined
18910 #define __uint8_t_defined 18928 #define __uint8_t_defined
18929 #ifndef uint8_t
18911 typedef u_int8_t uint8_t; 18930 typedef u_int8_t uint8_t;
18931 #endif
18912 #endif 18932 #endif
18913 #endif 18933 #endif
18914 18934
18915 #ifndef _UINT16_T 18935 #ifndef _UINT16_T
18916 #define _UINT16_T 18936 #define _UINT16_T
18917 #ifndef __uint16_t_defined 18937 #ifndef __uint16_t_defined
18918 #define __uint16_t_defined 18938 #define __uint16_t_defined
18939 #ifndef uint16_t
18919 typedef u_int16_t uint16_t; 18940 typedef u_int16_t uint16_t;
18941 #endif
18920 #endif 18942 #endif
18921 #endif 18943 #endif
18922 18944
18923 #ifndef _UINT32_T 18945 #ifndef _UINT32_T
18924 #define _UINT32_T 18946 #define _UINT32_T
18925 #ifndef __uint32_t_defined 18947 #ifndef __uint32_t_defined
18926 #define __uint32_t_defined 18948 #define __uint32_t_defined
18949 #ifndef uint32_t
18927 typedef u_int32_t uint32_t; 18950 typedef u_int32_t uint32_t;
18951 #endif
18928 #endif 18952 #endif
18929 #endif 18953 #endif
18930 EOF 18954 EOF
18931 else 18955 else
18932 sed 's/^ *//' >> tmp-stdint.h <<EOF 18956 sed 's/^ *//' >> tmp-stdint.h <<EOF
18974 #endif 18998 #endif
18975 #ifndef _UINT64_T 18999 #ifndef _UINT64_T
18976 #define _UINT64_T 19000 #define _UINT64_T
18977 #ifndef __uint64_t_defined 19001 #ifndef __uint64_t_defined
18978 #define __uint64_t_defined 19002 #define __uint64_t_defined
19003 #ifndef uint64_t
18979 typedef u_int64_t uint64_t; 19004 typedef u_int64_t uint64_t;
19005 #endif
18980 #endif 19006 #endif
18981 #endif 19007 #endif
18982 EOF 19008 EOF
18983 elif test -n "$acx_cv_type_int64_t"; then 19009 elif test -n "$acx_cv_type_int64_t"; then
18984 sed 's/^ *//' >> tmp-stdint.h <<EOF 19010 sed 's/^ *//' >> tmp-stdint.h <<EOF
18985 19011
18986 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 19012 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18987 #ifndef _INT64_T 19013 #ifndef _INT64_T
18988 #define _INT64_T 19014 #define _INT64_T
19015 #ifndef int64_t
18989 typedef $acx_cv_type_int64_t int64_t; 19016 typedef $acx_cv_type_int64_t int64_t;
19017 #endif
18990 #endif 19018 #endif
18991 #ifndef _UINT64_T 19019 #ifndef _UINT64_T
18992 #define _UINT64_T 19020 #define _UINT64_T
18993 #ifndef __uint64_t_defined 19021 #ifndef __uint64_t_defined
18994 #define __uint64_t_defined 19022 #define __uint64_t_defined
19023 #ifndef uint64_t
18995 typedef unsigned $acx_cv_type_int64_t uint64_t; 19024 typedef unsigned $acx_cv_type_int64_t uint64_t;
19025 #endif
18996 #endif 19026 #endif
18997 #endif 19027 #endif
18998 EOF 19028 EOF
18999 else 19029 else
19000 sed 's/^ *//' >> tmp-stdint.h <<EOF 19030 sed 's/^ *//' >> tmp-stdint.h <<EOF
19002 /* some common heuristics for int64_t, using compiler-specific tests */ 19032 /* some common heuristics for int64_t, using compiler-specific tests */
19003 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 19033 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19004 #ifndef _INT64_T 19034 #ifndef _INT64_T
19005 #define _INT64_T 19035 #define _INT64_T
19006 #ifndef __int64_t_defined 19036 #ifndef __int64_t_defined
19037 #ifndef int64_t
19007 typedef long long int64_t; 19038 typedef long long int64_t;
19039 #endif
19008 #endif 19040 #endif
19009 #endif 19041 #endif
19010 #ifndef _UINT64_T 19042 #ifndef _UINT64_T
19011 #define _UINT64_T 19043 #define _UINT64_T
19044 #ifndef uint64_t
19012 typedef unsigned long long uint64_t; 19045 typedef unsigned long long uint64_t;
19046 #endif
19013 #endif 19047 #endif
19014 19048
19015 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 19049 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19016 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 19050 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19017 does not implement __extension__. But that compiler doesn't define 19051 does not implement __extension__. But that compiler doesn't define
19020 # define __extension__ 19054 # define __extension__
19021 # endif 19055 # endif
19022 19056
19023 # ifndef _INT64_T 19057 # ifndef _INT64_T
19024 # define _INT64_T 19058 # define _INT64_T
19059 # ifndef int64_t
19025 __extension__ typedef long long int64_t; 19060 __extension__ typedef long long int64_t;
19061 # endif
19026 # endif 19062 # endif
19027 # ifndef _UINT64_T 19063 # ifndef _UINT64_T
19028 # define _UINT64_T 19064 # define _UINT64_T
19065 # ifndef uint64_t
19029 __extension__ typedef unsigned long long uint64_t; 19066 __extension__ typedef unsigned long long uint64_t;
19030 # endif 19067 # endif
19068 # endif
19031 19069
19032 #elif !defined __STRICT_ANSI__ 19070 #elif !defined __STRICT_ANSI__
19033 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 19071 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19034 19072
19035 # ifndef _INT64_T 19073 # ifndef _INT64_T
19036 # define _INT64_T 19074 # define _INT64_T
19075 # ifndef int64_t
19037 typedef __int64 int64_t; 19076 typedef __int64 int64_t;
19077 # endif
19038 # endif 19078 # endif
19039 # ifndef _UINT64_T 19079 # ifndef _UINT64_T
19040 # define _UINT64_T 19080 # define _UINT64_T
19081 # ifndef uint64_t
19041 typedef unsigned __int64 uint64_t; 19082 typedef unsigned __int64 uint64_t;
19083 # endif
19042 # endif 19084 # endif
19043 # endif /* compiler */ 19085 # endif /* compiler */
19044 19086
19045 #endif /* ANSI version */ 19087 #endif /* ANSI version */
19046 EOF 19088 EOF
19050 if test "$ac_cv_type_uintptr_t" != yes; then 19092 if test "$ac_cv_type_uintptr_t" != yes; then
19051 sed 's/^ *//' >> tmp-stdint.h <<EOF 19093 sed 's/^ *//' >> tmp-stdint.h <<EOF
19052 19094
19053 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 19095 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19054 #ifndef __uintptr_t_defined 19096 #ifndef __uintptr_t_defined
19097 #ifndef uintptr_t
19055 typedef u$acx_cv_type_intptr_t uintptr_t; 19098 typedef u$acx_cv_type_intptr_t uintptr_t;
19056 #endif 19099 #endif
19100 #endif
19057 #ifndef __intptr_t_defined 19101 #ifndef __intptr_t_defined
19102 #ifndef intptr_t
19058 typedef $acx_cv_type_intptr_t intptr_t; 19103 typedef $acx_cv_type_intptr_t intptr_t;
19104 #endif
19059 #endif 19105 #endif
19060 EOF 19106 EOF
19061 fi 19107 fi
19062 19108
19063 # ------------- done intptr types, emit int_least types ------------ 19109 # ------------- done intptr types, emit int_least types ------------
19104 19150
19105 if test "$ac_cv_type_uintmax_t" != yes; then 19151 if test "$ac_cv_type_uintmax_t" != yes; then
19106 sed 's/^ *//' >> tmp-stdint.h <<EOF 19152 sed 's/^ *//' >> tmp-stdint.h <<EOF
19107 19153
19108 /* Define intmax based on what we found */ 19154 /* Define intmax based on what we found */
19155 #ifndef intmax_t
19109 #ifdef _INT64_T 19156 #ifdef _INT64_T
19110 typedef int64_t intmax_t; 19157 typedef int64_t intmax_t;
19111 #else 19158 #else
19112 typedef long intmax_t; 19159 typedef long intmax_t;
19113 #endif 19160 #endif
19161 #endif
19162 #ifndef uintmax_t
19114 #ifdef _UINT64_T 19163 #ifdef _UINT64_T
19115 typedef uint64_t uintmax_t; 19164 typedef uint64_t uintmax_t;
19116 #else 19165 #else
19117 typedef unsigned long uintmax_t; 19166 typedef unsigned long uintmax_t;
19167 #endif
19118 #endif 19168 #endif
19119 EOF 19169 EOF
19120 fi 19170 fi
19121 19171
19122 sed 's/^ *//' >> tmp-stdint.h <<EOF 19172 sed 's/^ *//' >> tmp-stdint.h <<EOF