1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for vizservers 0.1. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.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='vizservers' |
---|
271 | PACKAGE_TARNAME='vizservers' |
---|
272 | PACKAGE_VERSION='0.1' |
---|
273 | PACKAGE_STRING='vizservers 0.1' |
---|
274 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
275 | |
---|
276 | # Factoring default headers for most tests. |
---|
277 | ac_includes_default="\ |
---|
278 | #include <stdio.h> |
---|
279 | #if HAVE_SYS_TYPES_H |
---|
280 | # include <sys/types.h> |
---|
281 | #endif |
---|
282 | #if HAVE_SYS_STAT_H |
---|
283 | # include <sys/stat.h> |
---|
284 | #endif |
---|
285 | #if STDC_HEADERS |
---|
286 | # include <stdlib.h> |
---|
287 | # include <stddef.h> |
---|
288 | #else |
---|
289 | # if HAVE_STDLIB_H |
---|
290 | # include <stdlib.h> |
---|
291 | # endif |
---|
292 | #endif |
---|
293 | #if HAVE_STRING_H |
---|
294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
295 | # include <memory.h> |
---|
296 | # endif |
---|
297 | # include <string.h> |
---|
298 | #endif |
---|
299 | #if HAVE_STRINGS_H |
---|
300 | # include <strings.h> |
---|
301 | #endif |
---|
302 | #if HAVE_INTTYPES_H |
---|
303 | # include <inttypes.h> |
---|
304 | #else |
---|
305 | # if HAVE_STDINT_H |
---|
306 | # include <stdint.h> |
---|
307 | # endif |
---|
308 | #endif |
---|
309 | #if HAVE_UNISTD_H |
---|
310 | # include <unistd.h> |
---|
311 | #endif" |
---|
312 | |
---|
313 | 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 VERSION LIB_SEARCH_DIRS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX SUBDIRS CXXCPP EGREP TCL_LIB_DIR TCL_LIB TCL_LIB_VERSION TCL_INCL_DIR RP2_INCL_DIR RP_DIR LIBOBJS LTLIBOBJS' |
---|
314 | ac_subst_files='' |
---|
315 | |
---|
316 | # Initialize some variables set by options. |
---|
317 | ac_init_help= |
---|
318 | ac_init_version=false |
---|
319 | # The variables have the same names as the options, with |
---|
320 | # dashes changed to underlines. |
---|
321 | cache_file=/dev/null |
---|
322 | exec_prefix=NONE |
---|
323 | no_create= |
---|
324 | no_recursion= |
---|
325 | prefix=NONE |
---|
326 | program_prefix=NONE |
---|
327 | program_suffix=NONE |
---|
328 | program_transform_name=s,x,x, |
---|
329 | silent= |
---|
330 | site= |
---|
331 | srcdir= |
---|
332 | verbose= |
---|
333 | x_includes=NONE |
---|
334 | x_libraries=NONE |
---|
335 | |
---|
336 | # Installation directory options. |
---|
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
338 | # and all the variables that are supposed to be based on exec_prefix |
---|
339 | # by default will actually change. |
---|
340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
341 | bindir='${exec_prefix}/bin' |
---|
342 | sbindir='${exec_prefix}/sbin' |
---|
343 | libexecdir='${exec_prefix}/libexec' |
---|
344 | datadir='${prefix}/share' |
---|
345 | sysconfdir='${prefix}/etc' |
---|
346 | sharedstatedir='${prefix}/com' |
---|
347 | localstatedir='${prefix}/var' |
---|
348 | libdir='${exec_prefix}/lib' |
---|
349 | includedir='${prefix}/include' |
---|
350 | oldincludedir='/usr/include' |
---|
351 | infodir='${prefix}/info' |
---|
352 | mandir='${prefix}/man' |
---|
353 | |
---|
354 | ac_prev= |
---|
355 | for ac_option |
---|
356 | do |
---|
357 | # If the previous option needs an argument, assign it. |
---|
358 | if test -n "$ac_prev"; then |
---|
359 | eval "$ac_prev=\$ac_option" |
---|
360 | ac_prev= |
---|
361 | continue |
---|
362 | fi |
---|
363 | |
---|
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
365 | |
---|
366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
367 | |
---|
368 | case $ac_option in |
---|
369 | |
---|
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
371 | ac_prev=bindir ;; |
---|
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
373 | bindir=$ac_optarg ;; |
---|
374 | |
---|
375 | -build | --build | --buil | --bui | --bu) |
---|
376 | ac_prev=build_alias ;; |
---|
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
378 | build_alias=$ac_optarg ;; |
---|
379 | |
---|
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
382 | ac_prev=cache_file ;; |
---|
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
385 | cache_file=$ac_optarg ;; |
---|
386 | |
---|
387 | --config-cache | -C) |
---|
388 | cache_file=config.cache ;; |
---|
389 | |
---|
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
391 | ac_prev=datadir ;; |
---|
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
393 | | --da=*) |
---|
394 | datadir=$ac_optarg ;; |
---|
395 | |
---|
396 | -disable-* | --disable-*) |
---|
397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
398 | # Reject names that are not valid shell variable names. |
---|
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
401 | { (exit 1); exit 1; }; } |
---|
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
403 | eval "enable_$ac_feature=no" ;; |
---|
404 | |
---|
405 | -enable-* | --enable-*) |
---|
406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
407 | # Reject names that are not valid shell variable names. |
---|
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
410 | { (exit 1); exit 1; }; } |
---|
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
412 | case $ac_option in |
---|
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
414 | *) ac_optarg=yes ;; |
---|
415 | esac |
---|
416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
417 | |
---|
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
420 | | --exec | --exe | --ex) |
---|
421 | ac_prev=exec_prefix ;; |
---|
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
424 | | --exec=* | --exe=* | --ex=*) |
---|
425 | exec_prefix=$ac_optarg ;; |
---|
426 | |
---|
427 | -gas | --gas | --ga | --g) |
---|
428 | # Obsolete; use --with-gas. |
---|
429 | with_gas=yes ;; |
---|
430 | |
---|
431 | -help | --help | --hel | --he | -h) |
---|
432 | ac_init_help=long ;; |
---|
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
434 | ac_init_help=recursive ;; |
---|
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
436 | ac_init_help=short ;; |
---|
437 | |
---|
438 | -host | --host | --hos | --ho) |
---|
439 | ac_prev=host_alias ;; |
---|
440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
441 | host_alias=$ac_optarg ;; |
---|
442 | |
---|
443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
444 | | --includ | --inclu | --incl | --inc) |
---|
445 | ac_prev=includedir ;; |
---|
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
448 | includedir=$ac_optarg ;; |
---|
449 | |
---|
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
451 | ac_prev=infodir ;; |
---|
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
453 | infodir=$ac_optarg ;; |
---|
454 | |
---|
455 | -libdir | --libdir | --libdi | --libd) |
---|
456 | ac_prev=libdir ;; |
---|
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
458 | libdir=$ac_optarg ;; |
---|
459 | |
---|
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
461 | | --libexe | --libex | --libe) |
---|
462 | ac_prev=libexecdir ;; |
---|
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
464 | | --libexe=* | --libex=* | --libe=*) |
---|
465 | libexecdir=$ac_optarg ;; |
---|
466 | |
---|
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
468 | | --localstate | --localstat | --localsta | --localst \ |
---|
469 | | --locals | --local | --loca | --loc | --lo) |
---|
470 | ac_prev=localstatedir ;; |
---|
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
474 | localstatedir=$ac_optarg ;; |
---|
475 | |
---|
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
477 | ac_prev=mandir ;; |
---|
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
479 | mandir=$ac_optarg ;; |
---|
480 | |
---|
481 | -nfp | --nfp | --nf) |
---|
482 | # Obsolete; use --without-fp. |
---|
483 | with_fp=no ;; |
---|
484 | |
---|
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
486 | | --no-cr | --no-c | -n) |
---|
487 | no_create=yes ;; |
---|
488 | |
---|
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
491 | no_recursion=yes ;; |
---|
492 | |
---|
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
495 | | --oldin | --oldi | --old | --ol | --o) |
---|
496 | ac_prev=oldincludedir ;; |
---|
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
500 | oldincludedir=$ac_optarg ;; |
---|
501 | |
---|
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
503 | ac_prev=prefix ;; |
---|
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
505 | prefix=$ac_optarg ;; |
---|
506 | |
---|
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
508 | | --program-pre | --program-pr | --program-p) |
---|
509 | ac_prev=program_prefix ;; |
---|
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
512 | program_prefix=$ac_optarg ;; |
---|
513 | |
---|
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
515 | | --program-suf | --program-su | --program-s) |
---|
516 | ac_prev=program_suffix ;; |
---|
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
519 | program_suffix=$ac_optarg ;; |
---|
520 | |
---|
521 | -program-transform-name | --program-transform-name \ |
---|
522 | | --program-transform-nam | --program-transform-na \ |
---|
523 | | --program-transform-n | --program-transform- \ |
---|
524 | | --program-transform | --program-transfor \ |
---|
525 | | --program-transfo | --program-transf \ |
---|
526 | | --program-trans | --program-tran \ |
---|
527 | | --progr-tra | --program-tr | --program-t) |
---|
528 | ac_prev=program_transform_name ;; |
---|
529 | -program-transform-name=* | --program-transform-name=* \ |
---|
530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
531 | | --program-transform-n=* | --program-transform-=* \ |
---|
532 | | --program-transform=* | --program-transfor=* \ |
---|
533 | | --program-transfo=* | --program-transf=* \ |
---|
534 | | --program-trans=* | --program-tran=* \ |
---|
535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
536 | program_transform_name=$ac_optarg ;; |
---|
537 | |
---|
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
539 | | -silent | --silent | --silen | --sile | --sil) |
---|
540 | silent=yes ;; |
---|
541 | |
---|
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
543 | ac_prev=sbindir ;; |
---|
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
545 | | --sbi=* | --sb=*) |
---|
546 | sbindir=$ac_optarg ;; |
---|
547 | |
---|
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
551 | | --sha | --sh) |
---|
552 | ac_prev=sharedstatedir ;; |
---|
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
556 | | --sha=* | --sh=*) |
---|
557 | sharedstatedir=$ac_optarg ;; |
---|
558 | |
---|
559 | -site | --site | --sit) |
---|
560 | ac_prev=site ;; |
---|
561 | -site=* | --site=* | --sit=*) |
---|
562 | site=$ac_optarg ;; |
---|
563 | |
---|
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
565 | ac_prev=srcdir ;; |
---|
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
567 | srcdir=$ac_optarg ;; |
---|
568 | |
---|
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
571 | ac_prev=sysconfdir ;; |
---|
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
574 | sysconfdir=$ac_optarg ;; |
---|
575 | |
---|
576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
577 | ac_prev=target_alias ;; |
---|
578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
579 | target_alias=$ac_optarg ;; |
---|
580 | |
---|
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
582 | verbose=yes ;; |
---|
583 | |
---|
584 | -version | --version | --versio | --versi | --vers | -V) |
---|
585 | ac_init_version=: ;; |
---|
586 | |
---|
587 | -with-* | --with-*) |
---|
588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
589 | # Reject names that are not valid shell variable names. |
---|
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
592 | { (exit 1); exit 1; }; } |
---|
593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
594 | case $ac_option in |
---|
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
596 | *) ac_optarg=yes ;; |
---|
597 | esac |
---|
598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
599 | |
---|
600 | -without-* | --without-*) |
---|
601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
602 | # Reject names that are not valid shell variable names. |
---|
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
605 | { (exit 1); exit 1; }; } |
---|
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
607 | eval "with_$ac_package=no" ;; |
---|
608 | |
---|
609 | --x) |
---|
610 | # Obsolete; use --with-x. |
---|
611 | with_x=yes ;; |
---|
612 | |
---|
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
615 | ac_prev=x_includes ;; |
---|
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
618 | x_includes=$ac_optarg ;; |
---|
619 | |
---|
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
622 | ac_prev=x_libraries ;; |
---|
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
625 | x_libraries=$ac_optarg ;; |
---|
626 | |
---|
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
628 | Try \`$0 --help' for more information." >&2 |
---|
629 | { (exit 1); exit 1; }; } |
---|
630 | ;; |
---|
631 | |
---|
632 | *=*) |
---|
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
634 | # Reject names that are not valid shell variable names. |
---|
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
637 | { (exit 1); exit 1; }; } |
---|
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
639 | eval "$ac_envvar='$ac_optarg'" |
---|
640 | export $ac_envvar ;; |
---|
641 | |
---|
642 | *) |
---|
643 | # FIXME: should be removed in autoconf 3.0. |
---|
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
648 | ;; |
---|
649 | |
---|
650 | esac |
---|
651 | done |
---|
652 | |
---|
653 | if test -n "$ac_prev"; then |
---|
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
656 | { (exit 1); exit 1; }; } |
---|
657 | fi |
---|
658 | |
---|
659 | # Be sure to have absolute paths. |
---|
660 | for ac_var in exec_prefix prefix |
---|
661 | do |
---|
662 | eval ac_val=$`echo $ac_var` |
---|
663 | case $ac_val in |
---|
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
666 | { (exit 1); exit 1; }; };; |
---|
667 | esac |
---|
668 | done |
---|
669 | |
---|
670 | # Be sure to have absolute paths. |
---|
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
673 | do |
---|
674 | eval ac_val=$`echo $ac_var` |
---|
675 | case $ac_val in |
---|
676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
678 | { (exit 1); exit 1; }; };; |
---|
679 | esac |
---|
680 | done |
---|
681 | |
---|
682 | # There might be people who depend on the old broken behavior: `$host' |
---|
683 | # used to hold the argument of --host etc. |
---|
684 | # FIXME: To remove some day. |
---|
685 | build=$build_alias |
---|
686 | host=$host_alias |
---|
687 | target=$target_alias |
---|
688 | |
---|
689 | # FIXME: To remove some day. |
---|
690 | if test "x$host_alias" != x; then |
---|
691 | if test "x$build_alias" = x; then |
---|
692 | cross_compiling=maybe |
---|
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
696 | cross_compiling=yes |
---|
697 | fi |
---|
698 | fi |
---|
699 | |
---|
700 | ac_tool_prefix= |
---|
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
702 | |
---|
703 | test "$silent" = yes && exec 6>/dev/null |
---|
704 | |
---|
705 | |
---|
706 | # Find the source files, if location was not specified. |
---|
707 | if test -z "$srcdir"; then |
---|
708 | ac_srcdir_defaulted=yes |
---|
709 | # Try the directory containing this script, then its parent. |
---|
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
713 | X"$0" : 'X\(//\)$' \| \ |
---|
714 | X"$0" : 'X\(/\)' \| \ |
---|
715 | . : '\(.\)' 2>/dev/null || |
---|
716 | echo X"$0" | |
---|
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
721 | s/.*/./; q'` |
---|
722 | srcdir=$ac_confdir |
---|
723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
724 | srcdir=.. |
---|
725 | fi |
---|
726 | else |
---|
727 | ac_srcdir_defaulted=no |
---|
728 | fi |
---|
729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
732 | { (exit 1); exit 1; }; } |
---|
733 | else |
---|
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
735 | { (exit 1); exit 1; }; } |
---|
736 | fi |
---|
737 | fi |
---|
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
740 | { (exit 1); exit 1; }; } |
---|
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
742 | ac_env_build_alias_set=${build_alias+set} |
---|
743 | ac_env_build_alias_value=$build_alias |
---|
744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
745 | ac_cv_env_build_alias_value=$build_alias |
---|
746 | ac_env_host_alias_set=${host_alias+set} |
---|
747 | ac_env_host_alias_value=$host_alias |
---|
748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
749 | ac_cv_env_host_alias_value=$host_alias |
---|
750 | ac_env_target_alias_set=${target_alias+set} |
---|
751 | ac_env_target_alias_value=$target_alias |
---|
752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
753 | ac_cv_env_target_alias_value=$target_alias |
---|
754 | ac_env_CC_set=${CC+set} |
---|
755 | ac_env_CC_value=$CC |
---|
756 | ac_cv_env_CC_set=${CC+set} |
---|
757 | ac_cv_env_CC_value=$CC |
---|
758 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
759 | ac_env_CFLAGS_value=$CFLAGS |
---|
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
761 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
770 | ac_env_CXX_set=${CXX+set} |
---|
771 | ac_env_CXX_value=$CXX |
---|
772 | ac_cv_env_CXX_set=${CXX+set} |
---|
773 | ac_cv_env_CXX_value=$CXX |
---|
774 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
775 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
776 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
777 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
778 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
779 | ac_env_CXXCPP_value=$CXXCPP |
---|
780 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
781 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
782 | |
---|
783 | # |
---|
784 | # Report the --help message. |
---|
785 | # |
---|
786 | if test "$ac_init_help" = "long"; then |
---|
787 | # Omit some internal or obsolete options to make the list less imposing. |
---|
788 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
789 | cat <<_ACEOF |
---|
790 | \`configure' configures vizservers 0.1 to adapt to many kinds of systems. |
---|
791 | |
---|
792 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
793 | |
---|
794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
795 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
796 | |
---|
797 | Defaults for the options are specified in brackets. |
---|
798 | |
---|
799 | Configuration: |
---|
800 | -h, --help display this help and exit |
---|
801 | --help=short display options specific to this package |
---|
802 | --help=recursive display the short help of all the included packages |
---|
803 | -V, --version display version information and exit |
---|
804 | -q, --quiet, --silent do not print \`checking...' messages |
---|
805 | --cache-file=FILE cache test results in FILE [disabled] |
---|
806 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
807 | -n, --no-create do not create output files |
---|
808 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
809 | |
---|
810 | _ACEOF |
---|
811 | |
---|
812 | cat <<_ACEOF |
---|
813 | Installation directories: |
---|
814 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
815 | [$ac_default_prefix] |
---|
816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
817 | [PREFIX] |
---|
818 | |
---|
819 | By default, \`make install' will install all the files in |
---|
820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
822 | for instance \`--prefix=\$HOME'. |
---|
823 | |
---|
824 | For better control, use the options below. |
---|
825 | |
---|
826 | Fine tuning of the installation directories: |
---|
827 | --bindir=DIR user executables [EPREFIX/bin] |
---|
828 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
829 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
830 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
834 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
835 | --includedir=DIR C header files [PREFIX/include] |
---|
836 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
837 | --infodir=DIR info documentation [PREFIX/info] |
---|
838 | --mandir=DIR man documentation [PREFIX/man] |
---|
839 | _ACEOF |
---|
840 | |
---|
841 | cat <<\_ACEOF |
---|
842 | _ACEOF |
---|
843 | fi |
---|
844 | |
---|
845 | if test -n "$ac_init_help"; then |
---|
846 | case $ac_init_help in |
---|
847 | short | recursive ) echo "Configuration of vizservers 0.1:";; |
---|
848 | esac |
---|
849 | cat <<\_ACEOF |
---|
850 | |
---|
851 | Optional Packages: |
---|
852 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
853 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
854 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
855 | [default=/usr/lib] |
---|
856 | --with-tclinclude=DIR location of tcl.h header file |
---|
857 | [default=/usr/include] |
---|
858 | --with-rappture=DIR location of rappture files lib/librappture2.a and |
---|
859 | include/rappture2/rappture2.h [default=/usr] |
---|
860 | |
---|
861 | Some influential environment variables: |
---|
862 | CC C compiler command |
---|
863 | CFLAGS C compiler flags |
---|
864 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
865 | nonstandard directory <lib dir> |
---|
866 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
867 | headers in a nonstandard directory <include dir> |
---|
868 | CXX C++ compiler command |
---|
869 | CXXFLAGS C++ compiler flags |
---|
870 | CXXCPP C++ preprocessor |
---|
871 | |
---|
872 | Use these variables to override the choices made by `configure' or to help |
---|
873 | it to find libraries and programs with nonstandard names/locations. |
---|
874 | |
---|
875 | Report bugs to <rappture@nanohub.org>. |
---|
876 | _ACEOF |
---|
877 | fi |
---|
878 | |
---|
879 | if test "$ac_init_help" = "recursive"; then |
---|
880 | # If there are subdirs, report their specific --help. |
---|
881 | ac_popdir=`pwd` |
---|
882 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
883 | test -d $ac_dir || continue |
---|
884 | ac_builddir=. |
---|
885 | |
---|
886 | if test "$ac_dir" != .; then |
---|
887 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
888 | # A "../" for each directory in $ac_dir_suffix. |
---|
889 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
890 | else |
---|
891 | ac_dir_suffix= ac_top_builddir= |
---|
892 | fi |
---|
893 | |
---|
894 | case $srcdir in |
---|
895 | .) # No --srcdir option. We are building in place. |
---|
896 | ac_srcdir=. |
---|
897 | if test -z "$ac_top_builddir"; then |
---|
898 | ac_top_srcdir=. |
---|
899 | else |
---|
900 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
901 | fi ;; |
---|
902 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
903 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
904 | ac_top_srcdir=$srcdir ;; |
---|
905 | *) # Relative path. |
---|
906 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
907 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
908 | esac |
---|
909 | |
---|
910 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
911 | # the directories may not exist. |
---|
912 | case `pwd` in |
---|
913 | .) ac_abs_builddir="$ac_dir";; |
---|
914 | *) |
---|
915 | case "$ac_dir" in |
---|
916 | .) ac_abs_builddir=`pwd`;; |
---|
917 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
918 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
919 | esac;; |
---|
920 | esac |
---|
921 | case $ac_abs_builddir in |
---|
922 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
923 | *) |
---|
924 | case ${ac_top_builddir}. in |
---|
925 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
926 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
927 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
928 | esac;; |
---|
929 | esac |
---|
930 | case $ac_abs_builddir in |
---|
931 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
932 | *) |
---|
933 | case $ac_srcdir in |
---|
934 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
935 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
936 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
937 | esac;; |
---|
938 | esac |
---|
939 | case $ac_abs_builddir in |
---|
940 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
941 | *) |
---|
942 | case $ac_top_srcdir in |
---|
943 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
944 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
945 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
946 | esac;; |
---|
947 | esac |
---|
948 | |
---|
949 | cd $ac_dir |
---|
950 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
951 | if test -f $ac_srcdir/configure.gnu; then |
---|
952 | echo |
---|
953 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
954 | elif test -f $ac_srcdir/configure; then |
---|
955 | echo |
---|
956 | $SHELL $ac_srcdir/configure --help=recursive |
---|
957 | elif test -f $ac_srcdir/configure.ac || |
---|
958 | test -f $ac_srcdir/configure.in; then |
---|
959 | echo |
---|
960 | $ac_configure --help |
---|
961 | else |
---|
962 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
963 | fi |
---|
964 | cd "$ac_popdir" |
---|
965 | done |
---|
966 | fi |
---|
967 | |
---|
968 | test -n "$ac_init_help" && exit 0 |
---|
969 | if $ac_init_version; then |
---|
970 | cat <<\_ACEOF |
---|
971 | vizservers configure 0.1 |
---|
972 | generated by GNU Autoconf 2.59 |
---|
973 | |
---|
974 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
975 | This configure script is free software; the Free Software Foundation |
---|
976 | gives unlimited permission to copy, distribute and modify it. |
---|
977 | _ACEOF |
---|
978 | exit 0 |
---|
979 | fi |
---|
980 | exec 5>config.log |
---|
981 | cat >&5 <<_ACEOF |
---|
982 | This file contains any messages produced by compilers while |
---|
983 | running configure, to aid debugging if configure makes a mistake. |
---|
984 | |
---|
985 | It was created by vizservers $as_me 0.1, which was |
---|
986 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
987 | |
---|
988 | $ $0 $@ |
---|
989 | |
---|
990 | _ACEOF |
---|
991 | { |
---|
992 | cat <<_ASUNAME |
---|
993 | ## --------- ## |
---|
994 | ## Platform. ## |
---|
995 | ## --------- ## |
---|
996 | |
---|
997 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
998 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
999 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1000 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1001 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1002 | |
---|
1003 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1004 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1005 | |
---|
1006 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1007 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1008 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1009 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1010 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1011 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1012 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1013 | |
---|
1014 | _ASUNAME |
---|
1015 | |
---|
1016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1017 | for as_dir in $PATH |
---|
1018 | do |
---|
1019 | IFS=$as_save_IFS |
---|
1020 | test -z "$as_dir" && as_dir=. |
---|
1021 | echo "PATH: $as_dir" |
---|
1022 | done |
---|
1023 | |
---|
1024 | } >&5 |
---|
1025 | |
---|
1026 | cat >&5 <<_ACEOF |
---|
1027 | |
---|
1028 | |
---|
1029 | ## ----------- ## |
---|
1030 | ## Core tests. ## |
---|
1031 | ## ----------- ## |
---|
1032 | |
---|
1033 | _ACEOF |
---|
1034 | |
---|
1035 | |
---|
1036 | # Keep a trace of the command line. |
---|
1037 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1038 | # Strip out --silent because we don't want to record it for future runs. |
---|
1039 | # Also quote any args containing shell meta-characters. |
---|
1040 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1041 | ac_configure_args= |
---|
1042 | ac_configure_args0= |
---|
1043 | ac_configure_args1= |
---|
1044 | ac_sep= |
---|
1045 | ac_must_keep_next=false |
---|
1046 | for ac_pass in 1 2 |
---|
1047 | do |
---|
1048 | for ac_arg |
---|
1049 | do |
---|
1050 | case $ac_arg in |
---|
1051 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1053 | | -silent | --silent | --silen | --sile | --sil) |
---|
1054 | continue ;; |
---|
1055 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1056 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1057 | esac |
---|
1058 | case $ac_pass in |
---|
1059 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1060 | 2) |
---|
1061 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1062 | if test $ac_must_keep_next = true; then |
---|
1063 | ac_must_keep_next=false # Got value, back to normal. |
---|
1064 | else |
---|
1065 | case $ac_arg in |
---|
1066 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1067 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1068 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1069 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1070 | case "$ac_configure_args0 " in |
---|
1071 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1072 | esac |
---|
1073 | ;; |
---|
1074 | -* ) ac_must_keep_next=true ;; |
---|
1075 | esac |
---|
1076 | fi |
---|
1077 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1078 | # Get rid of the leading space. |
---|
1079 | ac_sep=" " |
---|
1080 | ;; |
---|
1081 | esac |
---|
1082 | done |
---|
1083 | done |
---|
1084 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1085 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1086 | |
---|
1087 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1088 | # config.log. We remove comments because anyway the quotes in there |
---|
1089 | # would cause problems or look ugly. |
---|
1090 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1091 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1092 | trap 'exit_status=$? |
---|
1093 | # Save into config.log some information that might help in debugging. |
---|
1094 | { |
---|
1095 | echo |
---|
1096 | |
---|
1097 | cat <<\_ASBOX |
---|
1098 | ## ---------------- ## |
---|
1099 | ## Cache variables. ## |
---|
1100 | ## ---------------- ## |
---|
1101 | _ASBOX |
---|
1102 | echo |
---|
1103 | # The following way of writing the cache mishandles newlines in values, |
---|
1104 | { |
---|
1105 | (set) 2>&1 | |
---|
1106 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1107 | *ac_space=\ *) |
---|
1108 | sed -n \ |
---|
1109 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1110 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1111 | ;; |
---|
1112 | *) |
---|
1113 | sed -n \ |
---|
1114 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1115 | ;; |
---|
1116 | esac; |
---|
1117 | } |
---|
1118 | echo |
---|
1119 | |
---|
1120 | cat <<\_ASBOX |
---|
1121 | ## ----------------- ## |
---|
1122 | ## Output variables. ## |
---|
1123 | ## ----------------- ## |
---|
1124 | _ASBOX |
---|
1125 | echo |
---|
1126 | for ac_var in $ac_subst_vars |
---|
1127 | do |
---|
1128 | eval ac_val=$`echo $ac_var` |
---|
1129 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1130 | done | sort |
---|
1131 | echo |
---|
1132 | |
---|
1133 | if test -n "$ac_subst_files"; then |
---|
1134 | cat <<\_ASBOX |
---|
1135 | ## ------------- ## |
---|
1136 | ## Output files. ## |
---|
1137 | ## ------------- ## |
---|
1138 | _ASBOX |
---|
1139 | echo |
---|
1140 | for ac_var in $ac_subst_files |
---|
1141 | do |
---|
1142 | eval ac_val=$`echo $ac_var` |
---|
1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1144 | done | sort |
---|
1145 | echo |
---|
1146 | fi |
---|
1147 | |
---|
1148 | if test -s confdefs.h; then |
---|
1149 | cat <<\_ASBOX |
---|
1150 | ## ----------- ## |
---|
1151 | ## confdefs.h. ## |
---|
1152 | ## ----------- ## |
---|
1153 | _ASBOX |
---|
1154 | echo |
---|
1155 | sed "/^$/d" confdefs.h | sort |
---|
1156 | echo |
---|
1157 | fi |
---|
1158 | test "$ac_signal" != 0 && |
---|
1159 | echo "$as_me: caught signal $ac_signal" |
---|
1160 | echo "$as_me: exit $exit_status" |
---|
1161 | } >&5 |
---|
1162 | rm -f core *.core && |
---|
1163 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1164 | exit $exit_status |
---|
1165 | ' 0 |
---|
1166 | for ac_signal in 1 2 13 15; do |
---|
1167 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1168 | done |
---|
1169 | ac_signal=0 |
---|
1170 | |
---|
1171 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1172 | rm -rf conftest* confdefs.h |
---|
1173 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1174 | echo >confdefs.h |
---|
1175 | |
---|
1176 | # Predefined preprocessor variables. |
---|
1177 | |
---|
1178 | cat >>confdefs.h <<_ACEOF |
---|
1179 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1180 | _ACEOF |
---|
1181 | |
---|
1182 | |
---|
1183 | cat >>confdefs.h <<_ACEOF |
---|
1184 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1185 | _ACEOF |
---|
1186 | |
---|
1187 | |
---|
1188 | cat >>confdefs.h <<_ACEOF |
---|
1189 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1190 | _ACEOF |
---|
1191 | |
---|
1192 | |
---|
1193 | cat >>confdefs.h <<_ACEOF |
---|
1194 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1195 | _ACEOF |
---|
1196 | |
---|
1197 | |
---|
1198 | cat >>confdefs.h <<_ACEOF |
---|
1199 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1200 | _ACEOF |
---|
1201 | |
---|
1202 | |
---|
1203 | # Let the site file select an alternate cache file if it wants to. |
---|
1204 | # Prefer explicitly selected file to automatically selected ones. |
---|
1205 | if test -z "$CONFIG_SITE"; then |
---|
1206 | if test "x$prefix" != xNONE; then |
---|
1207 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1208 | else |
---|
1209 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1210 | fi |
---|
1211 | fi |
---|
1212 | for ac_site_file in $CONFIG_SITE; do |
---|
1213 | if test -r "$ac_site_file"; then |
---|
1214 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1215 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1216 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1217 | . "$ac_site_file" |
---|
1218 | fi |
---|
1219 | done |
---|
1220 | |
---|
1221 | if test -r "$cache_file"; then |
---|
1222 | # Some versions of bash will fail to source /dev/null (special |
---|
1223 | # files actually), so we avoid doing that. |
---|
1224 | if test -f "$cache_file"; then |
---|
1225 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1226 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1227 | case $cache_file in |
---|
1228 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1229 | *) . ./$cache_file;; |
---|
1230 | esac |
---|
1231 | fi |
---|
1232 | else |
---|
1233 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1234 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1235 | >$cache_file |
---|
1236 | fi |
---|
1237 | |
---|
1238 | # Check that the precious variables saved in the cache have kept the same |
---|
1239 | # value. |
---|
1240 | ac_cache_corrupted=false |
---|
1241 | for ac_var in `(set) 2>&1 | |
---|
1242 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1243 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1244 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1245 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1246 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1247 | case $ac_old_set,$ac_new_set in |
---|
1248 | set,) |
---|
1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1250 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1251 | ac_cache_corrupted=: ;; |
---|
1252 | ,set) |
---|
1253 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1254 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1255 | ac_cache_corrupted=: ;; |
---|
1256 | ,);; |
---|
1257 | *) |
---|
1258 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1260 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1261 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1262 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1263 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1264 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1265 | ac_cache_corrupted=: |
---|
1266 | fi;; |
---|
1267 | esac |
---|
1268 | # Pass precious variables to config.status. |
---|
1269 | if test "$ac_new_set" = set; then |
---|
1270 | case $ac_new_val in |
---|
1271 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1272 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1273 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1274 | esac |
---|
1275 | case " $ac_configure_args " in |
---|
1276 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1277 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1278 | esac |
---|
1279 | fi |
---|
1280 | done |
---|
1281 | if $ac_cache_corrupted; then |
---|
1282 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1283 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1284 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1285 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1286 | { (exit 1); exit 1; }; } |
---|
1287 | fi |
---|
1288 | |
---|
1289 | ac_ext=c |
---|
1290 | ac_cpp='$CPP $CPPFLAGS' |
---|
1291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | VERSION=0.0.1 |
---|
1323 | |
---|
1324 | |
---|
1325 | #------------------------------------------------------------------------ |
---|
1326 | # Handle the --prefix=... option |
---|
1327 | #------------------------------------------------------------------------ |
---|
1328 | |
---|
1329 | if test "${prefix}" = "NONE"; then |
---|
1330 | prefix=/usr/local |
---|
1331 | fi |
---|
1332 | if test "${exec_prefix}" = "NONE"; then |
---|
1333 | exec_prefix=$prefix |
---|
1334 | fi |
---|
1335 | |
---|
1336 | if test "${libdir}" != "${prefix}/lib"; then |
---|
1337 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
1338 | else |
---|
1339 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
1340 | fi |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | ac_aux_dir= |
---|
1345 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1346 | if test -f $ac_dir/install-sh; then |
---|
1347 | ac_aux_dir=$ac_dir |
---|
1348 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1349 | break |
---|
1350 | elif test -f $ac_dir/install.sh; then |
---|
1351 | ac_aux_dir=$ac_dir |
---|
1352 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1353 | break |
---|
1354 | elif test -f $ac_dir/shtool; then |
---|
1355 | ac_aux_dir=$ac_dir |
---|
1356 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1357 | break |
---|
1358 | fi |
---|
1359 | done |
---|
1360 | if test -z "$ac_aux_dir"; then |
---|
1361 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1362 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1363 | { (exit 1); exit 1; }; } |
---|
1364 | fi |
---|
1365 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1366 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1367 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1368 | |
---|
1369 | # Find a good install program. We prefer a C program (faster), |
---|
1370 | # so one script is as good as another. But avoid the broken or |
---|
1371 | # incompatible versions: |
---|
1372 | # SysV /etc/install, /usr/sbin/install |
---|
1373 | # SunOS /usr/etc/install |
---|
1374 | # IRIX /sbin/install |
---|
1375 | # AIX /bin/install |
---|
1376 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1377 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1378 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1379 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1380 | # OS/2's system install, which has a completely different semantic |
---|
1381 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1382 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1383 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1384 | if test -z "$INSTALL"; then |
---|
1385 | if test "${ac_cv_path_install+set}" = set; then |
---|
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1387 | else |
---|
1388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1389 | for as_dir in $PATH |
---|
1390 | do |
---|
1391 | IFS=$as_save_IFS |
---|
1392 | test -z "$as_dir" && as_dir=. |
---|
1393 | # Account for people who put trailing slashes in PATH elements. |
---|
1394 | case $as_dir/ in |
---|
1395 | ./ | .// | /cC/* | \ |
---|
1396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1397 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1398 | /usr/ucb/* ) ;; |
---|
1399 | *) |
---|
1400 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1401 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1402 | # by default. |
---|
1403 | for ac_prog in ginstall scoinst install; do |
---|
1404 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1405 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1406 | if test $ac_prog = install && |
---|
1407 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1408 | # AIX install. It has an incompatible calling convention. |
---|
1409 | : |
---|
1410 | elif test $ac_prog = install && |
---|
1411 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1412 | # program-specific install script used by HP pwplus--don't use. |
---|
1413 | : |
---|
1414 | else |
---|
1415 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1416 | break 3 |
---|
1417 | fi |
---|
1418 | fi |
---|
1419 | done |
---|
1420 | done |
---|
1421 | ;; |
---|
1422 | esac |
---|
1423 | done |
---|
1424 | |
---|
1425 | |
---|
1426 | fi |
---|
1427 | if test "${ac_cv_path_install+set}" = set; then |
---|
1428 | INSTALL=$ac_cv_path_install |
---|
1429 | else |
---|
1430 | # As a last resort, use the slow shell script. We don't cache a |
---|
1431 | # path for INSTALL within a source directory, because that will |
---|
1432 | # break other packages using the cache if that directory is |
---|
1433 | # removed, or if the path is relative. |
---|
1434 | INSTALL=$ac_install_sh |
---|
1435 | fi |
---|
1436 | fi |
---|
1437 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1438 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1439 | |
---|
1440 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1441 | # It thinks the first close brace ends the variable substitution. |
---|
1442 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1443 | |
---|
1444 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1445 | |
---|
1446 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1447 | |
---|
1448 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1449 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1450 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1451 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1453 | else |
---|
1454 | cat >conftest.make <<\_ACEOF |
---|
1455 | all: |
---|
1456 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1457 | _ACEOF |
---|
1458 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1459 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1460 | if test -n "$ac_maketemp"; then |
---|
1461 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1462 | else |
---|
1463 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1464 | fi |
---|
1465 | rm -f conftest.make |
---|
1466 | fi |
---|
1467 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1468 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1469 | echo "${ECHO_T}yes" >&6 |
---|
1470 | SET_MAKE= |
---|
1471 | else |
---|
1472 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1473 | echo "${ECHO_T}no" >&6 |
---|
1474 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1475 | fi |
---|
1476 | |
---|
1477 | |
---|
1478 | ac_ext=c |
---|
1479 | ac_cpp='$CPP $CPPFLAGS' |
---|
1480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1483 | if test -n "$ac_tool_prefix"; then |
---|
1484 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1485 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1488 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1490 | else |
---|
1491 | if test -n "$CC"; then |
---|
1492 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1493 | else |
---|
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1495 | for as_dir in $PATH |
---|
1496 | do |
---|
1497 | IFS=$as_save_IFS |
---|
1498 | test -z "$as_dir" && as_dir=. |
---|
1499 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1501 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1503 | break 2 |
---|
1504 | fi |
---|
1505 | done |
---|
1506 | done |
---|
1507 | |
---|
1508 | fi |
---|
1509 | fi |
---|
1510 | CC=$ac_cv_prog_CC |
---|
1511 | if test -n "$CC"; then |
---|
1512 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1513 | echo "${ECHO_T}$CC" >&6 |
---|
1514 | else |
---|
1515 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1516 | echo "${ECHO_T}no" >&6 |
---|
1517 | fi |
---|
1518 | |
---|
1519 | fi |
---|
1520 | if test -z "$ac_cv_prog_CC"; then |
---|
1521 | ac_ct_CC=$CC |
---|
1522 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1523 | set dummy gcc; ac_word=$2 |
---|
1524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1526 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1528 | else |
---|
1529 | if test -n "$ac_ct_CC"; then |
---|
1530 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1531 | else |
---|
1532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1533 | for as_dir in $PATH |
---|
1534 | do |
---|
1535 | IFS=$as_save_IFS |
---|
1536 | test -z "$as_dir" && as_dir=. |
---|
1537 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1539 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1541 | break 2 |
---|
1542 | fi |
---|
1543 | done |
---|
1544 | done |
---|
1545 | |
---|
1546 | fi |
---|
1547 | fi |
---|
1548 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1549 | if test -n "$ac_ct_CC"; then |
---|
1550 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1551 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1552 | else |
---|
1553 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1554 | echo "${ECHO_T}no" >&6 |
---|
1555 | fi |
---|
1556 | |
---|
1557 | CC=$ac_ct_CC |
---|
1558 | else |
---|
1559 | CC="$ac_cv_prog_CC" |
---|
1560 | fi |
---|
1561 | |
---|
1562 | if test -z "$CC"; then |
---|
1563 | if test -n "$ac_tool_prefix"; then |
---|
1564 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1565 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1568 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1570 | else |
---|
1571 | if test -n "$CC"; then |
---|
1572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1573 | else |
---|
1574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1575 | for as_dir in $PATH |
---|
1576 | do |
---|
1577 | IFS=$as_save_IFS |
---|
1578 | test -z "$as_dir" && as_dir=. |
---|
1579 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1581 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1583 | break 2 |
---|
1584 | fi |
---|
1585 | done |
---|
1586 | done |
---|
1587 | |
---|
1588 | fi |
---|
1589 | fi |
---|
1590 | CC=$ac_cv_prog_CC |
---|
1591 | if test -n "$CC"; then |
---|
1592 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1593 | echo "${ECHO_T}$CC" >&6 |
---|
1594 | else |
---|
1595 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1596 | echo "${ECHO_T}no" >&6 |
---|
1597 | fi |
---|
1598 | |
---|
1599 | fi |
---|
1600 | if test -z "$ac_cv_prog_CC"; then |
---|
1601 | ac_ct_CC=$CC |
---|
1602 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1603 | set dummy cc; ac_word=$2 |
---|
1604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1606 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1608 | else |
---|
1609 | if test -n "$ac_ct_CC"; then |
---|
1610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1611 | else |
---|
1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1613 | for as_dir in $PATH |
---|
1614 | do |
---|
1615 | IFS=$as_save_IFS |
---|
1616 | test -z "$as_dir" && as_dir=. |
---|
1617 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1619 | ac_cv_prog_ac_ct_CC="cc" |
---|
1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1621 | break 2 |
---|
1622 | fi |
---|
1623 | done |
---|
1624 | done |
---|
1625 | |
---|
1626 | fi |
---|
1627 | fi |
---|
1628 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1629 | if test -n "$ac_ct_CC"; then |
---|
1630 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1631 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1632 | else |
---|
1633 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1634 | echo "${ECHO_T}no" >&6 |
---|
1635 | fi |
---|
1636 | |
---|
1637 | CC=$ac_ct_CC |
---|
1638 | else |
---|
1639 | CC="$ac_cv_prog_CC" |
---|
1640 | fi |
---|
1641 | |
---|
1642 | fi |
---|
1643 | if test -z "$CC"; then |
---|
1644 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1645 | set dummy cc; ac_word=$2 |
---|
1646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1648 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1650 | else |
---|
1651 | if test -n "$CC"; then |
---|
1652 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1653 | else |
---|
1654 | ac_prog_rejected=no |
---|
1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1656 | for as_dir in $PATH |
---|
1657 | do |
---|
1658 | IFS=$as_save_IFS |
---|
1659 | test -z "$as_dir" && as_dir=. |
---|
1660 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1662 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1663 | ac_prog_rejected=yes |
---|
1664 | continue |
---|
1665 | fi |
---|
1666 | ac_cv_prog_CC="cc" |
---|
1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1668 | break 2 |
---|
1669 | fi |
---|
1670 | done |
---|
1671 | done |
---|
1672 | |
---|
1673 | if test $ac_prog_rejected = yes; then |
---|
1674 | # We found a bogon in the path, so make sure we never use it. |
---|
1675 | set dummy $ac_cv_prog_CC |
---|
1676 | shift |
---|
1677 | if test $# != 0; then |
---|
1678 | # We chose a different compiler from the bogus one. |
---|
1679 | # However, it has the same basename, so the bogon will be chosen |
---|
1680 | # first if we set CC to just the basename; use the full file name. |
---|
1681 | shift |
---|
1682 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1683 | fi |
---|
1684 | fi |
---|
1685 | fi |
---|
1686 | fi |
---|
1687 | CC=$ac_cv_prog_CC |
---|
1688 | if test -n "$CC"; then |
---|
1689 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1690 | echo "${ECHO_T}$CC" >&6 |
---|
1691 | else |
---|
1692 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1693 | echo "${ECHO_T}no" >&6 |
---|
1694 | fi |
---|
1695 | |
---|
1696 | fi |
---|
1697 | if test -z "$CC"; then |
---|
1698 | if test -n "$ac_tool_prefix"; then |
---|
1699 | for ac_prog in cl |
---|
1700 | do |
---|
1701 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1702 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1705 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1707 | else |
---|
1708 | if test -n "$CC"; then |
---|
1709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1710 | else |
---|
1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1712 | for as_dir in $PATH |
---|
1713 | do |
---|
1714 | IFS=$as_save_IFS |
---|
1715 | test -z "$as_dir" && as_dir=. |
---|
1716 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1718 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1720 | break 2 |
---|
1721 | fi |
---|
1722 | done |
---|
1723 | done |
---|
1724 | |
---|
1725 | fi |
---|
1726 | fi |
---|
1727 | CC=$ac_cv_prog_CC |
---|
1728 | if test -n "$CC"; then |
---|
1729 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1730 | echo "${ECHO_T}$CC" >&6 |
---|
1731 | else |
---|
1732 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1733 | echo "${ECHO_T}no" >&6 |
---|
1734 | fi |
---|
1735 | |
---|
1736 | test -n "$CC" && break |
---|
1737 | done |
---|
1738 | fi |
---|
1739 | if test -z "$CC"; then |
---|
1740 | ac_ct_CC=$CC |
---|
1741 | for ac_prog in cl |
---|
1742 | do |
---|
1743 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1744 | set dummy $ac_prog; ac_word=$2 |
---|
1745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1747 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1749 | else |
---|
1750 | if test -n "$ac_ct_CC"; then |
---|
1751 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1752 | else |
---|
1753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1754 | for as_dir in $PATH |
---|
1755 | do |
---|
1756 | IFS=$as_save_IFS |
---|
1757 | test -z "$as_dir" && as_dir=. |
---|
1758 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1760 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1762 | break 2 |
---|
1763 | fi |
---|
1764 | done |
---|
1765 | done |
---|
1766 | |
---|
1767 | fi |
---|
1768 | fi |
---|
1769 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1770 | if test -n "$ac_ct_CC"; then |
---|
1771 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1772 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1773 | else |
---|
1774 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1775 | echo "${ECHO_T}no" >&6 |
---|
1776 | fi |
---|
1777 | |
---|
1778 | test -n "$ac_ct_CC" && break |
---|
1779 | done |
---|
1780 | |
---|
1781 | CC=$ac_ct_CC |
---|
1782 | fi |
---|
1783 | |
---|
1784 | fi |
---|
1785 | |
---|
1786 | |
---|
1787 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1788 | See \`config.log' for more details." >&5 |
---|
1789 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1790 | See \`config.log' for more details." >&2;} |
---|
1791 | { (exit 1); exit 1; }; } |
---|
1792 | |
---|
1793 | # Provide some information about the compiler. |
---|
1794 | echo "$as_me:$LINENO:" \ |
---|
1795 | "checking for C compiler version" >&5 |
---|
1796 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1797 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1798 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1799 | ac_status=$? |
---|
1800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1801 | (exit $ac_status); } |
---|
1802 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1803 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1804 | ac_status=$? |
---|
1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1806 | (exit $ac_status); } |
---|
1807 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1808 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1809 | ac_status=$? |
---|
1810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1811 | (exit $ac_status); } |
---|
1812 | |
---|
1813 | cat >conftest.$ac_ext <<_ACEOF |
---|
1814 | /* confdefs.h. */ |
---|
1815 | _ACEOF |
---|
1816 | cat confdefs.h >>conftest.$ac_ext |
---|
1817 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1818 | /* end confdefs.h. */ |
---|
1819 | |
---|
1820 | int |
---|
1821 | main () |
---|
1822 | { |
---|
1823 | |
---|
1824 | ; |
---|
1825 | return 0; |
---|
1826 | } |
---|
1827 | _ACEOF |
---|
1828 | ac_clean_files_save=$ac_clean_files |
---|
1829 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1830 | # Try to create an executable without -o first, disregard a.out. |
---|
1831 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1832 | # of exeext. |
---|
1833 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
1834 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
1835 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1836 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1837 | (eval $ac_link_default) 2>&5 |
---|
1838 | ac_status=$? |
---|
1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1840 | (exit $ac_status); }; then |
---|
1841 | # Find the output, starting from the most likely. This scheme is |
---|
1842 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1843 | # resort. |
---|
1844 | |
---|
1845 | # Be careful to initialize this variable, since it used to be cached. |
---|
1846 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1847 | ac_cv_exeext= |
---|
1848 | # b.out is created by i960 compilers. |
---|
1849 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1850 | do |
---|
1851 | test -f "$ac_file" || continue |
---|
1852 | case $ac_file in |
---|
1853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1854 | ;; |
---|
1855 | conftest.$ac_ext ) |
---|
1856 | # This is the source file. |
---|
1857 | ;; |
---|
1858 | [ab].out ) |
---|
1859 | # We found the default executable, but exeext='' is most |
---|
1860 | # certainly right. |
---|
1861 | break;; |
---|
1862 | *.* ) |
---|
1863 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1864 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1865 | # but it would be cool to find out if it's true. Does anybody |
---|
1866 | # maintain Libtool? --akim. |
---|
1867 | export ac_cv_exeext |
---|
1868 | break;; |
---|
1869 | * ) |
---|
1870 | break;; |
---|
1871 | esac |
---|
1872 | done |
---|
1873 | else |
---|
1874 | echo "$as_me: failed program was:" >&5 |
---|
1875 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1876 | |
---|
1877 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
1878 | See \`config.log' for more details." >&5 |
---|
1879 | echo "$as_me: error: C compiler cannot create executables |
---|
1880 | See \`config.log' for more details." >&2;} |
---|
1881 | { (exit 77); exit 77; }; } |
---|
1882 | fi |
---|
1883 | |
---|
1884 | ac_exeext=$ac_cv_exeext |
---|
1885 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1886 | echo "${ECHO_T}$ac_file" >&6 |
---|
1887 | |
---|
1888 | # Check the compiler produces executables we can run. If not, either |
---|
1889 | # the compiler is broken, or we cross compile. |
---|
1890 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
1891 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
1892 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1893 | # If not cross compiling, check that we can run a simple program. |
---|
1894 | if test "$cross_compiling" != yes; then |
---|
1895 | if { ac_try='./$ac_file' |
---|
1896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1897 | (eval $ac_try) 2>&5 |
---|
1898 | ac_status=$? |
---|
1899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1900 | (exit $ac_status); }; }; then |
---|
1901 | cross_compiling=no |
---|
1902 | else |
---|
1903 | if test "$cross_compiling" = maybe; then |
---|
1904 | cross_compiling=yes |
---|
1905 | else |
---|
1906 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
1907 | If you meant to cross compile, use \`--host'. |
---|
1908 | See \`config.log' for more details." >&5 |
---|
1909 | echo "$as_me: error: cannot run C compiled programs. |
---|
1910 | If you meant to cross compile, use \`--host'. |
---|
1911 | See \`config.log' for more details." >&2;} |
---|
1912 | { (exit 1); exit 1; }; } |
---|
1913 | fi |
---|
1914 | fi |
---|
1915 | fi |
---|
1916 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1917 | echo "${ECHO_T}yes" >&6 |
---|
1918 | |
---|
1919 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1920 | ac_clean_files=$ac_clean_files_save |
---|
1921 | # Check the compiler produces executables we can run. If not, either |
---|
1922 | # the compiler is broken, or we cross compile. |
---|
1923 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1924 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1925 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1926 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1927 | |
---|
1928 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1929 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1931 | (eval $ac_link) 2>&5 |
---|
1932 | ac_status=$? |
---|
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1934 | (exit $ac_status); }; then |
---|
1935 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1936 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1937 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1938 | # `rm'. |
---|
1939 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1940 | test -f "$ac_file" || continue |
---|
1941 | case $ac_file in |
---|
1942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1943 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1944 | export ac_cv_exeext |
---|
1945 | break;; |
---|
1946 | * ) break;; |
---|
1947 | esac |
---|
1948 | done |
---|
1949 | else |
---|
1950 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1951 | See \`config.log' for more details." >&5 |
---|
1952 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1953 | See \`config.log' for more details." >&2;} |
---|
1954 | { (exit 1); exit 1; }; } |
---|
1955 | fi |
---|
1956 | |
---|
1957 | rm -f conftest$ac_cv_exeext |
---|
1958 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
1959 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
1960 | |
---|
1961 | rm -f conftest.$ac_ext |
---|
1962 | EXEEXT=$ac_cv_exeext |
---|
1963 | ac_exeext=$EXEEXT |
---|
1964 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
1965 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
1966 | if test "${ac_cv_objext+set}" = set; then |
---|
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1968 | else |
---|
1969 | cat >conftest.$ac_ext <<_ACEOF |
---|
1970 | /* confdefs.h. */ |
---|
1971 | _ACEOF |
---|
1972 | cat confdefs.h >>conftest.$ac_ext |
---|
1973 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1974 | /* end confdefs.h. */ |
---|
1975 | |
---|
1976 | int |
---|
1977 | main () |
---|
1978 | { |
---|
1979 | |
---|
1980 | ; |
---|
1981 | return 0; |
---|
1982 | } |
---|
1983 | _ACEOF |
---|
1984 | rm -f conftest.o conftest.obj |
---|
1985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1986 | (eval $ac_compile) 2>&5 |
---|
1987 | ac_status=$? |
---|
1988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1989 | (exit $ac_status); }; then |
---|
1990 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
1991 | case $ac_file in |
---|
1992 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
1993 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
1994 | break;; |
---|
1995 | esac |
---|
1996 | done |
---|
1997 | else |
---|
1998 | echo "$as_me: failed program was:" >&5 |
---|
1999 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2000 | |
---|
2001 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2002 | See \`config.log' for more details." >&5 |
---|
2003 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2004 | See \`config.log' for more details." >&2;} |
---|
2005 | { (exit 1); exit 1; }; } |
---|
2006 | fi |
---|
2007 | |
---|
2008 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2009 | fi |
---|
2010 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2011 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2012 | OBJEXT=$ac_cv_objext |
---|
2013 | ac_objext=$OBJEXT |
---|
2014 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2015 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2016 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2018 | else |
---|
2019 | cat >conftest.$ac_ext <<_ACEOF |
---|
2020 | /* confdefs.h. */ |
---|
2021 | _ACEOF |
---|
2022 | cat confdefs.h >>conftest.$ac_ext |
---|
2023 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2024 | /* end confdefs.h. */ |
---|
2025 | |
---|
2026 | int |
---|
2027 | main () |
---|
2028 | { |
---|
2029 | #ifndef __GNUC__ |
---|
2030 | choke me |
---|
2031 | #endif |
---|
2032 | |
---|
2033 | ; |
---|
2034 | return 0; |
---|
2035 | } |
---|
2036 | _ACEOF |
---|
2037 | rm -f conftest.$ac_objext |
---|
2038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2039 | (eval $ac_compile) 2>conftest.er1 |
---|
2040 | ac_status=$? |
---|
2041 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2042 | rm -f conftest.er1 |
---|
2043 | cat conftest.err >&5 |
---|
2044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2045 | (exit $ac_status); } && |
---|
2046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2048 | (eval $ac_try) 2>&5 |
---|
2049 | ac_status=$? |
---|
2050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2051 | (exit $ac_status); }; } && |
---|
2052 | { ac_try='test -s conftest.$ac_objext' |
---|
2053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2054 | (eval $ac_try) 2>&5 |
---|
2055 | ac_status=$? |
---|
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2057 | (exit $ac_status); }; }; then |
---|
2058 | ac_compiler_gnu=yes |
---|
2059 | else |
---|
2060 | echo "$as_me: failed program was:" >&5 |
---|
2061 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2062 | |
---|
2063 | ac_compiler_gnu=no |
---|
2064 | fi |
---|
2065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2066 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2067 | |
---|
2068 | fi |
---|
2069 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2070 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2071 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2072 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2073 | ac_save_CFLAGS=$CFLAGS |
---|
2074 | CFLAGS="-g" |
---|
2075 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2076 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2077 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2079 | else |
---|
2080 | cat >conftest.$ac_ext <<_ACEOF |
---|
2081 | /* confdefs.h. */ |
---|
2082 | _ACEOF |
---|
2083 | cat confdefs.h >>conftest.$ac_ext |
---|
2084 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2085 | /* end confdefs.h. */ |
---|
2086 | |
---|
2087 | int |
---|
2088 | main () |
---|
2089 | { |
---|
2090 | |
---|
2091 | ; |
---|
2092 | return 0; |
---|
2093 | } |
---|
2094 | _ACEOF |
---|
2095 | rm -f conftest.$ac_objext |
---|
2096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2097 | (eval $ac_compile) 2>conftest.er1 |
---|
2098 | ac_status=$? |
---|
2099 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2100 | rm -f conftest.er1 |
---|
2101 | cat conftest.err >&5 |
---|
2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2103 | (exit $ac_status); } && |
---|
2104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2106 | (eval $ac_try) 2>&5 |
---|
2107 | ac_status=$? |
---|
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2109 | (exit $ac_status); }; } && |
---|
2110 | { ac_try='test -s conftest.$ac_objext' |
---|
2111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2112 | (eval $ac_try) 2>&5 |
---|
2113 | ac_status=$? |
---|
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2115 | (exit $ac_status); }; }; then |
---|
2116 | ac_cv_prog_cc_g=yes |
---|
2117 | else |
---|
2118 | echo "$as_me: failed program was:" >&5 |
---|
2119 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2120 | |
---|
2121 | ac_cv_prog_cc_g=no |
---|
2122 | fi |
---|
2123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2124 | fi |
---|
2125 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2126 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2127 | if test "$ac_test_CFLAGS" = set; then |
---|
2128 | CFLAGS=$ac_save_CFLAGS |
---|
2129 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2130 | if test "$GCC" = yes; then |
---|
2131 | CFLAGS="-g -O2" |
---|
2132 | else |
---|
2133 | CFLAGS="-g" |
---|
2134 | fi |
---|
2135 | else |
---|
2136 | if test "$GCC" = yes; then |
---|
2137 | CFLAGS="-O2" |
---|
2138 | else |
---|
2139 | CFLAGS= |
---|
2140 | fi |
---|
2141 | fi |
---|
2142 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2143 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2144 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2146 | else |
---|
2147 | ac_cv_prog_cc_stdc=no |
---|
2148 | ac_save_CC=$CC |
---|
2149 | cat >conftest.$ac_ext <<_ACEOF |
---|
2150 | /* confdefs.h. */ |
---|
2151 | _ACEOF |
---|
2152 | cat confdefs.h >>conftest.$ac_ext |
---|
2153 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2154 | /* end confdefs.h. */ |
---|
2155 | #include <stdarg.h> |
---|
2156 | #include <stdio.h> |
---|
2157 | #include <sys/types.h> |
---|
2158 | #include <sys/stat.h> |
---|
2159 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2160 | struct buf { int x; }; |
---|
2161 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2162 | static char *e (p, i) |
---|
2163 | char **p; |
---|
2164 | int i; |
---|
2165 | { |
---|
2166 | return p[i]; |
---|
2167 | } |
---|
2168 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2169 | { |
---|
2170 | char *s; |
---|
2171 | va_list v; |
---|
2172 | va_start (v,p); |
---|
2173 | s = g (p, va_arg (v,int)); |
---|
2174 | va_end (v); |
---|
2175 | return s; |
---|
2176 | } |
---|
2177 | |
---|
2178 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2179 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2180 | These don't provoke an error unfortunately, instead are silently treated |
---|
2181 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2182 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2183 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2184 | that's true only with -std1. */ |
---|
2185 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2186 | |
---|
2187 | int test (int i, double x); |
---|
2188 | struct s1 {int (*f) (int a);}; |
---|
2189 | struct s2 {int (*f) (double a);}; |
---|
2190 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2191 | int argc; |
---|
2192 | char **argv; |
---|
2193 | int |
---|
2194 | main () |
---|
2195 | { |
---|
2196 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2197 | ; |
---|
2198 | return 0; |
---|
2199 | } |
---|
2200 | _ACEOF |
---|
2201 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2202 | # breaks some systems' header files. |
---|
2203 | # AIX -qlanglvl=ansi |
---|
2204 | # Ultrix and OSF/1 -std1 |
---|
2205 | # HP-UX 10.20 and later -Ae |
---|
2206 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2207 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2208 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2209 | do |
---|
2210 | CC="$ac_save_CC $ac_arg" |
---|
2211 | rm -f conftest.$ac_objext |
---|
2212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2213 | (eval $ac_compile) 2>conftest.er1 |
---|
2214 | ac_status=$? |
---|
2215 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2216 | rm -f conftest.er1 |
---|
2217 | cat conftest.err >&5 |
---|
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2219 | (exit $ac_status); } && |
---|
2220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2222 | (eval $ac_try) 2>&5 |
---|
2223 | ac_status=$? |
---|
2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2225 | (exit $ac_status); }; } && |
---|
2226 | { ac_try='test -s conftest.$ac_objext' |
---|
2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2228 | (eval $ac_try) 2>&5 |
---|
2229 | ac_status=$? |
---|
2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2231 | (exit $ac_status); }; }; then |
---|
2232 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2233 | break |
---|
2234 | else |
---|
2235 | echo "$as_me: failed program was:" >&5 |
---|
2236 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2237 | |
---|
2238 | fi |
---|
2239 | rm -f conftest.err conftest.$ac_objext |
---|
2240 | done |
---|
2241 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2242 | CC=$ac_save_CC |
---|
2243 | |
---|
2244 | fi |
---|
2245 | |
---|
2246 | case "x$ac_cv_prog_cc_stdc" in |
---|
2247 | x|xno) |
---|
2248 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2249 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2250 | *) |
---|
2251 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2252 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2253 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2254 | esac |
---|
2255 | |
---|
2256 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2257 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2258 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2259 | # the declaration of exit, since it's the most demanding environment. |
---|
2260 | cat >conftest.$ac_ext <<_ACEOF |
---|
2261 | #ifndef __cplusplus |
---|
2262 | choke me |
---|
2263 | #endif |
---|
2264 | _ACEOF |
---|
2265 | rm -f conftest.$ac_objext |
---|
2266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2267 | (eval $ac_compile) 2>conftest.er1 |
---|
2268 | ac_status=$? |
---|
2269 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2270 | rm -f conftest.er1 |
---|
2271 | cat conftest.err >&5 |
---|
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2273 | (exit $ac_status); } && |
---|
2274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2276 | (eval $ac_try) 2>&5 |
---|
2277 | ac_status=$? |
---|
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2279 | (exit $ac_status); }; } && |
---|
2280 | { ac_try='test -s conftest.$ac_objext' |
---|
2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2282 | (eval $ac_try) 2>&5 |
---|
2283 | ac_status=$? |
---|
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2285 | (exit $ac_status); }; }; then |
---|
2286 | for ac_declaration in \ |
---|
2287 | '' \ |
---|
2288 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2289 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2290 | 'extern "C" void exit (int) throw ();' \ |
---|
2291 | 'extern "C" void exit (int);' \ |
---|
2292 | 'void exit (int);' |
---|
2293 | do |
---|
2294 | cat >conftest.$ac_ext <<_ACEOF |
---|
2295 | /* confdefs.h. */ |
---|
2296 | _ACEOF |
---|
2297 | cat confdefs.h >>conftest.$ac_ext |
---|
2298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2299 | /* end confdefs.h. */ |
---|
2300 | $ac_declaration |
---|
2301 | #include <stdlib.h> |
---|
2302 | int |
---|
2303 | main () |
---|
2304 | { |
---|
2305 | exit (42); |
---|
2306 | ; |
---|
2307 | return 0; |
---|
2308 | } |
---|
2309 | _ACEOF |
---|
2310 | rm -f conftest.$ac_objext |
---|
2311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2312 | (eval $ac_compile) 2>conftest.er1 |
---|
2313 | ac_status=$? |
---|
2314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2315 | rm -f conftest.er1 |
---|
2316 | cat conftest.err >&5 |
---|
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2318 | (exit $ac_status); } && |
---|
2319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2321 | (eval $ac_try) 2>&5 |
---|
2322 | ac_status=$? |
---|
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2324 | (exit $ac_status); }; } && |
---|
2325 | { ac_try='test -s conftest.$ac_objext' |
---|
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2327 | (eval $ac_try) 2>&5 |
---|
2328 | ac_status=$? |
---|
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2330 | (exit $ac_status); }; }; then |
---|
2331 | : |
---|
2332 | else |
---|
2333 | echo "$as_me: failed program was:" >&5 |
---|
2334 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2335 | |
---|
2336 | continue |
---|
2337 | fi |
---|
2338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
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 | $ac_declaration |
---|
2346 | int |
---|
2347 | main () |
---|
2348 | { |
---|
2349 | exit (42); |
---|
2350 | ; |
---|
2351 | return 0; |
---|
2352 | } |
---|
2353 | _ACEOF |
---|
2354 | rm -f conftest.$ac_objext |
---|
2355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2356 | (eval $ac_compile) 2>conftest.er1 |
---|
2357 | ac_status=$? |
---|
2358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2359 | rm -f conftest.er1 |
---|
2360 | cat conftest.err >&5 |
---|
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2362 | (exit $ac_status); } && |
---|
2363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2365 | (eval $ac_try) 2>&5 |
---|
2366 | ac_status=$? |
---|
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2368 | (exit $ac_status); }; } && |
---|
2369 | { ac_try='test -s conftest.$ac_objext' |
---|
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2371 | (eval $ac_try) 2>&5 |
---|
2372 | ac_status=$? |
---|
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2374 | (exit $ac_status); }; }; then |
---|
2375 | break |
---|
2376 | else |
---|
2377 | echo "$as_me: failed program was:" >&5 |
---|
2378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2379 | |
---|
2380 | fi |
---|
2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2382 | done |
---|
2383 | rm -f conftest* |
---|
2384 | if test -n "$ac_declaration"; then |
---|
2385 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2386 | echo $ac_declaration >>confdefs.h |
---|
2387 | echo '#endif' >>confdefs.h |
---|
2388 | fi |
---|
2389 | |
---|
2390 | else |
---|
2391 | echo "$as_me: failed program was:" >&5 |
---|
2392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2393 | |
---|
2394 | fi |
---|
2395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2396 | ac_ext=c |
---|
2397 | ac_cpp='$CPP $CPPFLAGS' |
---|
2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2401 | |
---|
2402 | ac_ext=c |
---|
2403 | ac_cpp='$CPP $CPPFLAGS' |
---|
2404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2407 | |
---|
2408 | |
---|
2409 | ac_ext=cc |
---|
2410 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2414 | if test -n "$ac_tool_prefix"; then |
---|
2415 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
2416 | do |
---|
2417 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2418 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2421 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
2422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2423 | else |
---|
2424 | if test -n "$CXX"; then |
---|
2425 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2426 | else |
---|
2427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2428 | for as_dir in $PATH |
---|
2429 | do |
---|
2430 | IFS=$as_save_IFS |
---|
2431 | test -z "$as_dir" && as_dir=. |
---|
2432 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2433 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2434 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
2435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2436 | break 2 |
---|
2437 | fi |
---|
2438 | done |
---|
2439 | done |
---|
2440 | |
---|
2441 | fi |
---|
2442 | fi |
---|
2443 | CXX=$ac_cv_prog_CXX |
---|
2444 | if test -n "$CXX"; then |
---|
2445 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
2446 | echo "${ECHO_T}$CXX" >&6 |
---|
2447 | else |
---|
2448 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2449 | echo "${ECHO_T}no" >&6 |
---|
2450 | fi |
---|
2451 | |
---|
2452 | test -n "$CXX" && break |
---|
2453 | done |
---|
2454 | fi |
---|
2455 | if test -z "$CXX"; then |
---|
2456 | ac_ct_CXX=$CXX |
---|
2457 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
2458 | do |
---|
2459 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2460 | set dummy $ac_prog; ac_word=$2 |
---|
2461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2463 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2465 | else |
---|
2466 | if test -n "$ac_ct_CXX"; then |
---|
2467 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
2468 | else |
---|
2469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2470 | for as_dir in $PATH |
---|
2471 | do |
---|
2472 | IFS=$as_save_IFS |
---|
2473 | test -z "$as_dir" && as_dir=. |
---|
2474 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2476 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
2477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2478 | break 2 |
---|
2479 | fi |
---|
2480 | done |
---|
2481 | done |
---|
2482 | |
---|
2483 | fi |
---|
2484 | fi |
---|
2485 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
2486 | if test -n "$ac_ct_CXX"; then |
---|
2487 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
2488 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
2489 | else |
---|
2490 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2491 | echo "${ECHO_T}no" >&6 |
---|
2492 | fi |
---|
2493 | |
---|
2494 | test -n "$ac_ct_CXX" && break |
---|
2495 | done |
---|
2496 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
2497 | |
---|
2498 | CXX=$ac_ct_CXX |
---|
2499 | fi |
---|
2500 | |
---|
2501 | |
---|
2502 | # Provide some information about the compiler. |
---|
2503 | echo "$as_me:$LINENO:" \ |
---|
2504 | "checking for C++ compiler version" >&5 |
---|
2505 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2506 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2507 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2508 | ac_status=$? |
---|
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2510 | (exit $ac_status); } |
---|
2511 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2512 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2513 | ac_status=$? |
---|
2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2515 | (exit $ac_status); } |
---|
2516 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2517 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2518 | ac_status=$? |
---|
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2520 | (exit $ac_status); } |
---|
2521 | |
---|
2522 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2523 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2524 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2526 | else |
---|
2527 | cat >conftest.$ac_ext <<_ACEOF |
---|
2528 | /* confdefs.h. */ |
---|
2529 | _ACEOF |
---|
2530 | cat confdefs.h >>conftest.$ac_ext |
---|
2531 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2532 | /* end confdefs.h. */ |
---|
2533 | |
---|
2534 | int |
---|
2535 | main () |
---|
2536 | { |
---|
2537 | #ifndef __GNUC__ |
---|
2538 | choke me |
---|
2539 | #endif |
---|
2540 | |
---|
2541 | ; |
---|
2542 | return 0; |
---|
2543 | } |
---|
2544 | _ACEOF |
---|
2545 | rm -f conftest.$ac_objext |
---|
2546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2547 | (eval $ac_compile) 2>conftest.er1 |
---|
2548 | ac_status=$? |
---|
2549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2550 | rm -f conftest.er1 |
---|
2551 | cat conftest.err >&5 |
---|
2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2553 | (exit $ac_status); } && |
---|
2554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2556 | (eval $ac_try) 2>&5 |
---|
2557 | ac_status=$? |
---|
2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2559 | (exit $ac_status); }; } && |
---|
2560 | { ac_try='test -s conftest.$ac_objext' |
---|
2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2562 | (eval $ac_try) 2>&5 |
---|
2563 | ac_status=$? |
---|
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2565 | (exit $ac_status); }; }; then |
---|
2566 | ac_compiler_gnu=yes |
---|
2567 | else |
---|
2568 | echo "$as_me: failed program was:" >&5 |
---|
2569 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2570 | |
---|
2571 | ac_compiler_gnu=no |
---|
2572 | fi |
---|
2573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2574 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2575 | |
---|
2576 | fi |
---|
2577 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2578 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2579 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2580 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2581 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2582 | CXXFLAGS="-g" |
---|
2583 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2584 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2585 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2587 | else |
---|
2588 | cat >conftest.$ac_ext <<_ACEOF |
---|
2589 | /* confdefs.h. */ |
---|
2590 | _ACEOF |
---|
2591 | cat confdefs.h >>conftest.$ac_ext |
---|
2592 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2593 | /* end confdefs.h. */ |
---|
2594 | |
---|
2595 | int |
---|
2596 | main () |
---|
2597 | { |
---|
2598 | |
---|
2599 | ; |
---|
2600 | return 0; |
---|
2601 | } |
---|
2602 | _ACEOF |
---|
2603 | rm -f conftest.$ac_objext |
---|
2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2605 | (eval $ac_compile) 2>conftest.er1 |
---|
2606 | ac_status=$? |
---|
2607 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2608 | rm -f conftest.er1 |
---|
2609 | cat conftest.err >&5 |
---|
2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2611 | (exit $ac_status); } && |
---|
2612 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2614 | (eval $ac_try) 2>&5 |
---|
2615 | ac_status=$? |
---|
2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2617 | (exit $ac_status); }; } && |
---|
2618 | { ac_try='test -s conftest.$ac_objext' |
---|
2619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2620 | (eval $ac_try) 2>&5 |
---|
2621 | ac_status=$? |
---|
2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2623 | (exit $ac_status); }; }; then |
---|
2624 | ac_cv_prog_cxx_g=yes |
---|
2625 | else |
---|
2626 | echo "$as_me: failed program was:" >&5 |
---|
2627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2628 | |
---|
2629 | ac_cv_prog_cxx_g=no |
---|
2630 | fi |
---|
2631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2632 | fi |
---|
2633 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2634 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2635 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2636 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2637 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2638 | if test "$GXX" = yes; then |
---|
2639 | CXXFLAGS="-g -O2" |
---|
2640 | else |
---|
2641 | CXXFLAGS="-g" |
---|
2642 | fi |
---|
2643 | else |
---|
2644 | if test "$GXX" = yes; then |
---|
2645 | CXXFLAGS="-O2" |
---|
2646 | else |
---|
2647 | CXXFLAGS= |
---|
2648 | fi |
---|
2649 | fi |
---|
2650 | for ac_declaration in \ |
---|
2651 | '' \ |
---|
2652 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2653 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2654 | 'extern "C" void exit (int) throw ();' \ |
---|
2655 | 'extern "C" void exit (int);' \ |
---|
2656 | 'void exit (int);' |
---|
2657 | do |
---|
2658 | cat >conftest.$ac_ext <<_ACEOF |
---|
2659 | /* confdefs.h. */ |
---|
2660 | _ACEOF |
---|
2661 | cat confdefs.h >>conftest.$ac_ext |
---|
2662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2663 | /* end confdefs.h. */ |
---|
2664 | $ac_declaration |
---|
2665 | #include <stdlib.h> |
---|
2666 | int |
---|
2667 | main () |
---|
2668 | { |
---|
2669 | exit (42); |
---|
2670 | ; |
---|
2671 | return 0; |
---|
2672 | } |
---|
2673 | _ACEOF |
---|
2674 | rm -f conftest.$ac_objext |
---|
2675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2676 | (eval $ac_compile) 2>conftest.er1 |
---|
2677 | ac_status=$? |
---|
2678 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2679 | rm -f conftest.er1 |
---|
2680 | cat conftest.err >&5 |
---|
2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2682 | (exit $ac_status); } && |
---|
2683 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2685 | (eval $ac_try) 2>&5 |
---|
2686 | ac_status=$? |
---|
2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2688 | (exit $ac_status); }; } && |
---|
2689 | { ac_try='test -s conftest.$ac_objext' |
---|
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); }; }; then |
---|
2695 | : |
---|
2696 | else |
---|
2697 | echo "$as_me: failed program was:" >&5 |
---|
2698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2699 | |
---|
2700 | continue |
---|
2701 | fi |
---|
2702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2703 | cat >conftest.$ac_ext <<_ACEOF |
---|
2704 | /* confdefs.h. */ |
---|
2705 | _ACEOF |
---|
2706 | cat confdefs.h >>conftest.$ac_ext |
---|
2707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2708 | /* end confdefs.h. */ |
---|
2709 | $ac_declaration |
---|
2710 | int |
---|
2711 | main () |
---|
2712 | { |
---|
2713 | exit (42); |
---|
2714 | ; |
---|
2715 | return 0; |
---|
2716 | } |
---|
2717 | _ACEOF |
---|
2718 | rm -f conftest.$ac_objext |
---|
2719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2720 | (eval $ac_compile) 2>conftest.er1 |
---|
2721 | ac_status=$? |
---|
2722 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2723 | rm -f conftest.er1 |
---|
2724 | cat conftest.err >&5 |
---|
2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2726 | (exit $ac_status); } && |
---|
2727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2729 | (eval $ac_try) 2>&5 |
---|
2730 | ac_status=$? |
---|
2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2732 | (exit $ac_status); }; } && |
---|
2733 | { ac_try='test -s conftest.$ac_objext' |
---|
2734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2735 | (eval $ac_try) 2>&5 |
---|
2736 | ac_status=$? |
---|
2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2738 | (exit $ac_status); }; }; then |
---|
2739 | break |
---|
2740 | else |
---|
2741 | echo "$as_me: failed program was:" >&5 |
---|
2742 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2743 | |
---|
2744 | fi |
---|
2745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2746 | done |
---|
2747 | rm -f conftest* |
---|
2748 | if test -n "$ac_declaration"; then |
---|
2749 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2750 | echo $ac_declaration >>confdefs.h |
---|
2751 | echo '#endif' >>confdefs.h |
---|
2752 | fi |
---|
2753 | |
---|
2754 | ac_ext=c |
---|
2755 | ac_cpp='$CPP $CPPFLAGS' |
---|
2756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2759 | |
---|
2760 | ac_ext=cc |
---|
2761 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2762 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2763 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2764 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2765 | |
---|
2766 | |
---|
2767 | SUBDIRS="nanoscale nanovis pymolproxy" |
---|
2768 | |
---|
2769 | |
---|
2770 | |
---|
2771 | # Check whether --with-tcllib or --without-tcllib was given. |
---|
2772 | if test "${with_tcllib+set}" = set; then |
---|
2773 | withval="$with_tcllib" |
---|
2774 | with_tcllib=$withval |
---|
2775 | else |
---|
2776 | with_tcllib=/usr/lib |
---|
2777 | fi; |
---|
2778 | |
---|
2779 | TCL_LIB_DIR="" |
---|
2780 | TCL_LIB="" |
---|
2781 | TCL_LIB_VERSION="" |
---|
2782 | echo "$as_me:$LINENO: checking for tcl binary libraries" >&5 |
---|
2783 | echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6 |
---|
2784 | if test "x$with_tcllib" != "x" ; then |
---|
2785 | if test -f "$with_tcllib" |
---|
2786 | then |
---|
2787 | if test -n `basename $with_tcllib | grep libtcl0-9\.0-9.so` |
---|
2788 | then |
---|
2789 | TCL_LIB_DIR="$with_tcllib" |
---|
2790 | fi |
---|
2791 | else |
---|
2792 | if test -d "$with_tcllib" |
---|
2793 | then |
---|
2794 | if test -x "$with_tcllib/`ls $with_tcllib | grep libtcl0-9\.0-9\.so$`" |
---|
2795 | then |
---|
2796 | TCL_LIB_DIR="$with_tcllib" |
---|
2797 | else |
---|
2798 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2799 | echo "${ECHO_T}no" >&6 |
---|
2800 | { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5 |
---|
2801 | echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;} |
---|
2802 | { (exit 1); exit 1; }; } |
---|
2803 | fi |
---|
2804 | else |
---|
2805 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2806 | echo "${ECHO_T}no" >&6 |
---|
2807 | { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5 |
---|
2808 | echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;} |
---|
2809 | { (exit 1); exit 1; }; } |
---|
2810 | fi |
---|
2811 | fi |
---|
2812 | else |
---|
2813 | |
---|
2814 | ac_ext=cc |
---|
2815 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2819 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
2820 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
2821 | if test -z "$CXXCPP"; then |
---|
2822 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2824 | else |
---|
2825 | # Double quotes because CXXCPP needs to be expanded |
---|
2826 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
2827 | do |
---|
2828 | ac_preproc_ok=false |
---|
2829 | for ac_cxx_preproc_warn_flag in '' yes |
---|
2830 | do |
---|
2831 | # Use a header file that comes with gcc, so configuring glibc |
---|
2832 | # with a fresh cross-compiler works. |
---|
2833 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2834 | # <limits.h> exists even on freestanding compilers. |
---|
2835 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2836 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2837 | cat >conftest.$ac_ext <<_ACEOF |
---|
2838 | /* confdefs.h. */ |
---|
2839 | _ACEOF |
---|
2840 | cat confdefs.h >>conftest.$ac_ext |
---|
2841 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2842 | /* end confdefs.h. */ |
---|
2843 | #ifdef __STDC__ |
---|
2844 | # include <limits.h> |
---|
2845 | #else |
---|
2846 | # include <assert.h> |
---|
2847 | #endif |
---|
2848 | Syntax error |
---|
2849 | _ACEOF |
---|
2850 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2851 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2852 | ac_status=$? |
---|
2853 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2854 | rm -f conftest.er1 |
---|
2855 | cat conftest.err >&5 |
---|
2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2857 | (exit $ac_status); } >/dev/null; then |
---|
2858 | if test -s conftest.err; then |
---|
2859 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
2860 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
2861 | else |
---|
2862 | ac_cpp_err= |
---|
2863 | fi |
---|
2864 | else |
---|
2865 | ac_cpp_err=yes |
---|
2866 | fi |
---|
2867 | if test -z "$ac_cpp_err"; then |
---|
2868 | : |
---|
2869 | else |
---|
2870 | echo "$as_me: failed program was:" >&5 |
---|
2871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2872 | |
---|
2873 | # Broken: fails on valid input. |
---|
2874 | continue |
---|
2875 | fi |
---|
2876 | rm -f conftest.err conftest.$ac_ext |
---|
2877 | |
---|
2878 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2879 | # can be detected and how. |
---|
2880 | cat >conftest.$ac_ext <<_ACEOF |
---|
2881 | /* confdefs.h. */ |
---|
2882 | _ACEOF |
---|
2883 | cat confdefs.h >>conftest.$ac_ext |
---|
2884 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2885 | /* end confdefs.h. */ |
---|
2886 | #include <ac_nonexistent.h> |
---|
2887 | _ACEOF |
---|
2888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2890 | ac_status=$? |
---|
2891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2892 | rm -f conftest.er1 |
---|
2893 | cat conftest.err >&5 |
---|
2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2895 | (exit $ac_status); } >/dev/null; then |
---|
2896 | if test -s conftest.err; then |
---|
2897 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
2898 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
2899 | else |
---|
2900 | ac_cpp_err= |
---|
2901 | fi |
---|
2902 | else |
---|
2903 | ac_cpp_err=yes |
---|
2904 | fi |
---|
2905 | if test -z "$ac_cpp_err"; then |
---|
2906 | # Broken: success on invalid input. |
---|
2907 | continue |
---|
2908 | else |
---|
2909 | echo "$as_me: failed program was:" >&5 |
---|
2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2911 | |
---|
2912 | # Passes both tests. |
---|
2913 | ac_preproc_ok=: |
---|
2914 | break |
---|
2915 | fi |
---|
2916 | rm -f conftest.err conftest.$ac_ext |
---|
2917 | |
---|
2918 | done |
---|
2919 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2920 | rm -f conftest.err conftest.$ac_ext |
---|
2921 | if $ac_preproc_ok; then |
---|
2922 | break |
---|
2923 | fi |
---|
2924 | |
---|
2925 | done |
---|
2926 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
2927 | |
---|
2928 | fi |
---|
2929 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
2930 | else |
---|
2931 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
2932 | fi |
---|
2933 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
2934 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
2935 | ac_preproc_ok=false |
---|
2936 | for ac_cxx_preproc_warn_flag in '' yes |
---|
2937 | do |
---|
2938 | # Use a header file that comes with gcc, so configuring glibc |
---|
2939 | # with a fresh cross-compiler works. |
---|
2940 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2941 | # <limits.h> exists even on freestanding compilers. |
---|
2942 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2943 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2944 | cat >conftest.$ac_ext <<_ACEOF |
---|
2945 | /* confdefs.h. */ |
---|
2946 | _ACEOF |
---|
2947 | cat confdefs.h >>conftest.$ac_ext |
---|
2948 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2949 | /* end confdefs.h. */ |
---|
2950 | #ifdef __STDC__ |
---|
2951 | # include <limits.h> |
---|
2952 | #else |
---|
2953 | # include <assert.h> |
---|
2954 | #endif |
---|
2955 | Syntax error |
---|
2956 | _ACEOF |
---|
2957 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2958 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2959 | ac_status=$? |
---|
2960 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2961 | rm -f conftest.er1 |
---|
2962 | cat conftest.err >&5 |
---|
2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2964 | (exit $ac_status); } >/dev/null; then |
---|
2965 | if test -s conftest.err; then |
---|
2966 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
2967 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
2968 | else |
---|
2969 | ac_cpp_err= |
---|
2970 | fi |
---|
2971 | else |
---|
2972 | ac_cpp_err=yes |
---|
2973 | fi |
---|
2974 | if test -z "$ac_cpp_err"; then |
---|
2975 | : |
---|
2976 | else |
---|
2977 | echo "$as_me: failed program was:" >&5 |
---|
2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2979 | |
---|
2980 | # Broken: fails on valid input. |
---|
2981 | continue |
---|
2982 | fi |
---|
2983 | rm -f conftest.err conftest.$ac_ext |
---|
2984 | |
---|
2985 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2986 | # can be detected and how. |
---|
2987 | cat >conftest.$ac_ext <<_ACEOF |
---|
2988 | /* confdefs.h. */ |
---|
2989 | _ACEOF |
---|
2990 | cat confdefs.h >>conftest.$ac_ext |
---|
2991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2992 | /* end confdefs.h. */ |
---|
2993 | #include <ac_nonexistent.h> |
---|
2994 | _ACEOF |
---|
2995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2997 | ac_status=$? |
---|
2998 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2999 | rm -f conftest.er1 |
---|
3000 | cat conftest.err >&5 |
---|
3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3002 | (exit $ac_status); } >/dev/null; then |
---|
3003 | if test -s conftest.err; then |
---|
3004 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
3005 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
3006 | else |
---|
3007 | ac_cpp_err= |
---|
3008 | fi |
---|
3009 | else |
---|
3010 | ac_cpp_err=yes |
---|
3011 | fi |
---|
3012 | if test -z "$ac_cpp_err"; then |
---|
3013 | # Broken: success on invalid input. |
---|
3014 | continue |
---|
3015 | else |
---|
3016 | echo "$as_me: failed program was:" >&5 |
---|
3017 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3018 | |
---|
3019 | # Passes both tests. |
---|
3020 | ac_preproc_ok=: |
---|
3021 | break |
---|
3022 | fi |
---|
3023 | rm -f conftest.err conftest.$ac_ext |
---|
3024 | |
---|
3025 | done |
---|
3026 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3027 | rm -f conftest.err conftest.$ac_ext |
---|
3028 | if $ac_preproc_ok; then |
---|
3029 | : |
---|
3030 | else |
---|
3031 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
3032 | See \`config.log' for more details." >&5 |
---|
3033 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
3034 | See \`config.log' for more details." >&2;} |
---|
3035 | { (exit 1); exit 1; }; } |
---|
3036 | fi |
---|
3037 | |
---|
3038 | ac_ext=cc |
---|
3039 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3040 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3041 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3042 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3043 | |
---|
3044 | |
---|
3045 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3046 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3047 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3049 | else |
---|
3050 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3051 | then ac_cv_prog_egrep='grep -E' |
---|
3052 | else ac_cv_prog_egrep='egrep' |
---|
3053 | fi |
---|
3054 | fi |
---|
3055 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3056 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3057 | EGREP=$ac_cv_prog_egrep |
---|
3058 | |
---|
3059 | |
---|
3060 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3061 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3062 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3064 | else |
---|
3065 | cat >conftest.$ac_ext <<_ACEOF |
---|
3066 | /* confdefs.h. */ |
---|
3067 | _ACEOF |
---|
3068 | cat confdefs.h >>conftest.$ac_ext |
---|
3069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3070 | /* end confdefs.h. */ |
---|
3071 | #include <stdlib.h> |
---|
3072 | #include <stdarg.h> |
---|
3073 | #include <string.h> |
---|
3074 | #include <float.h> |
---|
3075 | |
---|
3076 | int |
---|
3077 | main () |
---|
3078 | { |
---|
3079 | |
---|
3080 | ; |
---|
3081 | return 0; |
---|
3082 | } |
---|
3083 | _ACEOF |
---|
3084 | rm -f conftest.$ac_objext |
---|
3085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3086 | (eval $ac_compile) 2>conftest.er1 |
---|
3087 | ac_status=$? |
---|
3088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3089 | rm -f conftest.er1 |
---|
3090 | cat conftest.err >&5 |
---|
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3092 | (exit $ac_status); } && |
---|
3093 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3095 | (eval $ac_try) 2>&5 |
---|
3096 | ac_status=$? |
---|
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3098 | (exit $ac_status); }; } && |
---|
3099 | { ac_try='test -s conftest.$ac_objext' |
---|
3100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3101 | (eval $ac_try) 2>&5 |
---|
3102 | ac_status=$? |
---|
3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3104 | (exit $ac_status); }; }; then |
---|
3105 | ac_cv_header_stdc=yes |
---|
3106 | else |
---|
3107 | echo "$as_me: failed program was:" >&5 |
---|
3108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3109 | |
---|
3110 | ac_cv_header_stdc=no |
---|
3111 | fi |
---|
3112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3113 | |
---|
3114 | if test $ac_cv_header_stdc = yes; then |
---|
3115 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3116 | cat >conftest.$ac_ext <<_ACEOF |
---|
3117 | /* confdefs.h. */ |
---|
3118 | _ACEOF |
---|
3119 | cat confdefs.h >>conftest.$ac_ext |
---|
3120 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3121 | /* end confdefs.h. */ |
---|
3122 | #include <string.h> |
---|
3123 | |
---|
3124 | _ACEOF |
---|
3125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3126 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3127 | : |
---|
3128 | else |
---|
3129 | ac_cv_header_stdc=no |
---|
3130 | fi |
---|
3131 | rm -f conftest* |
---|
3132 | |
---|
3133 | fi |
---|
3134 | |
---|
3135 | if test $ac_cv_header_stdc = yes; then |
---|
3136 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3137 | cat >conftest.$ac_ext <<_ACEOF |
---|
3138 | /* confdefs.h. */ |
---|
3139 | _ACEOF |
---|
3140 | cat confdefs.h >>conftest.$ac_ext |
---|
3141 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3142 | /* end confdefs.h. */ |
---|
3143 | #include <stdlib.h> |
---|
3144 | |
---|
3145 | _ACEOF |
---|
3146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3147 | $EGREP "free" >/dev/null 2>&1; then |
---|
3148 | : |
---|
3149 | else |
---|
3150 | ac_cv_header_stdc=no |
---|
3151 | fi |
---|
3152 | rm -f conftest* |
---|
3153 | |
---|
3154 | fi |
---|
3155 | |
---|
3156 | if test $ac_cv_header_stdc = yes; then |
---|
3157 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3158 | if test "$cross_compiling" = yes; then |
---|
3159 | : |
---|
3160 | else |
---|
3161 | cat >conftest.$ac_ext <<_ACEOF |
---|
3162 | /* confdefs.h. */ |
---|
3163 | _ACEOF |
---|
3164 | cat confdefs.h >>conftest.$ac_ext |
---|
3165 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3166 | /* end confdefs.h. */ |
---|
3167 | #include <ctype.h> |
---|
3168 | #if ((' ' & 0x0FF) == 0x020) |
---|
3169 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3170 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3171 | #else |
---|
3172 | # define ISLOWER(c) \ |
---|
3173 | (('a' <= (c) && (c) <= 'i') \ |
---|
3174 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3175 | || ('s' <= (c) && (c) <= 'z')) |
---|
3176 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3177 | #endif |
---|
3178 | |
---|
3179 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3180 | int |
---|
3181 | main () |
---|
3182 | { |
---|
3183 | int i; |
---|
3184 | for (i = 0; i < 256; i++) |
---|
3185 | if (XOR (islower (i), ISLOWER (i)) |
---|
3186 | || toupper (i) != TOUPPER (i)) |
---|
3187 | exit(2); |
---|
3188 | exit (0); |
---|
3189 | } |
---|
3190 | _ACEOF |
---|
3191 | rm -f conftest$ac_exeext |
---|
3192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3193 | (eval $ac_link) 2>&5 |
---|
3194 | ac_status=$? |
---|
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3196 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3198 | (eval $ac_try) 2>&5 |
---|
3199 | ac_status=$? |
---|
3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3201 | (exit $ac_status); }; }; then |
---|
3202 | : |
---|
3203 | else |
---|
3204 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3205 | echo "$as_me: failed program was:" >&5 |
---|
3206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3207 | |
---|
3208 | ( exit $ac_status ) |
---|
3209 | ac_cv_header_stdc=no |
---|
3210 | fi |
---|
3211 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3212 | fi |
---|
3213 | fi |
---|
3214 | fi |
---|
3215 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3216 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3217 | if test $ac_cv_header_stdc = yes; then |
---|
3218 | |
---|
3219 | cat >>confdefs.h <<\_ACEOF |
---|
3220 | #define STDC_HEADERS 1 |
---|
3221 | _ACEOF |
---|
3222 | |
---|
3223 | fi |
---|
3224 | |
---|
3225 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3226 | |
---|
3227 | |
---|
3228 | |
---|
3229 | |
---|
3230 | |
---|
3231 | |
---|
3232 | |
---|
3233 | |
---|
3234 | |
---|
3235 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3236 | inttypes.h stdint.h unistd.h |
---|
3237 | do |
---|
3238 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3243 | else |
---|
3244 | cat >conftest.$ac_ext <<_ACEOF |
---|
3245 | /* confdefs.h. */ |
---|
3246 | _ACEOF |
---|
3247 | cat confdefs.h >>conftest.$ac_ext |
---|
3248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3249 | /* end confdefs.h. */ |
---|
3250 | $ac_includes_default |
---|
3251 | |
---|
3252 | #include <$ac_header> |
---|
3253 | _ACEOF |
---|
3254 | rm -f conftest.$ac_objext |
---|
3255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3256 | (eval $ac_compile) 2>conftest.er1 |
---|
3257 | ac_status=$? |
---|
3258 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3259 | rm -f conftest.er1 |
---|
3260 | cat conftest.err >&5 |
---|
3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3262 | (exit $ac_status); } && |
---|
3263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3265 | (eval $ac_try) 2>&5 |
---|
3266 | ac_status=$? |
---|
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3268 | (exit $ac_status); }; } && |
---|
3269 | { ac_try='test -s conftest.$ac_objext' |
---|
3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3271 | (eval $ac_try) 2>&5 |
---|
3272 | ac_status=$? |
---|
3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3274 | (exit $ac_status); }; }; then |
---|
3275 | eval "$as_ac_Header=yes" |
---|
3276 | else |
---|
3277 | echo "$as_me: failed program was:" >&5 |
---|
3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3279 | |
---|
3280 | eval "$as_ac_Header=no" |
---|
3281 | fi |
---|
3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3283 | fi |
---|
3284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3285 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3287 | cat >>confdefs.h <<_ACEOF |
---|
3288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3289 | _ACEOF |
---|
3290 | |
---|
3291 | fi |
---|
3292 | |
---|
3293 | done |
---|
3294 | |
---|
3295 | |
---|
3296 | |
---|
3297 | for ac_header in tcl.h |
---|
3298 | do |
---|
3299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3305 | fi |
---|
3306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3308 | else |
---|
3309 | # Is the header compilable? |
---|
3310 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3311 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3312 | cat >conftest.$ac_ext <<_ACEOF |
---|
3313 | /* confdefs.h. */ |
---|
3314 | _ACEOF |
---|
3315 | cat confdefs.h >>conftest.$ac_ext |
---|
3316 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3317 | /* end confdefs.h. */ |
---|
3318 | $ac_includes_default |
---|
3319 | #include <$ac_header> |
---|
3320 | _ACEOF |
---|
3321 | rm -f conftest.$ac_objext |
---|
3322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3323 | (eval $ac_compile) 2>conftest.er1 |
---|
3324 | ac_status=$? |
---|
3325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3326 | rm -f conftest.er1 |
---|
3327 | cat conftest.err >&5 |
---|
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3329 | (exit $ac_status); } && |
---|
3330 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3332 | (eval $ac_try) 2>&5 |
---|
3333 | ac_status=$? |
---|
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3335 | (exit $ac_status); }; } && |
---|
3336 | { ac_try='test -s conftest.$ac_objext' |
---|
3337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3338 | (eval $ac_try) 2>&5 |
---|
3339 | ac_status=$? |
---|
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3341 | (exit $ac_status); }; }; then |
---|
3342 | ac_header_compiler=yes |
---|
3343 | else |
---|
3344 | echo "$as_me: failed program was:" >&5 |
---|
3345 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3346 | |
---|
3347 | ac_header_compiler=no |
---|
3348 | fi |
---|
3349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3350 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3351 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3352 | |
---|
3353 | # Is the header present? |
---|
3354 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3355 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3356 | cat >conftest.$ac_ext <<_ACEOF |
---|
3357 | /* confdefs.h. */ |
---|
3358 | _ACEOF |
---|
3359 | cat confdefs.h >>conftest.$ac_ext |
---|
3360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3361 | /* end confdefs.h. */ |
---|
3362 | #include <$ac_header> |
---|
3363 | _ACEOF |
---|
3364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3366 | ac_status=$? |
---|
3367 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3368 | rm -f conftest.er1 |
---|
3369 | cat conftest.err >&5 |
---|
3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3371 | (exit $ac_status); } >/dev/null; then |
---|
3372 | if test -s conftest.err; then |
---|
3373 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
3374 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
3375 | else |
---|
3376 | ac_cpp_err= |
---|
3377 | fi |
---|
3378 | else |
---|
3379 | ac_cpp_err=yes |
---|
3380 | fi |
---|
3381 | if test -z "$ac_cpp_err"; then |
---|
3382 | ac_header_preproc=yes |
---|
3383 | else |
---|
3384 | echo "$as_me: failed program was:" >&5 |
---|
3385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3386 | |
---|
3387 | ac_header_preproc=no |
---|
3388 | fi |
---|
3389 | rm -f conftest.err conftest.$ac_ext |
---|
3390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3391 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3392 | |
---|
3393 | # So? What about this header? |
---|
3394 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
3395 | yes:no: ) |
---|
3396 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3397 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3399 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3400 | ac_header_preproc=yes |
---|
3401 | ;; |
---|
3402 | no:yes:* ) |
---|
3403 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3404 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3405 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3406 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3407 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3408 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3409 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3410 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3412 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3413 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3414 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3415 | ( |
---|
3416 | cat <<\_ASBOX |
---|
3417 | ## ----------------------------------- ## |
---|
3418 | ## Report this to rappture@nanohub.org ## |
---|
3419 | ## ----------------------------------- ## |
---|
3420 | _ASBOX |
---|
3421 | ) | |
---|
3422 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3423 | ;; |
---|
3424 | esac |
---|
3425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3429 | else |
---|
3430 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3431 | fi |
---|
3432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3433 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3434 | |
---|
3435 | fi |
---|
3436 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3437 | cat >>confdefs.h <<_ACEOF |
---|
3438 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3439 | _ACEOF |
---|
3440 | |
---|
3441 | else |
---|
3442 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
3443 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
3444 | { (exit 1); exit 1; }; } |
---|
3445 | fi |
---|
3446 | |
---|
3447 | done |
---|
3448 | |
---|
3449 | fi |
---|
3450 | # TCL_LIB=$(ls ${TCL_LIB_DIR} | grep -o libtcl[0-9]\.[0-9]) |
---|
3451 | # TCL_LIB=`ls ${TCL_LIB_DIR} | awk '/libtcl([0-9]\.?[0-9])?\.so/ { print }'` |
---|
3452 | # TCL_LIB=`ls ${TCL_LIB_DIR} | sed -e '/libtcl([0-9]\.?[0-9])?\.so$/ {p}'` |
---|
3453 | # TCL_LIB_VERSION=$(echo ${TCL_LIB} | sed -e s/libtcl// -e s/\.so//) |
---|
3454 | echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5 |
---|
3455 | echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6 |
---|
3456 | # echo TCL_LIB_DIR = ${TCL_LIB_DIR} |
---|
3457 | # echo TCL_LIB = ${TCL_LIB} |
---|
3458 | # echo TCL_LIB_VERSION = ${TCL_LIB_VERSION} |
---|
3459 | |
---|
3460 | |
---|
3461 | |
---|
3462 | |
---|
3463 | |
---|
3464 | # Check whether --with-tclinclude or --without-tclinclude was given. |
---|
3465 | if test "${with_tclinclude+set}" = set; then |
---|
3466 | withval="$with_tclinclude" |
---|
3467 | with_tclinclude=$withval |
---|
3468 | else |
---|
3469 | with_tclinclude=/usr/include |
---|
3470 | fi; |
---|
3471 | |
---|
3472 | TCL_INCL_DIR="" |
---|
3473 | echo "$as_me:$LINENO: checking for tcl.h" >&5 |
---|
3474 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
---|
3475 | if test "x$with_tclinclude" != "x" ; then |
---|
3476 | if test -f "$with_tclinclude" |
---|
3477 | then |
---|
3478 | if test `basename $with_tclinclude` = "tcl.h" |
---|
3479 | then |
---|
3480 | TCL_INCL_DIR="`dirname $with_tclinclude`" |
---|
3481 | fi |
---|
3482 | else |
---|
3483 | if test -d "$with_tclinclude" |
---|
3484 | then |
---|
3485 | if test -r "$with_tclinclude/tcl.h" |
---|
3486 | then |
---|
3487 | TCL_INCL_DIR="$with_tclinclude" |
---|
3488 | else |
---|
3489 | if test -r "$with_tclinclude/tcl${TCL_LIB_VERSION}/tcl.h" |
---|
3490 | then |
---|
3491 | TCL_INCL_DIR="$with_tclinclude/tcl${TCL_LIB_VERSION}" |
---|
3492 | else |
---|
3493 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3494 | echo "${ECHO_T}no" >&6 |
---|
3495 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
3496 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
3497 | { (exit 1); exit 1; }; } |
---|
3498 | fi |
---|
3499 | fi |
---|
3500 | else |
---|
3501 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3502 | echo "${ECHO_T}no" >&6 |
---|
3503 | { { echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5 |
---|
3504 | echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;} |
---|
3505 | { (exit 1); exit 1; }; } |
---|
3506 | fi |
---|
3507 | fi |
---|
3508 | else |
---|
3509 | |
---|
3510 | for ac_header in tcl.h |
---|
3511 | do |
---|
3512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3518 | fi |
---|
3519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3521 | else |
---|
3522 | # Is the header compilable? |
---|
3523 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3524 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3525 | cat >conftest.$ac_ext <<_ACEOF |
---|
3526 | /* confdefs.h. */ |
---|
3527 | _ACEOF |
---|
3528 | cat confdefs.h >>conftest.$ac_ext |
---|
3529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3530 | /* end confdefs.h. */ |
---|
3531 | $ac_includes_default |
---|
3532 | #include <$ac_header> |
---|
3533 | _ACEOF |
---|
3534 | rm -f conftest.$ac_objext |
---|
3535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3536 | (eval $ac_compile) 2>conftest.er1 |
---|
3537 | ac_status=$? |
---|
3538 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3539 | rm -f conftest.er1 |
---|
3540 | cat conftest.err >&5 |
---|
3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3542 | (exit $ac_status); } && |
---|
3543 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3545 | (eval $ac_try) 2>&5 |
---|
3546 | ac_status=$? |
---|
3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3548 | (exit $ac_status); }; } && |
---|
3549 | { ac_try='test -s conftest.$ac_objext' |
---|
3550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3551 | (eval $ac_try) 2>&5 |
---|
3552 | ac_status=$? |
---|
3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3554 | (exit $ac_status); }; }; then |
---|
3555 | ac_header_compiler=yes |
---|
3556 | else |
---|
3557 | echo "$as_me: failed program was:" >&5 |
---|
3558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3559 | |
---|
3560 | ac_header_compiler=no |
---|
3561 | fi |
---|
3562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3564 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3565 | |
---|
3566 | # Is the header present? |
---|
3567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3569 | cat >conftest.$ac_ext <<_ACEOF |
---|
3570 | /* confdefs.h. */ |
---|
3571 | _ACEOF |
---|
3572 | cat confdefs.h >>conftest.$ac_ext |
---|
3573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3574 | /* end confdefs.h. */ |
---|
3575 | #include <$ac_header> |
---|
3576 | _ACEOF |
---|
3577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3579 | ac_status=$? |
---|
3580 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3581 | rm -f conftest.er1 |
---|
3582 | cat conftest.err >&5 |
---|
3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3584 | (exit $ac_status); } >/dev/null; then |
---|
3585 | if test -s conftest.err; then |
---|
3586 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
3587 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
3588 | else |
---|
3589 | ac_cpp_err= |
---|
3590 | fi |
---|
3591 | else |
---|
3592 | ac_cpp_err=yes |
---|
3593 | fi |
---|
3594 | if test -z "$ac_cpp_err"; then |
---|
3595 | ac_header_preproc=yes |
---|
3596 | else |
---|
3597 | echo "$as_me: failed program was:" >&5 |
---|
3598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3599 | |
---|
3600 | ac_header_preproc=no |
---|
3601 | fi |
---|
3602 | rm -f conftest.err conftest.$ac_ext |
---|
3603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3604 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3605 | |
---|
3606 | # So? What about this header? |
---|
3607 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
3608 | yes:no: ) |
---|
3609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3613 | ac_header_preproc=yes |
---|
3614 | ;; |
---|
3615 | no:yes:* ) |
---|
3616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3628 | ( |
---|
3629 | cat <<\_ASBOX |
---|
3630 | ## ----------------------------------- ## |
---|
3631 | ## Report this to rappture@nanohub.org ## |
---|
3632 | ## ----------------------------------- ## |
---|
3633 | _ASBOX |
---|
3634 | ) | |
---|
3635 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3636 | ;; |
---|
3637 | esac |
---|
3638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3642 | else |
---|
3643 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3644 | fi |
---|
3645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3647 | |
---|
3648 | fi |
---|
3649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3650 | cat >>confdefs.h <<_ACEOF |
---|
3651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3652 | _ACEOF |
---|
3653 | |
---|
3654 | else |
---|
3655 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
3656 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
3657 | { (exit 1); exit 1; }; } |
---|
3658 | fi |
---|
3659 | |
---|
3660 | done |
---|
3661 | |
---|
3662 | fi |
---|
3663 | echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5 |
---|
3664 | echo "${ECHO_T}${TCL_INCL_DIR}" >&6 |
---|
3665 | |
---|
3666 | |
---|
3667 | |
---|
3668 | # Check whether --with-rappture or --without-rappture was given. |
---|
3669 | if test "${with_rappture+set}" = set; then |
---|
3670 | withval="$with_rappture" |
---|
3671 | with_rappture=$withval |
---|
3672 | else |
---|
3673 | with_rappture=/usr |
---|
3674 | fi; |
---|
3675 | |
---|
3676 | RP2_INCL_DIR="" |
---|
3677 | RP_DIR="" |
---|
3678 | echo "$as_me:$LINENO: checking for rappture" >&5 |
---|
3679 | echo $ECHO_N "checking for rappture... $ECHO_C" >&6 |
---|
3680 | if test "x$with_rappture" != "x" ; then |
---|
3681 | if test -f "$with_rappture" |
---|
3682 | then |
---|
3683 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3684 | echo "${ECHO_T}no" >&6 |
---|
3685 | { { echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5 |
---|
3686 | echo "$as_me: error: please provide --with-rappture with directory" >&2;} |
---|
3687 | { (exit 1); exit 1; }; } |
---|
3688 | else |
---|
3689 | if test -d "$with_rappture" |
---|
3690 | then |
---|
3691 | if test -r "$with_rappture/include/rappture2/rappture2.h" -a -r "$with_rappture/lib/librappture2.a" |
---|
3692 | then |
---|
3693 | RP2_INCL_DIR="$with_rappture/include/rappture2" |
---|
3694 | RP_DIR="$with_rappture" |
---|
3695 | else |
---|
3696 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3697 | echo "${ECHO_T}no" >&6 |
---|
3698 | { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5 |
---|
3699 | echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;} |
---|
3700 | { (exit 1); exit 1; }; } |
---|
3701 | fi |
---|
3702 | else |
---|
3703 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3704 | echo "${ECHO_T}no" >&6 |
---|
3705 | { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5 |
---|
3706 | echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;} |
---|
3707 | { (exit 1); exit 1; }; } |
---|
3708 | fi |
---|
3709 | fi |
---|
3710 | else |
---|
3711 | |
---|
3712 | for ac_header in rappture.h |
---|
3713 | do |
---|
3714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3720 | fi |
---|
3721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3723 | else |
---|
3724 | # Is the header compilable? |
---|
3725 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3727 | cat >conftest.$ac_ext <<_ACEOF |
---|
3728 | /* confdefs.h. */ |
---|
3729 | _ACEOF |
---|
3730 | cat confdefs.h >>conftest.$ac_ext |
---|
3731 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3732 | /* end confdefs.h. */ |
---|
3733 | $ac_includes_default |
---|
3734 | #include <$ac_header> |
---|
3735 | _ACEOF |
---|
3736 | rm -f conftest.$ac_objext |
---|
3737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3738 | (eval $ac_compile) 2>conftest.er1 |
---|
3739 | ac_status=$? |
---|
3740 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3741 | rm -f conftest.er1 |
---|
3742 | cat conftest.err >&5 |
---|
3743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3744 | (exit $ac_status); } && |
---|
3745 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3747 | (eval $ac_try) 2>&5 |
---|
3748 | ac_status=$? |
---|
3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3750 | (exit $ac_status); }; } && |
---|
3751 | { ac_try='test -s conftest.$ac_objext' |
---|
3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3753 | (eval $ac_try) 2>&5 |
---|
3754 | ac_status=$? |
---|
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3756 | (exit $ac_status); }; }; then |
---|
3757 | ac_header_compiler=yes |
---|
3758 | else |
---|
3759 | echo "$as_me: failed program was:" >&5 |
---|
3760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3761 | |
---|
3762 | ac_header_compiler=no |
---|
3763 | fi |
---|
3764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3765 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3766 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3767 | |
---|
3768 | # Is the header present? |
---|
3769 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3770 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3771 | cat >conftest.$ac_ext <<_ACEOF |
---|
3772 | /* confdefs.h. */ |
---|
3773 | _ACEOF |
---|
3774 | cat confdefs.h >>conftest.$ac_ext |
---|
3775 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3776 | /* end confdefs.h. */ |
---|
3777 | #include <$ac_header> |
---|
3778 | _ACEOF |
---|
3779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3781 | ac_status=$? |
---|
3782 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3783 | rm -f conftest.er1 |
---|
3784 | cat conftest.err >&5 |
---|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3786 | (exit $ac_status); } >/dev/null; then |
---|
3787 | if test -s conftest.err; then |
---|
3788 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
3789 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
3790 | else |
---|
3791 | ac_cpp_err= |
---|
3792 | fi |
---|
3793 | else |
---|
3794 | ac_cpp_err=yes |
---|
3795 | fi |
---|
3796 | if test -z "$ac_cpp_err"; then |
---|
3797 | ac_header_preproc=yes |
---|
3798 | else |
---|
3799 | echo "$as_me: failed program was:" >&5 |
---|
3800 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3801 | |
---|
3802 | ac_header_preproc=no |
---|
3803 | fi |
---|
3804 | rm -f conftest.err conftest.$ac_ext |
---|
3805 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3806 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3807 | |
---|
3808 | # So? What about this header? |
---|
3809 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
3810 | yes:no: ) |
---|
3811 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3812 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3814 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3815 | ac_header_preproc=yes |
---|
3816 | ;; |
---|
3817 | no:yes:* ) |
---|
3818 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3819 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3820 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3821 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3822 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3823 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3824 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3825 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3827 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3828 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3829 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3830 | ( |
---|
3831 | cat <<\_ASBOX |
---|
3832 | ## ----------------------------------- ## |
---|
3833 | ## Report this to rappture@nanohub.org ## |
---|
3834 | ## ----------------------------------- ## |
---|
3835 | _ASBOX |
---|
3836 | ) | |
---|
3837 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3838 | ;; |
---|
3839 | esac |
---|
3840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3844 | else |
---|
3845 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3846 | fi |
---|
3847 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3848 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3849 | |
---|
3850 | fi |
---|
3851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3852 | cat >>confdefs.h <<_ACEOF |
---|
3853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3854 | _ACEOF |
---|
3855 | |
---|
3856 | else |
---|
3857 | { { echo "$as_me:$LINENO: error: cannot find rappture.h, try using --with-rappture" >&5 |
---|
3858 | echo "$as_me: error: cannot find rappture.h, try using --with-rappture" >&2;} |
---|
3859 | { (exit 1); exit 1; }; } |
---|
3860 | fi |
---|
3861 | |
---|
3862 | done |
---|
3863 | |
---|
3864 | fi |
---|
3865 | echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5 |
---|
3866 | echo "${ECHO_T}${RP_DIR}/include" >&6 |
---|
3867 | |
---|
3868 | |
---|
3869 | |
---|
3870 | |
---|
3871 | |
---|
3872 | ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile pymolproxy/Makefile start_viz.sh" |
---|
3873 | cat >confcache <<\_ACEOF |
---|
3874 | # This file is a shell script that caches the results of configure |
---|
3875 | # tests run on this system so they can be shared between configure |
---|
3876 | # scripts and configure runs, see configure's option --config-cache. |
---|
3877 | # It is not useful on other systems. If it contains results you don't |
---|
3878 | # want to keep, you may remove or edit it. |
---|
3879 | # |
---|
3880 | # config.status only pays attention to the cache file if you give it |
---|
3881 | # the --recheck option to rerun configure. |
---|
3882 | # |
---|
3883 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
3884 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
3885 | # following values. |
---|
3886 | |
---|
3887 | _ACEOF |
---|
3888 | |
---|
3889 | # The following way of writing the cache mishandles newlines in values, |
---|
3890 | # but we know of no workaround that is simple, portable, and efficient. |
---|
3891 | # So, don't put newlines in cache variables' values. |
---|
3892 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3893 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3894 | { |
---|
3895 | (set) 2>&1 | |
---|
3896 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
3897 | *ac_space=\ *) |
---|
3898 | # `set' does not quote correctly, so add quotes (double-quote |
---|
3899 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
3900 | sed -n \ |
---|
3901 | "s/'/'\\\\''/g; |
---|
3902 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
3903 | ;; |
---|
3904 | *) |
---|
3905 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
3906 | sed -n \ |
---|
3907 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
3908 | ;; |
---|
3909 | esac; |
---|
3910 | } | |
---|
3911 | sed ' |
---|
3912 | t clear |
---|
3913 | : clear |
---|
3914 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
3915 | t end |
---|
3916 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
3917 | : end' >>confcache |
---|
3918 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
3919 | if test -w $cache_file; then |
---|
3920 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
3921 | cat confcache >$cache_file |
---|
3922 | else |
---|
3923 | echo "not updating unwritable cache $cache_file" |
---|
3924 | fi |
---|
3925 | fi |
---|
3926 | rm -f confcache |
---|
3927 | |
---|
3928 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3929 | # Let make expand exec_prefix. |
---|
3930 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3931 | |
---|
3932 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
3933 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
3934 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
3935 | # (actually we leave an empty line to preserve line numbers). |
---|
3936 | if test "x$srcdir" = x.; then |
---|
3937 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
3938 | s/:*\$(srcdir):*/:/; |
---|
3939 | s/:*\${srcdir}:*/:/; |
---|
3940 | s/:*@srcdir@:*/:/; |
---|
3941 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
3942 | s/:*$//; |
---|
3943 | s/^[^=]*=[ ]*$//; |
---|
3944 | }' |
---|
3945 | fi |
---|
3946 | |
---|
3947 | # Transform confdefs.h into DEFS. |
---|
3948 | # Protect against shell expansion while executing Makefile rules. |
---|
3949 | # Protect against Makefile macro expansion. |
---|
3950 | # |
---|
3951 | # If the first sed substitution is executed (which looks for macros that |
---|
3952 | # take arguments), then we branch to the quote section. Otherwise, |
---|
3953 | # look for a macro that doesn't take arguments. |
---|
3954 | cat >confdef2opt.sed <<\_ACEOF |
---|
3955 | t clear |
---|
3956 | : clear |
---|
3957 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
3958 | t quote |
---|
3959 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
3960 | t quote |
---|
3961 | d |
---|
3962 | : quote |
---|
3963 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
3964 | s,\[,\\&,g |
---|
3965 | s,\],\\&,g |
---|
3966 | s,\$,$$,g |
---|
3967 | p |
---|
3968 | _ACEOF |
---|
3969 | # We use echo to avoid assuming a particular line-breaking character. |
---|
3970 | # The extra dot is to prevent the shell from consuming trailing |
---|
3971 | # line-breaks from the sub-command output. A line-break within |
---|
3972 | # single-quotes doesn't work because, if this script is created in a |
---|
3973 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
3974 | # would break. |
---|
3975 | ac_LF_and_DOT=`echo; echo .` |
---|
3976 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
3977 | rm -f confdef2opt.sed |
---|
3978 | |
---|
3979 | |
---|
3980 | ac_libobjs= |
---|
3981 | ac_ltlibobjs= |
---|
3982 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
3983 | # 1. Remove the extension, and $U if already installed. |
---|
3984 | ac_i=`echo "$ac_i" | |
---|
3985 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
3986 | # 2. Add them. |
---|
3987 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
3988 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
3989 | done |
---|
3990 | LIBOBJS=$ac_libobjs |
---|
3991 | |
---|
3992 | LTLIBOBJS=$ac_ltlibobjs |
---|
3993 | |
---|
3994 | |
---|
3995 | |
---|
3996 | : ${CONFIG_STATUS=./config.status} |
---|
3997 | ac_clean_files_save=$ac_clean_files |
---|
3998 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
3999 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
4000 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
4001 | cat >$CONFIG_STATUS <<_ACEOF |
---|
4002 | #! $SHELL |
---|
4003 | # Generated by $as_me. |
---|
4004 | # Run this file to recreate the current configuration. |
---|
4005 | # Compiler output produced by configure, useful for debugging |
---|
4006 | # configure, is in config.log if it exists. |
---|
4007 | |
---|
4008 | debug=false |
---|
4009 | ac_cs_recheck=false |
---|
4010 | ac_cs_silent=false |
---|
4011 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
4012 | _ACEOF |
---|
4013 | |
---|
4014 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4015 | ## --------------------- ## |
---|
4016 | ## M4sh Initialization. ## |
---|
4017 | ## --------------------- ## |
---|
4018 | |
---|
4019 | # Be Bourne compatible |
---|
4020 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
4021 | emulate sh |
---|
4022 | NULLCMD=: |
---|
4023 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
4024 | # is contrary to our usage. Disable this feature. |
---|
4025 | alias -g '${1+"$@"}'='"$@"' |
---|
4026 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
4027 | set -o posix |
---|
4028 | fi |
---|
4029 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
4030 | |
---|
4031 | # Support unset when possible. |
---|
4032 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
4033 | as_unset=unset |
---|
4034 | else |
---|
4035 | as_unset=false |
---|
4036 | fi |
---|
4037 | |
---|
4038 | |
---|
4039 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
4040 | $as_unset ENV MAIL MAILPATH |
---|
4041 | PS1='$ ' |
---|
4042 | PS2='> ' |
---|
4043 | PS4='+ ' |
---|
4044 | |
---|
4045 | # NLS nuisances. |
---|
4046 | for as_var in \ |
---|
4047 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
4048 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
4049 | LC_TELEPHONE LC_TIME |
---|
4050 | do |
---|
4051 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
4052 | eval $as_var=C; export $as_var |
---|
4053 | else |
---|
4054 | $as_unset $as_var |
---|
4055 | fi |
---|
4056 | done |
---|
4057 | |
---|
4058 | # Required to use basename. |
---|
4059 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
4060 | as_expr=expr |
---|
4061 | else |
---|
4062 | as_expr=false |
---|
4063 | fi |
---|
4064 | |
---|
4065 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
4066 | as_basename=basename |
---|
4067 | else |
---|
4068 | as_basename=false |
---|
4069 | fi |
---|
4070 | |
---|
4071 | |
---|
4072 | # Name of the executable. |
---|
4073 | as_me=`$as_basename "$0" || |
---|
4074 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
4075 | X"$0" : 'X\(//\)$' \| \ |
---|
4076 | X"$0" : 'X\(/\)$' \| \ |
---|
4077 | . : '\(.\)' 2>/dev/null || |
---|
4078 | echo X/"$0" | |
---|
4079 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
4080 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
4081 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
4082 | s/.*/./; q'` |
---|
4083 | |
---|
4084 | |
---|
4085 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
4086 | # Avoid depending upon Character Ranges. |
---|
4087 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
4088 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
4089 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
4090 | as_cr_digits='0123456789' |
---|
4091 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
4092 | |
---|
4093 | # The user is always right. |
---|
4094 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
4095 | echo "#! /bin/sh" >conf$$.sh |
---|
4096 | echo "exit 0" >>conf$$.sh |
---|
4097 | chmod +x conf$$.sh |
---|
4098 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
4099 | PATH_SEPARATOR=';' |
---|
4100 | else |
---|
4101 | PATH_SEPARATOR=: |
---|
4102 | fi |
---|
4103 | rm -f conf$$.sh |
---|
4104 | fi |
---|
4105 | |
---|
4106 | |
---|
4107 | as_lineno_1=$LINENO |
---|
4108 | as_lineno_2=$LINENO |
---|
4109 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
4110 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
4111 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
4112 | # Find who we are. Look in the path if we contain no path at all |
---|
4113 | # relative or not. |
---|
4114 | case $0 in |
---|
4115 | *[\\/]* ) as_myself=$0 ;; |
---|
4116 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4117 | for as_dir in $PATH |
---|
4118 | do |
---|
4119 | IFS=$as_save_IFS |
---|
4120 | test -z "$as_dir" && as_dir=. |
---|
4121 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
4122 | done |
---|
4123 | |
---|
4124 | ;; |
---|
4125 | esac |
---|
4126 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
4127 | # in which case we are not to be found in the path. |
---|
4128 | if test "x$as_myself" = x; then |
---|
4129 | as_myself=$0 |
---|
4130 | fi |
---|
4131 | if test ! -f "$as_myself"; then |
---|
4132 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
4133 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
4134 | { (exit 1); exit 1; }; } |
---|
4135 | fi |
---|
4136 | case $CONFIG_SHELL in |
---|
4137 | '') |
---|
4138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
4140 | do |
---|
4141 | IFS=$as_save_IFS |
---|
4142 | test -z "$as_dir" && as_dir=. |
---|
4143 | for as_base in sh bash ksh sh5; do |
---|
4144 | case $as_dir in |
---|
4145 | /*) |
---|
4146 | if ("$as_dir/$as_base" -c ' |
---|
4147 | as_lineno_1=$LINENO |
---|
4148 | as_lineno_2=$LINENO |
---|
4149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
4150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
4151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
4152 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
4153 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
4154 | CONFIG_SHELL=$as_dir/$as_base |
---|
4155 | export CONFIG_SHELL |
---|
4156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
4157 | fi;; |
---|
4158 | esac |
---|
4159 | done |
---|
4160 | done |
---|
4161 | ;; |
---|
4162 | esac |
---|
4163 | |
---|
4164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
4165 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
4166 | # line-number line before each line; the second 'sed' does the real |
---|
4167 | # work. The second script uses 'N' to pair each line-number line |
---|
4168 | # with the numbered line, and appends trailing '-' during |
---|
4169 | # substitution so that $LINENO is not a special case at line end. |
---|
4170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
4171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
4172 | sed '=' <$as_myself | |
---|
4173 | sed ' |
---|
4174 | N |
---|
4175 | s,$,-, |
---|
4176 | : loop |
---|
4177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
4178 | t loop |
---|
4179 | s,-$,, |
---|
4180 | s,^['$as_cr_digits']*\n,, |
---|
4181 | ' >$as_me.lineno && |
---|
4182 | chmod +x $as_me.lineno || |
---|
4183 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
4184 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
4185 | { (exit 1); exit 1; }; } |
---|
4186 | |
---|
4187 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
4188 | # (the dirname of $[0] is not the place where we might find the |
---|
4189 | # original and so on. Autoconf is especially sensible to this). |
---|
4190 | . ./$as_me.lineno |
---|
4191 | # Exit status is that of the last command. |
---|
4192 | exit |
---|
4193 | } |
---|
4194 | |
---|
4195 | |
---|
4196 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
4197 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
4198 | ' ECHO_T=' ' ;; |
---|
4199 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
4200 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
4201 | esac |
---|
4202 | |
---|
4203 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
4204 | as_expr=expr |
---|
4205 | else |
---|
4206 | as_expr=false |
---|
4207 | fi |
---|
4208 | |
---|
4209 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4210 | echo >conf$$.file |
---|
4211 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
4212 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
4213 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
4214 | if test -f conf$$.exe; then |
---|
4215 | # Don't use ln at all; we don't have any links |
---|
4216 | as_ln_s='cp -p' |
---|
4217 | else |
---|
4218 | as_ln_s='ln -s' |
---|
4219 | fi |
---|
4220 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
4221 | as_ln_s=ln |
---|
4222 | else |
---|
4223 | as_ln_s='cp -p' |
---|
4224 | fi |
---|
4225 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4226 | |
---|
4227 | if mkdir -p . 2>/dev/null; then |
---|
4228 | as_mkdir_p=: |
---|
4229 | else |
---|
4230 | test -d ./-p && rmdir ./-p |
---|
4231 | as_mkdir_p=false |
---|
4232 | fi |
---|
4233 | |
---|
4234 | as_executable_p="test -f" |
---|
4235 | |
---|
4236 | # Sed expression to map a string onto a valid CPP name. |
---|
4237 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
4238 | |
---|
4239 | # Sed expression to map a string onto a valid variable name. |
---|
4240 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
4241 | |
---|
4242 | |
---|
4243 | # IFS |
---|
4244 | # We need space, tab and new line, in precisely that order. |
---|
4245 | as_nl=' |
---|
4246 | ' |
---|
4247 | IFS=" $as_nl" |
---|
4248 | |
---|
4249 | # CDPATH. |
---|
4250 | $as_unset CDPATH |
---|
4251 | |
---|
4252 | exec 6>&1 |
---|
4253 | |
---|
4254 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
4255 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
4256 | # values after options handling. Logging --version etc. is OK. |
---|
4257 | exec 5>>config.log |
---|
4258 | { |
---|
4259 | echo |
---|
4260 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
4261 | ## Running $as_me. ## |
---|
4262 | _ASBOX |
---|
4263 | } >&5 |
---|
4264 | cat >&5 <<_CSEOF |
---|
4265 | |
---|
4266 | This file was extended by vizservers $as_me 0.1, which was |
---|
4267 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
4268 | |
---|
4269 | CONFIG_FILES = $CONFIG_FILES |
---|
4270 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
4271 | CONFIG_LINKS = $CONFIG_LINKS |
---|
4272 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
4273 | $ $0 $@ |
---|
4274 | |
---|
4275 | _CSEOF |
---|
4276 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
4277 | echo >&5 |
---|
4278 | _ACEOF |
---|
4279 | |
---|
4280 | # Files that config.status was made for. |
---|
4281 | if test -n "$ac_config_files"; then |
---|
4282 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
4283 | fi |
---|
4284 | |
---|
4285 | if test -n "$ac_config_headers"; then |
---|
4286 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
4287 | fi |
---|
4288 | |
---|
4289 | if test -n "$ac_config_links"; then |
---|
4290 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
4291 | fi |
---|
4292 | |
---|
4293 | if test -n "$ac_config_commands"; then |
---|
4294 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
4295 | fi |
---|
4296 | |
---|
4297 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4298 | |
---|
4299 | ac_cs_usage="\ |
---|
4300 | \`$as_me' instantiates files from templates according to the |
---|
4301 | current configuration. |
---|
4302 | |
---|
4303 | Usage: $0 [OPTIONS] [FILE]... |
---|
4304 | |
---|
4305 | -h, --help print this help, then exit |
---|
4306 | -V, --version print version number, then exit |
---|
4307 | -q, --quiet do not print progress messages |
---|
4308 | -d, --debug don't remove temporary files |
---|
4309 | --recheck update $as_me by reconfiguring in the same conditions |
---|
4310 | --file=FILE[:TEMPLATE] |
---|
4311 | instantiate the configuration file FILE |
---|
4312 | |
---|
4313 | Configuration files: |
---|
4314 | $config_files |
---|
4315 | |
---|
4316 | Report bugs to <bug-autoconf@gnu.org>." |
---|
4317 | _ACEOF |
---|
4318 | |
---|
4319 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4320 | ac_cs_version="\\ |
---|
4321 | vizservers config.status 0.1 |
---|
4322 | configured by $0, generated by GNU Autoconf 2.59, |
---|
4323 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
4324 | |
---|
4325 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
4326 | This config.status script is free software; the Free Software Foundation |
---|
4327 | gives unlimited permission to copy, distribute and modify it." |
---|
4328 | srcdir=$srcdir |
---|
4329 | INSTALL="$INSTALL" |
---|
4330 | _ACEOF |
---|
4331 | |
---|
4332 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4333 | # If no file are specified by the user, then we need to provide default |
---|
4334 | # value. By we need to know if files were specified by the user. |
---|
4335 | ac_need_defaults=: |
---|
4336 | while test $# != 0 |
---|
4337 | do |
---|
4338 | case $1 in |
---|
4339 | --*=*) |
---|
4340 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
4341 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
4342 | ac_shift=: |
---|
4343 | ;; |
---|
4344 | -*) |
---|
4345 | ac_option=$1 |
---|
4346 | ac_optarg=$2 |
---|
4347 | ac_shift=shift |
---|
4348 | ;; |
---|
4349 | *) # This is not an option, so the user has probably given explicit |
---|
4350 | # arguments. |
---|
4351 | ac_option=$1 |
---|
4352 | ac_need_defaults=false;; |
---|
4353 | esac |
---|
4354 | |
---|
4355 | case $ac_option in |
---|
4356 | # Handling of the options. |
---|
4357 | _ACEOF |
---|
4358 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4359 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4360 | ac_cs_recheck=: ;; |
---|
4361 | --version | --vers* | -V ) |
---|
4362 | echo "$ac_cs_version"; exit 0 ;; |
---|
4363 | --he | --h) |
---|
4364 | # Conflict between --help and --header |
---|
4365 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
4366 | Try \`$0 --help' for more information." >&5 |
---|
4367 | echo "$as_me: error: ambiguous option: $1 |
---|
4368 | Try \`$0 --help' for more information." >&2;} |
---|
4369 | { (exit 1); exit 1; }; };; |
---|
4370 | --help | --hel | -h ) |
---|
4371 | echo "$ac_cs_usage"; exit 0 ;; |
---|
4372 | --debug | --d* | -d ) |
---|
4373 | debug=: ;; |
---|
4374 | --file | --fil | --fi | --f ) |
---|
4375 | $ac_shift |
---|
4376 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
4377 | ac_need_defaults=false;; |
---|
4378 | --header | --heade | --head | --hea ) |
---|
4379 | $ac_shift |
---|
4380 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
4381 | ac_need_defaults=false;; |
---|
4382 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
4383 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
4384 | ac_cs_silent=: ;; |
---|
4385 | |
---|
4386 | # This is an error. |
---|
4387 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
4388 | Try \`$0 --help' for more information." >&5 |
---|
4389 | echo "$as_me: error: unrecognized option: $1 |
---|
4390 | Try \`$0 --help' for more information." >&2;} |
---|
4391 | { (exit 1); exit 1; }; } ;; |
---|
4392 | |
---|
4393 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
4394 | |
---|
4395 | esac |
---|
4396 | shift |
---|
4397 | done |
---|
4398 | |
---|
4399 | ac_configure_extra_args= |
---|
4400 | |
---|
4401 | if $ac_cs_silent; then |
---|
4402 | exec 6>/dev/null |
---|
4403 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
4404 | fi |
---|
4405 | |
---|
4406 | _ACEOF |
---|
4407 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4408 | if \$ac_cs_recheck; then |
---|
4409 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
4410 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
4411 | fi |
---|
4412 | |
---|
4413 | _ACEOF |
---|
4414 | |
---|
4415 | |
---|
4416 | |
---|
4417 | |
---|
4418 | |
---|
4419 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4420 | for ac_config_target in $ac_config_targets |
---|
4421 | do |
---|
4422 | case "$ac_config_target" in |
---|
4423 | # Handling of arguments. |
---|
4424 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
4425 | "nanoscale/Makefile" ) CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; |
---|
4426 | "nanovis/Makefile" ) CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;; |
---|
4427 | "pymolproxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;; |
---|
4428 | "start_viz.sh" ) CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;; |
---|
4429 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
4430 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
4431 | { (exit 1); exit 1; }; };; |
---|
4432 | esac |
---|
4433 | done |
---|
4434 | |
---|
4435 | # If the user did not use the arguments to specify the items to instantiate, |
---|
4436 | # then the envvar interface is used. Set only those that are not. |
---|
4437 | # We use the long form for the default assignment because of an extremely |
---|
4438 | # bizarre bug on SunOS 4.1.3. |
---|
4439 | if $ac_need_defaults; then |
---|
4440 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
4441 | fi |
---|
4442 | |
---|
4443 | # Have a temporary directory for convenience. Make it in the build tree |
---|
4444 | # simply because there is no reason to put it here, and in addition, |
---|
4445 | # creating and moving files from /tmp can sometimes cause problems. |
---|
4446 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
4447 | $debug || |
---|
4448 | { |
---|
4449 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
4450 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
4451 | } |
---|
4452 | |
---|
4453 | # Create a (secure) tmp directory for tmp files. |
---|
4454 | |
---|
4455 | { |
---|
4456 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
4457 | test -n "$tmp" && test -d "$tmp" |
---|
4458 | } || |
---|
4459 | { |
---|
4460 | tmp=./confstat$$-$RANDOM |
---|
4461 | (umask 077 && mkdir $tmp) |
---|
4462 | } || |
---|
4463 | { |
---|
4464 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
4465 | { (exit 1); exit 1; } |
---|
4466 | } |
---|
4467 | |
---|
4468 | _ACEOF |
---|
4469 | |
---|
4470 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4471 | |
---|
4472 | # |
---|
4473 | # CONFIG_FILES section. |
---|
4474 | # |
---|
4475 | |
---|
4476 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
4477 | # This happens for instance when ./config.status config.h |
---|
4478 | if test -n "\$CONFIG_FILES"; then |
---|
4479 | # Protect against being on the right side of a sed subst in config.status. |
---|
4480 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
4481 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
4482 | s,@SHELL@,$SHELL,;t t |
---|
4483 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
4484 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
4485 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
4486 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
4487 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
4488 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
4489 | s,@exec_prefix@,$exec_prefix,;t t |
---|
4490 | s,@prefix@,$prefix,;t t |
---|
4491 | s,@program_transform_name@,$program_transform_name,;t t |
---|
4492 | s,@bindir@,$bindir,;t t |
---|
4493 | s,@sbindir@,$sbindir,;t t |
---|
4494 | s,@libexecdir@,$libexecdir,;t t |
---|
4495 | s,@datadir@,$datadir,;t t |
---|
4496 | s,@sysconfdir@,$sysconfdir,;t t |
---|
4497 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
4498 | s,@localstatedir@,$localstatedir,;t t |
---|
4499 | s,@libdir@,$libdir,;t t |
---|
4500 | s,@includedir@,$includedir,;t t |
---|
4501 | s,@oldincludedir@,$oldincludedir,;t t |
---|
4502 | s,@infodir@,$infodir,;t t |
---|
4503 | s,@mandir@,$mandir,;t t |
---|
4504 | s,@build_alias@,$build_alias,;t t |
---|
4505 | s,@host_alias@,$host_alias,;t t |
---|
4506 | s,@target_alias@,$target_alias,;t t |
---|
4507 | s,@DEFS@,$DEFS,;t t |
---|
4508 | s,@ECHO_C@,$ECHO_C,;t t |
---|
4509 | s,@ECHO_N@,$ECHO_N,;t t |
---|
4510 | s,@ECHO_T@,$ECHO_T,;t t |
---|
4511 | s,@LIBS@,$LIBS,;t t |
---|
4512 | s,@VERSION@,$VERSION,;t t |
---|
4513 | s,@LIB_SEARCH_DIRS@,$LIB_SEARCH_DIRS,;t t |
---|
4514 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
4515 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
4516 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
4517 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
4518 | s,@CC@,$CC,;t t |
---|
4519 | s,@CFLAGS@,$CFLAGS,;t t |
---|
4520 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
4521 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
4522 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
4523 | s,@EXEEXT@,$EXEEXT,;t t |
---|
4524 | s,@OBJEXT@,$OBJEXT,;t t |
---|
4525 | s,@CXX@,$CXX,;t t |
---|
4526 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
4527 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
4528 | s,@SUBDIRS@,$SUBDIRS,;t t |
---|
4529 | s,@CXXCPP@,$CXXCPP,;t t |
---|
4530 | s,@EGREP@,$EGREP,;t t |
---|
4531 | s,@TCL_LIB_DIR@,$TCL_LIB_DIR,;t t |
---|
4532 | s,@TCL_LIB@,$TCL_LIB,;t t |
---|
4533 | s,@TCL_LIB_VERSION@,$TCL_LIB_VERSION,;t t |
---|
4534 | s,@TCL_INCL_DIR@,$TCL_INCL_DIR,;t t |
---|
4535 | s,@RP2_INCL_DIR@,$RP2_INCL_DIR,;t t |
---|
4536 | s,@RP_DIR@,$RP_DIR,;t t |
---|
4537 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
4538 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
4539 | CEOF |
---|
4540 | |
---|
4541 | _ACEOF |
---|
4542 | |
---|
4543 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4544 | # Split the substitutions into bite-sized pieces for seds with |
---|
4545 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4546 | ac_max_sed_lines=48 |
---|
4547 | ac_sed_frag=1 # Number of current file. |
---|
4548 | ac_beg=1 # First line for current file. |
---|
4549 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
4550 | ac_more_lines=: |
---|
4551 | ac_sed_cmds= |
---|
4552 | while $ac_more_lines; do |
---|
4553 | if test $ac_beg -gt 1; then |
---|
4554 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
4555 | else |
---|
4556 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
4557 | fi |
---|
4558 | if test ! -s $tmp/subs.frag; then |
---|
4559 | ac_more_lines=false |
---|
4560 | else |
---|
4561 | # The purpose of the label and of the branching condition is to |
---|
4562 | # speed up the sed processing (if there are no `@' at all, there |
---|
4563 | # is no need to browse any of the substitutions). |
---|
4564 | # These are the two extra sed commands mentioned above. |
---|
4565 | (echo ':t |
---|
4566 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
4567 | if test -z "$ac_sed_cmds"; then |
---|
4568 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
4569 | else |
---|
4570 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
4571 | fi |
---|
4572 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
4573 | ac_beg=$ac_end |
---|
4574 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
4575 | fi |
---|
4576 | done |
---|
4577 | if test -z "$ac_sed_cmds"; then |
---|
4578 | ac_sed_cmds=cat |
---|
4579 | fi |
---|
4580 | fi # test -n "$CONFIG_FILES" |
---|
4581 | |
---|
4582 | _ACEOF |
---|
4583 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4584 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
4585 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4586 | case $ac_file in |
---|
4587 | - | *:- | *:-:* ) # input from stdin |
---|
4588 | cat >$tmp/stdin |
---|
4589 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
4590 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
4591 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
4592 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
4593 | * ) ac_file_in=$ac_file.in ;; |
---|
4594 | esac |
---|
4595 | |
---|
4596 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
4597 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
4598 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4599 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
4600 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
4601 | X"$ac_file" : 'X\(/\)' \| \ |
---|
4602 | . : '\(.\)' 2>/dev/null || |
---|
4603 | echo X"$ac_file" | |
---|
4604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4605 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4606 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4607 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4608 | s/.*/./; q'` |
---|
4609 | { if $as_mkdir_p; then |
---|
4610 | mkdir -p "$ac_dir" |
---|
4611 | else |
---|
4612 | as_dir="$ac_dir" |
---|
4613 | as_dirs= |
---|
4614 | while test ! -d "$as_dir"; do |
---|
4615 | as_dirs="$as_dir $as_dirs" |
---|
4616 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
4617 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4618 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4619 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4620 | X"$as_dir" : 'X\(/\)' \| \ |
---|
4621 | . : '\(.\)' 2>/dev/null || |
---|
4622 | echo X"$as_dir" | |
---|
4623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4624 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4625 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4626 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4627 | s/.*/./; q'` |
---|
4628 | done |
---|
4629 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
4630 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
4631 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
4632 | { (exit 1); exit 1; }; }; } |
---|
4633 | |
---|
4634 | ac_builddir=. |
---|
4635 | |
---|
4636 | if test "$ac_dir" != .; then |
---|
4637 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
4638 | # A "../" for each directory in $ac_dir_suffix. |
---|
4639 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
4640 | else |
---|
4641 | ac_dir_suffix= ac_top_builddir= |
---|
4642 | fi |
---|
4643 | |
---|
4644 | case $srcdir in |
---|
4645 | .) # No --srcdir option. We are building in place. |
---|
4646 | ac_srcdir=. |
---|
4647 | if test -z "$ac_top_builddir"; then |
---|
4648 | ac_top_srcdir=. |
---|
4649 | else |
---|
4650 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
4651 | fi ;; |
---|
4652 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
4653 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
4654 | ac_top_srcdir=$srcdir ;; |
---|
4655 | *) # Relative path. |
---|
4656 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
4657 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
4658 | esac |
---|
4659 | |
---|
4660 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
4661 | # the directories may not exist. |
---|
4662 | case `pwd` in |
---|
4663 | .) ac_abs_builddir="$ac_dir";; |
---|
4664 | *) |
---|
4665 | case "$ac_dir" in |
---|
4666 | .) ac_abs_builddir=`pwd`;; |
---|
4667 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
4668 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
4669 | esac;; |
---|
4670 | esac |
---|
4671 | case $ac_abs_builddir in |
---|
4672 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4673 | *) |
---|
4674 | case ${ac_top_builddir}. in |
---|
4675 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
4676 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4677 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
4678 | esac;; |
---|
4679 | esac |
---|
4680 | case $ac_abs_builddir in |
---|
4681 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
4682 | *) |
---|
4683 | case $ac_srcdir in |
---|
4684 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
4685 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
4686 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
4687 | esac;; |
---|
4688 | esac |
---|
4689 | case $ac_abs_builddir in |
---|
4690 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4691 | *) |
---|
4692 | case $ac_top_srcdir in |
---|
4693 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
4694 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4695 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
4696 | esac;; |
---|
4697 | esac |
---|
4698 | |
---|
4699 | |
---|
4700 | case $INSTALL in |
---|
4701 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
4702 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
4703 | esac |
---|
4704 | |
---|
4705 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
4706 | # use $as_me), people would be surprised to read: |
---|
4707 | # /* config.h. Generated by config.status. */ |
---|
4708 | if test x"$ac_file" = x-; then |
---|
4709 | configure_input= |
---|
4710 | else |
---|
4711 | configure_input="$ac_file. " |
---|
4712 | fi |
---|
4713 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
4714 | sed 's,.*/,,'` by configure." |
---|
4715 | |
---|
4716 | # First look for the input files in the build tree, otherwise in the |
---|
4717 | # src tree. |
---|
4718 | ac_file_inputs=`IFS=: |
---|
4719 | for f in $ac_file_in; do |
---|
4720 | case $f in |
---|
4721 | -) echo $tmp/stdin ;; |
---|
4722 | [\\/$]*) |
---|
4723 | # Absolute (can't be DOS-style, as IFS=:) |
---|
4724 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
4725 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
4726 | { (exit 1); exit 1; }; } |
---|
4727 | echo "$f";; |
---|
4728 | *) # Relative |
---|
4729 | if test -f "$f"; then |
---|
4730 | # Build tree |
---|
4731 | echo "$f" |
---|
4732 | elif test -f "$srcdir/$f"; then |
---|
4733 | # Source tree |
---|
4734 | echo "$srcdir/$f" |
---|
4735 | else |
---|
4736 | # /dev/null tree |
---|
4737 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
4738 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
4739 | { (exit 1); exit 1; }; } |
---|
4740 | fi;; |
---|
4741 | esac |
---|
4742 | done` || { (exit 1); exit 1; } |
---|
4743 | |
---|
4744 | if test x"$ac_file" != x-; then |
---|
4745 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
4746 | echo "$as_me: creating $ac_file" >&6;} |
---|
4747 | rm -f "$ac_file" |
---|
4748 | fi |
---|
4749 | _ACEOF |
---|
4750 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4751 | sed "$ac_vpsub |
---|
4752 | $extrasub |
---|
4753 | _ACEOF |
---|
4754 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4755 | :t |
---|
4756 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
4757 | s,@configure_input@,$configure_input,;t t |
---|
4758 | s,@srcdir@,$ac_srcdir,;t t |
---|
4759 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
4760 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
4761 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
4762 | s,@builddir@,$ac_builddir,;t t |
---|
4763 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
4764 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
4765 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
4766 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
4767 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
4768 | rm -f $tmp/stdin |
---|
4769 | if test x"$ac_file" != x-; then |
---|
4770 | mv $tmp/out $ac_file |
---|
4771 | else |
---|
4772 | cat $tmp/out |
---|
4773 | rm -f $tmp/out |
---|
4774 | fi |
---|
4775 | |
---|
4776 | done |
---|
4777 | _ACEOF |
---|
4778 | |
---|
4779 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4780 | |
---|
4781 | { (exit 0); exit 0; } |
---|
4782 | _ACEOF |
---|
4783 | chmod +x $CONFIG_STATUS |
---|
4784 | ac_clean_files=$ac_clean_files_save |
---|
4785 | |
---|
4786 | |
---|
4787 | # configure is writing to config.log, and then calls config.status. |
---|
4788 | # config.status does its own redirection, appending to config.log. |
---|
4789 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
4790 | # by configure, so config.status won't be able to write to it; its |
---|
4791 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
4792 | # effectively closing config.log, so it can be properly (re)opened and |
---|
4793 | # appended to by config.status. When coming back to configure, we |
---|
4794 | # need to make the FD available again. |
---|
4795 | if test "$no_create" != yes; then |
---|
4796 | ac_cs_success=: |
---|
4797 | ac_config_status_args= |
---|
4798 | test "$silent" = yes && |
---|
4799 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
4800 | exec 5>/dev/null |
---|
4801 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
4802 | exec 5>>config.log |
---|
4803 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
4804 | # would make configure fail if this is the last instruction. |
---|
4805 | $ac_cs_success || { (exit 1); exit 1; } |
---|
4806 | fi |
---|
4807 | |
---|