Mercurial > hg > octave-nkf
annotate octave-bug.in @ 9963:0055d0b8a4bb
Replace distdir-local rule with dist-hook rule which is better supported
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Thu, 10 Dec 2009 14:41:27 -0800 |
parents | ab8a163f2052 |
children | d36f8c473dff |
rev | line source |
---|---|
797 | 1 #! /bin/sh - |
2 # | |
7019 | 3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2004, |
9245 | 4 # 2005, 2006, 2009 John W. Eaton |
7019 | 5 # |
6 # This file is part of Octave. | |
7 # | |
8 # Octave is free software; you can redistribute it and/or modify it | |
9 # under the terms of the GNU General Public License as published by the | |
10 # Free Software Foundation; either version 3 of the License, or (at | |
11 # your option) any later version. | |
12 # | |
13 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 # for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with Octave; see the file COPYING. If not, see | |
20 # <http://www.gnu.org/licenses/>. | |
21 | |
797 | 22 # octave-bug - create a bug report and mail it to the bug-octave |
23 # mailing list. | |
24 # | |
25 # Patterned after the bashbug script from bash 1.14. | |
26 | |
2155 | 27 # Configuration: these variables are filled in when running make to |
28 # compile Octave. | |
797 | 29 |
3681 | 30 config_opts=%OCTAVE_CONF_config_opts% |
3590 | 31 VERSION=%OCTAVE_CONF_VERSION% |
4084 | 32 SED=%OCTAVE_CONF_SED% |
3768 | 33 MACHINE=%OCTAVE_CONF_CANONICAL_HOST_TYPE% |
3590 | 34 F77=%OCTAVE_CONF_F77% |
35 FFLAGS=%OCTAVE_CONF_FFLAGS% | |
36 FPICFLAG=%OCTAVE_CONF_FPICFLAG% | |
37 FLIBS=%OCTAVE_CONF_FLIBS% | |
38 CPPFLAGS=%OCTAVE_CONF_CPPFLAGS% | |
39 INCFLAGS=%OCTAVE_CONF_INCFLAGS% | |
40 CC=%OCTAVE_CONF_CC% | |
41 CC_VERSION=%OCTAVE_CONF_CC_VERSION% | |
42 CFLAGS=%OCTAVE_CONF_CFLAGS% | |
43 CPICFLAG=%OCTAVE_CONF_CPICFLAG% | |
44 CXX=%OCTAVE_CONF_CXX% | |
45 CXX_VERSION=%OCTAVE_CONF_CXX_VERSION% | |
3681 | 46 CXXFLAGS=%OCTAVE_CONF_CXXFLAGS% |
3590 | 47 CXXPICFLAG=%OCTAVE_CONF_CXXPICFLAG% |
3859 | 48 LD_CXX=%OCTAVE_CONF_LD_CXX% |
3590 | 49 LDFLAGS=%OCTAVE_CONF_LDFLAGS% |
50 LIBFLAGS=%OCTAVE_CONF_LIBFLAGS% | |
51 RLD_FLAG=%OCTAVE_CONF_RLD_FLAG% | |
52 LEXLIB=%OCTAVE_CONF_LEXLIB% | |
53 LIBGLOB=%OCTAVE_CONF_LIBGLOB% | |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
54 LIBS=%OCTAVE_CONF_LIBS% |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
55 |
9569
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
56 AMD_CPPFLAGS=%OCTAVE_CONF_AMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
57 AMD_LDFLAGS=%OCTAVE_CONF_AMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
58 AMD_LIBS=%OCTAVE_CONF_AMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
59 ARPACK_CPPFLAGS=%OCTAVE_CONF_ARPACK_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
60 ARPACK_LDFLAGS=%OCTAVE_CONF_ARPACK_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
61 ARPACK_LIBS=%OCTAVE_CONF_ARPACK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
62 BLAS_LIBS=%OCTAVE_CONF_BLAS_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
63 CAMD_CPPFLAGS=%OCTAVE_CONF_CAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
64 CAMD_LDFLAGS=%OCTAVE_CONF_CAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
65 CAMD_LIBS=%OCTAVE_CONF_CAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
66 CARBON_LIBS=%OCTAVE_CONF_CARBON_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
67 CCOLAMD_CPPFLAGS=%OCTAVE_CONF_CCOLAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
68 CCOLAMD_LDFLAGS=%OCTAVE_CONF_CCOLAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
69 CCOLAMD_LIBS=%OCTAVE_CONF_CCOLAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
70 CHOLMOD_CPPFLAGS=%OCTAVE_CONF_CHOLMOD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
71 CHOLMOD_LDFLAGS=%OCTAVE_CONF_CHOLMOD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
72 CHOLMOD_LIBS=%OCTAVE_CONF_CHOLMOD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
73 COLAMD_CPPFLAGS=%OCTAVE_CONF_COLAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
74 COLAMD_LDFLAGS=%OCTAVE_CONF_COLAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
75 COLAMD_LIBS=%OCTAVE_CONF_COLAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
76 CURL_CPPFLAGS=%OCTAVE_CONF_CURL_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
77 CURL_LDFLAGS=%OCTAVE_CONF_CURL_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
78 CURL_LIBS=%OCTAVE_CONF_CURL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
79 CXSPARSE_CPPFLAGS=%OCTAVE_CONF_CXSPARSE_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
80 CXSPARSE_LDFLAGS=%OCTAVE_CONF_CXSPARSE_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
81 CXSPARSE_LIBS=%OCTAVE_CONF_CXSPARSE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
82 DL_LIBS=%OCTAVE_CONF_DL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
83 FFTW3_CPPFLAGS=%OCTAVE_CONF_FFTW3_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
84 FFTW3_LDFLAGS=%OCTAVE_CONF_FFTW3_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
85 FFTW3_LIBS=%OCTAVE_CONF_FFTW3_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
86 FFTW3F_CPPFLAGS=%OCTAVE_CONF_FFTW3F_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
87 FFTW3F_LDFLAGS=%OCTAVE_CONF_FFTW3F_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
88 FFTW3F_LIBS=%OCTAVE_CONF_FFTW3F_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
89 GRAPHICS_LIBS=%OCTAVE_CONF_GRAPHICS_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
90 GLPK_CPPFLAGS=%OCTAVE_CONF_GLPK_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
91 GLPK_LDFLAGS=%OCTAVE_CONF_GLPK_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
92 GLPK_LIBS=%OCTAVE_CONF_GLPK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
93 HDF5_CPPFLAGS=%OCTAVE_CONF_HDF5_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
94 HDF5_LDFLAGS=%OCTAVE_CONF_HDF5_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
95 HDF5_LIBS=%OCTAVE_CONF_HDF5_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
96 OPENGL_LIBS=%OCTAVE_CONF_OPENGL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
97 PTHREAD_CFLAGS=%OCTAVE_CONF_PTHREAD_CFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
98 PTHREAD_LIBS=%OCTAVE_CONF_PTHREAD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
99 QHULL_CPPFLAGS=%OCTAVE_CONF_QHULL_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
100 QHULL_LDFLAGS=%OCTAVE_CONF_QHULL_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
101 QHULL_LIBS=%OCTAVE_CONF_QHULL_LIBS% |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9569
diff
changeset
|
102 QRUPDATE_CPPFLAGS=%OCTAVE_CONF_QRUPDATE_CPPFLAGS% |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9569
diff
changeset
|
103 QRUPDATE_LDFLAGS=%OCTAVE_CONF_QRUPDATE_LDFLAGS% |
9569
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
104 QRUPDATE_LIBS=%OCTAVE_CONF_QRUPDATE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
105 READLINE_LIBS=%OCTAVE_CONF_READLINE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
106 REGEX_LIBS=%OCTAVE_CONF_REGEX_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
107 TERM_LIBS=%OCTAVE_CONF_TERM_LIBS% |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
108 UMFPACK_CPPFLAGS=%OCTAVE_CONF_UMFPACK_CPPFLAGS% |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
109 UMFPACK_LDFLAGS=%OCTAVE_CONF_UMFPACK_LDFLAGS% |
9569
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
110 UMFPACK_LIBS=%OCTAVE_CONF_UMFPACK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
111 X11_INCFLAGS=%OCTAVE_CONF_X11_INCFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
112 X11_LIBS=%OCTAVE_CONF_X11_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
113 Z_CPPFLAGS=%OCTAVE_CONF_Z_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
114 Z_LDFLAGS=%OCTAVE_CONF_Z_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
115 Z_LIBS=%OCTAVE_CONF_Z_LIBS% |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
116 |
3590 | 117 DEFS=%OCTAVE_CONF_DEFS% |
797 | 118 |
3082 | 119 : ${USER=$LOGNAME} |
120 | |
2031 | 121 CC_AND_VERSION= |
122 if test -n "$CC_VERSION"; then | |
123 CC_AND_VERSION="$CC, version $CC_VERSION" | |
124 fi | |
125 | |
126 CXX_AND_VERSION= | |
127 if test -n "$CXX_VERSION"; then | |
128 CXX_AND_VERSION="$CXX, version $CXX_VERSION" | |
129 fi | |
130 | |
846 | 131 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH |
797 | 132 export PATH |
133 | |
134 TEMP=/tmp/octave-bug.$$ | |
135 | |
5111 | 136 if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then |
137 if [ -x /usr/bin/editor ]; then | |
138 DEFEDITOR=editor | |
139 elif [ -x /usr/local/bin/ce ]; then | |
140 DEFEDITOR=ce | |
141 elif [ -x /usr/local/bin/emacs ]; then | |
142 DEFEDITOR=emacs | |
143 elif [ -x /usr/contrib/bin/emacs ]; then | |
144 DEFEDITOR=emacs | |
145 elif [ -x /usr/bin/emacs ]; then | |
146 DEFEDITOR=emacs | |
147 elif [ -x /usr/bin/xemacs ]; then | |
148 DEFEDITOR=xemacs | |
149 elif [ -x /usr/contrib/bin/jove ]; then | |
150 DEFEDITOR=jove | |
151 elif [ -x /usr/local/bin/jove ]; then | |
152 DEFEDITOR=jove | |
153 elif [ -x /usr/bin/vi ]; then | |
154 DEFEDITOR=vi | |
155 else | |
156 echo "octave-bug: No default editor found: attempting to use vi" >&2 | |
157 DEFEDITOR=vi | |
158 fi | |
159 fi | |
160 | |
161 : ${EDITOR=$DEFEDITOR} | |
162 | |
5229 | 163 if [ -z "$DEFPAGER" ] && [ -z "$PAGER" ]; then |
164 if [ -x /usr/bin/pager ]; then | |
165 DEFPAGER=pager | |
166 elif [ -x /usr/bin/less ]; then | |
167 DEFPAGER=less | |
5230 | 168 elif [ -x /bin/less ]; then |
5229 | 169 DEFPAGER=less |
170 elif [ -x /usr/local/bin/less ]; then | |
171 DEFPAGER=less | |
172 elif [ -x /usr/bin/more ]; then | |
173 DEFPAGER=more | |
174 elif [ -x /bin/more ]; then | |
175 DEFPAGER=more | |
176 elif [ -x /usr/bin/pg ]; then | |
177 DEFPAGER=pg | |
178 elif [ -x /bin/pg ]; then | |
179 DEFPAGER=pg | |
180 else | |
181 echo "octave-bug: No default pager found: attempting to use more" >&2 | |
182 DEFPAGER=more | |
183 fi | |
184 fi | |
185 | |
186 : ${PAGER=$DEFPAGER} | |
797 | 187 |
188 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15 | |
189 trap 'rm -f $TEMP $TEMP.x' 0 | |
190 | |
191 UN= | |
2222 | 192 if (uname) > /dev/null 2>&1; then |
797 | 193 UN=`uname -a` |
194 fi | |
195 | |
196 HAVE_FMT=false | |
2222 | 197 if (fmt < /dev/null) > /dev/null 2>&1; then |
797 | 198 HAVE_FMT=true |
199 fi | |
200 | |
2564 | 201 # Check whether to use -n or \c to keep echo from printing a newline |
202 # character. Stolen from autoconf, which borrowed the idea from dist 3.0. | |
203 | |
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
4084 | 206 if (echo -n testing; echo 1,2,3) | $SED s/-n/xn/ | grep xn >/dev/null; then |
2564 | 207 echo_n= |
208 echo_c=' | |
209 ' | |
210 else | |
211 echo_n=-n | |
212 echo_c= | |
213 fi | |
214 else | |
215 echo_n= | |
216 echo_c='\c' | |
217 fi | |
218 | |
801 | 219 ss_p=`echo $VERSION | grep "^ss-"` |
2222 | 220 if test -n "$ss_p"; then |
5041 | 221 BUGADDR="maintainers@octave.org" |
801 | 222 else |
2691 | 223 pretest_p=`echo $VERSION \ |
4084 | 224 | $SED 's,.*\.\([0-9]*\).*,\1,' \ |
2691 | 225 | grep -v '\.' \ |
226 | grep '[0-9]'` | |
2222 | 227 |
228 if test -n "$pretest_p" && test "$pretest_p" -ge 90; then | |
5041 | 229 BUGADDR="maintainers@octave.org" |
2222 | 230 else |
5041 | 231 BUGADDR="bug@octave.org" |
2222 | 232 fi |
801 | 233 fi |
797 | 234 |
235 SUBJECT="[50 character or so descriptive subject here (for reference)]" | |
2222 | 236 if test $# -gt 0; then |
797 | 237 case "$1" in |
238 -s) | |
801 | 239 shift |
2222 | 240 if test $# -gt 0; then |
797 | 241 SUBJECT="$1" |
801 | 242 shift |
797 | 243 else |
244 echo "usage: octave-bug [-s subject]" | |
245 exit 1 | |
246 fi | |
247 ;; | |
248 esac | |
249 fi | |
250 | |
251 cat > $TEMP << EOF | |
252 To: $BUGADDR | |
3082 | 253 EOF |
254 if test -n "$USER"; then | |
255 cat >> $TEMP << EOF | |
256 Cc: $USER | |
257 EOF | |
258 fi | |
259 cat >> $TEMP << EOF | |
797 | 260 Subject: $SUBJECT |
851 | 261 -------- |
797 | 262 Bug report for Octave $VERSION configured for $MACHINE |
263 | |
264 Description: | |
265 ----------- | |
266 | |
267 * Please replace this item with a detailed description of the | |
268 problem. Suggestions or general comments are also welcome. | |
269 | |
270 Repeat-By: | |
271 --------- | |
272 | |
273 * Please replace this item with a description of the sequence of | |
274 events that causes the problem to occur. | |
275 | |
276 Fix: | |
277 --- | |
278 | |
279 * If possible, replace this item with a description of how to | |
280 fix the problem (if you don't have a fix for the problem, don't | |
281 include this section, but please do submit your report anyway). | |
282 | |
801 | 283 |
284 | |
285 Configuration (please do not edit this section): | |
286 ----------------------------------------------- | |
287 | |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
288 uname output: $UN |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
289 configure opts: $config_opts |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
290 SED: $SED |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
291 Fortran compiler: $F77 |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
292 FFLAGS: $FFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
293 FLIBS: $FLIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
294 CPPFLAGS: $CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
295 INCFLAGS: $INCFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
296 C compiler: $CC_AND_VERSION |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
297 CFLAGS: $CFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
298 CPICFLAG: $CPICFLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
299 C++ compiler: $CXX_AND_VERSION |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
300 CXXFLAGS: $CXXFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
301 CXXPICFLAG: $CXXPICFLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
302 LD_CXX: $LD_CXX |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
303 LDFLAGS: $LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
304 LIBFLAGS: $LIBFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
305 RLD_FLAG: $RLD_FLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
306 LEXLIB: $LEXLIB |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
307 LIBGLOB: $LIBGLOB |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
308 LIBS: $LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
309 AMD_CPPFLAGS: $AMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
310 AMD_LDFLAGS: $AMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
311 AMD_LIBS: $AMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
312 ARPACK_LIBS: $ARPACK_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
313 BLAS_LIBS: $BLAS_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
314 CAMD_CPPFLAGS: $CAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
315 CAMD_LDFLAGS: $CAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
316 CAMD_LIBS: $CAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
317 CARBON_LIBS: $CARBON_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
318 CCOLAMD_CPPFLAGS: $CCOLAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
319 CCOLAMD_LDFLAGS: $CCOLAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
320 CCOLAMD_LIBS: $CCOLAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
321 CHOLMOD_CPPFLAGS: $CHOLMOD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
322 CHOLMOD_LDFLAGS: $CHOLMOD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
323 CHOLMOD_LIBS: $CHOLMOD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
324 COLAMD_CPPFLAGS: $COLAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
325 COLAMD_LDFLAGS: $COLAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
326 COLAMD_LIBS: $COLAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
327 CURL_CPPFLAGS: $CURL_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
328 CURL_LDFLAGS: $CURL_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
329 CURL_LIBS: $CURL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
330 CXSPARSE_CPPFLAGS: $CXSPARSE_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
331 CXSPARSE_LDFLAGS: $CXSPARSE_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
332 CXSPARSE_LIBS: $CXSPARSE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
333 DL_LIBS: $DL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
334 FFTW3_CPPFLAGS: $FFTW3_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
335 FFTW3_LDFLAGS: $FFTW3_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
336 FFTW3_LIBS: $FFTW3_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
337 FFTW3F_CPPFLAGS: $FFTW3F_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
338 FFTW3F_LDFLAGS: $FFTW3F_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
339 FFTW3F_LIBS: $FFTW3F_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
340 GRAPHICS_LIBS: $GRAPHICS_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
341 GLPK_CPPFLAGS: $GLPK_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
342 GLPK_LDFLAGS: $GLPK_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
343 GLPK_LIBS: $GLPK_LIBS |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
344 HDF5_CPPFLAGS: $HDF5_CPPFLAGS |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
345 HDF5_LDFLAGS: $HDF5_LDFLAGS |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
346 HDF5_LIBS: $HDF5_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
347 OPENGL_LIBS: $OPENGL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
348 PTHREAD_CFLAGS: $PTHREAD_CFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
349 PTHREAD_LIBS: $PTHREAD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
350 QHULL_CPPFLAGS: $QHULL_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
351 QHULL_LDFLAGS: $QHULL_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
352 QHULL_LIBS: $QHULL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
353 QRUPDATE_LIBS: $QRUPDATE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
354 READLINE_LIBS: $READLINE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
355 REGEX_LIBS: $REGEX_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
356 TERM_LIBS: $TERM_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
357 UMFPACK_LIBS: $UMFPACK_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
358 X11_INCFLAGS: $X11_INCFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
359 X11_LIBS: $X11_LIBS |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
360 Z_CPPFLAGS: $Z_CPPFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
361 Z_LDFLAGS: $Z_LDFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
362 Z_LIBS: $Z_LIBS |
801 | 363 DEFS: |
364 | |
797 | 365 EOF |
366 | |
2222 | 367 if $HAVE_FMT; then |
4084 | 368 echo $DEFS | fmt | $SED 's/^/ /' >> $TEMP |
801 | 369 else |
370 echo $DEFS >> $TEMP | |
371 fi | |
372 | |
2222 | 373 if test $# -gt 0; then |
374 if test -f "$1"; then | |
801 | 375 cat >> $TEMP << EOF |
376 | |
377 User-preferences (please do not edit this section): | |
378 -------------------------------------------------- | |
379 | |
380 EOF | |
381 cat $1 >> $TEMP | |
382 fi | |
383 fi | |
384 | |
797 | 385 chmod u+w $TEMP |
386 cp $TEMP $TEMP.x | |
387 | |
388 status=0 | |
389 | |
2564 | 390 editing=true |
391 | |
392 while $editing; do | |
393 if $EDITOR $TEMP; then | |
394 while $editing; do | |
395 echo $echo_n "(a)bort, (e)dit, (l)ist, (s)end? $echo_c" | |
396 read ans | |
397 case "$ans" in | |
398 a* | A*) | |
399 status=1 | |
400 editing=false | |
401 ;; | |
402 e* | E*) | |
403 break; | |
404 ;; | |
405 l* | L*) | |
406 $PAGER $TEMP | |
407 ;; | |
408 s* | S*) | |
409 editing=false | |
410 ;; | |
411 esac | |
412 done | |
413 else | |
414 echo "problems with edit -- no bug report submitted" | |
415 status=1 | |
416 editing=false | |
417 fi | |
418 done | |
419 | |
420 if test $status -eq 0; then | |
2222 | 421 if cmp -s $TEMP $TEMP.x; then |
797 | 422 echo "file not changed -- no bug report submitted" |
423 status=1 | |
2031 | 424 elif test `wc $TEMP | awk '{print $1}'` -eq 0; then |
425 echo "empty bug report file -- not submitted" | |
426 status=1 | |
797 | 427 else |
851 | 428 |
429 # Try to extract the recipient address, in case the To: line in the | |
964 | 430 # message template has been changed. Also get cc: lines. |
851 | 431 |
4084 | 432 TO_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Tt][Oo]://p'` |
433 CC_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Cc][Cc]://p'` | |
964 | 434 |
2222 | 435 if test -z "$TO_ADDR"; then |
851 | 436 echo "no valid \`To:' field found in header -- using $BUGADDR instead" |
437 else | |
964 | 438 BUGADDR="$TO_ADDR" |
851 | 439 fi |
440 | |
964 | 441 BUGADDR="$BUGADDR $CC_ADDR" |
442 | |
4084 | 443 TMP_SUB=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^Subject://p'` |
2564 | 444 |
445 if test -n "$TMP_SUB"; then | |
446 SUBJECT="$TMP_SUB" | |
447 fi | |
448 | |
851 | 449 # Delete the `--------' separator in the message. |
450 | |
1066 | 451 # Don't pretty-print this. Odd whitespace kills Ultrix AWK! |
452 | |
453 awk 'BEGIN{in_header=1;} /^--------[ \t]*$/ { | |
454 if (in_header) { in_header=0; print ""; next; } | |
455 } { print $0; }' $TEMP > $TEMP.x | |
851 | 456 |
457 # Now try to mail it. | |
458 | |
7171 | 459 # indicate that we have not yet sent email successfully |
460 status=11 | |
461 | |
1066 | 462 if test $status -ne 0; then |
7171 | 463 ( mailx -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
1066 | 464 status=$? |
465 if test $status -ne 0; then | |
7171 | 466 ( Mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
467 status=$? | |
468 if test $status -ne 0; then | |
469 ( /usr/ucb/mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
470 status=$? | |
471 # make /bin/mail our last resort -- it ignores the subject line | |
472 if test $status -ne 0; then | |
473 ( /bin/mail $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
474 status=$? | |
475 if test $status -ne 0; then | |
476 echo "unable to send mail..." | |
477 fi | |
478 fi | |
479 fi | |
1066 | 480 fi |
481 fi | |
797 | 482 fi |
2564 | 483 fi |
484 | |
485 if test $status -ne 0; then | |
3082 | 486 dead_bug_file=$HOME/dead-octave-bug |
487 looking_for_file=true; | |
488 n=1 | |
489 while $looking_for_file; do | |
490 if test -f "$dead_bug_file-$n"; then | |
491 n=`expr $n + 1` | |
492 else | |
493 looking_for_file=false | |
494 dead_bug_file=$dead_bug_file-$n | |
495 fi | |
496 done | |
497 echo "saving message in $dead_bug_file"; | |
498 cat $TEMP >> $dead_bug_file; | |
2564 | 499 exit 1 |
797 | 500 else |
2564 | 501 echo "bug report sent to: $TO_ADDR" |
502 echo " cc to: $CC_ADDR" | |
797 | 503 fi |
504 | |
505 exit $status |