Parent Directory
|
Revision Log
- Imported pxys2-2.1.0
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for Proxy scanner daemon 2.1. |
4 | # |
5 | # Report bugs to <mbuna@bugged.org>. |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
248 | # so uname gets run too. |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
250 | |
251 | exec 6>&1 |
252 | |
253 | # |
254 | # Initializations. |
255 | # |
256 | ac_default_prefix=/usr/local |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no |
259 | subdirs= |
260 | MFLAGS= |
261 | MAKEFLAGS= |
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
263 | |
264 | # Maximum number of lines to put in a shell here document. |
265 | # This variable seems obsolete. It should probably be removed, and |
266 | # only ac_max_sed_lines should be used. |
267 | : ${ac_max_here_lines=38} |
268 | |
269 | # Identity of this package. |
270 | PACKAGE_NAME='Proxy scanner daemon' |
271 | PACKAGE_TARNAME='pxscand' |
272 | PACKAGE_VERSION='2.1' |
273 | PACKAGE_STRING='Proxy scanner daemon 2.1' |
274 | PACKAGE_BUGREPORT='mbuna@bugged.org' |
275 | |
276 | ac_unique_file="src/pxyscand.cc" |
277 | # Factoring default headers for most tests. |
278 | ac_includes_default="\ |
279 | #include <stdio.h> |
280 | #if HAVE_SYS_TYPES_H |
281 | # include <sys/types.h> |
282 | #endif |
283 | #if HAVE_SYS_STAT_H |
284 | # include <sys/stat.h> |
285 | #endif |
286 | #if STDC_HEADERS |
287 | # include <stdlib.h> |
288 | # include <stddef.h> |
289 | #else |
290 | # if HAVE_STDLIB_H |
291 | # include <stdlib.h> |
292 | # endif |
293 | #endif |
294 | #if HAVE_STRING_H |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
296 | # include <memory.h> |
297 | # endif |
298 | # include <string.h> |
299 | #endif |
300 | #if HAVE_STRINGS_H |
301 | # include <strings.h> |
302 | #endif |
303 | #if HAVE_INTTYPES_H |
304 | # include <inttypes.h> |
305 | #else |
306 | # if HAVE_STDINT_H |
307 | # include <stdint.h> |
308 | # endif |
309 | #endif |
310 | #if HAVE_UNISTD_H |
311 | # include <unistd.h> |
312 | #endif" |
313 | |
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PEAK_CONFIG PEAK_CFLAGS PEAK_LIBS FGREP XML2_CONFIG XML2_CFLAGS XML2_LIBS CPP EGREP LIBOBJS LTLIBOBJS' |
315 | ac_subst_files='' |
316 | |
317 | # Initialize some variables set by options. |
318 | ac_init_help= |
319 | ac_init_version=false |
320 | # The variables have the same names as the options, with |
321 | # dashes changed to underlines. |
322 | cache_file=/dev/null |
323 | exec_prefix=NONE |
324 | no_create= |
325 | no_recursion= |
326 | prefix=NONE |
327 | program_prefix=NONE |
328 | program_suffix=NONE |
329 | program_transform_name=s,x,x, |
330 | silent= |
331 | site= |
332 | srcdir= |
333 | verbose= |
334 | x_includes=NONE |
335 | x_libraries=NONE |
336 | |
337 | # Installation directory options. |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
339 | # and all the variables that are supposed to be based on exec_prefix |
340 | # by default will actually change. |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
342 | bindir='${exec_prefix}/bin' |
343 | sbindir='${exec_prefix}/sbin' |
344 | libexecdir='${exec_prefix}/libexec' |
345 | datadir='${prefix}/share' |
346 | sysconfdir='${prefix}/etc' |
347 | sharedstatedir='${prefix}/com' |
348 | localstatedir='${prefix}/var' |
349 | libdir='${exec_prefix}/lib' |
350 | includedir='${prefix}/include' |
351 | oldincludedir='/usr/include' |
352 | infodir='${prefix}/info' |
353 | mandir='${prefix}/man' |
354 | |
355 | ac_prev= |
356 | for ac_option |
357 | do |
358 | # If the previous option needs an argument, assign it. |
359 | if test -n "$ac_prev"; then |
360 | eval "$ac_prev=\$ac_option" |
361 | ac_prev= |
362 | continue |
363 | fi |
364 | |
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
366 | |
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
368 | |
369 | case $ac_option in |
370 | |
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
372 | ac_prev=bindir ;; |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
374 | bindir=$ac_optarg ;; |
375 | |
376 | -build | --build | --buil | --bui | --bu) |
377 | ac_prev=build_alias ;; |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
379 | build_alias=$ac_optarg ;; |
380 | |
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
383 | ac_prev=cache_file ;; |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
386 | cache_file=$ac_optarg ;; |
387 | |
388 | --config-cache | -C) |
389 | cache_file=config.cache ;; |
390 | |
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
392 | ac_prev=datadir ;; |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
394 | | --da=*) |
395 | datadir=$ac_optarg ;; |
396 | |
397 | -disable-* | --disable-*) |
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
399 | # Reject names that are not valid shell variable names. |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
402 | { (exit 1); exit 1; }; } |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
404 | eval "enable_$ac_feature=no" ;; |
405 | |
406 | -enable-* | --enable-*) |
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
408 | # Reject names that are not valid shell variable names. |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
411 | { (exit 1); exit 1; }; } |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
413 | case $ac_option in |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
415 | *) ac_optarg=yes ;; |
416 | esac |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
418 | |
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
421 | | --exec | --exe | --ex) |
422 | ac_prev=exec_prefix ;; |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
425 | | --exec=* | --exe=* | --ex=*) |
426 | exec_prefix=$ac_optarg ;; |
427 | |
428 | -gas | --gas | --ga | --g) |
429 | # Obsolete; use --with-gas. |
430 | with_gas=yes ;; |
431 | |
432 | -help | --help | --hel | --he | -h) |
433 | ac_init_help=long ;; |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
435 | ac_init_help=recursive ;; |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
437 | ac_init_help=short ;; |
438 | |
439 | -host | --host | --hos | --ho) |
440 | ac_prev=host_alias ;; |
441 | -host=* | --host=* | --hos=* | --ho=*) |
442 | host_alias=$ac_optarg ;; |
443 | |
444 | -includedir | --includedir | --includedi | --included | --include \ |
445 | | --includ | --inclu | --incl | --inc) |
446 | ac_prev=includedir ;; |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
449 | includedir=$ac_optarg ;; |
450 | |
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
452 | ac_prev=infodir ;; |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
454 | infodir=$ac_optarg ;; |
455 | |
456 | -libdir | --libdir | --libdi | --libd) |
457 | ac_prev=libdir ;; |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
459 | libdir=$ac_optarg ;; |
460 | |
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
462 | | --libexe | --libex | --libe) |
463 | ac_prev=libexecdir ;; |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
465 | | --libexe=* | --libex=* | --libe=*) |
466 | libexecdir=$ac_optarg ;; |
467 | |
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
469 | | --localstate | --localstat | --localsta | --localst \ |
470 | | --locals | --local | --loca | --loc | --lo) |
471 | ac_prev=localstatedir ;; |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
475 | localstatedir=$ac_optarg ;; |
476 | |
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
478 | ac_prev=mandir ;; |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
480 | mandir=$ac_optarg ;; |
481 | |
482 | -nfp | --nfp | --nf) |
483 | # Obsolete; use --without-fp. |
484 | with_fp=no ;; |
485 | |
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
487 | | --no-cr | --no-c | -n) |
488 | no_create=yes ;; |
489 | |
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
492 | no_recursion=yes ;; |
493 | |
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
496 | | --oldin | --oldi | --old | --ol | --o) |
497 | ac_prev=oldincludedir ;; |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
501 | oldincludedir=$ac_optarg ;; |
502 | |
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
504 | ac_prev=prefix ;; |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
506 | prefix=$ac_optarg ;; |
507 | |
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
509 | | --program-pre | --program-pr | --program-p) |
510 | ac_prev=program_prefix ;; |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
513 | program_prefix=$ac_optarg ;; |
514 | |
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
516 | | --program-suf | --program-su | --program-s) |
517 | ac_prev=program_suffix ;; |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
520 | program_suffix=$ac_optarg ;; |
521 | |
522 | -program-transform-name | --program-transform-name \ |
523 | | --program-transform-nam | --program-transform-na \ |
524 | | --program-transform-n | --program-transform- \ |
525 | | --program-transform | --program-transfor \ |
526 | | --program-transfo | --program-transf \ |
527 | | --program-trans | --program-tran \ |
528 | | --progr-tra | --program-tr | --program-t) |
529 | ac_prev=program_transform_name ;; |
530 | -program-transform-name=* | --program-transform-name=* \ |
531 | | --program-transform-nam=* | --program-transform-na=* \ |
532 | | --program-transform-n=* | --program-transform-=* \ |
533 | | --program-transform=* | --program-transfor=* \ |
534 | | --program-transfo=* | --program-transf=* \ |
535 | | --program-trans=* | --program-tran=* \ |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
537 | program_transform_name=$ac_optarg ;; |
538 | |
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
540 | | -silent | --silent | --silen | --sile | --sil) |
541 | silent=yes ;; |
542 | |
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
544 | ac_prev=sbindir ;; |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
546 | | --sbi=* | --sb=*) |
547 | sbindir=$ac_optarg ;; |
548 | |
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
552 | | --sha | --sh) |
553 | ac_prev=sharedstatedir ;; |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
557 | | --sha=* | --sh=*) |
558 | sharedstatedir=$ac_optarg ;; |
559 | |
560 | -site | --site | --sit) |
561 | ac_prev=site ;; |
562 | -site=* | --site=* | --sit=*) |
563 | site=$ac_optarg ;; |
564 | |
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
566 | ac_prev=srcdir ;; |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
568 | srcdir=$ac_optarg ;; |
569 | |
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
572 | ac_prev=sysconfdir ;; |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
575 | sysconfdir=$ac_optarg ;; |
576 | |
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
578 | ac_prev=target_alias ;; |
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
580 | target_alias=$ac_optarg ;; |
581 | |
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
583 | verbose=yes ;; |
584 | |
585 | -version | --version | --versio | --versi | --vers | -V) |
586 | ac_init_version=: ;; |
587 | |
588 | -with-* | --with-*) |
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
590 | # Reject names that are not valid shell variable names. |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
593 | { (exit 1); exit 1; }; } |
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
595 | case $ac_option in |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
597 | *) ac_optarg=yes ;; |
598 | esac |
599 | eval "with_$ac_package='$ac_optarg'" ;; |
600 | |
601 | -without-* | --without-*) |
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
603 | # Reject names that are not valid shell variable names. |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
606 | { (exit 1); exit 1; }; } |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
608 | eval "with_$ac_package=no" ;; |
609 | |
610 | --x) |
611 | # Obsolete; use --with-x. |
612 | with_x=yes ;; |
613 | |
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
615 | | --x-incl | --x-inc | --x-in | --x-i) |
616 | ac_prev=x_includes ;; |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
619 | x_includes=$ac_optarg ;; |
620 | |
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
623 | ac_prev=x_libraries ;; |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
626 | x_libraries=$ac_optarg ;; |
627 | |
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
629 | Try \`$0 --help' for more information." >&2 |
630 | { (exit 1); exit 1; }; } |
631 | ;; |
632 | |
633 | *=*) |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
635 | # Reject names that are not valid shell variable names. |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
638 | { (exit 1); exit 1; }; } |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
640 | eval "$ac_envvar='$ac_optarg'" |
641 | export $ac_envvar ;; |
642 | |
643 | *) |
644 | # FIXME: should be removed in autoconf 3.0. |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
649 | ;; |
650 | |
651 | esac |
652 | done |
653 | |
654 | if test -n "$ac_prev"; then |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
657 | { (exit 1); exit 1; }; } |
658 | fi |
659 | |
660 | # Be sure to have absolute paths. |
661 | for ac_var in exec_prefix prefix |
662 | do |
663 | eval ac_val=$`echo $ac_var` |
664 | case $ac_val in |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
667 | { (exit 1); exit 1; }; };; |
668 | esac |
669 | done |
670 | |
671 | # Be sure to have absolute paths. |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
673 | localstatedir libdir includedir oldincludedir infodir mandir |
674 | do |
675 | eval ac_val=$`echo $ac_var` |
676 | case $ac_val in |
677 | [\\/$]* | ?:[\\/]* ) ;; |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
679 | { (exit 1); exit 1; }; };; |
680 | esac |
681 | done |
682 | |
683 | # There might be people who depend on the old broken behavior: `$host' |
684 | # used to hold the argument of --host etc. |
685 | # FIXME: To remove some day. |
686 | build=$build_alias |
687 | host=$host_alias |
688 | target=$target_alias |
689 | |
690 | # FIXME: To remove some day. |
691 | if test "x$host_alias" != x; then |
692 | if test "x$build_alias" = x; then |
693 | cross_compiling=maybe |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
696 | elif test "x$build_alias" != "x$host_alias"; then |
697 | cross_compiling=yes |
698 | fi |
699 | fi |
700 | |
701 | ac_tool_prefix= |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
703 | |
704 | test "$silent" = yes && exec 6>/dev/null |
705 | |
706 | |
707 | # Find the source files, if location was not specified. |
708 | if test -z "$srcdir"; then |
709 | ac_srcdir_defaulted=yes |
710 | # Try the directory containing this script, then its parent. |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
713 | X"$0" : 'X\(//\)[^/]' \| \ |
714 | X"$0" : 'X\(//\)$' \| \ |
715 | X"$0" : 'X\(/\)' \| \ |
716 | . : '\(.\)' 2>/dev/null || |
717 | echo X"$0" | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
721 | /^X\(\/\).*/{ s//\1/; q; } |
722 | s/.*/./; q'` |
723 | srcdir=$ac_confdir |
724 | if test ! -r $srcdir/$ac_unique_file; then |
725 | srcdir=.. |
726 | fi |
727 | else |
728 | ac_srcdir_defaulted=no |
729 | fi |
730 | if test ! -r $srcdir/$ac_unique_file; then |
731 | if test "$ac_srcdir_defaulted" = yes; then |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
733 | { (exit 1); exit 1; }; } |
734 | else |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
736 | { (exit 1); exit 1; }; } |
737 | fi |
738 | fi |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
741 | { (exit 1); exit 1; }; } |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
743 | ac_env_build_alias_set=${build_alias+set} |
744 | ac_env_build_alias_value=$build_alias |
745 | ac_cv_env_build_alias_set=${build_alias+set} |
746 | ac_cv_env_build_alias_value=$build_alias |
747 | ac_env_host_alias_set=${host_alias+set} |
748 | ac_env_host_alias_value=$host_alias |
749 | ac_cv_env_host_alias_set=${host_alias+set} |
750 | ac_cv_env_host_alias_value=$host_alias |
751 | ac_env_target_alias_set=${target_alias+set} |
752 | ac_env_target_alias_value=$target_alias |
753 | ac_cv_env_target_alias_set=${target_alias+set} |
754 | ac_cv_env_target_alias_value=$target_alias |
755 | ac_env_CC_set=${CC+set} |
756 | ac_env_CC_value=$CC |
757 | ac_cv_env_CC_set=${CC+set} |
758 | ac_cv_env_CC_value=$CC |
759 | ac_env_CFLAGS_set=${CFLAGS+set} |
760 | ac_env_CFLAGS_value=$CFLAGS |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
762 | ac_cv_env_CFLAGS_value=$CFLAGS |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
764 | ac_env_LDFLAGS_value=$LDFLAGS |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
771 | ac_env_CXX_set=${CXX+set} |
772 | ac_env_CXX_value=$CXX |
773 | ac_cv_env_CXX_set=${CXX+set} |
774 | ac_cv_env_CXX_value=$CXX |
775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
776 | ac_env_CXXFLAGS_value=$CXXFLAGS |
777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
779 | ac_env_CPP_set=${CPP+set} |
780 | ac_env_CPP_value=$CPP |
781 | ac_cv_env_CPP_set=${CPP+set} |
782 | ac_cv_env_CPP_value=$CPP |
783 | |
784 | # |
785 | # Report the --help message. |
786 | # |
787 | if test "$ac_init_help" = "long"; then |
788 | # Omit some internal or obsolete options to make the list less imposing. |
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
790 | cat <<_ACEOF |
791 | \`configure' configures Proxy scanner daemon 2.1 to adapt to many kinds of systems. |
792 | |
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
794 | |
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
797 | |
798 | Defaults for the options are specified in brackets. |
799 | |
800 | Configuration: |
801 | -h, --help display this help and exit |
802 | --help=short display options specific to this package |
803 | --help=recursive display the short help of all the included packages |
804 | -V, --version display version information and exit |
805 | -q, --quiet, --silent do not print \`checking...' messages |
806 | --cache-file=FILE cache test results in FILE [disabled] |
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
808 | -n, --no-create do not create output files |
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
810 | |
811 | _ACEOF |
812 | |
813 | cat <<_ACEOF |
814 | Installation directories: |
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
816 | [$ac_default_prefix] |
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
818 | [PREFIX] |
819 | |
820 | By default, \`make install' will install all the files in |
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
823 | for instance \`--prefix=\$HOME'. |
824 | |
825 | For better control, use the options below. |
826 | |
827 | Fine tuning of the installation directories: |
828 | --bindir=DIR user executables [EPREFIX/bin] |
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
836 | --includedir=DIR C header files [PREFIX/include] |
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
838 | --infodir=DIR info documentation [PREFIX/info] |
839 | --mandir=DIR man documentation [PREFIX/man] |
840 | _ACEOF |
841 | |
842 | cat <<\_ACEOF |
843 | |
844 | Program names: |
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
848 | _ACEOF |
849 | fi |
850 | |
851 | if test -n "$ac_init_help"; then |
852 | case $ac_init_help in |
853 | short | recursive ) echo "Configuration of Proxy scanner daemon 2.1:";; |
854 | esac |
855 | cat <<\_ACEOF |
856 | |
857 | Optional Features: |
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
860 | --enable-maintainer-mode enable make rules and dependencies not useful |
861 | (and sometimes confusing) to the casual installer |
862 | --disable-dependency-tracking speeds up one-time build |
863 | --enable-dependency-tracking do not reject slow dependency extractors |
864 | |
865 | Optional Packages: |
866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
868 | --with-peak-prefix=PFX Prefix where peak is installed (optional) |
869 | --with-peak-exec-prefix=PFX Exec prefix where peak is installed (optional) |
870 | --with-xml2-prefix=PFX Prefix where xml2 is installed (optional) |
871 | --with-xml2-exec-prefix=PFX Exec prefix where xml2 is installed (optional) |
872 | |
873 | Some influential environment variables: |
874 | CC C compiler command |
875 | CFLAGS C compiler flags |
876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
877 | nonstandard directory <lib dir> |
878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
879 | headers in a nonstandard directory <include dir> |
880 | CXX C++ compiler command |
881 | CXXFLAGS C++ compiler flags |
882 | CPP C preprocessor |
883 | |
884 | Use these variables to override the choices made by `configure' or to help |
885 | it to find libraries and programs with nonstandard names/locations. |
886 | |
887 | Report bugs to <mbuna@bugged.org>. |
888 | _ACEOF |
889 | fi |
890 | |
891 | if test "$ac_init_help" = "recursive"; then |
892 | # If there are subdirs, report their specific --help. |
893 | ac_popdir=`pwd` |
894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
895 | test -d $ac_dir || continue |
896 | ac_builddir=. |
897 | |
898 | if test "$ac_dir" != .; then |
899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
900 | # A "../" for each directory in $ac_dir_suffix. |
901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
902 | else |
903 | ac_dir_suffix= ac_top_builddir= |
904 | fi |
905 | |
906 | case $srcdir in |
907 | .) # No --srcdir option. We are building in place. |
908 | ac_srcdir=. |
909 | if test -z "$ac_top_builddir"; then |
910 | ac_top_srcdir=. |
911 | else |
912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
913 | fi ;; |
914 | [\\/]* | ?:[\\/]* ) # Absolute path. |
915 | ac_srcdir=$srcdir$ac_dir_suffix; |
916 | ac_top_srcdir=$srcdir ;; |
917 | *) # Relative path. |
918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
919 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
920 | esac |
921 | |
922 | # Do not use `cd foo && pwd` to compute absolute paths, because |
923 | # the directories may not exist. |
924 | case `pwd` in |
925 | .) ac_abs_builddir="$ac_dir";; |
926 | *) |
927 | case "$ac_dir" in |
928 | .) ac_abs_builddir=`pwd`;; |
929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
930 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
931 | esac;; |
932 | esac |
933 | case $ac_abs_builddir in |
934 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
935 | *) |
936 | case ${ac_top_builddir}. in |
937 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
940 | esac;; |
941 | esac |
942 | case $ac_abs_builddir in |
943 | .) ac_abs_srcdir=$ac_srcdir;; |
944 | *) |
945 | case $ac_srcdir in |
946 | .) ac_abs_srcdir=$ac_abs_builddir;; |
947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
949 | esac;; |
950 | esac |
951 | case $ac_abs_builddir in |
952 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
953 | *) |
954 | case $ac_top_srcdir in |
955 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
958 | esac;; |
959 | esac |
960 | |
961 | cd $ac_dir |
962 | # Check for guested configure; otherwise get Cygnus style configure. |
963 | if test -f $ac_srcdir/configure.gnu; then |
964 | echo |
965 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
966 | elif test -f $ac_srcdir/configure; then |
967 | echo |
968 | $SHELL $ac_srcdir/configure --help=recursive |
969 | elif test -f $ac_srcdir/configure.ac || |
970 | test -f $ac_srcdir/configure.in; then |
971 | echo |
972 | $ac_configure --help |
973 | else |
974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
975 | fi |
976 | cd $ac_popdir |
977 | done |
978 | fi |
979 | |
980 | test -n "$ac_init_help" && exit 0 |
981 | if $ac_init_version; then |
982 | cat <<\_ACEOF |
983 | Proxy scanner daemon configure 2.1 |
984 | generated by GNU Autoconf 2.59 |
985 | |
986 | Copyright (C) 2003 Free Software Foundation, Inc. |
987 | This configure script is free software; the Free Software Foundation |
988 | gives unlimited permission to copy, distribute and modify it. |
989 | _ACEOF |
990 | exit 0 |
991 | fi |
992 | exec 5>config.log |
993 | cat >&5 <<_ACEOF |
994 | This file contains any messages produced by compilers while |
995 | running configure, to aid debugging if configure makes a mistake. |
996 | |
997 | It was created by Proxy scanner daemon $as_me 2.1, which was |
998 | generated by GNU Autoconf 2.59. Invocation command line was |
999 | |
1000 | $ $0 $@ |
1001 | |
1002 | _ACEOF |
1003 | { |
1004 | cat <<_ASUNAME |
1005 | ## --------- ## |
1006 | ## Platform. ## |
1007 | ## --------- ## |
1008 | |
1009 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1010 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1011 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1012 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1013 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1014 | |
1015 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1016 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1017 | |
1018 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1019 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1020 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1021 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1022 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1023 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1024 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1025 | |
1026 | _ASUNAME |
1027 | |
1028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1029 | for as_dir in $PATH |
1030 | do |
1031 | IFS=$as_save_IFS |
1032 | test -z "$as_dir" && as_dir=. |
1033 | echo "PATH: $as_dir" |
1034 | done |
1035 | |
1036 | } >&5 |
1037 | |
1038 | cat >&5 <<_ACEOF |
1039 | |
1040 | |
1041 | ## ----------- ## |
1042 | ## Core tests. ## |
1043 | ## ----------- ## |
1044 | |
1045 | _ACEOF |
1046 | |
1047 | |
1048 | # Keep a trace of the command line. |
1049 | # Strip out --no-create and --no-recursion so they do not pile up. |
1050 | # Strip out --silent because we don't want to record it for future runs. |
1051 | # Also quote any args containing shell meta-characters. |
1052 | # Make two passes to allow for proper duplicate-argument suppression. |
1053 | ac_configure_args= |
1054 | ac_configure_args0= |
1055 | ac_configure_args1= |
1056 | ac_sep= |
1057 | ac_must_keep_next=false |
1058 | for ac_pass in 1 2 |
1059 | do |
1060 | for ac_arg |
1061 | do |
1062 | case $ac_arg in |
1063 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1065 | | -silent | --silent | --silen | --sile | --sil) |
1066 | continue ;; |
1067 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1068 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1069 | esac |
1070 | case $ac_pass in |
1071 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1072 | 2) |
1073 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1074 | if test $ac_must_keep_next = true; then |
1075 | ac_must_keep_next=false # Got value, back to normal. |
1076 | else |
1077 | case $ac_arg in |
1078 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1079 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1080 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1081 | | -with-* | --with-* | -without-* | --without-* | --x) |
1082 | case "$ac_configure_args0 " in |
1083 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1084 | esac |
1085 | ;; |
1086 | -* ) ac_must_keep_next=true ;; |
1087 | esac |
1088 | fi |
1089 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1090 | # Get rid of the leading space. |
1091 | ac_sep=" " |
1092 | ;; |
1093 | esac |
1094 | done |
1095 | done |
1096 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1097 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1098 | |
1099 | # When interrupted or exit'd, cleanup temporary files, and complete |
1100 | # config.log. We remove comments because anyway the quotes in there |
1101 | # would cause problems or look ugly. |
1102 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1103 | # such as our DU 5.0 friend, will then `close' the trap. |
1104 | trap 'exit_status=$? |
1105 | # Save into config.log some information that might help in debugging. |
1106 | { |
1107 | echo |
1108 | |
1109 | cat <<\_ASBOX |
1110 | ## ---------------- ## |
1111 | ## Cache variables. ## |
1112 | ## ---------------- ## |
1113 | _ASBOX |
1114 | echo |
1115 | # The following way of writing the cache mishandles newlines in values, |
1116 | { |
1117 | (set) 2>&1 | |
1118 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1119 | *ac_space=\ *) |
1120 | sed -n \ |
1121 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1123 | ;; |
1124 | *) |
1125 | sed -n \ |
1126 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1127 | ;; |
1128 | esac; |
1129 | } |
1130 | echo |
1131 | |
1132 | cat <<\_ASBOX |
1133 | ## ----------------- ## |
1134 | ## Output variables. ## |
1135 | ## ----------------- ## |
1136 | _ASBOX |
1137 | echo |
1138 | for ac_var in $ac_subst_vars |
1139 | do |
1140 | eval ac_val=$`echo $ac_var` |
1141 | echo "$ac_var='"'"'$ac_val'"'"'" |
1142 | done | sort |
1143 | echo |
1144 | |
1145 | if test -n "$ac_subst_files"; then |
1146 | cat <<\_ASBOX |
1147 | ## ------------- ## |
1148 | ## Output files. ## |
1149 | ## ------------- ## |
1150 | _ASBOX |
1151 | echo |
1152 | for ac_var in $ac_subst_files |
1153 | do |
1154 | eval ac_val=$`echo $ac_var` |
1155 | echo "$ac_var='"'"'$ac_val'"'"'" |
1156 | done | sort |
1157 | echo |
1158 | fi |
1159 | |
1160 | if test -s confdefs.h; then |
1161 | cat <<\_ASBOX |
1162 | ## ----------- ## |
1163 | ## confdefs.h. ## |
1164 | ## ----------- ## |
1165 | _ASBOX |
1166 | echo |
1167 | sed "/^$/d" confdefs.h | sort |
1168 | echo |
1169 | fi |
1170 | test "$ac_signal" != 0 && |
1171 | echo "$as_me: caught signal $ac_signal" |
1172 | echo "$as_me: exit $exit_status" |
1173 | } >&5 |
1174 | rm -f core *.core && |
1175 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1176 | exit $exit_status |
1177 | ' 0 |
1178 | for ac_signal in 1 2 13 15; do |
1179 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1180 | done |
1181 | ac_signal=0 |
1182 | |
1183 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1184 | rm -rf conftest* confdefs.h |
1185 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1186 | echo >confdefs.h |
1187 | |
1188 | # Predefined preprocessor variables. |
1189 | |
1190 | cat >>confdefs.h <<_ACEOF |
1191 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1192 | _ACEOF |
1193 | |
1194 | |
1195 | cat >>confdefs.h <<_ACEOF |
1196 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1197 | _ACEOF |
1198 | |
1199 | |
1200 | cat >>confdefs.h <<_ACEOF |
1201 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1202 | _ACEOF |
1203 | |
1204 | |
1205 | cat >>confdefs.h <<_ACEOF |
1206 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1207 | _ACEOF |
1208 | |
1209 | |
1210 | cat >>confdefs.h <<_ACEOF |
1211 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1212 | _ACEOF |
1213 | |
1214 | |
1215 | # Let the site file select an alternate cache file if it wants to. |
1216 | # Prefer explicitly selected file to automatically selected ones. |
1217 | if test -z "$CONFIG_SITE"; then |
1218 | if test "x$prefix" != xNONE; then |
1219 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1220 | else |
1221 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1222 | fi |
1223 | fi |
1224 | for ac_site_file in $CONFIG_SITE; do |
1225 | if test -r "$ac_site_file"; then |
1226 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1227 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1228 | sed 's/^/| /' "$ac_site_file" >&5 |
1229 | . "$ac_site_file" |
1230 | fi |
1231 | done |
1232 | |
1233 | if test -r "$cache_file"; then |
1234 | # Some versions of bash will fail to source /dev/null (special |
1235 | # files actually), so we avoid doing that. |
1236 | if test -f "$cache_file"; then |
1237 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1238 | echo "$as_me: loading cache $cache_file" >&6;} |
1239 | case $cache_file in |
1240 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1241 | *) . ./$cache_file;; |
1242 | esac |
1243 | fi |
1244 | else |
1245 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1246 | echo "$as_me: creating cache $cache_file" >&6;} |
1247 | >$cache_file |
1248 | fi |
1249 | |
1250 | # Check that the precious variables saved in the cache have kept the same |
1251 | # value. |
1252 | ac_cache_corrupted=false |
1253 | for ac_var in `(set) 2>&1 | |
1254 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1256 | eval ac_new_set=\$ac_env_${ac_var}_set |
1257 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1258 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1259 | case $ac_old_set,$ac_new_set in |
1260 | set,) |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1262 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1263 | ac_cache_corrupted=: ;; |
1264 | ,set) |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1266 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1267 | ac_cache_corrupted=: ;; |
1268 | ,);; |
1269 | *) |
1270 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1271 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1272 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1273 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1274 | echo "$as_me: former value: $ac_old_val" >&2;} |
1275 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1276 | echo "$as_me: current value: $ac_new_val" >&2;} |
1277 | ac_cache_corrupted=: |
1278 | fi;; |
1279 | esac |
1280 | # Pass precious variables to config.status. |
1281 | if test "$ac_new_set" = set; then |
1282 | case $ac_new_val in |
1283 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1284 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1285 | *) ac_arg=$ac_var=$ac_new_val ;; |
1286 | esac |
1287 | case " $ac_configure_args " in |
1288 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1289 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1290 | esac |
1291 | fi |
1292 | done |
1293 | if $ac_cache_corrupted; then |
1294 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1295 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1296 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1297 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1298 | { (exit 1); exit 1; }; } |
1299 | fi |
1300 | |
1301 | ac_ext=c |
1302 | ac_cpp='$CPP $CPPFLAGS' |
1303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1306 | |
1307 | |
1308 | |
1309 | |
1310 | |
1311 | |
1312 | |
1313 | |
1314 | |
1315 | |
1316 | |
1317 | |
1318 | |
1319 | |
1320 | |
1321 | |
1322 | |
1323 | |
1324 | |
1325 | |
1326 | |
1327 | |
1328 | |
1329 | |
1330 | |
1331 | |
1332 | |
1333 | am__api_version="1.9" |
1334 | ac_aux_dir= |
1335 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1336 | if test -f $ac_dir/install-sh; then |
1337 | ac_aux_dir=$ac_dir |
1338 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1339 | break |
1340 | elif test -f $ac_dir/install.sh; then |
1341 | ac_aux_dir=$ac_dir |
1342 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1343 | break |
1344 | elif test -f $ac_dir/shtool; then |
1345 | ac_aux_dir=$ac_dir |
1346 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1347 | break |
1348 | fi |
1349 | done |
1350 | if test -z "$ac_aux_dir"; then |
1351 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1352 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1353 | { (exit 1); exit 1; }; } |
1354 | fi |
1355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1357 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1358 | |
1359 | # Find a good install program. We prefer a C program (faster), |
1360 | # so one script is as good as another. But avoid the broken or |
1361 | # incompatible versions: |
1362 | # SysV /etc/install, /usr/sbin/install |
1363 | # SunOS /usr/etc/install |
1364 | # IRIX /sbin/install |
1365 | # AIX /bin/install |
1366 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1367 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1368 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1369 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1370 | # OS/2's system install, which has a completely different semantic |
1371 | # ./install, which can be erroneously created by make from ./install.sh. |
1372 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1373 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1374 | if test -z "$INSTALL"; then |
1375 | if test "${ac_cv_path_install+set}" = set; then |
1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1377 | else |
1378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1379 | for as_dir in $PATH |
1380 | do |
1381 | IFS=$as_save_IFS |
1382 | test -z "$as_dir" && as_dir=. |
1383 | # Account for people who put trailing slashes in PATH elements. |
1384 | case $as_dir/ in |
1385 | ./ | .// | /cC/* | \ |
1386 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1387 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1388 | /usr/ucb/* ) ;; |
1389 | *) |
1390 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1391 | # Don't use installbsd from OSF since it installs stuff as root |
1392 | # by default. |
1393 | for ac_prog in ginstall scoinst install; do |
1394 | for ac_exec_ext in '' $ac_executable_extensions; do |
1395 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1396 | if test $ac_prog = install && |
1397 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1398 | # AIX install. It has an incompatible calling convention. |
1399 | : |
1400 | elif test $ac_prog = install && |
1401 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1402 | # program-specific install script used by HP pwplus--don't use. |
1403 | : |
1404 | else |
1405 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1406 | break 3 |
1407 | fi |
1408 | fi |
1409 | done |
1410 | done |
1411 | ;; |
1412 | esac |
1413 | done |
1414 | |
1415 | |
1416 | fi |
1417 | if test "${ac_cv_path_install+set}" = set; then |
1418 | INSTALL=$ac_cv_path_install |
1419 | else |
1420 | # As a last resort, use the slow shell script. We don't cache a |
1421 | # path for INSTALL within a source directory, because that will |
1422 | # break other packages using the cache if that directory is |
1423 | # removed, or if the path is relative. |
1424 | INSTALL=$ac_install_sh |
1425 | fi |
1426 | fi |
1427 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1428 | echo "${ECHO_T}$INSTALL" >&6 |
1429 | |
1430 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1431 | # It thinks the first close brace ends the variable substitution. |
1432 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1433 | |
1434 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1435 | |
1436 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1437 | |
1438 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1439 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1440 | # Just in case |
1441 | sleep 1 |
1442 | echo timestamp > conftest.file |
1443 | # Do `set' in a subshell so we don't clobber the current shell's |
1444 | # arguments. Must try -L first in case configure is actually a |
1445 | # symlink; some systems play weird games with the mod time of symlinks |
1446 | # (eg FreeBSD returns the mod time of the symlink's containing |
1447 | # directory). |
1448 | if ( |
1449 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1450 | if test "$*" = "X"; then |
1451 | # -L didn't work. |
1452 | set X `ls -t $srcdir/configure conftest.file` |
1453 | fi |
1454 | rm -f conftest.file |
1455 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1456 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1457 | |
1458 | # If neither matched, then we have a broken ls. This can happen |
1459 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1460 | # broken ls alias from the environment. This has actually |
1461 | # happened. Such a system could not be considered "sane". |
1462 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1463 | alias in your environment" >&5 |
1464 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1465 | alias in your environment" >&2;} |
1466 | { (exit 1); exit 1; }; } |
1467 | fi |
1468 | |
1469 | test "$2" = conftest.file |
1470 | ) |
1471 | then |
1472 | # Ok. |
1473 | : |
1474 | else |
1475 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1476 | Check your system clock" >&5 |
1477 | echo "$as_me: error: newly created file is older than distributed files! |
1478 | Check your system clock" >&2;} |
1479 | { (exit 1); exit 1; }; } |
1480 | fi |
1481 | echo "$as_me:$LINENO: result: yes" >&5 |
1482 | echo "${ECHO_T}yes" >&6 |
1483 | test "$program_prefix" != NONE && |
1484 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1485 | # Use a double $ so make ignores it. |
1486 | test "$program_suffix" != NONE && |
1487 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1488 | # Double any \ or $. echo might interpret backslashes. |
1489 | # By default was `s,x,x', remove it if useless. |
1490 | cat <<\_ACEOF >conftest.sed |
1491 | s/[\\$]/&&/g;s/;s,x,x,$// |
1492 | _ACEOF |
1493 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1494 | rm conftest.sed |
1495 | |
1496 | # expand $ac_aux_dir to an absolute path |
1497 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1498 | |
1499 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1500 | # Use eval to expand $SHELL |
1501 | if eval "$MISSING --run true"; then |
1502 | am_missing_run="$MISSING --run " |
1503 | else |
1504 | am_missing_run= |
1505 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1506 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1507 | fi |
1508 | |
1509 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1510 | # We used to keeping the `.' as first argument, in order to |
1511 | # allow $(mkdir_p) to be used without argument. As in |
1512 | # $(mkdir_p) $(somedir) |
1513 | # where $(somedir) is conditionally defined. However this is wrong |
1514 | # for two reasons: |
1515 | # 1. if the package is installed by a user who cannot write `.' |
1516 | # make install will fail, |
1517 | # 2. the above comment should most certainly read |
1518 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1519 | # so it does not work when $(somedir) is undefined and |
1520 | # $(DESTDIR) is not. |
1521 | # To support the latter case, we have to write |
1522 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1523 | # so the `.' trick is pointless. |
1524 | mkdir_p='mkdir -p --' |
1525 | else |
1526 | # On NextStep and OpenStep, the `mkdir' command does not |
1527 | # recognize any option. It will interpret all options as |
1528 | # directories to create, and then abort because `.' already |
1529 | # exists. |
1530 | for d in ./-p ./--version; |
1531 | do |
1532 | test -d $d && rmdir $d |
1533 | done |
1534 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1535 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1536 | mkdir_p='$(mkinstalldirs)' |
1537 | else |
1538 | mkdir_p='$(install_sh) -d' |
1539 | fi |
1540 | fi |
1541 | |
1542 | for ac_prog in gawk mawk nawk awk |
1543 | do |
1544 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1545 | set dummy $ac_prog; ac_word=$2 |
1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1548 | if test "${ac_cv_prog_AWK+set}" = set; then |
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1550 | else |
1551 | if test -n "$AWK"; then |
1552 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1553 | else |
1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1555 | for as_dir in $PATH |
1556 | do |
1557 | IFS=$as_save_IFS |
1558 | test -z "$as_dir" && as_dir=. |
1559 | for ac_exec_ext in '' $ac_executable_extensions; do |
1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1561 | ac_cv_prog_AWK="$ac_prog" |
1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1563 | break 2 |
1564 | fi |
1565 | done |
1566 | done |
1567 | |
1568 | fi |
1569 | fi |
1570 | AWK=$ac_cv_prog_AWK |
1571 | if test -n "$AWK"; then |
1572 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1573 | echo "${ECHO_T}$AWK" >&6 |
1574 | else |
1575 | echo "$as_me:$LINENO: result: no" >&5 |
1576 | echo "${ECHO_T}no" >&6 |
1577 | fi |
1578 | |
1579 | test -n "$AWK" && break |
1580 | done |
1581 | |
1582 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1583 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1584 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1585 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1587 | else |
1588 | cat >conftest.make <<\_ACEOF |
1589 | all: |
1590 | @echo 'ac_maketemp="$(MAKE)"' |
1591 | _ACEOF |
1592 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1593 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1594 | if test -n "$ac_maketemp"; then |
1595 | eval ac_cv_prog_make_${ac_make}_set=yes |
1596 | else |
1597 | eval ac_cv_prog_make_${ac_make}_set=no |
1598 | fi |
1599 | rm -f conftest.make |
1600 | fi |
1601 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1602 | echo "$as_me:$LINENO: result: yes" >&5 |
1603 | echo "${ECHO_T}yes" >&6 |
1604 | SET_MAKE= |
1605 | else |
1606 | echo "$as_me:$LINENO: result: no" >&5 |
1607 | echo "${ECHO_T}no" >&6 |
1608 | SET_MAKE="MAKE=${MAKE-make}" |
1609 | fi |
1610 | |
1611 | rm -rf .tst 2>/dev/null |
1612 | mkdir .tst 2>/dev/null |
1613 | if test -d .tst; then |
1614 | am__leading_dot=. |
1615 | else |
1616 | am__leading_dot=_ |
1617 | fi |
1618 | rmdir .tst 2>/dev/null |
1619 | |
1620 | # test to see if srcdir already configured |
1621 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1622 | test -f $srcdir/config.status; then |
1623 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1624 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1625 | { (exit 1); exit 1; }; } |
1626 | fi |
1627 | |
1628 | # test whether we have cygpath |
1629 | if test -z "$CYGPATH_W"; then |
1630 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1631 | CYGPATH_W='cygpath -w' |
1632 | else |
1633 | CYGPATH_W=echo |
1634 | fi |
1635 | fi |
1636 | |
1637 | |
1638 | # Define the identity of the package. |
1639 | PACKAGE='pxscand' |
1640 | VERSION='2.1' |
1641 | |
1642 | |
1643 | cat >>confdefs.h <<_ACEOF |
1644 | #define PACKAGE "$PACKAGE" |
1645 | _ACEOF |
1646 | |
1647 | |
1648 | cat >>confdefs.h <<_ACEOF |
1649 | #define VERSION "$VERSION" |
1650 | _ACEOF |
1651 | |
1652 | # Some tools Automake needs. |
1653 | |
1654 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1655 | |
1656 | |
1657 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1658 | |
1659 | |
1660 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1661 | |
1662 | |
1663 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1664 | |
1665 | |
1666 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1667 | |
1668 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1669 | |
1670 | # Installed binaries are usually stripped using `strip' when the user |
1671 | # run `make install-strip'. However `strip' might not be the right |
1672 | # tool to use in cross-compilation environments, therefore Automake |
1673 | # will honor the `STRIP' environment variable to overrule this program. |
1674 | if test "$cross_compiling" != no; then |
1675 | if test -n "$ac_tool_prefix"; then |
1676 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1677 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1680 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1682 | else |
1683 | if test -n "$STRIP"; then |
1684 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1685 | else |
1686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1687 | for as_dir in $PATH |
1688 | do |
1689 | IFS=$as_save_IFS |
1690 | test -z "$as_dir" && as_dir=. |
1691 | for ac_exec_ext in '' $ac_executable_extensions; do |
1692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1693 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1695 | break 2 |
1696 | fi |
1697 | done |
1698 | done |
1699 | |
1700 | fi |
1701 | fi |
1702 | STRIP=$ac_cv_prog_STRIP |
1703 | if test -n "$STRIP"; then |
1704 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1705 | echo "${ECHO_T}$STRIP" >&6 |
1706 | else |
1707 | echo "$as_me:$LINENO: result: no" >&5 |
1708 | echo "${ECHO_T}no" >&6 |
1709 | fi |
1710 | |
1711 | fi |
1712 | if test -z "$ac_cv_prog_STRIP"; then |
1713 | ac_ct_STRIP=$STRIP |
1714 | # Extract the first word of "strip", so it can be a program name with args. |
1715 | set dummy strip; ac_word=$2 |
1716 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1718 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1720 | else |
1721 | if test -n "$ac_ct_STRIP"; then |
1722 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1723 | else |
1724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1725 | for as_dir in $PATH |
1726 | do |
1727 | IFS=$as_save_IFS |
1728 | test -z "$as_dir" && as_dir=. |
1729 | for ac_exec_ext in '' $ac_executable_extensions; do |
1730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1731 | ac_cv_prog_ac_ct_STRIP="strip" |
1732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1733 | break 2 |
1734 | fi |
1735 | done |
1736 | done |
1737 | |
1738 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1739 | fi |
1740 | fi |
1741 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1742 | if test -n "$ac_ct_STRIP"; then |
1743 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1744 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1745 | else |
1746 | echo "$as_me:$LINENO: result: no" >&5 |
1747 | echo "${ECHO_T}no" >&6 |
1748 | fi |
1749 | |
1750 | STRIP=$ac_ct_STRIP |
1751 | else |
1752 | STRIP="$ac_cv_prog_STRIP" |
1753 | fi |
1754 | |
1755 | fi |
1756 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1757 | |
1758 | # We need awk for the "check" target. The system "awk" is bad on |
1759 | # some platforms. |
1760 | # Always define AMTAR for backward compatibility. |
1761 | |
1762 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1763 | |
1764 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1765 | |
1766 | |
1767 | |
1768 | |
1769 | |
1770 | |
1771 | ac_config_headers="$ac_config_headers config.h" |
1772 | |
1773 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1774 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1775 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1776 | if test "${enable_maintainer_mode+set}" = set; then |
1777 | enableval="$enable_maintainer_mode" |
1778 | USE_MAINTAINER_MODE=$enableval |
1779 | else |
1780 | USE_MAINTAINER_MODE=no |
1781 | fi; |
1782 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
1783 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
1784 | |
1785 | |
1786 | if test $USE_MAINTAINER_MODE = yes; then |
1787 | MAINTAINER_MODE_TRUE= |
1788 | MAINTAINER_MODE_FALSE='#' |
1789 | else |
1790 | MAINTAINER_MODE_TRUE='#' |
1791 | MAINTAINER_MODE_FALSE= |
1792 | fi |
1793 | |
1794 | MAINT=$MAINTAINER_MODE_TRUE |
1795 | |
1796 | |
1797 | |
1798 | ac_ext=c |
1799 | ac_cpp='$CPP $CPPFLAGS' |
1800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1803 | if test -n "$ac_tool_prefix"; then |
1804 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1805 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1808 | if test "${ac_cv_prog_CC+set}" = set; then |
1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1810 | else |
1811 | if test -n "$CC"; then |
1812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1813 | else |
1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1815 | for as_dir in $PATH |
1816 | do |
1817 | IFS=$as_save_IFS |
1818 | test -z "$as_dir" && as_dir=. |
1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1821 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1823 | break 2 |
1824 | fi |
1825 | done |
1826 | done |
1827 | |
1828 | fi |
1829 | fi |
1830 | CC=$ac_cv_prog_CC |
1831 | if test -n "$CC"; then |
1832 | echo "$as_me:$LINENO: result: $CC" >&5 |
1833 | echo "${ECHO_T}$CC" >&6 |
1834 | else |
1835 | echo "$as_me:$LINENO: result: no" >&5 |
1836 | echo "${ECHO_T}no" >&6 |
1837 | fi |
1838 | |
1839 | fi |
1840 | if test -z "$ac_cv_prog_CC"; then |
1841 | ac_ct_CC=$CC |
1842 | # Extract the first word of "gcc", so it can be a program name with args. |
1843 | set dummy gcc; ac_word=$2 |
1844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1846 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1848 | else |
1849 | if test -n "$ac_ct_CC"; then |
1850 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1851 | else |
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1853 | for as_dir in $PATH |
1854 | do |
1855 | IFS=$as_save_IFS |
1856 | test -z "$as_dir" && as_dir=. |
1857 | for ac_exec_ext in '' $ac_executable_extensions; do |
1858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1859 | ac_cv_prog_ac_ct_CC="gcc" |
1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1861 | break 2 |
1862 | fi |
1863 | done |
1864 | done |
1865 | |
1866 | fi |
1867 | fi |
1868 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1869 | if test -n "$ac_ct_CC"; then |
1870 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1871 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1872 | else |
1873 | echo "$as_me:$LINENO: result: no" >&5 |
1874 | echo "${ECHO_T}no" >&6 |
1875 | fi |
1876 | |
1877 | CC=$ac_ct_CC |
1878 | else |
1879 | CC="$ac_cv_prog_CC" |
1880 | fi |
1881 | |
1882 | if test -z "$CC"; then |
1883 | if test -n "$ac_tool_prefix"; then |
1884 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1885 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1888 | if test "${ac_cv_prog_CC+set}" = set; then |
1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1890 | else |
1891 | if test -n "$CC"; then |
1892 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1893 | else |
1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1895 | for as_dir in $PATH |
1896 | do |
1897 | IFS=$as_save_IFS |
1898 | test -z "$as_dir" && as_dir=. |
1899 | for ac_exec_ext in '' $ac_executable_extensions; do |
1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1901 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1903 | break 2 |
1904 | fi |
1905 | done |
1906 | done |
1907 | |
1908 | fi |
1909 | fi |
1910 | CC=$ac_cv_prog_CC |
1911 | if test -n "$CC"; then |
1912 | echo "$as_me:$LINENO: result: $CC" >&5 |
1913 | echo "${ECHO_T}$CC" >&6 |
1914 | else |
1915 | echo "$as_me:$LINENO: result: no" >&5 |
1916 | echo "${ECHO_T}no" >&6 |
1917 | fi |
1918 | |
1919 | fi |
1920 | if test -z "$ac_cv_prog_CC"; then |
1921 | ac_ct_CC=$CC |
1922 | # Extract the first word of "cc", so it can be a program name with args. |
1923 | set dummy cc; ac_word=$2 |
1924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1926 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1928 | else |
1929 | if test -n "$ac_ct_CC"; then |
1930 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1931 | else |
1932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1933 | for as_dir in $PATH |
1934 | do |
1935 | IFS=$as_save_IFS |
1936 | test -z "$as_dir" && as_dir=. |
1937 | for ac_exec_ext in '' $ac_executable_extensions; do |
1938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1939 | ac_cv_prog_ac_ct_CC="cc" |
1940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1941 | break 2 |
1942 | fi |
1943 | done |
1944 | done |
1945 | |
1946 | fi |
1947 | fi |
1948 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1949 | if test -n "$ac_ct_CC"; then |
1950 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1951 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1952 | else |
1953 | echo "$as_me:$LINENO: result: no" >&5 |
1954 | echo "${ECHO_T}no" >&6 |
1955 | fi |
1956 | |
1957 | CC=$ac_ct_CC |
1958 | else |
1959 | CC="$ac_cv_prog_CC" |
1960 | fi |
1961 | |
1962 | fi |
1963 | if test -z "$CC"; then |
1964 | # Extract the first word of "cc", so it can be a program name with args. |
1965 | set dummy cc; ac_word=$2 |
1966 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1968 | if test "${ac_cv_prog_CC+set}" = set; then |
1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1970 | else |
1971 | if test -n "$CC"; then |
1972 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1973 | else |
1974 | ac_prog_rejected=no |
1975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1976 | for as_dir in $PATH |
1977 | do |
1978 | IFS=$as_save_IFS |
1979 | test -z "$as_dir" && as_dir=. |
1980 | for ac_exec_ext in '' $ac_executable_extensions; do |
1981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1982 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1983 | ac_prog_rejected=yes |
1984 | continue |
1985 | fi |
1986 | ac_cv_prog_CC="cc" |
1987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1988 | break 2 |
1989 | fi |
1990 | done |
1991 | done |
1992 | |
1993 | if test $ac_prog_rejected = yes; then |
1994 | # We found a bogon in the path, so make sure we never use it. |
1995 | set dummy $ac_cv_prog_CC |
1996 | shift |
1997 | if test $# != 0; then |
1998 | # We chose a different compiler from the bogus one. |
1999 | # However, it has the same basename, so the bogon will be chosen |
2000 | # first if we set CC to just the basename; use the full file name. |
2001 | shift |
2002 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2003 | fi |
2004 | fi |
2005 | fi |
2006 | fi |
2007 | CC=$ac_cv_prog_CC |
2008 | if test -n "$CC"; then |
2009 | echo "$as_me:$LINENO: result: $CC" >&5 |
2010 | echo "${ECHO_T}$CC" >&6 |
2011 | else |
2012 | echo "$as_me:$LINENO: result: no" >&5 |
2013 | echo "${ECHO_T}no" >&6 |
2014 | fi |
2015 | |
2016 | fi |
2017 | if test -z "$CC"; then |
2018 | if test -n "$ac_tool_prefix"; then |
2019 | for ac_prog in cl |
2020 | do |
2021 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2022 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2025 | if test "${ac_cv_prog_CC+set}" = set; then |
2026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2027 | else |
2028 | if test -n "$CC"; then |
2029 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2030 | else |
2031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2032 | for as_dir in $PATH |
2033 | do |
2034 | IFS=$as_save_IFS |
2035 | test -z "$as_dir" && as_dir=. |
2036 | for ac_exec_ext in '' $ac_executable_extensions; do |
2037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2038 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2040 | break 2 |
2041 | fi |
2042 | done |
2043 | done |
2044 | |
2045 | fi |
2046 | fi |
2047 | CC=$ac_cv_prog_CC |
2048 | if test -n "$CC"; then |
2049 | echo "$as_me:$LINENO: result: $CC" >&5 |
2050 | echo "${ECHO_T}$CC" >&6 |
2051 | else |
2052 | echo "$as_me:$LINENO: result: no" >&5 |
2053 | echo "${ECHO_T}no" >&6 |
2054 | fi |
2055 | |
2056 | test -n "$CC" && break |
2057 | done |
2058 | fi |
2059 | if test -z "$CC"; then |
2060 | ac_ct_CC=$CC |
2061 | for ac_prog in cl |
2062 | do |
2063 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2064 | set dummy $ac_prog; ac_word=$2 |
2065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2067 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2069 | else |
2070 | if test -n "$ac_ct_CC"; then |
2071 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2072 | else |
2073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2074 | for as_dir in $PATH |
2075 | do |
2076 | IFS=$as_save_IFS |
2077 | test -z "$as_dir" && as_dir=. |
2078 | for ac_exec_ext in '' $ac_executable_extensions; do |
2079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2080 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2082 | break 2 |
2083 | fi |
2084 | done |
2085 | done |
2086 | |
2087 | fi |
2088 | fi |
2089 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2090 | if test -n "$ac_ct_CC"; then |
2091 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2092 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2093 | else |
2094 | echo "$as_me:$LINENO: result: no" >&5 |
2095 | echo "${ECHO_T}no" >&6 |
2096 | fi |
2097 | |
2098 | test -n "$ac_ct_CC" && break |
2099 | done |
2100 | |
2101 | CC=$ac_ct_CC |
2102 | fi |
2103 | |
2104 | fi |
2105 | |
2106 | |
2107 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2108 | See \`config.log' for more details." >&5 |
2109 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2110 | See \`config.log' for more details." >&2;} |
2111 | { (exit 1); exit 1; }; } |
2112 | |
2113 | # Provide some information about the compiler. |
2114 | echo "$as_me:$LINENO:" \ |
2115 | "checking for C compiler version" >&5 |
2116 | ac_compiler=`set X $ac_compile; echo $2` |
2117 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2118 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2119 | ac_status=$? |
2120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2121 | (exit $ac_status); } |
2122 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2123 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2124 | ac_status=$? |
2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2126 | (exit $ac_status); } |
2127 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2128 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2129 | ac_status=$? |
2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2131 | (exit $ac_status); } |
2132 | |
2133 | cat >conftest.$ac_ext <<_ACEOF |
2134 | /* confdefs.h. */ |
2135 | _ACEOF |
2136 | cat confdefs.h >>conftest.$ac_ext |
2137 | cat >>conftest.$ac_ext <<_ACEOF |
2138 | /* end confdefs.h. */ |
2139 | |
2140 | int |
2141 | main () |
2142 | { |
2143 | |
2144 | ; |
2145 | return 0; |
2146 | } |
2147 | _ACEOF |
2148 | ac_clean_files_save=$ac_clean_files |
2149 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2150 | # Try to create an executable without -o first, disregard a.out. |
2151 | # It will help us diagnose broken compilers, and finding out an intuition |
2152 | # of exeext. |
2153 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2154 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2155 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2156 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2157 | (eval $ac_link_default) 2>&5 |
2158 | ac_status=$? |
2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2160 | (exit $ac_status); }; then |
2161 | # Find the output, starting from the most likely. This scheme is |
2162 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2163 | # resort. |
2164 | |
2165 | # Be careful to initialize this variable, since it used to be cached. |
2166 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2167 | ac_cv_exeext= |
2168 | # b.out is created by i960 compilers. |
2169 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2170 | do |
2171 | test -f "$ac_file" || continue |
2172 | case $ac_file in |
2173 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2174 | ;; |
2175 | conftest.$ac_ext ) |
2176 | # This is the source file. |
2177 | ;; |
2178 | [ab].out ) |
2179 | # We found the default executable, but exeext='' is most |
2180 | # certainly right. |
2181 | break;; |
2182 | *.* ) |
2183 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2184 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2185 | # but it would be cool to find out if it's true. Does anybody |
2186 | # maintain Libtool? --akim. |
2187 | export ac_cv_exeext |
2188 | break;; |
2189 | * ) |
2190 | break;; |
2191 | esac |
2192 | done |
2193 | else |
2194 | echo "$as_me: failed program was:" >&5 |
2195 | sed 's/^/| /' conftest.$ac_ext >&5 |
2196 | |
2197 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2198 | See \`config.log' for more details." >&5 |
2199 | echo "$as_me: error: C compiler cannot create executables |
2200 | See \`config.log' for more details." >&2;} |
2201 | { (exit 77); exit 77; }; } |
2202 | fi |
2203 | |
2204 | ac_exeext=$ac_cv_exeext |
2205 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2206 | echo "${ECHO_T}$ac_file" >&6 |
2207 | |
2208 | # Check the compiler produces executables we can run. If not, either |
2209 | # the compiler is broken, or we cross compile. |
2210 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2211 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2212 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2213 | # If not cross compiling, check that we can run a simple program. |
2214 | if test "$cross_compiling" != yes; then |
2215 | if { ac_try='./$ac_file' |
2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2217 | (eval $ac_try) 2>&5 |
2218 | ac_status=$? |
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2220 | (exit $ac_status); }; }; then |
2221 | cross_compiling=no |
2222 | else |
2223 | if test "$cross_compiling" = maybe; then |
2224 | cross_compiling=yes |
2225 | else |
2226 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2227 | If you meant to cross compile, use \`--host'. |
2228 | See \`config.log' for more details." >&5 |
2229 | echo "$as_me: error: cannot run C compiled programs. |
2230 | If you meant to cross compile, use \`--host'. |
2231 | See \`config.log' for more details." >&2;} |
2232 | { (exit 1); exit 1; }; } |
2233 | fi |
2234 | fi |
2235 | fi |
2236 | echo "$as_me:$LINENO: result: yes" >&5 |
2237 | echo "${ECHO_T}yes" >&6 |
2238 | |
2239 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2240 | ac_clean_files=$ac_clean_files_save |
2241 | # Check the compiler produces executables we can run. If not, either |
2242 | # the compiler is broken, or we cross compile. |
2243 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2244 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2245 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2246 | echo "${ECHO_T}$cross_compiling" >&6 |
2247 | |
2248 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2249 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2251 | (eval $ac_link) 2>&5 |
2252 | ac_status=$? |
2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2254 | (exit $ac_status); }; then |
2255 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2256 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2257 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2258 | # `rm'. |
2259 | for ac_file in conftest.exe conftest conftest.*; do |
2260 | test -f "$ac_file" || continue |
2261 | case $ac_file in |
2262 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2263 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2264 | export ac_cv_exeext |
2265 | break;; |
2266 | * ) break;; |
2267 | esac |
2268 | done |
2269 | else |
2270 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2271 | See \`config.log' for more details." >&5 |
2272 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2273 | See \`config.log' for more details." >&2;} |
2274 | { (exit 1); exit 1; }; } |
2275 | fi |
2276 | |
2277 | rm -f conftest$ac_cv_exeext |
2278 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2279 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2280 | |
2281 | rm -f conftest.$ac_ext |
2282 | EXEEXT=$ac_cv_exeext |
2283 | ac_exeext=$EXEEXT |
2284 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2285 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2286 | if test "${ac_cv_objext+set}" = set; then |
2287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2288 | else |
2289 | cat >conftest.$ac_ext <<_ACEOF |
2290 | /* confdefs.h. */ |
2291 | _ACEOF |
2292 | cat confdefs.h >>conftest.$ac_ext |
2293 | cat >>conftest.$ac_ext <<_ACEOF |
2294 | /* end confdefs.h. */ |
2295 | |
2296 | int |
2297 | main () |
2298 | { |
2299 | |
2300 | ; |
2301 | return 0; |
2302 | } |
2303 | _ACEOF |
2304 | rm -f conftest.o conftest.obj |
2305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2306 | (eval $ac_compile) 2>&5 |
2307 | ac_status=$? |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2309 | (exit $ac_status); }; then |
2310 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2311 | case $ac_file in |
2312 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2313 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2314 | break;; |
2315 | esac |
2316 | done |
2317 | else |
2318 | echo "$as_me: failed program was:" >&5 |
2319 | sed 's/^/| /' conftest.$ac_ext >&5 |
2320 | |
2321 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2322 | See \`config.log' for more details." >&5 |
2323 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2324 | See \`config.log' for more details." >&2;} |
2325 | { (exit 1); exit 1; }; } |
2326 | fi |
2327 | |
2328 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2329 | fi |
2330 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2331 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2332 | OBJEXT=$ac_cv_objext |
2333 | ac_objext=$OBJEXT |
2334 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2335 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2336 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2338 | else |
2339 | cat >conftest.$ac_ext <<_ACEOF |
2340 | /* confdefs.h. */ |
2341 | _ACEOF |
2342 | cat confdefs.h >>conftest.$ac_ext |
2343 | cat >>conftest.$ac_ext <<_ACEOF |
2344 | /* end confdefs.h. */ |
2345 | |
2346 | int |
2347 | main () |
2348 | { |
2349 | #ifndef __GNUC__ |
2350 | choke me |
2351 | #endif |
2352 | |
2353 | ; |
2354 | return 0; |
2355 | } |
2356 | _ACEOF |
2357 | rm -f conftest.$ac_objext |
2358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2359 | (eval $ac_compile) 2>conftest.er1 |
2360 | ac_status=$? |
2361 | grep -v '^ *+' conftest.er1 >conftest.err |
2362 | rm -f conftest.er1 |
2363 | cat conftest.err >&5 |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2365 | (exit $ac_status); } && |
2366 | { ac_try='test -z "$ac_c_werror_flag" |
2367 | || test ! -s conftest.err' |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2369 | (eval $ac_try) 2>&5 |
2370 | ac_status=$? |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2372 | (exit $ac_status); }; } && |
2373 | { ac_try='test -s conftest.$ac_objext' |
2374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2375 | (eval $ac_try) 2>&5 |
2376 | ac_status=$? |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2378 | (exit $ac_status); }; }; then |
2379 | ac_compiler_gnu=yes |
2380 | else |
2381 | echo "$as_me: failed program was:" >&5 |
2382 | sed 's/^/| /' conftest.$ac_ext >&5 |
2383 | |
2384 | ac_compiler_gnu=no |
2385 | fi |
2386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2387 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2388 | |
2389 | fi |
2390 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2391 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2392 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2393 | ac_test_CFLAGS=${CFLAGS+set} |
2394 | ac_save_CFLAGS=$CFLAGS |
2395 | CFLAGS="-g" |
2396 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2397 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2398 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2400 | else |
2401 | cat >conftest.$ac_ext <<_ACEOF |
2402 | /* confdefs.h. */ |
2403 | _ACEOF |
2404 | cat confdefs.h >>conftest.$ac_ext |
2405 | cat >>conftest.$ac_ext <<_ACEOF |
2406 | /* end confdefs.h. */ |
2407 | |
2408 | int |
2409 | main () |
2410 | { |
2411 | |
2412 | ; |
2413 | return 0; |
2414 | } |
2415 | _ACEOF |
2416 | rm -f conftest.$ac_objext |
2417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2418 | (eval $ac_compile) 2>conftest.er1 |
2419 | ac_status=$? |
2420 | grep -v '^ *+' conftest.er1 >conftest.err |
2421 | rm -f conftest.er1 |
2422 | cat conftest.err >&5 |
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2424 | (exit $ac_status); } && |
2425 | { ac_try='test -z "$ac_c_werror_flag" |
2426 | || test ! -s conftest.err' |
2427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2428 | (eval $ac_try) 2>&5 |
2429 | ac_status=$? |
2430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2431 | (exit $ac_status); }; } && |
2432 | { ac_try='test -s conftest.$ac_objext' |
2433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2434 | (eval $ac_try) 2>&5 |
2435 | ac_status=$? |
2436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2437 | (exit $ac_status); }; }; then |
2438 | ac_cv_prog_cc_g=yes |
2439 | else |
2440 | echo "$as_me: failed program was:" >&5 |
2441 | sed 's/^/| /' conftest.$ac_ext >&5 |
2442 | |
2443 | ac_cv_prog_cc_g=no |
2444 | fi |
2445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2446 | fi |
2447 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2448 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2449 | if test "$ac_test_CFLAGS" = set; then |
2450 | CFLAGS=$ac_save_CFLAGS |
2451 | elif test $ac_cv_prog_cc_g = yes; then |
2452 | if test "$GCC" = yes; then |
2453 | CFLAGS="-g -O2" |
2454 | else |
2455 | CFLAGS="-g" |
2456 | fi |
2457 | else |
2458 | if test "$GCC" = yes; then |
2459 | CFLAGS="-O2" |
2460 | else |
2461 | CFLAGS= |
2462 | fi |
2463 | fi |
2464 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2465 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2466 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2468 | else |
2469 | ac_cv_prog_cc_stdc=no |
2470 | ac_save_CC=$CC |
2471 | cat >conftest.$ac_ext <<_ACEOF |
2472 | /* confdefs.h. */ |
2473 | _ACEOF |
2474 | cat confdefs.h >>conftest.$ac_ext |
2475 | cat >>conftest.$ac_ext <<_ACEOF |
2476 | /* end confdefs.h. */ |
2477 | #include <stdarg.h> |
2478 | #include <stdio.h> |
2479 | #include <sys/types.h> |
2480 | #include <sys/stat.h> |
2481 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2482 | struct buf { int x; }; |
2483 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2484 | static char *e (p, i) |
2485 | char **p; |
2486 | int i; |
2487 | { |
2488 | return p[i]; |
2489 | } |
2490 | static char *f (char * (*g) (char **, int), char **p, ...) |
2491 | { |
2492 | char *s; |
2493 | va_list v; |
2494 | va_start (v,p); |
2495 | s = g (p, va_arg (v,int)); |
2496 | va_end (v); |
2497 | return s; |
2498 | } |
2499 | |
2500 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2501 | function prototypes and stuff, but not '\xHH' hex character constants. |
2502 | These don't provoke an error unfortunately, instead are silently treated |
2503 | as 'x'. The following induces an error, until -std1 is added to get |
2504 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2505 | array size at least. It's necessary to write '\x00'==0 to get something |
2506 | that's true only with -std1. */ |
2507 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2508 | |
2509 | int test (int i, double x); |
2510 | struct s1 {int (*f) (int a);}; |
2511 | struct s2 {int (*f) (double a);}; |
2512 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2513 | int argc; |
2514 | char **argv; |
2515 | int |
2516 | main () |
2517 | { |
2518 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2519 | ; |
2520 | return 0; |
2521 | } |
2522 | _ACEOF |
2523 | # Don't try gcc -ansi; that turns off useful extensions and |
2524 | # breaks some systems' header files. |
2525 | # AIX -qlanglvl=ansi |
2526 | # Ultrix and OSF/1 -std1 |
2527 | # HP-UX 10.20 and later -Ae |
2528 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2529 | # SVR4 -Xc -D__EXTENSIONS__ |
2530 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2531 | do |
2532 | CC="$ac_save_CC $ac_arg" |
2533 | rm -f conftest.$ac_objext |
2534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2535 | (eval $ac_compile) 2>conftest.er1 |
2536 | ac_status=$? |
2537 | grep -v '^ *+' conftest.er1 >conftest.err |
2538 | rm -f conftest.er1 |
2539 | cat conftest.err >&5 |
2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2541 | (exit $ac_status); } && |
2542 | { ac_try='test -z "$ac_c_werror_flag" |
2543 | || test ! -s conftest.err' |
2544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2545 | (eval $ac_try) 2>&5 |
2546 | ac_status=$? |
2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2548 | (exit $ac_status); }; } && |
2549 | { ac_try='test -s conftest.$ac_objext' |
2550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2551 | (eval $ac_try) 2>&5 |
2552 | ac_status=$? |
2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2554 | (exit $ac_status); }; }; then |
2555 | ac_cv_prog_cc_stdc=$ac_arg |
2556 | break |
2557 | else |
2558 | echo "$as_me: failed program was:" >&5 |
2559 | sed 's/^/| /' conftest.$ac_ext >&5 |
2560 | |
2561 | fi |
2562 | rm -f conftest.err conftest.$ac_objext |
2563 | done |
2564 | rm -f conftest.$ac_ext conftest.$ac_objext |
2565 | CC=$ac_save_CC |
2566 | |
2567 | fi |
2568 | |
2569 | case "x$ac_cv_prog_cc_stdc" in |
2570 | x|xno) |
2571 | echo "$as_me:$LINENO: result: none needed" >&5 |
2572 | echo "${ECHO_T}none needed" >&6 ;; |
2573 | *) |
2574 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2575 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2576 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2577 | esac |
2578 | |
2579 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2580 | # in C++ we need to declare it. In case someone uses the same compiler |
2581 | # for both compiling C and C++ we need to have the C++ compiler decide |
2582 | # the declaration of exit, since it's the most demanding environment. |
2583 | cat >conftest.$ac_ext <<_ACEOF |
2584 | #ifndef __cplusplus |
2585 | choke me |
2586 | #endif |
2587 | _ACEOF |
2588 | rm -f conftest.$ac_objext |
2589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2590 | (eval $ac_compile) 2>conftest.er1 |
2591 | ac_status=$? |
2592 | grep -v '^ *+' conftest.er1 >conftest.err |
2593 | rm -f conftest.er1 |
2594 | cat conftest.err >&5 |
2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2596 | (exit $ac_status); } && |
2597 | { ac_try='test -z "$ac_c_werror_flag" |
2598 | || test ! -s conftest.err' |
2599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2600 | (eval $ac_try) 2>&5 |
2601 | ac_status=$? |
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2603 | (exit $ac_status); }; } && |
2604 | { ac_try='test -s conftest.$ac_objext' |
2605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2606 | (eval $ac_try) 2>&5 |
2607 | ac_status=$? |
2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2609 | (exit $ac_status); }; }; then |
2610 | for ac_declaration in \ |
2611 | '' \ |
2612 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2613 | 'extern "C" void std::exit (int); using std::exit;' \ |
2614 | 'extern "C" void exit (int) throw ();' \ |
2615 | 'extern "C" void exit (int);' \ |
2616 | 'void exit (int);' |
2617 | do |
2618 | cat >conftest.$ac_ext <<_ACEOF |
2619 | /* confdefs.h. */ |
2620 | _ACEOF |
2621 | cat confdefs.h >>conftest.$ac_ext |
2622 | cat >>conftest.$ac_ext <<_ACEOF |
2623 | /* end confdefs.h. */ |
2624 | $ac_declaration |
2625 | #include <stdlib.h> |
2626 | int |
2627 | main () |
2628 | { |
2629 | exit (42); |
2630 | ; |
2631 | return 0; |
2632 | } |
2633 | _ACEOF |
2634 | rm -f conftest.$ac_objext |
2635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2636 | (eval $ac_compile) 2>conftest.er1 |
2637 | ac_status=$? |
2638 | grep -v '^ *+' conftest.er1 >conftest.err |
2639 | rm -f conftest.er1 |
2640 | cat conftest.err >&5 |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2642 | (exit $ac_status); } && |
2643 | { ac_try='test -z "$ac_c_werror_flag" |
2644 | || test ! -s conftest.err' |
2645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2646 | (eval $ac_try) 2>&5 |
2647 | ac_status=$? |
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2649 | (exit $ac_status); }; } && |
2650 | { ac_try='test -s conftest.$ac_objext' |
2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2652 | (eval $ac_try) 2>&5 |
2653 | ac_status=$? |
2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2655 | (exit $ac_status); }; }; then |
2656 | : |
2657 | else |
2658 | echo "$as_me: failed program was:" >&5 |
2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
2660 | |
2661 | continue |
2662 | fi |
2663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2664 | cat >conftest.$ac_ext <<_ACEOF |
2665 | /* confdefs.h. */ |
2666 | _ACEOF |
2667 | cat confdefs.h >>conftest.$ac_ext |
2668 | cat >>conftest.$ac_ext <<_ACEOF |
2669 | /* end confdefs.h. */ |
2670 | $ac_declaration |
2671 | int |
2672 | main () |
2673 | { |
2674 | exit (42); |
2675 | ; |
2676 | return 0; |
2677 | } |
2678 | _ACEOF |
2679 | rm -f conftest.$ac_objext |
2680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2681 | (eval $ac_compile) 2>conftest.er1 |
2682 | ac_status=$? |
2683 | grep -v '^ *+' conftest.er1 >conftest.err |
2684 | rm -f conftest.er1 |
2685 | cat conftest.err >&5 |
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2687 | (exit $ac_status); } && |
2688 | { ac_try='test -z "$ac_c_werror_flag" |
2689 | || test ! -s conftest.err' |
2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2691 | (eval $ac_try) 2>&5 |
2692 | ac_status=$? |
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2694 | (exit $ac_status); }; } && |
2695 | { ac_try='test -s conftest.$ac_objext' |
2696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2697 | (eval $ac_try) 2>&5 |
2698 | ac_status=$? |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2700 | (exit $ac_status); }; }; then |
2701 | break |
2702 | else |
2703 | echo "$as_me: failed program was:" >&5 |
2704 | sed 's/^/| /' conftest.$ac_ext >&5 |
2705 | |
2706 | fi |
2707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2708 | done |
2709 | rm -f conftest* |
2710 | if test -n "$ac_declaration"; then |
2711 | echo '#ifdef __cplusplus' >>confdefs.h |
2712 | echo $ac_declaration >>confdefs.h |
2713 | echo '#endif' >>confdefs.h |
2714 | fi |
2715 | |
2716 | else |
2717 | echo "$as_me: failed program was:" >&5 |
2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
2719 | |
2720 | fi |
2721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2722 | ac_ext=c |
2723 | ac_cpp='$CPP $CPPFLAGS' |
2724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2727 | DEPDIR="${am__leading_dot}deps" |
2728 | |
2729 | ac_config_commands="$ac_config_commands depfiles" |
2730 | |
2731 | |
2732 | am_make=${MAKE-make} |
2733 | cat > confinc << 'END' |
2734 | am__doit: |
2735 | @echo done |
2736 | .PHONY: am__doit |
2737 | END |
2738 | # If we don't find an include directive, just comment out the code. |
2739 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2740 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2741 | am__include="#" |
2742 | am__quote= |
2743 | _am_result=none |
2744 | # First try GNU make style include. |
2745 | echo "include confinc" > confmf |
2746 | # We grep out `Entering directory' and `Leaving directory' |
2747 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2748 | # In particular we don't look at `^make:' because GNU make might |
2749 | # be invoked under some other name (usually "gmake"), in which |
2750 | # case it prints its new name instead of `make'. |
2751 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2752 | am__include=include |
2753 | am__quote= |
2754 | _am_result=GNU |
2755 | fi |
2756 | # Now try BSD make style include. |
2757 | if test "$am__include" = "#"; then |
2758 | echo '.include "confinc"' > confmf |
2759 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2760 | am__include=.include |
2761 | am__quote="\"" |
2762 | _am_result=BSD |
2763 | fi |
2764 | fi |
2765 | |
2766 | |
2767 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2768 | echo "${ECHO_T}$_am_result" >&6 |
2769 | rm -f confinc confmf |
2770 | |
2771 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2772 | if test "${enable_dependency_tracking+set}" = set; then |
2773 | enableval="$enable_dependency_tracking" |
2774 | |
2775 | fi; |
2776 | if test "x$enable_dependency_tracking" != xno; then |
2777 | am_depcomp="$ac_aux_dir/depcomp" |
2778 | AMDEPBACKSLASH='\' |
2779 | fi |
2780 | |
2781 | |
2782 | if test "x$enable_dependency_tracking" != xno; then |
2783 | AMDEP_TRUE= |
2784 | AMDEP_FALSE='#' |
2785 | else |
2786 | AMDEP_TRUE='#' |
2787 | AMDEP_FALSE= |
2788 | fi |
2789 | |
2790 | |
2791 | |
2792 | |
2793 | depcc="$CC" am_compiler_list= |
2794 | |
2795 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2796 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2797 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2799 | else |
2800 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2801 | # We make a subdir and do the tests there. Otherwise we can end up |
2802 | # making bogus files that we don't know about and never remove. For |
2803 | # instance it was reported that on HP-UX the gcc test will end up |
2804 | # making a dummy file named `D' -- because `-MD' means `put the output |
2805 | # in D'. |
2806 | mkdir conftest.dir |
2807 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2808 | # using a relative directory. |
2809 | cp "$am_depcomp" conftest.dir |
2810 | cd conftest.dir |
2811 | # We will build objects and dependencies in a subdirectory because |
2812 | # it helps to detect inapplicable dependency modes. For instance |
2813 | # both Tru64's cc and ICC support -MD to output dependencies as a |
2814 | # side effect of compilation, but ICC will put the dependencies in |
2815 | # the current directory while Tru64 will put them in the object |
2816 | # directory. |
2817 | mkdir sub |
2818 | |
2819 | am_cv_CC_dependencies_compiler_type=none |
2820 | if test "$am_compiler_list" = ""; then |
2821 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2822 | fi |
2823 | for depmode in $am_compiler_list; do |
2824 | # Setup a source with many dependencies, because some compilers |
2825 | # like to wrap large dependency lists on column 80 (with \), and |
2826 | # we should not choose a depcomp mode which is confused by this. |
2827 | # |
2828 | # We need to recreate these files for each test, as the compiler may |
2829 | # overwrite some of them when testing with obscure command lines. |
2830 | # This happens at least with the AIX C compiler. |
2831 | : > sub/conftest.c |
2832 | for i in 1 2 3 4 5 6; do |
2833 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
2834 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2835 | # Solaris 8's {/usr,}/bin/sh. |
2836 | touch sub/conftst$i.h |
2837 | done |
2838 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
2839 | |
2840 | case $depmode in |
2841 | nosideeffect) |
2842 | # after this tag, mechanisms are not by side-effect, so they'll |
2843 | # only be used when explicitly requested |
2844 | if test "x$enable_dependency_tracking" = xyes; then |
2845 | continue |
2846 | else |
2847 | break |
2848 | fi |
2849 | ;; |
2850 | none) break ;; |
2851 | esac |
2852 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
2853 | # mode. It turns out that the SunPro C++ compiler does not properly |
2854 | # handle `-M -o', and we need to detect this. |
2855 | if depmode=$depmode \ |
2856 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
2857 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
2858 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
2859 | >/dev/null 2>conftest.err && |
2860 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
2861 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
2862 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
2863 | # icc doesn't choke on unknown options, it will just issue warnings |
2864 | # or remarks (even with -Werror). So we grep stderr for any message |
2865 | # that says an option was ignored or not supported. |
2866 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
2867 | # icc: Command line warning: ignoring option '-M'; no argument required |
2868 | # The diagnosis changed in icc 8.0: |
2869 | # icc: Command line remark: option '-MP' not supported |
2870 | if (grep 'ignoring option' conftest.err || |
2871 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
2872 | am_cv_CC_dependencies_compiler_type=$depmode |
2873 | break |
2874 | fi |
2875 | fi |
2876 | done |
2877 | |
2878 | cd .. |
2879 | rm -rf conftest.dir |
2880 | else |
2881 | am_cv_CC_dependencies_compiler_type=none |
2882 | fi |
2883 | |
2884 | fi |
2885 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
2886 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
2887 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
2888 | |
2889 | |
2890 | |
2891 | if |
2892 | test "x$enable_dependency_tracking" != xno \ |
2893 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
2894 | am__fastdepCC_TRUE= |
2895 | am__fastdepCC_FALSE='#' |
2896 | else |
2897 | am__fastdepCC_TRUE='#' |
2898 | am__fastdepCC_FALSE= |
2899 | fi |
2900 | |
2901 | |
2902 | ac_ext=cc |
2903 | ac_cpp='$CXXCPP $CPPFLAGS' |
2904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2907 | if test -n "$ac_tool_prefix"; then |
2908 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2909 | do |
2910 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2911 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2914 | if test "${ac_cv_prog_CXX+set}" = set; then |
2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2916 | else |
2917 | if test -n "$CXX"; then |
2918 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2919 | else |
2920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2921 | for as_dir in $PATH |
2922 | do |
2923 | IFS=$as_save_IFS |
2924 | test -z "$as_dir" && as_dir=. |
2925 | for ac_exec_ext in '' $ac_executable_extensions; do |
2926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2927 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2929 | break 2 |
2930 | fi |
2931 | done |
2932 | done |
2933 | |
2934 | fi |
2935 | fi |
2936 | CXX=$ac_cv_prog_CXX |
2937 | if test -n "$CXX"; then |
2938 | echo "$as_me:$LINENO: result: $CXX" >&5 |
2939 | echo "${ECHO_T}$CXX" >&6 |
2940 | else |
2941 | echo "$as_me:$LINENO: result: no" >&5 |
2942 | echo "${ECHO_T}no" >&6 |
2943 | fi |
2944 | |
2945 | test -n "$CXX" && break |
2946 | done |
2947 | fi |
2948 | if test -z "$CXX"; then |
2949 | ac_ct_CXX=$CXX |
2950 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2951 | do |
2952 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2953 | set dummy $ac_prog; ac_word=$2 |
2954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2956 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2958 | else |
2959 | if test -n "$ac_ct_CXX"; then |
2960 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2961 | else |
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2963 | for as_dir in $PATH |
2964 | do |
2965 | IFS=$as_save_IFS |
2966 | test -z "$as_dir" && as_dir=. |
2967 | for ac_exec_ext in '' $ac_executable_extensions; do |
2968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2969 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2971 | break 2 |
2972 | fi |
2973 | done |
2974 | done |
2975 | |
2976 | fi |
2977 | fi |
2978 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2979 | if test -n "$ac_ct_CXX"; then |
2980 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2981 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
2982 | else |
2983 | echo "$as_me:$LINENO: result: no" >&5 |
2984 | echo "${ECHO_T}no" >&6 |
2985 | fi |
2986 | |
2987 | test -n "$ac_ct_CXX" && break |
2988 | done |
2989 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2990 | |
2991 | CXX=$ac_ct_CXX |
2992 | fi |
2993 | |
2994 | |
2995 | # Provide some information about the compiler. |
2996 | echo "$as_me:$LINENO:" \ |
2997 | "checking for C++ compiler version" >&5 |
2998 | ac_compiler=`set X $ac_compile; echo $2` |
2999 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3000 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3001 | ac_status=$? |
3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3003 | (exit $ac_status); } |
3004 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3005 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3006 | ac_status=$? |
3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3008 | (exit $ac_status); } |
3009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3010 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3011 | ac_status=$? |
3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3013 | (exit $ac_status); } |
3014 | |
3015 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3016 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
3017 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3019 | else |
3020 | cat >conftest.$ac_ext <<_ACEOF |
3021 | /* confdefs.h. */ |
3022 | _ACEOF |
3023 | cat confdefs.h >>conftest.$ac_ext |
3024 | cat >>conftest.$ac_ext <<_ACEOF |
3025 | /* end confdefs.h. */ |
3026 | |
3027 | int |
3028 | main () |
3029 | { |
3030 | #ifndef __GNUC__ |
3031 | choke me |
3032 | #endif |
3033 | |
3034 | ; |
3035 | return 0; |
3036 | } |
3037 | _ACEOF |
3038 | rm -f conftest.$ac_objext |
3039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3040 | (eval $ac_compile) 2>conftest.er1 |
3041 | ac_status=$? |
3042 | grep -v '^ *+' conftest.er1 >conftest.err |
3043 | rm -f conftest.er1 |
3044 | cat conftest.err >&5 |
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3046 | (exit $ac_status); } && |
3047 | { ac_try='test -z "$ac_cxx_werror_flag" |
3048 | || test ! -s conftest.err' |
3049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3050 | (eval $ac_try) 2>&5 |
3051 | ac_status=$? |
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3053 | (exit $ac_status); }; } && |
3054 | { ac_try='test -s conftest.$ac_objext' |
3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3056 | (eval $ac_try) 2>&5 |
3057 | ac_status=$? |
3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3059 | (exit $ac_status); }; }; then |
3060 | ac_compiler_gnu=yes |
3061 | else |
3062 | echo "$as_me: failed program was:" >&5 |
3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
3064 | |
3065 | ac_compiler_gnu=no |
3066 | fi |
3067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3068 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3069 | |
3070 | fi |
3071 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3072 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
3073 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
3074 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3075 | ac_save_CXXFLAGS=$CXXFLAGS |
3076 | CXXFLAGS="-g" |
3077 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3078 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
3079 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
3080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3081 | else |
3082 | cat >conftest.$ac_ext <<_ACEOF |
3083 | /* confdefs.h. */ |
3084 | _ACEOF |
3085 | cat confdefs.h >>conftest.$ac_ext |
3086 | cat >>conftest.$ac_ext <<_ACEOF |
3087 | /* end confdefs.h. */ |
3088 | |
3089 | int |
3090 | main () |
3091 | { |
3092 | |
3093 | ; |
3094 | return 0; |
3095 | } |
3096 | _ACEOF |
3097 | rm -f conftest.$ac_objext |
3098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3099 | (eval $ac_compile) 2>conftest.er1 |
3100 | ac_status=$? |
3101 | grep -v '^ *+' conftest.er1 >conftest.err |
3102 | rm -f conftest.er1 |
3103 | cat conftest.err >&5 |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3105 | (exit $ac_status); } && |
3106 | { ac_try='test -z "$ac_cxx_werror_flag" |
3107 | || test ! -s conftest.err' |
3108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3109 | (eval $ac_try) 2>&5 |
3110 | ac_status=$? |
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3112 | (exit $ac_status); }; } && |
3113 | { ac_try='test -s conftest.$ac_objext' |
3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3115 | (eval $ac_try) 2>&5 |
3116 | ac_status=$? |
3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3118 | (exit $ac_status); }; }; then |
3119 | ac_cv_prog_cxx_g=yes |
3120 | else |
3121 | echo "$as_me: failed program was:" >&5 |
3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
3123 | |
3124 | ac_cv_prog_cxx_g=no |
3125 | fi |
3126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3127 | fi |
3128 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3129 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
3130 | if test "$ac_test_CXXFLAGS" = set; then |
3131 | CXXFLAGS=$ac_save_CXXFLAGS |
3132 | elif test $ac_cv_prog_cxx_g = yes; then |
3133 | if test "$GXX" = yes; then |
3134 | CXXFLAGS="-g -O2" |
3135 | else |
3136 | CXXFLAGS="-g" |
3137 | fi |
3138 | else |
3139 | if test "$GXX" = yes; then |
3140 | CXXFLAGS="-O2" |
3141 | else |
3142 | CXXFLAGS= |
3143 | fi |
3144 | fi |
3145 | for ac_declaration in \ |
3146 | '' \ |
3147 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3148 | 'extern "C" void std::exit (int); using std::exit;' \ |
3149 | 'extern "C" void exit (int) throw ();' \ |
3150 | 'extern "C" void exit (int);' \ |
3151 | 'void exit (int);' |
3152 | do |
3153 | cat >conftest.$ac_ext <<_ACEOF |
3154 | /* confdefs.h. */ |
3155 | _ACEOF |
3156 | cat confdefs.h >>conftest.$ac_ext |
3157 | cat >>conftest.$ac_ext <<_ACEOF |
3158 | /* end confdefs.h. */ |
3159 | $ac_declaration |
3160 | #include <stdlib.h> |
3161 | int |
3162 | main () |
3163 | { |
3164 | exit (42); |
3165 | ; |
3166 | return 0; |
3167 | } |
3168 | _ACEOF |
3169 | rm -f conftest.$ac_objext |
3170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3171 | (eval $ac_compile) 2>conftest.er1 |
3172 | ac_status=$? |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 |
3175 | cat conftest.err >&5 |
3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3177 | (exit $ac_status); } && |
3178 | { ac_try='test -z "$ac_cxx_werror_flag" |
3179 | || test ! -s conftest.err' |
3180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3181 | (eval $ac_try) 2>&5 |
3182 | ac_status=$? |
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3184 | (exit $ac_status); }; } && |
3185 | { ac_try='test -s conftest.$ac_objext' |
3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3187 | (eval $ac_try) 2>&5 |
3188 | ac_status=$? |
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3190 | (exit $ac_status); }; }; then |
3191 | : |
3192 | else |
3193 | echo "$as_me: failed program was:" >&5 |
3194 | sed 's/^/| /' conftest.$ac_ext >&5 |
3195 | |
3196 | continue |
3197 | fi |
3198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3199 | cat >conftest.$ac_ext <<_ACEOF |
3200 | /* confdefs.h. */ |
3201 | _ACEOF |
3202 | cat confdefs.h >>conftest.$ac_ext |
3203 | cat >>conftest.$ac_ext <<_ACEOF |
3204 | /* end confdefs.h. */ |
3205 | $ac_declaration |
3206 | int |
3207 | main () |
3208 | { |
3209 | exit (42); |
3210 | ; |
3211 | return 0; |
3212 | } |
3213 | _ACEOF |
3214 | rm -f conftest.$ac_objext |
3215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3216 | (eval $ac_compile) 2>conftest.er1 |
3217 | ac_status=$? |
3218 | grep -v '^ *+' conftest.er1 >conftest.err |
3219 | rm -f conftest.er1 |
3220 | cat conftest.err >&5 |
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3222 | (exit $ac_status); } && |
3223 | { ac_try='test -z "$ac_cxx_werror_flag" |
3224 | || test ! -s conftest.err' |
3225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3226 | (eval $ac_try) 2>&5 |
3227 | ac_status=$? |
3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3229 | (exit $ac_status); }; } && |
3230 | { ac_try='test -s conftest.$ac_objext' |
3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3232 | (eval $ac_try) 2>&5 |
3233 | ac_status=$? |
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3235 | (exit $ac_status); }; }; then |
3236 | break |
3237 | else |
3238 | echo "$as_me: failed program was:" >&5 |
3239 | sed 's/^/| /' conftest.$ac_ext >&5 |
3240 | |
3241 | fi |
3242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3243 | done |
3244 | rm -f conftest* |
3245 | if test -n "$ac_declaration"; then |
3246 | echo '#ifdef __cplusplus' >>confdefs.h |
3247 | echo $ac_declaration >>confdefs.h |
3248 | echo '#endif' >>confdefs.h |
3249 | fi |
3250 | |
3251 | ac_ext=c |
3252 | ac_cpp='$CPP $CPPFLAGS' |
3253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3256 | |
3257 | depcc="$CXX" am_compiler_list= |
3258 | |
3259 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3260 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
3261 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3263 | else |
3264 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3265 | # We make a subdir and do the tests there. Otherwise we can end up |
3266 | # making bogus files that we don't know about and never remove. For |
3267 | # instance it was reported that on HP-UX the gcc test will end up |
3268 | # making a dummy file named `D' -- because `-MD' means `put the output |
3269 | # in D'. |
3270 | mkdir conftest.dir |
3271 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3272 | # using a relative directory. |
3273 | cp "$am_depcomp" conftest.dir |
3274 | cd conftest.dir |
3275 | # We will build objects and dependencies in a subdirectory because |
3276 | # it helps to detect inapplicable dependency modes. For instance |
3277 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3278 | # side effect of compilation, but ICC will put the dependencies in |
3279 | # the current directory while Tru64 will put them in the object |
3280 | # directory. |
3281 | mkdir sub |
3282 | |
3283 | am_cv_CXX_dependencies_compiler_type=none |
3284 | if test "$am_compiler_list" = ""; then |
3285 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3286 | fi |
3287 | for depmode in $am_compiler_list; do |
3288 | # Setup a source with many dependencies, because some compilers |
3289 | # like to wrap large dependency lists on column 80 (with \), and |
3290 | # we should not choose a depcomp mode which is confused by this. |
3291 | # |
3292 | # We need to recreate these files for each test, as the compiler may |
3293 | # overwrite some of them when testing with obscure command lines. |
3294 | # This happens at least with the AIX C compiler. |
3295 | : > sub/conftest.c |
3296 | for i in 1 2 3 4 5 6; do |
3297 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3298 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3299 | # Solaris 8's {/usr,}/bin/sh. |
3300 | touch sub/conftst$i.h |
3301 | done |
3302 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3303 | |
3304 | case $depmode in |
3305 | nosideeffect) |
3306 | # after this tag, mechanisms are not by side-effect, so they'll |
3307 | # only be used when explicitly requested |
3308 | if test "x$enable_dependency_tracking" = xyes; then |
3309 | continue |
3310 | else |
3311 | break |
3312 | fi |
3313 | ;; |
3314 | none) break ;; |
3315 | esac |
3316 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3317 | # mode. It turns out that the SunPro C++ compiler does not properly |
3318 | # handle `-M -o', and we need to detect this. |
3319 | if depmode=$depmode \ |
3320 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3321 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3322 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3323 | >/dev/null 2>conftest.err && |
3324 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3325 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3326 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3327 | # icc doesn't choke on unknown options, it will just issue warnings |
3328 | # or remarks (even with -Werror). So we grep stderr for any message |
3329 | # that says an option was ignored or not supported. |
3330 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3331 | # icc: Command line warning: ignoring option '-M'; no argument required |
3332 | # The diagnosis changed in icc 8.0: |
3333 | # icc: Command line remark: option '-MP' not supported |
3334 | if (grep 'ignoring option' conftest.err || |
3335 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3336 | am_cv_CXX_dependencies_compiler_type=$depmode |
3337 | break |
3338 | fi |
3339 | fi |
3340 | done |
3341 | |
3342 | cd .. |
3343 | rm -rf conftest.dir |
3344 | else |
3345 | am_cv_CXX_dependencies_compiler_type=none |
3346 | fi |
3347 | |
3348 | fi |
3349 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3350 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
3351 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
3352 | |
3353 | |
3354 | |
3355 | if |
3356 | test "x$enable_dependency_tracking" != xno \ |
3357 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
3358 | am__fastdepCXX_TRUE= |
3359 | am__fastdepCXX_FALSE='#' |
3360 | else |
3361 | am__fastdepCXX_TRUE='#' |
3362 | am__fastdepCXX_FALSE= |
3363 | fi |
3364 | |
3365 | |
3366 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3367 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
3368 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
3369 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3371 | else |
3372 | cat >conftest.make <<\_ACEOF |
3373 | all: |
3374 | @echo 'ac_maketemp="$(MAKE)"' |
3375 | _ACEOF |
3376 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3377 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3378 | if test -n "$ac_maketemp"; then |
3379 | eval ac_cv_prog_make_${ac_make}_set=yes |
3380 | else |
3381 | eval ac_cv_prog_make_${ac_make}_set=no |
3382 | fi |
3383 | rm -f conftest.make |
3384 | fi |
3385 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3386 | echo "$as_me:$LINENO: result: yes" >&5 |
3387 | echo "${ECHO_T}yes" >&6 |
3388 | SET_MAKE= |
3389 | else |
3390 | echo "$as_me:$LINENO: result: no" >&5 |
3391 | echo "${ECHO_T}no" >&6 |
3392 | SET_MAKE="MAKE=${MAKE-make}" |
3393 | fi |
3394 | |
3395 | |
3396 | cat >>confdefs.h <<_ACEOF |
3397 | #define DEBUG 1 |
3398 | _ACEOF |
3399 | |
3400 | |
3401 | |
3402 | |
3403 | # Check whether --with-peak-prefix or --without-peak-prefix was given. |
3404 | if test "${with_peak_prefix+set}" = set; then |
3405 | withval="$with_peak_prefix" |
3406 | peak_config_prefix="$withval" |
3407 | else |
3408 | peak_config_prefix="" |
3409 | fi; |
3410 | |
3411 | # Check whether --with-peak-exec-prefix or --without-peak-exec-prefix was given. |
3412 | if test "${with_peak_exec_prefix+set}" = set; then |
3413 | withval="$with_peak_exec_prefix" |
3414 | peak_config_exec_prefix="$withval" |
3415 | else |
3416 | peak_config_exec_prefix="" |
3417 | fi; |
3418 | |
3419 | if test x$peak_config_exec_prefix != x ; then |
3420 | peak_config_args="$peak_config_args --exec-prefix=$peak_config_exec_prefix" |
3421 | if test x${PEAK_CONFIG+set} != xset ; then |
3422 | PEAK_CONFIG=$peak_config_exec_prefix/bin/peak-config |
3423 | fi |
3424 | fi |
3425 | if test x$peak_config_prefix != x ; then |
3426 | peak_config_args="$peak_config_args --prefix=$peak_config_prefix" |
3427 | if test x${PEAK_CONFIG+set} != xset ; then |
3428 | PEAK_CONFIG=$peak_config_prefix/bin/peak-config |
3429 | fi |
3430 | fi |
3431 | |
3432 | # Extract the first word of "peak-config", so it can be a program name with args. |
3433 | set dummy peak-config; ac_word=$2 |
3434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3436 | if test "${ac_cv_path_PEAK_CONFIG+set}" = set; then |
3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3438 | else |
3439 | case $PEAK_CONFIG in |
3440 | [\\/]* | ?:[\\/]*) |
3441 | ac_cv_path_PEAK_CONFIG="$PEAK_CONFIG" # Let the user override the test with a path. |
3442 | ;; |
3443 | *) |
3444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3445 | for as_dir in $PATH |
3446 | do |
3447 | IFS=$as_save_IFS |
3448 | test -z "$as_dir" && as_dir=. |
3449 | for ac_exec_ext in '' $ac_executable_extensions; do |
3450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3451 | ac_cv_path_PEAK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3453 | break 2 |
3454 | fi |
3455 | done |
3456 | done |
3457 | |
3458 | test -z "$ac_cv_path_PEAK_CONFIG" && ac_cv_path_PEAK_CONFIG="no" |
3459 | ;; |
3460 | esac |
3461 | fi |
3462 | PEAK_CONFIG=$ac_cv_path_PEAK_CONFIG |
3463 | |
3464 | if test -n "$PEAK_CONFIG"; then |
3465 | echo "$as_me:$LINENO: result: $PEAK_CONFIG" >&5 |
3466 | echo "${ECHO_T}$PEAK_CONFIG" >&6 |
3467 | else |
3468 | echo "$as_me:$LINENO: result: no" >&5 |
3469 | echo "${ECHO_T}no" >&6 |
3470 | fi |
3471 | |
3472 | echo "$as_me:$LINENO: checking for peak - version >= 0.1.0" >&5 |
3473 | echo $ECHO_N "checking for peak - version >= 0.1.0... $ECHO_C" >&6 |
3474 | |
3475 | no_peak="" |
3476 | if test "$PEAK_CONFIG" = "no" ; then |
3477 | no_peak=yes |
3478 | else |
3479 | PEAK_CFLAGS="`$PEAK_CONFIG $peak_config_args --cflags`" |
3480 | PEAK_LIBS="`$PEAK_CONFIG $peak_config_args --libs`" |
3481 | |
3482 | peak_config_major_version=`$PEAK_CONFIG $peak_config_args \ |
3483 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
3484 | peak_config_minor_version=`$PEAK_CONFIG $peak_config_args \ |
3485 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
3486 | peak_config_micro_version=`$PEAK_CONFIG $peak_config_args \ |
3487 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
3488 | peak_wanted_major_version="0" |
3489 | peak_wanted_minor_version="1" |
3490 | peak_wanted_micro_version="0" |
3491 | |
3492 | # Compare wanted version to what config script returned. |
3493 | # If I knew what library was being run, i'd probably also compile |
3494 | # a test program at this point (which also extracted and tested |
3495 | # the version in some library-specific way) |
3496 | if test "$peak_config_major_version" -lt \ |
3497 | "$peak_wanted_major_version" \ |
3498 | -o \( "$peak_config_major_version" -eq \ |
3499 | "$peak_wanted_major_version" \ |
3500 | -a "$peak_config_minor_version" -lt \ |
3501 | "$peak_wanted_minor_version" \) \ |
3502 | -o \( "$peak_config_major_version" -eq \ |
3503 | "$peak_wanted_major_version" \ |
3504 | -a "$peak_config_minor_version" -eq \ |
3505 | "$peak_wanted_minor_version" \ |
3506 | -a "$peak_config_micro_version" -lt \ |
3507 | "$peak_wanted_micro_version" \) ; then |
3508 | # older version found |
3509 | no_peak=yes |
3510 | echo -n "*** An old version of peak " |
3511 | echo -n "($peak_config_major_version" |
3512 | echo -n ".$peak_config_minor_version" |
3513 | echo ".$peak_config_micro_version) was found." |
3514 | echo -n "*** You need a version of peak newer than " |
3515 | echo -n "$peak_wanted_major_version" |
3516 | echo -n ".$peak_wanted_minor_version" |
3517 | echo ".$peak_wanted_micro_version." |
3518 | echo "***" |
3519 | echo "*** If you have already installed a sufficiently new version, this error" |
3520 | echo "*** probably means that the wrong copy of the peak-config shell script is" |
3521 | echo "*** being found. The easiest way to fix this is to remove the old version" |
3522 | echo "*** of peak, but you can also set the PEAK_CONFIG environment to point to the" |
3523 | echo "*** correct copy of peak-config. (In this case, you will have to" |
3524 | echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf" |
3525 | echo "*** so that the correct libraries are found at run-time)" |
3526 | fi |
3527 | |
3528 | fi |
3529 | if test "x$no_peak" = x ; then |
3530 | echo "$as_me:$LINENO: result: yes" >&5 |
3531 | echo "${ECHO_T}yes" >&6 |
3532 | : |
3533 | else |
3534 | echo "$as_me:$LINENO: result: no" >&5 |
3535 | echo "${ECHO_T}no" >&6 |
3536 | if test "$PEAK_CONFIG" = "no" ; then |
3537 | echo "*** The peak-config script installed by peak could not be found" |
3538 | echo "*** If peak was installed in PREFIX, make sure PREFIX/bin is in" |
3539 | echo "*** your path, or set the PEAK_CONFIG environment variable to the" |
3540 | echo "*** full path to peak-config." |
3541 | fi |
3542 | PEAK_CFLAGS="" |
3543 | PEAK_LIBS="" |
3544 | { { echo "$as_me:$LINENO: error: required PEAK Library (libpeak) not found" >&5 |
3545 | echo "$as_me: error: required PEAK Library (libpeak) not found" >&2;} |
3546 | { (exit 1); exit 1; }; } |
3547 | fi |
3548 | |
3549 | |
3550 | |
3551 | |
3552 | |
3553 | |
3554 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
3555 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 |
3556 | if test "${ac_cv_prog_fgrep+set}" = set; then |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3558 | else |
3559 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 |
3560 | then ac_cv_prog_fgrep='grep -F' |
3561 | else ac_cv_prog_fgrep='fgrep' |
3562 | fi |
3563 | fi |
3564 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
3565 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 |
3566 | FGREP=$ac_cv_prog_fgrep |
3567 | |
3568 | |
3569 | |
3570 | for arg in $PEAK_CFLAGS |
3571 | do |
3572 | if { cat <<EOF |
3573 | $CXXFLAGS x |
3574 | EOF |
3575 | } | $FGREP -v -e " $arg " > /dev/null |
3576 | then |
3577 | CXXFLAGS="$CXXFLAGS $arg" |
3578 | fi |
3579 | done |
3580 | |
3581 | |
3582 | for arg in $PEAK_CFLAGS |
3583 | do |
3584 | if { cat <<EOF |
3585 | $CFLAGS x |
3586 | EOF |
3587 | } | $FGREP -v -e " $arg " > /dev/null |
3588 | then |
3589 | CFLAGS="$CFLAGS $arg" |
3590 | fi |
3591 | done |
3592 | |
3593 | |
3594 | xt_compare="$LIBS" |
3595 | xt_filtered="" |
3596 | for arg in $PEAK_LIBS |
3597 | do |
3598 | if { cat <<EOF |
3599 | $xt_compare x |
3600 | EOF |
3601 | } | $FGREP -v -e " $arg " > /dev/null |
3602 | then |
3603 | xt_compare="$arg $xt_compare" |
3604 | xt_filtered="$xt_filtered $arg" |
3605 | fi |
3606 | done |
3607 | LIBS="$xt_filtered $LIBS" |
3608 | |
3609 | |
3610 | |
3611 | |
3612 | # Check whether --with-xml2-prefix or --without-xml2-prefix was given. |
3613 | if test "${with_xml2_prefix+set}" = set; then |
3614 | withval="$with_xml2_prefix" |
3615 | xml2_config_prefix="$withval" |
3616 | else |
3617 | xml2_config_prefix="" |
3618 | fi; |
3619 | |
3620 | # Check whether --with-xml2-exec-prefix or --without-xml2-exec-prefix was given. |
3621 | if test "${with_xml2_exec_prefix+set}" = set; then |
3622 | withval="$with_xml2_exec_prefix" |
3623 | xml2_config_exec_prefix="$withval" |
3624 | else |
3625 | xml2_config_exec_prefix="" |
3626 | fi; |
3627 | |
3628 | if test x$xml2_config_exec_prefix != x ; then |
3629 | xml2_config_args="$xml2_config_args --exec-prefix=$xml2_config_exec_prefix" |
3630 | if test x${XML2_CONFIG+set} != xset ; then |
3631 | XML2_CONFIG=$xml2_config_exec_prefix/bin/xml2-config |
3632 | fi |
3633 | fi |
3634 | if test x$xml2_config_prefix != x ; then |
3635 | xml2_config_args="$xml2_config_args --prefix=$xml2_config_prefix" |
3636 | if test x${XML2_CONFIG+set} != xset ; then |
3637 | XML2_CONFIG=$xml2_config_prefix/bin/xml2-config |
3638 | fi |
3639 | fi |
3640 | |
3641 | # Extract the first word of "xml2-config", so it can be a program name with args. |
3642 | set dummy xml2-config; ac_word=$2 |
3643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3645 | if test "${ac_cv_path_XML2_CONFIG+set}" = set; then |
3646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3647 | else |
3648 | case $XML2_CONFIG in |
3649 | [\\/]* | ?:[\\/]*) |
3650 | ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. |
3651 | ;; |
3652 | *) |
3653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3654 | for as_dir in $PATH |
3655 | do |
3656 | IFS=$as_save_IFS |
3657 | test -z "$as_dir" && as_dir=. |
3658 | for ac_exec_ext in '' $ac_executable_extensions; do |
3659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3660 | ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3662 | break 2 |
3663 | fi |
3664 | done |
3665 | done |
3666 | |
3667 | test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" |
3668 | ;; |
3669 | esac |
3670 | fi |
3671 | XML2_CONFIG=$ac_cv_path_XML2_CONFIG |
3672 | |
3673 | if test -n "$XML2_CONFIG"; then |
3674 | echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 |
3675 | echo "${ECHO_T}$XML2_CONFIG" >&6 |
3676 | else |
3677 | echo "$as_me:$LINENO: result: no" >&5 |
3678 | echo "${ECHO_T}no" >&6 |
3679 | fi |
3680 | |
3681 | echo "$as_me:$LINENO: checking for xml2 - version >= 2.0.0" >&5 |
3682 | echo $ECHO_N "checking for xml2 - version >= 2.0.0... $ECHO_C" >&6 |
3683 | |
3684 | no_xml2="" |
3685 | if test "$XML2_CONFIG" = "no" ; then |
3686 | no_xml2=yes |
3687 | else |
3688 | XML2_CFLAGS="`$XML2_CONFIG $xml2_config_args --cflags`" |
3689 | XML2_LIBS="`$XML2_CONFIG $xml2_config_args --libs`" |
3690 | |
3691 | xml2_config_major_version=`$XML2_CONFIG $xml2_config_args \ |
3692 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
3693 | xml2_config_minor_version=`$XML2_CONFIG $xml2_config_args \ |
3694 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
3695 | xml2_config_micro_version=`$XML2_CONFIG $xml2_config_args \ |
3696 | --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
3697 | xml2_wanted_major_version="2" |
3698 | xml2_wanted_minor_version="0" |
3699 | xml2_wanted_micro_version="0" |
3700 | |
3701 | # Compare wanted version to what config script returned. |
3702 | # If I knew what library was being run, i'd probably also compile |
3703 | # a test program at this point (which also extracted and tested |
3704 | # the version in some library-specific way) |
3705 | if test "$xml2_config_major_version" -lt \ |
3706 | "$xml2_wanted_major_version" \ |
3707 | -o \( "$xml2_config_major_version" -eq \ |
3708 | "$xml2_wanted_major_version" \ |
3709 | -a "$xml2_config_minor_version" -lt \ |
3710 | "$xml2_wanted_minor_version" \) \ |
3711 | -o \( "$xml2_config_major_version" -eq \ |
3712 | "$xml2_wanted_major_version" \ |
3713 | -a "$xml2_config_minor_version" -eq \ |
3714 | "$xml2_wanted_minor_version" \ |
3715 | -a "$xml2_config_micro_version" -lt \ |
3716 | "$xml2_wanted_micro_version" \) ; then |
3717 | # older version found |
3718 | no_xml2=yes |
3719 | echo -n "*** An old version of xml2 " |
3720 | echo -n "($xml2_config_major_version" |
3721 | echo -n ".$xml2_config_minor_version" |
3722 | echo ".$xml2_config_micro_version) was found." |
3723 | echo -n "*** You need a version of xml2 newer than " |
3724 | echo -n "$xml2_wanted_major_version" |
3725 | echo -n ".$xml2_wanted_minor_version" |
3726 | echo ".$xml2_wanted_micro_version." |
3727 | echo "***" |
3728 | echo "*** If you have already installed a sufficiently new version, this error" |
3729 | echo "*** probably means that the wrong copy of the xml2-config shell script is" |
3730 | echo "*** being found. The easiest way to fix this is to remove the old version" |
3731 | echo "*** of xml2, but you can also set the XML2_CONFIG environment to point to the" |
3732 | echo "*** correct copy of xml2-config. (In this case, you will have to" |
3733 | echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf" |
3734 | echo "*** so that the correct libraries are found at run-time)" |
3735 | fi |
3736 | |
3737 | fi |
3738 | if test "x$no_xml2" = x ; then |
3739 | echo "$as_me:$LINENO: result: yes" >&5 |
3740 | echo "${ECHO_T}yes" >&6 |
3741 | : |
3742 | else |
3743 | echo "$as_me:$LINENO: result: no" >&5 |
3744 | echo "${ECHO_T}no" >&6 |
3745 | if test "$XML2_CONFIG" = "no" ; then |
3746 | echo "*** The xml2-config script installed by xml2 could not be found" |
3747 | echo "*** If xml2 was installed in PREFIX, make sure PREFIX/bin is in" |
3748 | echo "*** your path, or set the XML2_CONFIG environment variable to the" |
3749 | echo "*** full path to xml2-config." |
3750 | fi |
3751 | XML2_CFLAGS="" |
3752 | XML2_LIBS="" |
3753 | { { echo "$as_me:$LINENO: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&5 |
3754 | echo "$as_me: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&2;} |
3755 | { (exit 1); exit 1; }; } |
3756 | fi |
3757 | |
3758 | |
3759 | |
3760 | |
3761 | |
3762 | |
3763 | |
3764 | for arg in $XML2_CFLAGS |
3765 | do |