860
|
1 # @configure_input@ |
5
|
2 # |
|
3 # Common configuration rules for all of octave's Makefiles. |
|
4 # |
|
5 # John W. Eaton |
1450
|
6 # jwe@bevo.che.wisc.edu |
|
7 # University of Wisconsin-Madison |
5
|
8 # Department of Chemical Engineering |
1450
|
9 |
5
|
10 SHELL = /bin/sh |
|
11 |
3029
|
12 # A shell command to extract the version number from version.h. |
|
13 getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
|
14 |
|
15 # Look for version.h to get version information. |
|
16 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h |
|
17 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) |
|
18 version := $(shell $(getversion) $(version_file)) |
|
19 |
5
|
20 #### Start of system configuration section. #### |
|
21 |
2577
|
22 EXE = @EXE@ |
|
23 |
5
|
24 LEX = @LEX@ |
|
25 LFLAGS = @LFLAGS@ |
|
26 LEXLIB = @LEXLIB@ |
|
27 |
|
28 YACC = @YACC@ |
|
29 YFLAGS = -dv |
|
30 |
3675
|
31 GPERF = @GPERF@ |
|
32 |
1462
|
33 AR = @AR@ |
|
34 ARFLAGS = @ARFLAGS@ |
|
35 |
3775
|
36 TEMPLATE_AR = @TEMPLATE_AR@ |
|
37 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ |
|
38 |
5
|
39 RANLIB = @RANLIB@ |
|
40 |
1722
|
41 LN_S = @LN_S@ |
|
42 |
5
|
43 RUNTEST = @RUNTEST@ |
|
44 |
2518
|
45 TEXI2DVI = $(top_srcdir)/texi2dvi |
|
46 |
5
|
47 DEFAULT_PAGER = @DEFAULT_PAGER@ |
|
48 |
1679
|
49 WITH_DL = @WITH_DL@ |
|
50 WITH_SHL = @WITH_SHL@ |
|
51 |
|
52 WITH_DYNAMIC_LINKING = @WITH_DYNAMIC_LINKING@ |
702
|
53 |
1679
|
54 OCTAVE_LITE = @OCTAVE_LITE@ |
702
|
55 |
3034
|
56 STATIC_LIBS = @STATIC_LIBS@ |
|
57 |
1679
|
58 SHARED_LIBS = @SHARED_LIBS@ |
|
59 SHLEXT = @SHLEXT@ |
3029
|
60 SHLEXT_VER = $(SHLEXT).$(version) |
|
61 |
|
62 LIBEXT = a |
1667
|
63 |
5
|
64 # Fortran to C translator and associated flags. |
|
65 |
|
66 F2C = @F2C@ |
|
67 F2CFLAGS = @F2CFLAGS@ |
|
68 |
|
69 # Fortran compiler flags. |
|
70 |
1163
|
71 FC = @FC@ |
798
|
72 F77 = @F77@ |
5
|
73 FFLAGS = @FFLAGS@ |
1832
|
74 FPICFLAG = @FPICFLAG@ |
2566
|
75 FORTRAN_MAIN_FLAG = @FORTRAN_MAIN_FLAG@ |
2610
|
76 ALL_FFLAGS = $(FFLAGS) |
5
|
77 |
|
78 # cc and associated flags. |
|
79 |
2064
|
80 DLFCN_INCFLAGS = @DLFCN_INCFLAGS@ |
3215
|
81 GLOB_INCFLAGS = @GLOB_INCFLAGS@ |
2064
|
82 |
236
|
83 # Clean up INCFLAGS a bit if we are not compiling in a separate |
|
84 # directory. |
|
85 ifeq ($(srcdir),.) |
2546
|
86 TMP_IF_1 = -I. |
236
|
87 else |
2546
|
88 TMP_IF_1 = -I. -I$(srcdir) |
236
|
89 endif |
404
|
90 ifeq ($(TOPDIR),$(top_srcdir)) |
1832
|
91 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
92 -I$(TOPDIR)/libcruft/misc |
236
|
93 else |
507
|
94 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
95 -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \ |
2546
|
96 -I$(top_srcdir)/liboctave -I$(top_srcdir)/src \ |
3156
|
97 -I$(top_srcdir)/libcruft/misc |
236
|
98 endif |
3156
|
99 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS) |
236
|
100 |
5
|
101 LIBFLAGS = -L$(TOPDIR) |
236
|
102 |
5
|
103 DEFS = @DEFS@ |
|
104 |
2032
|
105 UGLY_DEFS = @UGLY_DEFS@ |
|
106 |
5
|
107 CC = @CC@ |
1891
|
108 CC_VERSION = @CC_VERSION@ |
5
|
109 CFLAGS = @CFLAGS@ |
1832
|
110 CPICFLAG = @CPICFLAG@ |
3126
|
111 XTRA_CFLAGS = @XTRA_CFLAGS@ |
|
112 ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
|
113 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
798
|
114 |
3775
|
115 DEPEND_FLAGS = @DEPEND_FLAGS@ |
|
116 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ |
|
117 |
198
|
118 CXX = @CXX@ |
1891
|
119 CXX_VERSION = @CXX_VERSION@ |
518
|
120 CXXCPP = @CXXCPP@ |
198
|
121 CXXFLAGS = @CXXFLAGS@ |
1832
|
122 CXXPICFLAG = @CXXPICFLAG@ |
3126
|
123 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
|
124 ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
125 UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
126 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
5
|
127 |
858
|
128 CPPFLAGS = @CPPFLAGS@ |
|
129 |
3705
|
130 LD_CXX = @LD_CXX@ |
5
|
131 LDFLAGS = @LDFLAGS@ |
708
|
132 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3126
|
133 ALL_LDFLAGS = $(LIBFLAGS) $(FORTRAN_MAIN_FLAG) \ |
2592
|
134 $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5
|
135 |
2676
|
136 SH_LD = @SH_LD@ |
|
137 SH_LDFLAGS = @SH_LDFLAGS@ |
|
138 |
3036
|
139 SONAME_FLAGS = @SONAME_FLAGS@ |
|
140 |
3233
|
141 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
|
142 |
2674
|
143 RLD_FLAG = @RLD_FLAG@ |
|
144 |
5
|
145 FLIBS = @FLIBS@ |
708
|
146 |
2930
|
147 LIBDLFCN = @LIBDLFCN@ |
3215
|
148 LIBGLOB = @LIBGLOB@ |
2147
|
149 LIBPLPLOT = @LIBPLPLOT@ |
3156
|
150 LIBKPATHSEA = @LIBKPATHSEA@ |
|
151 LIBOCTINTERP = @LIBOCTINTERP@ |
|
152 LIBOCTAVE = @LIBOCTAVE@ |
|
153 LIBCRUFT = @LIBCRUFT@ |
3726
|
154 |
|
155 BLAS_LIBS = @BLAS_LIBS@ |
3827
|
156 FFTW_LIBS = @FFTW_LIBS@ |
3726
|
157 LIBS = @LIBS@ |
5
|
158 |
2155
|
159 # The arguments passed to configure. |
2156
|
160 config_opts = @config_opts@ |
2155
|
161 |
666
|
162 # ==================== Where To Install Things ==================== |
5
|
163 |
666
|
164 # The default location for installation. Everything is placed in |
|
165 # subdirectories of this directory. The default values for many of |
|
166 # the variables below are expressed in terms of this one, so you may |
|
167 # not need to change them. This defaults to /usr/local. |
|
168 prefix = @prefix@ |
5
|
169 |
666
|
170 # Like `prefix', but used for architecture-specific files. |
|
171 exec_prefix = @exec_prefix@ |
|
172 |
|
173 # Where to install Octave and other binaries that people will want to |
|
174 # run directly. |
|
175 bindir = @bindir@ |
5
|
176 |
666
|
177 # Where to install architecture-independent data files. ${fcnfiledir} |
|
178 # and ${localfcnfiledir} are subdirectories of this. |
|
179 datadir = @datadir@ |
5
|
180 |
3141
|
181 libdir = @libdir@ |
|
182 |
666
|
183 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141
|
184 # and other architecture-dependent data. |
|
185 octlibdir = @octlibdir@ |
5
|
186 |
1720
|
187 # Where to install and expect executable programs to be run by Octave |
|
188 # rather than directly by users. |
|
189 libexecdir = @libexecdir@ |
|
190 |
2141
|
191 # The prefix for Octave's include file directory. The default is |
|
192 # ${prefix}/include |
2223
|
193 includedir = @includedir@ |
2141
|
194 |
666
|
195 # Where to install Octave's man pages, and what extension they should |
|
196 # have. The default is ${prefix}/man/man1 |
|
197 mandir = @mandir@ |
2223
|
198 man1dir = @man1dir@ |
|
199 man1ext = @man1ext@ |
5
|
200 |
666
|
201 # Where to install and expect the info files describing Octave.. |
|
202 infodir = @infodir@ |
|
203 |
2512
|
204 # The fill path to the default info file. |
|
205 infofile = @infofile@ |
|
206 |
666
|
207 # ==================== Octave-specific directories ==================== |
|
208 |
2993
|
209 # These variables hold the values specific to Octave. They are |
666
|
210 # based on the values of the standard Make variables above. |
|
211 |
3597
|
212 # Where to install Octave's include files (they will actually be |
|
213 # installed in a subdirectory called octave). The default is |
2993
|
214 # ${includedir}/octave-${version} |
|
215 octincludedir = @octincludedir@ |
|
216 |
666
|
217 # Where to install the function file distributed with |
|
218 # Octave. This includes the Octave version, so that the |
|
219 # function files for different versions of Octave will install |
|
220 # themselves in separate directories. |
|
221 fcnfiledir = @fcnfiledir@ |
|
222 |
|
223 # Directories Octave should search for function files specific |
|
224 # to this site (i.e. customizations), before consulting |
|
225 # ${fcnfiledir}. This should be a colon-separated list of |
|
226 # directories. |
827
|
227 localfcnfiledir = @localfcnfiledir@ |
3597
|
228 localverfcnfiledir = @localverfcnfiledir@ |
666
|
229 localfcnfilepath = @localfcnfilepath@ |
5
|
230 |
666
|
231 # Where to put executables to be run by Octave rather than |
|
232 # the user. This path usually includes the Octave version |
|
233 # and configuration name, so that multiple configurations |
|
234 # for multiple versions of Octave may be installed at once. |
|
235 archlibdir = @archlibdir@ |
|
236 |
2439
|
237 # Where to put executables to be run by Octave rather than by the |
|
238 # user that are specific to this site. |
|
239 localarchlibdir = @localarchlibdir@ |
3597
|
240 localverarchlibdir = @localverarchlibdir@ |
2439
|
241 |
666
|
242 # Where to put object files that will by dynamically loaded. |
|
243 # This path usually includes the Octave version and configuration |
|
244 # name, so that multiple configurations for multiple versions of |
|
245 # Octave may be installed at once. |
|
246 octfiledir = @octfiledir@ |
5
|
247 |
666
|
248 # Directories Octave should search for object files that will be |
|
249 # dynamically loaded and that are specific to this site |
|
250 # (i.e. customizations), before consulting ${octfiledir}. This should |
|
251 # be a colon-separated list of directories. |
827
|
252 localoctfiledir = @localoctfiledir@ |
3597
|
253 localveroctfiledir = @localveroctfiledir@ |
666
|
254 localoctfilepath = @localoctfilepath@ |
|
255 |
|
256 # Where Octave will search to find its function files. Before |
|
257 # changing this, check to see if your purpose wouldn't |
|
258 # better be served by changing localfcnfilepath. This |
|
259 # should be a colon-separated list of directories. |
|
260 fcnfilepath = @fcnfilepath@ |
5
|
261 |
685
|
262 # Where Octave will search to find image files.es. |
827
|
263 imagedir = @imagedir@ |
685
|
264 imagepath = @imagepath@ |
|
265 |
5
|
266 # The type of computer we are running on. |
3136
|
267 canonical_host_type = @canonical_host_type@ |
5
|
268 |
3591
|
269 # The -I flags to use for the mkoctfile script. |
3597
|
270 MKOCTFILE_INCFLAGS = \ |
|
271 -I$(octincludedir) -I$(octincludedir)/octave -I$(includedir) |
3591
|
272 |
5
|
273 # The following pattern rules and the substitution functions require |
|
274 # GNU make. If you don't have it, get it! |
|
275 |
1679
|
276 # Rules for making object files from Fortran source. |
994
|
277 # |
|
278 # If we are using f2c there will be a command for the `%.c : %.f' |
|
279 # pattern and no command for the `%.o : %.f' pattern, so that make |
|
280 # will not invoke the fortran compiler by mistake. |
|
281 # |
|
282 # If we are not using f2c, it should be ok to have an empty rule for |
|
283 # the pattern `%.c : %.f', but we don't want to replace make's default |
|
284 # rule for making object from Fortran source files, so there should be |
|
285 # no pattern or command for that. |
5
|
286 |
1679
|
287 @f77_rules_frag@ |
994
|
288 |
1668
|
289 # How to make .o files: |
5
|
290 |
1984
|
291 %.o : %.c |
3615
|
292 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5
|
293 |
1984
|
294 %.o : %.cc |
3615
|
295 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308
|
296 |
1984
|
297 pic/%.o : %.c |
|
298 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ |
|
299 |
|
300 pic/%.o : %.cc |
|
301 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ |
|
302 |
308
|
303 # Here is a rule for generating dependencies for .cc files: |
|
304 |
1984
|
305 %.d : %.cc |
518
|
306 @echo making $@ from $< |
|
307 @rm -f $@ |
3775
|
308 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
|
309 sed \ |
|
310 $(DEPEND_EXTRA_SED_PATTERN) \ |
|
311 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ |
3769
|
312 -e 's,$*\.o,pic/& & $@,g' > $@.tmp |
518
|
313 @mv $@.tmp $@ |
308
|
314 |
|
315 # And one for .c files.too: |
|
316 |
1984
|
317 %.d : %.c |
518
|
318 @echo making $@ from $< |
|
319 @rm -f $@ |
3775
|
320 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
|
321 sed \ |
|
322 $(DEPEND_EXTRA_SED_PATTERN) \ |
|
323 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ |
3769
|
324 -e 's,$*\.o,pic/& & $@,g' > $@.tmp |
518
|
325 @mv $@.tmp $@ |
1166
|
326 |
1685
|
327 define do-subdir-for-command |
|
328 echo making $@ in $d; cd $d; $(MAKE) $@; cd ..; |
1166
|
329 endef |
1685
|
330 |
|
331 define subdir-for-command |
|
332 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) |
|
333 endef |
2157
|
334 |
2862
|
335 # Yes, the second sed command near the end is needed, to avoid limits |
|
336 # in command lengths for some versions of sed. UGLY_DEFS is often |
|
337 # quite large, so it makes sense to split this command there. |
|
338 |
2157
|
339 define do-subst-config-vals |
2223
|
340 echo "making $@ from $<" |
2439
|
341 sed < $< \ |
3584
|
342 -e "s;%OCTAVE_CONF_ALL_CFLAGS%;\"${ALL_CFLAGS}\";" \ |
|
343 -e "s;%OCTAVE_CONF_ALL_CXXFLAGS%;\"${ALL_CXXFLAGS}\";" \ |
|
344 -e "s;%OCTAVE_CONF_ALL_FFLAGS%;\"${ALL_FFLAGS}\";" \ |
|
345 -e "s;%OCTAVE_CONF_ALL_LDFLAGS%;\"${ALL_LDFLAGS}\";" \ |
|
346 -e "s;%OCTAVE_CONF_AR%;\"${AR}\";" \ |
|
347 -e "s;%OCTAVE_CONF_ARFLAGS%;\"${ARFLAGS}\";" \ |
3726
|
348 -e "s;%OCTAVE_CONF_BLAS_LIBS%;\"${BLAS_LIBS}\";" \ |
3768
|
349 -e "s;%OCTAVE_CONF_CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \ |
3584
|
350 -e "s;%OCTAVE_CONF_CC%;\"${CC}\";" \ |
|
351 -e "s;%OCTAVE_CONF_CC_VERSION%;\"${CC_VERSION}\";" \ |
|
352 -e "s;%OCTAVE_CONF_CFLAGS%;\"${CFLAGS}\";" \ |
|
353 -e "s;%OCTAVE_CONF_CPICFLAG%;\"${CPICFLAG}\";" \ |
|
354 -e "s;%OCTAVE_CONF_CPPFLAGS%;\"${CPPFLAGS}\";" \ |
|
355 -e "s;%OCTAVE_CONF_CXX%;\"${CXX}\";" \ |
|
356 -e "s;%OCTAVE_CONF_CXXCPP%;\"${CXXCPP}\";" \ |
|
357 -e "s;%OCTAVE_CONF_CXXFLAGS%;\"${CXXFLAGS}\";" \ |
|
358 -e "s;%OCTAVE_CONF_CXXPICFLAG%;\"${CXXPICFLAG}\";" \ |
|
359 -e "s;%OCTAVE_CONF_CXX_VERSION%;\"${CXX_VERSION}\";" \ |
|
360 -e "s;%OCTAVE_CONF_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
|
361 -e "s;%OCTAVE_CONF_DLFCN_INCFLAGS%;\"${DLFCN_INCFLAGS}\";" \ |
|
362 -e "s;%OCTAVE_CONF_EXE%;\"${EXE}\";" \ |
|
363 -e "s;%OCTAVE_CONF_F2C%;\"${F2C}\";" \ |
|
364 -e "s;%OCTAVE_CONF_F2CFLAGS%;\"${F2CFLAGS}\";" \ |
|
365 -e "s;%OCTAVE_CONF_F77%;\"${F77}\";" \ |
|
366 -e "s;%OCTAVE_CONF_FC%;\"${FC}\";" \ |
|
367 -e "s;%OCTAVE_CONF_FFLAGS%;\"${FFLAGS}\";" \ |
|
368 -e "s;%OCTAVE_CONF_FLIBS%;\"${FLIBS}\";" \ |
|
369 -e "s;%OCTAVE_CONF_FORTRAN_MAIN_FLAG%;\"${FORTRAN_MAIN_FLAG}\";" \ |
|
370 -e "s;%OCTAVE_CONF_FPICFLAG%;\"${FPICFLAG}\";" \ |
|
371 -e "s;%OCTAVE_CONF_GLOB_INCFLAGS%;\"${GLOB_INCFLAGS}\";" \ |
|
372 -e "s;%OCTAVE_CONF_INCFLAGS%;\"${INCFLAGS}\";" \ |
|
373 -e "s;%OCTAVE_CONF_LDFLAGS%;\"${LDFLAGS}\";" \ |
|
374 -e "s;%OCTAVE_CONF_LD_STATIC_FLAG%;\"${LD_STATIC_FLAG}\";" \ |
|
375 -e "s;%OCTAVE_CONF_LEX%;\"${LEX}\";" \ |
|
376 -e "s;%OCTAVE_CONF_LEXLIB%;\"${LEXLIB}\";" \ |
|
377 -e "s;%OCTAVE_CONF_LFLAGS%;\"${LFLAGS}\";" \ |
|
378 -e "s;%OCTAVE_CONF_LIBCRUFT%;\"${LIBCRUFT}\";" \ |
|
379 -e "s;%OCTAVE_CONF_LIBDLFCN%;\"${LIBDLFCN}\";" \ |
|
380 -e "s;%OCTAVE_CONF_LIBEXT%;\"${LIBEXT}\";" \ |
|
381 -e "s;%OCTAVE_CONF_LIBFLAGS%;\"${LIBFLAGS}\";" \ |
|
382 -e "s;%OCTAVE_CONF_LIBGLOB%;\"${LIBGLOB}\";" \ |
|
383 -e "s;%OCTAVE_CONF_LIBKPATHSEA%;\"${LIBKPATHSEA}\";" \ |
|
384 -e "s;%OCTAVE_CONF_LIBOCTAVE%;\"${LIBOCTAVE}\";" \ |
|
385 -e "s;%OCTAVE_CONF_LIBOCTINTERP%;\"${LIBOCTINTERP}\";" \ |
|
386 -e "s;%OCTAVE_CONF_LIBPLPLOT%;\"${LIBPLPLOT}\";" \ |
|
387 -e "s;%OCTAVE_CONF_LIBS%;\"${LIBS}\";" \ |
|
388 -e "s;%OCTAVE_CONF_LN_S%;\"${LN_S}\";" \ |
3591
|
389 -e "s;%OCTAVE_CONF_MKOCTFILE_INCFLAGS%;\"${MKOCTFILE_INCFLAGS}\";" \ |
3584
|
390 -e "s;%OCTAVE_CONF_OCTAVE_LITE%;\"${OCTAVE_LITE}\";" \ |
|
391 -e "s;%OCTAVE_CONF_RANLIB%;\"${RANLIB}\";" \ |
|
392 -e "s;%OCTAVE_CONF_RDYNAMIC_FLAG%;\"${RDYNAMIC_FLAG}\";" \ |
|
393 -e "s;%OCTAVE_CONF_RLD_FLAG%;\"${RLD_FLAG}\";" \ |
|
394 -e "s;%OCTAVE_CONF_RUNTEST%;\"${RUNTEST}\";" \ |
|
395 -e "s;%OCTAVE_CONF_SHARED_LIBS%;\"${SHARED_LIBS}\";" \ |
|
396 -e "s;%OCTAVE_CONF_SHLEXT%;\"${SHLEXT}\";" \ |
|
397 -e "s;%OCTAVE_CONF_SHLEXT_VER%;\"${SHLEXT_VER}\";" \ |
|
398 -e "s;%OCTAVE_CONF_SH_LD%;\"${SH_LD}\";" \ |
|
399 -e "s;%OCTAVE_CONF_SH_LDFLAGS%;\"${SH_LDFLAGS}\";" \ |
|
400 -e "s;%OCTAVE_CONF_SONAME_FLAGS%;\"${SONAME_FLAGS}\";" \ |
|
401 -e "s;%OCTAVE_CONF_STATIC_LIBS%;\"${STATIC_LIBS}\";" \ |
|
402 -e "s;%OCTAVE_CONF_UGLY_DEFS%;\"${UGLY_DEFS}\";" \ |
|
403 -e "s;%OCTAVE_CONF_VERSION%;\"${version}\";" \ |
|
404 -e "s;%OCTAVE_CONF_WITH_DL%;\"${WITH_DL}\";" \ |
|
405 -e "s;%OCTAVE_CONF_WITH_DYNAMIC_LINKING%;\"${WITH_DYNAMIC_LINKING}\";" \ |
|
406 -e "s;%OCTAVE_CONF_WITH_SHL%;\"${WITH_SHL}\";" \ |
|
407 -e "s;%OCTAVE_CONF_XTRA_CFLAGS%;\"${XTRA_CFLAGS}\";" \ |
|
408 -e "s;%OCTAVE_CONF_XTRA_CXXFLAGS%;\"${XTRA_CXXFLAGS}\";" \ |
|
409 -e "s;%OCTAVE_CONF_YACC%;\"${YACC}\";" \ |
|
410 -e "s;%OCTAVE_CONF_YFLAGS%;\"${YFLAGS}\";" \ |
|
411 -e "s;%OCTAVE_CONF_config_opts%;\"${config_opts}\";" | \ |
|
412 sed -e "s;%OCTAVE_CONF_DEFS%;\"${UGLY_DEFS}\";" > $@.tmp |
2157
|
413 $(top_srcdir)/move-if-change $@.tmp $@ |
|
414 endef |
|
415 |
|
416 define do-subst-default-vals |
2223
|
417 echo "making $@ from $<" |
|
418 sed < $< > $@.tmp \ |
2862
|
419 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \ |
|
420 -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \ |
3584
|
421 -e "s;%OCTAVE_CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \ |
2157
|
422 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \ |
3584
|
423 -e "s;%OCTAVE_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
2862
|
424 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \ |
|
425 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \ |
|
426 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \ |
3584
|
427 -e "s;%OCTAVE_IMAGEDIR%;\"${imagedir}\";" \ |
2862
|
428 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \ |
3584
|
429 -e "s;%OCTAVE_INCLUDEDIR%;\"${includedir}\";" \ |
2157
|
430 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \ |
2512
|
431 -e "s;%OCTAVE_INFOFILE%;\"${infofile}\";" \ |
2862
|
432 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \ |
3584
|
433 -e "s;%OCTAVE_LIBEXECDIR%;\"${libexecdir}\";" \ |
2862
|
434 -e "s;%OCTAVE_LOCALARCHLIBDIR%;\"${localarchlibdir}\";" \ |
2157
|
435 -e "s;%OCTAVE_LOCALFCNFILEDIR%;\"${localfcnfiledir}\";" \ |
|
436 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \ |
3584
|
437 -e "s;%OCTAVE_LOCALOCTFILEDIR%;\"${localoctfiledir}\";" \ |
2862
|
438 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \ |
3597
|
439 -e "s;%OCTAVE_LOCALVERARCHLIBDIR%;\"${localverarchlibdir}\";" \ |
|
440 -e "s;%OCTAVE_LOCALVERFCNFILEDIR%;\"${localverfcnfiledir}\";" \ |
|
441 -e "s;%OCTAVE_LOCALVEROCTFILEDIR%;\"${localveroctfiledir}\";" \ |
3584
|
442 -e "s;%OCTAVE_MAN1DIR%;\"${man1dir}\";" \ |
|
443 -e "s;%OCTAVE_MAN1EXT%;\"${man1ext}\";" \ |
|
444 -e "s;%OCTAVE_MANDIR%;\"${mandir}\";" \ |
2157
|
445 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \ |
3584
|
446 -e "s;%OCTAVE_OCTINCLUDEDIR%;\"${octincludedir}\";" \ |
|
447 -e "s;%OCTAVE_OCTLIBDIR%;\"${octlibdir}\";" \ |
|
448 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" |
2157
|
449 $(top_srcdir)/move-if-change $@.tmp $@ |
|
450 endef |