+2008-02-08 Eric Blake <ebb9@byu.net>
+
+ Describe a config.site that can be used for FHS compliance.
+ * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
+ for FHS.
+ * THANKS: Update.
+ Reported by Jules Colding and Ralf Wildenhues.
+
2008-02-02 Eric Blake <ebb9@byu.net>
* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
John W. Eaton jwe@bevo.che.wisc.edu
Jonathan Kamens jik@kamens.brookline.ma.us
Joseph S. Myers jsm28@cam.ac.uk
+Jules Colding colding@42tools.com
Julian Onions j.onions@nexor.co.uk
Julien Danjou acid@debian.org
Julio Garvia ?
# Change some defaults.
test "$prefix" = NONE && prefix=/usr/share/local/gnu
test "$exec_prefix" = NONE && exec_prefix=/usr/local/gnu
-test "$sharedstatedir" = '$prefix/com' && sharedstatedir=/var
-test "$localstatedir" = '$prefix/var' && localstatedir=/var
+test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
+test "$localstatedir" = '${prefix}/var' && localstatedir=/var
# Give Autoconf 2.x generated configure scripts a shared default
# cache file for feature test results, architecture-specific.
fi
@end example
+@cindex Filesystem Hierarchy Standard
+@cindex FHS
+
+Another use of @file{config.site} is for priming the directory variables
+in a manner consistent with the Filesystem Hierarchy Standard
+(@acronym{FHS}). Once the following file is installed at
+@file{/usr/share/config.site}, a user can execute simply
+@command{./configure --prefix=/usr} to get all the directories chosen in
+the locations recommended by @acronym{FHS}.
+
+@example
+# /usr/local/config.site for FHS defaults when installing below /usr,
+# and the respective settings were not changed on the command line.
+if test "$prefix" = /usr; then
+ test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
+ test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
+ test "$localstatedir" = '${prefix}/var' && localstatedir=/var
+fi
+@end example
+
@c ============================================== Running configure Scripts.