]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
authorAkim Demaille <akim@epita.fr>
Mon, 12 Nov 2001 16:08:52 +0000 (16:08 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 12 Nov 2001 16:08:52 +0000 (16:08 +0000)
* lib/autoconf/functions.m4, lib/autoconf/general.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
specify to what the macro should be defined (typically to 1).

ChangeLog
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/functions.m4
lib/autoconf/general.m4
lib/autoconf/headers.m4
lib/autoconf/libs.m4
lib/autoconf/programs.m4
lib/autoconf/specific.m4
lib/autoconf/types.m4

index fe733892699ef4e376c8bb3c7a259fbdec73b326..013ddc812809b38537937a5a1a037138727f0170 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2001-11-12  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
+       * lib/autoconf/functions.m4, lib/autoconf/general.m4,
+       * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
+       * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
+       * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
+       specify to what the macro should be defined (typically to 1).
+
 2001-11-12  Akim Demaille  <akim@epita.fr>
 
        * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
index d8dded2c1c9ff7c1e8c61a931936231711d816ed..7662c071c9fe8ca5e81635e42ef58d29cb7eebf1 100644 (file)
@@ -543,7 +543,7 @@ if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
 else
   AC_MSG_RESULT([no])
   AC_DEFINE(NO_MINUS_C_MINUS_O, 1,
-            [Define if your C compiler doesn't accept -c and -o together.])
+           [Define to 1 if your C compiler doesn't accept -c and -o together.])
 fi
 ])# AC_PROG_CC_C_O
 
@@ -811,7 +811,7 @@ AU_DEFUN([AC_C_CROSS], [])
 # ------------------
 AC_DEFUN([AC_C_CHAR_UNSIGNED],
 [AH_VERBATIM([__CHAR_UNSIGNED__],
-[/* Define if type `char' is unsigned and you are not using gcc.  */
+[/* Define to 1 if type `char' is unsigned and you are not using gcc.  */
 #ifndef __CHAR_UNSIGNED__
 # undef __CHAR_UNSIGNED__
 #endif])dnl
@@ -846,7 +846,7 @@ ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
 fi])
 if test $ac_cv_c_long_double = yes; then
   AC_DEFINE(HAVE_LONG_DOUBLE, 1,
-            [Define if the `long double' type works.])
+            [Define to 1 if the `long double' type works.])
 fi
 ])# AC_C_LONG_DOUBLE
 
@@ -909,7 +909,7 @@ case $ac_cv_c_bigendian in
   yes)
     m4_default([$1],
       [AC_DEFINE([WORDS_BIGENDIAN], 1,
-        [Define if your processor stores words with the most significant
+        [Define to 1 if your processor stores words with the most significant
         byte first (like Motorola and SPARC, unlike Intel and VAX).])]) ;;
   no)
     $2 ;;
@@ -1052,7 +1052,7 @@ char *s = x(teststring);],
               [ac_cv_c_stringize=yes])])
 if test $ac_cv_c_stringize = yes; then
   AC_DEFINE(HAVE_STRINGIZE, 1,
-            [Define if cpp supports the ANSI @%:@ stringizing operator.])
+            [Define to 1 if cpp supports the ANSI @%:@ stringizing operator.])
 fi
 ])# AC_C_STRINGIZE
 
@@ -1067,7 +1067,7 @@ AC_MSG_CHECKING([for function prototypes])
 if test "$ac_cv_prog_cc_stdc" != no; then
   AC_MSG_RESULT([yes])
   AC_DEFINE(PROTOTYPES, 1,
-            [Define if the C compiler supports function prototypes.])
+            [Define to 1 if the C compiler supports function prototypes.])
 else
   AC_MSG_RESULT([no])
 fi
index acf3695ed01a7791c4194535254e76e1831e7ffe..0c469b1067499bf5724ab252e87d6205be10861b 100644 (file)
@@ -332,7 +332,8 @@ fi
 rm -f conftest*])
 if test $ac_cv_prog_f77_c_o = no; then
   AC_DEFINE(F77_NO_MINUS_C_MINUS_O, 1,
-            [Define if your Fortran 77 compiler doesn't accept -c and -o together.])
+            [Define to 1 if your Fortran 77 compiler doesn't accept
+             -c and -o together.])
 fi
 ])# AC_PROG_F77_C_O
 
