From: richard Date: Mon, 22 Sep 2003 21:53:57 +0000 (+0000) Subject: Add usage function and -h/--help X-Git-Tag: 1.20~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73374497f2ed02af37915c2449bf9a6b8a26a9fd;p=thirdparty%2Fchrony.git Add usage function and -h/--help --- diff --git a/NEWS b/NEWS index 7d7b07fb..41318591 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ New in version 1.20 * Fix handling of initstepslew if no servers are listed (John Hasler) * Fix install rule in Makefile if chronyd is in use (Juliusz Chroboczek) * Replace sprintf by snprintf to remove risk of buffer overrun (John Hasler) +* Add --help to configure script New in version 1.19 =================== diff --git a/configure b/configure index 27f91386..f591912c 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #!/bin/sh # -# $Header: /cvs/src/chrony/configure,v 1.29 2003/09/22 21:22:30 richard Exp $ +# $Header: /cvs/src/chrony/configure,v 1.30 2003/09/22 21:53:57 richard Exp $ # # ======================================================================= # @@ -106,6 +106,52 @@ EOF echo $result } #}}} +#{{{ usage +usage () { + cat < if you have libraries in a + nonstandard directory + +Use these variables to override the choices made by \`configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +EOF + +} +#}}} # ====================================================================== @@ -160,6 +206,10 @@ do --mandir=* ) SETMANDIR=`echo $option | sed -e 's/^.*=//;'` ;; + --help | -h ) + usage + exit 0 + ;; * ) echo "Unrecognized option : " $option esac @@ -311,3 +361,6 @@ sed -e "s%@EXTRA_OBJECTS@%${EXTRA_OBJECTS}%;\ s%@INFODIR@%${INFODIR}%;"\ < Makefile.in > Makefile +# ======================================================================= +# vim:et:sw=2:ht=2:sts=2:fdm=marker:cms=#%s +