]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4: Formatting changes.
authorAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 09:45:21 +0000 (09:45 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 09:45:21 +0000 (09:45 +0000)
* acspecific.m4: Likewise.

ChangeLog
acgeneral.m4
acspecific.m4
lib/autoconf/general.m4
lib/autoconf/specific.m4

index 3e41b454f91ad0feb1a8452fd100e025460a49d3..98113edfa8aca118ddf6536ecd01a272b75fb133 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-08  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4: Formatting changes.
+       * acspecific.m4: Likewise.
+
 2000-02-08  Akim Demaille  <akim@epita.fr>
 
        Use the style we promote.
index 059796317834a646550f5cc4f5563fbf2c129302..9433a1677bf37889e9fc0130258f523aa663a7d7 100644 (file)
@@ -359,9 +359,9 @@ define(AC_TR_SH,
 
 
 
-## --------------------------- ##
-## Implementing Autoconf loops ##
-## --------------------------- ##
+## ----------------------------- ##
+## Implementing Autoconf loops ##
+## ----------------------------- ##
 
 
 # AC_FOREACH(VARIABLE, LIST, EXPRESSION)
@@ -394,9 +394,9 @@ AC_DEFUN(AC_SPECIALIZE,
        [indir([$1], m4_shift($@))])])
 
 
-## --------------------------------- ##
-## Helping macros to display strings ##
-## --------------------------------- ##
+## ----------------------------------- ##
+## Helping macros to display strings ##
+## ----------------------------------- ##
 
 
 # AC_HELP_STRING(LHS, RHS[, COLUMN])
@@ -448,9 +448,11 @@ popdef([AC_Prefix_Format])dnl
 popdef([AC_Prefix])dnl
 ])
 
-## -------------- ##
-## Initialization ##
-## -------------- ##
+
+
+## ---------------- ##
+## Initialization.  ##
+## ---------------- ##
 
 
 # AC_INIT_NOTICE
@@ -3320,8 +3322,9 @@ ifset([AC_LIST_COMMANDS],
       [AC_OUTPUT_COMMANDS_COMMANDS()])dnl
 
 cat >>$CONFIG_STATUS <<EOF
+
 #
-# AC_OUTPUT_COMMANDS section.
+# CONFIG_COMMANDS section.
 #
 
 undivert(AC_DIVERSION_ICMDS)dnl
index a4c5ea65272f0e09469122624387b9349445dcc4..f51d1994f28297719a39a1012c5cf25424dd097d 100644 (file)
@@ -1464,40 +1464,38 @@ int     ng, np, s, child;
 int
 main ()
 {
-        pid = getpid();
-        pg1 = getpgrp(0);
-        pg2 = getpgrp();
-        pg3 = getpgrp(pid);
-        pg4 = getpgrp(1);
-
-        /*
-         * If all of these values are the same, it's pretty sure that
-         * we're on a system that ignores getpgrp's first argument.
-         */
-        if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
-                exit(0);
-
-        child = fork();
-        if (child < 0)
-                exit(1);
-        else if (child == 0) {
-                np = getpid();
-                /*
-                 * If this is Sys V, this will not work; pgrp will be
-                 * set to np because setpgrp just changes a pgrp to be
-                 * the same as the pid.
-                 */
-                setpgrp(np, pg1);
-                ng = getpgrp(0);        /* Same result for Sys V and BSD */
-                if (ng == pg1) {
-                        exit(1);
-                } else {
-                        exit(0);
-                }
-        } else {
-                wait(&s);
-                exit(s>>8);
-        }
+  pid = getpid ();
+  pg1 = getpgrp (0);
+  pg2 = getpgrp ();
+  pg3 = getpgrp (pid);
+  pg4 = getpgrp (1);
+
+  /* If all of these values are the same, it's pretty sure that we're
+     on a system that ignores getpgrp's first argument.  */
+  if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+    exit (0);
+
+  child = fork ();
+  if (child < 0)
+    exit(1);
+  else if (child == 0)
+    {
+      np = getpid ();
+      /*  If this is Sys V, this will not work; pgrp will be set to np
+        because setpgrp just changes a pgrp to be the same as the
+        pid.  */
+      setpgrp (np, pg1);
+      ng = getpgrp (0);        /* Same result for Sys V and BSD */
+      if (ng == pg1)
+       exit (1);
+      else
+       exit (0);
+    }
+  else
+    {
+      wait (&s);
+      exit (s>>8);
+    }
 }], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no,
    AC_MSG_ERROR(cannot check getpgrp if cross compiling))
 ])
