annotate src/fftw-3.3.5/missing @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 7867fa7e1b6b
children
rev   line source
cannam@127 1 #! /bin/sh
cannam@127 2 # Common wrapper for a few potentially missing GNU programs.
cannam@127 3
cannam@127 4 scriptversion=2013-10-28.13; # UTC
cannam@127 5
cannam@127 6 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
cannam@127 7 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
cannam@127 8
cannam@127 9 # This program is free software; you can redistribute it and/or modify
cannam@127 10 # it under the terms of the GNU General Public License as published by
cannam@127 11 # the Free Software Foundation; either version 2, or (at your option)
cannam@127 12 # any later version.
cannam@127 13
cannam@127 14 # This program is distributed in the hope that it will be useful,
cannam@127 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@127 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@127 17 # GNU General Public License for more details.
cannam@127 18
cannam@127 19 # You should have received a copy of the GNU General Public License
cannam@127 20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
cannam@127 21
cannam@127 22 # As a special exception to the GNU General Public License, if you
cannam@127 23 # distribute this file as part of a program that contains a
cannam@127 24 # configuration script generated by Autoconf, you may include it under
cannam@127 25 # the same distribution terms that you use for the rest of that program.
cannam@127 26
cannam@127 27 if test $# -eq 0; then
cannam@127 28 echo 1>&2 "Try '$0 --help' for more information"
cannam@127 29 exit 1
cannam@127 30 fi
cannam@127 31
cannam@127 32 case $1 in
cannam@127 33
cannam@127 34 --is-lightweight)
cannam@127 35 # Used by our autoconf macros to check whether the available missing
cannam@127 36 # script is modern enough.
cannam@127 37 exit 0
cannam@127 38 ;;
cannam@127 39
cannam@127 40 --run)
cannam@127 41 # Back-compat with the calling convention used by older automake.
cannam@127 42 shift
cannam@127 43 ;;
cannam@127 44
cannam@127 45 -h|--h|--he|--hel|--help)
cannam@127 46 echo "\
cannam@127 47 $0 [OPTION]... PROGRAM [ARGUMENT]...
cannam@127 48
cannam@127 49 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
cannam@127 50 to PROGRAM being missing or too old.
cannam@127 51
cannam@127 52 Options:
cannam@127 53 -h, --help display this help and exit
cannam@127 54 -v, --version output version information and exit
cannam@127 55
cannam@127 56 Supported PROGRAM values:
cannam@127 57 aclocal autoconf autoheader autom4te automake makeinfo
cannam@127 58 bison yacc flex lex help2man
cannam@127 59
cannam@127 60 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
cannam@127 61 'g' are ignored when checking the name.
cannam@127 62
cannam@127 63 Send bug reports to <bug-automake@gnu.org>."
cannam@127 64 exit $?
cannam@127 65 ;;
cannam@127 66
cannam@127 67 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
cannam@127 68 echo "missing $scriptversion (GNU Automake)"
cannam@127 69 exit $?
cannam@127 70 ;;
cannam@127 71
cannam@127 72 -*)
cannam@127 73 echo 1>&2 "$0: unknown '$1' option"
cannam@127 74 echo 1>&2 "Try '$0 --help' for more information"
cannam@127 75 exit 1
cannam@127 76 ;;
cannam@127 77
cannam@127 78 esac
cannam@127 79
cannam@127 80 # Run the given program, remember its exit status.
cannam@127 81 "$@"; st=$?
cannam@127 82
cannam@127 83 # If it succeeded, we are done.
cannam@127 84 test $st -eq 0 && exit 0
cannam@127 85
cannam@127 86 # Also exit now if we it failed (or wasn't found), and '--version' was
cannam@127 87 # passed; such an option is passed most likely to detect whether the
cannam@127 88 # program is present and works.
cannam@127 89 case $2 in --version|--help) exit $st;; esac
cannam@127 90
cannam@127 91 # Exit code 63 means version mismatch. This often happens when the user
cannam@127 92 # tries to use an ancient version of a tool on a file that requires a
cannam@127 93 # minimum version.
cannam@127 94 if test $st -eq 63; then
cannam@127 95 msg="probably too old"
cannam@127 96 elif test $st -eq 127; then
cannam@127 97 # Program was missing.
cannam@127 98 msg="missing on your system"
cannam@127 99 else
cannam@127 100 # Program was found and executed, but failed. Give up.
cannam@127 101 exit $st
cannam@127 102 fi
cannam@127 103
cannam@127 104 perl_URL=http://www.perl.org/
cannam@127 105 flex_URL=http://flex.sourceforge.net/
cannam@127 106 gnu_software_URL=http://www.gnu.org/software
cannam@127 107
cannam@127 108 program_details ()
cannam@127 109 {
cannam@127 110 case $1 in
cannam@127 111 aclocal|automake)
cannam@127 112 echo "The '$1' program is part of the GNU Automake package:"
cannam@127 113 echo "<$gnu_software_URL/automake>"
cannam@127 114 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
cannam@127 115 echo "<$gnu_software_URL/autoconf>"
cannam@127 116 echo "<$gnu_software_URL/m4/>"
cannam@127 117 echo "<$perl_URL>"
cannam@127 118 ;;
cannam@127 119 autoconf|autom4te|autoheader)
cannam@127 120 echo "The '$1' program is part of the GNU Autoconf package:"
cannam@127 121 echo "<$gnu_software_URL/autoconf/>"
cannam@127 122 echo "It also requires GNU m4 and Perl in order to run:"
cannam@127 123 echo "<$gnu_software_URL/m4/>"
cannam@127 124 echo "<$perl_URL>"
cannam@127 125 ;;
cannam@127 126 esac
cannam@127 127 }
cannam@127 128
cannam@127 129 give_advice ()
cannam@127 130 {
cannam@127 131 # Normalize program name to check for.
cannam@127 132 normalized_program=`echo "$1" | sed '
cannam@127 133 s/^gnu-//; t
cannam@127 134 s/^gnu//; t
cannam@127 135 s/^g//; t'`
cannam@127 136
cannam@127 137 printf '%s\n' "'$1' is $msg."
cannam@127 138
cannam@127 139 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
cannam@127 140 case $normalized_program in
cannam@127 141 autoconf*)
cannam@127 142 echo "You should only need it if you modified 'configure.ac',"
cannam@127 143 echo "or m4 files included by it."
cannam@127 144 program_details 'autoconf'
cannam@127 145 ;;
cannam@127 146 autoheader*)
cannam@127 147 echo "You should only need it if you modified 'acconfig.h' or"
cannam@127 148 echo "$configure_deps."
cannam@127 149 program_details 'autoheader'
cannam@127 150 ;;
cannam@127 151 automake*)
cannam@127 152 echo "You should only need it if you modified 'Makefile.am' or"
cannam@127 153 echo "$configure_deps."
cannam@127 154 program_details 'automake'
cannam@127 155 ;;
cannam@127 156 aclocal*)
cannam@127 157 echo "You should only need it if you modified 'acinclude.m4' or"
cannam@127 158 echo "$configure_deps."
cannam@127 159 program_details 'aclocal'
cannam@127 160 ;;
cannam@127 161 autom4te*)
cannam@127 162 echo "You might have modified some maintainer files that require"
cannam@127 163 echo "the 'autom4te' program to be rebuilt."
cannam@127 164 program_details 'autom4te'
cannam@127 165 ;;
cannam@127 166 bison*|yacc*)
cannam@127 167 echo "You should only need it if you modified a '.y' file."
cannam@127 168 echo "You may want to install the GNU Bison package:"
cannam@127 169 echo "<$gnu_software_URL/bison/>"
cannam@127 170 ;;
cannam@127 171 lex*|flex*)
cannam@127 172 echo "You should only need it if you modified a '.l' file."
cannam@127 173 echo "You may want to install the Fast Lexical Analyzer package:"
cannam@127 174 echo "<$flex_URL>"
cannam@127 175 ;;
cannam@127 176 help2man*)
cannam@127 177 echo "You should only need it if you modified a dependency" \
cannam@127 178 "of a man page."
cannam@127 179 echo "You may want to install the GNU Help2man package:"
cannam@127 180 echo "<$gnu_software_URL/help2man/>"
cannam@127 181 ;;
cannam@127 182 makeinfo*)
cannam@127 183 echo "You should only need it if you modified a '.texi' file, or"
cannam@127 184 echo "any other file indirectly affecting the aspect of the manual."
cannam@127 185 echo "You might want to install the Texinfo package:"
cannam@127 186 echo "<$gnu_software_URL/texinfo/>"
cannam@127 187 echo "The spurious makeinfo call might also be the consequence of"
cannam@127 188 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
cannam@127 189 echo "want to install GNU make:"
cannam@127 190 echo "<$gnu_software_URL/make/>"
cannam@127 191 ;;
cannam@127 192 *)
cannam@127 193 echo "You might have modified some files without having the proper"
cannam@127 194 echo "tools for further handling them. Check the 'README' file, it"
cannam@127 195 echo "often tells you about the needed prerequisites for installing"
cannam@127 196 echo "this package. You may also peek at any GNU archive site, in"
cannam@127 197 echo "case some other package contains this missing '$1' program."
cannam@127 198 ;;
cannam@127 199 esac
cannam@127 200 }
cannam@127 201
cannam@127 202 give_advice "$1" | sed -e '1s/^/WARNING: /' \
cannam@127 203 -e '2,$s/^/ /' >&2
cannam@127 204
cannam@127 205 # Propagate the correct exit status (expected to be 127 for a program
cannam@127 206 # not found, 63 for a program that failed due to version mismatch).
cannam@127 207 exit $st
cannam@127 208
cannam@127 209 # Local variables:
cannam@127 210 # eval: (add-hook 'write-file-hooks 'time-stamp)
cannam@127 211 # time-stamp-start: "scriptversion="
cannam@127 212 # time-stamp-format: "%:y-%02m-%02d.%02H"
cannam@127 213 # time-stamp-time-zone: "UTC"
cannam@127 214 # time-stamp-end: "; # UTC"
cannam@127 215 # End: