Imported Upstream version 1.13
Didier Raboud
12 years ago
233 | 233 | (They will still go to stderr in "verbose" mode). |
234 | 234 | 20021109 duncan make "version 0" in the config file set the printer |
235 | 235 | type to NOPRINTER, and abort printing if this is not |
236 | subsequently set to a valid printer model.⏎ | |
236 | subsequently set to a valid printer model. | |
237 | 20091210 jrbeis fix getopt_long() usage for PowerPC | |
238 | Change the local file syslog.h to ppa_syslog.h to avoid | |
239 | any interference with the global syslog.h. | |
240 | 20091212 jrbeis Autotoolize the package, but do not change other code |
0 | # | |
1 | # Makefile for pnm2ppa | |
2 | # | |
3 | ||
4 | # paths to locations where the pnm2ppa binary, the configuration file, | |
5 | # and the man page should be installed. On some systems (like Solaris) | |
6 | # the install command requires the syntax BINDIR="-f /usr/local/bin". | |
7 | BINDIR="/usr/local/bin" | |
8 | CONFDIR="/etc" | |
9 | MANDIR="/usr/local/man/man1" | |
10 | ||
11 | #compiler and linker options: | |
12 | CC=gcc | |
13 | CFLAGS=-Wall -pedantic -O2 | |
14 | LDFLAGS=-lm | |
15 | ||
16 | INSTALL=install | |
17 | # Install under Linux and other versions with the -b (backup) option | |
18 | # (Comment out next line on systems (*BSD, Solaris..) without this option) | |
19 | INSTALL+= -b | |
20 | ||
21 | OBJS = pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o hash_ink.o gamma.o | |
22 | SRC = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c hash_ink.c gamma.c | |
23 | ||
24 | # The SysLog call may be absent or incompatible on some systems | |
25 | # (e.g., BeOS,..) or you may not wish to have this feature. | |
26 | # To remove support for writing to the System Log, uncomment the next line: | |
27 | #CFLAGS+= -D__NO_SYSLOG__ | |
28 | ||
29 | # Some systems (e.g. Solaris) may not support the LOG_PERROR option to | |
30 | # open_syslog(). (This copies syslog messages to stderr as well as to | |
31 | # the system log.) In that case, uncomment the next line: | |
32 | #CFLAGS+= -D__NO_LOG_PERROR__ | |
33 | ||
34 | # For debug builds, uncomment the next three lines to get debug messages: | |
35 | #CFLAGS+= -g -DDEBUG=1 | |
36 | #OBJS+= debug.o | |
37 | #SRC+= debug.c | |
38 | ||
39 | # For debugging with "Electric Fence" (if you have it): | |
40 | #LDFLAGS+=-lefence | |
41 | ||
42 | # On BeOS the LDFLAGS should not be used. | |
43 | # Uncomment the next line if you are compiling for BeOS: | |
44 | #LDFLAGS= | |
45 | ||
46 | # On Mac OS X 10.x, you need to uncomment the next CFLAGS and LDFLAGS lines. | |
47 | # You may also need to install libgnugetopt (there are precompiled | |
48 | # versions for Mac OS X available on the net, or it can be compiled | |
49 | # from source). Don't forget to rename the shared library from | |
50 | # "/usr/local/lib/libgnugetopt.a" to "/usr/local/lib/libgnugetopt.dylib". | |
51 | #CFLAGS=-Wall -no-cpp-precomp -traditional-cpp -pedantic -O2 | |
52 | #LDFLAGS=-L/usr/local/lib -lgnugetopt | |
53 | ||
54 | # If you have FreeBSD you need to uncomment the next LDFLAGS. | |
55 | # You may also need to install libgnugetopt from the ports collection. | |
56 | # (Also, make sure the getopt.h it supplies is appropriately installed.) | |
57 | #LDFLAGS+=-L/usr/local/lib -lgnugetopt | |
58 | ||
59 | # If you have Solaris you need to uncomment the next LDFLAG | |
60 | # You will also need to install a library with GNU getopt: | |
61 | # (e.g., libiberty which is available from http://sunfreeware.com) | |
62 | #LDFLAGS+=-L/usr/local/lib -liberty | |
63 | ||
64 | # Language selection for messages from pnm2ppa. Choose one only. | |
65 | LANG=EN | |
66 | #LANG=CZ | |
67 | #LANG=ES | |
68 | #LANG=FR | |
69 | #LANG=IT | |
70 | #LANG=NL | |
71 | ||
72 | #------------------------------------------------------------------ | |
73 | # Normal Users! | |
74 | # | |
75 | # Do not edit below this line! No user servicable parts below! | |
76 | #-------------------------------------------------------------------- | |
77 | INSTALLD=$(INSTALL) -d | |
78 | CFLAGS+=-DLANG_$(LANG) | |
79 | ||
80 | default: all | |
81 | ||
82 | profile: | |
83 | make "CFLAGS=-Wall -pedantic -O2 -g -pg -DNDEBUG" | |
84 | ||
85 | debug: | |
86 | make "CFLAGS=-Wall -pedantic -g -O2 -DDEBUG=1 -DLANG_EN" "LDFLAGS=-lm -lefence" "OBJS=$(DOBJS)" | |
87 | ||
88 | # the following have been left in for those with good memories | |
89 | ||
90 | 720: all | |
91 | @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer | |
92 | ||
93 | 820: all | |
94 | @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer | |
95 | ||
96 | 1000: all | |
97 | @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer | |
98 | ||
99 | all: pnm2ppa calibrate_ppa | |
100 | ||
101 | clean: | |
102 | rm -f *.o *~ calibrate_ppa pnm2ppa make_hash_ink gmon.out hash_ink.c | |
103 | ||
104 | ||
105 | install: pnm2ppa calibrate_ppa | |
106 | $(INSTALLD) $(BINDIR) | |
107 | $(INSTALLD) $(CONFDIR) | |
108 | $(INSTALLD) $(MANDIR) | |
109 | $(INSTALL) -m 755 pnm2ppa $(BINDIR) | |
110 | $(INSTALL) -m 644 docs/en/pnm2ppa.1 $(MANDIR) | |
111 | # development only - allows root to edit | |
112 | $(INSTALL) -m 644 pnm2ppa.conf $(CONFDIR) | |
113 | # calibration tool | |
114 | $(INSTALL) -m 755 calibrate_ppa $(BINDIR) | |
115 | # final production - much tighter | |
116 | # $(INSTALL) -m 444 pnm2ppa.conf $(CONFDIR) | |
117 | @@echo | |
118 | @@echo Now, edit /etc/pnm2ppa.conf to choose your printer | |
119 | ||
120 | uninstall: | |
121 | rm -f $(BINDIR)/pnm2ppa | |
122 | rm -f $(BINDIR)/calibrate_ppa | |
123 | rm -f $(MANDIR)/pnm2ppa.1 | |
124 | rm -f $(CONFDIR)/pnm2ppa.conf | |
125 | ||
126 | pnm2ppa: $(OBJS) | |
127 | $(CC) $(LDFLAGS) $(CFLAGS) -o pnm2ppa $(OBJS) | |
128 | ||
129 | calibrate_ppa: calibrate_ppa.o pnmtools.o gamma.o | |
130 | $(CC) $(LDFLAGS) $(CFLAGS) -o calibrate_ppa calibrate_ppa.o pnmtools.o gamma.o | |
131 | ||
132 | calibrate_ppa.o: calibrate_ppa.c global.h image.h defaults.h pnmtools.h | |
133 | $(CC) $(CFLAGS) -c calibrate_ppa.c | |
134 | ||
135 | pnmtools.o: pnmtools.c pnmtools.h | |
136 | $(CC) $(CFLAGS) -c pnmtools.c | |
137 | ||
138 | cutswath.o: cutswath.c debug.h ppa.h image.h global.h syslog.h | |
139 | $(CC) $(CFLAGS) -c cutswath.c | |
140 | ||
141 | image.o: image.c image.h palette.h debug.h fscoeff.h global.h gamma.h syslog.h | |
142 | $(CC) $(CFLAGS) -c image.c | |
143 | ||
144 | gamma.o: gamma.c image.h global.h gamma.h | |
145 | $(CC) $(CFLAGS) -c gamma.c | |
146 | ||
147 | dither.o: dither.c dither.h image.h palette.h debug.h fscoeff.h global.h hash_ink.h | |
148 | $(CC) $(CFLAGS) -c dither.c | |
149 | ||
150 | pnm2ppa.o: pnm2ppa.c pnm2ppa.h image.h ppa.h debug.h global.h gamma.h syslog.h | |
151 | $(CC) $(CFLAGS) -c pnm2ppa.c | |
152 | ||
153 | ppa.o: ppa.c ppa.h debug.h global.h syslog.h | |
154 | $(CC) $(CFLAGS) -c ppa.c | |
155 | ||
156 | debug.o: debug.c debug.h global.h | |
157 | $(CC) $(CFLAGS) -c debug.c | |
158 | ||
159 | syslog.o: syslog.c syslog.h global.h | |
160 | $(CC) $(CFLAGS) -c syslog.c | |
161 | ||
162 | make_hash_ink: make_hash_ink.c palette.h hash_ink.h | |
163 | $(CC) $(CFLAGS) -o make_hash_ink make_hash_ink.c | |
164 | ||
165 | hash_ink.c: make_hash_ink | |
166 | ./make_hash_ink 4 3 > hash_ink.c | |
167 | ./make_hash_ink 1 5 >> hash_ink.c | |
168 | ||
169 | hash_ink.o: hash_ink.c hash_ink.c | |
170 | $(CC) $(CFLAGS) -c hash_ink.c | |
171 | ||
172 | # a default rule, in case new .c files pop in | |
173 | ||
174 | .c.o: $*.c ppa.h image.h enh-curve.h palette.h debug.h global.h | |
175 | $(CC) $(CFLAGS) -c $*.c | |
176 | ||
177 | distrib: clean | |
178 | cd .. && tar cf - pnm2ppa/ | gzip -9 > pnm2ppa.tar.gz | |
179 | sync | |
180 | ||
181 | ||
182 | ||
183 | ||
184 | ||
185 | ||
186 | ||
187 | ||
188 | ||
189 | ||
190 | ||
191 | ||
192 | ||
193 |
0 | # | |
1 | # What is to be built | |
2 | # | |
3 | bin_PROGRAMS = \ | |
4 | pnm2ppa \ | |
5 | calibrate_ppa | |
6 | ||
7 | # build the parse_vlink tool on demand only | |
8 | if BUILD_PARSE_VLINK | |
9 | SUBDIRS = ppa_protocol | |
10 | endif | |
11 | ||
12 | # | |
13 | # Where to find the config files at runtime | |
14 | # | |
15 | AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' | |
16 | ||
17 | # | |
18 | # Distribute these directories and files | |
19 | # | |
20 | EXTRA_DIST = \ | |
21 | Changelog \ | |
22 | README \ | |
23 | README.security \ | |
24 | pdq \ | |
25 | lpd \ | |
26 | sample_scripts \ | |
27 | stamp-h1 \ | |
28 | test.ps \ | |
29 | testpage-a4.ps \ | |
30 | testpage.ps \ | |
31 | testpages \ | |
32 | utils \ | |
33 | rhs-printfilters \ | |
34 | rpm \ | |
35 | docs \ | |
36 | make_hash_ink.c | |
37 | ||
38 | # | |
39 | # distribute and install the manpage | |
40 | # | |
41 | dist_man1_MANS = docs/en/pnm2ppa.1 | |
42 | ||
43 | MAINTAINERCLEANFILES = \ | |
44 | configure \ | |
45 | aclocal.m4 \ | |
46 | config.h.in \ | |
47 | Makefile.in | |
48 | ||
49 | # | |
50 | # distribute, but do not install | |
51 | # | |
52 | noinst_HEADERS = \ | |
53 | global.h \ | |
54 | image.h \ | |
55 | defaults.h \ | |
56 | pnmtools.h \ | |
57 | debug.h \ | |
58 | ppa.h \ | |
59 | ppa_syslog.h \ | |
60 | palette.h \ | |
61 | fscoeff.h \ | |
62 | lang.h \ | |
63 | text-cz.h \ | |
64 | text-en.h \ | |
65 | text-es.h \ | |
66 | text-fr.h \ | |
67 | text-it.h \ | |
68 | text-nl.h \ | |
69 | gamma.h \ | |
70 | dither.h \ | |
71 | hash_ink.h \ | |
72 | pnm2ppa.h \ | |
73 | enh-curve.h | |
74 | ||
75 | # | |
76 | # Other things to install | |
77 | # | |
78 | dist_sysconf_DATA = \ | |
79 | pnm2ppa.conf | |
80 | ||
81 | # | |
82 | # main filter program | |
83 | # | |
84 | pnm2ppa_SOURCES = \ | |
85 | pnm2ppa.c \ | |
86 | syslog.c \ | |
87 | ppa.c \ | |
88 | image.c \ | |
89 | dither.c \ | |
90 | cutswath.c \ | |
91 | gamma.c | |
92 | ||
93 | # part of pnm2ppa, but generated at build time | |
94 | nodist_pnm2ppa_SOURCES = \ | |
95 | hash_ink.c | |
96 | ||
97 | # part of pnm2ppa, but only if DEBUG is enabled | |
98 | if PNM2PPA_DEBUG | |
99 | pnm2ppa_SOURCES += debug.c | |
100 | endif | |
101 | ||
102 | # | |
103 | # calibration tool | |
104 | # | |
105 | calibrate_ppa_SOURCES = \ | |
106 | calibrate_ppa.c \ | |
107 | pnmtools.c \ | |
108 | gamma.c | |
109 | ||
110 | # create this file 'on the fly' | |
111 | hash_ink.c: make_hash_ink | |
112 | ./make_hash_ink 4 3 > hash_ink.c | |
113 | ./make_hash_ink 1 5 >> hash_ink.c | |
114 | ||
115 | CLEANFILES = hash_ink.c make_hash_ink | |
116 | ||
117 | # ------------------- cross compile relevant stuff --------------------------- | |
118 | ||
119 | # | |
120 | # We need to create a tool to generate the hash table. | |
121 | # This tool creates the 'hash_ink.c' source file (and must | |
122 | # run on the build host in case of cross compiling) | |
123 | # | |
124 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
125 | CFLAGS_FOR_BUILD = -O2 | |
126 | CPPFLAGS_FOR_BUILD = -I$(top_srcdir) | |
127 | LDFLAGS_FOR_BUILD = | |
128 | LDLIBS_FOR_BUILD = | |
129 | ||
130 | make_hash_ink: make_hash_ink.c | |
131 | $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $< $(LDLIBS_FOR_BUILD) |
0 | # Makefile.in generated by automake 1.10 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | ||
17 | ||
18 | VPATH = @srcdir@ | |
19 | pkgdatadir = $(datadir)/@PACKAGE@ | |
20 | pkglibdir = $(libdir)/@PACKAGE@ | |
21 | pkgincludedir = $(includedir)/@PACKAGE@ | |
22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
23 | install_sh_DATA = $(install_sh) -c -m 644 | |
24 | install_sh_PROGRAM = $(install_sh) -c | |
25 | install_sh_SCRIPT = $(install_sh) -c | |
26 | INSTALL_HEADER = $(INSTALL_DATA) | |
27 | transform = $(program_transform_name) | |
28 | NORMAL_INSTALL = : | |
29 | PRE_INSTALL = : | |
30 | POST_INSTALL = : | |
31 | NORMAL_UNINSTALL = : | |
32 | PRE_UNINSTALL = : | |
33 | POST_UNINSTALL = : | |
34 | build_triplet = @build@ | |
35 | host_triplet = @host@ | |
36 | bin_PROGRAMS = pnm2ppa$(EXEEXT) calibrate_ppa$(EXEEXT) | |
37 | ||
38 | # part of pnm2ppa, but only if DEBUG is enabled | |
39 | @PNM2PPA_DEBUG_TRUE@am__append_1 = debug.c | |
40 | subdir = . | |
41 | DIST_COMMON = README $(am__configure_deps) $(dist_man1_MANS) \ | |
42 | $(dist_sysconf_DATA) $(noinst_HEADERS) $(srcdir)/Makefile.am \ | |
43 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
44 | $(top_srcdir)/configure INSTALL config.guess config.sub \ | |
45 | depcomp install-sh missing | |
46 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
47 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
48 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
49 | $(ACLOCAL_M4) | |
50 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
51 | configure.lineno config.status.lineno | |
52 | mkinstalldirs = $(install_sh) -d | |
53 | CONFIG_HEADER = config.h | |
54 | CONFIG_CLEAN_FILES = | |
55 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ | |
56 | "$(DESTDIR)$(sysconfdir)" | |
57 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |
58 | PROGRAMS = $(bin_PROGRAMS) | |
59 | am_calibrate_ppa_OBJECTS = calibrate_ppa.$(OBJEXT) pnmtools.$(OBJEXT) \ | |
60 | gamma.$(OBJEXT) | |
61 | calibrate_ppa_OBJECTS = $(am_calibrate_ppa_OBJECTS) | |
62 | calibrate_ppa_LDADD = $(LDADD) | |
63 | am__pnm2ppa_SOURCES_DIST = pnm2ppa.c syslog.c ppa.c image.c dither.c \ | |
64 | cutswath.c gamma.c debug.c | |
65 | @PNM2PPA_DEBUG_TRUE@am__objects_1 = debug.$(OBJEXT) | |
66 | am_pnm2ppa_OBJECTS = pnm2ppa.$(OBJEXT) syslog.$(OBJEXT) ppa.$(OBJEXT) \ | |
67 | image.$(OBJEXT) dither.$(OBJEXT) cutswath.$(OBJEXT) \ | |
68 | gamma.$(OBJEXT) $(am__objects_1) | |
69 | nodist_pnm2ppa_OBJECTS = hash_ink.$(OBJEXT) | |
70 | pnm2ppa_OBJECTS = $(am_pnm2ppa_OBJECTS) $(nodist_pnm2ppa_OBJECTS) | |
71 | pnm2ppa_LDADD = $(LDADD) | |
72 | DEFAULT_INCLUDES = -I.@am__isrc@ | |
73 | depcomp = $(SHELL) $(top_srcdir)/depcomp | |
74 | am__depfiles_maybe = depfiles | |
75 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
76 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
77 | CCLD = $(CC) | |
78 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
79 | SOURCES = $(calibrate_ppa_SOURCES) $(pnm2ppa_SOURCES) \ | |
80 | $(nodist_pnm2ppa_SOURCES) | |
81 | DIST_SOURCES = $(calibrate_ppa_SOURCES) $(am__pnm2ppa_SOURCES_DIST) | |
82 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
83 | html-recursive info-recursive install-data-recursive \ | |
84 | install-dvi-recursive install-exec-recursive \ | |
85 | install-html-recursive install-info-recursive \ | |
86 | install-pdf-recursive install-ps-recursive install-recursive \ | |
87 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
88 | ps-recursive uninstall-recursive | |
89 | man1dir = $(mandir)/man1 | |
90 | NROFF = nroff | |
91 | MANS = $(dist_man1_MANS) | |
92 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
93 | am__vpath_adj = case $$p in \ | |
94 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
95 | *) f=$$p;; \ | |
96 | esac; | |
97 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
98 | dist_sysconfDATA_INSTALL = $(INSTALL_DATA) | |
99 | DATA = $(dist_sysconf_DATA) | |
100 | HEADERS = $(noinst_HEADERS) | |
101 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
102 | distclean-recursive maintainer-clean-recursive | |
103 | ETAGS = etags | |
104 | CTAGS = ctags | |
105 | DIST_SUBDIRS = ppa_protocol | |
106 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
107 | distdir = $(PACKAGE)-$(VERSION) | |
108 | top_distdir = $(distdir) | |
109 | am__remove_distdir = \ | |
110 | { test ! -d $(distdir) \ | |
111 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
112 | && rm -fr $(distdir); }; } | |
113 | DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 | |
114 | GZIP_ENV = --best | |
115 | distuninstallcheck_listfiles = find . -type f -print | |
116 | distcleancheck_listfiles = find . -type f -print | |
117 | ACLOCAL = @ACLOCAL@ | |
118 | AMTAR = @AMTAR@ | |
119 | AUTOCONF = @AUTOCONF@ | |
120 | AUTOHEADER = @AUTOHEADER@ | |
121 | AUTOMAKE = @AUTOMAKE@ | |
122 | AWK = @AWK@ | |
123 | CC = @CC@ | |
124 | CCDEPMODE = @CCDEPMODE@ | |
125 | ||
126 | # ------------------- cross compile relevant stuff --------------------------- | |
127 | ||
128 | # | |
129 | # We need to create a tool to generate the hash table. | |
130 | # This tool creates the 'hash_ink.c' source file (and must | |
131 | # run on the build host in case of cross compiling) | |
132 | # | |
133 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
134 | CFLAGS = @CFLAGS@ | |
135 | CPP = @CPP@ | |
136 | CPPFLAGS = @CPPFLAGS@ | |
137 | CYGPATH_W = @CYGPATH_W@ | |
138 | DEFS = @DEFS@ | |
139 | DEPDIR = @DEPDIR@ | |
140 | ECHO_C = @ECHO_C@ | |
141 | ECHO_N = @ECHO_N@ | |
142 | ECHO_T = @ECHO_T@ | |
143 | EGREP = @EGREP@ | |
144 | EXEEXT = @EXEEXT@ | |
145 | GREP = @GREP@ | |
146 | INSTALL = @INSTALL@ | |
147 | INSTALL_DATA = @INSTALL_DATA@ | |
148 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
149 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
150 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
151 | LDFLAGS = @LDFLAGS@ | |
152 | LIBOBJS = @LIBOBJS@ | |
153 | LIBS = @LIBS@ | |
154 | LTLIBOBJS = @LTLIBOBJS@ | |
155 | MAINT = @MAINT@ | |
156 | MAKEINFO = @MAKEINFO@ | |
157 | MKDIR_P = @MKDIR_P@ | |
158 | OBJEXT = @OBJEXT@ | |
159 | PACKAGE = @PACKAGE@ | |
160 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
161 | PACKAGE_NAME = @PACKAGE_NAME@ | |
162 | PACKAGE_STRING = @PACKAGE_STRING@ | |
163 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
164 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
165 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
166 | SET_MAKE = @SET_MAKE@ | |
167 | SHELL = @SHELL@ | |
168 | STRIP = @STRIP@ | |
169 | VERSION = @VERSION@ | |
170 | abs_builddir = @abs_builddir@ | |
171 | abs_srcdir = @abs_srcdir@ | |
172 | abs_top_builddir = @abs_top_builddir@ | |
173 | abs_top_srcdir = @abs_top_srcdir@ | |
174 | ac_ct_CC = @ac_ct_CC@ | |
175 | am__include = @am__include@ | |
176 | am__leading_dot = @am__leading_dot@ | |
177 | am__quote = @am__quote@ | |
178 | am__tar = @am__tar@ | |
179 | am__untar = @am__untar@ | |
180 | bindir = @bindir@ | |
181 | build = @build@ | |
182 | build_alias = @build_alias@ | |
183 | build_cpu = @build_cpu@ | |
184 | build_os = @build_os@ | |
185 | build_vendor = @build_vendor@ | |
186 | builddir = @builddir@ | |
187 | datadir = @datadir@ | |
188 | datarootdir = @datarootdir@ | |
189 | docdir = @docdir@ | |
190 | dvidir = @dvidir@ | |
191 | exec_prefix = @exec_prefix@ | |
192 | host = @host@ | |
193 | host_alias = @host_alias@ | |
194 | host_cpu = @host_cpu@ | |
195 | host_os = @host_os@ | |
196 | host_vendor = @host_vendor@ | |
197 | htmldir = @htmldir@ | |
198 | includedir = @includedir@ | |
199 | infodir = @infodir@ | |
200 | install_sh = @install_sh@ | |
201 | libdir = @libdir@ | |
202 | libexecdir = @libexecdir@ | |
203 | localedir = @localedir@ | |
204 | localstatedir = @localstatedir@ | |
205 | mandir = @mandir@ | |
206 | mkdir_p = @mkdir_p@ | |
207 | oldincludedir = @oldincludedir@ | |
208 | pdfdir = @pdfdir@ | |
209 | prefix = @prefix@ | |
210 | program_transform_name = @program_transform_name@ | |
211 | psdir = @psdir@ | |
212 | sbindir = @sbindir@ | |
213 | sharedstatedir = @sharedstatedir@ | |
214 | srcdir = @srcdir@ | |
215 | sysconfdir = @sysconfdir@ | |
216 | target_alias = @target_alias@ | |
217 | top_build_prefix = @top_build_prefix@ | |
218 | top_builddir = @top_builddir@ | |
219 | top_srcdir = @top_srcdir@ | |
220 | ||
221 | # build the parse_vlink tool on demand only | |
222 | @BUILD_PARSE_VLINK_TRUE@SUBDIRS = ppa_protocol | |
223 | ||
224 | # | |
225 | # Where to find the config files at runtime | |
226 | # | |
227 | AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' | |
228 | ||
229 | # | |
230 | # Distribute these directories and files | |
231 | # | |
232 | EXTRA_DIST = \ | |
233 | Changelog \ | |
234 | README \ | |
235 | README.security \ | |
236 | pdq \ | |
237 | lpd \ | |
238 | sample_scripts \ | |
239 | stamp-h1 \ | |
240 | test.ps \ | |
241 | testpage-a4.ps \ | |
242 | testpage.ps \ | |
243 | testpages \ | |
244 | utils \ | |
245 | rhs-printfilters \ | |
246 | rpm \ | |
247 | docs \ | |
248 | make_hash_ink.c | |
249 | ||
250 | ||
251 | # | |
252 | # distribute and install the manpage | |
253 | # | |
254 | dist_man1_MANS = docs/en/pnm2ppa.1 | |
255 | MAINTAINERCLEANFILES = \ | |
256 | configure \ | |
257 | aclocal.m4 \ | |
258 | config.h.in \ | |
259 | Makefile.in | |
260 | ||
261 | ||
262 | # | |
263 | # distribute, but do not install | |
264 | # | |
265 | noinst_HEADERS = \ | |
266 | global.h \ | |
267 | image.h \ | |
268 | defaults.h \ | |
269 | pnmtools.h \ | |
270 | debug.h \ | |
271 | ppa.h \ | |
272 | ppa_syslog.h \ | |
273 | palette.h \ | |
274 | fscoeff.h \ | |
275 | lang.h \ | |
276 | text-cz.h \ | |
277 | text-en.h \ | |
278 | text-es.h \ | |
279 | text-fr.h \ | |
280 | text-it.h \ | |
281 | text-nl.h \ | |
282 | gamma.h \ | |
283 | dither.h \ | |
284 | hash_ink.h \ | |
285 | pnm2ppa.h \ | |
286 | enh-curve.h | |
287 | ||
288 | ||
289 | # | |
290 | # Other things to install | |
291 | # | |
292 | dist_sysconf_DATA = \ | |
293 | pnm2ppa.conf | |
294 | ||
295 | ||
296 | # | |
297 | # main filter program | |
298 | # | |
299 | pnm2ppa_SOURCES = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c \ | |
300 | gamma.c $(am__append_1) | |
301 | ||
302 | # part of pnm2ppa, but generated at build time | |
303 | nodist_pnm2ppa_SOURCES = \ | |
304 | hash_ink.c | |
305 | ||
306 | ||
307 | # | |
308 | # calibration tool | |
309 | # | |
310 | calibrate_ppa_SOURCES = \ | |
311 | calibrate_ppa.c \ | |
312 | pnmtools.c \ | |
313 | gamma.c | |
314 | ||
315 | CLEANFILES = hash_ink.c make_hash_ink | |
316 | CFLAGS_FOR_BUILD = -O2 | |
317 | CPPFLAGS_FOR_BUILD = -I$(top_srcdir) | |
318 | LDFLAGS_FOR_BUILD = | |
319 | LDLIBS_FOR_BUILD = | |
320 | all: config.h | |
321 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
322 | ||
323 | .SUFFIXES: | |
324 | .SUFFIXES: .c .o .obj | |
325 | am--refresh: | |
326 | @: | |
327 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
328 | @for dep in $?; do \ | |
329 | case '$(am__configure_deps)' in \ | |
330 | *$$dep*) \ | |
331 | echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ | |
332 | cd $(srcdir) && $(AUTOMAKE) --foreign \ | |
333 | && exit 0; \ | |
334 | exit 1;; \ | |
335 | esac; \ | |
336 | done; \ | |
337 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
338 | cd $(top_srcdir) && \ | |
339 | $(AUTOMAKE) --foreign Makefile | |
340 | .PRECIOUS: Makefile | |
341 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
342 | @case '$?' in \ | |
343 | *config.status*) \ | |
344 | echo ' $(SHELL) ./config.status'; \ | |
345 | $(SHELL) ./config.status;; \ | |
346 | *) \ | |
347 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
348 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
349 | esac; | |
350 | ||
351 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
352 | $(SHELL) ./config.status --recheck | |
353 | ||
354 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
355 | cd $(srcdir) && $(AUTOCONF) | |
356 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
357 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
358 | ||
359 | config.h: stamp-h1 | |
360 | @if test ! -f $@; then \ | |
361 | rm -f stamp-h1; \ | |
362 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
363 | else :; fi | |
364 | ||
365 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | |
366 | @rm -f stamp-h1 | |
367 | cd $(top_builddir) && $(SHELL) ./config.status config.h | |
368 | $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
369 | cd $(top_srcdir) && $(AUTOHEADER) | |
370 | rm -f stamp-h1 | |
371 | touch $@ | |
372 | ||
373 | distclean-hdr: | |
374 | -rm -f config.h stamp-h1 | |
375 | install-binPROGRAMS: $(bin_PROGRAMS) | |
376 | @$(NORMAL_INSTALL) | |
377 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
378 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | |
379 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | |
380 | if test -f $$p \ | |
381 | ; then \ | |
382 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | |
383 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ | |
384 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ | |
385 | else :; fi; \ | |
386 | done | |
387 | ||
388 | uninstall-binPROGRAMS: | |
389 | @$(NORMAL_UNINSTALL) | |
390 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | |
391 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | |
392 | echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ | |
393 | rm -f "$(DESTDIR)$(bindir)/$$f"; \ | |
394 | done | |
395 | ||
396 | clean-binPROGRAMS: | |
397 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
398 | calibrate_ppa$(EXEEXT): $(calibrate_ppa_OBJECTS) $(calibrate_ppa_DEPENDENCIES) | |
399 | @rm -f calibrate_ppa$(EXEEXT) | |
400 | $(LINK) $(calibrate_ppa_OBJECTS) $(calibrate_ppa_LDADD) $(LIBS) | |
401 | pnm2ppa$(EXEEXT): $(pnm2ppa_OBJECTS) $(pnm2ppa_DEPENDENCIES) | |
402 | @rm -f pnm2ppa$(EXEEXT) | |
403 | $(LINK) $(pnm2ppa_OBJECTS) $(pnm2ppa_LDADD) $(LIBS) | |
404 | ||
405 | mostlyclean-compile: | |
406 | -rm -f *.$(OBJEXT) | |
407 | ||
408 | distclean-compile: | |
409 | -rm -f *.tab.c | |
410 | ||
411 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calibrate_ppa.Po@am__quote@ | |
412 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cutswath.Po@am__quote@ | |
413 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@ | |
414 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dither.Po@am__quote@ | |
415 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma.Po@am__quote@ | |
416 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash_ink.Po@am__quote@ | |
417 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image.Po@am__quote@ | |
418 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pnm2ppa.Po@am__quote@ | |
419 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pnmtools.Po@am__quote@ | |
420 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppa.Po@am__quote@ | |
421 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syslog.Po@am__quote@ | |
422 | ||
423 | .c.o: | |
424 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
425 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
426 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
427 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
428 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
429 | ||
430 | .c.obj: | |
431 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
432 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
433 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
434 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
435 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
436 | install-man1: $(man1_MANS) $(man_MANS) | |
437 | @$(NORMAL_INSTALL) | |
438 | test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" | |
439 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | |
440 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | |
441 | for i in $$l2; do \ | |
442 | case "$$i" in \ | |
443 | *.1*) list="$$list $$i" ;; \ | |
444 | esac; \ | |
445 | done; \ | |
446 | for i in $$list; do \ | |
447 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | |
448 | else file=$$i; fi; \ | |
449 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
450 | case "$$ext" in \ | |
451 | 1*) ;; \ | |
452 | *) ext='1' ;; \ | |
453 | esac; \ | |
454 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
455 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | |
456 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
457 | echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ | |
458 | $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ | |
459 | done | |
460 | uninstall-man1: | |
461 | @$(NORMAL_UNINSTALL) | |
462 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | |
463 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | |
464 | for i in $$l2; do \ | |
465 | case "$$i" in \ | |
466 | *.1*) list="$$list $$i" ;; \ | |
467 | esac; \ | |
468 | done; \ | |
469 | for i in $$list; do \ | |
470 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
471 | case "$$ext" in \ | |
472 | 1*) ;; \ | |
473 | *) ext='1' ;; \ | |
474 | esac; \ | |
475 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
476 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | |
477 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
478 | echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ | |
479 | rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ | |
480 | done | |
481 | install-dist_sysconfDATA: $(dist_sysconf_DATA) | |
482 | @$(NORMAL_INSTALL) | |
483 | test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" | |
484 | @list='$(dist_sysconf_DATA)'; for p in $$list; do \ | |
485 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
486 | f=$(am__strip_dir) \ | |
487 | echo " $(dist_sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \ | |
488 | $(dist_sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \ | |
489 | done | |
490 | ||
491 | uninstall-dist_sysconfDATA: | |
492 | @$(NORMAL_UNINSTALL) | |
493 | @list='$(dist_sysconf_DATA)'; for p in $$list; do \ | |
494 | f=$(am__strip_dir) \ | |
495 | echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \ | |
496 | rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \ | |
497 | done | |
498 | ||
499 | # This directory's subdirectories are mostly independent; you can cd | |
500 | # into them and run `make' without going through this Makefile. | |
501 | # To change the values of `make' variables: instead of editing Makefiles, | |
502 | # (1) if the variable is set in `config.status', edit `config.status' | |
503 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
504 | # (2) otherwise, pass the desired values on the `make' command line. | |
505 | $(RECURSIVE_TARGETS): | |
506 | @failcom='exit 1'; \ | |
507 | for f in x $$MAKEFLAGS; do \ | |
508 | case $$f in \ | |
509 | *=* | --[!k]*);; \ | |
510 | *k*) failcom='fail=yes';; \ | |
511 | esac; \ | |
512 | done; \ | |
513 | dot_seen=no; \ | |
514 | target=`echo $@ | sed s/-recursive//`; \ | |
515 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
516 | echo "Making $$target in $$subdir"; \ | |
517 | if test "$$subdir" = "."; then \ | |
518 | dot_seen=yes; \ | |
519 | local_target="$$target-am"; \ | |
520 | else \ | |
521 | local_target="$$target"; \ | |
522 | fi; \ | |
523 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
524 | || eval $$failcom; \ | |
525 | done; \ | |
526 | if test "$$dot_seen" = "no"; then \ | |
527 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
528 | fi; test -z "$$fail" | |
529 | ||
530 | $(RECURSIVE_CLEAN_TARGETS): | |
531 | @failcom='exit 1'; \ | |
532 | for f in x $$MAKEFLAGS; do \ | |
533 | case $$f in \ | |
534 | *=* | --[!k]*);; \ | |
535 | *k*) failcom='fail=yes';; \ | |
536 | esac; \ | |
537 | done; \ | |
538 | dot_seen=no; \ | |
539 | case "$@" in \ | |
540 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
541 | *) list='$(SUBDIRS)' ;; \ | |
542 | esac; \ | |
543 | rev=''; for subdir in $$list; do \ | |
544 | if test "$$subdir" = "."; then :; else \ | |
545 | rev="$$subdir $$rev"; \ | |
546 | fi; \ | |
547 | done; \ | |
548 | rev="$$rev ."; \ | |
549 | target=`echo $@ | sed s/-recursive//`; \ | |
550 | for subdir in $$rev; do \ | |
551 | echo "Making $$target in $$subdir"; \ | |
552 | if test "$$subdir" = "."; then \ | |
553 | local_target="$$target-am"; \ | |
554 | else \ | |
555 | local_target="$$target"; \ | |
556 | fi; \ | |
557 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
558 | || eval $$failcom; \ | |
559 | done && test -z "$$fail" | |
560 | tags-recursive: | |
561 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
562 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
563 | done | |
564 | ctags-recursive: | |
565 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
566 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
567 | done | |
568 | ||
569 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
570 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
571 | unique=`for i in $$list; do \ | |
572 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
573 | done | \ | |
574 | $(AWK) ' { files[$$0] = 1; } \ | |
575 | END { for (i in files) print i; }'`; \ | |
576 | mkid -fID $$unique | |
577 | tags: TAGS | |
578 | ||
579 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
580 | $(TAGS_FILES) $(LISP) | |
581 | tags=; \ | |
582 | here=`pwd`; \ | |
583 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
584 | include_option=--etags-include; \ | |
585 | empty_fix=.; \ | |
586 | else \ | |
587 | include_option=--include; \ | |
588 | empty_fix=; \ | |
589 | fi; \ | |
590 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
591 | if test "$$subdir" = .; then :; else \ | |
592 | test ! -f $$subdir/TAGS || \ | |
593 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | |
594 | fi; \ | |
595 | done; \ | |
596 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
597 | unique=`for i in $$list; do \ | |
598 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
599 | done | \ | |
600 | $(AWK) ' { files[$$0] = 1; } \ | |
601 | END { for (i in files) print i; }'`; \ | |
602 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | |
603 | test -n "$$unique" || unique=$$empty_fix; \ | |
604 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
605 | $$tags $$unique; \ | |
606 | fi | |
607 | ctags: CTAGS | |
608 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
609 | $(TAGS_FILES) $(LISP) | |
610 | tags=; \ | |
611 | here=`pwd`; \ | |
612 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
613 | unique=`for i in $$list; do \ | |
614 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
615 | done | \ | |
616 | $(AWK) ' { files[$$0] = 1; } \ | |
617 | END { for (i in files) print i; }'`; \ | |
618 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | |
619 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
620 | $$tags $$unique | |
621 | ||
622 | GTAGS: | |
623 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
624 | && cd $(top_srcdir) \ | |
625 | && gtags -i $(GTAGS_ARGS) $$here | |
626 | ||
627 | distclean-tags: | |
628 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
629 | ||
630 | distdir: $(DISTFILES) | |
631 | $(am__remove_distdir) | |
632 | test -d $(distdir) || mkdir $(distdir) | |
633 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
634 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
635 | list='$(DISTFILES)'; \ | |
636 | dist_files=`for file in $$list; do echo $$file; done | \ | |
637 | sed -e "s|^$$srcdirstrip/||;t" \ | |
638 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
639 | case $$dist_files in \ | |
640 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
641 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
642 | sort -u` ;; \ | |
643 | esac; \ | |
644 | for file in $$dist_files; do \ | |
645 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
646 | if test -d $$d/$$file; then \ | |
647 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
648 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
649 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | |
650 | fi; \ | |
651 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | |
652 | else \ | |
653 | test -f $(distdir)/$$file \ | |
654 | || cp -p $$d/$$file $(distdir)/$$file \ | |
655 | || exit 1; \ | |
656 | fi; \ | |
657 | done | |
658 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
659 | if test "$$subdir" = .; then :; else \ | |
660 | test -d "$(distdir)/$$subdir" \ | |
661 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
662 | || exit 1; \ | |
663 | distdir=`$(am__cd) $(distdir) && pwd`; \ | |
664 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | |
665 | (cd $$subdir && \ | |
666 | $(MAKE) $(AM_MAKEFLAGS) \ | |
667 | top_distdir="$$top_distdir" \ | |
668 | distdir="$$distdir/$$subdir" \ | |
669 | am__remove_distdir=: \ | |
670 | am__skip_length_check=: \ | |
671 | distdir) \ | |
672 | || exit 1; \ | |
673 | fi; \ | |
674 | done | |
675 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | |
676 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
677 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
678 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
679 | || chmod -R a+r $(distdir) | |
680 | dist-gzip: distdir | |
681 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
682 | $(am__remove_distdir) | |
683 | dist-bzip2: distdir | |
684 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
685 | $(am__remove_distdir) | |
686 | ||
687 | dist-tarZ: distdir | |
688 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
689 | $(am__remove_distdir) | |
690 | ||
691 | dist-shar: distdir | |
692 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
693 | $(am__remove_distdir) | |
694 | ||
695 | dist-zip: distdir | |
696 | -rm -f $(distdir).zip | |
697 | zip -rq $(distdir).zip $(distdir) | |
698 | $(am__remove_distdir) | |
699 | ||
700 | dist dist-all: distdir | |
701 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
702 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
703 | $(am__remove_distdir) | |
704 | ||
705 | # This target untars the dist file and tries a VPATH configuration. Then | |
706 | # it guarantees that the distribution is self-contained by making another | |
707 | # tarfile. | |
708 | distcheck: dist | |
709 | case '$(DIST_ARCHIVES)' in \ | |
710 | *.tar.gz*) \ | |
711 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |
712 | *.tar.bz2*) \ | |
713 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |
714 | *.tar.Z*) \ | |
715 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
716 | *.shar.gz*) \ | |
717 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |
718 | *.zip*) \ | |
719 | unzip $(distdir).zip ;;\ | |
720 | esac | |
721 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
722 | mkdir $(distdir)/_build | |
723 | mkdir $(distdir)/_inst | |
724 | chmod a-w $(distdir) | |
725 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
726 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
727 | && cd $(distdir)/_build \ | |
728 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
729 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
730 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
731 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
732 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
733 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
734 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
735 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
736 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
737 | distuninstallcheck \ | |
738 | && chmod -R a-w "$$dc_install_base" \ | |
739 | && ({ \ | |
740 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
741 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
742 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
743 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
744 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
745 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
746 | && rm -rf "$$dc_destdir" \ | |
747 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
748 | && rm -rf $(DIST_ARCHIVES) \ | |
749 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | |
750 | $(am__remove_distdir) | |
751 | @(echo "$(distdir) archives ready for distribution: "; \ | |
752 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
753 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
754 | distuninstallcheck: | |
755 | @cd $(distuninstallcheck_dir) \ | |
756 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
757 | || { echo "ERROR: files left after uninstall:" ; \ | |
758 | if test -n "$(DESTDIR)"; then \ | |
759 | echo " (check DESTDIR support)"; \ | |
760 | fi ; \ | |
761 | $(distuninstallcheck_listfiles) ; \ | |
762 | exit 1; } >&2 | |
763 | distcleancheck: distclean | |
764 | @if test '$(srcdir)' = . ; then \ | |
765 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
766 | exit 1 ; \ | |
767 | fi | |
768 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
769 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
770 | $(distcleancheck_listfiles) ; \ | |
771 | exit 1; } >&2 | |
772 | check-am: all-am | |
773 | check: check-recursive | |
774 | all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) $(HEADERS) config.h | |
775 | installdirs: installdirs-recursive | |
776 | installdirs-am: | |
777 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(sysconfdir)"; do \ | |
778 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
779 | done | |
780 | install: install-recursive | |
781 | install-exec: install-exec-recursive | |
782 | install-data: install-data-recursive | |
783 | uninstall: uninstall-recursive | |
784 | ||
785 | install-am: all-am | |
786 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
787 | ||
788 | installcheck: installcheck-recursive | |
789 | install-strip: | |
790 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
791 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
792 | `test -z '$(STRIP)' || \ | |
793 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
794 | mostlyclean-generic: | |
795 | ||
796 | clean-generic: | |
797 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
798 | ||
799 | distclean-generic: | |
800 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
801 | ||
802 | maintainer-clean-generic: | |
803 | @echo "This command is intended for maintainers to use" | |
804 | @echo "it deletes files that may require special tools to rebuild." | |
805 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | |
806 | clean: clean-recursive | |
807 | ||
808 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | |
809 | ||
810 | distclean: distclean-recursive | |
811 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
812 | -rm -rf ./$(DEPDIR) | |
813 | -rm -f Makefile | |
814 | distclean-am: clean-am distclean-compile distclean-generic \ | |
815 | distclean-hdr distclean-tags | |
816 | ||
817 | dvi: dvi-recursive | |
818 | ||
819 | dvi-am: | |
820 | ||
821 | html: html-recursive | |
822 | ||
823 | info: info-recursive | |
824 | ||
825 | info-am: | |
826 | ||
827 | install-data-am: install-man | |
828 | ||
829 | install-dvi: install-dvi-recursive | |
830 | ||
831 | install-exec-am: install-binPROGRAMS install-dist_sysconfDATA | |
832 | ||
833 | install-html: install-html-recursive | |
834 | ||
835 | install-info: install-info-recursive | |
836 | ||
837 | install-man: install-man1 | |
838 | ||
839 | install-pdf: install-pdf-recursive | |
840 | ||
841 | install-ps: install-ps-recursive | |
842 | ||
843 | installcheck-am: | |
844 | ||
845 | maintainer-clean: maintainer-clean-recursive | |
846 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
847 | -rm -rf $(top_srcdir)/autom4te.cache | |
848 | -rm -rf ./$(DEPDIR) | |
849 | -rm -f Makefile | |
850 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
851 | ||
852 | mostlyclean: mostlyclean-recursive | |
853 | ||
854 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | |
855 | ||
856 | pdf: pdf-recursive | |
857 | ||
858 | pdf-am: | |
859 | ||
860 | ps: ps-recursive | |
861 | ||
862 | ps-am: | |
863 | ||
864 | uninstall-am: uninstall-binPROGRAMS uninstall-dist_sysconfDATA \ | |
865 | uninstall-man | |
866 | ||
867 | uninstall-man: uninstall-man1 | |
868 | ||
869 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ | |
870 | install-strip | |
871 | ||
872 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
873 | all all-am am--refresh check check-am clean clean-binPROGRAMS \ | |
874 | clean-generic ctags ctags-recursive dist dist-all dist-bzip2 \ | |
875 | dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ | |
876 | distclean-compile distclean-generic distclean-hdr \ | |
877 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
878 | dvi-am html html-am info info-am install install-am \ | |
879 | install-binPROGRAMS install-data install-data-am \ | |
880 | install-dist_sysconfDATA install-dvi install-dvi-am \ | |
881 | install-exec install-exec-am install-html install-html-am \ | |
882 | install-info install-info-am install-man install-man1 \ | |
883 | install-pdf install-pdf-am install-ps install-ps-am \ | |
884 | install-strip installcheck installcheck-am installdirs \ | |
885 | installdirs-am maintainer-clean maintainer-clean-generic \ | |
886 | mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ | |
887 | ps ps-am tags tags-recursive uninstall uninstall-am \ | |
888 | uninstall-binPROGRAMS uninstall-dist_sysconfDATA uninstall-man \ | |
889 | uninstall-man1 | |
890 | ||
891 | ||
892 | # create this file 'on the fly' | |
893 | hash_ink.c: make_hash_ink | |
894 | ./make_hash_ink 4 3 > hash_ink.c | |
895 | ./make_hash_ink 1 5 >> hash_ink.c | |
896 | ||
897 | make_hash_ink: make_hash_ink.c | |
898 | $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $< $(LDLIBS_FOR_BUILD) | |
899 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
900 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
901 | .NOEXPORT: |
0 | # generated automatically by aclocal 1.10 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006 Free Software Foundation, Inc. | |
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | m4_if(m4_PACKAGE_VERSION, [2.62],, | |
14 | [m4_fatal([this file was generated for autoconf 2.62. | |
15 | You have another version of autoconf. If you want to use that, | |
16 | you should regenerate the build system entirely.], [63])]) | |
17 | ||
18 | # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. | |
19 | # | |
20 | # This file is free software; the Free Software Foundation | |
21 | # gives unlimited permission to copy and/or distribute it, | |
22 | # with or without modifications, as long as this notice is preserved. | |
23 | ||
24 | # AM_AUTOMAKE_VERSION(VERSION) | |
25 | # ---------------------------- | |
26 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
27 | # generated from the m4 files accompanying Automake X.Y. | |
28 | # (This private macro should not be called outside this file.) | |
29 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
30 | [am__api_version='1.10' | |
31 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
32 | dnl require some minimum version. Point them to the right macro. | |
33 | m4_if([$1], [1.10], [], | |
34 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
35 | ]) | |
36 | ||
37 | # _AM_AUTOCONF_VERSION(VERSION) | |
38 | # ----------------------------- | |
39 | # aclocal traces this macro to find the Autoconf version. | |
40 | # This is a private macro too. Using m4_define simplifies | |
41 | # the logic in aclocal, which can simply ignore this definition. | |
42 | m4_define([_AM_AUTOCONF_VERSION], []) | |
43 | ||
44 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
45 | # ------------------------------- | |
46 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
47 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |
48 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
49 | [AM_AUTOMAKE_VERSION([1.10])dnl | |
50 | _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) | |
51 | ||
52 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
53 | ||
54 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
55 | # | |
56 | # This file is free software; the Free Software Foundation | |
57 | # gives unlimited permission to copy and/or distribute it, | |
58 | # with or without modifications, as long as this notice is preserved. | |
59 | ||
60 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
61 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
62 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
63 | # | |
64 | # Of course, Automake must honor this variable whenever it calls a | |
65 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
66 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
67 | # depending on how configure is run. This is pretty annoying, since | |
68 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
69 | # source directory, any form will work fine, but in subdirectories a | |
70 | # relative path needs to be adjusted first. | |
71 | # | |
72 | # $ac_aux_dir/missing | |
73 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
74 | # $top_srcdir/$ac_aux_dir/missing | |
75 | # fails if $ac_aux_dir is absolute, | |
76 | # fails when called from a subdirectory in a VPATH build with | |
77 | # a relative $ac_aux_dir | |
78 | # | |
79 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
80 | # are both prefixed by $srcdir. In an in-source build this is usually | |
81 | # harmless because $srcdir is `.', but things will broke when you | |
82 | # start a VPATH build or use an absolute $srcdir. | |
83 | # | |
84 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
85 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
86 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
87 | # and then we would define $MISSING as | |
88 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
89 | # This will work as long as MISSING is not called from configure, because | |
90 | # unfortunately $(top_srcdir) has no meaning in configure. | |
91 | # However there are other variables, like CC, which are often used in | |
92 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
93 | # | |
94 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
95 | # absolute PATH. The drawback is that using absolute paths prevent a | |
96 | # configured tree to be moved without reconfiguration. | |
97 | ||
98 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
99 | [dnl Rely on autoconf to set up CDPATH properly. | |
100 | AC_PREREQ([2.50])dnl | |
101 | # expand $ac_aux_dir to an absolute path | |
102 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
103 | ]) | |
104 | ||
105 | # AM_CONDITIONAL -*- Autoconf -*- | |
106 | ||
107 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 | |
108 | # Free Software Foundation, Inc. | |
109 | # | |
110 | # This file is free software; the Free Software Foundation | |
111 | # gives unlimited permission to copy and/or distribute it, | |
112 | # with or without modifications, as long as this notice is preserved. | |
113 | ||
114 | # serial 8 | |
115 | ||
116 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
117 | # ------------------------------------- | |
118 | # Define a conditional. | |
119 | AC_DEFUN([AM_CONDITIONAL], | |
120 | [AC_PREREQ(2.52)dnl | |
121 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
122 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
123 | AC_SUBST([$1_TRUE])dnl | |
124 | AC_SUBST([$1_FALSE])dnl | |
125 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
126 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
127 | if $2; then | |
128 | $1_TRUE= | |
129 | $1_FALSE='#' | |
130 | else | |
131 | $1_TRUE='#' | |
132 | $1_FALSE= | |
133 | fi | |
134 | AC_CONFIG_COMMANDS_PRE( | |
135 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
136 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
137 | Usually this means the macro was only invoked conditionally.]]) | |
138 | fi])]) | |
139 | ||
140 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | |
141 | # Free Software Foundation, Inc. | |
142 | # | |
143 | # This file is free software; the Free Software Foundation | |
144 | # gives unlimited permission to copy and/or distribute it, | |
145 | # with or without modifications, as long as this notice is preserved. | |
146 | ||
147 | # serial 9 | |
148 | ||
149 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
150 | # written in clear, in which case automake, when reading aclocal.m4, | |
151 | # will think it sees a *use*, and therefore will trigger all it's | |
152 | # C support machinery. Also note that it means that autoscan, seeing | |
153 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
154 | ||
155 | ||
156 | # _AM_DEPENDENCIES(NAME) | |
157 | # ---------------------- | |
158 | # See how the compiler implements dependency checking. | |
159 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
160 | # We try a few techniques and use that to set a single cache variable. | |
161 | # | |
162 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
163 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
164 | # dependency, and given that the user is not expected to run this macro, | |
165 | # just rely on AC_PROG_CC. | |
166 | AC_DEFUN([_AM_DEPENDENCIES], | |
167 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
168 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
169 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
170 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
171 | ||
172 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
173 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
174 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
175 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
176 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
177 | [depcc="$$1" am_compiler_list=]) | |
178 | ||
179 | AC_CACHE_CHECK([dependency style of $depcc], | |
180 | [am_cv_$1_dependencies_compiler_type], | |
181 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
182 | # We make a subdir and do the tests there. Otherwise we can end up | |
183 | # making bogus files that we don't know about and never remove. For | |
184 | # instance it was reported that on HP-UX the gcc test will end up | |
185 | # making a dummy file named `D' -- because `-MD' means `put the output | |
186 | # in D'. | |
187 | mkdir conftest.dir | |
188 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
189 | # using a relative directory. | |
190 | cp "$am_depcomp" conftest.dir | |
191 | cd conftest.dir | |
192 | # We will build objects and dependencies in a subdirectory because | |
193 | # it helps to detect inapplicable dependency modes. For instance | |
194 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
195 | # side effect of compilation, but ICC will put the dependencies in | |
196 | # the current directory while Tru64 will put them in the object | |
197 | # directory. | |
198 | mkdir sub | |
199 | ||
200 | am_cv_$1_dependencies_compiler_type=none | |
201 | if test "$am_compiler_list" = ""; then | |
202 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
203 | fi | |
204 | for depmode in $am_compiler_list; do | |
205 | # Setup a source with many dependencies, because some compilers | |
206 | # like to wrap large dependency lists on column 80 (with \), and | |
207 | # we should not choose a depcomp mode which is confused by this. | |
208 | # | |
209 | # We need to recreate these files for each test, as the compiler may | |
210 | # overwrite some of them when testing with obscure command lines. | |
211 | # This happens at least with the AIX C compiler. | |
212 | : > sub/conftest.c | |
213 | for i in 1 2 3 4 5 6; do | |
214 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
215 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
216 | # Solaris 8's {/usr,}/bin/sh. | |
217 | touch sub/conftst$i.h | |
218 | done | |
219 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
220 | ||
221 | case $depmode in | |
222 | nosideeffect) | |
223 | # after this tag, mechanisms are not by side-effect, so they'll | |
224 | # only be used when explicitly requested | |
225 | if test "x$enable_dependency_tracking" = xyes; then | |
226 | continue | |
227 | else | |
228 | break | |
229 | fi | |
230 | ;; | |
231 | none) break ;; | |
232 | esac | |
233 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
234 | # mode. It turns out that the SunPro C++ compiler does not properly | |
235 | # handle `-M -o', and we need to detect this. | |
236 | if depmode=$depmode \ | |
237 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
238 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
239 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
240 | >/dev/null 2>conftest.err && | |
241 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
242 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
243 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
244 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
245 | # icc doesn't choke on unknown options, it will just issue warnings | |
246 | # or remarks (even with -Werror). So we grep stderr for any message | |
247 | # that says an option was ignored or not supported. | |
248 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
249 | # icc: Command line warning: ignoring option '-M'; no argument required | |
250 | # The diagnosis changed in icc 8.0: | |
251 | # icc: Command line remark: option '-MP' not supported | |
252 | if (grep 'ignoring option' conftest.err || | |
253 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
254 | am_cv_$1_dependencies_compiler_type=$depmode | |
255 | break | |
256 | fi | |
257 | fi | |
258 | done | |
259 | ||
260 | cd .. | |
261 | rm -rf conftest.dir | |
262 | else | |
263 | am_cv_$1_dependencies_compiler_type=none | |
264 | fi | |
265 | ]) | |
266 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
267 | AM_CONDITIONAL([am__fastdep$1], [ | |
268 | test "x$enable_dependency_tracking" != xno \ | |
269 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
270 | ]) | |
271 | ||
272 | ||
273 | # AM_SET_DEPDIR | |
274 | # ------------- | |
275 | # Choose a directory name for dependency files. | |
276 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
277 | AC_DEFUN([AM_SET_DEPDIR], | |
278 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
279 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
280 | ]) | |
281 | ||
282 | ||
283 | # AM_DEP_TRACK | |
284 | # ------------ | |
285 | AC_DEFUN([AM_DEP_TRACK], | |
286 | [AC_ARG_ENABLE(dependency-tracking, | |
287 | [ --disable-dependency-tracking speeds up one-time build | |
288 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
289 | if test "x$enable_dependency_tracking" != xno; then | |
290 | am_depcomp="$ac_aux_dir/depcomp" | |
291 | AMDEPBACKSLASH='\' | |
292 | fi | |
293 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
294 | AC_SUBST([AMDEPBACKSLASH])dnl | |
295 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
296 | ]) | |
297 | ||
298 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
299 | ||
300 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
301 | # Free Software Foundation, Inc. | |
302 | # | |
303 | # This file is free software; the Free Software Foundation | |
304 | # gives unlimited permission to copy and/or distribute it, | |
305 | # with or without modifications, as long as this notice is preserved. | |
306 | ||
307 | #serial 3 | |
308 | ||
309 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
310 | # ------------------------------ | |
311 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
312 | [for mf in $CONFIG_FILES; do | |
313 | # Strip MF so we end up with the name of the file. | |
314 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
315 | # Check whether this is an Automake generated Makefile or not. | |
316 | # We used to match only the files named `Makefile.in', but | |
317 | # some people rename them; so instead we look at the file content. | |
318 | # Grep'ing the first line is not enough: some people post-process | |
319 | # each Makefile.in and add a new line on top of each file to say so. | |
320 | # Grep'ing the whole file is not good either: AIX grep has a line | |
321 | # limit of 2048, but all sed's we know have understand at least 4000. | |
322 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then | |
323 | dirpart=`AS_DIRNAME("$mf")` | |
324 | else | |
325 | continue | |
326 | fi | |
327 | # Extract the definition of DEPDIR, am__include, and am__quote | |
328 | # from the Makefile without running `make'. | |
329 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
330 | test -z "$DEPDIR" && continue | |
331 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
332 | test -z "am__include" && continue | |
333 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
334 | # When using ansi2knr, U may be empty or an underscore; expand it | |
335 | U=`sed -n 's/^U = //p' < "$mf"` | |
336 | # Find all dependency output files, they are included files with | |
337 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
338 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
339 | # expansion. | |
340 | for file in `sed -n " | |
341 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
342 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
343 | # Make sure the directory exists. | |
344 | test -f "$dirpart/$file" && continue | |
345 | fdir=`AS_DIRNAME(["$file"])` | |
346 | AS_MKDIR_P([$dirpart/$fdir]) | |
347 | # echo "creating $dirpart/$file" | |
348 | echo '# dummy' > "$dirpart/$file" | |
349 | done | |
350 | done | |
351 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
352 | ||
353 | ||
354 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
355 | # ----------------------------- | |
356 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
357 | # | |
358 | # This code is only required when automatic dependency tracking | |
359 | # is enabled. FIXME. This creates each `.P' file that we will | |
360 | # need in order to bootstrap the dependency handling code. | |
361 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
362 | [AC_CONFIG_COMMANDS([depfiles], | |
363 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
364 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
365 | ]) | |
366 | ||
367 | # Do all the work for Automake. -*- Autoconf -*- | |
368 | ||
369 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
370 | # 2005, 2006 Free Software Foundation, Inc. | |
371 | # | |
372 | # This file is free software; the Free Software Foundation | |
373 | # gives unlimited permission to copy and/or distribute it, | |
374 | # with or without modifications, as long as this notice is preserved. | |
375 | ||
376 | # serial 12 | |
377 | ||
378 | # This macro actually does too much. Some checks are only needed if | |
379 | # your package does certain things. But this isn't really a big deal. | |
380 | ||
381 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
382 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
383 | # ----------------------------------------------- | |
384 | # The call with PACKAGE and VERSION arguments is the old style | |
385 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
386 | # and VERSION should now be passed to AC_INIT and removed from | |
387 | # the call to AM_INIT_AUTOMAKE. | |
388 | # We support both call styles for the transition. After | |
389 | # the next Automake release, Autoconf can make the AC_INIT | |
390 | # arguments mandatory, and then we can depend on a new Autoconf | |
391 | # release and drop the old call support. | |
392 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
393 | [AC_PREREQ([2.60])dnl | |
394 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
395 | dnl the ones we care about. | |
396 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
397 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
398 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
399 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
400 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
401 | # is not polluted with repeated "-I." | |
402 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
403 | # test to see if srcdir already configured | |
404 | if test -f $srcdir/config.status; then | |
405 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
406 | fi | |
407 | fi | |
408 | ||
409 | # test whether we have cygpath | |
410 | if test -z "$CYGPATH_W"; then | |
411 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
412 | CYGPATH_W='cygpath -w' | |
413 | else | |
414 | CYGPATH_W=echo | |
415 | fi | |
416 | fi | |
417 | AC_SUBST([CYGPATH_W]) | |
418 | ||
419 | # Define the identity of the package. | |
420 | dnl Distinguish between old-style and new-style calls. | |
421 | m4_ifval([$2], | |
422 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
423 | AC_SUBST([PACKAGE], [$1])dnl | |
424 | AC_SUBST([VERSION], [$2])], | |
425 | [_AM_SET_OPTIONS([$1])dnl | |
426 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
427 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
428 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
429 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
430 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
431 | ||
432 | _AM_IF_OPTION([no-define],, | |
433 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
434 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
435 | ||
436 | # Some tools Automake needs. | |
437 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
438 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
439 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
440 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
441 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
442 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
443 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
444 | AM_PROG_INSTALL_SH | |
445 | AM_PROG_INSTALL_STRIP | |
446 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
447 | # We need awk for the "check" target. The system "awk" is bad on | |
448 | # some platforms. | |
449 | AC_REQUIRE([AC_PROG_AWK])dnl | |
450 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
451 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
452 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
453 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
454 | [_AM_PROG_TAR([v7])])]) | |
455 | _AM_IF_OPTION([no-dependencies],, | |
456 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
457 | [_AM_DEPENDENCIES(CC)], | |
458 | [define([AC_PROG_CC], | |
459 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
460 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
461 | [_AM_DEPENDENCIES(CXX)], | |
462 | [define([AC_PROG_CXX], | |
463 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
464 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
465 | [_AM_DEPENDENCIES(OBJC)], | |
466 | [define([AC_PROG_OBJC], | |
467 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
468 | ]) | |
469 | ]) | |
470 | ||
471 | ||
472 | # When config.status generates a header, we must update the stamp-h file. | |
473 | # This file resides in the same directory as the config header | |
474 | # that is generated. The stamp files are numbered to have different names. | |
475 | ||
476 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
477 | # loop where config.status creates the headers, so we can generate | |
478 | # our stamp files there. | |
479 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
480 | [# Compute $1's index in $config_headers. | |
481 | _am_stamp_count=1 | |
482 | for _am_header in $config_headers :; do | |
483 | case $_am_header in | |
484 | $1 | $1:* ) | |
485 | break ;; | |
486 | * ) | |
487 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
488 | esac | |
489 | done | |
490 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | |
491 | ||
492 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
493 | # | |
494 | # This file is free software; the Free Software Foundation | |
495 | # gives unlimited permission to copy and/or distribute it, | |
496 | # with or without modifications, as long as this notice is preserved. | |
497 | ||
498 | # AM_PROG_INSTALL_SH | |
499 | # ------------------ | |
500 | # Define $install_sh. | |
501 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
502 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
503 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
504 | AC_SUBST(install_sh)]) | |
505 | ||
506 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
507 | # | |
508 | # This file is free software; the Free Software Foundation | |
509 | # gives unlimited permission to copy and/or distribute it, | |
510 | # with or without modifications, as long as this notice is preserved. | |
511 | ||
512 | # serial 2 | |
513 | ||
514 | # Check whether the underlying file-system supports filenames | |
515 | # with a leading dot. For instance MS-DOS doesn't. | |
516 | AC_DEFUN([AM_SET_LEADING_DOT], | |
517 | [rm -rf .tst 2>/dev/null | |
518 | mkdir .tst 2>/dev/null | |
519 | if test -d .tst; then | |
520 | am__leading_dot=. | |
521 | else | |
522 | am__leading_dot=_ | |
523 | fi | |
524 | rmdir .tst 2>/dev/null | |
525 | AC_SUBST([am__leading_dot])]) | |
526 | ||
527 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
528 | # From Jim Meyering | |
529 | ||
530 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 | |
531 | # Free Software Foundation, Inc. | |
532 | # | |
533 | # This file is free software; the Free Software Foundation | |
534 | # gives unlimited permission to copy and/or distribute it, | |
535 | # with or without modifications, as long as this notice is preserved. | |
536 | ||
537 | # serial 4 | |
538 | ||
539 | AC_DEFUN([AM_MAINTAINER_MODE], | |
540 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | |
541 | dnl maintainer-mode is disabled by default | |
542 | AC_ARG_ENABLE(maintainer-mode, | |
543 | [ --enable-maintainer-mode enable make rules and dependencies not useful | |
544 | (and sometimes confusing) to the casual installer], | |
545 | USE_MAINTAINER_MODE=$enableval, | |
546 | USE_MAINTAINER_MODE=no) | |
547 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
548 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) | |
549 | MAINT=$MAINTAINER_MODE_TRUE | |
550 | AC_SUBST(MAINT)dnl | |
551 | ] | |
552 | ) | |
553 | ||
554 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
555 | ||
556 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
557 | ||
558 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |
559 | # | |
560 | # This file is free software; the Free Software Foundation | |
561 | # gives unlimited permission to copy and/or distribute it, | |
562 | # with or without modifications, as long as this notice is preserved. | |
563 | ||
564 | # serial 3 | |
565 | ||
566 | # AM_MAKE_INCLUDE() | |
567 | # ----------------- | |
568 | # Check to see how make treats includes. | |
569 | AC_DEFUN([AM_MAKE_INCLUDE], | |
570 | [am_make=${MAKE-make} | |
571 | cat > confinc << 'END' | |
572 | am__doit: | |
573 | @echo done | |
574 | .PHONY: am__doit | |
575 | END | |
576 | # If we don't find an include directive, just comment out the code. | |
577 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
578 | am__include="#" | |
579 | am__quote= | |
580 | _am_result=none | |
581 | # First try GNU make style include. | |
582 | echo "include confinc" > confmf | |
583 | # We grep out `Entering directory' and `Leaving directory' | |
584 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
585 | # In particular we don't look at `^make:' because GNU make might | |
586 | # be invoked under some other name (usually "gmake"), in which | |
587 | # case it prints its new name instead of `make'. | |
588 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
589 | am__include=include | |
590 | am__quote= | |
591 | _am_result=GNU | |
592 | fi | |
593 | # Now try BSD make style include. | |
594 | if test "$am__include" = "#"; then | |
595 | echo '.include "confinc"' > confmf | |
596 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
597 | am__include=.include | |
598 | am__quote="\"" | |
599 | _am_result=BSD | |
600 | fi | |
601 | fi | |
602 | AC_SUBST([am__include]) | |
603 | AC_SUBST([am__quote]) | |
604 | AC_MSG_RESULT([$_am_result]) | |
605 | rm -f confinc confmf | |
606 | ]) | |
607 | ||
608 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
609 | ||
610 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 | |
611 | # Free Software Foundation, Inc. | |
612 | # | |
613 | # This file is free software; the Free Software Foundation | |
614 | # gives unlimited permission to copy and/or distribute it, | |
615 | # with or without modifications, as long as this notice is preserved. | |
616 | ||
617 | # serial 5 | |
618 | ||
619 | # AM_MISSING_PROG(NAME, PROGRAM) | |
620 | # ------------------------------ | |
621 | AC_DEFUN([AM_MISSING_PROG], | |
622 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
623 | $1=${$1-"${am_missing_run}$2"} | |
624 | AC_SUBST($1)]) | |
625 | ||
626 | ||
627 | # AM_MISSING_HAS_RUN | |
628 | # ------------------ | |
629 | # Define MISSING if not defined so far and test if it supports --run. | |
630 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
631 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
632 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
633 | AC_REQUIRE_AUX_FILE([missing])dnl | |
634 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
635 | # Use eval to expand $SHELL | |
636 | if eval "$MISSING --run true"; then | |
637 | am_missing_run="$MISSING --run " | |
638 | else | |
639 | am_missing_run= | |
640 | AC_MSG_WARN([`missing' script is too old or missing]) | |
641 | fi | |
642 | ]) | |
643 | ||
644 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
645 | # | |
646 | # This file is free software; the Free Software Foundation | |
647 | # gives unlimited permission to copy and/or distribute it, | |
648 | # with or without modifications, as long as this notice is preserved. | |
649 | ||
650 | # AM_PROG_MKDIR_P | |
651 | # --------------- | |
652 | # Check for `mkdir -p'. | |
653 | AC_DEFUN([AM_PROG_MKDIR_P], | |
654 | [AC_PREREQ([2.60])dnl | |
655 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
656 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
657 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
658 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
659 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
660 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
661 | dnl adjustment using top_builddir (which is defined more often than | |
662 | dnl MKDIR_P). | |
663 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
664 | case $mkdir_p in | |
665 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
666 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
667 | esac | |
668 | ]) | |
669 | ||
670 | # Helper functions for option handling. -*- Autoconf -*- | |
671 | ||
672 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |
673 | # | |
674 | # This file is free software; the Free Software Foundation | |
675 | # gives unlimited permission to copy and/or distribute it, | |
676 | # with or without modifications, as long as this notice is preserved. | |
677 | ||
678 | # serial 3 | |
679 | ||
680 | # _AM_MANGLE_OPTION(NAME) | |
681 | # ----------------------- | |
682 | AC_DEFUN([_AM_MANGLE_OPTION], | |
683 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
684 | ||
685 | # _AM_SET_OPTION(NAME) | |
686 | # ------------------------------ | |
687 | # Set option NAME. Presently that only means defining a flag for this option. | |
688 | AC_DEFUN([_AM_SET_OPTION], | |
689 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
690 | ||
691 | # _AM_SET_OPTIONS(OPTIONS) | |
692 | # ---------------------------------- | |
693 | # OPTIONS is a space-separated list of Automake options. | |
694 | AC_DEFUN([_AM_SET_OPTIONS], | |
695 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
696 | ||
697 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
698 | # ------------------------------------------- | |
699 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
700 | AC_DEFUN([_AM_IF_OPTION], | |
701 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
702 | ||
703 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
704 | ||
705 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
706 | # Free Software Foundation, Inc. | |
707 | # | |
708 | # This file is free software; the Free Software Foundation | |
709 | # gives unlimited permission to copy and/or distribute it, | |
710 | # with or without modifications, as long as this notice is preserved. | |
711 | ||
712 | # serial 4 | |
713 | ||
714 | # AM_SANITY_CHECK | |
715 | # --------------- | |
716 | AC_DEFUN([AM_SANITY_CHECK], | |
717 | [AC_MSG_CHECKING([whether build environment is sane]) | |
718 | # Just in case | |
719 | sleep 1 | |
720 | echo timestamp > conftest.file | |
721 | # Do `set' in a subshell so we don't clobber the current shell's | |
722 | # arguments. Must try -L first in case configure is actually a | |
723 | # symlink; some systems play weird games with the mod time of symlinks | |
724 | # (eg FreeBSD returns the mod time of the symlink's containing | |
725 | # directory). | |
726 | if ( | |
727 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
728 | if test "$[*]" = "X"; then | |
729 | # -L didn't work. | |
730 | set X `ls -t $srcdir/configure conftest.file` | |
731 | fi | |
732 | rm -f conftest.file | |
733 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
734 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
735 | ||
736 | # If neither matched, then we have a broken ls. This can happen | |
737 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
738 | # broken ls alias from the environment. This has actually | |
739 | # happened. Such a system could not be considered "sane". | |
740 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
741 | alias in your environment]) | |
742 | fi | |
743 | ||
744 | test "$[2]" = conftest.file | |
745 | ) | |
746 | then | |
747 | # Ok. | |
748 | : | |
749 | else | |
750 | AC_MSG_ERROR([newly created file is older than distributed files! | |
751 | Check your system clock]) | |
752 | fi | |
753 | AC_MSG_RESULT(yes)]) | |
754 | ||
755 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
756 | # | |
757 | # This file is free software; the Free Software Foundation | |
758 | # gives unlimited permission to copy and/or distribute it, | |
759 | # with or without modifications, as long as this notice is preserved. | |
760 | ||
761 | # AM_PROG_INSTALL_STRIP | |
762 | # --------------------- | |
763 | # One issue with vendor `install' (even GNU) is that you can't | |
764 | # specify the program used to strip binaries. This is especially | |
765 | # annoying in cross-compiling environments, where the build's strip | |
766 | # is unlikely to handle the host's binaries. | |
767 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
768 | # always use install-sh in `make install-strip', and initialize | |
769 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
770 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
771 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
772 | # Installed binaries are usually stripped using `strip' when the user | |
773 | # run `make install-strip'. However `strip' might not be the right | |
774 | # tool to use in cross-compilation environments, therefore Automake | |
775 | # will honor the `STRIP' environment variable to overrule this program. | |
776 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
777 | if test "$cross_compiling" != no; then | |
778 | AC_CHECK_TOOL([STRIP], [strip], :) | |
779 | fi | |
780 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
781 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
782 | ||
783 | # Copyright (C) 2006 Free Software Foundation, Inc. | |
784 | # | |
785 | # This file is free software; the Free Software Foundation | |
786 | # gives unlimited permission to copy and/or distribute it, | |
787 | # with or without modifications, as long as this notice is preserved. | |
788 | ||
789 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
790 | # --------------------------- | |
791 | # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. | |
792 | # This macro is traced by Automake. | |
793 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
794 | ||
795 | # Check how to create a tarball. -*- Autoconf -*- | |
796 | ||
797 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
798 | # | |
799 | # This file is free software; the Free Software Foundation | |
800 | # gives unlimited permission to copy and/or distribute it, | |
801 | # with or without modifications, as long as this notice is preserved. | |
802 | ||
803 | # serial 2 | |
804 | ||
805 | # _AM_PROG_TAR(FORMAT) | |
806 | # -------------------- | |
807 | # Check how to create a tarball in format FORMAT. | |
808 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
809 | # | |
810 | # Substitute a variable $(am__tar) that is a command | |
811 | # writing to stdout a FORMAT-tarball containing the directory | |
812 | # $tardir. | |
813 | # tardir=directory && $(am__tar) > result.tar | |
814 | # | |
815 | # Substitute a variable $(am__untar) that extract such | |
816 | # a tarball read from stdin. | |
817 | # $(am__untar) < result.tar | |
818 | AC_DEFUN([_AM_PROG_TAR], | |
819 | [# Always define AMTAR for backward compatibility. | |
820 | AM_MISSING_PROG([AMTAR], [tar]) | |
821 | m4_if([$1], [v7], | |
822 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
823 | [m4_case([$1], [ustar],, [pax],, | |
824 | [m4_fatal([Unknown tar format])]) | |
825 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
826 | # Loop over all known methods to create a tar archive until one works. | |
827 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
828 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
829 | # Do not fold the above two line into one, because Tru64 sh and | |
830 | # Solaris sh will not grok spaces in the rhs of `-'. | |
831 | for _am_tool in $_am_tools | |
832 | do | |
833 | case $_am_tool in | |
834 | gnutar) | |
835 | for _am_tar in tar gnutar gtar; | |
836 | do | |
837 | AM_RUN_LOG([$_am_tar --version]) && break | |
838 | done | |
839 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
840 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
841 | am__untar="$_am_tar -xf -" | |
842 | ;; | |
843 | plaintar) | |
844 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
845 | # ustar tarball either. | |
846 | (tar --version) >/dev/null 2>&1 && continue | |
847 | am__tar='tar chf - "$$tardir"' | |
848 | am__tar_='tar chf - "$tardir"' | |
849 | am__untar='tar xf -' | |
850 | ;; | |
851 | pax) | |
852 | am__tar='pax -L -x $1 -w "$$tardir"' | |
853 | am__tar_='pax -L -x $1 -w "$tardir"' | |
854 | am__untar='pax -r' | |
855 | ;; | |
856 | cpio) | |
857 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
858 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
859 | am__untar='cpio -i -H $1 -d' | |
860 | ;; | |
861 | none) | |
862 | am__tar=false | |
863 | am__tar_=false | |
864 | am__untar=false | |
865 | ;; | |
866 | esac | |
867 | ||
868 | # If the value was cached, stop now. We just wanted to have am__tar | |
869 | # and am__untar set. | |
870 | test -n "${am_cv_prog_tar_$1}" && break | |
871 | ||
872 | # tar/untar a dummy directory, and stop if the command works | |
873 | rm -rf conftest.dir | |
874 | mkdir conftest.dir | |
875 | echo GrepMe > conftest.dir/file | |
876 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
877 | rm -rf conftest.dir | |
878 | if test -s conftest.tar; then | |
879 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
880 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
881 | fi | |
882 | done | |
883 | rm -rf conftest.dir | |
884 | ||
885 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
886 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
887 | AC_SUBST([am__tar]) | |
888 | AC_SUBST([am__untar]) | |
889 | ]) # _AM_PROG_TAR | |
890 |
15 | 15 | * * |
16 | 16 | ***************************************************************************/ |
17 | 17 | |
18 | #ifdef HAVE_CONFIG_H | |
19 | # include "config.h" | |
20 | #endif | |
18 | 21 | |
19 | 22 | /* incorporates color features added by Bruno ALIX */ |
20 | 23 |
0 | #! /bin/sh | |
1 | # Attempt to guess a canonical system name. | |
2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, | |
4 | # Inc. | |
5 | ||
6 | timestamp='2006-07-02' | |
7 | ||
8 | # This file is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
21 | # 02110-1301, USA. | |
22 | # | |
23 | # As a special exception to the GNU General Public License, if you | |
24 | # distribute this file as part of a program that contains a | |
25 | # configuration script generated by Autoconf, you may include it under | |
26 | # the same distribution terms that you use for the rest of that program. | |
27 | ||
28 | ||
29 | # Originally written by Per Bothner <per@bothner.com>. | |
30 | # Please send patches to <config-patches@gnu.org>. Submit a context | |
31 | # diff and a properly formatted ChangeLog entry. | |
32 | # | |
33 | # This script attempts to guess a canonical system name similar to | |
34 | # config.sub. If it succeeds, it prints the system name on stdout, and | |
35 | # exits with 0. Otherwise, it exits with 1. | |
36 | # | |
37 | # The plan is that this can be called by configure scripts if you | |
38 | # don't specify an explicit build system type. | |
39 | ||
40 | me=`echo "$0" | sed -e 's,.*/,,'` | |
41 | ||
42 | usage="\ | |
43 | Usage: $0 [OPTION] | |
44 | ||
45 | Output the configuration name of the system \`$me' is run on. | |
46 | ||
47 | Operation modes: | |
48 | -h, --help print this help, then exit | |
49 | -t, --time-stamp print date of last modification, then exit | |
50 | -v, --version print version number, then exit | |
51 | ||
52 | Report bugs and patches to <config-patches@gnu.org>." | |
53 | ||
54 | version="\ | |
55 | GNU config.guess ($timestamp) | |
56 | ||
57 | Originally written by Per Bothner. | |
58 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
59 | Free Software Foundation, Inc. | |
60 | ||
61 | This is free software; see the source for copying conditions. There is NO | |
62 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
63 | ||
64 | help=" | |
65 | Try \`$me --help' for more information." | |
66 | ||
67 | # Parse command line | |
68 | while test $# -gt 0 ; do | |
69 | case $1 in | |
70 | --time-stamp | --time* | -t ) | |
71 | echo "$timestamp" ; exit ;; | |
72 | --version | -v ) | |
73 | echo "$version" ; exit ;; | |
74 | --help | --h* | -h ) | |
75 | echo "$usage"; exit ;; | |
76 | -- ) # Stop option processing | |
77 | shift; break ;; | |
78 | - ) # Use stdin as input. | |
79 | break ;; | |
80 | -* ) | |
81 | echo "$me: invalid option $1$help" >&2 | |
82 | exit 1 ;; | |
83 | * ) | |
84 | break ;; | |
85 | esac | |
86 | done | |
87 | ||
88 | if test $# != 0; then | |
89 | echo "$me: too many arguments$help" >&2 | |
90 | exit 1 | |
91 | fi | |
92 | ||
93 | trap 'exit 1' 1 2 15 | |
94 | ||
95 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | |
96 | # compiler to aid in system detection is discouraged as it requires | |
97 | # temporary files to be created and, as you can see below, it is a | |
98 | # headache to deal with in a portable fashion. | |
99 | ||
100 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | |
101 | # use `HOST_CC' if defined, but it is deprecated. | |
102 | ||
103 | # Portable tmp directory creation inspired by the Autoconf team. | |
104 | ||
105 | set_cc_for_build=' | |
106 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
107 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
108 | : ${TMPDIR=/tmp} ; | |
109 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
110 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
111 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
112 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
113 | dummy=$tmp/dummy ; | |
114 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
115 | case $CC_FOR_BUILD,$HOST_CC,$CC in | |
116 | ,,) echo "int x;" > $dummy.c ; | |
117 | for c in cc gcc c89 c99 ; do | |
118 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
119 | CC_FOR_BUILD="$c"; break ; | |
120 | fi ; | |
121 | done ; | |
122 | if test x"$CC_FOR_BUILD" = x ; then | |
123 | CC_FOR_BUILD=no_compiler_found ; | |
124 | fi | |
125 | ;; | |
126 | ,,*) CC_FOR_BUILD=$CC ;; | |
127 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
128 | esac ; set_cc_for_build= ;' | |
129 | ||
130 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | |
131 | # (ghazi@noc.rutgers.edu 1994-08-24) | |
132 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | |
133 | PATH=$PATH:/.attbin ; export PATH | |
134 | fi | |
135 | ||
136 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | |
137 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | |
138 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
139 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | |
140 | ||
141 | # Note: order is significant - the case branches are not exclusive. | |
142 | ||
143 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
144 | *:NetBSD:*:*) | |
145 | # NetBSD (nbsd) targets should (where applicable) match one or | |
146 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
147 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
148 | # switched to ELF, *-*-netbsd* would select the old | |
149 | # object file format. This provides both forward | |
150 | # compatibility and a consistent mechanism for selecting the | |
151 | # object file format. | |
152 | # | |
153 | # Note: NetBSD doesn't particularly care about the vendor | |
154 | # portion of the name. We always set it to "unknown". | |
155 | sysctl="sysctl -n hw.machine_arch" | |
156 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | |
157 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | |
158 | case "${UNAME_MACHINE_ARCH}" in | |
159 | armeb) machine=armeb-unknown ;; | |
160 | arm*) machine=arm-unknown ;; | |
161 | sh3el) machine=shl-unknown ;; | |
162 | sh3eb) machine=sh-unknown ;; | |
163 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
164 | esac | |
165 | # The Operating System including object format, if it has switched | |
166 | # to ELF recently, or will in the future. | |
167 | case "${UNAME_MACHINE_ARCH}" in | |
168 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
169 | eval $set_cc_for_build | |
170 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
171 | | grep __ELF__ >/dev/null | |
172 | then | |
173 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
174 | # Return netbsd for either. FIX? | |
175 | os=netbsd | |
176 | else | |
177 | os=netbsdelf | |
178 | fi | |
179 | ;; | |
180 | *) | |
181 | os=netbsd | |
182 | ;; | |
183 | esac | |
184 | # The OS release | |
185 | # Debian GNU/NetBSD machines have a different userland, and | |
186 | # thus, need a distinct triplet. However, they do not need | |
187 | # kernel version information, so it can be replaced with a | |
188 | # suitable tag, in the style of linux-gnu. | |
189 | case "${UNAME_VERSION}" in | |
190 | Debian*) | |
191 | release='-gnu' | |
192 | ;; | |
193 | *) | |
194 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
195 | ;; | |
196 | esac | |
197 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |
198 | # contains redundant information, the shorter form: | |
199 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
200 | echo "${machine}-${os}${release}" | |
201 | exit ;; | |
202 | *:OpenBSD:*:*) | |
203 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |
204 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
205 | exit ;; | |
206 | *:ekkoBSD:*:*) | |
207 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
208 | exit ;; | |
209 | *:SolidBSD:*:*) | |
210 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
211 | exit ;; | |
212 | macppc:MirBSD:*:*) | |
213 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
214 | exit ;; | |
215 | *:MirBSD:*:*) | |
216 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
217 | exit ;; | |
218 | alpha:OSF1:*:*) | |
219 | case $UNAME_RELEASE in | |
220 | *4.0) | |
221 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | |
222 | ;; | |
223 | *5.*) | |
224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
225 | ;; | |
226 | esac | |
227 | # According to Compaq, /usr/sbin/psrinfo has been available on | |
228 | # OSF/1 and Tru64 systems produced since 1995. I hope that | |
229 | # covers most systems running today. This code pipes the CPU | |
230 | # types through head -n 1, so we only detect the type of CPU 0. | |
231 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | |
232 | case "$ALPHA_CPU_TYPE" in | |
233 | "EV4 (21064)") | |
234 | UNAME_MACHINE="alpha" ;; | |
235 | "EV4.5 (21064)") | |
236 | UNAME_MACHINE="alpha" ;; | |
237 | "LCA4 (21066/21068)") | |
238 | UNAME_MACHINE="alpha" ;; | |
239 | "EV5 (21164)") | |
240 | UNAME_MACHINE="alphaev5" ;; | |
241 | "EV5.6 (21164A)") | |
242 | UNAME_MACHINE="alphaev56" ;; | |
243 | "EV5.6 (21164PC)") | |
244 | UNAME_MACHINE="alphapca56" ;; | |
245 | "EV5.7 (21164PC)") | |
246 | UNAME_MACHINE="alphapca57" ;; | |
247 | "EV6 (21264)") | |
248 | UNAME_MACHINE="alphaev6" ;; | |
249 | "EV6.7 (21264A)") | |
250 | UNAME_MACHINE="alphaev67" ;; | |
251 | "EV6.8CB (21264C)") | |
252 | UNAME_MACHINE="alphaev68" ;; | |
253 | "EV6.8AL (21264B)") | |
254 | UNAME_MACHINE="alphaev68" ;; | |
255 | "EV6.8CX (21264D)") | |
256 | UNAME_MACHINE="alphaev68" ;; | |
257 | "EV6.9A (21264/EV69A)") | |
258 | UNAME_MACHINE="alphaev69" ;; | |
259 | "EV7 (21364)") | |
260 | UNAME_MACHINE="alphaev7" ;; | |
261 | "EV7.9 (21364A)") | |
262 | UNAME_MACHINE="alphaev79" ;; | |
263 | esac | |
264 | # A Pn.n version is a patched version. | |
265 | # A Vn.n version is a released version. | |
266 | # A Tn.n version is a released field test version. | |
267 | # A Xn.n version is an unreleased experimental baselevel. | |
268 | # 1.2 uses "1.2" for uname -r. | |
269 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
270 | exit ;; | |
271 | Alpha\ *:Windows_NT*:*) | |
272 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
273 | # Should we change UNAME_MACHINE based on the output of uname instead | |
274 | # of the specific Alpha model? | |
275 | echo alpha-pc-interix | |
276 | exit ;; | |
277 | 21064:Windows_NT:50:3) | |
278 | echo alpha-dec-winnt3.5 | |
279 | exit ;; | |
280 | Amiga*:UNIX_System_V:4.0:*) | |
281 | echo m68k-unknown-sysv4 | |
282 | exit ;; | |
283 | *:[Aa]miga[Oo][Ss]:*:*) | |
284 | echo ${UNAME_MACHINE}-unknown-amigaos | |
285 | exit ;; | |
286 | *:[Mm]orph[Oo][Ss]:*:*) | |
287 | echo ${UNAME_MACHINE}-unknown-morphos | |
288 | exit ;; | |
289 | *:OS/390:*:*) | |
290 | echo i370-ibm-openedition | |
291 | exit ;; | |
292 | *:z/VM:*:*) | |
293 | echo s390-ibm-zvmoe | |
294 | exit ;; | |
295 | *:OS400:*:*) | |
296 | echo powerpc-ibm-os400 | |
297 | exit ;; | |
298 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | |
299 | echo arm-acorn-riscix${UNAME_RELEASE} | |
300 | exit ;; | |
301 | arm:riscos:*:*|arm:RISCOS:*:*) | |
302 | echo arm-unknown-riscos | |
303 | exit ;; | |
304 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | |
305 | echo hppa1.1-hitachi-hiuxmpp | |
306 | exit ;; | |
307 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | |
308 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | |
309 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | |
310 | echo pyramid-pyramid-sysv3 | |
311 | else | |
312 | echo pyramid-pyramid-bsd | |
313 | fi | |
314 | exit ;; | |
315 | NILE*:*:*:dcosx) | |
316 | echo pyramid-pyramid-svr4 | |
317 | exit ;; | |
318 | DRS?6000:unix:4.0:6*) | |
319 | echo sparc-icl-nx6 | |
320 | exit ;; | |
321 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | |
322 | case `/usr/bin/uname -p` in | |
323 | sparc) echo sparc-icl-nx7; exit ;; | |
324 | esac ;; | |
325 | sun4H:SunOS:5.*:*) | |
326 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
327 | exit ;; | |
328 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
329 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
330 | exit ;; | |
331 | i86pc:SunOS:5.*:*) | |
332 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
333 | exit ;; | |
334 | sun4*:SunOS:6*:*) | |
335 | # According to config.sub, this is the proper way to canonicalize | |
336 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
337 | # it's likely to be more like Solaris than SunOS4. | |
338 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
339 | exit ;; | |
340 | sun4*:SunOS:*:*) | |
341 | case "`/usr/bin/arch -k`" in | |
342 | Series*|S4*) | |
343 | UNAME_RELEASE=`uname -v` | |
344 | ;; | |
345 | esac | |
346 | # Japanese Language versions have a version number like `4.1.3-JL'. | |
347 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
348 | exit ;; | |
349 | sun3*:SunOS:*:*) | |
350 | echo m68k-sun-sunos${UNAME_RELEASE} | |
351 | exit ;; | |
352 | sun*:*:4.2BSD:*) | |
353 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | |
354 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
355 | case "`/bin/arch`" in | |
356 | sun3) | |
357 | echo m68k-sun-sunos${UNAME_RELEASE} | |
358 | ;; | |
359 | sun4) | |
360 | echo sparc-sun-sunos${UNAME_RELEASE} | |
361 | ;; | |
362 | esac | |
363 | exit ;; | |
364 | aushp:SunOS:*:*) | |
365 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
366 | exit ;; | |
367 | # The situation for MiNT is a little confusing. The machine name | |
368 | # can be virtually everything (everything which is not | |
369 | # "atarist" or "atariste" at least should have a processor | |
370 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | |
371 | # to the lowercase version "mint" (or "freemint"). Finally | |
372 | # the system name "TOS" denotes a system which is actually not | |
373 | # MiNT. But MiNT is downward compatible to TOS, so this should | |
374 | # be no problem. | |
375 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | |
376 | echo m68k-atari-mint${UNAME_RELEASE} | |
377 | exit ;; | |
378 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | |
379 | echo m68k-atari-mint${UNAME_RELEASE} | |
380 | exit ;; | |
381 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | |
382 | echo m68k-atari-mint${UNAME_RELEASE} | |
383 | exit ;; | |
384 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | |
385 | echo m68k-milan-mint${UNAME_RELEASE} | |
386 | exit ;; | |
387 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | |
388 | echo m68k-hades-mint${UNAME_RELEASE} | |
389 | exit ;; | |
390 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | |
391 | echo m68k-unknown-mint${UNAME_RELEASE} | |
392 | exit ;; | |
393 | m68k:machten:*:*) | |
394 | echo m68k-apple-machten${UNAME_RELEASE} | |
395 | exit ;; | |
396 | powerpc:machten:*:*) | |
397 | echo powerpc-apple-machten${UNAME_RELEASE} | |
398 | exit ;; | |
399 | RISC*:Mach:*:*) | |
400 | echo mips-dec-mach_bsd4.3 | |
401 | exit ;; | |
402 | RISC*:ULTRIX:*:*) | |
403 | echo mips-dec-ultrix${UNAME_RELEASE} | |
404 | exit ;; | |
405 | VAX*:ULTRIX*:*:*) | |
406 | echo vax-dec-ultrix${UNAME_RELEASE} | |
407 | exit ;; | |
408 | 2020:CLIX:*:* | 2430:CLIX:*:*) | |
409 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
410 | exit ;; | |
411 | mips:*:*:UMIPS | mips:*:*:RISCos) | |
412 | eval $set_cc_for_build | |
413 | sed 's/^ //' << EOF >$dummy.c | |
414 | #ifdef __cplusplus | |
415 | #include <stdio.h> /* for printf() prototype */ | |
416 | int main (int argc, char *argv[]) { | |
417 | #else | |
418 | int main (argc, argv) int argc; char *argv[]; { | |
419 | #endif | |
420 | #if defined (host_mips) && defined (MIPSEB) | |
421 | #if defined (SYSTYPE_SYSV) | |
422 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
423 | #endif | |
424 | #if defined (SYSTYPE_SVR4) | |
425 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
426 | #endif | |
427 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | |
428 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
429 | #endif | |
430 | #endif | |
431 | exit (-1); | |
432 | } | |
433 | EOF | |
434 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
435 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
436 | SYSTEM_NAME=`$dummy $dummyarg` && | |
437 | { echo "$SYSTEM_NAME"; exit; } | |
438 | echo mips-mips-riscos${UNAME_RELEASE} | |
439 | exit ;; | |
440 | Motorola:PowerMAX_OS:*:*) | |
441 | echo powerpc-motorola-powermax | |
442 | exit ;; | |
443 | Motorola:*:4.3:PL8-*) | |
444 | echo powerpc-harris-powermax | |
445 | exit ;; | |
446 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
447 | echo powerpc-harris-powermax | |
448 | exit ;; | |
449 | Night_Hawk:Power_UNIX:*:*) | |
450 | echo powerpc-harris-powerunix | |
451 | exit ;; | |
452 | m88k:CX/UX:7*:*) | |
453 | echo m88k-harris-cxux7 | |
454 | exit ;; | |
455 | m88k:*:4*:R4*) | |
456 | echo m88k-motorola-sysv4 | |
457 | exit ;; | |
458 | m88k:*:3*:R3*) | |
459 | echo m88k-motorola-sysv3 | |
460 | exit ;; | |
461 | AViiON:dgux:*:*) | |
462 | # DG/UX returns AViiON for all architectures | |
463 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
464 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
465 | then | |
466 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
467 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
468 | then | |
469 | echo m88k-dg-dgux${UNAME_RELEASE} | |
470 | else | |
471 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
472 | fi | |
473 | else | |
474 | echo i586-dg-dgux${UNAME_RELEASE} | |
475 | fi | |
476 | exit ;; | |
477 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
478 | echo m88k-dolphin-sysv3 | |
479 | exit ;; | |
480 | M88*:*:R3*:*) | |
481 | # Delta 88k system running SVR3 | |
482 | echo m88k-motorola-sysv3 | |
483 | exit ;; | |
484 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | |
485 | echo m88k-tektronix-sysv3 | |
486 | exit ;; | |
487 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | |
488 | echo m68k-tektronix-bsd | |
489 | exit ;; | |
490 | *:IRIX*:*:*) | |
491 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
492 | exit ;; | |
493 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | |
494 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
495 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
496 | i*86:AIX:*:*) | |
497 | echo i386-ibm-aix | |
498 | exit ;; | |
499 | ia64:AIX:*:*) | |
500 | if [ -x /usr/bin/oslevel ] ; then | |
501 | IBM_REV=`/usr/bin/oslevel` | |
502 | else | |
503 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
504 | fi | |
505 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
506 | exit ;; | |
507 | *:AIX:2:3) | |
508 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | |
509 | eval $set_cc_for_build | |
510 | sed 's/^ //' << EOF >$dummy.c | |
511 | #include <sys/systemcfg.h> | |
512 | ||
513 | main() | |
514 | { | |
515 | if (!__power_pc()) | |
516 | exit(1); | |
517 | puts("powerpc-ibm-aix3.2.5"); | |
518 | exit(0); | |
519 | } | |
520 | EOF | |
521 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
522 | then | |
523 | echo "$SYSTEM_NAME" | |
524 | else | |
525 | echo rs6000-ibm-aix3.2.5 | |
526 | fi | |
527 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | |
528 | echo rs6000-ibm-aix3.2.4 | |
529 | else | |
530 | echo rs6000-ibm-aix3.2 | |
531 | fi | |
532 | exit ;; | |
533 | *:AIX:*:[45]) | |
534 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
535 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
536 | IBM_ARCH=rs6000 | |
537 | else | |
538 | IBM_ARCH=powerpc | |
539 | fi | |
540 | if [ -x /usr/bin/oslevel ] ; then | |
541 | IBM_REV=`/usr/bin/oslevel` | |
542 | else | |
543 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
544 | fi | |
545 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
546 | exit ;; | |
547 | *:AIX:*:*) | |
548 | echo rs6000-ibm-aix | |
549 | exit ;; | |
550 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
551 | echo romp-ibm-bsd4.4 | |
552 | exit ;; | |
553 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | |
554 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
555 | exit ;; # report: romp-ibm BSD 4.3 | |
556 | *:BOSX:*:*) | |
557 | echo rs6000-bull-bosx | |
558 | exit ;; | |
559 | DPX/2?00:B.O.S.:*:*) | |
560 | echo m68k-bull-sysv3 | |
561 | exit ;; | |
562 | 9000/[34]??:4.3bsd:1.*:*) | |
563 | echo m68k-hp-bsd | |
564 | exit ;; | |
565 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | |
566 | echo m68k-hp-bsd4.4 | |
567 | exit ;; | |
568 | 9000/[34678]??:HP-UX:*:*) | |
569 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
570 | case "${UNAME_MACHINE}" in | |
571 | 9000/31? ) HP_ARCH=m68000 ;; | |
572 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
573 | 9000/[678][0-9][0-9]) | |
574 | if [ -x /usr/bin/getconf ]; then | |
575 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
576 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
577 | case "${sc_cpu_version}" in | |
578 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
579 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
580 | 532) # CPU_PA_RISC2_0 | |
581 | case "${sc_kernel_bits}" in | |
582 | 32) HP_ARCH="hppa2.0n" ;; | |
583 | 64) HP_ARCH="hppa2.0w" ;; | |
584 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
585 | esac ;; | |
586 | esac | |
587 | fi | |
588 | if [ "${HP_ARCH}" = "" ]; then | |
589 | eval $set_cc_for_build | |
590 | sed 's/^ //' << EOF >$dummy.c | |
591 | ||
592 | #define _HPUX_SOURCE | |
593 | #include <stdlib.h> | |
594 | #include <unistd.h> | |
595 | ||
596 | int main () | |
597 | { | |
598 | #if defined(_SC_KERNEL_BITS) | |
599 | long bits = sysconf(_SC_KERNEL_BITS); | |
600 | #endif | |
601 | long cpu = sysconf (_SC_CPU_VERSION); | |
602 | ||
603 | switch (cpu) | |
604 | { | |
605 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
606 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
607 | case CPU_PA_RISC2_0: | |
608 | #if defined(_SC_KERNEL_BITS) | |
609 | switch (bits) | |
610 | { | |
611 | case 64: puts ("hppa2.0w"); break; | |
612 | case 32: puts ("hppa2.0n"); break; | |
613 | default: puts ("hppa2.0"); break; | |
614 | } break; | |
615 | #else /* !defined(_SC_KERNEL_BITS) */ | |
616 | puts ("hppa2.0"); break; | |
617 | #endif | |
618 | default: puts ("hppa1.0"); break; | |
619 | } | |
620 | exit (0); | |
621 | } | |
622 | EOF | |
623 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
624 | test -z "$HP_ARCH" && HP_ARCH=hppa | |
625 | fi ;; | |
626 | esac | |
627 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
628 | then | |
629 | eval $set_cc_for_build | |
630 | ||
631 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | |
632 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | |
633 | # generating 64-bit code. GNU and HP use different nomenclature: | |
634 | # | |
635 | # $ CC_FOR_BUILD=cc ./config.guess | |
636 | # => hppa2.0w-hp-hpux11.23 | |
637 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | |
638 | # => hppa64-hp-hpux11.23 | |
639 | ||
640 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
641 | grep __LP64__ >/dev/null | |
642 | then | |
643 | HP_ARCH="hppa2.0w" | |
644 | else | |
645 | HP_ARCH="hppa64" | |
646 | fi | |
647 | fi | |
648 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
649 | exit ;; | |
650 | ia64:HP-UX:*:*) | |
651 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
652 | echo ia64-hp-hpux${HPUX_REV} | |
653 | exit ;; | |
654 | 3050*:HI-UX:*:*) | |
655 | eval $set_cc_for_build | |
656 | sed 's/^ //' << EOF >$dummy.c | |
657 | #include <unistd.h> | |
658 | int | |
659 | main () | |
660 | { | |
661 | long cpu = sysconf (_SC_CPU_VERSION); | |
662 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns | |
663 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | |
664 | results, however. */ | |
665 | if (CPU_IS_PA_RISC (cpu)) | |
666 | { | |
667 | switch (cpu) | |
668 | { | |
669 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | |
670 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | |
671 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | |
672 | default: puts ("hppa-hitachi-hiuxwe2"); break; | |
673 | } | |
674 | } | |
675 | else if (CPU_IS_HP_MC68K (cpu)) | |
676 | puts ("m68k-hitachi-hiuxwe2"); | |
677 | else puts ("unknown-hitachi-hiuxwe2"); | |
678 | exit (0); | |
679 | } | |
680 | EOF | |
681 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
682 | { echo "$SYSTEM_NAME"; exit; } | |
683 | echo unknown-hitachi-hiuxwe2 | |
684 | exit ;; | |
685 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
686 | echo hppa1.1-hp-bsd | |
687 | exit ;; | |
688 | 9000/8??:4.3bsd:*:*) | |
689 | echo hppa1.0-hp-bsd | |
690 | exit ;; | |
691 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | |
692 | echo hppa1.0-hp-mpeix | |
693 | exit ;; | |
694 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
695 | echo hppa1.1-hp-osf | |
696 | exit ;; | |
697 | hp8??:OSF1:*:*) | |
698 | echo hppa1.0-hp-osf | |
699 | exit ;; | |
700 | i*86:OSF1:*:*) | |
701 | if [ -x /usr/sbin/sysversion ] ; then | |
702 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
703 | else | |
704 | echo ${UNAME_MACHINE}-unknown-osf1 | |
705 | fi | |
706 | exit ;; | |
707 | parisc*:Lites*:*:*) | |
708 | echo hppa1.1-hp-lites | |
709 | exit ;; | |
710 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
711 | echo c1-convex-bsd | |
712 | exit ;; | |
713 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
714 | if getsysinfo -f scalar_acc | |
715 | then echo c32-convex-bsd | |
716 | else echo c2-convex-bsd | |
717 | fi | |
718 | exit ;; | |
719 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | |
720 | echo c34-convex-bsd | |
721 | exit ;; | |
722 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | |
723 | echo c38-convex-bsd | |
724 | exit ;; | |
725 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | |
726 | echo c4-convex-bsd | |
727 | exit ;; | |
728 | CRAY*Y-MP:*:*:*) | |
729 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
730 | exit ;; | |
731 | CRAY*[A-Z]90:*:*:*) | |
732 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
733 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | |
734 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | |
735 | -e 's/\.[^.]*$/.X/' | |
736 | exit ;; | |
737 | CRAY*TS:*:*:*) | |
738 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
739 | exit ;; | |
740 | CRAY*T3E:*:*:*) | |
741 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
742 | exit ;; | |
743 | CRAY*SV1:*:*:*) | |
744 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
745 | exit ;; | |
746 | *:UNICOS/mp:*:*) | |
747 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
748 | exit ;; | |
749 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | |
750 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
751 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
752 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
753 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
754 | exit ;; | |
755 | 5000:UNIX_System_V:4.*:*) | |
756 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
757 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
758 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
759 | exit ;; | |
760 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
761 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
762 | exit ;; | |
763 | sparc*:BSD/OS:*:*) | |
764 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
765 | exit ;; | |
766 | *:BSD/OS:*:*) | |
767 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
768 | exit ;; | |
769 | *:FreeBSD:*:*) | |
770 | case ${UNAME_MACHINE} in | |
771 | pc98) | |
772 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
773 | amd64) | |
774 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
775 | *) | |
776 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
777 | esac | |
778 | exit ;; | |
779 | i*:CYGWIN*:*) | |
780 | echo ${UNAME_MACHINE}-pc-cygwin | |
781 | exit ;; | |
782 | i*:MINGW*:*) | |
783 | echo ${UNAME_MACHINE}-pc-mingw32 | |
784 | exit ;; | |
785 | i*:windows32*:*) | |
786 | # uname -m includes "-pc" on this system. | |
787 | echo ${UNAME_MACHINE}-mingw32 | |
788 | exit ;; | |
789 | i*:PW*:*) | |
790 | echo ${UNAME_MACHINE}-pc-pw32 | |
791 | exit ;; | |
792 | x86:Interix*:[3456]*) | |
793 | echo i586-pc-interix${UNAME_RELEASE} | |
794 | exit ;; | |
795 | EM64T:Interix*:[3456]*) | |
796 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
797 | exit ;; | |
798 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
799 | echo i${UNAME_MACHINE}-pc-mks | |
800 | exit ;; | |
801 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
802 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
803 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
804 | # UNAME_MACHINE based on the output of uname instead of i386? | |
805 | echo i586-pc-interix | |
806 | exit ;; | |
807 | i*:UWIN*:*) | |
808 | echo ${UNAME_MACHINE}-pc-uwin | |
809 | exit ;; | |
810 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | |
811 | echo x86_64-unknown-cygwin | |
812 | exit ;; | |
813 | p*:CYGWIN*:*) | |
814 | echo powerpcle-unknown-cygwin | |
815 | exit ;; | |
816 | prep*:SunOS:5.*:*) | |
817 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
818 | exit ;; | |
819 | *:GNU:*:*) | |
820 | # the GNU system | |
821 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
822 | exit ;; | |
823 | *:GNU/*:*:*) | |
824 | # other systems with GNU libc and userland | |
825 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
826 | exit ;; | |
827 | i*86:Minix:*:*) | |
828 | echo ${UNAME_MACHINE}-pc-minix | |
829 | exit ;; | |
830 | arm*:Linux:*:*) | |
831 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
832 | exit ;; | |
833 | avr32*:Linux:*:*) | |
834 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
835 | exit ;; | |
836 | cris:Linux:*:*) | |
837 | echo cris-axis-linux-gnu | |
838 | exit ;; | |
839 | crisv32:Linux:*:*) | |
840 | echo crisv32-axis-linux-gnu | |
841 | exit ;; | |
842 | frv:Linux:*:*) | |
843 | echo frv-unknown-linux-gnu | |
844 | exit ;; | |
845 | ia64:Linux:*:*) | |
846 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
847 | exit ;; | |
848 | m32r*:Linux:*:*) | |
849 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
850 | exit ;; | |
851 | m68*:Linux:*:*) | |
852 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
853 | exit ;; | |
854 | mips:Linux:*:*) | |
855 | eval $set_cc_for_build | |
856 | sed 's/^ //' << EOF >$dummy.c | |
857 | #undef CPU | |
858 | #undef mips | |
859 | #undef mipsel | |
860 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
861 | CPU=mipsel | |
862 | #else | |
863 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
864 | CPU=mips | |
865 | #else | |
866 | CPU= | |
867 | #endif | |
868 | #endif | |
869 | EOF | |
870 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
871 | /^CPU/{ | |
872 | s: ::g | |
873 | p | |
874 | }'`" | |
875 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
876 | ;; | |
877 | mips64:Linux:*:*) | |
878 | eval $set_cc_for_build | |
879 | sed 's/^ //' << EOF >$dummy.c | |
880 | #undef CPU | |
881 | #undef mips64 | |
882 | #undef mips64el | |
883 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
884 | CPU=mips64el | |
885 | #else | |
886 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
887 | CPU=mips64 | |
888 | #else | |
889 | CPU= | |
890 | #endif | |
891 | #endif | |
892 | EOF | |
893 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
894 | /^CPU/{ | |
895 | s: ::g | |
896 | p | |
897 | }'`" | |
898 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
899 | ;; | |
900 | or32:Linux:*:*) | |
901 | echo or32-unknown-linux-gnu | |
902 | exit ;; | |
903 | ppc:Linux:*:*) | |
904 | echo powerpc-unknown-linux-gnu | |
905 | exit ;; | |
906 | ppc64:Linux:*:*) | |
907 | echo powerpc64-unknown-linux-gnu | |
908 | exit ;; | |
909 | alpha:Linux:*:*) | |
910 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
911 | EV5) UNAME_MACHINE=alphaev5 ;; | |
912 | EV56) UNAME_MACHINE=alphaev56 ;; | |
913 | PCA56) UNAME_MACHINE=alphapca56 ;; | |
914 | PCA57) UNAME_MACHINE=alphapca56 ;; | |
915 | EV6) UNAME_MACHINE=alphaev6 ;; | |
916 | EV67) UNAME_MACHINE=alphaev67 ;; | |
917 | EV68*) UNAME_MACHINE=alphaev68 ;; | |
918 | esac | |
919 | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | |
920 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
921 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
922 | exit ;; | |
923 | parisc:Linux:*:* | hppa:Linux:*:*) | |
924 | # Look for CPU level | |
925 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | |
926 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
927 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
928 | *) echo hppa-unknown-linux-gnu ;; | |
929 | esac | |
930 | exit ;; | |
931 | parisc64:Linux:*:* | hppa64:Linux:*:*) | |
932 | echo hppa64-unknown-linux-gnu | |
933 | exit ;; | |
934 | s390:Linux:*:* | s390x:Linux:*:*) | |
935 | echo ${UNAME_MACHINE}-ibm-linux | |
936 | exit ;; | |
937 | sh64*:Linux:*:*) | |
938 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
939 | exit ;; | |
940 | sh*:Linux:*:*) | |
941 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
942 | exit ;; | |
943 | sparc:Linux:*:* | sparc64:Linux:*:*) | |
944 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
945 | exit ;; | |
946 | vax:Linux:*:*) | |
947 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
948 | exit ;; | |
949 | x86_64:Linux:*:*) | |
950 | echo x86_64-unknown-linux-gnu | |
951 | exit ;; | |
952 | i*86:Linux:*:*) | |
953 | # The BFD linker knows what the default object file format is, so | |
954 | # first see if it will tell us. cd to the root directory to prevent | |
955 | # problems with other programs or directories called `ld' in the path. | |
956 | # Set LC_ALL=C to ensure ld outputs messages in English. | |
957 | ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | |
958 | | sed -ne '/supported targets:/!d | |
959 | s/[ ][ ]*/ /g | |
960 | s/.*supported targets: *// | |
961 | s/ .*// | |
962 | p'` | |
963 | case "$ld_supported_targets" in | |
964 | elf32-i386) | |
965 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
966 | ;; | |
967 | a.out-i386-linux) | |
968 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" | |
969 | exit ;; | |
970 | coff-i386) | |
971 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" | |
972 | exit ;; | |
973 | "") | |
974 | # Either a pre-BFD a.out linker (linux-gnuoldld) or | |
975 | # one that does not give us useful --help. | |
976 | echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | |
977 | exit ;; | |
978 | esac | |
979 | # Determine whether the default compiler is a.out or elf | |
980 | eval $set_cc_for_build | |
981 | sed 's/^ //' << EOF >$dummy.c | |
982 | #include <features.h> | |
983 | #ifdef __ELF__ | |
984 | # ifdef __GLIBC__ | |
985 | # if __GLIBC__ >= 2 | |
986 | LIBC=gnu | |
987 | # else | |
988 | LIBC=gnulibc1 | |
989 | # endif | |
990 | # else | |
991 | LIBC=gnulibc1 | |
992 | # endif | |
993 | #else | |
994 | #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) | |
995 | LIBC=gnu | |
996 | #else | |
997 | LIBC=gnuaout | |
998 | #endif | |
999 | #endif | |
1000 | #ifdef __dietlibc__ | |
1001 | LIBC=dietlibc | |
1002 | #endif | |
1003 | EOF | |
1004 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
1005 | /^LIBC/{ | |
1006 | s: ::g | |
1007 | p | |
1008 | }'`" | |
1009 | test x"${LIBC}" != x && { | |
1010 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
1011 | exit | |
1012 | } | |
1013 | test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | |
1014 | ;; | |
1015 | i*86:DYNIX/ptx:4*:*) | |
1016 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
1017 | # earlier versions are messed up and put the nodename in both | |
1018 | # sysname and nodename. | |
1019 | echo i386-sequent-sysv4 | |
1020 | exit ;; | |
1021 | i*86:UNIX_SV:4.2MP:2.*) | |
1022 | # Unixware is an offshoot of SVR4, but it has its own version | |