index cc1321c547946ac708bfeaeee6639745d99c65b5..17e732c94a67a105986d64c19cb349d2072fb441 100644 (file)
@@ -79,7 +79,7 @@ AS_VAR_POPDEF([ac_var])dnl
 AC_DEFUN([AC_CHECK_FUNCS],
 [AC_FOREACH([AC_Func], [$1],
   [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Func),
-               [Define if you have the `]AC_Func[' function.])])dnl
+               [Define to 1 if you have the `]AC_Func[' function.])])dnl
 for ac_func in $1
 do
 AC_CHECK_FUNC($ac_func,
@@ -146,7 +146,7 @@ m4_define([_AC_LIBOBJ_ALLOCA],
 # use ar to extract alloca.o from them instead of compiling alloca.c.
 AC_LIBSOURCES(alloca.c)
 AC_SUBST(ALLOCA, alloca.$ac_objext)dnl
-AC_DEFINE(C_ALLOCA, 1, [Define if using `alloca.c'.])
+AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using `alloca.c'.])
 
 AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
 [AC_EGREP_CPP(webecray,
@@ -218,7 +218,7 @@ AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h,
                 [ac_cv_working_alloca_h=no])])
 if test $ac_cv_working_alloca_h = yes; then
   AC_DEFINE(HAVE_ALLOCA_H, 1,
-            [Define if you have <alloca.h> and it should be used
+            [Define to 1 if you have <alloca.h> and it should be used
              (not on Ultrix).])
 fi
 
@@ -250,7 +250,7 @@ char *alloca ();
 
 if test $ac_cv_func_alloca_works = yes; then
   AC_DEFINE(HAVE_ALLOCA, 1,
-            [Define if you have `alloca', as a function or macro.])
+            [Define to 1 if you have `alloca', as a function or macro.])
 else
   _AC_LIBOBJ_ALLOCA
 fi
@@ -293,7 +293,7 @@ rm -f conftest.chown
 ])
 if test $ac_cv_func_chown_works = yes; then
   AC_DEFINE(HAVE_CHOWN, 1,
-            [Define if your system has a working `chown' function.])
+            [Define to 1 if your system has a working `chown' function.])
 fi
 ])# AC_FUNC_CHOWN
 
@@ -318,7 +318,8 @@ int closedir ();
                [ac_cv_func_closedir_void=yes])])
 if test $ac_cv_func_closedir_void = yes; then
   AC_DEFINE(CLOSEDIR_VOID, 1,
-            [Define if the `closedir' function returns void instead of `int'.])
+            [Define to 1 if the `closedir' function returns void instead
+             of `int'.])
 fi
 ])
 
@@ -363,7 +364,7 @@ AC_DEFUN([AC_FUNC_FNMATCH],
                [ac_cv_func_fnmatch_works=no])])
 if test $ac_cv_func_fnmatch_works = yes; then
   AC_DEFINE(HAVE_FNMATCH, 1,
-            [Define if your system has a working `fnmatch' function.])
+            [Define to 1 if your system has a working `fnmatch' function.])
 fi
 ])# AC_FUNC_FNMATCH
 
@@ -380,7 +381,7 @@ AU_ALIAS([fp_FUNC_FNMATCH], [AC_FUNC_FNMATCH])
 AC_DEFUN([AC_FUNC_FSEEKO],
 [_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
    [ac_cv_sys_largefile_source],
-   [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
+   [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).],
    [@%:@include <stdio.h>], [return !fseeko;])
 
 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
@@ -393,7 +394,7 @@ AC_CACHE_CHECK([for fseeko], [ac_cv_func_fseeko],
                 [ac_cv_func_fseeko=no])])
 if test $ac_cv_func_fseeko = yes; then
   AC_DEFINE(HAVE_FSEEKO, 1,
-    [Define if fseeko (and presumably ftello) exists and is declared.])
+    [Define to 1 if fseeko (and presumably ftello) exists and is declared.])
 fi
 ])# AC_FUNC_FSEEKO
 
