mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* aclocal.m4 (MC_HPUX_PROG_CC_STDC): Remove, it's obsolete.
* configure.in: Use AC_PROG_CC_STDC instead.
This commit is contained in:
parent
782012e481
commit
59666a33ef
@ -1,5 +1,8 @@
|
|||||||
2001-03-02 Pavel Roskin <proski@gnu.org>
|
2001-03-02 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* aclocal.m4 (MC_HPUX_PROG_CC_STDC): Remove, it's obsolete.
|
||||||
|
* configure.in: Use AC_PROG_CC_STDC instead.
|
||||||
|
|
||||||
* lib/mc.ext.in: Recognize files ending by `.lslR' and `.ls-lR'.
|
* lib/mc.ext.in: Recognize files ending by `.lslR' and `.ls-lR'.
|
||||||
Suggested by Christian Gennerat.
|
Suggested by Christian Gennerat.
|
||||||
|
|
||||||
|
67
acinclude.m4
67
acinclude.m4
@ -455,73 +455,6 @@ fi
|
|||||||
AC_SUBST([GNU_MAKE])dnl
|
AC_SUBST([GNU_MAKE])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Local additions to Autoconf macros.
|
|
||||||
dnl Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
|
|
||||||
dnl François Pinard <pinard@iro.umontreal.ca>, 1992.
|
|
||||||
|
|
||||||
dnl ## ----------------------------------------- ##
|
|
||||||
dnl ## ANSIfy the C compiler whenever possible. ##
|
|
||||||
dnl ## ----------------------------------------- ##
|
|
||||||
|
|
||||||
dnl @defmac AC_PROG_CC_STDC
|
|
||||||
dnl @maindex PROG_CC_STDC
|
|
||||||
dnl @ovindex CC
|
|
||||||
dnl If the C compiler in not in ANSI C mode by default, try to add an option
|
|
||||||
dnl to output variable @code{CC} to make it so. This macro tries various
|
|
||||||
dnl options that select ANSI C on some system or another. It considers the
|
|
||||||
dnl compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
|
|
||||||
dnl handles function prototypes correctly.
|
|
||||||
dnl
|
|
||||||
dnl If you use this macro, you should check after calling it whether the C
|
|
||||||
dnl compiler has been set to accept ANSI C; if not, the shell variable
|
|
||||||
dnl @code{ac_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
|
|
||||||
dnl code in ANSI C, you can make an un-ANSIfied copy of it by using the
|
|
||||||
dnl program @code{ansi2knr}, which comes with Ghostscript.
|
|
||||||
dnl @end defmac
|
|
||||||
|
|
||||||
dnl Unixware 2.1 defines __STDC__ to 1 only when some useful extensions are
|
|
||||||
dnl turned off. They are on by default and turned off with the option -Xc.
|
|
||||||
dnl The consequence is that __STDC__ is defined but e.g. struct sigaction
|
|
||||||
dnl is not defined. -- Norbert
|
|
||||||
|
|
||||||
dnl Below all tests but the one for HP-UX are removed. They caused more
|
|
||||||
dnl problems than they soved, sigh. -- Norbert
|
|
||||||
|
|
||||||
AC_DEFUN([MC_HPUX_PROG_CC_STDC],
|
|
||||||
[AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
|
|
||||||
AC_CACHE_VAL(ac_cv_prog_cc_stdc,
|
|
||||||
[ac_cv_prog_cc_stdc=no
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
dnl Don't try gcc -ansi; that turns off useful extensions and
|
|
||||||
dnl breaks some systems' header files.
|
|
||||||
dnl AIX -qlanglvl=ansi (removed -- Norbert)
|
|
||||||
dnl Ultrix and OSF/1 -std1 (removed -- Norbert)
|
|
||||||
dnl HP-UX -Aa -D_HPUX_SOURCE
|
|
||||||
dnl SVR4 -Xc (removed -- Norbert)
|
|
||||||
for ac_arg in "" "-Aa -D_HPUX_SOURCE"
|
|
||||||
do
|
|
||||||
CFLAGS="$ac_save_CFLAGS $ac_arg"
|
|
||||||
AC_TRY_COMPILE(
|
|
||||||
[#include <signal.h>
|
|
||||||
#if !defined(__STDC__) || __STDC__ != 1
|
|
||||||
choke me
|
|
||||||
#endif
|
|
||||||
], [int test (int i, double x);
|
|
||||||
struct sigaction sa;
|
|
||||||
struct s1 {int (*f) (int a);};
|
|
||||||
struct s2 {int (*f) (double a);};],
|
|
||||||
[ac_cv_prog_cc_stdc="$ac_arg"; break])
|
|
||||||
done
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
])
|
|
||||||
AC_MSG_RESULT([$ac_cv_prog_cc_stdc])
|
|
||||||
case "x$ac_cv_prog_cc_stdc" in
|
|
||||||
x|xno) ;;
|
|
||||||
*) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_SUNOS_CURSES], [
|
AC_DEFUN([AC_USE_SUNOS_CURSES], [
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
screen_manager="SunOS 4.x /usr/5include curses"
|
screen_manager="SunOS 4.x /usr/5include curses"
|
||||||
|
@ -36,7 +36,7 @@ AC_PROG_GNU_MAKE
|
|||||||
AC_AIX
|
AC_AIX
|
||||||
AC_MINIX
|
AC_MINIX
|
||||||
AC_ISC_POSIX
|
AC_ISC_POSIX
|
||||||
MC_HPUX_PROG_CC_STDC
|
AC_PROG_CC_STDC
|
||||||
AC_HEADER_MAJOR
|
AC_HEADER_MAJOR
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_PATH_PROG(AR, ar, ar)
|
AC_PATH_PROG(AR, ar, ar)
|
||||||
|
Loading…
Reference in New Issue
Block a user