index 059796317834a646550f5cc4f5563fbf2c129302..9433a1677bf37889e9fc0130258f523aa663a7d7 100644 (file)
@@ -359,9 +359,9 @@ define(AC_TR_SH,
 
 
 
-## --------------------------- ##
-## Implementing Autoconf loops ##
-## --------------------------- ##
+## ----------------------------- ##
+## Implementing Autoconf loops ##
+## ----------------------------- ##
 
 
 # AC_FOREACH(VARIABLE, LIST, EXPRESSION)
@@ -394,9 +394,9 @@ AC_DEFUN(AC_SPECIALIZE,
        [indir([$1], m4_shift($@))])])
 
 
-## --------------------------------- ##
-## Helping macros to display strings ##
-## --------------------------------- ##
+## ----------------------------------- ##
+## Helping macros to display strings ##
+## ----------------------------------- ##
 
 
 # AC_HELP_STRING(LHS, RHS[, COLUMN])
@@ -448,9 +448,11 @@ popdef([AC_Prefix_Format])dnl
 popdef([AC_Prefix])dnl
 ])
 
-## -------------- ##
-## Initialization ##
-## -------------- ##
+
+
+## ---------------- ##
+## Initialization.  ##
+## ---------------- ##
 
 
 # AC_INIT_NOTICE
@@ -3320,8 +3322,9 @@ ifset([AC_LIST_COMMANDS],
       [AC_OUTPUT_COMMANDS_COMMANDS()])dnl
 
 cat >>$CONFIG_STATUS <<EOF
+
 #
-# AC_OUTPUT_COMMANDS section.
+# CONFIG_COMMANDS section.
 #
 
 undivert(AC_DIVERSION_ICMDS)dnl
index a4c5ea65272f0e09469122624387b9349445dcc4..f51d1994f28297719a39a1012c5cf25424dd097d 100644 (file)
@@ -1464,40 +1464,38 @@ int     ng, np, s, child;
 int
 main ()
 {
-        pid = getpid();
-        pg1 = getpgrp(0);
-        pg2 = getpgrp();
-        pg3 = getpgrp(pid);
-        pg4 = getpgrp(1);
-
-        /*
-         * If all of these values are the same, it's pretty sure that
-         * we're on a system that ignores getpgrp's first argument.
-         */
-        if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
-                exit(0);
-
-        child = fork();
-        if (child < 0)
-                exit(1);
-        else if (child == 0) {
-                np = getpid();
-                /*
-                 * If this is Sys V, this will not work; pgrp will be
-                 * set to np because setpgrp just changes a pgrp to be
-                 * the same as the pid.
-                 */
-                setpgrp(np, pg1);
-                ng = getpgrp(0);        /* Same result for Sys V and BSD */
-                if (ng == pg1) {
-                        exit(1);
-                } else {
-                        exit(0);
-                }
-        } else {
-                wait(&s);
-                exit(s>>8);
-        }
+  pid = getpid ();
+  pg1 = getpgrp (0);
+  pg2 = getpgrp ();
+  pg3 = getpgrp (pid);
+  pg4 = getpgrp (1);
+
+  /* If all of these values are the same, it's pretty sure that we're
+     on a system that ignores getpgrp's first argument.  */
+  if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+    exit (0);
+
+  child = fork ();
+  if (child < 0)
+    exit(1);
+  else if (child == 0)
+    {
+      np = getpid ();
+      /*  If this is Sys V, this will not work; pgrp will be set to np
+        because setpgrp just changes a pgrp to be the same as the
+        pid.  */
+      setpgrp (np, pg1);
+      ng = getpgrp (0);        /* Same result for Sys V and BSD */
+      if (ng == pg1)
+       exit (1);
+      else
+       exit (0);
+    }
+  else
+    {
+      wait (&s);
+      exit (s>>8);
+    }
 }], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no,
    AC_MSG_ERROR(cannot check getpgrp if cross compiling))
 ])