@@ -427,7 +428,7 @@ if test $ac_cv_func_getgroups = yes; then
    ])
   if test $ac_cv_func_getgroups_works = yes; then
     AC_DEFINE(HAVE_GETGROUPS, 1,
-              [Define if your system has a working `getgroups' function.])
+              [Define to 1 if your system has a working `getgroups' function.])
   fi
 fi
 LIBS=$ac_save_LIBS
@@ -439,12 +440,12 @@ LIBS=$ac_save_LIBS
 # Set up the AC_LIBOBJ replacement of `getloadavg'.
 m4_define([_AC_LIBOBJ_GETLOADAVG],
 [AC_LIBOBJ(getloadavg)
-AC_DEFINE(C_GETLOADAVG, 1, [Define if using `getloadavg.c'.])
+AC_DEFINE(C_GETLOADAVG, 1, [Define to 1 if using `getloadavg.c'.])
 # Figure out what our getloadavg.c needs.
 ac_have_func=no
 AC_CHECK_HEADER(sys/dg_sys_info.h,
 [ac_have_func=yes
- AC_DEFINE(DGUX, 1, [Define for DGUX with <sys/dg_sys_info.h>.])
+ AC_DEFINE(DGUX, 1, [Define to 1 for DGUX with <sys/dg_sys_info.h>.])
  AC_CHECK_LIB(dgc, dg_sys_info)])
 
 AC_CHECK_HEADER(locale.h)
@@ -455,15 +456,15 @@ AC_CHECK_FUNCS(setlocale)
 # Irix 4.0.5F has the header but not the library.
 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
   ac_have_func=yes
-  AC_DEFINE(SVR4, 1, [Define on System V Release 4.])
+  AC_DEFINE(SVR4, 1, [Define to 1 on System V Release 4.])
 fi
 
 if test $ac_have_func = no; then
   AC_CHECK_HEADER(inq_stats/cpustats.h,
   [ac_have_func=yes
-   AC_DEFINE(UMAX, 1, [Define for Encore UMAX.])
+   AC_DEFINE(UMAX, 1, [Define to 1 for Encore UMAX.])
    AC_DEFINE(UMAX4_3, 1,
-             [Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
+             [Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h>
               instead of <sys/cpustats.h>.])])
 fi
 
@@ -479,7 +480,7 @@ fi
 AC_CHECK_HEADERS(nlist.h,
 [AC_CHECK_MEMBERS([struct nlist.n_un.n_name],
                   [AC_DEFINE(NLIST_NAME_UNION, 1,
-                             [Define if your `struct nlist' has an
+                             [Define to 1 if your `struct nlist' has an
                               `n_un' member.  Obsolete, depend on
                               `HAVE_STRUCT_NLIST_N_UN_N_NAME])], [],
                   [@%:@include <nlist.h>])
@@ -546,7 +547,7 @@ Yowza Am I SETGID yet
 if test $ac_cv_func_getloadavg_setgid = yes; then
   NEED_SETGID=true
   AC_DEFINE(GETLOADAVG_PRIVILEGED, 1,
-            [Define if the `getloadavg' function needs to be run setuid
+            [Define to 1 if the `getloadavg' function needs to be run setuid
              or setgid.])
 else
   NEED_SETGID=false
@@ -591,7 +592,7 @@ AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS",
     [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])])
 AC_CHECK_FUNC(getmntent,
               [AC_DEFINE(HAVE_GETMNTENT, 1,
-                         [Define if you have the `getmntent' function.])])])
+                         [Define to 1 if you have the `getmntent' function.])])])
 
 
 # AC_FUNC_GETPGRP
@@ -607,7 +608,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [getpgrp (0);])],
 ])
 if test $ac_cv_func_getpgrp_void = yes; then
   AC_DEFINE(GETPGRP_VOID, 1,
-            [Define if the `getpgrp' function requires zero arguments.])
+            [Define to 1 if the `getpgrp' function requires zero arguments.])
 fi
 ])# AC_FUNC_GETPGRP
 
@@ -643,7 +644,7 @@ rm -f conftest.sym conftest.file
 
 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
   AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1,
-                     [Define if `lstat' dereferences a symlink specified
+                     [Define to 1 if `lstat' dereferences a symlink specified
                       with a trailing slash.])
 
 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
@@ -673,7 +674,7 @@ char *malloc ();
                [ac_cv_func_malloc_works=no])])
 if test $ac_cv_func_malloc_works = yes; then
   AC_DEFINE(HAVE_MALLOC, 1,
-            [Define if your system has a working `malloc' function.])
+            [Define to 1 if your system has a working `malloc' function.])
 fi
 ])# AC_FUNC_MALLOC
 
@@ -1015,7 +1016,7 @@ main ()
                [ac_cv_func_mmap_fixed_mapped=no])])
 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   AC_DEFINE(HAVE_MMAP, 1,
-            [Define if you have a working `mmap' system call.])
+            [Define to 1 if you have a working `mmap' system call.])
 fi
 rm -f conftest.mmap
 ])# AC_FUNC_MMAP
