comparison libgomp/configure @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
617 USE_FORTRAN_TRUE 617 USE_FORTRAN_TRUE
618 link_gomp 618 link_gomp
619 XLDFLAGS 619 XLDFLAGS
620 XCFLAGS 620 XCFLAGS
621 config_path 621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
622 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE 628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE 629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
624 OPT_LDFLAGS 630 OPT_LDFLAGS
625 SECTION_LDFLAGS 631 SECTION_LDFLAGS
626 libtool_VERSION 632 libtool_VERSION
630 MAINT 636 MAINT
631 MAINTAINER_MODE_FALSE 637 MAINTAINER_MODE_FALSE
632 MAINTAINER_MODE_TRUE 638 MAINTAINER_MODE_TRUE
633 enable_static 639 enable_static
634 enable_shared 640 enable_shared
641 lt_host_flags
635 CPP 642 CPP
636 OTOOL64 643 OTOOL64
637 OTOOL 644 OTOOL
638 LIPO 645 LIPO
639 NMEDIT 646 NMEDIT
9296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_libdir_flag_spec='-L$libdir' 9304 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_shlibpath_var=no 9305 hardcode_shlibpath_var=no
9299 ;; 9306 ;;
9300 9307
9301 freebsd1*)
9302 ld_shlibs=no
9303 ;;
9304
9305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9306 # support. Future versions do this automatically, but an explicit c++rt0.o 9309 # support. Future versions do this automatically, but an explicit c++rt0.o
9307 # does not break anything, and helps significantly (at the cost of a little 9310 # does not break anything, and helps significantly (at the cost of a little
9308 # extra space). 9311 # extra space).
9309 freebsd2.2*) 9312 freebsd2.2*)
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10219 soname_spec='${libname}${release}${shared_ext}$major' 10222 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH 10223 shlibpath_var=LD_LIBRARY_PATH
10221 ;; 10224 ;;
10222 10225
10223 freebsd1*)
10224 dynamic_linker=no
10225 ;;
10226
10227 freebsd* | dragonfly*) 10226 freebsd* | dragonfly*)
10228 # DragonFly does not have aout. When/if they implement a new 10227 # DragonFly does not have aout. When/if they implement a new
10229 # versioning mechanism, adjust this. 10228 # versioning mechanism, adjust this.
10230 if test -x /usr/bin/objformat; then 10229 if test -x /usr/bin/objformat; then
10231 objformat=`/usr/bin/objformat` 10230 objformat=`/usr/bin/objformat`
11081 lt_cv_dlopen_self=cross 11080 lt_cv_dlopen_self=cross
11082 else 11081 else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown 11083 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<_LT_EOF 11084 cat > conftest.$ac_ext <<_LT_EOF
11086 #line 11086 "configure" 11085 #line 11085 "configure"
11087 #include "confdefs.h" 11086 #include "confdefs.h"
11088 11087
11089 #if HAVE_DLFCN_H 11088 #if HAVE_DLFCN_H
11090 #include <dlfcn.h> 11089 #include <dlfcn.h>
11091 #endif 11090 #endif
11187 lt_cv_dlopen_self_static=cross 11186 lt_cv_dlopen_self_static=cross
11188 else 11187 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown 11189 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<_LT_EOF 11190 cat > conftest.$ac_ext <<_LT_EOF
11192 #line 11192 "configure" 11191 #line 11191 "configure"
11193 #include "confdefs.h" 11192 #include "confdefs.h"
11194 11193
11195 #if HAVE_DLFCN_H 11194 #if HAVE_DLFCN_H
11196 #include <dlfcn.h> 11195 #include <dlfcn.h>
11197 #endif 11196 #endif
11427 11426
11428 11427
11429 11428
11430 11429
11431 11430
11431 case $host in
11432 *-cygwin* | *-mingw*)
11433 # 'host' will be top-level target in the case of a target lib,
11434 # we must compare to with_cross_host to decide if this is a native
11435 # or cross-compiler and select where to install dlls appropriately.
11436 if test -n "$with_cross_host" &&
11437 test x"$with_cross_host" != x"no"; then
11438 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11439 else
11440 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11441 fi
11442 ;;
11443 *)
11444 lt_host_flags=
11445 ;;
11446 esac
11447
11448
11449
11450
11451
11452
11432 11453
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11455 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11435 # Check whether --enable-maintainer-mode was given. 11456 # Check whether --enable-maintainer-mode was given.
11436 if test "${enable_maintainer_mode+set}" = set; then : 11457 if test "${enable_maintainer_mode+set}" = set; then :
11450 fi 11471 fi
11451 11472
11452 MAINT=$MAINTAINER_MODE_TRUE 11473 MAINT=$MAINTAINER_MODE_TRUE
11453 11474
11454 11475
11476
11477 # Create a spec file, so that compile/link tests don't fail
11478 test -f libgfortran.spec || touch libgfortran.spec
11479 FCFLAGS="$FCFLAGS -L."
11455 11480
11456 # We need gfortran to compile parts of the library 11481 # We need gfortran to compile parts of the library
11457 # We can't use AC_PROG_FC because it expects a fully working gfortran. 11482 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11458 #AC_PROG_FC(gfortran) 11483 #AC_PROG_FC(gfortran)
11459 case `echo $GFORTRAN` in 11484 case `echo $GFORTRAN` in
13125 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13150 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126 hardcode_libdir_flag_spec_FC='-L$libdir' 13151 hardcode_libdir_flag_spec_FC='-L$libdir'
13127 hardcode_shlibpath_var_FC=no 13152 hardcode_shlibpath_var_FC=no
13128 ;; 13153 ;;
13129 13154
13130 freebsd1*)
13131 ld_shlibs_FC=no
13132 ;;
13133
13134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13135 # support. Future versions do this automatically, but an explicit c++rt0.o 13156 # support. Future versions do this automatically, but an explicit c++rt0.o
13136 # does not break anything, and helps significantly (at the cost of a little 13157 # does not break anything, and helps significantly (at the cost of a little
13137 # extra space). 13158 # extra space).
13138 freebsd2.2*) 13159 freebsd2.2*)
13837 need_lib_prefix=no 13858 need_lib_prefix=no
13838 need_version=no 13859 need_version=no
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13840 soname_spec='${libname}${release}${shared_ext}$major' 13861 soname_spec='${libname}${release}${shared_ext}$major'
13841 shlibpath_var=LD_LIBRARY_PATH 13862 shlibpath_var=LD_LIBRARY_PATH
13842 ;;
13843
13844 freebsd1*)
13845 dynamic_linker=no
13846 ;; 13863 ;;
13847 13864
13848 freebsd* | dragonfly*) 13865 freebsd* | dragonfly*)
13849 # DragonFly does not have aout. When/if they implement a new 13866 # DragonFly does not have aout. When/if they implement a new
13850 # versioning mechanism, adjust this. 13867 # versioning mechanism, adjust this.
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372 14389
14373 14390
14374 FCFLAGS="$FCFLAGS -Wall" 14391 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14375 14392
14376 # For libtool versioning info, format is CURRENT:REVISION:AGE 14393 # For libtool versioning info, format is CURRENT:REVISION:AGE
14377 libtool_VERSION=1:0:0 14394 libtool_VERSION=1:0:0
14378 14395
14379 14396
14918 14935
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14920 $as_echo_n "checking for type equivalent to int8_t... " >&6; } 14937 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14921 case "$ac_cv_sizeof_char" in 14938 case "$ac_cv_sizeof_char" in
14922 1) acx_cv_type_int8_t=char ;; 14939 1) acx_cv_type_int8_t=char ;;
14923 *) { as_fn_set_status please report a bug 14940 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14924 as_fn_error "no 8-bit type" "$LINENO" 5; }
14925 esac 14941 esac
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14927 $as_echo "$acx_cv_type_int8_t" >&6; } 14943 $as_echo "$acx_cv_type_int8_t" >&6; }
14928 14944
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14930 $as_echo_n "checking for type equivalent to int16_t... " >&6; } 14946 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14931 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 14947 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14932 2:*) acx_cv_type_int16_t=int ;; 14948 2:*) acx_cv_type_int16_t=int ;;
14933 *:2) acx_cv_type_int16_t=short ;; 14949 *:2) acx_cv_type_int16_t=short ;;
14934 *) { as_fn_set_status please report a bug 14950 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14935 as_fn_error "no 16-bit type" "$LINENO" 5; }
14936 esac 14951 esac
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14938 $as_echo "$acx_cv_type_int16_t" >&6; } 14953 $as_echo "$acx_cv_type_int16_t" >&6; }
14939 14954
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14941 $as_echo_n "checking for type equivalent to int32_t... " >&6; } 14956 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14942 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 14957 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14943 4:*) acx_cv_type_int32_t=int ;; 14958 4:*) acx_cv_type_int32_t=int ;;
14944 *:4) acx_cv_type_int32_t=long ;; 14959 *:4) acx_cv_type_int32_t=long ;;
14945 *) { as_fn_set_status please report a bug 14960 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14946 as_fn_error "no 32-bit type" "$LINENO" 5; }
14947 esac 14961 esac
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14949 $as_echo "$acx_cv_type_int32_t" >&6; } 14963 $as_echo "$acx_cv_type_int32_t" >&6; }
14950 fi 14964 fi
14951 14965
14968 $as_echo_n "checking for type equivalent to intptr_t... " >&6; } 14982 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14969 case $ac_cv_sizeof_void_p in 14983 case $ac_cv_sizeof_void_p in
14970 2) acx_cv_type_intptr_t=int16_t ;; 14984 2) acx_cv_type_intptr_t=int16_t ;;
14971 4) acx_cv_type_intptr_t=int32_t ;; 14985 4) acx_cv_type_intptr_t=int32_t ;;
14972 8) acx_cv_type_intptr_t=int64_t ;; 14986 8) acx_cv_type_intptr_t=int64_t ;;
14973 *) { as_fn_set_status please report a bug 14987 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
14974 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14975 esac 14988 esac
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14977 $as_echo "$acx_cv_type_intptr_t" >&6; } 14990 $as_echo "$acx_cv_type_intptr_t" >&6; }
14978 fi 14991 fi
14979 14992
15368 fi 15381 fi
15369 done 15382 done
15370 CFLAGS="$chktls_save_CFLAGS" 15383 CFLAGS="$chktls_save_CFLAGS"
15371 if test "X$thread_CFLAGS" != Xfailed; then 15384 if test "X$thread_CFLAGS" != Xfailed; then
15372 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 15385 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15373 if test "$cross_compiling" = yes; then : 15386 if test "$cross_compiling" = yes; then :
15374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15376 as_fn_error "cannot run test program while cross compiling 15389 as_fn_error "cannot run test program while cross compiling
15377 See \`config.log' for more details." "$LINENO" 5; } 15390 See \`config.log' for more details." "$LINENO" 5; }
15378 else 15391 else
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */ 15393 /* end confdefs.h. */
15381 #include <pthread.h> 15394 #include <pthread.h>
15382 __thread int a; 15395 __thread int a;
15383 static int *a_in_other_thread; 15396 static int *volatile a_in_other_thread;
15384 static void * 15397 static void *
15385 thread_func (void *arg) 15398 thread_func (void *arg)
15386 { 15399 {
15387 a_in_other_thread = &a; 15400 a_in_other_thread = &a;
15388 return (void *)0; 15401 return (void *)0;
15390 int 15403 int
15391 main () 15404 main ()
15392 { 15405 {
15393 pthread_t thread; 15406 pthread_t thread;
15394 void *thread_retval; 15407 void *thread_retval;
15395 int *a_in_main_thread; 15408 int *volatile a_in_main_thread;
15409 a_in_main_thread = &a;
15396 if (pthread_create (&thread, (pthread_attr_t *)0, 15410 if (pthread_create (&thread, (pthread_attr_t *)0,
15397 thread_func, (void *)0)) 15411 thread_func, (void *)0))
15398 return 0; 15412 return 0;
15399 a_in_main_thread = &a;
15400 if (pthread_join (thread, &thread_retval)) 15413 if (pthread_join (thread, &thread_retval))
15401 return 0; 15414 return 0;
15402 return (a_in_other_thread == a_in_main_thread); 15415 return (a_in_other_thread == a_in_main_thread);
15403 ; 15416 ;
15404 return 0; 15417 return 0;
15752 15765
15753 # Check whether --enable-symvers was given. 15766 # Check whether --enable-symvers was given.
15754 if test "${enable_symvers+set}" = set; then : 15767 if test "${enable_symvers+set}" = set; then :
15755 enableval=$enable_symvers; 15768 enableval=$enable_symvers;
15756 case "$enableval" in 15769 case "$enableval" in
15757 yes|no|gnu) ;; 15770 yes|no|gnu*|sun) ;;
15758 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 15771 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15759 esac 15772 esac
15760 15773
15761 else 15774 else
15762 enable_symvers=yes 15775 enable_symvers=yes
15766 15779
15767 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we 15780 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15768 # don't know enough about $LD to do tricks... 15781 # don't know enough about $LD to do tricks...
15769 15782
15770 # FIXME The following test is too strict, in theory. 15783 # FIXME The following test is too strict, in theory.
15771 if test $enable_shared = no || 15784 if test $enable_shared = no || test "x$LD" = x; then
15772 test "x$LD" = x ||
15773 test x$libgomp_gnu_ld_version = x; then
15774 enable_symvers=no 15785 enable_symvers=no
15786 else
15787 if test $with_gnu_ld = yes ; then
15788 enable_symvers=gnu
15789 else
15790 case ${target_os} in
15791 # Sun symbol versioning exists since Solaris 2.5.
15792 solaris2.[5-9]* | solaris2.1[0-9]*)
15793 enable_symvers=sun ;;
15794 *)
15795 enable_symvers=no ;;
15796 esac
15797 fi
15798 fi
15799
15800 # Check if 'sun' was requested on non-Solaris 2 platforms.
15801 if test x$enable_symvers = xsun ; then
15802 case ${target_os} in
15803 solaris2*)
15804 # All fine.
15805 ;;
15806 *)
15807 # Unlikely to work.
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15809 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15811 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15813 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15814 enable_symvers=no
15815 ;;
15816 esac
15775 fi 15817 fi
15776 15818
15777 # Check to see if libgcc_s exists, indicating that shared libgcc is possible. 15819 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15778 if test $enable_symvers != no; then 15820 if test $enable_symvers != no; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15838 libgomp_min_gnu_ld_version=21400 15880 libgomp_min_gnu_ld_version=21400
15839 # XXXXXXXXXXX libgomp_gnu_ld_version=21390 15881 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15840 15882
15841 # Check to see if unspecified "yes" value can win, given results above. 15883 # Check to see if unspecified "yes" value can win, given results above.
15842 # Change "yes" into either "no" or a style name. 15884 # Change "yes" into either "no" or a style name.
15843 if test $enable_symvers = yes; then 15885 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15844 if test $with_gnu_ld = yes && 15886 if test $with_gnu_ld = yes; then
15845 test $libgomp_shared_libgcc = yes;
15846 then
15847 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then 15887 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15848 enable_symvers=gnu 15888 enable_symvers=gnu
15849 elif test $libgomp_ld_is_gold = yes ; then 15889 elif test $libgomp_ld_is_gold = yes ; then
15850 enable_symvers=gnu 15890 enable_symvers=gnu
15851 else 15891 else
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15869 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15909 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15870 enable_symvers=no 15910 enable_symvers=no
15871 fi 15911 fi
15872 fi 15912 fi
15913 elif test $enable_symvers = sun; then
15914 : All interesting versions of Sun ld support sun style symbol versioning.
15873 else 15915 else
15874 # just fail for now 15916 # just fail for now
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15876 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 15918 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15922 else 15964 else
15923 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' 15965 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15924 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= 15966 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15925 fi 15967 fi
15926 15968
15969 if test $enable_symvers = gnu; then
15970 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15971 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15972 else
15973 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15974 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15975 fi
15976
15977 if test $enable_symvers = sun; then
15978 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15979 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15980 else
15981 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15982 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15983 fi
15984
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15928 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 15986 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15987
15988 if test $enable_symvers != no ; then
15989 case ${target_os} in
15990 # The Solaris 2 runtime linker doesn't support the GNU extension of
15991 # binding the same symbol to different versions
15992 solaris2*)
15993 symvers_renaming=no ;;
15994 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
15995 *)
15996
15997 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
15998
15999 symvers_renaming=yes ;;
16000 esac
16001 else
16002 symvers_renaming=no
16003 fi
16004 if test $symvers_renaming = no; then
16005 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE=
16006 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='#'
16007 else
16008 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='#'
16009 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE=
16010 fi
16011
15929 16012
15930 16013
15931 if test $enable_symvers = gnu; then 16014 if test $enable_symvers = gnu; then
15932 16015
15933 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 16016 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16305 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 16388 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 fi 16390 fi
16308 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then 16391 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16309 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 16392 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394 fi
16395 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16396 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398 fi
16399 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16400 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402 fi
16403 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16404 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi 16406 fi
16312 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then 16407 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16313 as_fn_error "conditional \"USE_FORTRAN\" was never defined. 16408 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16409 Usually this means the macro was only invoked conditionally." "$LINENO" 5