@@ -113,6 +113,9 @@ AC_ARG_WITH([bugurl],
113
113
# or:
114
114
# options to configure: CFLAGS=-m64 LDFLAGS="-m64 -L/usr/local/lib/sparcv9"
115
115
#
116
+ # Note for IBM (Mainfraime) on USS
117
+ # options to configure: CC="xlc -q64" CFLAGS="-qlanglvl=extc1x" OBJECT_MODE=64 AR=ar NM=nm
118
+ #
116
119
# Hack for AIX 64 bit (gcc)
117
120
# Required -
118
121
# options to configure: CC="gcc -maix64" / CC="xlc -q64"
@@ -461,17 +464,31 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
461
464
# error macro not defined
462
465
#endif] ] ) ] ,
463
466
[ COB_USES_CLANG_ONLY=yes
467
+ CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
464
468
AC_MSG_RESULT ( [ yes] ) ] ,
465
469
[ AC_MSG_RESULT ( [ no] ) ] )
466
470
467
- AC_MSG_CHECKING ( [ for __xlc__] )
471
+ AS_IF ( [ test "x$COB_USES_GCC$COB_USES_ICC_ONLY$COB_USES_CLANG_ONLY" = xnonono] , [
472
+
473
+ AC_MSG_CHECKING ( [ for __IBMC__] )
468
474
AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
469
- #ifndef __xlc__
475
+ #ifndef __IBMC__
470
476
# error macro not defined
471
477
#endif] ] ) ] ,
472
478
[ COB_USES_XLC_ONLY=yes
473
479
AC_MSG_RESULT ( [ yes] ) ] ,
474
- [ AC_MSG_RESULT ( [ no] ) ] )
480
+ [
481
+ AC_MSG_CHECKING ( [ for __xlc__] )
482
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
483
+ #ifndef __xlc__
484
+ # error macro not defined
485
+ #endif] ] ) ] ,
486
+ [ COB_USES_XLC_ONLY=yes
487
+ AC_MSG_RESULT ( [ yes] ) ] ,
488
+ [ AC_MSG_RESULT ( [ no] ) ] )
489
+ ] )
490
+
491
+ AS_IF ( [ test "x$COB_USES_XLC_ONLY" = xno] , [
475
492
476
493
AC_MSG_CHECKING ( [ for __WATCOMC__] )
477
494
AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
@@ -480,7 +497,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
480
497
#endif] ] ) ] ,
481
498
[ COB_USES_WATCOMC_ONLY=yes
482
499
AC_MSG_RESULT ( [ yes] ) ] ,
483
- [ AC_MSG_RESULT ( [ no] ) ] )
500
+ [ AC_MSG_RESULT ( [ no] )
484
501
485
502
AC_MSG_CHECKING ( [ for __SUNPRO_C] )
486
503
AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
@@ -490,6 +507,13 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
490
507
[ COB_USES_SUNPRO_C_ONLY=yes
491
508
AC_MSG_RESULT ( [ yes] ) ] ,
492
509
[ AC_MSG_RESULT ( [ no] ) ] )
510
+ ] )
511
+
512
+ ] )
513
+
514
+ ] )
515
+
516
+
493
517
494
518
curr_cflags="$CFLAGS"
495
519
AC_CACHE_CHECK ( [ how to error on warnings during configure checks] , gc_cv_err_warn , [
@@ -673,9 +697,9 @@ AC_DEFINE_UNQUOTED([COB_KEYWORD_INLINE], [$gc_cv_keyword_inline])
673
697
674
698
# Checks for library functions.
675
699
AC_FUNC_VPRINTF
676
- AC_CHECK_FUNCS ( [ memmove memset setlocale fcntl strerror strcasecmp \
677
- strchr strrchr strdup strstr strtol gettimeofday localeconv \
678
- getexecname canonicalize_file_name popen raise readlink realpath \
700
+ AC_CHECK_FUNCS ( [ memmove memset setlocale fcntl strerror strcasecmp
701
+ strchr strrchr strdup strstr strtol gettimeofday localeconv
702
+ getexecname canonicalize_file_name popen raise readlink realpath
679
703
setenv strcoll flockfile] )
680
704
681
705
# more things to save...
0 commit comments