@@ -1038,7 +1039,7 @@ AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack,
                 [ac_cv_func_obstack=yes],
                 [ac_cv_func_obstack=no])])
 if test $ac_cv_func_obstack = yes; then
-  AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.])
+  AC_DEFINE(HAVE_OBSTACK, 1, [Define to 1 if libc includes obstacks.])
 else
   AC_LIBOBJ(obstack)
 fi
@@ -1114,7 +1115,7 @@ AC_DEFUN([AC_FUNC_SETPGRP],
                [AC_MSG_ERROR([cannot check setpgrp if cross compiling])])])
 if test $ac_cv_func_setpgrp_void = yes; then
   AC_DEFINE(SETPGRP_VOID, 1,
-            [Define if the `setpgrp' function takes no argument.])
+            [Define to 1 if the `setpgrp' function takes no argument.])
 fi
 ])# AC_FUNC_SETPGRP
 
@@ -1141,7 +1142,7 @@ AC_CACHE_CHECK([whether $1 accepts an empty string],
 if test $ac_cv_func_$1_empty_string_bug = yes; then
   AC_LIBOBJ([$1])
   AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1_EMPTY_STRING_BUG]), 1,
-                     [Define if `$1' has the bug that it succeeds when
+                     [Define to 1 if `$1' has the bug that it succeeds when
                       given the zero-length file name argument.])
 fi
 ])# _AC_FUNC_STAT
@@ -1283,7 +1284,7 @@ main ()
 rm -f core core.* *.core])
 if test $ac_cv_func_setvbuf_reversed = yes; then
   AC_DEFINE(SETVBUF_REVERSED, 1,
-            [Define if the `setvbuf' function takes the buffering type as
+            [Define to 1 if the `setvbuf' function takes the buffering type as
              its second argument and the buffer pointer as the third, as on
              System V before release 3.])
 fi
@@ -1308,7 +1309,7 @@ AC_DEFUN([AC_FUNC_STRCOLL],
                ac_cv_func_strcoll_works=no)])
 if test $ac_cv_func_strcoll_works = yes; then
   AC_DEFINE(HAVE_STRCOLL, 1,
-            [Define if you have the `strcoll' function and it is properly
+            [Define to 1 if you have the `strcoll' function and it is properly
              defined.])
 fi
 ])# AC_FUNC_STRCOLL
@@ -1338,7 +1339,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
 rm -f core core.* *.core])
 if test $ac_cv_func_utime_null = yes; then
   AC_DEFINE(HAVE_UTIME_NULL, 1,
-            [Define if `utime(file, NULL)' sets file's timestamp to the
+            [Define to 1 if `utime(file, NULL)' sets file's timestamp to the
              present.])
 fi
 rm -f conftest.data
