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