File: configure.generic

package info (click to toggle)
ftnchek 2.11.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,392 kB
  • ctags: 2,790
  • sloc: ansic: 21,570; fortran: 2,921; yacc: 2,794; sh: 1,623; makefile: 693; lisp: 264; awk: 163
file content (70 lines) | stat: -rwxr-xr-x 2,122 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
#
# Simple configure script to create makefile.generic from Makefile.in
# for the ftnchek distribution, so users without a real Unix system
# can have a generic makefile to edit for their needs.  It is run
# during the creation of the distribution, not by installer.
#
# It just substitutes pathless version of all the system programs,
# and the most commonly used values of options, into Makefile.in.
# This script only needs to be changed when configure.in has new
# substitutions.
#
# Also creates generic versions of config.h and dc2linc
#
#  R. Moniot, 2 May 1996

Subst(){
	sed -e 's%@prefix@%/usr/local%' \
	    -e 's%@exec_prefix@%${prefix}%' \
	    -e 's%@bindir@%${exec_prefix}/bin%' \
	    -e 's%@mandir@%${prefix}/man%' \
	    -e 's%@libdir@%${exec_prefix}/lib%' \
	    -e 's%@sgimansubdir@%/manl%' \
	    -e 's%@EXE@%%' \
	    -e 's%@CMD@%%' \
	    -e 's%@YACC@%bison -y%' \
	    -e 's%@AWK@%gawk%' \
	    -e 's%@NROFF@%nroff%' \
	    -e 's%@MANtoPS@%./man2ps%' \
	    -e 's%@STRIP@%strip%' \
	    -e 's%@COL@%col -bx%' \
	    -e 's%@SED@%sed%' \
	    -e 's%@CC@%cc%' \
	    -e 's%@CFLAGS@%-DUNIX -O $(OPTIONS)%' \
	    -e 's%@LDFLAGS@%%' \
	    -e 's%@INSTALL_MAN@%install-man%' \
	    -e 's%@HAS_NROFF@%true%' \
	    -e 's%@CPPFLAGS@%%' \
	    -e 's%@CHMOD@%chmod%' \
	    -e 's%@CMP@%cmp%' \
	    -e 's%@CP@%cp%' \
	    -e 's%@DIFF@%diff%' \
	    -e 's%@EQN@%eqn%' \
	    -e 's%@GREP@%grep%' \
	    -e 's%@lispdir@%${prefix}/lib/emacs/site-lisp%' \
	    -e 's%@MANtoHTML@%rman -f HTML%' \
	    -e 's%@MKDIR@%mkdir%' \
	    -e 's%@MV@%mv%' \
	    -e 's%@PACK@%pack%' \
	    -e 's%@PATCH@%patch%' \
	    -e 's%@PWD_PROG@%pwd%' \
	    -e 's%@RM@%rm -f%' \
	    -e 's%@RMDIR@%rmdir%' \
	    -e 's%@SH@%sh%' \
	    -e 's%@SOELIM@%soelim%' \
	    -e 's%@TBL@%tbl%' \
	    -e 's%@TAR@%tar%' \
	    -e 's%@ZIP@%zip%' \
	    -e 's%@SIZEOF_SHORT@%2%' \
	    -e 's%@SIZEOF_INT@%4%' \
	    -e 's%@SIZEOF_LONG@%4%' \
	    -e 's%@HAVE_MEMSET@%1%' \
	    -e 's%@HAVE_BZERO@%0%' \
	    -e 's%@CPP@%/lib/cpp%' \
		$1
}

Subst Makefile.in > makefile.generic
Subst config.h.in > config.h
Subst dcl2inc.in > dcl2inc