@@ -1382,12 +1383,12 @@ if test "x$ac_cv_func_fork_works" = xcross; then
 fi
 
 if test "x$ac_cv_func_vfork_works" = xyes; then
-  AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define if `vfork' works.])
+  AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define to 1 if `vfork' works.])
 else
   AC_DEFINE(vfork, fork, [Define as `fork' if `vfork' does not work.])
 fi
 if test "x$ac_cv_func_fork_works" = xyes; then
-  AC_DEFINE(HAVE_WORKING_FORK, 1, [Define if `fork' works.])
+  AC_DEFINE(HAVE_WORKING_FORK, 1, [Define to 1 if `fork' works.])
 fi
 ])# AC_FUNC_FORK
 
@@ -1534,7 +1535,7 @@ AC_DEFUN([AC_FUNC_VPRINTF],
 [AC_CHECK_FUNCS(vprintf, []
 [AC_CHECK_FUNC(_doprnt,
                [AC_DEFINE(HAVE_DOPRNT, 1,
-                          [Define if you don't have `vprintf' but do have
+                          [Define to 1 if you don't have `vprintf' but do have
                           `_doprnt.'])])])
 ])
 
@@ -1596,7 +1597,7 @@ main ()
                [ac_cv_func_wait3_rusage=no])])
 if test $ac_cv_func_wait3_rusage = yes; then
   AC_DEFINE(HAVE_WAIT3, 1,
-            [Define if you have the `wait3' system call.
+            [Define to 1 if you have the `wait3' system call.
              Deprecated, you should no longer depend upon `wait3'.])
 fi
 ])# AC_FUNC_WAIT3
index 557b5593291c94cb63e9863712bde7d9a60e2b7e..575e9ac50ae0a5a32da6e8df4f9c45af1778c65e 100644 (file)
@@ -2267,7 +2267,8 @@ AC_DEFUN([AC_CHECK_FILES],
 [AC_FOREACH([AC_FILE_NAME], [$1],
   [AC_CHECK_FILE(AC_FILE_NAME,
                  [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_FILE_NAME), 1,
-                                   [Define if you have the file `]AC_File['.])
+                                    [Define to 1 if you have the
+                                     file `]AC_File['.])
 $2],
                  [$3])])])
 
index 561d812a49aa53947a710d4adef5f3e47d427034..bd389c59c483521d9d551393240df030510d14b9 100644 (file)
@@ -174,7 +174,7 @@ AS_VAR_POPDEF([ac_Header])dnl
 m4_define([AH_CHECK_HEADERS],
 [AC_FOREACH([AC_Header], [$1],
   [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header),
-               [Define if you have the <]AC_Header[> header file.])])])
+               [Define to 1 if you have the <]AC_Header[> header file.])])])
 
 
 # AC_CHECK_HEADERS(HEADER-FILE...
@@ -304,7 +304,7 @@ AS_VAR_POPDEF([ac_Header])dnl
 m4_define([AH_CHECK_HEADERS_DIRENT],
 [AC_FOREACH([AC_Header], [$1],
   [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header),
-               [Define if you have the <]AC_Header[> header file, and
+               [Define to 1 if you have the <]AC_Header[> header file, and
                 it defines `DIR'.])])])
 
 
@@ -341,14 +341,14 @@ AC_DEFUN([AC_HEADER_MAJOR],
 if test $ac_cv_header_sys_types_h_makedev = no; then
 AC_CHECK_HEADER(sys/mkdev.h,
                 [AC_DEFINE(MAJOR_IN_MKDEV, 1,
-                           [Define if `major', `minor', and `makedev' are
+                           [Define to 1 if `major', `minor', and `makedev' are
                             declared in <mkdev.h>.])])
 
   if test $ac_cv_header_sys_mkdev_h = no; then
     AC_CHECK_HEADER(sys/sysmacros.h,
                     [AC_DEFINE(MAJOR_IN_SYSMACROS, 1,
-                               [Define if `major', `minor', and `makedev' are
-                                declared in <sysmacros.h>.])])
+                               [Define to 1 if `major', `minor', and `makedev'
+                                are declared in <sysmacros.h>.])])
   fi
 fi
 ])# AC_HEADER_MAJOR
@@ -389,7 +389,7 @@ You lose.
 ], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
 if test $ac_cv_header_stat_broken = yes; then
   AC_DEFINE(STAT_MACROS_BROKEN, 1,
-            [Define if the `S_IS*' macros in <sys/stat.h> do not
+            [Define to 1 if the `S_IS*' macros in <sys/stat.h> do not
              work properly.])
 fi
 ])# AC_HEADER_STAT
@@ -442,7 +442,8 @@ main ()
 }], , ac_cv_header_stdc=no, :)
 fi])
 if test $ac_cv_header_stdc = yes; then
-  AC_DEFINE(STDC_HEADERS, 1, [Define if you have the ANSI C header files.])
+  AC_DEFINE(STDC_HEADERS, 1,
+            [Define to 1 if you have the ANSI C header files.])
 fi
 ])# AC_HEADER_STDC
 
@@ -469,7 +470,7 @@ AC_DEFUN([AC_HEADER_SYS_WAIT],
                  [ac_cv_header_sys_wait_h=no])])
 if test $ac_cv_header_sys_wait_h = yes; then
   AC_DEFINE(HAVE_SYS_WAIT_H, 1,
-            [Define if you have <sys/wait.h> that is POSIX.1 compatible.])
+            [Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible.])
 fi
 ])# AC_HEADER_SYS_WAIT
 
@@ -489,7 +490,8 @@ return 0;])],
                    [ac_cv_header_time=no])])
 if test $ac_cv_header_time = yes; then
   AC_DEFINE(TIME_WITH_SYS_TIME, 1,
-            [Define if you can safely include both <sys/time.h> and <time.h>.])
+            [Define to 1 if you can safely include both <sys/time.h>
+             and <time.h>.])
 fi
 ])# AC_HEADER_TIME
 
@@ -542,7 +544,7 @@ if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
   _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL
   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
     AC_DEFINE(GWINSZ_IN_SYS_IOCTL,1,
-              [Define if `TIOCGWINSZ' requires <sys/ioctl.h>])
+              [Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>.])
   fi
 fi
 ])# AC_HEADER_TIOCGWINSZ
@@ -566,7 +568,7 @@ AC_TRY_LINK([@%:@include <strings.h>], [rindex(0, 0); bzero(0, 0);],
   [AC_MSG_RESULT(yes)],
   [AC_MSG_RESULT(no)
    AC_DEFINE(USG, 1,
-       [Define if you do not have <strings.h>, index, bzero, etc...
+       [Define to 1 if you do not have <strings.h>, index, bzero, etc...
         This symbol is obsolete, you should not depend upon it.])])
 AC_CHECK_HEADERS(string.h)])
 
index a2ec99dbc290724fc66cba2e07ce70b08636cec2..aaeb5c1452c2e2586a1bf4e09e4afa2a24b29eb6 100644 (file)
@@ -137,7 +137,7 @@ AS_VAR_POPDEF([ac_Lib])dnl
 # ---------------------
 m4_define([AH_CHECK_LIB],
 [AH_TEMPLATE(AS_TR_CPP(HAVE_LIB$1),
-             [Define if you have the `]$1[' library (-l]$1[).])])
+             [Define to 1 if you have the `]$1[' library (-l]$1[).])])
 
 
 # AC_HAVE_LIBRARY(LIBRARY,
@@ -369,7 +369,7 @@ AC_DEFUN([AC_PATH_XTRA],
 if test "$no_x" = yes; then
   # Not all programs may use this symbol, but it does not hurt to define it.
   AC_DEFINE([X_DISPLAY_MISSING], 1,
-            [Define if the X Window System is missing or not being used.])
+            [Define to 1 if the X Window System is missing or not being used.])
   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 else
   if test -n "$x_includes"; then
index 96b806bc0161ab934e4f202191b31f374f1170fb..18dc43918fdd55248bd0ca1ecc0b351f5a3a1139 100644 (file)
@@ -392,7 +392,7 @@ rm -f "${LEX_OUTPUT_ROOT}.c"
 dnl
 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   AC_DEFINE(YYTEXT_POINTER, 1,
-            [Define if `lex' declares `yytext' as a `char *' by default,
+            [Define to 1 if `lex' declares `yytext' as a `char *' by default,
              not a `char[]'.])
 fi
 ])# _AC_PROG_LEX_YYTEXT_DECL
index 14b2236ede125638343f5b0cf06ec1bc86488827..ddb44a744223e184553e8a62a30fdbb92f35f1c7 100644 (file)
@@ -72,7 +72,8 @@ AC_DEFUN([AC_DECL_SYS_SIGLIST],
                    [ac_cv_decl_sys_siglist=no])])
 if test $ac_cv_decl_sys_siglist = yes; then
   AC_DEFINE(SYS_SIGLIST_DECLARED, 1,
-            [Define if `sys_siglist' is declared by <signal.h> or <unistd.h>.])
+            [Define to 1 if `sys_siglist' is declared by <signal.h>
+             or <unistd.h>.])
 fi
 ])# AC_DECL_SYS_SIGLIST
 
@@ -248,7 +249,7 @@ for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
 done])
 if test $ac_cv_sys_long_file_names = yes; then
   AC_DEFINE(HAVE_LONG_FILE_NAMES, 1,
-            [Define if you support file names longer than 14 characters.])
+            [Define to 1 if you support file names longer than 14 characters.])
 fi
 ])
 
@@ -312,8 +313,8 @@ main ()
                [ac_cv_sys_restartable_syscalls=no])])
 if test $ac_cv_sys_restartable_syscalls = yes; then
   AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS, 1,
-            [Define if system calls automatically restart after interruption
-             by a signal.])
+            [Define to 1 if system calls automatically restart after
+             interruption by a signal.])
 fi
 ])# AC_SYS_RESTARTABLE_SYSCALLS
 
@@ -398,7 +399,7 @@ esac
 # ------
 AC_DEFUN([AC_AIX],
 [AH_VERBATIM([_ALL_SOURCE],
-[/* Define if on AIX 3.
+[/* Define to 1 if on AIX 3.
    System headers sometimes define this.
    We just want to avoid a redefinition error message.  */
 @%:@ifndef _ALL_SOURCE
@@ -426,13 +427,13 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=)
 if test "$MINIX" = yes; then
   AC_DEFINE(_POSIX_SOURCE, 1,
-            [Define if you need to in order for `stat' and other things to
+            [Define to 1 if you need to in order for `stat' and other things to
              work.])
   AC_DEFINE(_POSIX_1_SOURCE, 2,
-            [Define if the system does not provide POSIX.1 features except
+            [Define to 2 if the system does not provide POSIX.1 features except
              with this defined.])
   AC_DEFINE(_MINIX, 1,
-            [Define if on MINIX.])
+            [Define to 1 if on MINIX.])
 fi
 ])# AC_MINIX
 
index 6beeba627cf3ea7781d2a1edb43a99a05e40352b..8f6af6688efd8e484643bd3f369fc2d3924f3d89 100644 (file)
@@ -165,8 +165,8 @@ AC_DEFUN([AC_CHECK_TYPES],
 [m4_foreach([AC_Type], [$1],
   [_AC_CHECK_TYPE_NEW(AC_Type,
                       [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Type), 1,
-                                          [Define if the system has the type
-                                          `]AC_Type['.])
+                                          [Define to 1 if the system has the
+                                           type `]AC_Type['.])
 $2],
                       [$3],
                       [$4])])])
@@ -384,7 +384,7 @@ AC_DIAGNOSE([obsolete], [$0:
         adjust the code.])dnl
 test $ac_cv_sizeof_int = 2 &&
   AC_DEFINE(INT_16_BITS, 1,
-            [Define if `sizeof (int)' = 2.  Obsolete, use `SIZEOF_INT'.])
+            [Define to 1 if `sizeof (int)' = 2.  Obsolete, use `SIZEOF_INT'.])
 ])
 
 
@@ -398,7 +398,7 @@ AC_DIAGNOSE([obsolete], [$0:
         you adjust the code.])dnl
 test $ac_cv_sizeof_long_int = 8 &&
   AC_DEFINE(LONG_64_BITS, 1,
-            [Define if `sizeof (long int)' = 8.  Obsolete, use
+            [Define to 1 if `sizeof (long int)' = 8.  Obsolete, use
              `SIZEOF_LONG_INT'.])
 ])
 
@@ -449,7 +449,7 @@ AC_DEFUN([AC_CHECK_MEMBERS],
 [m4_foreach([AC_Member], [$1],
   [AC_CHECK_MEMBER(AC_Member,
          [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Member), 1,
-                            [Define if `]m4_bpatsubst(AC_Member,
+                            [Define to 1 if `]m4_bpatsubst(AC_Member,
                                                      [^[^.]*\.])[' is
                              member of `]m4_bpatsubst(AC_Member, [\..*])['.])
 $2],
@@ -472,7 +472,7 @@ AU_DEFUN([AC_STRUCT_ST_BLKSIZE],
         the `AC_DEFINE' when you adjust the code.])
 AC_CHECK_MEMBERS([struct stat.st_blksize],
                  [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
-                            [Define if your `struct stat' has
+                            [Define to 1 if your `struct stat' has
                              `st_blksize'.  Deprecated, use
                              `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
 ])# AC_STRUCT_ST_BLKSIZE
@@ -495,7 +495,7 @@ AC_CHECK_MEMBERS([struct stat.st_blksize],
 AC_DEFUN([AC_STRUCT_ST_BLOCKS],
 [AC_CHECK_MEMBERS([struct stat.st_blocks],
                   [AC_DEFINE(HAVE_ST_BLOCKS, 1,
-                             [Define if your `struct stat' has
+                             [Define to 1 if your `struct stat' has
                               `st_blocks'.  Deprecated, use
                               `HAVE_STRUCT_STAT_ST_BLOCKS' instead.])],
                   [AC_LIBOBJ([fileblocks])])
@@ -511,7 +511,7 @@ AU_DEFUN([AC_STRUCT_ST_RDEV],
         the `AC_DEFINE' when you adjust the code.])
 AC_CHECK_MEMBERS([struct stat.st_rdev],
                  [AC_DEFINE(HAVE_ST_RDEV, 1,
-                            [Define if your `struct stat' has `st_rdev'.
+                            [Define to 1 if your `struct stat' has `st_rdev'.
                              Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
                              instead.])])
 ])# AC_STRUCT_ST_RDEV
@@ -532,7 +532,7 @@ AC_DEFUN([AC_STRUCT_TM],
                    [ac_cv_struct_tm=sys/time.h])])
 if test $ac_cv_struct_tm = sys/time.h; then
   AC_DEFINE(TM_IN_SYS_TIME, 1,
-            [Define if your <sys/time.h> declares `struct tm'.])
+            [Define to 1 if your <sys/time.h> declares `struct tm'.])
 fi
 ])# AC_STRUCT_TM
 
@@ -549,7 +549,7 @@ AC_CHECK_MEMBERS([struct tm.tm_zone],,,[#include <sys/types.h>
 ])
 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   AC_DEFINE(HAVE_TM_ZONE, 1,
-            [Define if your `struct tm' has `tm_zone'. Deprecated, use
+            [Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
              `HAVE_STRUCT_TM_TM_ZONE' instead.])
 else
   AC_CACHE_CHECK(for tzname, ac_cv_var_tzname,
@@ -562,7 +562,7 @@ extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
 [atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])
   if test $ac_cv_var_tzname = yes; then
     AC_DEFINE(HAVE_TZNAME, 1,
-              [Define if you don't have `tm_zone' but do have the external
+              [Define to 1 if you don't have `tm_zone' but do have the external
                array `tzname'.])
   fi
 fi