Merge lp:~n-muench/ubuntu/raring/open-vm-tools/open-vm-tools-december.sid-sync into lp:ubuntu/raring-proposed/open-vm-tools
- Raring (13.04)
- open-vm-tools-december.sid-sync
- Merge into raring-proposed
Proposed by
Nate Muench (Mink)
Status: | Merged |
---|---|
Merged at revision: | 35 |
Proposed branch: | lp:~n-muench/ubuntu/raring/open-vm-tools/open-vm-tools-december.sid-sync |
Merge into: | lp:ubuntu/raring-proposed/open-vm-tools |
Diff against target: |
62585 lines (+30921/-30781) 55 files modified
.pc/0001-kvers.patch/modules/linux/vmblock/Makefile (+171/-0) .pc/0001-kvers.patch/modules/linux/vmci/Makefile (+171/-0) .pc/0001-kvers.patch/modules/linux/vmhgfs/Makefile (+171/-0) .pc/0001-kvers.patch/modules/linux/vmsync/Makefile (+171/-0) .pc/0001-kvers.patch/modules/linux/vmxnet/Makefile (+171/-0) .pc/0001-kvers.patch/modules/linux/vsock/Makefile (+171/-0) .pc/0002-procps.patch/configure (+25491/-0) .pc/0002-procps.patch/configure.ac (+1234/-0) .pc/0003-dkms.patch/modules/linux/dkms.conf (+39/-0) .pc/0004-dkms-vmsync.patch/modules/linux/dkms.conf (+39/-0) .pc/0005-kernel-38-fixes.patch/modules/linux/shared/compat_mm.h (+107/-0) .pc/0005-kernel-38-fixes.patch/modules/linux/vmci/linux/driver.c (+2522/-0) .pc/01-kvers.patch/modules/linux/vmblock/Makefile (+0/-171) .pc/01-kvers.patch/modules/linux/vmci/Makefile (+0/-171) .pc/01-kvers.patch/modules/linux/vmhgfs/Makefile (+0/-171) .pc/01-kvers.patch/modules/linux/vmsync/Makefile (+0/-171) .pc/01-kvers.patch/modules/linux/vmxnet/Makefile (+0/-171) .pc/01-kvers.patch/modules/linux/vsock/Makefile (+0/-171) .pc/02-procps.patch/configure (+0/-25491) .pc/02-procps.patch/configure.ac (+0/-1234) .pc/03-dkms.patch/modules/linux/dkms.conf (+0/-39) .pc/04-dkms-vmsync.patch/modules/linux/dkms.conf (+0/-39) .pc/05-kernel-38-fixes.patch/modules/linux/shared/compat_mm.h (+0/-107) .pc/05-kernel-38-fixes.patch/modules/linux/vmci/linux/driver.c (+0/-2522) .pc/applied-patches (+5/-5) debian/changelog (+207/-68) debian/control (+5/-5) debian/copyright (+1/-1) debian/manpages/libguestlib.3 (+1/-1) debian/manpages/libvmtools.3 (+1/-1) debian/manpages/vmblock.9 (+1/-1) debian/manpages/vmci.9 (+1/-1) debian/manpages/vmhgfs.9 (+1/-1) debian/manpages/vmsock.9 (+1/-1) debian/manpages/vmware-checkvm.1 (+1/-1) debian/manpages/vmware-hgfsclient.1 (+1/-1) debian/manpages/vmware-hgfsmounter.8 (+1/-1) debian/manpages/vmware-toolbox-cmd.1 (+1/-1) debian/manpages/vmware-user-suid-wrapper.8 (+1/-1) debian/manpages/vmware-xferlogs.1 (+1/-1) debian/manpages/vmxnet.9 (+1/-1) debian/open-vm-tools.init (+4/-4) debian/patches/0001-kvers.patch (+75/-0) debian/patches/0002-procps.patch (+27/-0) debian/patches/0003-dkms.patch (+18/-0) debian/patches/0004-dkms-vmsync.patch (+45/-0) debian/patches/0005-kernel-38-fixes.patch (+55/-0) debian/patches/01-kvers.patch (+0/-75) debian/patches/02-procps.patch (+0/-27) debian/patches/03-dkms.patch (+0/-18) debian/patches/04-dkms-vmsync.patch (+0/-45) debian/patches/05-kernel-38-fixes.patch (+0/-55) debian/patches/series (+5/-5) debian/rules (+2/-1) debian/source/options (+1/-1) |
To merge this branch: | bzr merge lp:~n-muench/ubuntu/raring/open-vm-tools/open-vm-tools-december.sid-sync |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Luke Yelavich (community) | Needs Fixing | ||
Review via email: mp+153466@code.launchpad.net |
Commit message
Description of the change
Last merge for the Raring cycle. Basically it's a sync of about 85% of stuff from Debian. And another flag so it doesn't fail to build in future releases.
To post a comment you must log in.
Revision history for this message
Luke Yelavich (themuso) wrote : | # |
Actually no, I misread. This doesn't need an FFE, will take care of it now.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory '.pc/0001-kvers.patch' |
2 | === added file '.pc/0001-kvers.patch/.timestamp' |
3 | === added directory '.pc/0001-kvers.patch/modules' |
4 | === added directory '.pc/0001-kvers.patch/modules/linux' |
5 | === added directory '.pc/0001-kvers.patch/modules/linux/vmblock' |
6 | === added file '.pc/0001-kvers.patch/modules/linux/vmblock/Makefile' |
7 | --- .pc/0001-kvers.patch/modules/linux/vmblock/Makefile 1970-01-01 00:00:00 +0000 |
8 | +++ .pc/0001-kvers.patch/modules/linux/vmblock/Makefile 2013-03-14 21:19:23 +0000 |
9 | @@ -0,0 +1,171 @@ |
10 | +#!/usr/bin/make -f |
11 | +########################################################## |
12 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
13 | +# |
14 | +# This program is free software; you can redistribute it and/or modify it |
15 | +# under the terms of the GNU General Public License as published by the |
16 | +# Free Software Foundation version 2 and no later version. |
17 | +# |
18 | +# This program is distributed in the hope that it will be useful, but |
19 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
20 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
21 | +# for more details. |
22 | +# |
23 | +# You should have received a copy of the GNU General Public License along |
24 | +# with this program; if not, write to the Free Software Foundation, Inc., |
25 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
26 | +# |
27 | +########################################################## |
28 | + |
29 | +#### |
30 | +#### VMware kernel module Makefile to be distributed externally |
31 | +#### |
32 | + |
33 | +#### |
34 | +#### SRCROOT _must_ be a relative path. |
35 | +#### |
36 | +SRCROOT = . |
37 | + |
38 | +# |
39 | +# open-vm-tools doesn't replicate shared source files for different modules; |
40 | +# instead, files are kept in shared locations. So define a few useful macros |
41 | +# to be able to handle both cases cleanly. |
42 | +# |
43 | +INCLUDE := |
44 | +ifdef OVT_SOURCE_DIR |
45 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
46 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
47 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
48 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
49 | +else |
50 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
51 | +INCLUDE += -I$(SRCROOT)/shared |
52 | +endif |
53 | + |
54 | + |
55 | +VM_UNAME = $(shell uname -r) |
56 | + |
57 | +# Header directory for the running kernel |
58 | +ifdef LINUXINCLUDE |
59 | +HEADER_DIR = $(LINUXINCLUDE) |
60 | +else |
61 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
62 | +endif |
63 | + |
64 | +BUILD_DIR = $(HEADER_DIR)/.. |
65 | + |
66 | +DRIVER := vmblock |
67 | +PRODUCT := tools-source |
68 | + |
69 | +# Grep program |
70 | +GREP = /bin/grep |
71 | + |
72 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
73 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
74 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
75 | + |
76 | +ifndef VM_KBUILD |
77 | +VM_KBUILD := no |
78 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
79 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
80 | +VM_KBUILD := 26 |
81 | +endif |
82 | +endif |
83 | +export VM_KBUILD |
84 | +endif |
85 | + |
86 | +ifndef VM_KBUILD_SHOWN |
87 | +ifeq ($(VM_KBUILD), no) |
88 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
89 | +else |
90 | +ifeq ($(VM_KBUILD), 24) |
91 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
92 | +else |
93 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
94 | +endif |
95 | +endif |
96 | +VM_KBUILD_SHOWN := yes |
97 | +export VM_KBUILD_SHOWN |
98 | +endif |
99 | + |
100 | +ifneq ($(VM_KBUILD), no) |
101 | + |
102 | +VMCCVER := $(shell $(CC) -dumpversion) |
103 | + |
104 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
105 | +ifeq ($(VERSION),) |
106 | + |
107 | +ifeq ($(VM_KBUILD), 24) |
108 | +DRIVER_KO := $(DRIVER).o |
109 | +else |
110 | +DRIVER_KO := $(DRIVER).ko |
111 | +endif |
112 | + |
113 | +.PHONY: $(DRIVER_KO) |
114 | + |
115 | +auto-build: $(DRIVER_KO) |
116 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
117 | + |
118 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
119 | +$(DRIVER): $(DRIVER_KO) |
120 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
121 | + |
122 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
123 | +VM_CCVER := $(VMCCVER) |
124 | +export VM_CCVER |
125 | +VM_CC := $(CC) |
126 | +export VM_CC |
127 | + |
128 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
129 | + |
130 | +# |
131 | +# Define a setup target that gets built before the actual driver. |
132 | +# This target may not be used at all, but if it is then it will be defined |
133 | +# in Makefile.kernel |
134 | +# |
135 | +prebuild:: ; |
136 | +postbuild:: ; |
137 | + |
138 | +$(DRIVER_KO): prebuild |
139 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
140 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
141 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
142 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
143 | +endif |
144 | + |
145 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
146 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
147 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
148 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
149 | + -Werror -S -o /dev/null -xc $(1) \ |
150 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
151 | + |
152 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
153 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
154 | +ifdef VMX86_DEVEL |
155 | +CC_OPTS += -DVMX86_DEVEL |
156 | +endif |
157 | +ifdef VMX86_DEBUG |
158 | +CC_OPTS += -DVMX86_DEBUG |
159 | +endif |
160 | + |
161 | +include $(SRCROOT)/Makefile.kernel |
162 | + |
163 | +ifdef TOPDIR |
164 | +ifeq ($(VM_KBUILD), 24) |
165 | + |
166 | +O_TARGET := $(DRIVER).o |
167 | + |
168 | +obj-y := $($(DRIVER)-y) |
169 | + |
170 | +include $(TOPDIR)/Rules.make |
171 | +endif |
172 | +endif |
173 | + |
174 | +else |
175 | + |
176 | +include $(SRCROOT)/Makefile.normal |
177 | + |
178 | +endif |
179 | + |
180 | +#.SILENT: |
181 | |
182 | === added directory '.pc/0001-kvers.patch/modules/linux/vmci' |
183 | === added file '.pc/0001-kvers.patch/modules/linux/vmci/Makefile' |
184 | --- .pc/0001-kvers.patch/modules/linux/vmci/Makefile 1970-01-01 00:00:00 +0000 |
185 | +++ .pc/0001-kvers.patch/modules/linux/vmci/Makefile 2013-03-14 21:19:23 +0000 |
186 | @@ -0,0 +1,171 @@ |
187 | +#!/usr/bin/make -f |
188 | +########################################################## |
189 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
190 | +# |
191 | +# This program is free software; you can redistribute it and/or modify it |
192 | +# under the terms of the GNU General Public License as published by the |
193 | +# Free Software Foundation version 2 and no later version. |
194 | +# |
195 | +# This program is distributed in the hope that it will be useful, but |
196 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
197 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
198 | +# for more details. |
199 | +# |
200 | +# You should have received a copy of the GNU General Public License along |
201 | +# with this program; if not, write to the Free Software Foundation, Inc., |
202 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
203 | +# |
204 | +########################################################## |
205 | + |
206 | +#### |
207 | +#### VMware kernel module Makefile to be distributed externally |
208 | +#### |
209 | + |
210 | +#### |
211 | +#### SRCROOT _must_ be a relative path. |
212 | +#### |
213 | +SRCROOT = . |
214 | + |
215 | +# |
216 | +# open-vm-tools doesn't replicate shared source files for different modules; |
217 | +# instead, files are kept in shared locations. So define a few useful macros |
218 | +# to be able to handle both cases cleanly. |
219 | +# |
220 | +INCLUDE := |
221 | +ifdef OVT_SOURCE_DIR |
222 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
223 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
224 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
225 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
226 | +else |
227 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
228 | +INCLUDE += -I$(SRCROOT)/shared |
229 | +endif |
230 | + |
231 | + |
232 | +VM_UNAME = $(shell uname -r) |
233 | + |
234 | +# Header directory for the running kernel |
235 | +ifdef LINUXINCLUDE |
236 | +HEADER_DIR = $(LINUXINCLUDE) |
237 | +else |
238 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
239 | +endif |
240 | + |
241 | +BUILD_DIR = $(HEADER_DIR)/.. |
242 | + |
243 | +DRIVER := vmci |
244 | +PRODUCT := tools-source |
245 | + |
246 | +# Grep program |
247 | +GREP = /bin/grep |
248 | + |
249 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
250 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
251 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
252 | + |
253 | +ifndef VM_KBUILD |
254 | +VM_KBUILD := no |
255 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
256 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
257 | +VM_KBUILD := 26 |
258 | +endif |
259 | +endif |
260 | +export VM_KBUILD |
261 | +endif |
262 | + |
263 | +ifndef VM_KBUILD_SHOWN |
264 | +ifeq ($(VM_KBUILD), no) |
265 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
266 | +else |
267 | +ifeq ($(VM_KBUILD), 24) |
268 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
269 | +else |
270 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
271 | +endif |
272 | +endif |
273 | +VM_KBUILD_SHOWN := yes |
274 | +export VM_KBUILD_SHOWN |
275 | +endif |
276 | + |
277 | +ifneq ($(VM_KBUILD), no) |
278 | + |
279 | +VMCCVER := $(shell $(CC) -dumpversion) |
280 | + |
281 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
282 | +ifeq ($(VERSION),) |
283 | + |
284 | +ifeq ($(VM_KBUILD), 24) |
285 | +DRIVER_KO := $(DRIVER).o |
286 | +else |
287 | +DRIVER_KO := $(DRIVER).ko |
288 | +endif |
289 | + |
290 | +.PHONY: $(DRIVER_KO) |
291 | + |
292 | +auto-build: $(DRIVER_KO) |
293 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
294 | + |
295 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
296 | +$(DRIVER): $(DRIVER_KO) |
297 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
298 | + |
299 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
300 | +VM_CCVER := $(VMCCVER) |
301 | +export VM_CCVER |
302 | +VM_CC := $(CC) |
303 | +export VM_CC |
304 | + |
305 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
306 | + |
307 | +# |
308 | +# Define a setup target that gets built before the actual driver. |
309 | +# This target may not be used at all, but if it is then it will be defined |
310 | +# in Makefile.kernel |
311 | +# |
312 | +prebuild:: ; |
313 | +postbuild:: ; |
314 | + |
315 | +$(DRIVER_KO): prebuild |
316 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
317 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
318 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
319 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
320 | +endif |
321 | + |
322 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
323 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
324 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
325 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
326 | + -Werror -S -o /dev/null -xc $(1) \ |
327 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
328 | + |
329 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
330 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
331 | +ifdef VMX86_DEVEL |
332 | +CC_OPTS += -DVMX86_DEVEL |
333 | +endif |
334 | +ifdef VMX86_DEBUG |
335 | +CC_OPTS += -DVMX86_DEBUG |
336 | +endif |
337 | + |
338 | +include $(SRCROOT)/Makefile.kernel |
339 | + |
340 | +ifdef TOPDIR |
341 | +ifeq ($(VM_KBUILD), 24) |
342 | + |
343 | +O_TARGET := $(DRIVER).o |
344 | + |
345 | +obj-y := $($(DRIVER)-y) |
346 | + |
347 | +include $(TOPDIR)/Rules.make |
348 | +endif |
349 | +endif |
350 | + |
351 | +else |
352 | + |
353 | +include $(SRCROOT)/Makefile.normal |
354 | + |
355 | +endif |
356 | + |
357 | +#.SILENT: |
358 | |
359 | === added directory '.pc/0001-kvers.patch/modules/linux/vmhgfs' |
360 | === added file '.pc/0001-kvers.patch/modules/linux/vmhgfs/Makefile' |
361 | --- .pc/0001-kvers.patch/modules/linux/vmhgfs/Makefile 1970-01-01 00:00:00 +0000 |
362 | +++ .pc/0001-kvers.patch/modules/linux/vmhgfs/Makefile 2013-03-14 21:19:23 +0000 |
363 | @@ -0,0 +1,171 @@ |
364 | +#!/usr/bin/make -f |
365 | +########################################################## |
366 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
367 | +# |
368 | +# This program is free software; you can redistribute it and/or modify it |
369 | +# under the terms of the GNU General Public License as published by the |
370 | +# Free Software Foundation version 2 and no later version. |
371 | +# |
372 | +# This program is distributed in the hope that it will be useful, but |
373 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
374 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
375 | +# for more details. |
376 | +# |
377 | +# You should have received a copy of the GNU General Public License along |
378 | +# with this program; if not, write to the Free Software Foundation, Inc., |
379 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
380 | +# |
381 | +########################################################## |
382 | + |
383 | +#### |
384 | +#### VMware kernel module Makefile to be distributed externally |
385 | +#### |
386 | + |
387 | +#### |
388 | +#### SRCROOT _must_ be a relative path. |
389 | +#### |
390 | +SRCROOT = . |
391 | + |
392 | +# |
393 | +# open-vm-tools doesn't replicate shared source files for different modules; |
394 | +# instead, files are kept in shared locations. So define a few useful macros |
395 | +# to be able to handle both cases cleanly. |
396 | +# |
397 | +INCLUDE := |
398 | +ifdef OVT_SOURCE_DIR |
399 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
400 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
401 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
402 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
403 | +else |
404 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
405 | +INCLUDE += -I$(SRCROOT)/shared |
406 | +endif |
407 | + |
408 | + |
409 | +VM_UNAME = $(shell uname -r) |
410 | + |
411 | +# Header directory for the running kernel |
412 | +ifdef LINUXINCLUDE |
413 | +HEADER_DIR = $(LINUXINCLUDE) |
414 | +else |
415 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
416 | +endif |
417 | + |
418 | +BUILD_DIR = $(HEADER_DIR)/.. |
419 | + |
420 | +DRIVER := vmhgfs |
421 | +PRODUCT := tools |
422 | + |
423 | +# Grep program |
424 | +GREP = /bin/grep |
425 | + |
426 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
427 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
428 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
429 | + |
430 | +ifndef VM_KBUILD |
431 | +VM_KBUILD := no |
432 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
433 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
434 | +VM_KBUILD := 26 |
435 | +endif |
436 | +endif |
437 | +export VM_KBUILD |
438 | +endif |
439 | + |
440 | +ifndef VM_KBUILD_SHOWN |
441 | +ifeq ($(VM_KBUILD), no) |
442 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
443 | +else |
444 | +ifeq ($(VM_KBUILD), 24) |
445 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
446 | +else |
447 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
448 | +endif |
449 | +endif |
450 | +VM_KBUILD_SHOWN := yes |
451 | +export VM_KBUILD_SHOWN |
452 | +endif |
453 | + |
454 | +ifneq ($(VM_KBUILD), no) |
455 | + |
456 | +VMCCVER := $(shell $(CC) -dumpversion) |
457 | + |
458 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
459 | +ifeq ($(VERSION),) |
460 | + |
461 | +ifeq ($(VM_KBUILD), 24) |
462 | +DRIVER_KO := $(DRIVER).o |
463 | +else |
464 | +DRIVER_KO := $(DRIVER).ko |
465 | +endif |
466 | + |
467 | +.PHONY: $(DRIVER_KO) |
468 | + |
469 | +auto-build: $(DRIVER_KO) |
470 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
471 | + |
472 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
473 | +$(DRIVER): $(DRIVER_KO) |
474 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
475 | + |
476 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
477 | +VM_CCVER := $(VMCCVER) |
478 | +export VM_CCVER |
479 | +VM_CC := $(CC) |
480 | +export VM_CC |
481 | + |
482 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
483 | + |
484 | +# |
485 | +# Define a setup target that gets built before the actual driver. |
486 | +# This target may not be used at all, but if it is then it will be defined |
487 | +# in Makefile.kernel |
488 | +# |
489 | +prebuild:: ; |
490 | +postbuild:: ; |
491 | + |
492 | +$(DRIVER_KO): prebuild |
493 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
494 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
495 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
496 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
497 | +endif |
498 | + |
499 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
500 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
501 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
502 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
503 | + -Werror -S -o /dev/null -xc $(1) \ |
504 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
505 | + |
506 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
507 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
508 | +ifdef VMX86_DEVEL |
509 | +CC_OPTS += -DVMX86_DEVEL |
510 | +endif |
511 | +ifdef VMX86_DEBUG |
512 | +CC_OPTS += -DVMX86_DEBUG |
513 | +endif |
514 | + |
515 | +include $(SRCROOT)/Makefile.kernel |
516 | + |
517 | +ifdef TOPDIR |
518 | +ifeq ($(VM_KBUILD), 24) |
519 | + |
520 | +O_TARGET := $(DRIVER).o |
521 | + |
522 | +obj-y := $($(DRIVER)-y) |
523 | + |
524 | +include $(TOPDIR)/Rules.make |
525 | +endif |
526 | +endif |
527 | + |
528 | +else |
529 | + |
530 | +include $(SRCROOT)/Makefile.normal |
531 | + |
532 | +endif |
533 | + |
534 | +#.SILENT: |
535 | |
536 | === added directory '.pc/0001-kvers.patch/modules/linux/vmsync' |
537 | === added file '.pc/0001-kvers.patch/modules/linux/vmsync/Makefile' |
538 | --- .pc/0001-kvers.patch/modules/linux/vmsync/Makefile 1970-01-01 00:00:00 +0000 |
539 | +++ .pc/0001-kvers.patch/modules/linux/vmsync/Makefile 2013-03-14 21:19:23 +0000 |
540 | @@ -0,0 +1,171 @@ |
541 | +#!/usr/bin/make -f |
542 | +########################################################## |
543 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
544 | +# |
545 | +# This program is free software; you can redistribute it and/or modify it |
546 | +# under the terms of the GNU General Public License as published by the |
547 | +# Free Software Foundation version 2 and no later version. |
548 | +# |
549 | +# This program is distributed in the hope that it will be useful, but |
550 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
551 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
552 | +# for more details. |
553 | +# |
554 | +# You should have received a copy of the GNU General Public License along |
555 | +# with this program; if not, write to the Free Software Foundation, Inc., |
556 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
557 | +# |
558 | +########################################################## |
559 | + |
560 | +#### |
561 | +#### VMware kernel module Makefile to be distributed externally |
562 | +#### |
563 | + |
564 | +#### |
565 | +#### SRCROOT _must_ be a relative path. |
566 | +#### |
567 | +SRCROOT = . |
568 | + |
569 | +# |
570 | +# open-vm-tools doesn't replicate shared source files for different modules; |
571 | +# instead, files are kept in shared locations. So define a few useful macros |
572 | +# to be able to handle both cases cleanly. |
573 | +# |
574 | +INCLUDE := |
575 | +ifdef OVT_SOURCE_DIR |
576 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
577 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
578 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
579 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
580 | +else |
581 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
582 | +INCLUDE += -I$(SRCROOT)/shared |
583 | +endif |
584 | + |
585 | + |
586 | +VM_UNAME = $(shell uname -r) |
587 | + |
588 | +# Header directory for the running kernel |
589 | +ifdef LINUXINCLUDE |
590 | +HEADER_DIR = $(LINUXINCLUDE) |
591 | +else |
592 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
593 | +endif |
594 | + |
595 | +BUILD_DIR = $(HEADER_DIR)/.. |
596 | + |
597 | +DRIVER := vmsync |
598 | +PRODUCT := tools |
599 | + |
600 | +# Grep program |
601 | +GREP = /bin/grep |
602 | + |
603 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
604 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
605 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
606 | + |
607 | +ifndef VM_KBUILD |
608 | +VM_KBUILD := no |
609 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
610 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
611 | +VM_KBUILD := 26 |
612 | +endif |
613 | +endif |
614 | +export VM_KBUILD |
615 | +endif |
616 | + |
617 | +ifndef VM_KBUILD_SHOWN |
618 | +ifeq ($(VM_KBUILD), no) |
619 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
620 | +else |
621 | +ifeq ($(VM_KBUILD), 24) |
622 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
623 | +else |
624 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
625 | +endif |
626 | +endif |
627 | +VM_KBUILD_SHOWN := yes |
628 | +export VM_KBUILD_SHOWN |
629 | +endif |
630 | + |
631 | +ifneq ($(VM_KBUILD), no) |
632 | + |
633 | +VMCCVER := $(shell $(CC) -dumpversion) |
634 | + |
635 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
636 | +ifeq ($(VERSION),) |
637 | + |
638 | +ifeq ($(VM_KBUILD), 24) |
639 | +DRIVER_KO := $(DRIVER).o |
640 | +else |
641 | +DRIVER_KO := $(DRIVER).ko |
642 | +endif |
643 | + |
644 | +.PHONY: $(DRIVER_KO) |
645 | + |
646 | +auto-build: $(DRIVER_KO) |
647 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
648 | + |
649 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
650 | +$(DRIVER): $(DRIVER_KO) |
651 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
652 | + |
653 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
654 | +VM_CCVER := $(VMCCVER) |
655 | +export VM_CCVER |
656 | +VM_CC := $(CC) |
657 | +export VM_CC |
658 | + |
659 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
660 | + |
661 | +# |
662 | +# Define a setup target that gets built before the actual driver. |
663 | +# This target may not be used at all, but if it is then it will be defined |
664 | +# in Makefile.kernel |
665 | +# |
666 | +prebuild:: ; |
667 | +postbuild:: ; |
668 | + |
669 | +$(DRIVER_KO): prebuild |
670 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
671 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
672 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
673 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
674 | +endif |
675 | + |
676 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
677 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
678 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
679 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
680 | + -Werror -S -o /dev/null -xc $(1) \ |
681 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
682 | + |
683 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
684 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
685 | +ifdef VMX86_DEVEL |
686 | +CC_OPTS += -DVMX86_DEVEL |
687 | +endif |
688 | +ifdef VMX86_DEBUG |
689 | +CC_OPTS += -DVMX86_DEBUG |
690 | +endif |
691 | + |
692 | +include $(SRCROOT)/Makefile.kernel |
693 | + |
694 | +ifdef TOPDIR |
695 | +ifeq ($(VM_KBUILD), 24) |
696 | + |
697 | +O_TARGET := $(DRIVER).o |
698 | + |
699 | +obj-y := $($(DRIVER)-y) |
700 | + |
701 | +include $(TOPDIR)/Rules.make |
702 | +endif |
703 | +endif |
704 | + |
705 | +else |
706 | + |
707 | +include $(SRCROOT)/Makefile.normal |
708 | + |
709 | +endif |
710 | + |
711 | +#.SILENT: |
712 | |
713 | === added directory '.pc/0001-kvers.patch/modules/linux/vmxnet' |
714 | === added file '.pc/0001-kvers.patch/modules/linux/vmxnet/Makefile' |
715 | --- .pc/0001-kvers.patch/modules/linux/vmxnet/Makefile 1970-01-01 00:00:00 +0000 |
716 | +++ .pc/0001-kvers.patch/modules/linux/vmxnet/Makefile 2013-03-14 21:19:23 +0000 |
717 | @@ -0,0 +1,171 @@ |
718 | +#!/usr/bin/make -f |
719 | +########################################################## |
720 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
721 | +# |
722 | +# This program is free software; you can redistribute it and/or modify it |
723 | +# under the terms of the GNU General Public License as published by the |
724 | +# Free Software Foundation version 2 and no later version. |
725 | +# |
726 | +# This program is distributed in the hope that it will be useful, but |
727 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
728 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
729 | +# for more details. |
730 | +# |
731 | +# You should have received a copy of the GNU General Public License along |
732 | +# with this program; if not, write to the Free Software Foundation, Inc., |
733 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
734 | +# |
735 | +########################################################## |
736 | + |
737 | +#### |
738 | +#### VMware kernel module Makefile to be distributed externally |
739 | +#### |
740 | + |
741 | +#### |
742 | +#### SRCROOT _must_ be a relative path. |
743 | +#### |
744 | +SRCROOT = . |
745 | + |
746 | +# |
747 | +# open-vm-tools doesn't replicate shared source files for different modules; |
748 | +# instead, files are kept in shared locations. So define a few useful macros |
749 | +# to be able to handle both cases cleanly. |
750 | +# |
751 | +INCLUDE := |
752 | +ifdef OVT_SOURCE_DIR |
753 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
754 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
755 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
756 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
757 | +else |
758 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
759 | +INCLUDE += -I$(SRCROOT)/shared |
760 | +endif |
761 | + |
762 | + |
763 | +VM_UNAME = $(shell uname -r) |
764 | + |
765 | +# Header directory for the running kernel |
766 | +ifdef LINUXINCLUDE |
767 | +HEADER_DIR = $(LINUXINCLUDE) |
768 | +else |
769 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
770 | +endif |
771 | + |
772 | +BUILD_DIR = $(HEADER_DIR)/.. |
773 | + |
774 | +DRIVER := vmxnet |
775 | +PRODUCT := tools-source |
776 | + |
777 | +# Grep program |
778 | +GREP = /bin/grep |
779 | + |
780 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
781 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
782 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
783 | + |
784 | +ifndef VM_KBUILD |
785 | +VM_KBUILD := no |
786 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
787 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
788 | +VM_KBUILD := 26 |
789 | +endif |
790 | +endif |
791 | +export VM_KBUILD |
792 | +endif |
793 | + |
794 | +ifndef VM_KBUILD_SHOWN |
795 | +ifeq ($(VM_KBUILD), no) |
796 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
797 | +else |
798 | +ifeq ($(VM_KBUILD), 24) |
799 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
800 | +else |
801 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
802 | +endif |
803 | +endif |
804 | +VM_KBUILD_SHOWN := yes |
805 | +export VM_KBUILD_SHOWN |
806 | +endif |
807 | + |
808 | +ifneq ($(VM_KBUILD), no) |
809 | + |
810 | +VMCCVER := $(shell $(CC) -dumpversion) |
811 | + |
812 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
813 | +ifeq ($(VERSION),) |
814 | + |
815 | +ifeq ($(VM_KBUILD), 24) |
816 | +DRIVER_KO := $(DRIVER).o |
817 | +else |
818 | +DRIVER_KO := $(DRIVER).ko |
819 | +endif |
820 | + |
821 | +.PHONY: $(DRIVER_KO) |
822 | + |
823 | +auto-build: $(DRIVER_KO) |
824 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
825 | + |
826 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
827 | +$(DRIVER): $(DRIVER_KO) |
828 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
829 | + |
830 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
831 | +VM_CCVER := $(VMCCVER) |
832 | +export VM_CCVER |
833 | +VM_CC := $(CC) |
834 | +export VM_CC |
835 | + |
836 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
837 | + |
838 | +# |
839 | +# Define a setup target that gets built before the actual driver. |
840 | +# This target may not be used at all, but if it is then it will be defined |
841 | +# in Makefile.kernel |
842 | +# |
843 | +prebuild:: ; |
844 | +postbuild:: ; |
845 | + |
846 | +$(DRIVER_KO): prebuild |
847 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
848 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
849 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
850 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
851 | +endif |
852 | + |
853 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
854 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
855 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
856 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
857 | + -Werror -S -o /dev/null -xc $(1) \ |
858 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
859 | + |
860 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
861 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
862 | +ifdef VMX86_DEVEL |
863 | +CC_OPTS += -DVMX86_DEVEL |
864 | +endif |
865 | +ifdef VMX86_DEBUG |
866 | +CC_OPTS += -DVMX86_DEBUG |
867 | +endif |
868 | + |
869 | +include $(SRCROOT)/Makefile.kernel |
870 | + |
871 | +ifdef TOPDIR |
872 | +ifeq ($(VM_KBUILD), 24) |
873 | + |
874 | +O_TARGET := $(DRIVER).o |
875 | + |
876 | +obj-y := $($(DRIVER)-y) |
877 | + |
878 | +include $(TOPDIR)/Rules.make |
879 | +endif |
880 | +endif |
881 | + |
882 | +else |
883 | + |
884 | +include $(SRCROOT)/Makefile.normal |
885 | + |
886 | +endif |
887 | + |
888 | +#.SILENT: |
889 | |
890 | === added directory '.pc/0001-kvers.patch/modules/linux/vsock' |
891 | === added file '.pc/0001-kvers.patch/modules/linux/vsock/Makefile' |
892 | --- .pc/0001-kvers.patch/modules/linux/vsock/Makefile 1970-01-01 00:00:00 +0000 |
893 | +++ .pc/0001-kvers.patch/modules/linux/vsock/Makefile 2013-03-14 21:19:23 +0000 |
894 | @@ -0,0 +1,171 @@ |
895 | +#!/usr/bin/make -f |
896 | +########################################################## |
897 | +# Copyright (C) 1998 VMware, Inc. All rights reserved. |
898 | +# |
899 | +# This program is free software; you can redistribute it and/or modify it |
900 | +# under the terms of the GNU General Public License as published by the |
901 | +# Free Software Foundation version 2 and no later version. |
902 | +# |
903 | +# This program is distributed in the hope that it will be useful, but |
904 | +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
905 | +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
906 | +# for more details. |
907 | +# |
908 | +# You should have received a copy of the GNU General Public License along |
909 | +# with this program; if not, write to the Free Software Foundation, Inc., |
910 | +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
911 | +# |
912 | +########################################################## |
913 | + |
914 | +#### |
915 | +#### VMware kernel module Makefile to be distributed externally |
916 | +#### |
917 | + |
918 | +#### |
919 | +#### SRCROOT _must_ be a relative path. |
920 | +#### |
921 | +SRCROOT = . |
922 | + |
923 | +# |
924 | +# open-vm-tools doesn't replicate shared source files for different modules; |
925 | +# instead, files are kept in shared locations. So define a few useful macros |
926 | +# to be able to handle both cases cleanly. |
927 | +# |
928 | +INCLUDE := |
929 | +ifdef OVT_SOURCE_DIR |
930 | +AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf |
931 | +VMLIB_PATH = $(OVT_SOURCE_DIR)/lib/$(1) |
932 | +INCLUDE += -I$(OVT_SOURCE_DIR)/modules/linux/shared |
933 | +INCLUDE += -I$(OVT_SOURCE_DIR)/lib/include |
934 | +else |
935 | +AUTOCONF_DIR := $(SRCROOT)/shared/autoconf |
936 | +INCLUDE += -I$(SRCROOT)/shared |
937 | +endif |
938 | + |
939 | + |
940 | +VM_UNAME = $(shell uname -r) |
941 | + |
942 | +# Header directory for the running kernel |
943 | +ifdef LINUXINCLUDE |
944 | +HEADER_DIR = $(LINUXINCLUDE) |
945 | +else |
946 | +HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
947 | +endif |
948 | + |
949 | +BUILD_DIR = $(HEADER_DIR)/.. |
950 | + |
951 | +DRIVER := vsock |
952 | +PRODUCT := tools-source |
953 | + |
954 | +# Grep program |
955 | +GREP = /bin/grep |
956 | + |
957 | +vm_check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
958 | + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) |
959 | +vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi) |
960 | + |
961 | +ifndef VM_KBUILD |
962 | +VM_KBUILD := no |
963 | +ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) |
964 | +ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
965 | +VM_KBUILD := 26 |
966 | +endif |
967 | +endif |
968 | +export VM_KBUILD |
969 | +endif |
970 | + |
971 | +ifndef VM_KBUILD_SHOWN |
972 | +ifeq ($(VM_KBUILD), no) |
973 | +VM_DUMMY := $(shell echo >&2 "Using standalone build system.") |
974 | +else |
975 | +ifeq ($(VM_KBUILD), 24) |
976 | +VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.") |
977 | +else |
978 | +VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.") |
979 | +endif |
980 | +endif |
981 | +VM_KBUILD_SHOWN := yes |
982 | +export VM_KBUILD_SHOWN |
983 | +endif |
984 | + |
985 | +ifneq ($(VM_KBUILD), no) |
986 | + |
987 | +VMCCVER := $(shell $(CC) -dumpversion) |
988 | + |
989 | +# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... |
990 | +ifeq ($(VERSION),) |
991 | + |
992 | +ifeq ($(VM_KBUILD), 24) |
993 | +DRIVER_KO := $(DRIVER).o |
994 | +else |
995 | +DRIVER_KO := $(DRIVER).ko |
996 | +endif |
997 | + |
998 | +.PHONY: $(DRIVER_KO) |
999 | + |
1000 | +auto-build: $(DRIVER_KO) |
1001 | + cp -f $< $(SRCROOT)/../$(DRIVER).o |
1002 | + |
1003 | +# $(DRIVER_KO) is a phony target, so compare file times explicitly |
1004 | +$(DRIVER): $(DRIVER_KO) |
1005 | + if [ $< -nt $@ ] || [ ! -e $@ ] ; then cp -f $< $@; fi |
1006 | + |
1007 | +# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler |
1008 | +VM_CCVER := $(VMCCVER) |
1009 | +export VM_CCVER |
1010 | +VM_CC := $(CC) |
1011 | +export VM_CC |
1012 | + |
1013 | +MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
1014 | + |
1015 | +# |
1016 | +# Define a setup target that gets built before the actual driver. |
1017 | +# This target may not be used at all, but if it is then it will be defined |
1018 | +# in Makefile.kernel |
1019 | +# |
1020 | +prebuild:: ; |
1021 | +postbuild:: ; |
1022 | + |
1023 | +$(DRIVER_KO): prebuild |
1024 | + $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
1025 | + MODULEBUILDDIR=$(MODULEBUILDDIR) modules |
1026 | + $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \ |
1027 | + MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild |
1028 | +endif |
1029 | + |
1030 | +vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \ |
1031 | + $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(LINUXINCLUDE) \ |
1032 | + $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default \ |
1033 | + -DKBUILD_BASENAME=\"$(DRIVER)\" \ |
1034 | + -Werror -S -o /dev/null -xc $(1) \ |
1035 | + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi) |
1036 | + |
1037 | +CC_WARNINGS := -Wall -Wstrict-prototypes |
1038 | +CC_OPTS := $(GLOBAL_DEFS) $(CC_WARNINGS) -DVMW_USING_KBUILD |
1039 | +ifdef VMX86_DEVEL |
1040 | +CC_OPTS += -DVMX86_DEVEL |
1041 | +endif |
1042 | +ifdef VMX86_DEBUG |
1043 | +CC_OPTS += -DVMX86_DEBUG |
1044 | +endif |
1045 | + |
1046 | +include $(SRCROOT)/Makefile.kernel |
1047 | + |
1048 | +ifdef TOPDIR |
1049 | +ifeq ($(VM_KBUILD), 24) |
1050 | + |
1051 | +O_TARGET := $(DRIVER).o |
1052 | + |
1053 | +obj-y := $($(DRIVER)-y) |
1054 | + |
1055 | +include $(TOPDIR)/Rules.make |
1056 | +endif |
1057 | +endif |
1058 | + |
1059 | +else |
1060 | + |
1061 | +include $(SRCROOT)/Makefile.normal |
1062 | + |
1063 | +endif |
1064 | + |
1065 | +#.SILENT: |
1066 | |
1067 | === added directory '.pc/0002-procps.patch' |
1068 | === added file '.pc/0002-procps.patch/.timestamp' |
1069 | === added file '.pc/0002-procps.patch/configure' |
1070 | --- .pc/0002-procps.patch/configure 1970-01-01 00:00:00 +0000 |
1071 | +++ .pc/0002-procps.patch/configure 2013-03-14 21:19:23 +0000 |
1072 | @@ -0,0 +1,25491 @@ |
1073 | +#! /bin/sh |
1074 | +# Guess values for system-dependent variables and create Makefiles. |
1075 | +# Generated by GNU Autoconf 2.68 for open-vm-tools 2012.12.26. |
1076 | +# |
1077 | +# Report bugs to <open-vm-tools-devel@lists.sourceforge.net>. |
1078 | +# |
1079 | +# |
1080 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1081 | +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
1082 | +# Foundation, Inc. |
1083 | +# |
1084 | +# |
1085 | +# This configure script is free software; the Free Software Foundation |
1086 | +# gives unlimited permission to copy, distribute and modify it. |
1087 | +## -------------------- ## |
1088 | +## M4sh Initialization. ## |
1089 | +## -------------------- ## |
1090 | + |
1091 | +# Be more Bourne compatible |
1092 | +DUALCASE=1; export DUALCASE # for MKS sh |
1093 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
1094 | + emulate sh |
1095 | + NULLCMD=: |
1096 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1097 | + # is contrary to our usage. Disable this feature. |
1098 | + alias -g '${1+"$@"}'='"$@"' |
1099 | + setopt NO_GLOB_SUBST |
1100 | +else |
1101 | + case `(set -o) 2>/dev/null` in #( |
1102 | + *posix*) : |
1103 | + set -o posix ;; #( |
1104 | + *) : |
1105 | + ;; |
1106 | +esac |
1107 | +fi |
1108 | + |
1109 | + |
1110 | +as_nl=' |
1111 | +' |
1112 | +export as_nl |
1113 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. |
1114 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1115 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
1116 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
1117 | +# Prefer a ksh shell builtin over an external printf program on Solaris, |
1118 | +# but without wasting forks for bash or zsh. |
1119 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ |
1120 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
1121 | + as_echo='print -r --' |
1122 | + as_echo_n='print -rn --' |
1123 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
1124 | + as_echo='printf %s\n' |
1125 | + as_echo_n='printf %s' |
1126 | +else |
1127 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
1128 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
1129 | + as_echo_n='/usr/ucb/echo -n' |
1130 | + else |
1131 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
1132 | + as_echo_n_body='eval |
1133 | + arg=$1; |
1134 | + case $arg in #( |
1135 | + *"$as_nl"*) |
1136 | + expr "X$arg" : "X\\(.*\\)$as_nl"; |
1137 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
1138 | + esac; |
1139 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
1140 | + ' |
1141 | + export as_echo_n_body |
1142 | + as_echo_n='sh -c $as_echo_n_body as_echo' |
1143 | + fi |
1144 | + export as_echo_body |
1145 | + as_echo='sh -c $as_echo_body as_echo' |
1146 | +fi |
1147 | + |
1148 | +# The user is always right. |
1149 | +if test "${PATH_SEPARATOR+set}" != set; then |
1150 | + PATH_SEPARATOR=: |
1151 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
1152 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
1153 | + PATH_SEPARATOR=';' |
1154 | + } |
1155 | +fi |
1156 | + |
1157 | + |
1158 | +# IFS |
1159 | +# We need space, tab and new line, in precisely that order. Quoting is |
1160 | +# there to prevent editors from complaining about space-tab. |
1161 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
1162 | +# splitting by setting IFS to empty value.) |
1163 | +IFS=" "" $as_nl" |
1164 | + |
1165 | +# Find who we are. Look in the path if we contain no directory separator. |
1166 | +as_myself= |
1167 | +case $0 in #(( |
1168 | + *[\\/]* ) as_myself=$0 ;; |
1169 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1170 | +for as_dir in $PATH |
1171 | +do |
1172 | + IFS=$as_save_IFS |
1173 | + test -z "$as_dir" && as_dir=. |
1174 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
1175 | + done |
1176 | +IFS=$as_save_IFS |
1177 | + |
1178 | + ;; |
1179 | +esac |
1180 | +# We did not find ourselves, most probably we were run as `sh COMMAND' |
1181 | +# in which case we are not to be found in the path. |
1182 | +if test "x$as_myself" = x; then |
1183 | + as_myself=$0 |
1184 | +fi |
1185 | +if test ! -f "$as_myself"; then |
1186 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1187 | + exit 1 |
1188 | +fi |
1189 | + |
1190 | +# Unset variables that we do not need and which cause bugs (e.g. in |
1191 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
1192 | +# suppresses any "Segmentation fault" message there. '((' could |
1193 | +# trigger a bug in pdksh 5.2.14. |
1194 | +for as_var in BASH_ENV ENV MAIL MAILPATH |
1195 | +do eval test x\${$as_var+set} = xset \ |
1196 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
1197 | +done |
1198 | +PS1='$ ' |
1199 | +PS2='> ' |
1200 | +PS4='+ ' |
1201 | + |
1202 | +# NLS nuisances. |
1203 | +LC_ALL=C |
1204 | +export LC_ALL |
1205 | +LANGUAGE=C |
1206 | +export LANGUAGE |
1207 | + |
1208 | +# CDPATH. |
1209 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1210 | + |
1211 | +if test "x$CONFIG_SHELL" = x; then |
1212 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
1213 | + emulate sh |
1214 | + NULLCMD=: |
1215 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
1216 | + # is contrary to our usage. Disable this feature. |
1217 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' |
1218 | + setopt NO_GLOB_SUBST |
1219 | +else |
1220 | + case \`(set -o) 2>/dev/null\` in #( |
1221 | + *posix*) : |
1222 | + set -o posix ;; #( |
1223 | + *) : |
1224 | + ;; |
1225 | +esac |
1226 | +fi |
1227 | +" |
1228 | + as_required="as_fn_return () { (exit \$1); } |
1229 | +as_fn_success () { as_fn_return 0; } |
1230 | +as_fn_failure () { as_fn_return 1; } |
1231 | +as_fn_ret_success () { return 0; } |
1232 | +as_fn_ret_failure () { return 1; } |
1233 | + |
1234 | +exitcode=0 |
1235 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
1236 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
1237 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
1238 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
1239 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
1240 | + |
1241 | +else |
1242 | + exitcode=1; echo positional parameters were not saved. |
1243 | +fi |
1244 | +test x\$exitcode = x0 || exit 1" |
1245 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
1246 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
1247 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
1248 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
1249 | +test \$(( 1 + 1 )) = 2 || exit 1 |
1250 | + |
1251 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
1252 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1253 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
1254 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
1255 | + PATH=/empty FPATH=/empty; export PATH FPATH |
1256 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
1257 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
1258 | + if (eval "$as_required") 2>/dev/null; then : |
1259 | + as_have_required=yes |
1260 | +else |
1261 | + as_have_required=no |
1262 | +fi |
1263 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
1264 | + |
1265 | +else |
1266 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1267 | +as_found=false |
1268 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1269 | +do |
1270 | + IFS=$as_save_IFS |
1271 | + test -z "$as_dir" && as_dir=. |
1272 | + as_found=: |
1273 | + case $as_dir in #( |
1274 | + /*) |
1275 | + for as_base in sh bash ksh sh5; do |
1276 | + # Try only shells that exist, to save several forks. |
1277 | + as_shell=$as_dir/$as_base |
1278 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
1279 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
1280 | + CONFIG_SHELL=$as_shell as_have_required=yes |
1281 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
1282 | + break 2 |
1283 | +fi |
1284 | +fi |
1285 | + done;; |
1286 | + esac |
1287 | + as_found=false |
1288 | +done |
1289 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
1290 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
1291 | + CONFIG_SHELL=$SHELL as_have_required=yes |
1292 | +fi; } |
1293 | +IFS=$as_save_IFS |
1294 | + |
1295 | + |
1296 | + if test "x$CONFIG_SHELL" != x; then : |
1297 | + # We cannot yet assume a decent shell, so we have to provide a |
1298 | + # neutralization value for shells without unset; and this also |
1299 | + # works around shells that cannot unset nonexistent variables. |
1300 | + # Preserve -v and -x to the replacement shell. |
1301 | + BASH_ENV=/dev/null |
1302 | + ENV=/dev/null |
1303 | + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
1304 | + export CONFIG_SHELL |
1305 | + case $- in # (((( |
1306 | + *v*x* | *x*v* ) as_opts=-vx ;; |
1307 | + *v* ) as_opts=-v ;; |
1308 | + *x* ) as_opts=-x ;; |
1309 | + * ) as_opts= ;; |
1310 | + esac |
1311 | + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
1312 | +fi |
1313 | + |
1314 | + if test x$as_have_required = xno; then : |
1315 | + $as_echo "$0: This script requires a shell more modern than all" |
1316 | + $as_echo "$0: the shells that I found on your system." |
1317 | + if test x${ZSH_VERSION+set} = xset ; then |
1318 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
1319 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
1320 | + else |
1321 | + $as_echo "$0: Please tell bug-autoconf@gnu.org and |
1322 | +$0: open-vm-tools-devel@lists.sourceforge.net about your |
1323 | +$0: system, including any error possibly output before this |
1324 | +$0: message. Then install a modern shell, or manually run |
1325 | +$0: the script under such a shell if you do have one." |
1326 | + fi |
1327 | + exit 1 |
1328 | +fi |
1329 | +fi |
1330 | +fi |
1331 | +SHELL=${CONFIG_SHELL-/bin/sh} |
1332 | +export SHELL |
1333 | +# Unset more variables known to interfere with behavior of common tools. |
1334 | +CLICOLOR_FORCE= GREP_OPTIONS= |
1335 | +unset CLICOLOR_FORCE GREP_OPTIONS |
1336 | + |
1337 | +## --------------------- ## |
1338 | +## M4sh Shell Functions. ## |
1339 | +## --------------------- ## |
1340 | +# as_fn_unset VAR |
1341 | +# --------------- |
1342 | +# Portably unset VAR. |
1343 | +as_fn_unset () |
1344 | +{ |
1345 | + { eval $1=; unset $1;} |
1346 | +} |
1347 | +as_unset=as_fn_unset |
1348 | + |
1349 | +# as_fn_set_status STATUS |
1350 | +# ----------------------- |
1351 | +# Set $? to STATUS, without forking. |
1352 | +as_fn_set_status () |
1353 | +{ |
1354 | + return $1 |
1355 | +} # as_fn_set_status |
1356 | + |
1357 | +# as_fn_exit STATUS |
1358 | +# ----------------- |
1359 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
1360 | +as_fn_exit () |
1361 | +{ |
1362 | + set +e |
1363 | + as_fn_set_status $1 |
1364 | + exit $1 |
1365 | +} # as_fn_exit |
1366 | + |
1367 | +# as_fn_mkdir_p |
1368 | +# ------------- |
1369 | +# Create "$as_dir" as a directory, including parents if necessary. |
1370 | +as_fn_mkdir_p () |
1371 | +{ |
1372 | + |
1373 | + case $as_dir in #( |
1374 | + -*) as_dir=./$as_dir;; |
1375 | + esac |
1376 | + test -d "$as_dir" || eval $as_mkdir_p || { |
1377 | + as_dirs= |
1378 | + while :; do |
1379 | + case $as_dir in #( |
1380 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
1381 | + *) as_qdir=$as_dir;; |
1382 | + esac |
1383 | + as_dirs="'$as_qdir' $as_dirs" |
1384 | + as_dir=`$as_dirname -- "$as_dir" || |
1385 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1386 | + X"$as_dir" : 'X\(//\)[^/]' \| \ |
1387 | + X"$as_dir" : 'X\(//\)$' \| \ |
1388 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1389 | +$as_echo X"$as_dir" | |
1390 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1391 | + s//\1/ |
1392 | + q |
1393 | + } |
1394 | + /^X\(\/\/\)[^/].*/{ |
1395 | + s//\1/ |
1396 | + q |
1397 | + } |
1398 | + /^X\(\/\/\)$/{ |
1399 | + s//\1/ |
1400 | + q |
1401 | + } |
1402 | + /^X\(\/\).*/{ |
1403 | + s//\1/ |
1404 | + q |
1405 | + } |
1406 | + s/.*/./; q'` |
1407 | + test -d "$as_dir" && break |
1408 | + done |
1409 | + test -z "$as_dirs" || eval "mkdir $as_dirs" |
1410 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1411 | + |
1412 | + |
1413 | +} # as_fn_mkdir_p |
1414 | +# as_fn_append VAR VALUE |
1415 | +# ---------------------- |
1416 | +# Append the text in VALUE to the end of the definition contained in VAR. Take |
1417 | +# advantage of any shell optimizations that allow amortized linear growth over |
1418 | +# repeated appends, instead of the typical quadratic growth present in naive |
1419 | +# implementations. |
1420 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
1421 | + eval 'as_fn_append () |
1422 | + { |
1423 | + eval $1+=\$2 |
1424 | + }' |
1425 | +else |
1426 | + as_fn_append () |
1427 | + { |
1428 | + eval $1=\$$1\$2 |
1429 | + } |
1430 | +fi # as_fn_append |
1431 | + |
1432 | +# as_fn_arith ARG... |
1433 | +# ------------------ |
1434 | +# Perform arithmetic evaluation on the ARGs, and store the result in the |
1435 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments |
1436 | +# must be portable across $(()) and expr. |
1437 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
1438 | + eval 'as_fn_arith () |
1439 | + { |
1440 | + as_val=$(( $* )) |
1441 | + }' |
1442 | +else |
1443 | + as_fn_arith () |
1444 | + { |
1445 | + as_val=`expr "$@" || test $? -eq 1` |
1446 | + } |
1447 | +fi # as_fn_arith |
1448 | + |
1449 | + |
1450 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] |
1451 | +# ---------------------------------------- |
1452 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
1453 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
1454 | +# script with STATUS, using 1 if that was 0. |
1455 | +as_fn_error () |
1456 | +{ |
1457 | + as_status=$1; test $as_status -eq 0 && as_status=1 |
1458 | + if test "$4"; then |
1459 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1460 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
1461 | + fi |
1462 | + $as_echo "$as_me: error: $2" >&2 |
1463 | + as_fn_exit $as_status |
1464 | +} # as_fn_error |
1465 | + |
1466 | +if expr a : '\(a\)' >/dev/null 2>&1 && |
1467 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then |
1468 | + as_expr=expr |
1469 | +else |
1470 | + as_expr=false |
1471 | +fi |
1472 | + |
1473 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1474 | + as_basename=basename |
1475 | +else |
1476 | + as_basename=false |
1477 | +fi |
1478 | + |
1479 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
1480 | + as_dirname=dirname |
1481 | +else |
1482 | + as_dirname=false |
1483 | +fi |
1484 | + |
1485 | +as_me=`$as_basename -- "$0" || |
1486 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
1487 | + X"$0" : 'X\(//\)$' \| \ |
1488 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1489 | +$as_echo X/"$0" | |
1490 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ |
1491 | + s//\1/ |
1492 | + q |
1493 | + } |
1494 | + /^X\/\(\/\/\)$/{ |
1495 | + s//\1/ |
1496 | + q |
1497 | + } |
1498 | + /^X\/\(\/\).*/{ |
1499 | + s//\1/ |
1500 | + q |
1501 | + } |
1502 | + s/.*/./; q'` |
1503 | + |
1504 | +# Avoid depending upon Character Ranges. |
1505 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
1506 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
1507 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
1508 | +as_cr_digits='0123456789' |
1509 | +as_cr_alnum=$as_cr_Letters$as_cr_digits |
1510 | + |
1511 | + |
1512 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO |
1513 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO |
1514 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
1515 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
1516 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
1517 | + sed -n ' |
1518 | + p |
1519 | + /[$]LINENO/= |
1520 | + ' <$as_myself | |
1521 | + sed ' |
1522 | + s/[$]LINENO.*/&-/ |
1523 | + t lineno |
1524 | + b |
1525 | + :lineno |
1526 | + N |
1527 | + :loop |
1528 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
1529 | + t loop |
1530 | + s/-\n.*// |
1531 | + ' >$as_me.lineno && |
1532 | + chmod +x "$as_me.lineno" || |
1533 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
1534 | + |
1535 | + # Don't try to exec as it changes $[0], causing all sort of problems |
1536 | + # (the dirname of $[0] is not the place where we might find the |
1537 | + # original and so on. Autoconf is especially sensitive to this). |
1538 | + . "./$as_me.lineno" |
1539 | + # Exit status is that of the last command. |
1540 | + exit |
1541 | +} |
1542 | + |
1543 | +ECHO_C= ECHO_N= ECHO_T= |
1544 | +case `echo -n x` in #((((( |
1545 | +-n*) |
1546 | + case `echo 'xy\c'` in |
1547 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1548 | + xy) ECHO_C='\c';; |
1549 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
1550 | + ECHO_T=' ';; |
1551 | + esac;; |
1552 | +*) |
1553 | + ECHO_N='-n';; |
1554 | +esac |
1555 | + |
1556 | +rm -f conf$$ conf$$.exe conf$$.file |
1557 | +if test -d conf$$.dir; then |
1558 | + rm -f conf$$.dir/conf$$.file |
1559 | +else |
1560 | + rm -f conf$$.dir |
1561 | + mkdir conf$$.dir 2>/dev/null |
1562 | +fi |
1563 | +if (echo >conf$$.file) 2>/dev/null; then |
1564 | + if ln -s conf$$.file conf$$ 2>/dev/null; then |
1565 | + as_ln_s='ln -s' |
1566 | + # ... but there are two gotchas: |
1567 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
1568 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
1569 | + # In both cases, we have to default to `cp -p'. |
1570 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
1571 | + as_ln_s='cp -p' |
1572 | + elif ln conf$$.file conf$$ 2>/dev/null; then |
1573 | + as_ln_s=ln |
1574 | + else |
1575 | + as_ln_s='cp -p' |
1576 | + fi |
1577 | +else |
1578 | + as_ln_s='cp -p' |
1579 | +fi |
1580 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
1581 | +rmdir conf$$.dir 2>/dev/null |
1582 | + |
1583 | +if mkdir -p . 2>/dev/null; then |
1584 | + as_mkdir_p='mkdir -p "$as_dir"' |
1585 | +else |
1586 | + test -d ./-p && rmdir ./-p |
1587 | + as_mkdir_p=false |
1588 | +fi |
1589 | + |
1590 | +if test -x / >/dev/null 2>&1; then |
1591 | + as_test_x='test -x' |
1592 | +else |
1593 | + if ls -dL / >/dev/null 2>&1; then |
1594 | + as_ls_L_option=L |
1595 | + else |
1596 | + as_ls_L_option= |
1597 | + fi |
1598 | + as_test_x=' |
1599 | + eval sh -c '\'' |
1600 | + if test -d "$1"; then |
1601 | + test -d "$1/."; |
1602 | + else |
1603 | + case $1 in #( |
1604 | + -*)set "./$1";; |
1605 | + esac; |
1606 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
1607 | + ???[sx]*):;;*)false;;esac;fi |
1608 | + '\'' sh |
1609 | + ' |
1610 | +fi |
1611 | +as_executable_p=$as_test_x |
1612 | + |
1613 | +# Sed expression to map a string onto a valid CPP name. |
1614 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1615 | + |
1616 | +# Sed expression to map a string onto a valid variable name. |
1617 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1618 | + |
1619 | +SHELL=${CONFIG_SHELL-/bin/sh} |
1620 | + |
1621 | + |
1622 | +test -n "$DJDIR" || exec 7<&0 </dev/null |
1623 | +exec 6>&1 |
1624 | + |
1625 | +# Name of the host. |
1626 | +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1627 | +# so uname gets run too. |
1628 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
1629 | + |
1630 | +# |
1631 | +# Initializations. |
1632 | +# |
1633 | +ac_default_prefix=/usr/local |
1634 | +ac_clean_files= |
1635 | +ac_config_libobj_dir=. |
1636 | +LIBOBJS= |
1637 | +cross_compiling=no |
1638 | +subdirs= |
1639 | +MFLAGS= |
1640 | +MAKEFLAGS= |
1641 | + |
1642 | +# Identity of this package. |
1643 | +PACKAGE_NAME='open-vm-tools' |
1644 | +PACKAGE_TARNAME='open-vm-tools' |
1645 | +PACKAGE_VERSION='2012.12.26' |
1646 | +PACKAGE_STRING='open-vm-tools 2012.12.26' |
1647 | +PACKAGE_BUGREPORT='open-vm-tools-devel@lists.sourceforge.net' |
1648 | +PACKAGE_URL='' |
1649 | + |
1650 | +ac_unique_file="checkvm/checkvm.c" |
1651 | +# Factoring default headers for most tests. |
1652 | +ac_includes_default="\ |
1653 | +#include <stdio.h> |
1654 | +#ifdef HAVE_SYS_TYPES_H |
1655 | +# include <sys/types.h> |
1656 | +#endif |
1657 | +#ifdef HAVE_SYS_STAT_H |
1658 | +# include <sys/stat.h> |
1659 | +#endif |
1660 | +#ifdef STDC_HEADERS |
1661 | +# include <stdlib.h> |
1662 | +# include <stddef.h> |
1663 | +#else |
1664 | +# ifdef HAVE_STDLIB_H |
1665 | +# include <stdlib.h> |
1666 | +# endif |
1667 | +#endif |
1668 | +#ifdef HAVE_STRING_H |
1669 | +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
1670 | +# include <memory.h> |
1671 | +# endif |
1672 | +# include <string.h> |
1673 | +#endif |
1674 | +#ifdef HAVE_STRINGS_H |
1675 | +# include <strings.h> |
1676 | +#endif |
1677 | +#ifdef HAVE_INTTYPES_H |
1678 | +# include <inttypes.h> |
1679 | +#endif |
1680 | +#ifdef HAVE_STDINT_H |
1681 | +# include <stdint.h> |
1682 | +#endif |
1683 | +#ifdef HAVE_UNISTD_H |
1684 | +# include <unistd.h> |
1685 | +#endif" |
1686 | + |
1687 | +ac_subst_vars='am__EXEEXT_FALSE |
1688 | +am__EXEEXT_TRUE |
1689 | +LTLIBOBJS |
1690 | +LIBOBJS |
1691 | +VIX_LIBADD |
1692 | +LIBVMTOOLS_LIBADD |
1693 | +LIB_USER_CPPFLAGS |
1694 | +LIB_IMPERSONATE_CPPFLAGS |
1695 | +LIB_AUTH_CPPFLAGS |
1696 | +RPCGEN_WRAPPER |
1697 | +INSTVMSG |
1698 | +SYSDIR |
1699 | +VMUSR_PLUGIN_INSTALLDIR |
1700 | +VMSVC_PLUGIN_INSTALLDIR |
1701 | +COMMON_PLUGIN_INSTALLDIR |
1702 | +TEST_PLUGIN_INSTALLDIR |
1703 | +XDR_LIBS |
1704 | +RPCGENFLAGS |
1705 | +VMTOOLS_LIBS |
1706 | +VMTOOLS_CPPFLAGS |
1707 | +PLUGIN_LDFLAGS |
1708 | +PLUGIN_CPPFLAGS |
1709 | +PAM_PREFIX |
1710 | +XCOMPOSITE_LIBS |
1711 | +XSM_LIBS |
1712 | +COMMON_XLIBS |
1713 | +MODULES |
1714 | +MODULES_DIR |
1715 | +MODULES_OS |
1716 | +LINUXINCLUDE |
1717 | +KERNEL_RELEASE |
1718 | +TARGET_OS |
1719 | +TOOLS_VERSION |
1720 | +HGFS_LIBS |
1721 | +USE_PRINTF_WRAPPERS_FALSE |
1722 | +USE_PRINTF_WRAPPERS_TRUE |
1723 | +USE_SLASH_PROC_FALSE |
1724 | +USE_SLASH_PROC_TRUE |
1725 | +HAVE_PAM_FALSE |
1726 | +HAVE_PAM_TRUE |
1727 | +HAVE_GTKMM_FALSE |
1728 | +HAVE_GTKMM_TRUE |
1729 | +HAVE_GNU_LD_FALSE |
1730 | +HAVE_GNU_LD_TRUE |
1731 | +HAVE_FUSE_FALSE |
1732 | +HAVE_FUSE_TRUE |
1733 | +HAVE_DOXYGEN_FALSE |
1734 | +HAVE_DOXYGEN_TRUE |
1735 | +HAVE_DNET_FALSE |
1736 | +HAVE_DNET_TRUE |
1737 | +WITH_ROOT_PRIVILEGES_FALSE |
1738 | +WITH_ROOT_PRIVILEGES_TRUE |
1739 | +ENABLE_TESTS_FALSE |
1740 | +ENABLE_TESTS_TRUE |
1741 | +HAVE_XCOMPOSITE_FALSE |
1742 | +HAVE_XCOMPOSITE_TRUE |
1743 | +HAVE_XSM_FALSE |
1744 | +HAVE_XSM_TRUE |
1745 | +WITH_KERNEL_MODULES_FALSE |
1746 | +WITH_KERNEL_MODULES_TRUE |
1747 | +HAVE_ICU_FALSE |
1748 | +HAVE_ICU_TRUE |
1749 | +HAVE_X11_FALSE |
1750 | +HAVE_X11_TRUE |
1751 | +THIRTY_TWO_BIT_USERSPACE_FALSE |
1752 | +THIRTY_TWO_BIT_USERSPACE_TRUE |
1753 | +FREEBSD_CUSTOM_SYSDIR_FALSE |
1754 | +FREEBSD_CUSTOM_SYSDIR_TRUE |
1755 | +FREEBSD_FALSE |
1756 | +FREEBSD_TRUE |
1757 | +SOLARIS_FALSE |
1758 | +SOLARIS_TRUE |
1759 | +LINUX_FALSE |
1760 | +LINUX_TRUE |
1761 | +BUILD_HGFSMOUNTER_FALSE |
1762 | +BUILD_HGFSMOUNTER_TRUE |
1763 | +MSCGEN_DIR |
1764 | +MSCGEN |
1765 | +HAVE_DOT |
1766 | +DOT |
1767 | +have_doxygen |
1768 | +RPCGEN |
1769 | +ICU_LIBS |
1770 | +ICU_CPPFLAGS |
1771 | +have_cxx |
1772 | +DNET_LIBS |
1773 | +DNET_CPPFLAGS |
1774 | +PROCPS_LIBS |
1775 | +PROCPS_CPPFLAGS |
1776 | +GTKMM_LIBS |
1777 | +GTKMM_CPPFLAGS |
1778 | +GTK_LIBS |
1779 | +GTK_CPPFLAGS |
1780 | +CUNIT_LIBS |
1781 | +CUNIT_CPPFLAGS |
1782 | +PAM_LIBS |
1783 | +PAM_CPPFLAGS |
1784 | +FUSE_LIBS |
1785 | +FUSE_CPPFLAGS |
1786 | +have_genmarshal |
1787 | +GTHREAD_LIBS |
1788 | +GTHREAD_CPPFLAGS |
1789 | +GOBJECT_LIBS |
1790 | +GOBJECT_CPPFLAGS |
1791 | +GMODULE_LIBS |
1792 | +GMODULE_CPPFLAGS |
1793 | +GLIB2_LIBS |
1794 | +GLIB2_CPPFLAGS |
1795 | +ac_vmw_lib_cfg |
1796 | +X_EXTRA_LIBS |
1797 | +X_LIBS |
1798 | +X_PRE_LIBS |
1799 | +X_CFLAGS |
1800 | +XMKMF |
1801 | +HAVE_PKG_CONFIG |
1802 | +CXXCPP |
1803 | +OTOOL64 |
1804 | +OTOOL |
1805 | +LIPO |
1806 | +NMEDIT |
1807 | +DSYMUTIL |
1808 | +MANIFEST_TOOL |
1809 | +RANLIB |
1810 | +ac_ct_AR |
1811 | +AR |
1812 | +DLLTOOL |
1813 | +OBJDUMP |
1814 | +NM |
1815 | +ac_ct_DUMPBIN |
1816 | +DUMPBIN |
1817 | +LD |
1818 | +FGREP |
1819 | +EGREP |
1820 | +GREP |
1821 | +LIBTOOL |
1822 | +LN_S |
1823 | +SED |
1824 | +am__fastdepCXX_FALSE |
1825 | +am__fastdepCXX_TRUE |
1826 | +CXXDEPMODE |
1827 | +ac_ct_CXX |
1828 | +CXXFLAGS |
1829 | +CXX |
1830 | +CPP |
1831 | +am__fastdepCC_FALSE |
1832 | +am__fastdepCC_TRUE |
1833 | +CCDEPMODE |
1834 | +am__nodep |
1835 | +AMDEPBACKSLASH |
1836 | +AMDEP_FALSE |
1837 | +AMDEP_TRUE |
1838 | +am__quote |
1839 | +am__include |
1840 | +DEPDIR |
1841 | +OBJEXT |
1842 | +EXEEXT |
1843 | +ac_ct_CC |
1844 | +CPPFLAGS |
1845 | +LDFLAGS |
1846 | +CFLAGS |
1847 | +CC |
1848 | +am__untar |
1849 | +am__tar |
1850 | +AMTAR |
1851 | +am__leading_dot |
1852 | +SET_MAKE |
1853 | +AWK |
1854 | +mkdir_p |
1855 | +MKDIR_P |
1856 | +INSTALL_STRIP_PROGRAM |
1857 | +STRIP |
1858 | +install_sh |
1859 | +MAKEINFO |
1860 | +AUTOHEADER |
1861 | +AUTOMAKE |
1862 | +AUTOCONF |
1863 | +ACLOCAL |
1864 | +VERSION |
1865 | +PACKAGE |
1866 | +CYGPATH_W |
1867 | +am__isrc |
1868 | +INSTALL_DATA |
1869 | +INSTALL_SCRIPT |
1870 | +INSTALL_PROGRAM |
1871 | +host_os |
1872 | +host_vendor |
1873 | +host_cpu |
1874 | +host |
1875 | +build_os |
1876 | +build_vendor |
1877 | +build_cpu |
1878 | +build |
1879 | +target_alias |
1880 | +host_alias |
1881 | +build_alias |
1882 | +LIBS |
1883 | +ECHO_T |
1884 | +ECHO_N |
1885 | +ECHO_C |
1886 | +DEFS |
1887 | +mandir |
1888 | +localedir |
1889 | +libdir |
1890 | +psdir |
1891 | +pdfdir |
1892 | +dvidir |
1893 | +htmldir |
1894 | +infodir |
1895 | +docdir |
1896 | +oldincludedir |
1897 | +includedir |
1898 | +localstatedir |
1899 | +sharedstatedir |
1900 | +sysconfdir |
1901 | +datadir |
1902 | +datarootdir |
1903 | +libexecdir |
1904 | +sbindir |
1905 | +bindir |
1906 | +program_transform_name |
1907 | +prefix |
1908 | +exec_prefix |
1909 | +PACKAGE_URL |
1910 | +PACKAGE_BUGREPORT |
1911 | +PACKAGE_STRING |
1912 | +PACKAGE_VERSION |
1913 | +PACKAGE_TARNAME |
1914 | +PACKAGE_NAME |
1915 | +PATH_SEPARATOR |
1916 | +SHELL' |
1917 | +ac_subst_files='' |
1918 | +ac_user_opts=' |
1919 | +enable_option_checking |
1920 | +with_root_privileges |
1921 | +with_kernel_modules |
1922 | +with_kernel_release |
1923 | +with_linuxdir |
1924 | +enable_multimon |
1925 | +with_gtk2 |
1926 | +with_gtkmm |
1927 | +enable_docs |
1928 | +enable_tests |
1929 | +enable_dependency_tracking |
1930 | +enable_shared |
1931 | +enable_static |
1932 | +with_pic |
1933 | +enable_fast_install |
1934 | +with_gnu_ld |
1935 | +with_sysroot |
1936 | +enable_libtool_lock |
1937 | +with_x |
1938 | +with_pam |
1939 | +with_pam_prefix |
1940 | +with_procps |
1941 | +with_dnet |
1942 | +with_icu |
1943 | +' |
1944 | + ac_precious_vars='build_alias |
1945 | +host_alias |
1946 | +target_alias |
1947 | +CC |
1948 | +CFLAGS |
1949 | +LDFLAGS |
1950 | +LIBS |
1951 | +CPPFLAGS |
1952 | +CPP |
1953 | +CXX |
1954 | +CXXFLAGS |
1955 | +CCC |
1956 | +CXXCPP |
1957 | +XMKMF' |
1958 | + |
1959 | + |
1960 | +# Initialize some variables set by options. |
1961 | +ac_init_help= |
1962 | +ac_init_version=false |
1963 | +ac_unrecognized_opts= |
1964 | +ac_unrecognized_sep= |
1965 | +# The variables have the same names as the options, with |
1966 | +# dashes changed to underlines. |
1967 | +cache_file=/dev/null |
1968 | +exec_prefix=NONE |
1969 | +no_create= |
1970 | +no_recursion= |
1971 | +prefix=NONE |
1972 | +program_prefix=NONE |
1973 | +program_suffix=NONE |
1974 | +program_transform_name=s,x,x, |
1975 | +silent= |
1976 | +site= |
1977 | +srcdir= |
1978 | +verbose= |
1979 | +x_includes=NONE |
1980 | +x_libraries=NONE |
1981 | + |
1982 | +# Installation directory options. |
1983 | +# These are left unexpanded so users can "make install exec_prefix=/foo" |
1984 | +# and all the variables that are supposed to be based on exec_prefix |
1985 | +# by default will actually change. |
1986 | +# Use braces instead of parens because sh, perl, etc. also accept them. |
1987 | +# (The list follows the same order as the GNU Coding Standards.) |
1988 | +bindir='${exec_prefix}/bin' |
1989 | +sbindir='${exec_prefix}/sbin' |
1990 | +libexecdir='${exec_prefix}/libexec' |
1991 | +datarootdir='${prefix}/share' |
1992 | +datadir='${datarootdir}' |
1993 | +sysconfdir='${prefix}/etc' |
1994 | +sharedstatedir='${prefix}/com' |
1995 | +localstatedir='${prefix}/var' |
1996 | +includedir='${prefix}/include' |
1997 | +oldincludedir='/usr/include' |
1998 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1999 | +infodir='${datarootdir}/info' |
2000 | +htmldir='${docdir}' |
2001 | +dvidir='${docdir}' |
2002 | +pdfdir='${docdir}' |
2003 | +psdir='${docdir}' |
2004 | +libdir='${exec_prefix}/lib' |
2005 | +localedir='${datarootdir}/locale' |
2006 | +mandir='${datarootdir}/man' |
2007 | + |
2008 | +ac_prev= |
2009 | +ac_dashdash= |
2010 | +for ac_option |
2011 | +do |
2012 | + # If the previous option needs an argument, assign it. |
2013 | + if test -n "$ac_prev"; then |
2014 | + eval $ac_prev=\$ac_option |
2015 | + ac_prev= |
2016 | + continue |
2017 | + fi |
2018 | + |
2019 | + case $ac_option in |
2020 | + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
2021 | + *=) ac_optarg= ;; |
2022 | + *) ac_optarg=yes ;; |
2023 | + esac |
2024 | + |
2025 | + # Accept the important Cygnus configure options, so we can diagnose typos. |
2026 | + |
2027 | + case $ac_dashdash$ac_option in |
2028 | + --) |
2029 | + ac_dashdash=yes ;; |
2030 | + |
2031 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) |
2032 | + ac_prev=bindir ;; |
2033 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
2034 | + bindir=$ac_optarg ;; |
2035 | + |
2036 | + -build | --build | --buil | --bui | --bu) |
2037 | + ac_prev=build_alias ;; |
2038 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
2039 | + build_alias=$ac_optarg ;; |
2040 | + |
2041 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ |
2042 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
2043 | + ac_prev=cache_file ;; |
2044 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
2045 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2046 | + cache_file=$ac_optarg ;; |
2047 | + |
2048 | + --config-cache | -C) |
2049 | + cache_file=config.cache ;; |
2050 | + |
2051 | + -datadir | --datadir | --datadi | --datad) |
2052 | + ac_prev=datadir ;; |
2053 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2054 | + datadir=$ac_optarg ;; |
2055 | + |
2056 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
2057 | + | --dataroo | --dataro | --datar) |
2058 | + ac_prev=datarootdir ;; |
2059 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
2060 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
2061 | + datarootdir=$ac_optarg ;; |
2062 | + |
2063 | + -disable-* | --disable-*) |
2064 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2065 | + # Reject names that are not valid shell variable names. |
2066 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2067 | + as_fn_error $? "invalid feature name: $ac_useropt" |
2068 | + ac_useropt_orig=$ac_useropt |
2069 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2070 | + case $ac_user_opts in |
2071 | + *" |
2072 | +"enable_$ac_useropt" |
2073 | +"*) ;; |
2074 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
2075 | + ac_unrecognized_sep=', ';; |
2076 | + esac |
2077 | + eval enable_$ac_useropt=no ;; |
2078 | + |
2079 | + -docdir | --docdir | --docdi | --doc | --do) |
2080 | + ac_prev=docdir ;; |
2081 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
2082 | + docdir=$ac_optarg ;; |
2083 | + |
2084 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
2085 | + ac_prev=dvidir ;; |
2086 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
2087 | + dvidir=$ac_optarg ;; |
2088 | + |
2089 | + -enable-* | --enable-*) |
2090 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2091 | + # Reject names that are not valid shell variable names. |
2092 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2093 | + as_fn_error $? "invalid feature name: $ac_useropt" |
2094 | + ac_useropt_orig=$ac_useropt |
2095 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2096 | + case $ac_user_opts in |
2097 | + *" |
2098 | +"enable_$ac_useropt" |
2099 | +"*) ;; |
2100 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
2101 | + ac_unrecognized_sep=', ';; |
2102 | + esac |
2103 | + eval enable_$ac_useropt=\$ac_optarg ;; |
2104 | + |
2105 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
2106 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
2107 | + | --exec | --exe | --ex) |
2108 | + ac_prev=exec_prefix ;; |
2109 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
2110 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
2111 | + | --exec=* | --exe=* | --ex=*) |
2112 | + exec_prefix=$ac_optarg ;; |
2113 | + |
2114 | + -gas | --gas | --ga | --g) |
2115 | + # Obsolete; use --with-gas. |
2116 | + with_gas=yes ;; |
2117 | + |
2118 | + -help | --help | --hel | --he | -h) |
2119 | + ac_init_help=long ;; |
2120 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
2121 | + ac_init_help=recursive ;; |
2122 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
2123 | + ac_init_help=short ;; |
2124 | + |
2125 | + -host | --host | --hos | --ho) |
2126 | + ac_prev=host_alias ;; |
2127 | + -host=* | --host=* | --hos=* | --ho=*) |
2128 | + host_alias=$ac_optarg ;; |
2129 | + |
2130 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
2131 | + ac_prev=htmldir ;; |
2132 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
2133 | + | --ht=*) |
2134 | + htmldir=$ac_optarg ;; |
2135 | + |
2136 | + -includedir | --includedir | --includedi | --included | --include \ |
2137 | + | --includ | --inclu | --incl | --inc) |
2138 | + ac_prev=includedir ;; |
2139 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
2140 | + | --includ=* | --inclu=* | --incl=* | --inc=*) |
2141 | + includedir=$ac_optarg ;; |
2142 | + |
2143 | + -infodir | --infodir | --infodi | --infod | --info | --inf) |
2144 | + ac_prev=infodir ;; |
2145 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
2146 | + infodir=$ac_optarg ;; |
2147 | + |
2148 | + -libdir | --libdir | --libdi | --libd) |
2149 | + ac_prev=libdir ;; |
2150 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) |
2151 | + libdir=$ac_optarg ;; |
2152 | + |
2153 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
2154 | + | --libexe | --libex | --libe) |
2155 | + ac_prev=libexecdir ;; |
2156 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
2157 | + | --libexe=* | --libex=* | --libe=*) |
2158 | + libexecdir=$ac_optarg ;; |
2159 | + |
2160 | + -localedir | --localedir | --localedi | --localed | --locale) |
2161 | + ac_prev=localedir ;; |
2162 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
2163 | + localedir=$ac_optarg ;; |
2164 | + |
2165 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ |
2166 | + | --localstate | --localstat | --localsta | --localst | --locals) |
2167 | + ac_prev=localstatedir ;; |
2168 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
2169 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2170 | + localstatedir=$ac_optarg ;; |
2171 | + |
2172 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
2173 | + ac_prev=mandir ;; |
2174 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
2175 | + mandir=$ac_optarg ;; |
2176 | + |
2177 | + -nfp | --nfp | --nf) |
2178 | + # Obsolete; use --without-fp. |
2179 | + with_fp=no ;; |
2180 | + |
2181 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
2182 | + | --no-cr | --no-c | -n) |
2183 | + no_create=yes ;; |
2184 | + |
2185 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
2186 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
2187 | + no_recursion=yes ;; |
2188 | + |
2189 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
2190 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
2191 | + | --oldin | --oldi | --old | --ol | --o) |
2192 | + ac_prev=oldincludedir ;; |
2193 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
2194 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
2195 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
2196 | + oldincludedir=$ac_optarg ;; |
2197 | + |
2198 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
2199 | + ac_prev=prefix ;; |
2200 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
2201 | + prefix=$ac_optarg ;; |
2202 | + |
2203 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
2204 | + | --program-pre | --program-pr | --program-p) |
2205 | + ac_prev=program_prefix ;; |
2206 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
2207 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
2208 | + program_prefix=$ac_optarg ;; |
2209 | + |
2210 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
2211 | + | --program-suf | --program-su | --program-s) |
2212 | + ac_prev=program_suffix ;; |
2213 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
2214 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
2215 | + program_suffix=$ac_optarg ;; |
2216 | + |
2217 | + -program-transform-name | --program-transform-name \ |
2218 | + | --program-transform-nam | --program-transform-na \ |
2219 | + | --program-transform-n | --program-transform- \ |
2220 | + | --program-transform | --program-transfor \ |
2221 | + | --program-transfo | --program-transf \ |
2222 | + | --program-trans | --program-tran \ |
2223 | + | --progr-tra | --program-tr | --program-t) |
2224 | + ac_prev=program_transform_name ;; |
2225 | + -program-transform-name=* | --program-transform-name=* \ |
2226 | + | --program-transform-nam=* | --program-transform-na=* \ |
2227 | + | --program-transform-n=* | --program-transform-=* \ |
2228 | + | --program-transform=* | --program-transfor=* \ |
2229 | + | --program-transfo=* | --program-transf=* \ |
2230 | + | --program-trans=* | --program-tran=* \ |
2231 | + | --progr-tra=* | --program-tr=* | --program-t=*) |
2232 | + program_transform_name=$ac_optarg ;; |
2233 | + |
2234 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
2235 | + ac_prev=pdfdir ;; |
2236 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
2237 | + pdfdir=$ac_optarg ;; |
2238 | + |
2239 | + -psdir | --psdir | --psdi | --psd | --ps) |
2240 | + ac_prev=psdir ;; |
2241 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
2242 | + psdir=$ac_optarg ;; |
2243 | + |
2244 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2245 | + | -silent | --silent | --silen | --sile | --sil) |
2246 | + silent=yes ;; |
2247 | + |
2248 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
2249 | + ac_prev=sbindir ;; |
2250 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
2251 | + | --sbi=* | --sb=*) |
2252 | + sbindir=$ac_optarg ;; |
2253 | + |
2254 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
2255 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
2256 | + | --sharedst | --shareds | --shared | --share | --shar \ |
2257 | + | --sha | --sh) |
2258 | + ac_prev=sharedstatedir ;; |
2259 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
2260 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
2261 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
2262 | + | --sha=* | --sh=*) |
2263 | + sharedstatedir=$ac_optarg ;; |
2264 | + |
2265 | + -site | --site | --sit) |
2266 | + ac_prev=site ;; |
2267 | + -site=* | --site=* | --sit=*) |
2268 | + site=$ac_optarg ;; |
2269 | + |
2270 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
2271 | + ac_prev=srcdir ;; |
2272 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
2273 | + srcdir=$ac_optarg ;; |
2274 | + |
2275 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
2276 | + | --syscon | --sysco | --sysc | --sys | --sy) |
2277 | + ac_prev=sysconfdir ;; |
2278 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
2279 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
2280 | + sysconfdir=$ac_optarg ;; |
2281 | + |
2282 | + -target | --target | --targe | --targ | --tar | --ta | --t) |
2283 | + ac_prev=target_alias ;; |
2284 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
2285 | + target_alias=$ac_optarg ;; |
2286 | + |
2287 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) |
2288 | + verbose=yes ;; |
2289 | + |
2290 | + -version | --version | --versio | --versi | --vers | -V) |
2291 | + ac_init_version=: ;; |
2292 | + |
2293 | + -with-* | --with-*) |
2294 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2295 | + # Reject names that are not valid shell variable names. |
2296 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2297 | + as_fn_error $? "invalid package name: $ac_useropt" |
2298 | + ac_useropt_orig=$ac_useropt |
2299 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2300 | + case $ac_user_opts in |
2301 | + *" |
2302 | +"with_$ac_useropt" |
2303 | +"*) ;; |
2304 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
2305 | + ac_unrecognized_sep=', ';; |
2306 | + esac |
2307 | + eval with_$ac_useropt=\$ac_optarg ;; |
2308 | + |
2309 | + -without-* | --without-*) |
2310 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2311 | + # Reject names that are not valid shell variable names. |
2312 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2313 | + as_fn_error $? "invalid package name: $ac_useropt" |
2314 | + ac_useropt_orig=$ac_useropt |
2315 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2316 | + case $ac_user_opts in |
2317 | + *" |
2318 | +"with_$ac_useropt" |
2319 | +"*) ;; |
2320 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
2321 | + ac_unrecognized_sep=', ';; |
2322 | + esac |
2323 | + eval with_$ac_useropt=no ;; |
2324 | + |
2325 | + --x) |
2326 | + # Obsolete; use --with-x. |
2327 | + with_x=yes ;; |
2328 | + |
2329 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
2330 | + | --x-incl | --x-inc | --x-in | --x-i) |
2331 | + ac_prev=x_includes ;; |
2332 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
2333 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
2334 | + x_includes=$ac_optarg ;; |
2335 | + |
2336 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
2337 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
2338 | + ac_prev=x_libraries ;; |
2339 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
2340 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
2341 | + x_libraries=$ac_optarg ;; |
2342 | + |
2343 | + -*) as_fn_error $? "unrecognized option: \`$ac_option' |
2344 | +Try \`$0 --help' for more information" |
2345 | + ;; |
2346 | + |
2347 | + *=*) |
2348 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
2349 | + # Reject names that are not valid shell variable names. |
2350 | + case $ac_envvar in #( |
2351 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) |
2352 | + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
2353 | + esac |
2354 | + eval $ac_envvar=\$ac_optarg |
2355 | + export $ac_envvar ;; |
2356 | + |
2357 | + *) |
2358 | + # FIXME: should be removed in autoconf 3.0. |
2359 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2360 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
2361 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2362 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
2363 | + ;; |
2364 | + |
2365 | + esac |
2366 | +done |
2367 | + |
2368 | +if test -n "$ac_prev"; then |
2369 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
2370 | + as_fn_error $? "missing argument to $ac_option" |
2371 | +fi |
2372 | + |
2373 | +if test -n "$ac_unrecognized_opts"; then |
2374 | + case $enable_option_checking in |
2375 | + no) ;; |
2376 | + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
2377 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2378 | + esac |
2379 | +fi |
2380 | + |
2381 | +# Check all directory arguments for consistency. |
2382 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
2383 | + datadir sysconfdir sharedstatedir localstatedir includedir \ |
2384 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
2385 | + libdir localedir mandir |
2386 | +do |
2387 | + eval ac_val=\$$ac_var |
2388 | + # Remove trailing slashes. |
2389 | + case $ac_val in |
2390 | + */ ) |
2391 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
2392 | + eval $ac_var=\$ac_val;; |
2393 | + esac |
2394 | + # Be sure to have absolute directory names. |
2395 | + case $ac_val in |
2396 | + [\\/$]* | ?:[\\/]* ) continue;; |
2397 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
2398 | + esac |
2399 | + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
2400 | +done |
2401 | + |
2402 | +# There might be people who depend on the old broken behavior: `$host' |
2403 | +# used to hold the argument of --host etc. |
2404 | +# FIXME: To remove some day. |
2405 | +build=$build_alias |
2406 | +host=$host_alias |
2407 | +target=$target_alias |
2408 | + |
2409 | +# FIXME: To remove some day. |
2410 | +if test "x$host_alias" != x; then |
2411 | + if test "x$build_alias" = x; then |
2412 | + cross_compiling=maybe |
2413 | + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
2414 | + If a cross compiler is detected then cross compile mode will be used" >&2 |
2415 | + elif test "x$build_alias" != "x$host_alias"; then |
2416 | + cross_compiling=yes |
2417 | + fi |
2418 | +fi |
2419 | + |
2420 | +ac_tool_prefix= |
2421 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- |
2422 | + |
2423 | +test "$silent" = yes && exec 6>/dev/null |
2424 | + |
2425 | + |
2426 | +ac_pwd=`pwd` && test -n "$ac_pwd" && |
2427 | +ac_ls_di=`ls -di .` && |
2428 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
2429 | + as_fn_error $? "working directory cannot be determined" |
2430 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
2431 | + as_fn_error $? "pwd does not report name of working directory" |
2432 | + |
2433 | + |
2434 | +# Find the source files, if location was not specified. |
2435 | +if test -z "$srcdir"; then |
2436 | + ac_srcdir_defaulted=yes |
2437 | + # Try the directory containing this script, then the parent directory. |
2438 | + ac_confdir=`$as_dirname -- "$as_myself" || |
2439 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
2440 | + X"$as_myself" : 'X\(//\)[^/]' \| \ |
2441 | + X"$as_myself" : 'X\(//\)$' \| \ |
2442 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
2443 | +$as_echo X"$as_myself" | |
2444 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
2445 | + s//\1/ |
2446 | + q |
2447 | + } |
2448 | + /^X\(\/\/\)[^/].*/{ |
2449 | + s//\1/ |
2450 | + q |
2451 | + } |
2452 | + /^X\(\/\/\)$/{ |
2453 | + s//\1/ |
2454 | + q |
2455 | + } |
2456 | + /^X\(\/\).*/{ |
2457 | + s//\1/ |
2458 | + q |
2459 | + } |
2460 | + s/.*/./; q'` |
2461 | + srcdir=$ac_confdir |
2462 | + if test ! -r "$srcdir/$ac_unique_file"; then |
2463 | + srcdir=.. |
2464 | + fi |
2465 | +else |
2466 | + ac_srcdir_defaulted=no |
2467 | +fi |
2468 | +if test ! -r "$srcdir/$ac_unique_file"; then |
2469 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
2470 | + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
2471 | +fi |
2472 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
2473 | +ac_abs_confdir=`( |
2474 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
2475 | + pwd)` |
2476 | +# When building in place, set srcdir=. |
2477 | +if test "$ac_abs_confdir" = "$ac_pwd"; then |
2478 | + srcdir=. |
2479 | +fi |
2480 | +# Remove unnecessary trailing slashes from srcdir. |
2481 | +# Double slashes in file names in object file debugging info |
2482 | +# mess up M-x gdb in Emacs. |
2483 | +case $srcdir in |
2484 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
2485 | +esac |
2486 | +for ac_var in $ac_precious_vars; do |
2487 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} |
2488 | + eval ac_env_${ac_var}_value=\$${ac_var} |
2489 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
2490 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} |
2491 | +done |
2492 | + |
2493 | +# |
2494 | +# Report the --help message. |
2495 | +# |
2496 | +if test "$ac_init_help" = "long"; then |
2497 | + # Omit some internal or obsolete options to make the list less imposing. |
2498 | + # This message is too long to be a string in the A/UX 3.1 sh. |
2499 | + cat <<_ACEOF |
2500 | +\`configure' configures open-vm-tools 2012.12.26 to adapt to many kinds of systems. |
2501 | + |
2502 | +Usage: $0 [OPTION]... [VAR=VALUE]... |
2503 | + |
2504 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as |
2505 | +VAR=VALUE. See below for descriptions of some of the useful variables. |
2506 | + |
2507 | +Defaults for the options are specified in brackets. |
2508 | + |
2509 | +Configuration: |
2510 | + -h, --help display this help and exit |
2511 | + --help=short display options specific to this package |
2512 | + --help=recursive display the short help of all the included packages |
2513 | + -V, --version display version information and exit |
2514 | + -q, --quiet, --silent do not print \`checking ...' messages |
2515 | + --cache-file=FILE cache test results in FILE [disabled] |
2516 | + -C, --config-cache alias for \`--cache-file=config.cache' |
2517 | + -n, --no-create do not create output files |
2518 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
2519 | + |
2520 | +Installation directories: |
2521 | + --prefix=PREFIX install architecture-independent files in PREFIX |
2522 | + [$ac_default_prefix] |
2523 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
2524 | + [PREFIX] |
2525 | + |
2526 | +By default, \`make install' will install all the files in |
2527 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
2528 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
2529 | +for instance \`--prefix=\$HOME'. |
2530 | + |
2531 | +For better control, use the options below. |
2532 | + |
2533 | +Fine tuning of the installation directories: |
2534 | + --bindir=DIR user executables [EPREFIX/bin] |
2535 | + --sbindir=DIR system admin executables [EPREFIX/sbin] |
2536 | + --libexecdir=DIR program executables [EPREFIX/libexec] |
2537 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
2538 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
2539 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
2540 | + --libdir=DIR object code libraries [EPREFIX/lib] |
2541 | + --includedir=DIR C header files [PREFIX/include] |
2542 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] |
2543 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
2544 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
2545 | + --infodir=DIR info documentation [DATAROOTDIR/info] |
2546 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
2547 | + --mandir=DIR man documentation [DATAROOTDIR/man] |
2548 | + --docdir=DIR documentation root [DATAROOTDIR/doc/open-vm-tools] |
2549 | + --htmldir=DIR html documentation [DOCDIR] |
2550 | + --dvidir=DIR dvi documentation [DOCDIR] |
2551 | + --pdfdir=DIR pdf documentation [DOCDIR] |
2552 | + --psdir=DIR ps documentation [DOCDIR] |
2553 | +_ACEOF |
2554 | + |
2555 | + cat <<\_ACEOF |
2556 | + |
2557 | +Program names: |
2558 | + --program-prefix=PREFIX prepend PREFIX to installed program names |
2559 | + --program-suffix=SUFFIX append SUFFIX to installed program names |
2560 | + --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
2561 | + |
2562 | +X features: |
2563 | + --x-includes=DIR X include files are in DIR |
2564 | + --x-libraries=DIR X library files are in DIR |
2565 | + |
2566 | +System types: |
2567 | + --build=BUILD configure for building on BUILD [guessed] |
2568 | + --host=HOST cross-compile to build programs to run on HOST [BUILD] |
2569 | +_ACEOF |
2570 | +fi |
2571 | + |
2572 | +if test -n "$ac_init_help"; then |
2573 | + case $ac_init_help in |
2574 | + short | recursive ) echo "Configuration of open-vm-tools 2012.12.26:";; |
2575 | + esac |
2576 | + cat <<\_ACEOF |
2577 | + |
2578 | +Optional Features: |
2579 | + --disable-option-checking ignore unrecognized --enable/--with options |
2580 | + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
2581 | + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
2582 | + --disable-multimon disables multimon, enabled by default |
2583 | + --disable-docs disables generation of API documentation; by |
2584 | + default, docs are built if doxygen is available. |
2585 | + --disable-tests disable compilation of test code. |
2586 | + --disable-dependency-tracking speeds up one-time build |
2587 | + --enable-dependency-tracking do not reject slow dependency extractors |
2588 | + --enable-shared[=PKGS] build shared libraries [default=yes] |
2589 | + --enable-static[=PKGS] build static libraries [default=yes] |
2590 | + --enable-fast-install[=PKGS] |
2591 | + optimize for fast installation [default=yes] |
2592 | + --disable-libtool-lock avoid locking (might break parallel builds) |
2593 | + |
2594 | +Optional Packages: |
2595 | + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
2596 | + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
2597 | + --without-root-privileges |
2598 | + does not perform any operations that require root |
2599 | + privileges |
2600 | + --without-kernel-modules |
2601 | + does not compile or install the kernel modules |
2602 | + --with-kernel-release specifies the kernel release you want to build |
2603 | + against |
2604 | + --with-linuxdir specifies the Linux directory you want to use |
2605 | + --without-gtk2 compiles without Gtk 2.0 |
2606 | + --without-gtkmm compiles without Gtkmm, sigc++, and related libs |
2607 | + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
2608 | + both] |
2609 | + --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
2610 | + --with-sysroot=DIR Search for dependent libraries within DIR |
2611 | + (or the compiler's sysroot if not specified). |
2612 | + --with-x use the X Window System |
2613 | + --without-pam compiles without PAM support. |
2614 | + --with-pam-prefix specifies where pam files go. Default is |
2615 | + $(sysconfdir) |
2616 | + --without-procps compiles without libproc (disables support for |
2617 | + meminfo) |
2618 | + --without-dnet compiles without libdnet (disables support for |
2619 | + nicinfo) |
2620 | + --without-icu disables support for ICU |
2621 | + |
2622 | +Some influential environment variables: |
2623 | + CC C compiler command |
2624 | + CFLAGS C compiler flags |
2625 | + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
2626 | + nonstandard directory <lib dir> |
2627 | + LIBS libraries to pass to the linker, e.g. -l<library> |
2628 | + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
2629 | + you have headers in a nonstandard directory <include dir> |
2630 | + CPP C preprocessor |
2631 | + CXX C++ compiler command |
2632 | + CXXFLAGS C++ compiler flags |
2633 | + CXXCPP C++ preprocessor |
2634 | + XMKMF Path to xmkmf, Makefile generator for X Window System |
2635 | + |
2636 | +Use these variables to override the choices made by `configure' or to help |
2637 | +it to find libraries and programs with nonstandard names/locations. |
2638 | + |
2639 | +Report bugs to <open-vm-tools-devel@lists.sourceforge.net>. |
2640 | +_ACEOF |
2641 | +ac_status=$? |
2642 | +fi |
2643 | + |
2644 | +if test "$ac_init_help" = "recursive"; then |
2645 | + # If there are subdirs, report their specific --help. |
2646 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
2647 | + test -d "$ac_dir" || |
2648 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
2649 | + continue |
2650 | + ac_builddir=. |
2651 | + |
2652 | +case "$ac_dir" in |
2653 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
2654 | +*) |
2655 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
2656 | + # A ".." for each directory in $ac_dir_suffix. |
2657 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
2658 | + case $ac_top_builddir_sub in |
2659 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
2660 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
2661 | + esac ;; |
2662 | +esac |
2663 | +ac_abs_top_builddir=$ac_pwd |
2664 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix |
2665 | +# for backward compatibility: |
2666 | +ac_top_builddir=$ac_top_build_prefix |
2667 | + |
2668 | +case $srcdir in |
2669 | + .) # We are building in place. |
2670 | + ac_srcdir=. |
2671 | + ac_top_srcdir=$ac_top_builddir_sub |
2672 | + ac_abs_top_srcdir=$ac_pwd ;; |
2673 | + [\\/]* | ?:[\\/]* ) # Absolute name. |
2674 | + ac_srcdir=$srcdir$ac_dir_suffix; |
2675 | + ac_top_srcdir=$srcdir |
2676 | + ac_abs_top_srcdir=$srcdir ;; |
2677 | + *) # Relative name. |
2678 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
2679 | + ac_top_srcdir=$ac_top_build_prefix$srcdir |
2680 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
2681 | +esac |
2682 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2683 | + |
2684 | + cd "$ac_dir" || { ac_status=$?; continue; } |
2685 | + # Check for guested configure. |
2686 | + if test -f "$ac_srcdir/configure.gnu"; then |
2687 | + echo && |
2688 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
2689 | + elif test -f "$ac_srcdir/configure"; then |
2690 | + echo && |
2691 | + $SHELL "$ac_srcdir/configure" --help=recursive |
2692 | + else |
2693 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2694 | + fi || ac_status=$? |
2695 | + cd "$ac_pwd" || { ac_status=$?; break; } |
2696 | + done |
2697 | +fi |
2698 | + |
2699 | +test -n "$ac_init_help" && exit $ac_status |
2700 | +if $ac_init_version; then |
2701 | + cat <<\_ACEOF |
2702 | +open-vm-tools configure 2012.12.26 |
2703 | +generated by GNU Autoconf 2.68 |
2704 | + |
2705 | +Copyright (C) 2010 Free Software Foundation, Inc. |
2706 | +This configure script is free software; the Free Software Foundation |
2707 | +gives unlimited permission to copy, distribute and modify it. |
2708 | +_ACEOF |
2709 | + exit |
2710 | +fi |
2711 | + |
2712 | +## ------------------------ ## |
2713 | +## Autoconf initialization. ## |
2714 | +## ------------------------ ## |
2715 | + |
2716 | +# ac_fn_c_try_compile LINENO |
2717 | +# -------------------------- |
2718 | +# Try to compile conftest.$ac_ext, and return whether this succeeded. |
2719 | +ac_fn_c_try_compile () |
2720 | +{ |
2721 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2722 | + rm -f conftest.$ac_objext |
2723 | + if { { ac_try="$ac_compile" |
2724 | +case "(($ac_try" in |
2725 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2726 | + *) ac_try_echo=$ac_try;; |
2727 | +esac |
2728 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2729 | +$as_echo "$ac_try_echo"; } >&5 |
2730 | + (eval "$ac_compile") 2>conftest.err |
2731 | + ac_status=$? |
2732 | + if test -s conftest.err; then |
2733 | + grep -v '^ *+' conftest.err >conftest.er1 |
2734 | + cat conftest.er1 >&5 |
2735 | + mv -f conftest.er1 conftest.err |
2736 | + fi |
2737 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2738 | + test $ac_status = 0; } && { |
2739 | + test -z "$ac_c_werror_flag" || |
2740 | + test ! -s conftest.err |
2741 | + } && test -s conftest.$ac_objext; then : |
2742 | + ac_retval=0 |
2743 | +else |
2744 | + $as_echo "$as_me: failed program was:" >&5 |
2745 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2746 | + |
2747 | + ac_retval=1 |
2748 | +fi |
2749 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2750 | + as_fn_set_status $ac_retval |
2751 | + |
2752 | +} # ac_fn_c_try_compile |
2753 | + |
2754 | +# ac_fn_c_try_cpp LINENO |
2755 | +# ---------------------- |
2756 | +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
2757 | +ac_fn_c_try_cpp () |
2758 | +{ |
2759 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2760 | + if { { ac_try="$ac_cpp conftest.$ac_ext" |
2761 | +case "(($ac_try" in |
2762 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2763 | + *) ac_try_echo=$ac_try;; |
2764 | +esac |
2765 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2766 | +$as_echo "$ac_try_echo"; } >&5 |
2767 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
2768 | + ac_status=$? |
2769 | + if test -s conftest.err; then |
2770 | + grep -v '^ *+' conftest.err >conftest.er1 |
2771 | + cat conftest.er1 >&5 |
2772 | + mv -f conftest.er1 conftest.err |
2773 | + fi |
2774 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2775 | + test $ac_status = 0; } > conftest.i && { |
2776 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2777 | + test ! -s conftest.err |
2778 | + }; then : |
2779 | + ac_retval=0 |
2780 | +else |
2781 | + $as_echo "$as_me: failed program was:" >&5 |
2782 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2783 | + |
2784 | + ac_retval=1 |
2785 | +fi |
2786 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2787 | + as_fn_set_status $ac_retval |
2788 | + |
2789 | +} # ac_fn_c_try_cpp |
2790 | + |
2791 | +# ac_fn_cxx_try_compile LINENO |
2792 | +# ---------------------------- |
2793 | +# Try to compile conftest.$ac_ext, and return whether this succeeded. |
2794 | +ac_fn_cxx_try_compile () |
2795 | +{ |
2796 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2797 | + rm -f conftest.$ac_objext |
2798 | + if { { ac_try="$ac_compile" |
2799 | +case "(($ac_try" in |
2800 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2801 | + *) ac_try_echo=$ac_try;; |
2802 | +esac |
2803 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2804 | +$as_echo "$ac_try_echo"; } >&5 |
2805 | + (eval "$ac_compile") 2>conftest.err |
2806 | + ac_status=$? |
2807 | + if test -s conftest.err; then |
2808 | + grep -v '^ *+' conftest.err >conftest.er1 |
2809 | + cat conftest.er1 >&5 |
2810 | + mv -f conftest.er1 conftest.err |
2811 | + fi |
2812 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2813 | + test $ac_status = 0; } && { |
2814 | + test -z "$ac_cxx_werror_flag" || |
2815 | + test ! -s conftest.err |
2816 | + } && test -s conftest.$ac_objext; then : |
2817 | + ac_retval=0 |
2818 | +else |
2819 | + $as_echo "$as_me: failed program was:" >&5 |
2820 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2821 | + |
2822 | + ac_retval=1 |
2823 | +fi |
2824 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2825 | + as_fn_set_status $ac_retval |
2826 | + |
2827 | +} # ac_fn_cxx_try_compile |
2828 | + |
2829 | +# ac_fn_c_try_link LINENO |
2830 | +# ----------------------- |
2831 | +# Try to link conftest.$ac_ext, and return whether this succeeded. |
2832 | +ac_fn_c_try_link () |
2833 | +{ |
2834 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2835 | + rm -f conftest.$ac_objext conftest$ac_exeext |
2836 | + if { { ac_try="$ac_link" |
2837 | +case "(($ac_try" in |
2838 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2839 | + *) ac_try_echo=$ac_try;; |
2840 | +esac |
2841 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2842 | +$as_echo "$ac_try_echo"; } >&5 |
2843 | + (eval "$ac_link") 2>conftest.err |
2844 | + ac_status=$? |
2845 | + if test -s conftest.err; then |
2846 | + grep -v '^ *+' conftest.err >conftest.er1 |
2847 | + cat conftest.er1 >&5 |
2848 | + mv -f conftest.er1 conftest.err |
2849 | + fi |
2850 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2851 | + test $ac_status = 0; } && { |
2852 | + test -z "$ac_c_werror_flag" || |
2853 | + test ! -s conftest.err |
2854 | + } && test -s conftest$ac_exeext && { |
2855 | + test "$cross_compiling" = yes || |
2856 | + $as_test_x conftest$ac_exeext |
2857 | + }; then : |
2858 | + ac_retval=0 |
2859 | +else |
2860 | + $as_echo "$as_me: failed program was:" >&5 |
2861 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2862 | + |
2863 | + ac_retval=1 |
2864 | +fi |
2865 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2866 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
2867 | + # interfere with the next link command; also delete a directory that is |
2868 | + # left behind by Apple's compiler. We do this before executing the actions. |
2869 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2870 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2871 | + as_fn_set_status $ac_retval |
2872 | + |
2873 | +} # ac_fn_c_try_link |
2874 | + |
2875 | +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2876 | +# ------------------------------------------------------- |
2877 | +# Tests whether HEADER exists and can be compiled using the include files in |
2878 | +# INCLUDES, setting the cache variable VAR accordingly. |
2879 | +ac_fn_c_check_header_compile () |
2880 | +{ |
2881 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2882 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2883 | +$as_echo_n "checking for $2... " >&6; } |
2884 | +if eval \${$3+:} false; then : |
2885 | + $as_echo_n "(cached) " >&6 |
2886 | +else |
2887 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2888 | +/* end confdefs.h. */ |
2889 | +$4 |
2890 | +#include <$2> |
2891 | +_ACEOF |
2892 | +if ac_fn_c_try_compile "$LINENO"; then : |
2893 | + eval "$3=yes" |
2894 | +else |
2895 | + eval "$3=no" |
2896 | +fi |
2897 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2898 | +fi |
2899 | +eval ac_res=\$$3 |
2900 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2901 | +$as_echo "$ac_res" >&6; } |
2902 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2903 | + |
2904 | +} # ac_fn_c_check_header_compile |
2905 | + |
2906 | +# ac_fn_c_try_run LINENO |
2907 | +# ---------------------- |
2908 | +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
2909 | +# that executables *can* be run. |
2910 | +ac_fn_c_try_run () |
2911 | +{ |
2912 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2913 | + if { { ac_try="$ac_link" |
2914 | +case "(($ac_try" in |
2915 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2916 | + *) ac_try_echo=$ac_try;; |
2917 | +esac |
2918 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2919 | +$as_echo "$ac_try_echo"; } >&5 |
2920 | + (eval "$ac_link") 2>&5 |
2921 | + ac_status=$? |
2922 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2923 | + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
2924 | + { { case "(($ac_try" in |
2925 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2926 | + *) ac_try_echo=$ac_try;; |
2927 | +esac |
2928 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2929 | +$as_echo "$ac_try_echo"; } >&5 |
2930 | + (eval "$ac_try") 2>&5 |
2931 | + ac_status=$? |
2932 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2933 | + test $ac_status = 0; }; }; then : |
2934 | + ac_retval=0 |
2935 | +else |
2936 | + $as_echo "$as_me: program exited with status $ac_status" >&5 |
2937 | + $as_echo "$as_me: failed program was:" >&5 |
2938 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2939 | + |
2940 | + ac_retval=$ac_status |
2941 | +fi |
2942 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2943 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2944 | + as_fn_set_status $ac_retval |
2945 | + |
2946 | +} # ac_fn_c_try_run |
2947 | + |
2948 | +# ac_fn_c_check_func LINENO FUNC VAR |
2949 | +# ---------------------------------- |
2950 | +# Tests whether FUNC exists, setting the cache variable VAR accordingly |
2951 | +ac_fn_c_check_func () |
2952 | +{ |
2953 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2954 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2955 | +$as_echo_n "checking for $2... " >&6; } |
2956 | +if eval \${$3+:} false; then : |
2957 | + $as_echo_n "(cached) " >&6 |
2958 | +else |
2959 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2960 | +/* end confdefs.h. */ |
2961 | +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2962 | + For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2963 | +#define $2 innocuous_$2 |
2964 | + |
2965 | +/* System header to define __stub macros and hopefully few prototypes, |
2966 | + which can conflict with char $2 (); below. |
2967 | + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2968 | + <limits.h> exists even on freestanding compilers. */ |
2969 | + |
2970 | +#ifdef __STDC__ |
2971 | +# include <limits.h> |
2972 | +#else |
2973 | +# include <assert.h> |
2974 | +#endif |
2975 | + |
2976 | +#undef $2 |
2977 | + |
2978 | +/* Override any GCC internal prototype to avoid an error. |
2979 | + Use char because int might match the return type of a GCC |
2980 | + builtin and then its argument prototype would still apply. */ |
2981 | +#ifdef __cplusplus |
2982 | +extern "C" |
2983 | +#endif |
2984 | +char $2 (); |
2985 | +/* The GNU C library defines this for functions which it implements |
2986 | + to always fail with ENOSYS. Some functions are actually named |
2987 | + something starting with __ and the normal name is an alias. */ |
2988 | +#if defined __stub_$2 || defined __stub___$2 |
2989 | +choke me |
2990 | +#endif |
2991 | + |
2992 | +int |
2993 | +main () |
2994 | +{ |
2995 | +return $2 (); |
2996 | + ; |
2997 | + return 0; |
2998 | +} |
2999 | +_ACEOF |
3000 | +if ac_fn_c_try_link "$LINENO"; then : |
3001 | + eval "$3=yes" |
3002 | +else |
3003 | + eval "$3=no" |
3004 | +fi |
3005 | +rm -f core conftest.err conftest.$ac_objext \ |
3006 | + conftest$ac_exeext conftest.$ac_ext |
3007 | +fi |
3008 | +eval ac_res=\$$3 |
3009 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3010 | +$as_echo "$ac_res" >&6; } |
3011 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3012 | + |
3013 | +} # ac_fn_c_check_func |
3014 | + |
3015 | +# ac_fn_cxx_try_cpp LINENO |
3016 | +# ------------------------ |
3017 | +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
3018 | +ac_fn_cxx_try_cpp () |
3019 | +{ |
3020 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3021 | + if { { ac_try="$ac_cpp conftest.$ac_ext" |
3022 | +case "(($ac_try" in |
3023 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3024 | + *) ac_try_echo=$ac_try;; |
3025 | +esac |
3026 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3027 | +$as_echo "$ac_try_echo"; } >&5 |
3028 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
3029 | + ac_status=$? |
3030 | + if test -s conftest.err; then |
3031 | + grep -v '^ *+' conftest.err >conftest.er1 |
3032 | + cat conftest.er1 >&5 |
3033 | + mv -f conftest.er1 conftest.err |
3034 | + fi |
3035 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3036 | + test $ac_status = 0; } > conftest.i && { |
3037 | + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
3038 | + test ! -s conftest.err |
3039 | + }; then : |
3040 | + ac_retval=0 |
3041 | +else |
3042 | + $as_echo "$as_me: failed program was:" >&5 |
3043 | +sed 's/^/| /' conftest.$ac_ext >&5 |
3044 | + |
3045 | + ac_retval=1 |
3046 | +fi |
3047 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3048 | + as_fn_set_status $ac_retval |
3049 | + |
3050 | +} # ac_fn_cxx_try_cpp |
3051 | + |
3052 | +# ac_fn_cxx_try_link LINENO |
3053 | +# ------------------------- |
3054 | +# Try to link conftest.$ac_ext, and return whether this succeeded. |
3055 | +ac_fn_cxx_try_link () |
3056 | +{ |
3057 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3058 | + rm -f conftest.$ac_objext conftest$ac_exeext |
3059 | + if { { ac_try="$ac_link" |
3060 | +case "(($ac_try" in |
3061 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3062 | + *) ac_try_echo=$ac_try;; |
3063 | +esac |
3064 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3065 | +$as_echo "$ac_try_echo"; } >&5 |
3066 | + (eval "$ac_link") 2>conftest.err |
3067 | + ac_status=$? |
3068 | + if test -s conftest.err; then |
3069 | + grep -v '^ *+' conftest.err >conftest.er1 |
3070 | + cat conftest.er1 >&5 |
3071 | + mv -f conftest.er1 conftest.err |
3072 | + fi |
3073 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3074 | + test $ac_status = 0; } && { |
3075 | + test -z "$ac_cxx_werror_flag" || |
3076 | + test ! -s conftest.err |
3077 | + } && test -s conftest$ac_exeext && { |
3078 | + test "$cross_compiling" = yes || |
3079 | + $as_test_x conftest$ac_exeext |
3080 | + }; then : |
3081 | + ac_retval=0 |
3082 | +else |
3083 | + $as_echo "$as_me: failed program was:" >&5 |
3084 | +sed 's/^/| /' conftest.$ac_ext >&5 |
3085 | + |
3086 | + ac_retval=1 |
3087 | +fi |
3088 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
3089 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
3090 | + # interfere with the next link command; also delete a directory that is |
3091 | + # left behind by Apple's compiler. We do this before executing the actions. |
3092 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
3093 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3094 | + as_fn_set_status $ac_retval |
3095 | + |
3096 | +} # ac_fn_cxx_try_link |
3097 | + |
3098 | +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
3099 | +# ------------------------------------------------------- |
3100 | +# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
3101 | +# the include files in INCLUDES and setting the cache variable VAR |
3102 | +# accordingly. |
3103 | +ac_fn_c_check_header_mongrel () |
3104 | +{ |
3105 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3106 | + if eval \${$3+:} false; then : |
3107 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3108 | +$as_echo_n "checking for $2... " >&6; } |
3109 | +if eval \${$3+:} false; then : |
3110 | + $as_echo_n "(cached) " >&6 |
3111 | +fi |
3112 | +eval ac_res=\$$3 |
3113 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3114 | +$as_echo "$ac_res" >&6; } |
3115 | +else |
3116 | + # Is the header compilable? |
3117 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
3118 | +$as_echo_n "checking $2 usability... " >&6; } |
3119 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3120 | +/* end confdefs.h. */ |
3121 | +$4 |
3122 | +#include <$2> |
3123 | +_ACEOF |
3124 | +if ac_fn_c_try_compile "$LINENO"; then : |
3125 | + ac_header_compiler=yes |
3126 | +else |
3127 | + ac_header_compiler=no |
3128 | +fi |
3129 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3130 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
3131 | +$as_echo "$ac_header_compiler" >&6; } |
3132 | + |
3133 | +# Is the header present? |
3134 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
3135 | +$as_echo_n "checking $2 presence... " >&6; } |
3136 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3137 | +/* end confdefs.h. */ |
3138 | +#include <$2> |
3139 | +_ACEOF |
3140 | +if ac_fn_c_try_cpp "$LINENO"; then : |
3141 | + ac_header_preproc=yes |
3142 | +else |
3143 | + ac_header_preproc=no |
3144 | +fi |
3145 | +rm -f conftest.err conftest.i conftest.$ac_ext |
3146 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
3147 | +$as_echo "$ac_header_preproc" >&6; } |
3148 | + |
3149 | +# So? What about this header? |
3150 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
3151 | + yes:no: ) |
3152 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
3153 | +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3154 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
3155 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
3156 | + ;; |
3157 | + no:yes:* ) |
3158 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
3159 | +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
3160 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
3161 | +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
3162 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
3163 | +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
3164 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
3165 | +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
3166 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
3167 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
3168 | +( $as_echo "## -------------------------------------------------------- ## |
3169 | +## Report this to open-vm-tools-devel@lists.sourceforge.net ## |
3170 | +## -------------------------------------------------------- ##" |
3171 | + ) | sed "s/^/$as_me: WARNING: /" >&2 |
3172 | + ;; |
3173 | +esac |
3174 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3175 | +$as_echo_n "checking for $2... " >&6; } |
3176 | +if eval \${$3+:} false; then : |
3177 | + $as_echo_n "(cached) " >&6 |
3178 | +else |
3179 | + eval "$3=\$ac_header_compiler" |
3180 | +fi |
3181 | +eval ac_res=\$$3 |
3182 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3183 | +$as_echo "$ac_res" >&6; } |
3184 | +fi |
3185 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3186 | + |
3187 | +} # ac_fn_c_check_header_mongrel |
3188 | + |
3189 | +# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
3190 | +# --------------------------------------------------------- |
3191 | +# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
3192 | +# the include files in INCLUDES and setting the cache variable VAR |
3193 | +# accordingly. |
3194 | +ac_fn_cxx_check_header_mongrel () |
3195 | +{ |
3196 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3197 | + if eval \${$3+:} false; then : |
3198 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3199 | +$as_echo_n "checking for $2... " >&6; } |
3200 | +if eval \${$3+:} false; then : |
3201 | + $as_echo_n "(cached) " >&6 |
3202 | +fi |
3203 | +eval ac_res=\$$3 |
3204 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3205 | +$as_echo "$ac_res" >&6; } |
3206 | +else |
3207 | + # Is the header compilable? |
3208 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
3209 | +$as_echo_n "checking $2 usability... " >&6; } |
3210 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3211 | +/* end confdefs.h. */ |
3212 | +$4 |
3213 | +#include <$2> |
3214 | +_ACEOF |
3215 | +if ac_fn_cxx_try_compile "$LINENO"; then : |
3216 | + ac_header_compiler=yes |
3217 | +else |
3218 | + ac_header_compiler=no |
3219 | +fi |
3220 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3221 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
3222 | +$as_echo "$ac_header_compiler" >&6; } |
3223 | + |
3224 | +# Is the header present? |
3225 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
3226 | +$as_echo_n "checking $2 presence... " >&6; } |
3227 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3228 | +/* end confdefs.h. */ |
3229 | +#include <$2> |
3230 | +_ACEOF |
3231 | +if ac_fn_cxx_try_cpp "$LINENO"; then : |
3232 | + ac_header_preproc=yes |
3233 | +else |
3234 | + ac_header_preproc=no |
3235 | +fi |
3236 | +rm -f conftest.err conftest.i conftest.$ac_ext |
3237 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
3238 | +$as_echo "$ac_header_preproc" >&6; } |
3239 | + |
3240 | +# So? What about this header? |
3241 | +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
3242 | + yes:no: ) |
3243 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
3244 | +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3245 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
3246 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
3247 | + ;; |
3248 | + no:yes:* ) |
3249 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
3250 | +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
3251 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
3252 | +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
3253 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
3254 | +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
3255 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
3256 | +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
3257 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
3258 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
3259 | +( $as_echo "## -------------------------------------------------------- ## |
3260 | +## Report this to open-vm-tools-devel@lists.sourceforge.net ## |
3261 | +## -------------------------------------------------------- ##" |
3262 | + ) | sed "s/^/$as_me: WARNING: /" >&2 |
3263 | + ;; |
3264 | +esac |
3265 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3266 | +$as_echo_n "checking for $2... " >&6; } |
3267 | +if eval \${$3+:} false; then : |
3268 | + $as_echo_n "(cached) " >&6 |
3269 | +else |
3270 | + eval "$3=\$ac_header_compiler" |
3271 | +fi |
3272 | +eval ac_res=\$$3 |
3273 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3274 | +$as_echo "$ac_res" >&6; } |
3275 | +fi |
3276 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3277 | + |
3278 | +} # ac_fn_cxx_check_header_mongrel |
3279 | + |
3280 | +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
3281 | +# ------------------------------------------- |
3282 | +# Tests whether TYPE exists after having included INCLUDES, setting cache |
3283 | +# variable VAR accordingly. |
3284 | +ac_fn_c_check_type () |
3285 | +{ |
3286 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3287 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3288 | +$as_echo_n "checking for $2... " >&6; } |
3289 | +if eval \${$3+:} false; then : |
3290 | + $as_echo_n "(cached) " >&6 |
3291 | +else |
3292 | + eval "$3=no" |
3293 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3294 | +/* end confdefs.h. */ |
3295 | +$4 |
3296 | +int |
3297 | +main () |
3298 | +{ |
3299 | +if (sizeof ($2)) |
3300 | + return 0; |
3301 | + ; |
3302 | + return 0; |
3303 | +} |
3304 | +_ACEOF |
3305 | +if ac_fn_c_try_compile "$LINENO"; then : |
3306 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3307 | +/* end confdefs.h. */ |
3308 | +$4 |
3309 | +int |
3310 | +main () |
3311 | +{ |
3312 | +if (sizeof (($2))) |
3313 | + return 0; |
3314 | + ; |
3315 | + return 0; |
3316 | +} |
3317 | +_ACEOF |
3318 | +if ac_fn_c_try_compile "$LINENO"; then : |
3319 | + |
3320 | +else |
3321 | + eval "$3=yes" |
3322 | +fi |
3323 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3324 | +fi |
3325 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3326 | +fi |
3327 | +eval ac_res=\$$3 |
3328 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3329 | +$as_echo "$ac_res" >&6; } |
3330 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3331 | + |
3332 | +} # ac_fn_c_check_type |
3333 | + |
3334 | +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
3335 | +# ---------------------------------------------------- |
3336 | +# Tries to find if the field MEMBER exists in type AGGR, after including |
3337 | +# INCLUDES, setting cache variable VAR accordingly. |
3338 | +ac_fn_c_check_member () |
3339 | +{ |
3340 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3341 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
3342 | +$as_echo_n "checking for $2.$3... " >&6; } |
3343 | +if eval \${$4+:} false; then : |
3344 | + $as_echo_n "(cached) " >&6 |
3345 | +else |
3346 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3347 | +/* end confdefs.h. */ |
3348 | +$5 |
3349 | +int |
3350 | +main () |
3351 | +{ |
3352 | +static $2 ac_aggr; |
3353 | +if (ac_aggr.$3) |
3354 | +return 0; |
3355 | + ; |
3356 | + return 0; |
3357 | +} |
3358 | +_ACEOF |
3359 | +if ac_fn_c_try_compile "$LINENO"; then : |
3360 | + eval "$4=yes" |
3361 | +else |
3362 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3363 | +/* end confdefs.h. */ |
3364 | +$5 |
3365 | +int |
3366 | +main () |
3367 | +{ |
3368 | +static $2 ac_aggr; |
3369 | +if (sizeof ac_aggr.$3) |
3370 | +return 0; |
3371 | + ; |
3372 | + return 0; |
3373 | +} |
3374 | +_ACEOF |
3375 | +if ac_fn_c_try_compile "$LINENO"; then : |
3376 | + eval "$4=yes" |
3377 | +else |
3378 | + eval "$4=no" |
3379 | +fi |
3380 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3381 | +fi |
3382 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3383 | +fi |
3384 | +eval ac_res=\$$4 |
3385 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3386 | +$as_echo "$ac_res" >&6; } |
3387 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3388 | + |
3389 | +} # ac_fn_c_check_member |
3390 | +cat >config.log <<_ACEOF |
3391 | +This file contains any messages produced by compilers while |
3392 | +running configure, to aid debugging if configure makes a mistake. |
3393 | + |
3394 | +It was created by open-vm-tools $as_me 2012.12.26, which was |
3395 | +generated by GNU Autoconf 2.68. Invocation command line was |
3396 | + |
3397 | + $ $0 $@ |
3398 | + |
3399 | +_ACEOF |
3400 | +exec 5>>config.log |
3401 | +{ |
3402 | +cat <<_ASUNAME |
3403 | +## --------- ## |
3404 | +## Platform. ## |
3405 | +## --------- ## |
3406 | + |
3407 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
3408 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` |
3409 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` |
3410 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` |
3411 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` |
3412 | + |
3413 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
3414 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
3415 | + |
3416 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
3417 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
3418 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
3419 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
3420 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
3421 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
3422 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
3423 | + |
3424 | +_ASUNAME |
3425 | + |
3426 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3427 | +for as_dir in $PATH |
3428 | +do |
3429 | + IFS=$as_save_IFS |
3430 | + test -z "$as_dir" && as_dir=. |
3431 | + $as_echo "PATH: $as_dir" |
3432 | + done |
3433 | +IFS=$as_save_IFS |
3434 | + |
3435 | +} >&5 |
3436 | + |
3437 | +cat >&5 <<_ACEOF |
3438 | + |
3439 | + |
3440 | +## ----------- ## |
3441 | +## Core tests. ## |
3442 | +## ----------- ## |
3443 | + |
3444 | +_ACEOF |
3445 | + |
3446 | + |
3447 | +# Keep a trace of the command line. |
3448 | +# Strip out --no-create and --no-recursion so they do not pile up. |
3449 | +# Strip out --silent because we don't want to record it for future runs. |
3450 | +# Also quote any args containing shell meta-characters. |
3451 | +# Make two passes to allow for proper duplicate-argument suppression. |
3452 | +ac_configure_args= |
3453 | +ac_configure_args0= |
3454 | +ac_configure_args1= |
3455 | +ac_must_keep_next=false |
3456 | +for ac_pass in 1 2 |
3457 | +do |
3458 | + for ac_arg |
3459 | + do |
3460 | + case $ac_arg in |
3461 | + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
3462 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
3463 | + | -silent | --silent | --silen | --sile | --sil) |
3464 | + continue ;; |
3465 | + *\'*) |
3466 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
3467 | + esac |
3468 | + case $ac_pass in |
3469 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
3470 | + 2) |
3471 | + as_fn_append ac_configure_args1 " '$ac_arg'" |
3472 | + if test $ac_must_keep_next = true; then |
3473 | + ac_must_keep_next=false # Got value, back to normal. |
3474 | + else |
3475 | + case $ac_arg in |
3476 | + *=* | --config-cache | -C | -disable-* | --disable-* \ |
3477 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
3478 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
3479 | + | -with-* | --with-* | -without-* | --without-* | --x) |
3480 | + case "$ac_configure_args0 " in |
3481 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
3482 | + esac |
3483 | + ;; |
3484 | + -* ) ac_must_keep_next=true ;; |
3485 | + esac |
3486 | + fi |
3487 | + as_fn_append ac_configure_args " '$ac_arg'" |
3488 | + ;; |
3489 | + esac |
3490 | + done |
3491 | +done |
3492 | +{ ac_configure_args0=; unset ac_configure_args0;} |
3493 | +{ ac_configure_args1=; unset ac_configure_args1;} |
3494 | + |
3495 | +# When interrupted or exit'd, cleanup temporary files, and complete |
3496 | +# config.log. We remove comments because anyway the quotes in there |
3497 | +# would cause problems or look ugly. |
3498 | +# WARNING: Use '\'' to represent an apostrophe within the trap. |
3499 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
3500 | +trap 'exit_status=$? |
3501 | + # Save into config.log some information that might help in debugging. |
3502 | + { |
3503 | + echo |
3504 | + |
3505 | + $as_echo "## ---------------- ## |
3506 | +## Cache variables. ## |
3507 | +## ---------------- ##" |
3508 | + echo |
3509 | + # The following way of writing the cache mishandles newlines in values, |
3510 | +( |
3511 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
3512 | + eval ac_val=\$$ac_var |
3513 | + case $ac_val in #( |
3514 | + *${as_nl}*) |
3515 | + case $ac_var in #( |
3516 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
3517 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
3518 | + esac |
3519 | + case $ac_var in #( |
3520 | + _ | IFS | as_nl) ;; #( |
3521 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
3522 | + *) { eval $ac_var=; unset $ac_var;} ;; |
3523 | + esac ;; |
3524 | + esac |
3525 | + done |
3526 | + (set) 2>&1 | |
3527 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
3528 | + *${as_nl}ac_space=\ *) |
3529 | + sed -n \ |
3530 | + "s/'\''/'\''\\\\'\'''\''/g; |
3531 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
3532 | + ;; #( |
3533 | + *) |
3534 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3535 | + ;; |
3536 | + esac | |
3537 | + sort |
3538 | +) |
3539 | + echo |
3540 | + |
3541 | + $as_echo "## ----------------- ## |
3542 | +## Output variables. ## |
3543 | +## ----------------- ##" |
3544 | + echo |
3545 | + for ac_var in $ac_subst_vars |
3546 | + do |
3547 | + eval ac_val=\$$ac_var |
3548 | + case $ac_val in |
3549 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
3550 | + esac |
3551 | + $as_echo "$ac_var='\''$ac_val'\''" |
3552 | + done | sort |
3553 | + echo |
3554 | + |
3555 | + if test -n "$ac_subst_files"; then |
3556 | + $as_echo "## ------------------- ## |
3557 | +## File substitutions. ## |
3558 | +## ------------------- ##" |
3559 | + echo |
3560 | + for ac_var in $ac_subst_files |
3561 | + do |
3562 | + eval ac_val=\$$ac_var |
3563 | + case $ac_val in |
3564 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
3565 | + esac |
3566 | + $as_echo "$ac_var='\''$ac_val'\''" |
3567 | + done | sort |
3568 | + echo |
3569 | + fi |
3570 | + |
3571 | + if test -s confdefs.h; then |
3572 | + $as_echo "## ----------- ## |
3573 | +## confdefs.h. ## |
3574 | +## ----------- ##" |
3575 | + echo |
3576 | + cat confdefs.h |
3577 | + echo |
3578 | + fi |
3579 | + test "$ac_signal" != 0 && |
3580 | + $as_echo "$as_me: caught signal $ac_signal" |
3581 | + $as_echo "$as_me: exit $exit_status" |
3582 | + } >&5 |
3583 | + rm -f core *.core core.conftest.* && |
3584 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
3585 | + exit $exit_status |
3586 | +' 0 |
3587 | +for ac_signal in 1 2 13 15; do |
3588 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3589 | +done |
3590 | +ac_signal=0 |
3591 | + |
3592 | +# confdefs.h avoids OS command line length limits that DEFS can exceed. |
3593 | +rm -f -r conftest* confdefs.h |
3594 | + |
3595 | +$as_echo "/* confdefs.h */" > confdefs.h |
3596 | + |
3597 | +# Predefined preprocessor variables. |
3598 | + |
3599 | +cat >>confdefs.h <<_ACEOF |
3600 | +#define PACKAGE_NAME "$PACKAGE_NAME" |
3601 | +_ACEOF |
3602 | + |
3603 | +cat >>confdefs.h <<_ACEOF |
3604 | +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
3605 | +_ACEOF |
3606 | + |
3607 | +cat >>confdefs.h <<_ACEOF |
3608 | +#define PACKAGE_VERSION "$PACKAGE_VERSION" |
3609 | +_ACEOF |
3610 | + |
3611 | +cat >>confdefs.h <<_ACEOF |
3612 | +#define PACKAGE_STRING "$PACKAGE_STRING" |
3613 | +_ACEOF |
3614 | + |
3615 | +cat >>confdefs.h <<_ACEOF |
3616 | +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
3617 | +_ACEOF |
3618 | + |
3619 | +cat >>confdefs.h <<_ACEOF |
3620 | +#define PACKAGE_URL "$PACKAGE_URL" |
3621 | +_ACEOF |
3622 | + |
3623 | + |
3624 | +# Let the site file select an alternate cache file if it wants to. |
3625 | +# Prefer an explicitly selected file to automatically selected ones. |
3626 | +ac_site_file1=NONE |
3627 | +ac_site_file2=NONE |
3628 | +if test -n "$CONFIG_SITE"; then |
3629 | + # We do not want a PATH search for config.site. |
3630 | + case $CONFIG_SITE in #(( |
3631 | + -*) ac_site_file1=./$CONFIG_SITE;; |
3632 | + */*) ac_site_file1=$CONFIG_SITE;; |
3633 | + *) ac_site_file1=./$CONFIG_SITE;; |
3634 | + esac |
3635 | +elif test "x$prefix" != xNONE; then |
3636 | + ac_site_file1=$prefix/share/config.site |
3637 | + ac_site_file2=$prefix/etc/config.site |
3638 | +else |
3639 | + ac_site_file1=$ac_default_prefix/share/config.site |
3640 | + ac_site_file2=$ac_default_prefix/etc/config.site |
3641 | +fi |
3642 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
3643 | +do |
3644 | + test "x$ac_site_file" = xNONE && continue |
3645 | + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
3646 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
3647 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
3648 | + sed 's/^/| /' "$ac_site_file" >&5 |
3649 | + . "$ac_site_file" \ |
3650 | + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3651 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3652 | +as_fn_error $? "failed to load site script $ac_site_file |
3653 | +See \`config.log' for more details" "$LINENO" 5; } |
3654 | + fi |
3655 | +done |
3656 | + |
3657 | +if test -r "$cache_file"; then |
3658 | + # Some versions of bash will fail to source /dev/null (special files |
3659 | + # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
3660 | + if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
3661 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
3662 | +$as_echo "$as_me: loading cache $cache_file" >&6;} |
3663 | + case $cache_file in |
3664 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; |
3665 | + *) . "./$cache_file";; |
3666 | + esac |
3667 | + fi |
3668 | +else |
3669 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
3670 | +$as_echo "$as_me: creating cache $cache_file" >&6;} |
3671 | + >$cache_file |
3672 | +fi |
3673 | + |
3674 | +# Check that the precious variables saved in the cache have kept the same |
3675 | +# value. |
3676 | +ac_cache_corrupted=false |
3677 | +for ac_var in $ac_precious_vars; do |
3678 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set |
3679 | + eval ac_new_set=\$ac_env_${ac_var}_set |
3680 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3681 | + eval ac_new_val=\$ac_env_${ac_var}_value |
3682 | + case $ac_old_set,$ac_new_set in |
3683 | + set,) |
3684 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3685 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3686 | + ac_cache_corrupted=: ;; |
3687 | + ,set) |
3688 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
3689 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3690 | + ac_cache_corrupted=: ;; |
3691 | + ,);; |
3692 | + *) |
3693 | + if test "x$ac_old_val" != "x$ac_new_val"; then |
3694 | + # differences in whitespace do not lead to failure. |
3695 | + ac_old_val_w=`echo x $ac_old_val` |
3696 | + ac_new_val_w=`echo x $ac_new_val` |
3697 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then |
3698 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
3699 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3700 | + ac_cache_corrupted=: |
3701 | + else |
3702 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
3703 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
3704 | + eval $ac_var=\$ac_old_val |
3705 | + fi |
3706 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
3707 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
3708 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
3709 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
3710 | + fi;; |
3711 | + esac |
3712 | + # Pass precious variables to config.status. |
3713 | + if test "$ac_new_set" = set; then |
3714 | + case $ac_new_val in |
3715 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3716 | + *) ac_arg=$ac_var=$ac_new_val ;; |
3717 | + esac |
3718 | + case " $ac_configure_args " in |
3719 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
3720 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3721 | + esac |
3722 | + fi |
3723 | +done |
3724 | +if $ac_cache_corrupted; then |
3725 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3726 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3727 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
3728 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
3729 | + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
3730 | +fi |
3731 | +## -------------------- ## |
3732 | +## Main body of script. ## |
3733 | +## -------------------- ## |
3734 | + |
3735 | +ac_ext=c |
3736 | +ac_cpp='$CPP $CPPFLAGS' |
3737 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3738 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3739 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3740 | + |
3741 | + |
3742 | + |
3743 | +# In order to make this configure script auto-detect situations where |
3744 | +# people have a 32-bit userland running with a 64-bit kernel, we try to ask |
3745 | +# the compiler (assumedly gcc) for its default Target:. |
3746 | +# We have to set up $TEST_CC manually, since AC_PROG_CC hasn't yet been run (and can't be until AC_CANONICAL_HOST & AC_CANONICAL_BUILD are run) |
3747 | +# The purpose of all this is to set up $host_alias/$build_alias in a more |
3748 | +# intelligent way than config.guess currently does. |
3749 | +TEST_CC="$CC_FOR_BUILD" |
3750 | +test -z "$TEST_CC" && TEST_CC="$HOST_CC" |
3751 | +test -z "$TEST_CC" && TEST_CC="$CC" |
3752 | +if test -n "$TEST_CC" -a -z "$host_alias"; then |
3753 | + host_alias="`$TEST_CC -dumpmachine`" |
3754 | + if test -z "$build_alias" -a -n "$host_alias"; then |
3755 | + build_alias="$host_alias" |
3756 | + fi |
3757 | +fi |
3758 | +unset TEST_CC |
3759 | + |
3760 | +# checkvm/checkvm.c has no special significance - we just need to pass in a file that |
3761 | +# helps autoconf verify that it really has found the source tree. |
3762 | + |
3763 | + |
3764 | +# Keep the top-level directory tidy by putting auxiliary build tools and local |
3765 | +# macros in separate subdirectories. |
3766 | +ac_aux_dir= |
3767 | +for ac_dir in config "$srcdir"/config; do |
3768 | + if test -f "$ac_dir/install-sh"; then |
3769 | + ac_aux_dir=$ac_dir |
3770 | + ac_install_sh="$ac_aux_dir/install-sh -c" |
3771 | + break |
3772 | + elif test -f "$ac_dir/install.sh"; then |
3773 | + ac_aux_dir=$ac_dir |
3774 | + ac_install_sh="$ac_aux_dir/install.sh -c" |
3775 | + break |
3776 | + elif test -f "$ac_dir/shtool"; then |
3777 | + ac_aux_dir=$ac_dir |
3778 | + ac_install_sh="$ac_aux_dir/shtool install -c" |
3779 | + break |
3780 | + fi |
3781 | +done |
3782 | +if test -z "$ac_aux_dir"; then |
3783 | + as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
3784 | +fi |
3785 | + |
3786 | +# These three variables are undocumented and unsupported, |
3787 | +# and are intended to be withdrawn in a future Autoconf release. |
3788 | +# They can cause serious problems if a builder's source tree is in a directory |
3789 | +# whose full name contains unusual characters. |
3790 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3791 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3792 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3793 | + |
3794 | + |
3795 | + |
3796 | + |
3797 | +# Make sure we can run config.sub. |
3798 | +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3799 | + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
3800 | + |
3801 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3802 | +$as_echo_n "checking build system type... " >&6; } |
3803 | +if ${ac_cv_build+:} false; then : |
3804 | + $as_echo_n "(cached) " >&6 |
3805 | +else |
3806 | + ac_build_alias=$build_alias |
3807 | +test "x$ac_build_alias" = x && |
3808 | + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3809 | +test "x$ac_build_alias" = x && |
3810 | + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3811 | +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3812 | + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
3813 | + |
3814 | +fi |
3815 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3816 | +$as_echo "$ac_cv_build" >&6; } |
3817 | +case $ac_cv_build in |
3818 | +*-*-*) ;; |
3819 | +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3820 | +esac |
3821 | +build=$ac_cv_build |
3822 | +ac_save_IFS=$IFS; IFS='-' |
3823 | +set x $ac_cv_build |
3824 | +shift |
3825 | +build_cpu=$1 |
3826 | +build_vendor=$2 |
3827 | +shift; shift |
3828 | +# Remember, the first character of IFS is used to create $*, |
3829 | +# except with old shells: |
3830 | +build_os=$* |
3831 | +IFS=$ac_save_IFS |
3832 | +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3833 | + |
3834 | + |
3835 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3836 | +$as_echo_n "checking host system type... " >&6; } |
3837 | +if ${ac_cv_host+:} false; then : |
3838 | + $as_echo_n "(cached) " >&6 |
3839 | +else |
3840 | + if test "x$host_alias" = x; then |
3841 | + ac_cv_host=$ac_cv_build |
3842 | +else |
3843 | + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3844 | + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
3845 | +fi |
3846 | + |
3847 | +fi |
3848 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3849 | +$as_echo "$ac_cv_host" >&6; } |
3850 | +case $ac_cv_host in |
3851 | +*-*-*) ;; |
3852 | +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3853 | +esac |
3854 | +host=$ac_cv_host |
3855 | +ac_save_IFS=$IFS; IFS='-' |
3856 | +set x $ac_cv_host |
3857 | +shift |
3858 | +host_cpu=$1 |
3859 | +host_vendor=$2 |
3860 | +shift; shift |
3861 | +# Remember, the first character of IFS is used to create $*, |
3862 | +# except with old shells: |
3863 | +host_os=$* |
3864 | +IFS=$ac_save_IFS |
3865 | +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3866 | + |
3867 | + |
3868 | + |
3869 | + |
3870 | +# Quote the regular expressions |
3871 | +case "$host_cpu" in |
3872 | + i[3456]86) |
3873 | + userSpaceBitness="32" |
3874 | + ;; |
3875 | + x86_64) |
3876 | + userSpaceBitness="64" |
3877 | + ;; |
3878 | + *) |
3879 | + as_fn_error $? "Unknown architecture." "$LINENO" 5 |
3880 | + ;; |
3881 | +esac |
3882 | + |
3883 | +# Operational arguments. |
3884 | + |
3885 | +# Check whether --with-root-privileges was given. |
3886 | +if test "${with_root_privileges+set}" = set; then : |
3887 | + withval=$with_root_privileges; |
3888 | +else |
3889 | + with_root_privileges=yes |
3890 | +fi |
3891 | + |
3892 | + |
3893 | +# Kernel arguments. |
3894 | +# The kernel args have to go here otherwise the KERNEL_RELEASE won't be visible |
3895 | +# to getOsVersion() |
3896 | + |
3897 | +# Check whether --with-kernel-modules was given. |
3898 | +if test "${with_kernel_modules+set}" = set; then : |
3899 | + withval=$with_kernel_modules; |
3900 | +else |
3901 | + with_kernel_modules=yes |
3902 | +fi |
3903 | + |
3904 | + |
3905 | + |
3906 | +# Check whether --with-kernel-release was given. |
3907 | +if test "${with_kernel_release+set}" = set; then : |
3908 | + withval=$with_kernel_release; KERNEL_RELEASE="$withval" |
3909 | +else |
3910 | + KERNEL_RELEASE=`uname -r` |
3911 | +fi |
3912 | + |
3913 | + |
3914 | + |
3915 | +# Check whether --with-linuxdir was given. |
3916 | +if test "${with_linuxdir+set}" = set; then : |
3917 | + withval=$with_linuxdir; LINUXDIR="$withval" |
3918 | +else |
3919 | + LINUXDIR=/lib/modules/$KERNEL_RELEASE |
3920 | +fi |
3921 | + |
3922 | + |
3923 | +# Turn the uname output into something we can run comparisons on. |
3924 | +getOsVersion() { |
3925 | + major_version="`echo $KERNEL_RELEASE | cut -f1 -d. | cut -f1 -d-`" |
3926 | + minor_version="`echo $KERNEL_RELEASE | cut -f2 -d. | cut -f1 -d-`" |
3927 | + micro_version="`echo $KERNEL_RELEASE | cut -f3 -d. | cut -f1 -d-`" |
3928 | + printf '%02d%02d%03d' $major_version $minor_version $micro_version |
3929 | +} |
3930 | + |
3931 | +case "$host_os" in |
3932 | + linux*) |
3933 | + os="linux" |
3934 | + ;; |
3935 | + freebsd*) |
3936 | + os="freebsd" |
3937 | + ;; |
3938 | + kfreebsd*-gnu) |
3939 | + os="kfreebsd-gnu" |
3940 | + ;; |
3941 | + solaris*) |
3942 | + os="solaris" |
3943 | + ;; |
3944 | + *) |
3945 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&5 |
3946 | +$as_echo "$as_me: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&2;} |
3947 | + ;; |
3948 | +esac |
3949 | +osVersion="`getOsVersion`" |
3950 | + |
3951 | +if test "$with_kernel_modules" = "yes"; then |
3952 | + case "$os" in |
3953 | + linux) |
3954 | + if test "$osVersion" -lt 206009; then |
3955 | + as_fn_error $? "Kernels prior to 2.6.9 are not supported in this release of open-vm-tools. Configure using --without-kernel-modules to suppress building kernel drivers." "$LINENO" 5 |
3956 | + fi |
3957 | + if test ! -d "$LINUXDIR/kernel/"; then |
3958 | + as_fn_error $? "$LINUXDIR/kernel does not exist" "$LINENO" 5 |
3959 | + fi |
3960 | + LINUXINCLUDE="$LINUXDIR/build/include" |
3961 | + if test ! -d "$LINUXINCLUDE"; then |
3962 | + as_fn_error $? "Can't find include dir under $LINUXDIR" "$LINENO" 5 |
3963 | + fi |
3964 | + ;; |
3965 | + |
3966 | + freebsd) |
3967 | + freebsd_sysdir=/usr/src/sys |
3968 | + if test -n "$SYSDIR"; then |
3969 | + freebsd_sysdir="$SYSDIR" |
3970 | + fi |
3971 | + if test ! -f "$freebsd_sysdir/conf/kmod.mk"; then |
3972 | + as_fn_error $? "FreeBSD kernel tree not found. Please install the kernel sources (or provide the location using SYSDIR) or configure using --without-kernel-modules." "$LINENO" 5 |
3973 | + fi |
3974 | + ;; |
3975 | + esac |
3976 | +fi |
3977 | + |
3978 | +# Arguments for disabling individual open-vm-tools features or libraries. |
3979 | +# Check whether --enable-multimon was given. |
3980 | +if test "${enable_multimon+set}" = set; then : |
3981 | + enableval=$enable_multimon; enable_multimon="$enableval" |
3982 | +else |
3983 | + enable_multimon="yes" |
3984 | +fi |
3985 | + |
3986 | + |
3987 | + |
3988 | +# Check whether --with-gtk2 was given. |
3989 | +if test "${with_gtk2+set}" = set; then : |
3990 | + withval=$with_gtk2; with_gtk2="$withval" |
3991 | +else |
3992 | + with_gtk2="yes" |
3993 | +fi |
3994 | + |
3995 | + |
3996 | + |
3997 | +# Check whether --with-gtkmm was given. |
3998 | +if test "${with_gtkmm+set}" = set; then : |
3999 | + withval=$with_gtkmm; with_gtkmm="$withval" |
4000 | +else |
4001 | + with_gtkmm="yes" |
4002 | +fi |
4003 | + |
4004 | + |
4005 | +# Check whether --enable-docs was given. |
4006 | +if test "${enable_docs+set}" = set; then : |
4007 | + enableval=$enable_docs; enable_docs="$enableval" |
4008 | +else |
4009 | + enable_docs="yes" |
4010 | +fi |
4011 | + |
4012 | + |
4013 | +# Check whether --enable-tests was given. |
4014 | +if test "${enable_tests+set}" = set; then : |
4015 | + enableval=$enable_tests; enable_tests="$enableval" |
4016 | +else |
4017 | + enable_tests="auto" |
4018 | +fi |
4019 | + |
4020 | + |
4021 | +am__api_version='1.11' |
4022 | + |
4023 | +# Find a good install program. We prefer a C program (faster), |
4024 | +# so one script is as good as another. But avoid the broken or |
4025 | +# incompatible versions: |
4026 | +# SysV /etc/install, /usr/sbin/install |
4027 | +# SunOS /usr/etc/install |
4028 | +# IRIX /sbin/install |
4029 | +# AIX /bin/install |
4030 | +# AmigaOS /C/install, which installs bootblocks on floppy discs |
4031 | +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4032 | +# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4033 | +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4034 | +# OS/2's system install, which has a completely different semantic |
4035 | +# ./install, which can be erroneously created by make from ./install.sh. |
4036 | +# Reject install programs that cannot install multiple files. |
4037 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4038 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } |
4039 | +if test -z "$INSTALL"; then |
4040 | +if ${ac_cv_path_install+:} false; then : |
4041 | + $as_echo_n "(cached) " >&6 |
4042 | +else |
4043 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4044 | +for as_dir in $PATH |
4045 | +do |
4046 | + IFS=$as_save_IFS |
4047 | + test -z "$as_dir" && as_dir=. |
4048 | + # Account for people who put trailing slashes in PATH elements. |
4049 | +case $as_dir/ in #(( |
4050 | + ./ | .// | /[cC]/* | \ |
4051 | + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4052 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4053 | + /usr/ucb/* ) ;; |
4054 | + *) |
4055 | + # OSF1 and SCO ODT 3.0 have their own names for install. |
4056 | + # Don't use installbsd from OSF since it installs stuff as root |
4057 | + # by default. |
4058 | + for ac_prog in ginstall scoinst install; do |
4059 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4060 | + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4061 | + if test $ac_prog = install && |
4062 | + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4063 | + # AIX install. It has an incompatible calling convention. |
4064 | + : |
4065 | + elif test $ac_prog = install && |
4066 | + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4067 | + # program-specific install script used by HP pwplus--don't use. |
4068 | + : |
4069 | + else |
4070 | + rm -rf conftest.one conftest.two conftest.dir |
4071 | + echo one > conftest.one |
4072 | + echo two > conftest.two |
4073 | + mkdir conftest.dir |
4074 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
4075 | + test -s conftest.one && test -s conftest.two && |
4076 | + test -s conftest.dir/conftest.one && |
4077 | + test -s conftest.dir/conftest.two |
4078 | + then |
4079 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4080 | + break 3 |
4081 | + fi |
4082 | + fi |
4083 | + fi |
4084 | + done |
4085 | + done |
4086 | + ;; |
4087 | +esac |
4088 | + |
4089 | + done |
4090 | +IFS=$as_save_IFS |
4091 | + |
4092 | +rm -rf conftest.one conftest.two conftest.dir |
4093 | + |
4094 | +fi |
4095 | + if test "${ac_cv_path_install+set}" = set; then |
4096 | + INSTALL=$ac_cv_path_install |
4097 | + else |
4098 | + # As a last resort, use the slow shell script. Don't cache a |
4099 | + # value for INSTALL within a source directory, because that will |
4100 | + # break other packages using the cache if that directory is |
4101 | + # removed, or if the value is a relative name. |
4102 | + INSTALL=$ac_install_sh |
4103 | + fi |
4104 | +fi |
4105 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4106 | +$as_echo "$INSTALL" >&6; } |
4107 | + |
4108 | +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4109 | +# It thinks the first close brace ends the variable substitution. |
4110 | +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4111 | + |
4112 | +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4113 | + |
4114 | +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4115 | + |
4116 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
4117 | +$as_echo_n "checking whether build environment is sane... " >&6; } |
4118 | +# Just in case |
4119 | +sleep 1 |
4120 | +echo timestamp > conftest.file |
4121 | +# Reject unsafe characters in $srcdir or the absolute working directory |
4122 | +# name. Accept space and tab only in the latter. |
4123 | +am_lf=' |
4124 | +' |
4125 | +case `pwd` in |
4126 | + *[\\\"\#\$\&\'\`$am_lf]*) |
4127 | + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
4128 | +esac |
4129 | +case $srcdir in |
4130 | + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
4131 | + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
4132 | +esac |
4133 | + |
4134 | +# Do `set' in a subshell so we don't clobber the current shell's |
4135 | +# arguments. Must try -L first in case configure is actually a |
4136 | +# symlink; some systems play weird games with the mod time of symlinks |
4137 | +# (eg FreeBSD returns the mod time of the symlink's containing |
4138 | +# directory). |
4139 | +if ( |
4140 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
4141 | + if test "$*" = "X"; then |
4142 | + # -L didn't work. |
4143 | + set X `ls -t "$srcdir/configure" conftest.file` |
4144 | + fi |
4145 | + rm -f conftest.file |
4146 | + if test "$*" != "X $srcdir/configure conftest.file" \ |
4147 | + && test "$*" != "X conftest.file $srcdir/configure"; then |
4148 | + |
4149 | + # If neither matched, then we have a broken ls. This can happen |
4150 | + # if, for instance, CONFIG_SHELL is bash and it inherits a |
4151 | + # broken ls alias from the environment. This has actually |
4152 | + # happened. Such a system could not be considered "sane". |
4153 | + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
4154 | +alias in your environment" "$LINENO" 5 |
4155 | + fi |
4156 | + |
4157 | + test "$2" = conftest.file |
4158 | + ) |
4159 | +then |
4160 | + # Ok. |
4161 | + : |
4162 | +else |
4163 | + as_fn_error $? "newly created file is older than distributed files! |
4164 | +Check your system clock" "$LINENO" 5 |
4165 | +fi |
4166 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4167 | +$as_echo "yes" >&6; } |
4168 | +test "$program_prefix" != NONE && |
4169 | + program_transform_name="s&^&$program_prefix&;$program_transform_name" |
4170 | +# Use a double $ so make ignores it. |
4171 | +test "$program_suffix" != NONE && |
4172 | + program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
4173 | +# Double any \ or $. |
4174 | +# By default was `s,x,x', remove it if useless. |
4175 | +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
4176 | +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
4177 | + |
4178 | +# expand $ac_aux_dir to an absolute path |
4179 | +am_aux_dir=`cd $ac_aux_dir && pwd` |
4180 | + |
4181 | +if test x"${MISSING+set}" != xset; then |
4182 | + case $am_aux_dir in |
4183 | + *\ * | *\ *) |
4184 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
4185 | + *) |
4186 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; |
4187 | + esac |
4188 | +fi |
4189 | +# Use eval to expand $SHELL |
4190 | +if eval "$MISSING --run true"; then |
4191 | + am_missing_run="$MISSING --run " |
4192 | +else |
4193 | + am_missing_run= |
4194 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
4195 | +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
4196 | +fi |
4197 | + |
4198 | +if test x"${install_sh}" != xset; then |
4199 | + case $am_aux_dir in |
4200 | + *\ * | *\ *) |
4201 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
4202 | + *) |
4203 | + install_sh="\${SHELL} $am_aux_dir/install-sh" |
4204 | + esac |
4205 | +fi |
4206 | + |
4207 | +# Installed binaries are usually stripped using `strip' when the user |
4208 | +# run `make install-strip'. However `strip' might not be the right |
4209 | +# tool to use in cross-compilation environments, therefore Automake |
4210 | +# will honor the `STRIP' environment variable to overrule this program. |
4211 | +if test "$cross_compiling" != no; then |
4212 | + if test -n "$ac_tool_prefix"; then |
4213 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
4214 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 |
4215 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4216 | +$as_echo_n "checking for $ac_word... " >&6; } |
4217 | +if ${ac_cv_prog_STRIP+:} false; then : |
4218 | + $as_echo_n "(cached) " >&6 |
4219 | +else |
4220 | + if test -n "$STRIP"; then |
4221 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
4222 | +else |
4223 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4224 | +for as_dir in $PATH |
4225 | +do |
4226 | + IFS=$as_save_IFS |
4227 | + test -z "$as_dir" && as_dir=. |
4228 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4229 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4230 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
4231 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4232 | + break 2 |
4233 | + fi |
4234 | +done |
4235 | + done |
4236 | +IFS=$as_save_IFS |
4237 | + |
4238 | +fi |
4239 | +fi |
4240 | +STRIP=$ac_cv_prog_STRIP |
4241 | +if test -n "$STRIP"; then |
4242 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
4243 | +$as_echo "$STRIP" >&6; } |
4244 | +else |
4245 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4246 | +$as_echo "no" >&6; } |
4247 | +fi |
4248 | + |
4249 | + |
4250 | +fi |
4251 | +if test -z "$ac_cv_prog_STRIP"; then |
4252 | + ac_ct_STRIP=$STRIP |
4253 | + # Extract the first word of "strip", so it can be a program name with args. |
4254 | +set dummy strip; ac_word=$2 |
4255 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4256 | +$as_echo_n "checking for $ac_word... " >&6; } |
4257 | +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
4258 | + $as_echo_n "(cached) " >&6 |
4259 | +else |
4260 | + if test -n "$ac_ct_STRIP"; then |
4261 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
4262 | +else |
4263 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4264 | +for as_dir in $PATH |
4265 | +do |
4266 | + IFS=$as_save_IFS |
4267 | + test -z "$as_dir" && as_dir=. |
4268 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4269 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4270 | + ac_cv_prog_ac_ct_STRIP="strip" |
4271 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4272 | + break 2 |
4273 | + fi |
4274 | +done |
4275 | + done |
4276 | +IFS=$as_save_IFS |
4277 | + |
4278 | +fi |
4279 | +fi |
4280 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4281 | +if test -n "$ac_ct_STRIP"; then |
4282 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
4283 | +$as_echo "$ac_ct_STRIP" >&6; } |
4284 | +else |
4285 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4286 | +$as_echo "no" >&6; } |
4287 | +fi |
4288 | + |
4289 | + if test "x$ac_ct_STRIP" = x; then |
4290 | + STRIP=":" |
4291 | + else |
4292 | + case $cross_compiling:$ac_tool_warned in |
4293 | +yes:) |
4294 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4295 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4296 | +ac_tool_warned=yes ;; |
4297 | +esac |
4298 | + STRIP=$ac_ct_STRIP |
4299 | + fi |
4300 | +else |
4301 | + STRIP="$ac_cv_prog_STRIP" |
4302 | +fi |
4303 | + |
4304 | +fi |
4305 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
4306 | + |
4307 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4308 | +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
4309 | +if test -z "$MKDIR_P"; then |
4310 | + if ${ac_cv_path_mkdir+:} false; then : |
4311 | + $as_echo_n "(cached) " >&6 |
4312 | +else |
4313 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4314 | +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
4315 | +do |
4316 | + IFS=$as_save_IFS |
4317 | + test -z "$as_dir" && as_dir=. |
4318 | + for ac_prog in mkdir gmkdir; do |
4319 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4320 | + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
4321 | + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
4322 | + 'mkdir (GNU coreutils) '* | \ |
4323 | + 'mkdir (coreutils) '* | \ |
4324 | + 'mkdir (fileutils) '4.1*) |
4325 | + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
4326 | + break 3;; |
4327 | + esac |
4328 | + done |
4329 | + done |
4330 | + done |
4331 | +IFS=$as_save_IFS |
4332 | + |
4333 | +fi |
4334 | + |
4335 | + test -d ./--version && rmdir ./--version |
4336 | + if test "${ac_cv_path_mkdir+set}" = set; then |
4337 | + MKDIR_P="$ac_cv_path_mkdir -p" |
4338 | + else |
4339 | + # As a last resort, use the slow shell script. Don't cache a |
4340 | + # value for MKDIR_P within a source directory, because that will |
4341 | + # break other packages using the cache if that directory is |
4342 | + # removed, or if the value is a relative name. |
4343 | + MKDIR_P="$ac_install_sh -d" |
4344 | + fi |
4345 | +fi |
4346 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4347 | +$as_echo "$MKDIR_P" >&6; } |
4348 | + |
4349 | +mkdir_p="$MKDIR_P" |
4350 | +case $mkdir_p in |
4351 | + [\\/$]* | ?:[\\/]*) ;; |
4352 | + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
4353 | +esac |
4354 | + |
4355 | +for ac_prog in gawk mawk nawk awk |
4356 | +do |
4357 | + # Extract the first word of "$ac_prog", so it can be a program name with args. |
4358 | +set dummy $ac_prog; ac_word=$2 |
4359 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4360 | +$as_echo_n "checking for $ac_word... " >&6; } |
4361 | +if ${ac_cv_prog_AWK+:} false; then : |
4362 | + $as_echo_n "(cached) " >&6 |
4363 | +else |
4364 | + if test -n "$AWK"; then |
4365 | + ac_cv_prog_AWK="$AWK" # Let the user override the test. |
4366 | +else |
4367 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4368 | +for as_dir in $PATH |
4369 | +do |
4370 | + IFS=$as_save_IFS |
4371 | + test -z "$as_dir" && as_dir=. |
4372 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4373 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4374 | + ac_cv_prog_AWK="$ac_prog" |
4375 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4376 | + break 2 |
4377 | + fi |
4378 | +done |
4379 | + done |
4380 | +IFS=$as_save_IFS |
4381 | + |
4382 | +fi |
4383 | +fi |
4384 | +AWK=$ac_cv_prog_AWK |
4385 | +if test -n "$AWK"; then |
4386 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
4387 | +$as_echo "$AWK" >&6; } |
4388 | +else |
4389 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4390 | +$as_echo "no" >&6; } |
4391 | +fi |
4392 | + |
4393 | + |
4394 | + test -n "$AWK" && break |
4395 | +done |
4396 | + |
4397 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4398 | +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
4399 | +set x ${MAKE-make} |
4400 | +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
4401 | +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
4402 | + $as_echo_n "(cached) " >&6 |
4403 | +else |
4404 | + cat >conftest.make <<\_ACEOF |
4405 | +SHELL = /bin/sh |
4406 | +all: |
4407 | + @echo '@@@%%%=$(MAKE)=@@@%%%' |
4408 | +_ACEOF |
4409 | +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
4410 | +case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4411 | + *@@@%%%=?*=@@@%%%*) |
4412 | + eval ac_cv_prog_make_${ac_make}_set=yes;; |
4413 | + *) |
4414 | + eval ac_cv_prog_make_${ac_make}_set=no;; |
4415 | +esac |
4416 | +rm -f conftest.make |
4417 | +fi |
4418 | +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4419 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4420 | +$as_echo "yes" >&6; } |
4421 | + SET_MAKE= |
4422 | +else |
4423 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4424 | +$as_echo "no" >&6; } |
4425 | + SET_MAKE="MAKE=${MAKE-make}" |
4426 | +fi |
4427 | + |
4428 | +rm -rf .tst 2>/dev/null |
4429 | +mkdir .tst 2>/dev/null |
4430 | +if test -d .tst; then |
4431 | + am__leading_dot=. |
4432 | +else |
4433 | + am__leading_dot=_ |
4434 | +fi |
4435 | +rmdir .tst 2>/dev/null |
4436 | + |
4437 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4438 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
4439 | + # is not polluted with repeated "-I." |
4440 | + am__isrc=' -I$(srcdir)' |
4441 | + # test to see if srcdir already configured |
4442 | + if test -f $srcdir/config.status; then |
4443 | + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
4444 | + fi |
4445 | +fi |
4446 | + |
4447 | +# test whether we have cygpath |
4448 | +if test -z "$CYGPATH_W"; then |
4449 | + if (cygpath --version) >/dev/null 2>/dev/null; then |
4450 | + CYGPATH_W='cygpath -w' |
4451 | + else |
4452 | + CYGPATH_W=echo |
4453 | + fi |
4454 | +fi |
4455 | + |
4456 | + |
4457 | +# Define the identity of the package. |
4458 | + PACKAGE='open-vm-tools' |
4459 | + VERSION='2012.12.26' |
4460 | + |
4461 | + |
4462 | +cat >>confdefs.h <<_ACEOF |
4463 | +#define PACKAGE "$PACKAGE" |
4464 | +_ACEOF |
4465 | + |
4466 | + |
4467 | +cat >>confdefs.h <<_ACEOF |
4468 | +#define VERSION "$VERSION" |
4469 | +_ACEOF |
4470 | + |
4471 | +# Some tools Automake needs. |
4472 | + |
4473 | +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
4474 | + |
4475 | + |
4476 | +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
4477 | + |
4478 | + |
4479 | +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
4480 | + |
4481 | + |
4482 | +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
4483 | + |
4484 | + |
4485 | +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
4486 | + |
4487 | +# We need awk for the "check" target. The system "awk" is bad on |
4488 | +# some platforms. |
4489 | +# Always define AMTAR for backward compatibility. Yes, it's still used |
4490 | +# in the wild :-( We should find a proper way to deprecate it ... |
4491 | +AMTAR='$${TAR-tar}' |
4492 | + |
4493 | +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
4494 | + |
4495 | + |
4496 | + |
4497 | + |
4498 | + |
4499 | + |
4500 | +### |
4501 | +### Constants |
4502 | +### |
4503 | +# These need to be declared after initialization. |
4504 | + |
4505 | +# Some of our macro call-sites require changes to |
4506 | +# CPPFLAGS/CFLAGS/LDFLAGS. In such places, we save the original value |
4507 | +# of CPPFLAGS/CFLAGS/LDFLAGS before the macro call and restore it when |
4508 | +# the call is done. We must perform this save at each macro site, |
4509 | +# because CPPFLAGS/CFLAGS/LDFLAGS may change over the course of |
4510 | +# configuration. |
4511 | +# |
4512 | +# CPPFLAGS is intended for preprocessor options (-D and -I mainly) |
4513 | +# CFLAGS is intended for compiler options (-O, -f, -W, and so forth) |
4514 | + |
4515 | +CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS" |
4516 | + |
4517 | +### |
4518 | +### Programs |
4519 | +### |
4520 | +# C preprocessor and compiler. |
4521 | +DEPDIR="${am__leading_dot}deps" |
4522 | + |
4523 | +ac_config_commands="$ac_config_commands depfiles" |
4524 | + |
4525 | + |
4526 | +am_make=${MAKE-make} |
4527 | +cat > confinc << 'END' |
4528 | +am__doit: |
4529 | + @echo this is the am__doit target |
4530 | +.PHONY: am__doit |
4531 | +END |
4532 | +# If we don't find an include directive, just comment out the code. |
4533 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4534 | +$as_echo_n "checking for style of include used by $am_make... " >&6; } |
4535 | +am__include="#" |
4536 | +am__quote= |
4537 | +_am_result=none |
4538 | +# First try GNU make style include. |
4539 | +echo "include confinc" > confmf |
4540 | +# Ignore all kinds of additional output from `make'. |
4541 | +case `$am_make -s -f confmf 2> /dev/null` in #( |
4542 | +*the\ am__doit\ target*) |
4543 | + am__include=include |
4544 | + am__quote= |
4545 | + _am_result=GNU |
4546 | + ;; |
4547 | +esac |
4548 | +# Now try BSD make style include. |
4549 | +if test "$am__include" = "#"; then |
4550 | + echo '.include "confinc"' > confmf |
4551 | + case `$am_make -s -f confmf 2> /dev/null` in #( |
4552 | + *the\ am__doit\ target*) |
4553 | + am__include=.include |
4554 | + am__quote="\"" |
4555 | + _am_result=BSD |
4556 | + ;; |
4557 | + esac |
4558 | +fi |
4559 | + |
4560 | + |
4561 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4562 | +$as_echo "$_am_result" >&6; } |
4563 | +rm -f confinc confmf |
4564 | + |
4565 | +# Check whether --enable-dependency-tracking was given. |
4566 | +if test "${enable_dependency_tracking+set}" = set; then : |
4567 | + enableval=$enable_dependency_tracking; |
4568 | +fi |
4569 | + |
4570 | +if test "x$enable_dependency_tracking" != xno; then |
4571 | + am_depcomp="$ac_aux_dir/depcomp" |
4572 | + AMDEPBACKSLASH='\' |
4573 | + am__nodep='_no' |
4574 | +fi |
4575 | + if test "x$enable_dependency_tracking" != xno; then |
4576 | + AMDEP_TRUE= |
4577 | + AMDEP_FALSE='#' |
4578 | +else |
4579 | + AMDEP_TRUE='#' |
4580 | + AMDEP_FALSE= |
4581 | +fi |
4582 | + |
4583 | + |
4584 | +ac_ext=c |
4585 | +ac_cpp='$CPP $CPPFLAGS' |
4586 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4587 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4588 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4589 | +if test -n "$ac_tool_prefix"; then |
4590 | + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
4591 | +set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
4592 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4593 | +$as_echo_n "checking for $ac_word... " >&6; } |
4594 | +if ${ac_cv_prog_CC+:} false; then : |
4595 | + $as_echo_n "(cached) " >&6 |
4596 | +else |
4597 | + if test -n "$CC"; then |
4598 | + ac_cv_prog_CC="$CC" # Let the user override the test. |
4599 | +else |
4600 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4601 | +for as_dir in $PATH |
4602 | +do |
4603 | + IFS=$as_save_IFS |
4604 | + test -z "$as_dir" && as_dir=. |
4605 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4606 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4607 | + ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4608 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4609 | + break 2 |
4610 | + fi |
4611 | +done |
4612 | + done |
4613 | +IFS=$as_save_IFS |
4614 | + |
4615 | +fi |
4616 | +fi |
4617 | +CC=$ac_cv_prog_CC |
4618 | +if test -n "$CC"; then |
4619 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4620 | +$as_echo "$CC" >&6; } |
4621 | +else |
4622 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4623 | +$as_echo "no" >&6; } |
4624 | +fi |
4625 | + |
4626 | + |
4627 | +fi |
4628 | +if test -z "$ac_cv_prog_CC"; then |
4629 | + ac_ct_CC=$CC |
4630 | + # Extract the first word of "gcc", so it can be a program name with args. |
4631 | +set dummy gcc; ac_word=$2 |
4632 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4633 | +$as_echo_n "checking for $ac_word... " >&6; } |
4634 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
4635 | + $as_echo_n "(cached) " >&6 |
4636 | +else |
4637 | + if test -n "$ac_ct_CC"; then |
4638 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4639 | +else |
4640 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4641 | +for as_dir in $PATH |
4642 | +do |
4643 | + IFS=$as_save_IFS |
4644 | + test -z "$as_dir" && as_dir=. |
4645 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4646 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4647 | + ac_cv_prog_ac_ct_CC="gcc" |
4648 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4649 | + break 2 |
4650 | + fi |
4651 | +done |
4652 | + done |
4653 | +IFS=$as_save_IFS |
4654 | + |
4655 | +fi |
4656 | +fi |
4657 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4658 | +if test -n "$ac_ct_CC"; then |
4659 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4660 | +$as_echo "$ac_ct_CC" >&6; } |
4661 | +else |
4662 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4663 | +$as_echo "no" >&6; } |
4664 | +fi |
4665 | + |
4666 | + if test "x$ac_ct_CC" = x; then |
4667 | + CC="" |
4668 | + else |
4669 | + case $cross_compiling:$ac_tool_warned in |
4670 | +yes:) |
4671 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4672 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4673 | +ac_tool_warned=yes ;; |
4674 | +esac |
4675 | + CC=$ac_ct_CC |
4676 | + fi |
4677 | +else |
4678 | + CC="$ac_cv_prog_CC" |
4679 | +fi |
4680 | + |
4681 | +if test -z "$CC"; then |
4682 | + if test -n "$ac_tool_prefix"; then |
4683 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
4684 | +set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4685 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4686 | +$as_echo_n "checking for $ac_word... " >&6; } |
4687 | +if ${ac_cv_prog_CC+:} false; then : |
4688 | + $as_echo_n "(cached) " >&6 |
4689 | +else |
4690 | + if test -n "$CC"; then |
4691 | + ac_cv_prog_CC="$CC" # Let the user override the test. |
4692 | +else |
4693 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4694 | +for as_dir in $PATH |
4695 | +do |
4696 | + IFS=$as_save_IFS |
4697 | + test -z "$as_dir" && as_dir=. |
4698 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4699 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4700 | + ac_cv_prog_CC="${ac_tool_prefix}cc" |
4701 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4702 | + break 2 |
4703 | + fi |
4704 | +done |
4705 | + done |
4706 | +IFS=$as_save_IFS |
4707 | + |
4708 | +fi |
4709 | +fi |
4710 | +CC=$ac_cv_prog_CC |
4711 | +if test -n "$CC"; then |
4712 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4713 | +$as_echo "$CC" >&6; } |
4714 | +else |
4715 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4716 | +$as_echo "no" >&6; } |
4717 | +fi |
4718 | + |
4719 | + |
4720 | + fi |
4721 | +fi |
4722 | +if test -z "$CC"; then |
4723 | + # Extract the first word of "cc", so it can be a program name with args. |
4724 | +set dummy cc; ac_word=$2 |
4725 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4726 | +$as_echo_n "checking for $ac_word... " >&6; } |
4727 | +if ${ac_cv_prog_CC+:} false; then : |
4728 | + $as_echo_n "(cached) " >&6 |
4729 | +else |
4730 | + if test -n "$CC"; then |
4731 | + ac_cv_prog_CC="$CC" # Let the user override the test. |
4732 | +else |
4733 | + ac_prog_rejected=no |
4734 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4735 | +for as_dir in $PATH |
4736 | +do |
4737 | + IFS=$as_save_IFS |
4738 | + test -z "$as_dir" && as_dir=. |
4739 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4740 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4741 | + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4742 | + ac_prog_rejected=yes |
4743 | + continue |
4744 | + fi |
4745 | + ac_cv_prog_CC="cc" |
4746 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4747 | + break 2 |
4748 | + fi |
4749 | +done |
4750 | + done |
4751 | +IFS=$as_save_IFS |
4752 | + |
4753 | +if test $ac_prog_rejected = yes; then |
4754 | + # We found a bogon in the path, so make sure we never use it. |
4755 | + set dummy $ac_cv_prog_CC |
4756 | + shift |
4757 | + if test $# != 0; then |
4758 | + # We chose a different compiler from the bogus one. |
4759 | + # However, it has the same basename, so the bogon will be chosen |
4760 | + # first if we set CC to just the basename; use the full file name. |
4761 | + shift |
4762 | + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
4763 | + fi |
4764 | +fi |
4765 | +fi |
4766 | +fi |
4767 | +CC=$ac_cv_prog_CC |
4768 | +if test -n "$CC"; then |
4769 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4770 | +$as_echo "$CC" >&6; } |
4771 | +else |
4772 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4773 | +$as_echo "no" >&6; } |
4774 | +fi |
4775 | + |
4776 | + |
4777 | +fi |
4778 | +if test -z "$CC"; then |
4779 | + if test -n "$ac_tool_prefix"; then |
4780 | + for ac_prog in cl.exe |
4781 | + do |
4782 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4783 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4784 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4785 | +$as_echo_n "checking for $ac_word... " >&6; } |
4786 | +if ${ac_cv_prog_CC+:} false; then : |
4787 | + $as_echo_n "(cached) " >&6 |
4788 | +else |
4789 | + if test -n "$CC"; then |
4790 | + ac_cv_prog_CC="$CC" # Let the user override the test. |
4791 | +else |
4792 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4793 | +for as_dir in $PATH |
4794 | +do |
4795 | + IFS=$as_save_IFS |
4796 | + test -z "$as_dir" && as_dir=. |
4797 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4798 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4799 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4800 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4801 | + break 2 |
4802 | + fi |
4803 | +done |
4804 | + done |
4805 | +IFS=$as_save_IFS |
4806 | + |
4807 | +fi |
4808 | +fi |
4809 | +CC=$ac_cv_prog_CC |
4810 | +if test -n "$CC"; then |
4811 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4812 | +$as_echo "$CC" >&6; } |
4813 | +else |
4814 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4815 | +$as_echo "no" >&6; } |
4816 | +fi |
4817 | + |
4818 | + |
4819 | + test -n "$CC" && break |
4820 | + done |
4821 | +fi |
4822 | +if test -z "$CC"; then |
4823 | + ac_ct_CC=$CC |
4824 | + for ac_prog in cl.exe |
4825 | +do |
4826 | + # Extract the first word of "$ac_prog", so it can be a program name with args. |
4827 | +set dummy $ac_prog; ac_word=$2 |
4828 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4829 | +$as_echo_n "checking for $ac_word... " >&6; } |
4830 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
4831 | + $as_echo_n "(cached) " >&6 |
4832 | +else |
4833 | + if test -n "$ac_ct_CC"; then |
4834 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4835 | +else |
4836 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4837 | +for as_dir in $PATH |
4838 | +do |
4839 | + IFS=$as_save_IFS |
4840 | + test -z "$as_dir" && as_dir=. |
4841 | + for ac_exec_ext in '' $ac_executable_extensions; do |
4842 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4843 | + ac_cv_prog_ac_ct_CC="$ac_prog" |
4844 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4845 | + break 2 |
4846 | + fi |
4847 | +done |
4848 | + done |
4849 | +IFS=$as_save_IFS |
4850 | + |
4851 | +fi |
4852 | +fi |
4853 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4854 | +if test -n "$ac_ct_CC"; then |
4855 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4856 | +$as_echo "$ac_ct_CC" >&6; } |
4857 | +else |
4858 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4859 | +$as_echo "no" >&6; } |
4860 | +fi |
4861 | + |
4862 | + |
4863 | + test -n "$ac_ct_CC" && break |
4864 | +done |
4865 | + |
4866 | + if test "x$ac_ct_CC" = x; then |
4867 | + CC="" |
4868 | + else |
4869 | + case $cross_compiling:$ac_tool_warned in |
4870 | +yes:) |
4871 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4872 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4873 | +ac_tool_warned=yes ;; |
4874 | +esac |
4875 | + CC=$ac_ct_CC |
4876 | + fi |
4877 | +fi |
4878 | + |
4879 | +fi |
4880 | + |
4881 | + |
4882 | +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4883 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4884 | +as_fn_error $? "no acceptable C compiler found in \$PATH |
4885 | +See \`config.log' for more details" "$LINENO" 5; } |
4886 | + |
4887 | +# Provide some information about the compiler. |
4888 | +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4889 | +set X $ac_compile |
4890 | +ac_compiler=$2 |
4891 | +for ac_option in --version -v -V -qversion; do |
4892 | + { { ac_try="$ac_compiler $ac_option >&5" |
4893 | +case "(($ac_try" in |
4894 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4895 | + *) ac_try_echo=$ac_try;; |
4896 | +esac |
4897 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4898 | +$as_echo "$ac_try_echo"; } >&5 |
4899 | + (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4900 | + ac_status=$? |
4901 | + if test -s conftest.err; then |
4902 | + sed '10a\ |
4903 | +... rest of stderr output deleted ... |
4904 | + 10q' conftest.err >conftest.er1 |
4905 | + cat conftest.er1 >&5 |
4906 | + fi |
4907 | + rm -f conftest.er1 conftest.err |
4908 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4909 | + test $ac_status = 0; } |
4910 | +done |
4911 | + |
4912 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4913 | +/* end confdefs.h. */ |
4914 | + |
4915 | +int |
4916 | +main () |
4917 | +{ |
4918 | + |
4919 | + ; |
4920 | + return 0; |
4921 | +} |
4922 | +_ACEOF |
4923 | +ac_clean_files_save=$ac_clean_files |
4924 | +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
4925 | +# Try to create an executable without -o first, disregard a.out. |
4926 | +# It will help us diagnose broken compilers, and finding out an intuition |
4927 | +# of exeext. |
4928 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4929 | +$as_echo_n "checking whether the C compiler works... " >&6; } |
4930 | +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4931 | + |
4932 | +# The possible output files: |
4933 | +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
4934 | + |
4935 | +ac_rmfiles= |
4936 | +for ac_file in $ac_files |
4937 | +do |
4938 | + case $ac_file in |
4939 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4940 | + * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
4941 | + esac |
4942 | +done |
4943 | +rm -f $ac_rmfiles |
4944 | + |
4945 | +if { { ac_try="$ac_link_default" |
4946 | +case "(($ac_try" in |
4947 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4948 | + *) ac_try_echo=$ac_try;; |
4949 | +esac |
4950 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4951 | +$as_echo "$ac_try_echo"; } >&5 |
4952 | + (eval "$ac_link_default") 2>&5 |
4953 | + ac_status=$? |
4954 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4955 | + test $ac_status = 0; }; then : |
4956 | + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
4957 | +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
4958 | +# in a Makefile. We should not override ac_cv_exeext if it was cached, |
4959 | +# so that the user can short-circuit this test for compilers unknown to |
4960 | +# Autoconf. |
4961 | +for ac_file in $ac_files '' |
4962 | +do |
4963 | + test -f "$ac_file" || continue |
4964 | + case $ac_file in |
4965 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4966 | + ;; |
4967 | + [ab].out ) |
4968 | + # We found the default executable, but exeext='' is most |
4969 | + # certainly right. |
4970 | + break;; |
4971 | + *.* ) |
4972 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4973 | + then :; else |
4974 | + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4975 | + fi |
4976 | + # We set ac_cv_exeext here because the later test for it is not |
4977 | + # safe: cross compilers may not add the suffix if given an `-o' |
4978 | + # argument, so we may need to know it at that point already. |
4979 | + # Even if this section looks crufty: it has the advantage of |
4980 | + # actually working. |
4981 | + break;; |
4982 | + * ) |
4983 | + break;; |
4984 | + esac |
4985 | +done |
4986 | +test "$ac_cv_exeext" = no && ac_cv_exeext= |
4987 | + |
4988 | +else |
4989 | + ac_file='' |
4990 | +fi |
4991 | +if test -z "$ac_file"; then : |
4992 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4993 | +$as_echo "no" >&6; } |
4994 | +$as_echo "$as_me: failed program was:" >&5 |
4995 | +sed 's/^/| /' conftest.$ac_ext >&5 |
4996 | + |
4997 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4998 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4999 | +as_fn_error 77 "C compiler cannot create executables |
5000 | +See \`config.log' for more details" "$LINENO" 5; } |
The diff has been truncated for viewing.
This probably needs a feature freeze exception. Please follow https:/ /wiki.ubuntu. com/FreezeExcep tionProcess.