1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for vtkvis 1.8. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.org>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
94 | *[\\/]* ) as_myself=$0 ;; |
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
96 | for as_dir in $PATH |
---|
97 | do |
---|
98 | IFS=$as_save_IFS |
---|
99 | test -z "$as_dir" && as_dir=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
102 | IFS=$as_save_IFS |
---|
103 | |
---|
104 | ;; |
---|
105 | esac |
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
107 | # in which case we are not to be found in the path. |
---|
108 | if test "x$as_myself" = x; then |
---|
109 | as_myself=$0 |
---|
110 | fi |
---|
111 | if test ! -f "$as_myself"; then |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
119 | # trigger a bug in pdksh 5.2.14. |
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
121 | do eval test x\${$as_var+set} = xset \ |
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
137 | # Use a proper internal environment variable to ensure we don't fall |
---|
138 | # into an infinite loop, continuously re-executing ourselves. |
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
140 | _as_can_reexec=no; export _as_can_reexec; |
---|
141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
142 | # neutralization value for shells without unset; and this also |
---|
143 | # works around shells that cannot unset nonexistent variables. |
---|
144 | # Preserve -v and -x to the replacement shell. |
---|
145 | BASH_ENV=/dev/null |
---|
146 | ENV=/dev/null |
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
148 | case $- in # (((( |
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
150 | *v* ) as_opts=-v ;; |
---|
151 | *x* ) as_opts=-x ;; |
---|
152 | * ) as_opts= ;; |
---|
153 | esac |
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
156 | # out after a failed `exec'. |
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
158 | as_fn_exit 255 |
---|
159 | fi |
---|
160 | # We don't want this to propagate to other subprocesses. |
---|
161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
162 | if test "x$CONFIG_SHELL" = x; then |
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
164 | emulate sh |
---|
165 | NULLCMD=: |
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
167 | # is contrary to our usage. Disable this feature. |
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
169 | setopt NO_GLOB_SUBST |
---|
170 | else |
---|
171 | case \`(set -o) 2>/dev/null\` in #( |
---|
172 | *posix*) : |
---|
173 | set -o posix ;; #( |
---|
174 | *) : |
---|
175 | ;; |
---|
176 | esac |
---|
177 | fi |
---|
178 | " |
---|
179 | as_required="as_fn_return () { (exit \$1); } |
---|
180 | as_fn_success () { as_fn_return 0; } |
---|
181 | as_fn_failure () { as_fn_return 1; } |
---|
182 | as_fn_ret_success () { return 0; } |
---|
183 | as_fn_ret_failure () { return 1; } |
---|
184 | |
---|
185 | exitcode=0 |
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
191 | |
---|
192 | else |
---|
193 | exitcode=1; echo positional parameters were not saved. |
---|
194 | fi |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
202 | if (eval "$as_required") 2>/dev/null; then : |
---|
203 | as_have_required=yes |
---|
204 | else |
---|
205 | as_have_required=no |
---|
206 | fi |
---|
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
208 | |
---|
209 | else |
---|
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
211 | as_found=false |
---|
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
213 | do |
---|
214 | IFS=$as_save_IFS |
---|
215 | test -z "$as_dir" && as_dir=. |
---|
216 | as_found=: |
---|
217 | case $as_dir in #( |
---|
218 | /*) |
---|
219 | for as_base in sh bash ksh sh5; do |
---|
220 | # Try only shells that exist, to save several forks. |
---|
221 | as_shell=$as_dir/$as_base |
---|
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
226 | break 2 |
---|
227 | fi |
---|
228 | fi |
---|
229 | done;; |
---|
230 | esac |
---|
231 | as_found=false |
---|
232 | done |
---|
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
236 | fi; } |
---|
237 | IFS=$as_save_IFS |
---|
238 | |
---|
239 | |
---|
240 | if test "x$CONFIG_SHELL" != x; then : |
---|
241 | export CONFIG_SHELL |
---|
242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
243 | # neutralization value for shells without unset; and this also |
---|
244 | # works around shells that cannot unset nonexistent variables. |
---|
245 | # Preserve -v and -x to the replacement shell. |
---|
246 | BASH_ENV=/dev/null |
---|
247 | ENV=/dev/null |
---|
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
249 | case $- in # (((( |
---|
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
251 | *v* ) as_opts=-v ;; |
---|
252 | *x* ) as_opts=-x ;; |
---|
253 | * ) as_opts= ;; |
---|
254 | esac |
---|
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
257 | # out after a failed `exec'. |
---|
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
259 | exit 255 |
---|
260 | fi |
---|
261 | |
---|
262 | if test x$as_have_required = xno; then : |
---|
263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
264 | $as_echo "$0: the shells that I found on your system." |
---|
265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
268 | else |
---|
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
270 | $0: rappture@nanohub.org about your system, including any |
---|
271 | $0: error possibly output before this message. Then install |
---|
272 | $0: a modern shell, or manually run the script under such a |
---|
273 | $0: shell if you do have one." |
---|
274 | fi |
---|
275 | exit 1 |
---|
276 | fi |
---|
277 | fi |
---|
278 | fi |
---|
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
280 | export SHELL |
---|
281 | # Unset more variables known to interfere with behavior of common tools. |
---|
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
284 | |
---|
285 | ## --------------------- ## |
---|
286 | ## M4sh Shell Functions. ## |
---|
287 | ## --------------------- ## |
---|
288 | # as_fn_unset VAR |
---|
289 | # --------------- |
---|
290 | # Portably unset VAR. |
---|
291 | as_fn_unset () |
---|
292 | { |
---|
293 | { eval $1=; unset $1;} |
---|
294 | } |
---|
295 | as_unset=as_fn_unset |
---|
296 | |
---|
297 | # as_fn_set_status STATUS |
---|
298 | # ----------------------- |
---|
299 | # Set $? to STATUS, without forking. |
---|
300 | as_fn_set_status () |
---|
301 | { |
---|
302 | return $1 |
---|
303 | } # as_fn_set_status |
---|
304 | |
---|
305 | # as_fn_exit STATUS |
---|
306 | # ----------------- |
---|
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
308 | as_fn_exit () |
---|
309 | { |
---|
310 | set +e |
---|
311 | as_fn_set_status $1 |
---|
312 | exit $1 |
---|
313 | } # as_fn_exit |
---|
314 | |
---|
315 | # as_fn_mkdir_p |
---|
316 | # ------------- |
---|
317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
318 | as_fn_mkdir_p () |
---|
319 | { |
---|
320 | |
---|
321 | case $as_dir in #( |
---|
322 | -*) as_dir=./$as_dir;; |
---|
323 | esac |
---|
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
325 | as_dirs= |
---|
326 | while :; do |
---|
327 | case $as_dir in #( |
---|
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
329 | *) as_qdir=$as_dir;; |
---|
330 | esac |
---|
331 | as_dirs="'$as_qdir' $as_dirs" |
---|
332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
337 | $as_echo X"$as_dir" | |
---|
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
339 | s//\1/ |
---|
340 | q |
---|
341 | } |
---|
342 | /^X\(\/\/\)[^/].*/{ |
---|
343 | s//\1/ |
---|
344 | q |
---|
345 | } |
---|
346 | /^X\(\/\/\)$/{ |
---|
347 | s//\1/ |
---|
348 | q |
---|
349 | } |
---|
350 | /^X\(\/\).*/{ |
---|
351 | s//\1/ |
---|
352 | q |
---|
353 | } |
---|
354 | s/.*/./; q'` |
---|
355 | test -d "$as_dir" && break |
---|
356 | done |
---|
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
362 | |
---|
363 | # as_fn_executable_p FILE |
---|
364 | # ----------------------- |
---|
365 | # Test if FILE is an executable regular file. |
---|
366 | as_fn_executable_p () |
---|
367 | { |
---|
368 | test -f "$1" && test -x "$1" |
---|
369 | } # as_fn_executable_p |
---|
370 | # as_fn_append VAR VALUE |
---|
371 | # ---------------------- |
---|
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
375 | # implementations. |
---|
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
377 | eval 'as_fn_append () |
---|
378 | { |
---|
379 | eval $1+=\$2 |
---|
380 | }' |
---|
381 | else |
---|
382 | as_fn_append () |
---|
383 | { |
---|
384 | eval $1=\$$1\$2 |
---|
385 | } |
---|
386 | fi # as_fn_append |
---|
387 | |
---|
388 | # as_fn_arith ARG... |
---|
389 | # ------------------ |
---|
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
392 | # must be portable across $(()) and expr. |
---|
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
394 | eval 'as_fn_arith () |
---|
395 | { |
---|
396 | as_val=$(( $* )) |
---|
397 | }' |
---|
398 | else |
---|
399 | as_fn_arith () |
---|
400 | { |
---|
401 | as_val=`expr "$@" || test $? -eq 1` |
---|
402 | } |
---|
403 | fi # as_fn_arith |
---|
404 | |
---|
405 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
414 | if test "$4"; then |
---|
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
424 | as_expr=expr |
---|
425 | else |
---|
426 | as_expr=false |
---|
427 | fi |
---|
428 | |
---|
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
430 | as_basename=basename |
---|
431 | else |
---|
432 | as_basename=false |
---|
433 | fi |
---|
434 | |
---|
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
436 | as_dirname=dirname |
---|
437 | else |
---|
438 | as_dirname=false |
---|
439 | fi |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
447 | s//\1/ |
---|
448 | q |
---|
449 | } |
---|
450 | /^X\/\(\/\/\)$/{ |
---|
451 | s//\1/ |
---|
452 | q |
---|
453 | } |
---|
454 | /^X\/\(\/\).*/{ |
---|
455 | s//\1/ |
---|
456 | q |
---|
457 | } |
---|
458 | s/.*/./; q'` |
---|
459 | |
---|
460 | # Avoid depending upon Character Ranges. |
---|
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
464 | as_cr_digits='0123456789' |
---|
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
466 | |
---|
467 | |
---|
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
473 | sed -n ' |
---|
474 | p |
---|
475 | /[$]LINENO/= |
---|
476 | ' <$as_myself | |
---|
477 | sed ' |
---|
478 | s/[$]LINENO.*/&-/ |
---|
479 | t lineno |
---|
480 | b |
---|
481 | :lineno |
---|
482 | N |
---|
483 | :loop |
---|
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
485 | t loop |
---|
486 | s/-\n.*// |
---|
487 | ' >$as_me.lineno && |
---|
488 | chmod +x "$as_me.lineno" || |
---|
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
490 | |
---|
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
492 | # already done that, so ensure we don't try to do so again and fall |
---|
493 | # in an infinite loop. This has already happened in practice. |
---|
494 | _as_can_reexec=no; export _as_can_reexec |
---|
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
496 | # (the dirname of $[0] is not the place where we might find the |
---|
497 | # original and so on. Autoconf is especially sensitive to this). |
---|
498 | . "./$as_me.lineno" |
---|
499 | # Exit status is that of the last command. |
---|
500 | exit |
---|
501 | } |
---|
502 | |
---|
503 | ECHO_C= ECHO_N= ECHO_T= |
---|
504 | case `echo -n x` in #((((( |
---|
505 | -n*) |
---|
506 | case `echo 'xy\c'` in |
---|
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
508 | xy) ECHO_C='\c';; |
---|
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
510 | ECHO_T=' ';; |
---|
511 | esac;; |
---|
512 | *) |
---|
513 | ECHO_N='-n';; |
---|
514 | esac |
---|
515 | |
---|
516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
517 | if test -d conf$$.dir; then |
---|
518 | rm -f conf$$.dir/conf$$.file |
---|
519 | else |
---|
520 | rm -f conf$$.dir |
---|
521 | mkdir conf$$.dir 2>/dev/null |
---|
522 | fi |
---|
523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
525 | as_ln_s='ln -s' |
---|
526 | # ... but there are two gotchas: |
---|
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
543 | if mkdir -p . 2>/dev/null; then |
---|
544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
545 | else |
---|
546 | test -d ./-p && rmdir ./-p |
---|
547 | as_mkdir_p=false |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
553 | # Sed expression to map a string onto a valid CPP name. |
---|
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
555 | |
---|
556 | # Sed expression to map a string onto a valid variable name. |
---|
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='vtkvis' |
---|
582 | PACKAGE_TARNAME='vtkvis' |
---|
583 | PACKAGE_VERSION='1.8' |
---|
584 | PACKAGE_STRING='vtkvis 1.8' |
---|
585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='LTLIBOBJS |
---|
625 | LIBOBJS |
---|
626 | VTK_LIB_DIR |
---|
627 | VTK_INC_DIR |
---|
628 | VTK_VERSION |
---|
629 | TCL_VERSION |
---|
630 | TCL_LIB_SPEC |
---|
631 | TCL_INC_SPEC |
---|
632 | STATSDIR |
---|
633 | EGREP |
---|
634 | GREP |
---|
635 | CXXCPP |
---|
636 | ac_ct_CXX |
---|
637 | CXXFLAGS |
---|
638 | CXX |
---|
639 | CPP |
---|
640 | OBJEXT |
---|
641 | EXEEXT |
---|
642 | ac_ct_CC |
---|
643 | CPPFLAGS |
---|
644 | LDFLAGS |
---|
645 | CFLAGS |
---|
646 | CC |
---|
647 | MKDIR_P |
---|
648 | LN_S |
---|
649 | RANLIB |
---|
650 | INSTALL_DATA |
---|
651 | INSTALL_SCRIPT |
---|
652 | INSTALL_PROGRAM |
---|
653 | target_alias |
---|
654 | host_alias |
---|
655 | build_alias |
---|
656 | LIBS |
---|
657 | ECHO_T |
---|
658 | ECHO_N |
---|
659 | ECHO_C |
---|
660 | DEFS |
---|
661 | mandir |
---|
662 | localedir |
---|
663 | libdir |
---|
664 | psdir |
---|
665 | pdfdir |
---|
666 | dvidir |
---|
667 | htmldir |
---|
668 | infodir |
---|
669 | docdir |
---|
670 | oldincludedir |
---|
671 | includedir |
---|
672 | localstatedir |
---|
673 | sharedstatedir |
---|
674 | sysconfdir |
---|
675 | datadir |
---|
676 | datarootdir |
---|
677 | libexecdir |
---|
678 | sbindir |
---|
679 | bindir |
---|
680 | program_transform_name |
---|
681 | prefix |
---|
682 | exec_prefix |
---|
683 | PACKAGE_URL |
---|
684 | PACKAGE_BUGREPORT |
---|
685 | PACKAGE_STRING |
---|
686 | PACKAGE_VERSION |
---|
687 | PACKAGE_TARNAME |
---|
688 | PACKAGE_NAME |
---|
689 | PATH_SEPARATOR |
---|
690 | SHELL' |
---|
691 | ac_subst_files='' |
---|
692 | ac_user_opts=' |
---|
693 | enable_option_checking |
---|
694 | with_tcllib |
---|
695 | with_vtk_includes |
---|
696 | with_vtk_libs |
---|
697 | with_vtk |
---|
698 | with_statsdir |
---|
699 | ' |
---|
700 | ac_precious_vars='build_alias |
---|
701 | host_alias |
---|
702 | target_alias |
---|
703 | CC |
---|
704 | CFLAGS |
---|
705 | LDFLAGS |
---|
706 | LIBS |
---|
707 | CPPFLAGS |
---|
708 | CPP |
---|
709 | CXX |
---|
710 | CXXFLAGS |
---|
711 | CCC |
---|
712 | CXXCPP' |
---|
713 | |
---|
714 | |
---|
715 | # Initialize some variables set by options. |
---|
716 | ac_init_help= |
---|
717 | ac_init_version=false |
---|
718 | ac_unrecognized_opts= |
---|
719 | ac_unrecognized_sep= |
---|
720 | # The variables have the same names as the options, with |
---|
721 | # dashes changed to underlines. |
---|
722 | cache_file=/dev/null |
---|
723 | exec_prefix=NONE |
---|
724 | no_create= |
---|
725 | no_recursion= |
---|
726 | prefix=NONE |
---|
727 | program_prefix=NONE |
---|
728 | program_suffix=NONE |
---|
729 | program_transform_name=s,x,x, |
---|
730 | silent= |
---|
731 | site= |
---|
732 | srcdir= |
---|
733 | verbose= |
---|
734 | x_includes=NONE |
---|
735 | x_libraries=NONE |
---|
736 | |
---|
737 | # Installation directory options. |
---|
738 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
739 | # and all the variables that are supposed to be based on exec_prefix |
---|
740 | # by default will actually change. |
---|
741 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
742 | # (The list follows the same order as the GNU Coding Standards.) |
---|
743 | bindir='${exec_prefix}/bin' |
---|
744 | sbindir='${exec_prefix}/sbin' |
---|
745 | libexecdir='${exec_prefix}/libexec' |
---|
746 | datarootdir='${prefix}/share' |
---|
747 | datadir='${datarootdir}' |
---|
748 | sysconfdir='${prefix}/etc' |
---|
749 | sharedstatedir='${prefix}/com' |
---|
750 | localstatedir='${prefix}/var' |
---|
751 | includedir='${prefix}/include' |
---|
752 | oldincludedir='/usr/include' |
---|
753 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
754 | infodir='${datarootdir}/info' |
---|
755 | htmldir='${docdir}' |
---|
756 | dvidir='${docdir}' |
---|
757 | pdfdir='${docdir}' |
---|
758 | psdir='${docdir}' |
---|
759 | libdir='${exec_prefix}/lib' |
---|
760 | localedir='${datarootdir}/locale' |
---|
761 | mandir='${datarootdir}/man' |
---|
762 | |
---|
763 | ac_prev= |
---|
764 | ac_dashdash= |
---|
765 | for ac_option |
---|
766 | do |
---|
767 | # If the previous option needs an argument, assign it. |
---|
768 | if test -n "$ac_prev"; then |
---|
769 | eval $ac_prev=\$ac_option |
---|
770 | ac_prev= |
---|
771 | continue |
---|
772 | fi |
---|
773 | |
---|
774 | case $ac_option in |
---|
775 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
776 | *=) ac_optarg= ;; |
---|
777 | *) ac_optarg=yes ;; |
---|
778 | esac |
---|
779 | |
---|
780 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
781 | |
---|
782 | case $ac_dashdash$ac_option in |
---|
783 | --) |
---|
784 | ac_dashdash=yes ;; |
---|
785 | |
---|
786 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
787 | ac_prev=bindir ;; |
---|
788 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
789 | bindir=$ac_optarg ;; |
---|
790 | |
---|
791 | -build | --build | --buil | --bui | --bu) |
---|
792 | ac_prev=build_alias ;; |
---|
793 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
794 | build_alias=$ac_optarg ;; |
---|
795 | |
---|
796 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
797 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
798 | ac_prev=cache_file ;; |
---|
799 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
800 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
801 | cache_file=$ac_optarg ;; |
---|
802 | |
---|
803 | --config-cache | -C) |
---|
804 | cache_file=config.cache ;; |
---|
805 | |
---|
806 | -datadir | --datadir | --datadi | --datad) |
---|
807 | ac_prev=datadir ;; |
---|
808 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
809 | datadir=$ac_optarg ;; |
---|
810 | |
---|
811 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
812 | | --dataroo | --dataro | --datar) |
---|
813 | ac_prev=datarootdir ;; |
---|
814 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
815 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
816 | datarootdir=$ac_optarg ;; |
---|
817 | |
---|
818 | -disable-* | --disable-*) |
---|
819 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
820 | # Reject names that are not valid shell variable names. |
---|
821 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
822 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
823 | ac_useropt_orig=$ac_useropt |
---|
824 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
825 | case $ac_user_opts in |
---|
826 | *" |
---|
827 | "enable_$ac_useropt" |
---|
828 | "*) ;; |
---|
829 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
830 | ac_unrecognized_sep=', ';; |
---|
831 | esac |
---|
832 | eval enable_$ac_useropt=no ;; |
---|
833 | |
---|
834 | -docdir | --docdir | --docdi | --doc | --do) |
---|
835 | ac_prev=docdir ;; |
---|
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
837 | docdir=$ac_optarg ;; |
---|
838 | |
---|
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
840 | ac_prev=dvidir ;; |
---|
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
842 | dvidir=$ac_optarg ;; |
---|
843 | |
---|
844 | -enable-* | --enable-*) |
---|
845 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
846 | # Reject names that are not valid shell variable names. |
---|
847 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
848 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
849 | ac_useropt_orig=$ac_useropt |
---|
850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
851 | case $ac_user_opts in |
---|
852 | *" |
---|
853 | "enable_$ac_useropt" |
---|
854 | "*) ;; |
---|
855 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
856 | ac_unrecognized_sep=', ';; |
---|
857 | esac |
---|
858 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
859 | |
---|
860 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
861 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
862 | | --exec | --exe | --ex) |
---|
863 | ac_prev=exec_prefix ;; |
---|
864 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
865 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
866 | | --exec=* | --exe=* | --ex=*) |
---|
867 | exec_prefix=$ac_optarg ;; |
---|
868 | |
---|
869 | -gas | --gas | --ga | --g) |
---|
870 | # Obsolete; use --with-gas. |
---|
871 | with_gas=yes ;; |
---|
872 | |
---|
873 | -help | --help | --hel | --he | -h) |
---|
874 | ac_init_help=long ;; |
---|
875 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
876 | ac_init_help=recursive ;; |
---|
877 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
878 | ac_init_help=short ;; |
---|
879 | |
---|
880 | -host | --host | --hos | --ho) |
---|
881 | ac_prev=host_alias ;; |
---|
882 | -host=* | --host=* | --hos=* | --ho=*) |
---|
883 | host_alias=$ac_optarg ;; |
---|
884 | |
---|
885 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
886 | ac_prev=htmldir ;; |
---|
887 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
888 | | --ht=*) |
---|
889 | htmldir=$ac_optarg ;; |
---|
890 | |
---|
891 | -includedir | --includedir | --includedi | --included | --include \ |
---|
892 | | --includ | --inclu | --incl | --inc) |
---|
893 | ac_prev=includedir ;; |
---|
894 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
895 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
896 | includedir=$ac_optarg ;; |
---|
897 | |
---|
898 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
899 | ac_prev=infodir ;; |
---|
900 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
901 | infodir=$ac_optarg ;; |
---|
902 | |
---|
903 | -libdir | --libdir | --libdi | --libd) |
---|
904 | ac_prev=libdir ;; |
---|
905 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
906 | libdir=$ac_optarg ;; |
---|
907 | |
---|
908 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
909 | | --libexe | --libex | --libe) |
---|
910 | ac_prev=libexecdir ;; |
---|
911 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
912 | | --libexe=* | --libex=* | --libe=*) |
---|
913 | libexecdir=$ac_optarg ;; |
---|
914 | |
---|
915 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
916 | ac_prev=localedir ;; |
---|
917 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
918 | localedir=$ac_optarg ;; |
---|
919 | |
---|
920 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
921 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
922 | ac_prev=localstatedir ;; |
---|
923 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
924 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
925 | localstatedir=$ac_optarg ;; |
---|
926 | |
---|
927 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
928 | ac_prev=mandir ;; |
---|
929 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
930 | mandir=$ac_optarg ;; |
---|
931 | |
---|
932 | -nfp | --nfp | --nf) |
---|
933 | # Obsolete; use --without-fp. |
---|
934 | with_fp=no ;; |
---|
935 | |
---|
936 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
937 | | --no-cr | --no-c | -n) |
---|
938 | no_create=yes ;; |
---|
939 | |
---|
940 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
941 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
942 | no_recursion=yes ;; |
---|
943 | |
---|
944 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
945 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
946 | | --oldin | --oldi | --old | --ol | --o) |
---|
947 | ac_prev=oldincludedir ;; |
---|
948 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
949 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
950 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
951 | oldincludedir=$ac_optarg ;; |
---|
952 | |
---|
953 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
954 | ac_prev=prefix ;; |
---|
955 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
956 | prefix=$ac_optarg ;; |
---|
957 | |
---|
958 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
959 | | --program-pre | --program-pr | --program-p) |
---|
960 | ac_prev=program_prefix ;; |
---|
961 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
962 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
963 | program_prefix=$ac_optarg ;; |
---|
964 | |
---|
965 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
966 | | --program-suf | --program-su | --program-s) |
---|
967 | ac_prev=program_suffix ;; |
---|
968 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
969 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
970 | program_suffix=$ac_optarg ;; |
---|
971 | |
---|
972 | -program-transform-name | --program-transform-name \ |
---|
973 | | --program-transform-nam | --program-transform-na \ |
---|
974 | | --program-transform-n | --program-transform- \ |
---|
975 | | --program-transform | --program-transfor \ |
---|
976 | | --program-transfo | --program-transf \ |
---|
977 | | --program-trans | --program-tran \ |
---|
978 | | --progr-tra | --program-tr | --program-t) |
---|
979 | ac_prev=program_transform_name ;; |
---|
980 | -program-transform-name=* | --program-transform-name=* \ |
---|
981 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
982 | | --program-transform-n=* | --program-transform-=* \ |
---|
983 | | --program-transform=* | --program-transfor=* \ |
---|
984 | | --program-transfo=* | --program-transf=* \ |
---|
985 | | --program-trans=* | --program-tran=* \ |
---|
986 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
987 | program_transform_name=$ac_optarg ;; |
---|
988 | |
---|
989 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
990 | ac_prev=pdfdir ;; |
---|
991 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
992 | pdfdir=$ac_optarg ;; |
---|
993 | |
---|
994 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
995 | ac_prev=psdir ;; |
---|
996 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
997 | psdir=$ac_optarg ;; |
---|
998 | |
---|
999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1000 | | -silent | --silent | --silen | --sile | --sil) |
---|
1001 | silent=yes ;; |
---|
1002 | |
---|
1003 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1004 | ac_prev=sbindir ;; |
---|
1005 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1006 | | --sbi=* | --sb=*) |
---|
1007 | sbindir=$ac_optarg ;; |
---|
1008 | |
---|
1009 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1010 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1011 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1012 | | --sha | --sh) |
---|
1013 | ac_prev=sharedstatedir ;; |
---|
1014 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1015 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1016 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1017 | | --sha=* | --sh=*) |
---|
1018 | sharedstatedir=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -site | --site | --sit) |
---|
1021 | ac_prev=site ;; |
---|
1022 | -site=* | --site=* | --sit=*) |
---|
1023 | site=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1026 | ac_prev=srcdir ;; |
---|
1027 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1028 | srcdir=$ac_optarg ;; |
---|
1029 | |
---|
1030 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1031 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1032 | ac_prev=sysconfdir ;; |
---|
1033 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1034 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1035 | sysconfdir=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1038 | ac_prev=target_alias ;; |
---|
1039 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1040 | target_alias=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1043 | verbose=yes ;; |
---|
1044 | |
---|
1045 | -version | --version | --versio | --versi | --vers | -V) |
---|
1046 | ac_init_version=: ;; |
---|
1047 | |
---|
1048 | -with-* | --with-*) |
---|
1049 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1050 | # Reject names that are not valid shell variable names. |
---|
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1052 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1053 | ac_useropt_orig=$ac_useropt |
---|
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1055 | case $ac_user_opts in |
---|
1056 | *" |
---|
1057 | "with_$ac_useropt" |
---|
1058 | "*) ;; |
---|
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1060 | ac_unrecognized_sep=', ';; |
---|
1061 | esac |
---|
1062 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1063 | |
---|
1064 | -without-* | --without-*) |
---|
1065 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1066 | # Reject names that are not valid shell variable names. |
---|
1067 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1068 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1069 | ac_useropt_orig=$ac_useropt |
---|
1070 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1071 | case $ac_user_opts in |
---|
1072 | *" |
---|
1073 | "with_$ac_useropt" |
---|
1074 | "*) ;; |
---|
1075 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1076 | ac_unrecognized_sep=', ';; |
---|
1077 | esac |
---|
1078 | eval with_$ac_useropt=no ;; |
---|
1079 | |
---|
1080 | --x) |
---|
1081 | # Obsolete; use --with-x. |
---|
1082 | with_x=yes ;; |
---|
1083 | |
---|
1084 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1085 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1086 | ac_prev=x_includes ;; |
---|
1087 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1088 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1089 | x_includes=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1092 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1093 | ac_prev=x_libraries ;; |
---|
1094 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1095 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1096 | x_libraries=$ac_optarg ;; |
---|
1097 | |
---|
1098 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1099 | Try \`$0 --help' for more information" |
---|
1100 | ;; |
---|
1101 | |
---|
1102 | *=*) |
---|
1103 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1104 | # Reject names that are not valid shell variable names. |
---|
1105 | case $ac_envvar in #( |
---|
1106 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1107 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1108 | esac |
---|
1109 | eval $ac_envvar=\$ac_optarg |
---|
1110 | export $ac_envvar ;; |
---|
1111 | |
---|
1112 | *) |
---|
1113 | # FIXME: should be removed in autoconf 3.0. |
---|
1114 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1115 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1116 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1117 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1118 | ;; |
---|
1119 | |
---|
1120 | esac |
---|
1121 | done |
---|
1122 | |
---|
1123 | if test -n "$ac_prev"; then |
---|
1124 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1125 | as_fn_error $? "missing argument to $ac_option" |
---|
1126 | fi |
---|
1127 | |
---|
1128 | if test -n "$ac_unrecognized_opts"; then |
---|
1129 | case $enable_option_checking in |
---|
1130 | no) ;; |
---|
1131 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1132 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1133 | esac |
---|
1134 | fi |
---|
1135 | |
---|
1136 | # Check all directory arguments for consistency. |
---|
1137 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1138 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1139 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1140 | libdir localedir mandir |
---|
1141 | do |
---|
1142 | eval ac_val=\$$ac_var |
---|
1143 | # Remove trailing slashes. |
---|
1144 | case $ac_val in |
---|
1145 | */ ) |
---|
1146 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1147 | eval $ac_var=\$ac_val;; |
---|
1148 | esac |
---|
1149 | # Be sure to have absolute directory names. |
---|
1150 | case $ac_val in |
---|
1151 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1152 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1153 | esac |
---|
1154 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1155 | done |
---|
1156 | |
---|
1157 | # There might be people who depend on the old broken behavior: `$host' |
---|
1158 | # used to hold the argument of --host etc. |
---|
1159 | # FIXME: To remove some day. |
---|
1160 | build=$build_alias |
---|
1161 | host=$host_alias |
---|
1162 | target=$target_alias |
---|
1163 | |
---|
1164 | # FIXME: To remove some day. |
---|
1165 | if test "x$host_alias" != x; then |
---|
1166 | if test "x$build_alias" = x; then |
---|
1167 | cross_compiling=maybe |
---|
1168 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1169 | cross_compiling=yes |
---|
1170 | fi |
---|
1171 | fi |
---|
1172 | |
---|
1173 | ac_tool_prefix= |
---|
1174 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1175 | |
---|
1176 | test "$silent" = yes && exec 6>/dev/null |
---|
1177 | |
---|
1178 | |
---|
1179 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1180 | ac_ls_di=`ls -di .` && |
---|
1181 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1182 | as_fn_error $? "working directory cannot be determined" |
---|
1183 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1184 | as_fn_error $? "pwd does not report name of working directory" |
---|
1185 | |
---|
1186 | |
---|
1187 | # Find the source files, if location was not specified. |
---|
1188 | if test -z "$srcdir"; then |
---|
1189 | ac_srcdir_defaulted=yes |
---|
1190 | # Try the directory containing this script, then the parent directory. |
---|
1191 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1192 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1193 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1194 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1195 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1196 | $as_echo X"$as_myself" | |
---|
1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1198 | s//\1/ |
---|
1199 | q |
---|
1200 | } |
---|
1201 | /^X\(\/\/\)[^/].*/{ |
---|
1202 | s//\1/ |
---|
1203 | q |
---|
1204 | } |
---|
1205 | /^X\(\/\/\)$/{ |
---|
1206 | s//\1/ |
---|
1207 | q |
---|
1208 | } |
---|
1209 | /^X\(\/\).*/{ |
---|
1210 | s//\1/ |
---|
1211 | q |
---|
1212 | } |
---|
1213 | s/.*/./; q'` |
---|
1214 | srcdir=$ac_confdir |
---|
1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1216 | srcdir=.. |
---|
1217 | fi |
---|
1218 | else |
---|
1219 | ac_srcdir_defaulted=no |
---|
1220 | fi |
---|
1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1223 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1224 | fi |
---|
1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1226 | ac_abs_confdir=`( |
---|
1227 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1228 | pwd)` |
---|
1229 | # When building in place, set srcdir=. |
---|
1230 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1231 | srcdir=. |
---|
1232 | fi |
---|
1233 | # Remove unnecessary trailing slashes from srcdir. |
---|
1234 | # Double slashes in file names in object file debugging info |
---|
1235 | # mess up M-x gdb in Emacs. |
---|
1236 | case $srcdir in |
---|
1237 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1238 | esac |
---|
1239 | for ac_var in $ac_precious_vars; do |
---|
1240 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1241 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1242 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1243 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1244 | done |
---|
1245 | |
---|
1246 | # |
---|
1247 | # Report the --help message. |
---|
1248 | # |
---|
1249 | if test "$ac_init_help" = "long"; then |
---|
1250 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1251 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1252 | cat <<_ACEOF |
---|
1253 | \`configure' configures vtkvis 1.8 to adapt to many kinds of systems. |
---|
1254 | |
---|
1255 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1256 | |
---|
1257 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1258 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1259 | |
---|
1260 | Defaults for the options are specified in brackets. |
---|
1261 | |
---|
1262 | Configuration: |
---|
1263 | -h, --help display this help and exit |
---|
1264 | --help=short display options specific to this package |
---|
1265 | --help=recursive display the short help of all the included packages |
---|
1266 | -V, --version display version information and exit |
---|
1267 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1268 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1269 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1270 | -n, --no-create do not create output files |
---|
1271 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1272 | |
---|
1273 | Installation directories: |
---|
1274 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1275 | [$ac_default_prefix] |
---|
1276 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1277 | [PREFIX] |
---|
1278 | |
---|
1279 | By default, \`make install' will install all the files in |
---|
1280 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1281 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1282 | for instance \`--prefix=\$HOME'. |
---|
1283 | |
---|
1284 | For better control, use the options below. |
---|
1285 | |
---|
1286 | Fine tuning of the installation directories: |
---|
1287 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1288 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1289 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1290 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1291 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1292 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1293 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1294 | --includedir=DIR C header files [PREFIX/include] |
---|
1295 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1296 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1297 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1298 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1299 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1300 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1301 | --docdir=DIR documentation root [DATAROOTDIR/doc/vtkvis] |
---|
1302 | --htmldir=DIR html documentation [DOCDIR] |
---|
1303 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1304 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1305 | --psdir=DIR ps documentation [DOCDIR] |
---|
1306 | _ACEOF |
---|
1307 | |
---|
1308 | cat <<\_ACEOF |
---|
1309 | _ACEOF |
---|
1310 | fi |
---|
1311 | |
---|
1312 | if test -n "$ac_init_help"; then |
---|
1313 | case $ac_init_help in |
---|
1314 | short | recursive ) echo "Configuration of vtkvis 1.8:";; |
---|
1315 | esac |
---|
1316 | cat <<\_ACEOF |
---|
1317 | |
---|
1318 | Optional Packages: |
---|
1319 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1320 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1321 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
1322 | [default=/usr/lib] |
---|
1323 | --with-vtk-includes=DIR location of versioned VTK include dir |
---|
1324 | --with-vtk-libs=DIR VTK libraries are in DIR |
---|
1325 | --with-vtk=VERSION Version of VTK required [default=6.1] |
---|
1326 | --with-statsdir=DIR Write statistics in DIR |
---|
1327 | |
---|
1328 | Some influential environment variables: |
---|
1329 | CC C compiler command |
---|
1330 | CFLAGS C compiler flags |
---|
1331 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1332 | nonstandard directory <lib dir> |
---|
1333 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1334 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1335 | you have headers in a nonstandard directory <include dir> |
---|
1336 | CPP C preprocessor |
---|
1337 | CXX C++ compiler command |
---|
1338 | CXXFLAGS C++ compiler flags |
---|
1339 | CXXCPP C++ preprocessor |
---|
1340 | |
---|
1341 | Use these variables to override the choices made by `configure' or to help |
---|
1342 | it to find libraries and programs with nonstandard names/locations. |
---|
1343 | |
---|
1344 | Report bugs to <rappture@nanohub.org>. |
---|
1345 | _ACEOF |
---|
1346 | ac_status=$? |
---|
1347 | fi |
---|
1348 | |
---|
1349 | if test "$ac_init_help" = "recursive"; then |
---|
1350 | # If there are subdirs, report their specific --help. |
---|
1351 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1352 | test -d "$ac_dir" || |
---|
1353 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1354 | continue |
---|
1355 | ac_builddir=. |
---|
1356 | |
---|
1357 | case "$ac_dir" in |
---|
1358 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1359 | *) |
---|
1360 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1361 | # A ".." for each directory in $ac_dir_suffix. |
---|
1362 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1363 | case $ac_top_builddir_sub in |
---|
1364 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1365 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1366 | esac ;; |
---|
1367 | esac |
---|
1368 | ac_abs_top_builddir=$ac_pwd |
---|
1369 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1370 | # for backward compatibility: |
---|
1371 | ac_top_builddir=$ac_top_build_prefix |
---|
1372 | |
---|
1373 | case $srcdir in |
---|
1374 | .) # We are building in place. |
---|
1375 | ac_srcdir=. |
---|
1376 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1377 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1378 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1379 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1380 | ac_top_srcdir=$srcdir |
---|
1381 | ac_abs_top_srcdir=$srcdir ;; |
---|
1382 | *) # Relative name. |
---|
1383 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1384 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1385 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1386 | esac |
---|
1387 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1388 | |
---|
1389 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1390 | # Check for guested configure. |
---|
1391 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1392 | echo && |
---|
1393 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1394 | elif test -f "$ac_srcdir/configure"; then |
---|
1395 | echo && |
---|
1396 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1397 | else |
---|
1398 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1399 | fi || ac_status=$? |
---|
1400 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1401 | done |
---|
1402 | fi |
---|
1403 | |
---|
1404 | test -n "$ac_init_help" && exit $ac_status |
---|
1405 | if $ac_init_version; then |
---|
1406 | cat <<\_ACEOF |
---|
1407 | vtkvis configure 1.8 |
---|
1408 | generated by GNU Autoconf 2.69 |
---|
1409 | |
---|
1410 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1411 | This configure script is free software; the Free Software Foundation |
---|
1412 | gives unlimited permission to copy, distribute and modify it. |
---|
1413 | _ACEOF |
---|
1414 | exit |
---|
1415 | fi |
---|
1416 | |
---|
1417 | ## ------------------------ ## |
---|
1418 | ## Autoconf initialization. ## |
---|
1419 | ## ------------------------ ## |
---|
1420 | |
---|
1421 | # ac_fn_c_try_compile LINENO |
---|
1422 | # -------------------------- |
---|
1423 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1424 | ac_fn_c_try_compile () |
---|
1425 | { |
---|
1426 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1427 | rm -f conftest.$ac_objext |
---|
1428 | if { { ac_try="$ac_compile" |
---|
1429 | case "(($ac_try" in |
---|
1430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1431 | *) ac_try_echo=$ac_try;; |
---|
1432 | esac |
---|
1433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1434 | $as_echo "$ac_try_echo"; } >&5 |
---|
1435 | (eval "$ac_compile") 2>conftest.err |
---|
1436 | ac_status=$? |
---|
1437 | if test -s conftest.err; then |
---|
1438 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1439 | cat conftest.er1 >&5 |
---|
1440 | mv -f conftest.er1 conftest.err |
---|
1441 | fi |
---|
1442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1443 | test $ac_status = 0; } && { |
---|
1444 | test -z "$ac_c_werror_flag" || |
---|
1445 | test ! -s conftest.err |
---|
1446 | } && test -s conftest.$ac_objext; then : |
---|
1447 | ac_retval=0 |
---|
1448 | else |
---|
1449 | $as_echo "$as_me: failed program was:" >&5 |
---|
1450 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1451 | |
---|
1452 | ac_retval=1 |
---|
1453 | fi |
---|
1454 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1455 | as_fn_set_status $ac_retval |
---|
1456 | |
---|
1457 | } # ac_fn_c_try_compile |
---|
1458 | |
---|
1459 | # ac_fn_c_try_cpp LINENO |
---|
1460 | # ---------------------- |
---|
1461 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1462 | ac_fn_c_try_cpp () |
---|
1463 | { |
---|
1464 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1465 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1466 | case "(($ac_try" in |
---|
1467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1468 | *) ac_try_echo=$ac_try;; |
---|
1469 | esac |
---|
1470 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1471 | $as_echo "$ac_try_echo"; } >&5 |
---|
1472 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1473 | ac_status=$? |
---|
1474 | if test -s conftest.err; then |
---|
1475 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1476 | cat conftest.er1 >&5 |
---|
1477 | mv -f conftest.er1 conftest.err |
---|
1478 | fi |
---|
1479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1480 | test $ac_status = 0; } > conftest.i && { |
---|
1481 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1482 | test ! -s conftest.err |
---|
1483 | }; then : |
---|
1484 | ac_retval=0 |
---|
1485 | else |
---|
1486 | $as_echo "$as_me: failed program was:" >&5 |
---|
1487 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1488 | |
---|
1489 | ac_retval=1 |
---|
1490 | fi |
---|
1491 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1492 | as_fn_set_status $ac_retval |
---|
1493 | |
---|
1494 | } # ac_fn_c_try_cpp |
---|
1495 | |
---|
1496 | # ac_fn_cxx_try_compile LINENO |
---|
1497 | # ---------------------------- |
---|
1498 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1499 | ac_fn_cxx_try_compile () |
---|
1500 | { |
---|
1501 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1502 | rm -f conftest.$ac_objext |
---|
1503 | if { { ac_try="$ac_compile" |
---|
1504 | case "(($ac_try" in |
---|
1505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1506 | *) ac_try_echo=$ac_try;; |
---|
1507 | esac |
---|
1508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1509 | $as_echo "$ac_try_echo"; } >&5 |
---|
1510 | (eval "$ac_compile") 2>conftest.err |
---|
1511 | ac_status=$? |
---|
1512 | if test -s conftest.err; then |
---|
1513 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1514 | cat conftest.er1 >&5 |
---|
1515 | mv -f conftest.er1 conftest.err |
---|
1516 | fi |
---|
1517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1518 | test $ac_status = 0; } && { |
---|
1519 | test -z "$ac_cxx_werror_flag" || |
---|
1520 | test ! -s conftest.err |
---|
1521 | } && test -s conftest.$ac_objext; then : |
---|
1522 | ac_retval=0 |
---|
1523 | else |
---|
1524 | $as_echo "$as_me: failed program was:" >&5 |
---|
1525 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1526 | |
---|
1527 | ac_retval=1 |
---|
1528 | fi |
---|
1529 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1530 | as_fn_set_status $ac_retval |
---|
1531 | |
---|
1532 | } # ac_fn_cxx_try_compile |
---|
1533 | |
---|
1534 | # ac_fn_cxx_try_cpp LINENO |
---|
1535 | # ------------------------ |
---|
1536 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1537 | ac_fn_cxx_try_cpp () |
---|
1538 | { |
---|
1539 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1540 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1541 | case "(($ac_try" in |
---|
1542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1543 | *) ac_try_echo=$ac_try;; |
---|
1544 | esac |
---|
1545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1546 | $as_echo "$ac_try_echo"; } >&5 |
---|
1547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1548 | ac_status=$? |
---|
1549 | if test -s conftest.err; then |
---|
1550 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1551 | cat conftest.er1 >&5 |
---|
1552 | mv -f conftest.er1 conftest.err |
---|
1553 | fi |
---|
1554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1555 | test $ac_status = 0; } > conftest.i && { |
---|
1556 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1557 | test ! -s conftest.err |
---|
1558 | }; then : |
---|
1559 | ac_retval=0 |
---|
1560 | else |
---|
1561 | $as_echo "$as_me: failed program was:" >&5 |
---|
1562 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1563 | |
---|
1564 | ac_retval=1 |
---|
1565 | fi |
---|
1566 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1567 | as_fn_set_status $ac_retval |
---|
1568 | |
---|
1569 | } # ac_fn_cxx_try_cpp |
---|
1570 | |
---|
1571 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1572 | # --------------------------------------------------------- |
---|
1573 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1574 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1575 | # accordingly. |
---|
1576 | ac_fn_cxx_check_header_mongrel () |
---|
1577 | { |
---|
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1579 | if eval \${$3+:} false; then : |
---|
1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1581 | $as_echo_n "checking for $2... " >&6; } |
---|
1582 | if eval \${$3+:} false; then : |
---|
1583 | $as_echo_n "(cached) " >&6 |
---|
1584 | fi |
---|
1585 | eval ac_res=\$$3 |
---|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1587 | $as_echo "$ac_res" >&6; } |
---|
1588 | else |
---|
1589 | # Is the header compilable? |
---|
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1591 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1593 | /* end confdefs.h. */ |
---|
1594 | $4 |
---|
1595 | #include <$2> |
---|
1596 | _ACEOF |
---|
1597 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1598 | ac_header_compiler=yes |
---|
1599 | else |
---|
1600 | ac_header_compiler=no |
---|
1601 | fi |
---|
1602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1604 | $as_echo "$ac_header_compiler" >&6; } |
---|
1605 | |
---|
1606 | # Is the header present? |
---|
1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1608 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1610 | /* end confdefs.h. */ |
---|
1611 | #include <$2> |
---|
1612 | _ACEOF |
---|
1613 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
1614 | ac_header_preproc=yes |
---|
1615 | else |
---|
1616 | ac_header_preproc=no |
---|
1617 | fi |
---|
1618 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1620 | $as_echo "$ac_header_preproc" >&6; } |
---|
1621 | |
---|
1622 | # So? What about this header? |
---|
1623 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
1624 | yes:no: ) |
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1626 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1628 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1629 | ;; |
---|
1630 | no:yes:* ) |
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1632 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1634 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1636 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1638 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1640 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1641 | ( $as_echo "## ----------------------------------- ## |
---|
1642 | ## Report this to rappture@nanohub.org ## |
---|
1643 | ## ----------------------------------- ##" |
---|
1644 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1645 | ;; |
---|
1646 | esac |
---|
1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1648 | $as_echo_n "checking for $2... " >&6; } |
---|
1649 | if eval \${$3+:} false; then : |
---|
1650 | $as_echo_n "(cached) " >&6 |
---|
1651 | else |
---|
1652 | eval "$3=\$ac_header_compiler" |
---|
1653 | fi |
---|
1654 | eval ac_res=\$$3 |
---|
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1656 | $as_echo "$ac_res" >&6; } |
---|
1657 | fi |
---|
1658 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1659 | |
---|
1660 | } # ac_fn_cxx_check_header_mongrel |
---|
1661 | |
---|
1662 | # ac_fn_cxx_try_run LINENO |
---|
1663 | # ------------------------ |
---|
1664 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1665 | # that executables *can* be run. |
---|
1666 | ac_fn_cxx_try_run () |
---|
1667 | { |
---|
1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1669 | if { { ac_try="$ac_link" |
---|
1670 | case "(($ac_try" in |
---|
1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1672 | *) ac_try_echo=$ac_try;; |
---|
1673 | esac |
---|
1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1675 | $as_echo "$ac_try_echo"; } >&5 |
---|
1676 | (eval "$ac_link") 2>&5 |
---|
1677 | ac_status=$? |
---|
1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1679 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1680 | { { case "(($ac_try" in |
---|
1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1682 | *) ac_try_echo=$ac_try;; |
---|
1683 | esac |
---|
1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1685 | $as_echo "$ac_try_echo"; } >&5 |
---|
1686 | (eval "$ac_try") 2>&5 |
---|
1687 | ac_status=$? |
---|
1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1689 | test $ac_status = 0; }; }; then : |
---|
1690 | ac_retval=0 |
---|
1691 | else |
---|
1692 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1693 | $as_echo "$as_me: failed program was:" >&5 |
---|
1694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1695 | |
---|
1696 | ac_retval=$ac_status |
---|
1697 | fi |
---|
1698 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1700 | as_fn_set_status $ac_retval |
---|
1701 | |
---|
1702 | } # ac_fn_cxx_try_run |
---|
1703 | |
---|
1704 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1705 | # --------------------------------------------------------- |
---|
1706 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1707 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1708 | ac_fn_cxx_check_header_compile () |
---|
1709 | { |
---|
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1712 | $as_echo_n "checking for $2... " >&6; } |
---|
1713 | if eval \${$3+:} false; then : |
---|
1714 | $as_echo_n "(cached) " >&6 |
---|
1715 | else |
---|
1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1717 | /* end confdefs.h. */ |
---|
1718 | $4 |
---|
1719 | #include <$2> |
---|
1720 | _ACEOF |
---|
1721 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1722 | eval "$3=yes" |
---|
1723 | else |
---|
1724 | eval "$3=no" |
---|
1725 | fi |
---|
1726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1727 | fi |
---|
1728 | eval ac_res=\$$3 |
---|
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1730 | $as_echo "$ac_res" >&6; } |
---|
1731 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1732 | |
---|
1733 | } # ac_fn_cxx_check_header_compile |
---|
1734 | |
---|
1735 | # ac_fn_cxx_try_link LINENO |
---|
1736 | # ------------------------- |
---|
1737 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1738 | ac_fn_cxx_try_link () |
---|
1739 | { |
---|
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1741 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1742 | if { { ac_try="$ac_link" |
---|
1743 | case "(($ac_try" in |
---|
1744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1745 | *) ac_try_echo=$ac_try;; |
---|
1746 | esac |
---|
1747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1748 | $as_echo "$ac_try_echo"; } >&5 |
---|
1749 | (eval "$ac_link") 2>conftest.err |
---|
1750 | ac_status=$? |
---|
1751 | if test -s conftest.err; then |
---|
1752 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1753 | cat conftest.er1 >&5 |
---|
1754 | mv -f conftest.er1 conftest.err |
---|
1755 | fi |
---|
1756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1757 | test $ac_status = 0; } && { |
---|
1758 | test -z "$ac_cxx_werror_flag" || |
---|
1759 | test ! -s conftest.err |
---|
1760 | } && test -s conftest$ac_exeext && { |
---|
1761 | test "$cross_compiling" = yes || |
---|
1762 | test -x conftest$ac_exeext |
---|
1763 | }; then : |
---|
1764 | ac_retval=0 |
---|
1765 | else |
---|
1766 | $as_echo "$as_me: failed program was:" >&5 |
---|
1767 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1768 | |
---|
1769 | ac_retval=1 |
---|
1770 | fi |
---|
1771 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1772 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1773 | # interfere with the next link command; also delete a directory that is |
---|
1774 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1775 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1777 | as_fn_set_status $ac_retval |
---|
1778 | |
---|
1779 | } # ac_fn_cxx_try_link |
---|
1780 | |
---|
1781 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
1782 | # ------------------------------------ |
---|
1783 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1784 | ac_fn_cxx_check_func () |
---|
1785 | { |
---|
1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1788 | $as_echo_n "checking for $2... " >&6; } |
---|
1789 | if eval \${$3+:} false; then : |
---|
1790 | $as_echo_n "(cached) " >&6 |
---|
1791 | else |
---|
1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1793 | /* end confdefs.h. */ |
---|
1794 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1796 | #define $2 innocuous_$2 |
---|
1797 | |
---|
1798 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1799 | which can conflict with char $2 (); below. |
---|
1800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1801 | <limits.h> exists even on freestanding compilers. */ |
---|
1802 | |
---|
1803 | #ifdef __STDC__ |
---|
1804 | # include <limits.h> |
---|
1805 | #else |
---|
1806 | # include <assert.h> |
---|
1807 | #endif |
---|
1808 | |
---|
1809 | #undef $2 |
---|
1810 | |
---|
1811 | /* Override any GCC internal prototype to avoid an error. |
---|
1812 | Use char because int might match the return type of a GCC |
---|
1813 | builtin and then its argument prototype would still apply. */ |
---|
1814 | #ifdef __cplusplus |
---|
1815 | extern "C" |
---|
1816 | #endif |
---|
1817 | char $2 (); |
---|
1818 | /* The GNU C library defines this for functions which it implements |
---|
1819 | to always fail with ENOSYS. Some functions are actually named |
---|
1820 | something starting with __ and the normal name is an alias. */ |
---|
1821 | #if defined __stub_$2 || defined __stub___$2 |
---|
1822 | choke me |
---|
1823 | #endif |
---|
1824 | |
---|
1825 | int |
---|
1826 | main () |
---|
1827 | { |
---|
1828 | return $2 (); |
---|
1829 | ; |
---|
1830 | return 0; |
---|
1831 | } |
---|
1832 | _ACEOF |
---|
1833 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
1834 | eval "$3=yes" |
---|
1835 | else |
---|
1836 | eval "$3=no" |
---|
1837 | fi |
---|
1838 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1839 | conftest$ac_exeext conftest.$ac_ext |
---|
1840 | fi |
---|
1841 | eval ac_res=\$$3 |
---|
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1843 | $as_echo "$ac_res" >&6; } |
---|
1844 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1845 | |
---|
1846 | } # ac_fn_cxx_check_func |
---|
1847 | cat >config.log <<_ACEOF |
---|
1848 | This file contains any messages produced by compilers while |
---|
1849 | running configure, to aid debugging if configure makes a mistake. |
---|
1850 | |
---|
1851 | It was created by vtkvis $as_me 1.8, which was |
---|
1852 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
1853 | |
---|
1854 | $ $0 $@ |
---|
1855 | |
---|
1856 | _ACEOF |
---|
1857 | exec 5>>config.log |
---|
1858 | { |
---|
1859 | cat <<_ASUNAME |
---|
1860 | ## --------- ## |
---|
1861 | ## Platform. ## |
---|
1862 | ## --------- ## |
---|
1863 | |
---|
1864 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1865 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1866 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1867 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1868 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1869 | |
---|
1870 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1871 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1872 | |
---|
1873 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1874 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1875 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1876 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1877 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1878 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1879 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1880 | |
---|
1881 | _ASUNAME |
---|
1882 | |
---|
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1884 | for as_dir in $PATH |
---|
1885 | do |
---|
1886 | IFS=$as_save_IFS |
---|
1887 | test -z "$as_dir" && as_dir=. |
---|
1888 | $as_echo "PATH: $as_dir" |
---|
1889 | done |
---|
1890 | IFS=$as_save_IFS |
---|
1891 | |
---|
1892 | } >&5 |
---|
1893 | |
---|
1894 | cat >&5 <<_ACEOF |
---|
1895 | |
---|
1896 | |
---|
1897 | ## ----------- ## |
---|
1898 | ## Core tests. ## |
---|
1899 | ## ----------- ## |
---|
1900 | |
---|
1901 | _ACEOF |
---|
1902 | |
---|
1903 | |
---|
1904 | # Keep a trace of the command line. |
---|
1905 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1906 | # Strip out --silent because we don't want to record it for future runs. |
---|
1907 | # Also quote any args containing shell meta-characters. |
---|
1908 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1909 | ac_configure_args= |
---|
1910 | ac_configure_args0= |
---|
1911 | ac_configure_args1= |
---|
1912 | ac_must_keep_next=false |
---|
1913 | for ac_pass in 1 2 |
---|
1914 | do |
---|
1915 | for ac_arg |
---|
1916 | do |
---|
1917 | case $ac_arg in |
---|
1918 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1919 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1920 | | -silent | --silent | --silen | --sile | --sil) |
---|
1921 | continue ;; |
---|
1922 | *\'*) |
---|
1923 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1924 | esac |
---|
1925 | case $ac_pass in |
---|
1926 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1927 | 2) |
---|
1928 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1929 | if test $ac_must_keep_next = true; then |
---|
1930 | ac_must_keep_next=false # Got value, back to normal. |
---|
1931 | else |
---|
1932 | case $ac_arg in |
---|
1933 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1934 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1935 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1936 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1937 | case "$ac_configure_args0 " in |
---|
1938 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1939 | esac |
---|
1940 | ;; |
---|
1941 | -* ) ac_must_keep_next=true ;; |
---|
1942 | esac |
---|
1943 | fi |
---|
1944 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1945 | ;; |
---|
1946 | esac |
---|
1947 | done |
---|
1948 | done |
---|
1949 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1950 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1951 | |
---|
1952 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1953 | # config.log. We remove comments because anyway the quotes in there |
---|
1954 | # would cause problems or look ugly. |
---|
1955 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1956 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1957 | trap 'exit_status=$? |
---|
1958 | # Save into config.log some information that might help in debugging. |
---|
1959 | { |
---|
1960 | echo |
---|
1961 | |
---|
1962 | $as_echo "## ---------------- ## |
---|
1963 | ## Cache variables. ## |
---|
1964 | ## ---------------- ##" |
---|
1965 | echo |
---|
1966 | # The following way of writing the cache mishandles newlines in values, |
---|
1967 | ( |
---|
1968 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1969 | eval ac_val=\$$ac_var |
---|
1970 | case $ac_val in #( |
---|
1971 | *${as_nl}*) |
---|
1972 | case $ac_var in #( |
---|
1973 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1974 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1975 | esac |
---|
1976 | case $ac_var in #( |
---|
1977 | _ | IFS | as_nl) ;; #( |
---|
1978 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1979 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1980 | esac ;; |
---|
1981 | esac |
---|
1982 | done |
---|
1983 | (set) 2>&1 | |
---|
1984 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1985 | *${as_nl}ac_space=\ *) |
---|
1986 | sed -n \ |
---|
1987 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1988 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1989 | ;; #( |
---|
1990 | *) |
---|
1991 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1992 | ;; |
---|
1993 | esac | |
---|
1994 | sort |
---|
1995 | ) |
---|
1996 | echo |
---|
1997 | |
---|
1998 | $as_echo "## ----------------- ## |
---|
1999 | ## Output variables. ## |
---|
2000 | ## ----------------- ##" |
---|
2001 | echo |
---|
2002 | for ac_var in $ac_subst_vars |
---|
2003 | do |
---|
2004 | eval ac_val=\$$ac_var |
---|
2005 | case $ac_val in |
---|
2006 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2007 | esac |
---|
2008 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2009 | done | sort |
---|
2010 | echo |
---|
2011 | |
---|
2012 | if test -n "$ac_subst_files"; then |
---|
2013 | $as_echo "## ------------------- ## |
---|
2014 | ## File substitutions. ## |
---|
2015 | ## ------------------- ##" |
---|
2016 | echo |
---|
2017 | for ac_var in $ac_subst_files |
---|
2018 | do |
---|
2019 | eval ac_val=\$$ac_var |
---|
2020 | case $ac_val in |
---|
2021 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2022 | esac |
---|
2023 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2024 | done | sort |
---|
2025 | echo |
---|
2026 | fi |
---|
2027 | |
---|
2028 | if test -s confdefs.h; then |
---|
2029 | $as_echo "## ----------- ## |
---|
2030 | ## confdefs.h. ## |
---|
2031 | ## ----------- ##" |
---|
2032 | echo |
---|
2033 | cat confdefs.h |
---|
2034 | echo |
---|
2035 | fi |
---|
2036 | test "$ac_signal" != 0 && |
---|
2037 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2038 | $as_echo "$as_me: exit $exit_status" |
---|
2039 | } >&5 |
---|
2040 | rm -f core *.core core.conftest.* && |
---|
2041 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2042 | exit $exit_status |
---|
2043 | ' 0 |
---|
2044 | for ac_signal in 1 2 13 15; do |
---|
2045 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2046 | done |
---|
2047 | ac_signal=0 |
---|
2048 | |
---|
2049 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2050 | rm -f -r conftest* confdefs.h |
---|
2051 | |
---|
2052 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2053 | |
---|
2054 | # Predefined preprocessor variables. |
---|
2055 | |
---|
2056 | cat >>confdefs.h <<_ACEOF |
---|
2057 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2058 | _ACEOF |
---|
2059 | |
---|
2060 | cat >>confdefs.h <<_ACEOF |
---|
2061 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2062 | _ACEOF |
---|
2063 | |
---|
2064 | cat >>confdefs.h <<_ACEOF |
---|
2065 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2066 | _ACEOF |
---|
2067 | |
---|
2068 | cat >>confdefs.h <<_ACEOF |
---|
2069 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2070 | _ACEOF |
---|
2071 | |
---|
2072 | cat >>confdefs.h <<_ACEOF |
---|
2073 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2074 | _ACEOF |
---|
2075 | |
---|
2076 | cat >>confdefs.h <<_ACEOF |
---|
2077 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2078 | _ACEOF |
---|
2079 | |
---|
2080 | |
---|
2081 | # Let the site file select an alternate cache file if it wants to. |
---|
2082 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2083 | ac_site_file1=NONE |
---|
2084 | ac_site_file2=NONE |
---|
2085 | if test -n "$CONFIG_SITE"; then |
---|
2086 | # We do not want a PATH search for config.site. |
---|
2087 | case $CONFIG_SITE in #(( |
---|
2088 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2089 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2090 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2091 | esac |
---|
2092 | elif test "x$prefix" != xNONE; then |
---|
2093 | ac_site_file1=$prefix/share/config.site |
---|
2094 | ac_site_file2=$prefix/etc/config.site |
---|
2095 | else |
---|
2096 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2097 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2098 | fi |
---|
2099 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2100 | do |
---|
2101 | test "x$ac_site_file" = xNONE && continue |
---|
2102 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2104 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2105 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2106 | . "$ac_site_file" \ |
---|
2107 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2108 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2109 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2110 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2111 | fi |
---|
2112 | done |
---|
2113 | |
---|
2114 | if test -r "$cache_file"; then |
---|
2115 | # Some versions of bash will fail to source /dev/null (special files |
---|
2116 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2117 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2119 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2120 | case $cache_file in |
---|
2121 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2122 | *) . "./$cache_file";; |
---|
2123 | esac |
---|
2124 | fi |
---|
2125 | else |
---|
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2127 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2128 | >$cache_file |
---|
2129 | fi |
---|
2130 | |
---|
2131 | # Check that the precious variables saved in the cache have kept the same |
---|
2132 | # value. |
---|
2133 | ac_cache_corrupted=false |
---|
2134 | for ac_var in $ac_precious_vars; do |
---|
2135 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2136 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2137 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2138 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2139 | case $ac_old_set,$ac_new_set in |
---|
2140 | set,) |
---|
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2142 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2143 | ac_cache_corrupted=: ;; |
---|
2144 | ,set) |
---|
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2146 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2147 | ac_cache_corrupted=: ;; |
---|
2148 | ,);; |
---|
2149 | *) |
---|
2150 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2151 | # differences in whitespace do not lead to failure. |
---|
2152 | ac_old_val_w=`echo x $ac_old_val` |
---|
2153 | ac_new_val_w=`echo x $ac_new_val` |
---|
2154 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2156 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2157 | ac_cache_corrupted=: |
---|
2158 | else |
---|
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2160 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2161 | eval $ac_var=\$ac_old_val |
---|
2162 | fi |
---|
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2164 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2166 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2167 | fi;; |
---|
2168 | esac |
---|
2169 | # Pass precious variables to config.status. |
---|
2170 | if test "$ac_new_set" = set; then |
---|
2171 | case $ac_new_val in |
---|
2172 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2173 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2174 | esac |
---|
2175 | case " $ac_configure_args " in |
---|
2176 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2177 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2178 | esac |
---|
2179 | fi |
---|
2180 | done |
---|
2181 | if $ac_cache_corrupted; then |
---|
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2185 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2186 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2187 | fi |
---|
2188 | ## -------------------- ## |
---|
2189 | ## Main body of script. ## |
---|
2190 | ## -------------------- ## |
---|
2191 | |
---|
2192 | ac_ext=c |
---|
2193 | ac_cpp='$CPP $CPPFLAGS' |
---|
2194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2197 | |
---|
2198 | |
---|
2199 | ac_aux_dir= |
---|
2200 | for ac_dir in cf "$srcdir"/cf; do |
---|
2201 | if test -f "$ac_dir/install-sh"; then |
---|
2202 | ac_aux_dir=$ac_dir |
---|
2203 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2204 | break |
---|
2205 | elif test -f "$ac_dir/install.sh"; then |
---|
2206 | ac_aux_dir=$ac_dir |
---|
2207 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2208 | break |
---|
2209 | elif test -f "$ac_dir/shtool"; then |
---|
2210 | ac_aux_dir=$ac_dir |
---|
2211 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2212 | break |
---|
2213 | fi |
---|
2214 | done |
---|
2215 | if test -z "$ac_aux_dir"; then |
---|
2216 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2217 | fi |
---|
2218 | |
---|
2219 | # These three variables are undocumented and unsupported, |
---|
2220 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2221 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2222 | # whose full name contains unusual characters. |
---|
2223 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2224 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2225 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2226 | |
---|
2227 | |
---|
2228 | |
---|
2229 | |
---|
2230 | # Check whether --with-tcllib was given. |
---|
2231 | if test "${with_tcllib+set}" = set; then : |
---|
2232 | withval=$with_tcllib; with_tcllib=$withval |
---|
2233 | else |
---|
2234 | with_tcllib="" |
---|
2235 | fi |
---|
2236 | |
---|
2237 | |
---|
2238 | |
---|
2239 | # Check whether --with-vtk-includes was given. |
---|
2240 | if test "${with_vtk_includes+set}" = set; then : |
---|
2241 | withval=$with_vtk_includes; with_vtk_includes=$withval |
---|
2242 | else |
---|
2243 | with_vtk_includes="" |
---|
2244 | fi |
---|
2245 | |
---|
2246 | |
---|
2247 | |
---|
2248 | # Check whether --with-vtk-libs was given. |
---|
2249 | if test "${with_vtk_libs+set}" = set; then : |
---|
2250 | withval=$with_vtk_libs; with_vtk_libs=$withval |
---|
2251 | else |
---|
2252 | with_vtk_libs="" |
---|
2253 | fi |
---|
2254 | |
---|
2255 | |
---|
2256 | |
---|
2257 | # Check whether --with-vtk was given. |
---|
2258 | if test "${with_vtk+set}" = set; then : |
---|
2259 | withval=$with_vtk; with_vtk=$withval |
---|
2260 | else |
---|
2261 | with_vtk="" |
---|
2262 | fi |
---|
2263 | |
---|
2264 | |
---|
2265 | |
---|
2266 | # Check whether --with-statsdir was given. |
---|
2267 | if test "${with_statsdir+set}" = set; then : |
---|
2268 | withval=$with_statsdir; STATSDIR=$withval |
---|
2269 | else |
---|
2270 | STATSDIR="/var/tmp/visservers" |
---|
2271 | fi |
---|
2272 | |
---|
2273 | |
---|
2274 | #------------------------------------------------------------------------ |
---|
2275 | # Handle the --prefix=... option |
---|
2276 | #------------------------------------------------------------------------ |
---|
2277 | |
---|
2278 | if test "${prefix}" = "NONE"; then |
---|
2279 | prefix=/usr/local |
---|
2280 | fi |
---|
2281 | if test "${exec_prefix}" = "NONE"; then |
---|
2282 | exec_prefix=$prefix |
---|
2283 | fi |
---|
2284 | |
---|
2285 | if test "x${incdir}" == "x"; then |
---|
2286 | incdir=${exec_prefix}/include |
---|
2287 | fi |
---|
2288 | libdir=${exec_prefix}/lib |
---|
2289 | |
---|
2290 | if test "${libdir}" != "${prefix}/lib"; then |
---|
2291 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
2292 | else |
---|
2293 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
2294 | fi |
---|
2295 | |
---|
2296 | # Find a good install program. We prefer a C program (faster), |
---|
2297 | # so one script is as good as another. But avoid the broken or |
---|
2298 | # incompatible versions: |
---|
2299 | # SysV /etc/install, /usr/sbin/install |
---|
2300 | # SunOS /usr/etc/install |
---|
2301 | # IRIX /sbin/install |
---|
2302 | # AIX /bin/install |
---|
2303 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2304 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2305 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2306 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2307 | # OS/2's system install, which has a completely different semantic |
---|
2308 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2309 | # Reject install programs that cannot install multiple files. |
---|
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2311 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2312 | if test -z "$INSTALL"; then |
---|
2313 | if ${ac_cv_path_install+:} false; then : |
---|
2314 | $as_echo_n "(cached) " >&6 |
---|
2315 | else |
---|
2316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2317 | for as_dir in $PATH |
---|
2318 | do |
---|
2319 | IFS=$as_save_IFS |
---|
2320 | test -z "$as_dir" && as_dir=. |
---|
2321 | # Account for people who put trailing slashes in PATH elements. |
---|
2322 | case $as_dir/ in #(( |
---|
2323 | ./ | .// | /[cC]/* | \ |
---|
2324 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2325 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2326 | /usr/ucb/* ) ;; |
---|
2327 | *) |
---|
2328 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2329 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2330 | # by default. |
---|
2331 | for ac_prog in ginstall scoinst install; do |
---|
2332 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2333 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2334 | if test $ac_prog = install && |
---|
2335 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2336 | # AIX install. It has an incompatible calling convention. |
---|
2337 | : |
---|
2338 | elif test $ac_prog = install && |
---|
2339 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2340 | # program-specific install script used by HP pwplus--don't use. |
---|
2341 | : |
---|
2342 | else |
---|
2343 | rm -rf conftest.one conftest.two conftest.dir |
---|
2344 | echo one > conftest.one |
---|
2345 | echo two > conftest.two |
---|
2346 | mkdir conftest.dir |
---|
2347 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2348 | test -s conftest.one && test -s conftest.two && |
---|
2349 | test -s conftest.dir/conftest.one && |
---|
2350 | test -s conftest.dir/conftest.two |
---|
2351 | then |
---|
2352 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2353 | break 3 |
---|
2354 | fi |
---|
2355 | fi |
---|
2356 | fi |
---|
2357 | done |
---|
2358 | done |
---|
2359 | ;; |
---|
2360 | esac |
---|
2361 | |
---|
2362 | done |
---|
2363 | IFS=$as_save_IFS |
---|
2364 | |
---|
2365 | rm -rf conftest.one conftest.two conftest.dir |
---|
2366 | |
---|
2367 | fi |
---|
2368 | if test "${ac_cv_path_install+set}" = set; then |
---|
2369 | INSTALL=$ac_cv_path_install |
---|
2370 | else |
---|
2371 | # As a last resort, use the slow shell script. Don't cache a |
---|
2372 | # value for INSTALL within a source directory, because that will |
---|
2373 | # break other packages using the cache if that directory is |
---|
2374 | # removed, or if the value is a relative name. |
---|
2375 | INSTALL=$ac_install_sh |
---|
2376 | fi |
---|
2377 | fi |
---|
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2379 | $as_echo "$INSTALL" >&6; } |
---|
2380 | |
---|
2381 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2382 | # It thinks the first close brace ends the variable substitution. |
---|
2383 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2384 | |
---|
2385 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2386 | |
---|
2387 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2388 | |
---|
2389 | if test -n "$ac_tool_prefix"; then |
---|
2390 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2391 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2393 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2394 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2395 | $as_echo_n "(cached) " >&6 |
---|
2396 | else |
---|
2397 | if test -n "$RANLIB"; then |
---|
2398 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2399 | else |
---|
2400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2401 | for as_dir in $PATH |
---|
2402 | do |
---|
2403 | IFS=$as_save_IFS |
---|
2404 | test -z "$as_dir" && as_dir=. |
---|
2405 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2407 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2409 | break 2 |
---|
2410 | fi |
---|
2411 | done |
---|
2412 | done |
---|
2413 | IFS=$as_save_IFS |
---|
2414 | |
---|
2415 | fi |
---|
2416 | fi |
---|
2417 | RANLIB=$ac_cv_prog_RANLIB |
---|
2418 | if test -n "$RANLIB"; then |
---|
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2420 | $as_echo "$RANLIB" >&6; } |
---|
2421 | else |
---|
2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2423 | $as_echo "no" >&6; } |
---|
2424 | fi |
---|
2425 | |
---|
2426 | |
---|
2427 | fi |
---|
2428 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2429 | ac_ct_RANLIB=$RANLIB |
---|
2430 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2431 | set dummy ranlib; ac_word=$2 |
---|
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2433 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2434 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2435 | $as_echo_n "(cached) " >&6 |
---|
2436 | else |
---|
2437 | if test -n "$ac_ct_RANLIB"; then |
---|
2438 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2439 | else |
---|
2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2441 | for as_dir in $PATH |
---|
2442 | do |
---|
2443 | IFS=$as_save_IFS |
---|
2444 | test -z "$as_dir" && as_dir=. |
---|
2445 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2447 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2449 | break 2 |
---|
2450 | fi |
---|
2451 | done |
---|
2452 | done |
---|
2453 | IFS=$as_save_IFS |
---|
2454 | |
---|
2455 | fi |
---|
2456 | fi |
---|
2457 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2458 | if test -n "$ac_ct_RANLIB"; then |
---|
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2460 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2461 | else |
---|
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2463 | $as_echo "no" >&6; } |
---|
2464 | fi |
---|
2465 | |
---|
2466 | if test "x$ac_ct_RANLIB" = x; then |
---|
2467 | RANLIB=":" |
---|
2468 | else |
---|
2469 | case $cross_compiling:$ac_tool_warned in |
---|
2470 | yes:) |
---|
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2473 | ac_tool_warned=yes ;; |
---|
2474 | esac |
---|
2475 | RANLIB=$ac_ct_RANLIB |
---|
2476 | fi |
---|
2477 | else |
---|
2478 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2479 | fi |
---|
2480 | |
---|
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2482 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2483 | LN_S=$as_ln_s |
---|
2484 | if test "$LN_S" = "ln -s"; then |
---|
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2486 | $as_echo "yes" >&6; } |
---|
2487 | else |
---|
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2489 | $as_echo "no, using $LN_S" >&6; } |
---|
2490 | fi |
---|
2491 | |
---|
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2493 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2494 | if test -z "$MKDIR_P"; then |
---|
2495 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2496 | $as_echo_n "(cached) " >&6 |
---|
2497 | else |
---|
2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2499 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2500 | do |
---|
2501 | IFS=$as_save_IFS |
---|
2502 | test -z "$as_dir" && as_dir=. |
---|
2503 | for ac_prog in mkdir gmkdir; do |
---|
2504 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2505 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2506 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2507 | 'mkdir (GNU coreutils) '* | \ |
---|
2508 | 'mkdir (coreutils) '* | \ |
---|
2509 | 'mkdir (fileutils) '4.1*) |
---|
2510 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2511 | break 3;; |
---|
2512 | esac |
---|
2513 | done |
---|
2514 | done |
---|
2515 | done |
---|
2516 | IFS=$as_save_IFS |
---|
2517 | |
---|
2518 | fi |
---|
2519 | |
---|
2520 | test -d ./--version && rmdir ./--version |
---|
2521 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2522 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2523 | else |
---|
2524 | # As a last resort, use the slow shell script. Don't cache a |
---|
2525 | # value for MKDIR_P within a source directory, because that will |
---|
2526 | # break other packages using the cache if that directory is |
---|
2527 | # removed, or if the value is a relative name. |
---|
2528 | MKDIR_P="$ac_install_sh -d" |
---|
2529 | fi |
---|
2530 | fi |
---|
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2532 | $as_echo "$MKDIR_P" >&6; } |
---|
2533 | |
---|
2534 | |
---|
2535 | ac_ext=c |
---|
2536 | ac_cpp='$CPP $CPPFLAGS' |
---|
2537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2540 | if test -n "$ac_tool_prefix"; then |
---|
2541 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2542 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2544 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2545 | if ${ac_cv_prog_CC+:} false; then : |
---|
2546 | $as_echo_n "(cached) " >&6 |
---|
2547 | else |
---|
2548 | if test -n "$CC"; then |
---|
2549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2550 | else |
---|
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2552 | for as_dir in $PATH |
---|
2553 | do |
---|
2554 | IFS=$as_save_IFS |
---|
2555 | test -z "$as_dir" && as_dir=. |
---|
2556 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2558 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2560 | break 2 |
---|
2561 | fi |
---|
2562 | done |
---|
2563 | done |
---|
2564 | IFS=$as_save_IFS |
---|
2565 | |
---|
2566 | fi |
---|
2567 | fi |
---|
2568 | CC=$ac_cv_prog_CC |
---|
2569 | if test -n "$CC"; then |
---|
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2571 | $as_echo "$CC" >&6; } |
---|
2572 | else |
---|
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2574 | $as_echo "no" >&6; } |
---|
2575 | fi |
---|
2576 | |
---|
2577 | |
---|
2578 | fi |
---|
2579 | if test -z "$ac_cv_prog_CC"; then |
---|
2580 | ac_ct_CC=$CC |
---|
2581 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2582 | set dummy gcc; ac_word=$2 |
---|
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2584 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2585 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2586 | $as_echo_n "(cached) " >&6 |
---|
2587 | else |
---|
2588 | if test -n "$ac_ct_CC"; then |
---|
2589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2590 | else |
---|
2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2592 | for as_dir in $PATH |
---|
2593 | do |
---|
2594 | IFS=$as_save_IFS |
---|
2595 | test -z "$as_dir" && as_dir=. |
---|
2596 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2598 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2600 | break 2 |
---|
2601 | fi |
---|
2602 | done |
---|
2603 | done |
---|
2604 | IFS=$as_save_IFS |
---|
2605 | |
---|
2606 | fi |
---|
2607 | fi |
---|
2608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2609 | if test -n "$ac_ct_CC"; then |
---|
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2611 | $as_echo "$ac_ct_CC" >&6; } |
---|
2612 | else |
---|
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2614 | $as_echo "no" >&6; } |
---|
2615 | fi |
---|
2616 | |
---|
2617 | if test "x$ac_ct_CC" = x; then |
---|
2618 | CC="" |
---|
2619 | else |
---|
2620 | case $cross_compiling:$ac_tool_warned in |
---|
2621 | yes:) |
---|
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2623 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2624 | ac_tool_warned=yes ;; |
---|
2625 | esac |
---|
2626 | CC=$ac_ct_CC |
---|
2627 | fi |
---|
2628 | else |
---|
2629 | CC="$ac_cv_prog_CC" |
---|
2630 | fi |
---|
2631 | |
---|
2632 | if test -z "$CC"; then |
---|
2633 | if test -n "$ac_tool_prefix"; then |
---|
2634 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2635 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2637 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2638 | if ${ac_cv_prog_CC+:} false; then : |
---|
2639 | $as_echo_n "(cached) " >&6 |
---|
2640 | else |
---|
2641 | if test -n "$CC"; then |
---|
2642 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2643 | else |
---|
2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2645 | for as_dir in $PATH |
---|
2646 | do |
---|
2647 | IFS=$as_save_IFS |
---|
2648 | test -z "$as_dir" && as_dir=. |
---|
2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2651 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2653 | break 2 |
---|
2654 | fi |
---|
2655 | done |
---|
2656 | done |
---|
2657 | IFS=$as_save_IFS |
---|
2658 | |
---|
2659 | fi |
---|
2660 | fi |
---|
2661 | CC=$ac_cv_prog_CC |
---|
2662 | if test -n "$CC"; then |
---|
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2664 | $as_echo "$CC" >&6; } |
---|
2665 | else |
---|
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2667 | $as_echo "no" >&6; } |
---|
2668 | fi |
---|
2669 | |
---|
2670 | |
---|
2671 | fi |
---|
2672 | fi |
---|
2673 | if test -z "$CC"; then |
---|
2674 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2675 | set dummy cc; ac_word=$2 |
---|
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2677 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2678 | if ${ac_cv_prog_CC+:} false; then : |
---|
2679 | $as_echo_n "(cached) " >&6 |
---|
2680 | else |
---|
2681 | if test -n "$CC"; then |
---|
2682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2683 | else |
---|
2684 | ac_prog_rejected=no |
---|
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2686 | for as_dir in $PATH |
---|
2687 | do |
---|
2688 | IFS=$as_save_IFS |
---|
2689 | test -z "$as_dir" && as_dir=. |
---|
2690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2692 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2693 | ac_prog_rejected=yes |
---|
2694 | continue |
---|
2695 | fi |
---|
2696 | ac_cv_prog_CC="cc" |
---|
2697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2698 | break 2 |
---|
2699 | fi |
---|
2700 | done |
---|
2701 | done |
---|
2702 | IFS=$as_save_IFS |
---|
2703 | |
---|
2704 | if test $ac_prog_rejected = yes; then |
---|
2705 | # We found a bogon in the path, so make sure we never use it. |
---|
2706 | set dummy $ac_cv_prog_CC |
---|
2707 | shift |
---|
2708 | if test $# != 0; then |
---|
2709 | # We chose a different compiler from the bogus one. |
---|
2710 | # However, it has the same basename, so the bogon will be chosen |
---|
2711 | # first if we set CC to just the basename; use the full file name. |
---|
2712 | shift |
---|
2713 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2714 | fi |
---|
2715 | fi |
---|
2716 | fi |
---|
2717 | fi |
---|
2718 | CC=$ac_cv_prog_CC |
---|
2719 | if test -n "$CC"; then |
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2721 | $as_echo "$CC" >&6; } |
---|
2722 | else |
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2724 | $as_echo "no" >&6; } |
---|
2725 | fi |
---|
2726 | |
---|
2727 | |
---|
2728 | fi |
---|
2729 | if test -z "$CC"; then |
---|
2730 | if test -n "$ac_tool_prefix"; then |
---|
2731 | for ac_prog in cl.exe |
---|
2732 | do |
---|
2733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2736 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2737 | if ${ac_cv_prog_CC+:} false; then : |
---|
2738 | $as_echo_n "(cached) " >&6 |
---|
2739 | else |
---|
2740 | if test -n "$CC"; then |
---|
2741 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2742 | else |
---|
2743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2744 | for as_dir in $PATH |
---|
2745 | do |
---|
2746 | IFS=$as_save_IFS |
---|
2747 | test -z "$as_dir" && as_dir=. |
---|
2748 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2750 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2752 | break 2 |
---|
2753 | fi |
---|
2754 | done |
---|
2755 | done |
---|
2756 | IFS=$as_save_IFS |
---|
2757 | |
---|
2758 | fi |
---|
2759 | fi |
---|
2760 | CC=$ac_cv_prog_CC |
---|
2761 | if test -n "$CC"; then |
---|
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2763 | $as_echo "$CC" >&6; } |
---|
2764 | else |
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2766 | $as_echo "no" >&6; } |
---|
2767 | fi |
---|
2768 | |
---|
2769 | |
---|
2770 | test -n "$CC" && break |
---|
2771 | done |
---|
2772 | fi |
---|
2773 | if test -z "$CC"; then |
---|
2774 | ac_ct_CC=$CC |
---|
2775 | for ac_prog in cl.exe |
---|
2776 | do |
---|
2777 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2778 | set dummy $ac_prog; ac_word=$2 |
---|
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2780 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2781 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2782 | $as_echo_n "(cached) " >&6 |
---|
2783 | else |
---|
2784 | if test -n "$ac_ct_CC"; then |
---|
2785 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2786 | else |
---|
2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2788 | for as_dir in $PATH |
---|
2789 | do |
---|
2790 | IFS=$as_save_IFS |
---|
2791 | test -z "$as_dir" && as_dir=. |
---|
2792 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2794 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2796 | break 2 |
---|
2797 | fi |
---|
2798 | done |
---|
2799 | done |
---|
2800 | IFS=$as_save_IFS |
---|
2801 | |
---|
2802 | fi |
---|
2803 | fi |
---|
2804 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2805 | if test -n "$ac_ct_CC"; then |
---|
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2807 | $as_echo "$ac_ct_CC" >&6; } |
---|
2808 | else |
---|
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2810 | $as_echo "no" >&6; } |
---|
2811 | fi |
---|
2812 | |
---|
2813 | |
---|
2814 | test -n "$ac_ct_CC" && break |
---|
2815 | done |
---|
2816 | |
---|
2817 | if test "x$ac_ct_CC" = x; then |
---|
2818 | CC="" |
---|
2819 | else |
---|
2820 | case $cross_compiling:$ac_tool_warned in |
---|
2821 | yes:) |
---|
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2824 | ac_tool_warned=yes ;; |
---|
2825 | esac |
---|
2826 | CC=$ac_ct_CC |
---|
2827 | fi |
---|
2828 | fi |
---|
2829 | |
---|
2830 | fi |
---|
2831 | |
---|
2832 | |
---|
2833 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2835 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
2836 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2837 | |
---|
2838 | # Provide some information about the compiler. |
---|
2839 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2840 | set X $ac_compile |
---|
2841 | ac_compiler=$2 |
---|
2842 | for ac_option in --version -v -V -qversion; do |
---|
2843 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2844 | case "(($ac_try" in |
---|
2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2846 | *) ac_try_echo=$ac_try;; |
---|
2847 | esac |
---|
2848 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2849 | $as_echo "$ac_try_echo"; } >&5 |
---|
2850 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2851 | ac_status=$? |
---|
2852 | if test -s conftest.err; then |
---|
2853 | sed '10a\ |
---|
2854 | ... rest of stderr output deleted ... |
---|
2855 | 10q' conftest.err >conftest.er1 |
---|
2856 | cat conftest.er1 >&5 |
---|
2857 | fi |
---|
2858 | rm -f conftest.er1 conftest.err |
---|
2859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2860 | test $ac_status = 0; } |
---|
2861 | done |
---|
2862 | |
---|
2863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2864 | /* end confdefs.h. */ |
---|
2865 | |
---|
2866 | int |
---|
2867 | main () |
---|
2868 | { |
---|
2869 | |
---|
2870 | ; |
---|
2871 | return 0; |
---|
2872 | } |
---|
2873 | _ACEOF |
---|
2874 | ac_clean_files_save=$ac_clean_files |
---|
2875 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2876 | # Try to create an executable without -o first, disregard a.out. |
---|
2877 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2878 | # of exeext. |
---|
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
2880 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2881 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2882 | |
---|
2883 | # The possible output files: |
---|
2884 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2885 | |
---|
2886 | ac_rmfiles= |
---|
2887 | for ac_file in $ac_files |
---|
2888 | do |
---|
2889 | case $ac_file in |
---|
2890 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2891 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2892 | esac |
---|
2893 | done |
---|
2894 | rm -f $ac_rmfiles |
---|
2895 | |
---|
2896 | if { { ac_try="$ac_link_default" |
---|
2897 | case "(($ac_try" in |
---|
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2899 | *) ac_try_echo=$ac_try;; |
---|
2900 | esac |
---|
2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2902 | $as_echo "$ac_try_echo"; } >&5 |
---|
2903 | (eval "$ac_link_default") 2>&5 |
---|
2904 | ac_status=$? |
---|
2905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2906 | test $ac_status = 0; }; then : |
---|
2907 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2908 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2909 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2910 | # so that the user can short-circuit this test for compilers unknown to |
---|
2911 | # Autoconf. |
---|
2912 | for ac_file in $ac_files '' |
---|
2913 | do |
---|
2914 | test -f "$ac_file" || continue |
---|
2915 | case $ac_file in |
---|
2916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2917 | ;; |
---|
2918 | [ab].out ) |
---|
2919 | # We found the default executable, but exeext='' is most |
---|
2920 | # certainly right. |
---|
2921 | break;; |
---|
2922 | *.* ) |
---|
2923 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2924 | then :; else |
---|
2925 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2926 | fi |
---|
2927 | # We set ac_cv_exeext here because the later test for it is not |
---|
2928 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2929 | # argument, so we may need to know it at that point already. |
---|
2930 | # Even if this section looks crufty: it has the advantage of |
---|
2931 | # actually working. |
---|
2932 | break;; |
---|
2933 | * ) |
---|
2934 | break;; |
---|
2935 | esac |
---|
2936 | done |
---|
2937 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2938 | |
---|
2939 | else |
---|
2940 | ac_file='' |
---|
2941 | fi |
---|
2942 | if test -z "$ac_file"; then : |
---|
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2944 | $as_echo "no" >&6; } |
---|
2945 | $as_echo "$as_me: failed program was:" >&5 |
---|
2946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2947 | |
---|
2948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2950 | as_fn_error 77 "C compiler cannot create executables |
---|
2951 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2952 | else |
---|
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2954 | $as_echo "yes" >&6; } |
---|
2955 | fi |
---|
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
2957 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2959 | $as_echo "$ac_file" >&6; } |
---|
2960 | ac_exeext=$ac_cv_exeext |
---|
2961 | |
---|
2962 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2963 | ac_clean_files=$ac_clean_files_save |
---|
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2965 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2966 | if { { ac_try="$ac_link" |
---|
2967 | case "(($ac_try" in |
---|
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2969 | *) ac_try_echo=$ac_try;; |
---|
2970 | esac |
---|
2971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2972 | $as_echo "$ac_try_echo"; } >&5 |
---|
2973 | (eval "$ac_link") 2>&5 |
---|
2974 | ac_status=$? |
---|
2975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2976 | test $ac_status = 0; }; then : |
---|
2977 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2978 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2979 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2980 | # `rm'. |
---|
2981 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2982 | test -f "$ac_file" || continue |
---|
2983 | case $ac_file in |
---|
2984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2985 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2986 | break;; |
---|
2987 | * ) break;; |
---|
2988 | esac |
---|
2989 | done |
---|
2990 | else |
---|
2991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2992 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2993 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
2994 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2995 | fi |
---|
2996 | rm -f conftest conftest$ac_cv_exeext |
---|
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2998 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2999 | |
---|
3000 | rm -f conftest.$ac_ext |
---|
3001 | EXEEXT=$ac_cv_exeext |
---|
3002 | ac_exeext=$EXEEXT |
---|
3003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3004 | /* end confdefs.h. */ |
---|
3005 | #include <stdio.h> |
---|
3006 | int |
---|
3007 | main () |
---|
3008 | { |
---|
3009 | FILE *f = fopen ("conftest.out", "w"); |
---|
3010 | return ferror (f) || fclose (f) != 0; |
---|
3011 | |
---|
3012 | ; |
---|
3013 | return 0; |
---|
3014 | } |
---|
3015 | _ACEOF |
---|
3016 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3017 | # Check that the compiler produces executables we can run. If not, either |
---|
3018 | # the compiler is broken, or we cross compile. |
---|
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3020 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3021 | if test "$cross_compiling" != yes; then |
---|
3022 | { { ac_try="$ac_link" |
---|
3023 | case "(($ac_try" in |
---|
3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3025 | *) ac_try_echo=$ac_try;; |
---|
3026 | esac |
---|
3027 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3028 | $as_echo "$ac_try_echo"; } >&5 |
---|
3029 | (eval "$ac_link") 2>&5 |
---|
3030 | ac_status=$? |
---|
3031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3032 | test $ac_status = 0; } |
---|
3033 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3034 | { { case "(($ac_try" in |
---|
3035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3036 | *) ac_try_echo=$ac_try;; |
---|
3037 | esac |
---|
3038 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3039 | $as_echo "$ac_try_echo"; } >&5 |
---|
3040 | (eval "$ac_try") 2>&5 |
---|
3041 | ac_status=$? |
---|
3042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3043 | test $ac_status = 0; }; }; then |
---|
3044 | cross_compiling=no |
---|
3045 | else |
---|
3046 | if test "$cross_compiling" = maybe; then |
---|
3047 | cross_compiling=yes |
---|
3048 | else |
---|
3049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3051 | as_fn_error $? "cannot run C compiled programs. |
---|
3052 | If you meant to cross compile, use \`--host'. |
---|
3053 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3054 | fi |
---|
3055 | fi |
---|
3056 | fi |
---|
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3058 | $as_echo "$cross_compiling" >&6; } |
---|
3059 | |
---|
3060 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3061 | ac_clean_files=$ac_clean_files_save |
---|
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3063 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3064 | if ${ac_cv_objext+:} false; then : |
---|
3065 | $as_echo_n "(cached) " >&6 |
---|
3066 | else |
---|
3067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3068 | /* end confdefs.h. */ |
---|
3069 | |
---|
3070 | int |
---|
3071 | main () |
---|
3072 | { |
---|
3073 | |
---|
3074 | ; |
---|
3075 | return 0; |
---|
3076 | } |
---|
3077 | _ACEOF |
---|
3078 | rm -f conftest.o conftest.obj |
---|
3079 | if { { ac_try="$ac_compile" |
---|
3080 | case "(($ac_try" in |
---|
3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3082 | *) ac_try_echo=$ac_try;; |
---|
3083 | esac |
---|
3084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3085 | $as_echo "$ac_try_echo"; } >&5 |
---|
3086 | (eval "$ac_compile") 2>&5 |
---|
3087 | ac_status=$? |
---|
3088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3089 | test $ac_status = 0; }; then : |
---|
3090 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3091 | test -f "$ac_file" || continue; |
---|
3092 | case $ac_file in |
---|
3093 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3094 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3095 | break;; |
---|
3096 | esac |
---|
3097 | done |
---|
3098 | else |
---|
3099 | $as_echo "$as_me: failed program was:" >&5 |
---|
3100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3101 | |
---|
3102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3104 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3105 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3106 | fi |
---|
3107 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3108 | fi |
---|
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3110 | $as_echo "$ac_cv_objext" >&6; } |
---|
3111 | OBJEXT=$ac_cv_objext |
---|
3112 | ac_objext=$OBJEXT |
---|
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3114 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3115 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3116 | $as_echo_n "(cached) " >&6 |
---|
3117 | else |
---|
3118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3119 | /* end confdefs.h. */ |
---|
3120 | |
---|
3121 | int |
---|
3122 | main () |
---|
3123 | { |
---|
3124 | #ifndef __GNUC__ |
---|
3125 | choke me |
---|
3126 | #endif |
---|
3127 | |
---|
3128 | ; |
---|
3129 | return 0; |
---|
3130 | } |
---|
3131 | _ACEOF |
---|
3132 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3133 | ac_compiler_gnu=yes |
---|
3134 | else |
---|
3135 | ac_compiler_gnu=no |
---|
3136 | fi |
---|
3137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3138 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3139 | |
---|
3140 | fi |
---|
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3142 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3143 | if test $ac_compiler_gnu = yes; then |
---|
3144 | GCC=yes |
---|
3145 | else |
---|
3146 | GCC= |
---|
3147 | fi |
---|
3148 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3149 | ac_save_CFLAGS=$CFLAGS |
---|
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3151 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3152 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3153 | $as_echo_n "(cached) " >&6 |
---|
3154 | else |
---|
3155 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3156 | ac_c_werror_flag=yes |
---|
3157 | ac_cv_prog_cc_g=no |
---|
3158 | CFLAGS="-g" |
---|
3159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3160 | /* end confdefs.h. */ |
---|
3161 | |
---|
3162 | int |
---|
3163 | main () |
---|
3164 | { |
---|
3165 | |
---|
3166 | ; |
---|
3167 | return 0; |
---|
3168 | } |
---|
3169 | _ACEOF |
---|
3170 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3171 | ac_cv_prog_cc_g=yes |
---|
3172 | else |
---|
3173 | CFLAGS="" |
---|
3174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3175 | /* end confdefs.h. */ |
---|
3176 | |
---|
3177 | int |
---|
3178 | main () |
---|
3179 | { |
---|
3180 | |
---|
3181 | ; |
---|
3182 | return 0; |
---|
3183 | } |
---|
3184 | _ACEOF |
---|
3185 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3186 | |
---|
3187 | else |
---|
3188 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3189 | CFLAGS="-g" |
---|
3190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3191 | /* end confdefs.h. */ |
---|
3192 | |
---|
3193 | int |
---|
3194 | main () |
---|
3195 | { |
---|
3196 | |
---|
3197 | ; |
---|
3198 | return 0; |
---|
3199 | } |
---|
3200 | _ACEOF |
---|
3201 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3202 | ac_cv_prog_cc_g=yes |
---|
3203 | fi |
---|
3204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3205 | fi |
---|
3206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3207 | fi |
---|
3208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3209 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3210 | fi |
---|
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3212 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3213 | if test "$ac_test_CFLAGS" = set; then |
---|
3214 | CFLAGS=$ac_save_CFLAGS |
---|
3215 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3216 | if test "$GCC" = yes; then |
---|
3217 | CFLAGS="-g -O2" |
---|
3218 | else |
---|
3219 | CFLAGS="-g" |
---|
3220 | fi |
---|
3221 | else |
---|
3222 | if test "$GCC" = yes; then |
---|
3223 | CFLAGS="-O2" |
---|
3224 | else |
---|
3225 | CFLAGS= |
---|
3226 | fi |
---|
3227 | fi |
---|
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3229 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3230 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3231 | $as_echo_n "(cached) " >&6 |
---|
3232 | else |
---|
3233 | ac_cv_prog_cc_c89=no |
---|
3234 | ac_save_CC=$CC |
---|
3235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3236 | /* end confdefs.h. */ |
---|
3237 | #include <stdarg.h> |
---|
3238 | #include <stdio.h> |
---|
3239 | struct stat; |
---|
3240 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3241 | struct buf { int x; }; |
---|
3242 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3243 | static char *e (p, i) |
---|
3244 | char **p; |
---|
3245 | int i; |
---|
3246 | { |
---|
3247 | return p[i]; |
---|
3248 | } |
---|
3249 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3250 | { |
---|
3251 | char *s; |
---|
3252 | va_list v; |
---|
3253 | va_start (v,p); |
---|
3254 | s = g (p, va_arg (v,int)); |
---|
3255 | va_end (v); |
---|
3256 | return s; |
---|
3257 | } |
---|
3258 | |
---|
3259 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3260 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3261 | These don't provoke an error unfortunately, instead are silently treated |
---|
3262 | as 'x'. The following induces an error, until -std is added to get |
---|
3263 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3264 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3265 | that's true only with -std. */ |
---|
3266 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3267 | |
---|
3268 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3269 | inside strings and character constants. */ |
---|
3270 | #define FOO(x) 'x' |
---|
3271 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3272 | |
---|
3273 | int test (int i, double x); |
---|
3274 | struct s1 {int (*f) (int a);}; |
---|
3275 | struct s2 {int (*f) (double a);}; |
---|
3276 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3277 | int argc; |
---|
3278 | char **argv; |
---|
3279 | int |
---|
3280 | main () |
---|
3281 | { |
---|
3282 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3283 | ; |
---|
3284 | return 0; |
---|
3285 | } |
---|
3286 | _ACEOF |
---|
3287 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3288 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3289 | do |
---|
3290 | CC="$ac_save_CC $ac_arg" |
---|
3291 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3292 | ac_cv_prog_cc_c89=$ac_arg |
---|
3293 | fi |
---|
3294 | rm -f core conftest.err conftest.$ac_objext |
---|
3295 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3296 | done |
---|
3297 | rm -f conftest.$ac_ext |
---|
3298 | CC=$ac_save_CC |
---|
3299 | |
---|
3300 | fi |
---|
3301 | # AC_CACHE_VAL |
---|
3302 | case "x$ac_cv_prog_cc_c89" in |
---|
3303 | x) |
---|
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3305 | $as_echo "none needed" >&6; } ;; |
---|
3306 | xno) |
---|
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3308 | $as_echo "unsupported" >&6; } ;; |
---|
3309 | *) |
---|
3310 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3312 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3313 | esac |
---|
3314 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3315 | |
---|
3316 | fi |
---|
3317 | |
---|
3318 | ac_ext=c |
---|
3319 | ac_cpp='$CPP $CPPFLAGS' |
---|
3320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3323 | |
---|
3324 | ac_ext=c |
---|
3325 | ac_cpp='$CPP $CPPFLAGS' |
---|
3326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3330 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3331 | # On Suns, sometimes $CPP names a directory. |
---|
3332 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3333 | CPP= |
---|
3334 | fi |
---|
3335 | if test -z "$CPP"; then |
---|
3336 | if ${ac_cv_prog_CPP+:} false; then : |
---|
3337 | $as_echo_n "(cached) " >&6 |
---|
3338 | else |
---|
3339 | # Double quotes because CPP needs to be expanded |
---|
3340 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3341 | do |
---|
3342 | ac_preproc_ok=false |
---|
3343 | for ac_c_preproc_warn_flag in '' yes |
---|
3344 | do |
---|
3345 | # Use a header file that comes with gcc, so configuring glibc |
---|
3346 | # with a fresh cross-compiler works. |
---|
3347 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3348 | # <limits.h> exists even on freestanding compilers. |
---|
3349 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3350 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3352 | /* end confdefs.h. */ |
---|
3353 | #ifdef __STDC__ |
---|
3354 | # include <limits.h> |
---|
3355 | #else |
---|
3356 | # include <assert.h> |
---|
3357 | #endif |
---|
3358 | Syntax error |
---|
3359 | _ACEOF |
---|
3360 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3361 | |
---|
3362 | else |
---|
3363 | # Broken: fails on valid input. |
---|
3364 | continue |
---|
3365 | fi |
---|
3366 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3367 | |
---|
3368 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3369 | # can be detected and how. |
---|
3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3371 | /* end confdefs.h. */ |
---|
3372 | #include <ac_nonexistent.h> |
---|
3373 | _ACEOF |
---|
3374 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3375 | # Broken: success on invalid input. |
---|
3376 | continue |
---|
3377 | else |
---|
3378 | # Passes both tests. |
---|
3379 | ac_preproc_ok=: |
---|
3380 | break |
---|
3381 | fi |
---|
3382 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3383 | |
---|
3384 | done |
---|
3385 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3386 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3387 | if $ac_preproc_ok; then : |
---|
3388 | break |
---|
3389 | fi |
---|
3390 | |
---|
3391 | done |
---|
3392 | ac_cv_prog_CPP=$CPP |
---|
3393 | |
---|
3394 | fi |
---|
3395 | CPP=$ac_cv_prog_CPP |
---|
3396 | else |
---|
3397 | ac_cv_prog_CPP=$CPP |
---|
3398 | fi |
---|
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3400 | $as_echo "$CPP" >&6; } |
---|
3401 | ac_preproc_ok=false |
---|
3402 | for ac_c_preproc_warn_flag in '' yes |
---|
3403 | do |
---|
3404 | # Use a header file that comes with gcc, so configuring glibc |
---|
3405 | # with a fresh cross-compiler works. |
---|
3406 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3407 | # <limits.h> exists even on freestanding compilers. |
---|
3408 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3409 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3411 | /* end confdefs.h. */ |
---|
3412 | #ifdef __STDC__ |
---|
3413 | # include <limits.h> |
---|
3414 | #else |
---|
3415 | # include <assert.h> |
---|
3416 | #endif |
---|
3417 | Syntax error |
---|
3418 | _ACEOF |
---|
3419 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3420 | |
---|
3421 | else |
---|
3422 | # Broken: fails on valid input. |
---|
3423 | continue |
---|
3424 | fi |
---|
3425 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3426 | |
---|
3427 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3428 | # can be detected and how. |
---|
3429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3430 | /* end confdefs.h. */ |
---|
3431 | #include <ac_nonexistent.h> |
---|
3432 | _ACEOF |
---|
3433 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3434 | # Broken: success on invalid input. |
---|
3435 | continue |
---|
3436 | else |
---|
3437 | # Passes both tests. |
---|
3438 | ac_preproc_ok=: |
---|
3439 | break |
---|
3440 | fi |
---|
3441 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3442 | |
---|
3443 | done |
---|
3444 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3445 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3446 | if $ac_preproc_ok; then : |
---|
3447 | |
---|
3448 | else |
---|
3449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3451 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
3452 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3453 | fi |
---|
3454 | |
---|
3455 | ac_ext=c |
---|
3456 | ac_cpp='$CPP $CPPFLAGS' |
---|
3457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3460 | |
---|
3461 | ac_ext=cpp |
---|
3462 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3466 | if test -z "$CXX"; then |
---|
3467 | if test -n "$CCC"; then |
---|
3468 | CXX=$CCC |
---|
3469 | else |
---|
3470 | if test -n "$ac_tool_prefix"; then |
---|
3471 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3472 | do |
---|
3473 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3474 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3476 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3477 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3478 | $as_echo_n "(cached) " >&6 |
---|
3479 | else |
---|
3480 | if test -n "$CXX"; then |
---|
3481 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3482 | else |
---|
3483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3484 | for as_dir in $PATH |
---|
3485 | do |
---|
3486 | IFS=$as_save_IFS |
---|
3487 | test -z "$as_dir" && as_dir=. |
---|
3488 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3490 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3492 | break 2 |
---|
3493 | fi |
---|
3494 | done |
---|
3495 | done |
---|
3496 | IFS=$as_save_IFS |
---|
3497 | |
---|
3498 | fi |
---|
3499 | fi |
---|
3500 | CXX=$ac_cv_prog_CXX |
---|
3501 | if test -n "$CXX"; then |
---|
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3503 | $as_echo "$CXX" >&6; } |
---|
3504 | else |
---|
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3506 | $as_echo "no" >&6; } |
---|
3507 | fi |
---|
3508 | |
---|
3509 | |
---|
3510 | test -n "$CXX" && break |
---|
3511 | done |
---|
3512 | fi |
---|
3513 | if test -z "$CXX"; then |
---|
3514 | ac_ct_CXX=$CXX |
---|
3515 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3516 | do |
---|
3517 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3518 | set dummy $ac_prog; ac_word=$2 |
---|
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3520 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3521 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3522 | $as_echo_n "(cached) " >&6 |
---|
3523 | else |
---|
3524 | if test -n "$ac_ct_CXX"; then |
---|
3525 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3526 | else |
---|
3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3528 | for as_dir in $PATH |
---|
3529 | do |
---|
3530 | IFS=$as_save_IFS |
---|
3531 | test -z "$as_dir" && as_dir=. |
---|
3532 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3534 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3536 | break 2 |
---|
3537 | fi |
---|
3538 | done |
---|
3539 | done |
---|
3540 | IFS=$as_save_IFS |
---|
3541 | |
---|
3542 | fi |
---|
3543 | fi |
---|
3544 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3545 | if test -n "$ac_ct_CXX"; then |
---|
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3547 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3548 | else |
---|
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3550 | $as_echo "no" >&6; } |
---|
3551 | fi |
---|
3552 | |
---|
3553 | |
---|
3554 | test -n "$ac_ct_CXX" && break |
---|
3555 | done |
---|
3556 | |
---|
3557 | if test "x$ac_ct_CXX" = x; then |
---|
3558 | CXX="g++" |
---|
3559 | else |
---|
3560 | case $cross_compiling:$ac_tool_warned in |
---|
3561 | yes:) |
---|
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3563 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3564 | ac_tool_warned=yes ;; |
---|
3565 | esac |
---|
3566 | CXX=$ac_ct_CXX |
---|
3567 | fi |
---|
3568 | fi |
---|
3569 | |
---|
3570 | fi |
---|
3571 | fi |
---|
3572 | # Provide some information about the compiler. |
---|
3573 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3574 | set X $ac_compile |
---|
3575 | ac_compiler=$2 |
---|
3576 | for ac_option in --version -v -V -qversion; do |
---|
3577 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3578 | case "(($ac_try" in |
---|
3579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3580 | *) ac_try_echo=$ac_try;; |
---|
3581 | esac |
---|
3582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3583 | $as_echo "$ac_try_echo"; } >&5 |
---|
3584 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3585 | ac_status=$? |
---|
3586 | if test -s conftest.err; then |
---|
3587 | sed '10a\ |
---|
3588 | ... rest of stderr output deleted ... |
---|
3589 | 10q' conftest.err >conftest.er1 |
---|
3590 | cat conftest.er1 >&5 |
---|
3591 | fi |
---|
3592 | rm -f conftest.er1 conftest.err |
---|
3593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3594 | test $ac_status = 0; } |
---|
3595 | done |
---|
3596 | |
---|
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3598 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3599 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3600 | $as_echo_n "(cached) " >&6 |
---|
3601 | else |
---|
3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3603 | /* end confdefs.h. */ |
---|
3604 | |
---|
3605 | int |
---|
3606 | main () |
---|
3607 | { |
---|
3608 | #ifndef __GNUC__ |
---|
3609 | choke me |
---|
3610 | #endif |
---|
3611 | |
---|
3612 | ; |
---|
3613 | return 0; |
---|
3614 | } |
---|
3615 | _ACEOF |
---|
3616 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3617 | ac_compiler_gnu=yes |
---|
3618 | else |
---|
3619 | ac_compiler_gnu=no |
---|
3620 | fi |
---|
3621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3622 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3623 | |
---|
3624 | fi |
---|
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3626 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3627 | if test $ac_compiler_gnu = yes; then |
---|
3628 | GXX=yes |
---|
3629 | else |
---|
3630 | GXX= |
---|
3631 | fi |
---|
3632 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3633 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3635 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3636 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3637 | $as_echo_n "(cached) " >&6 |
---|
3638 | else |
---|
3639 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3640 | ac_cxx_werror_flag=yes |
---|
3641 | ac_cv_prog_cxx_g=no |
---|
3642 | CXXFLAGS="-g" |
---|
3643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3644 | /* end confdefs.h. */ |
---|
3645 | |
---|
3646 | int |
---|
3647 | main () |
---|
3648 | { |
---|
3649 | |
---|
3650 | ; |
---|
3651 | return 0; |
---|
3652 | } |
---|
3653 | _ACEOF |
---|
3654 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3655 | ac_cv_prog_cxx_g=yes |
---|
3656 | else |
---|
3657 | CXXFLAGS="" |
---|
3658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3659 | /* end confdefs.h. */ |
---|
3660 | |
---|
3661 | int |
---|
3662 | main () |
---|
3663 | { |
---|
3664 | |
---|
3665 | ; |
---|
3666 | return 0; |
---|
3667 | } |
---|
3668 | _ACEOF |
---|
3669 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3670 | |
---|
3671 | else |
---|
3672 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3673 | CXXFLAGS="-g" |
---|
3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3675 | /* end confdefs.h. */ |
---|
3676 | |
---|
3677 | int |
---|
3678 | main () |
---|
3679 | { |
---|
3680 | |
---|
3681 | ; |
---|
3682 | return 0; |
---|
3683 | } |
---|
3684 | _ACEOF |
---|
3685 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3686 | ac_cv_prog_cxx_g=yes |
---|
3687 | fi |
---|
3688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3689 | fi |
---|
3690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3691 | fi |
---|
3692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3693 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3694 | fi |
---|
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3696 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3697 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3698 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3699 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3700 | if test "$GXX" = yes; then |
---|
3701 | CXXFLAGS="-g -O2" |
---|
3702 | else |
---|
3703 | CXXFLAGS="-g" |
---|
3704 | fi |
---|
3705 | else |
---|
3706 | if test "$GXX" = yes; then |
---|
3707 | CXXFLAGS="-O2" |
---|
3708 | else |
---|
3709 | CXXFLAGS= |
---|
3710 | fi |
---|
3711 | fi |
---|
3712 | ac_ext=c |
---|
3713 | ac_cpp='$CPP $CPPFLAGS' |
---|
3714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3717 | |
---|
3718 | ac_ext=cpp |
---|
3719 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
3724 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
3725 | if test -z "$CXXCPP"; then |
---|
3726 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
3727 | $as_echo_n "(cached) " >&6 |
---|
3728 | else |
---|
3729 | # Double quotes because CXXCPP needs to be expanded |
---|
3730 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
3731 | do |
---|
3732 | ac_preproc_ok=false |
---|
3733 | for ac_cxx_preproc_warn_flag in '' yes |
---|
3734 | do |
---|
3735 | # Use a header file that comes with gcc, so configuring glibc |
---|
3736 | # with a fresh cross-compiler works. |
---|
3737 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3738 | # <limits.h> exists even on freestanding compilers. |
---|
3739 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3740 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3742 | /* end confdefs.h. */ |
---|
3743 | #ifdef __STDC__ |
---|
3744 | # include <limits.h> |
---|
3745 | #else |
---|
3746 | # include <assert.h> |
---|
3747 | #endif |
---|
3748 | Syntax error |
---|
3749 | _ACEOF |
---|
3750 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
3751 | |
---|
3752 | else |
---|
3753 | # Broken: fails on valid input. |
---|
3754 | continue |
---|
3755 | fi |
---|
3756 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3757 | |
---|
3758 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3759 | # can be detected and how. |
---|
3760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3761 | /* end confdefs.h. */ |
---|
3762 | #include <ac_nonexistent.h> |
---|
3763 | _ACEOF |
---|
3764 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
3765 | # Broken: success on invalid input. |
---|
3766 | continue |
---|
3767 | else |
---|
3768 | # Passes both tests. |
---|
3769 | ac_preproc_ok=: |
---|
3770 | break |
---|
3771 | fi |
---|
3772 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3773 | |
---|
3774 | done |
---|
3775 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3776 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3777 | if $ac_preproc_ok; then : |
---|
3778 | break |
---|
3779 | fi |
---|
3780 | |
---|
3781 | done |
---|
3782 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
3783 | |
---|
3784 | fi |
---|
3785 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
3786 | else |
---|
3787 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
3788 | fi |
---|
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
3790 | $as_echo "$CXXCPP" >&6; } |
---|
3791 | ac_preproc_ok=false |
---|
3792 | for ac_cxx_preproc_warn_flag in '' yes |
---|
3793 | do |
---|
3794 | # Use a header file that comes with gcc, so configuring glibc |
---|
3795 | # with a fresh cross-compiler works. |
---|
3796 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3797 | # <limits.h> exists even on freestanding compilers. |
---|
3798 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3799 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3801 | /* end confdefs.h. */ |
---|
3802 | #ifdef __STDC__ |
---|
3803 | # include <limits.h> |
---|
3804 | #else |
---|
3805 | # include <assert.h> |
---|
3806 | #endif |
---|
3807 | Syntax error |
---|
3808 | _ACEOF |
---|
3809 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
3810 | |
---|
3811 | else |
---|
3812 | # Broken: fails on valid input. |
---|
3813 | continue |
---|
3814 | fi |
---|
3815 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3816 | |
---|
3817 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3818 | # can be detected and how. |
---|
3819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3820 | /* end confdefs.h. */ |
---|
3821 | #include <ac_nonexistent.h> |
---|
3822 | _ACEOF |
---|
3823 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
3824 | # Broken: success on invalid input. |
---|
3825 | continue |
---|
3826 | else |
---|
3827 | # Passes both tests. |
---|
3828 | ac_preproc_ok=: |
---|
3829 | break |
---|
3830 | fi |
---|
3831 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3832 | |
---|
3833 | done |
---|
3834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3835 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3836 | if $ac_preproc_ok; then : |
---|
3837 | |
---|
3838 | else |
---|
3839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3841 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
3842 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3843 | fi |
---|
3844 | |
---|
3845 | ac_ext=c |
---|
3846 | ac_cpp='$CPP $CPPFLAGS' |
---|
3847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3850 | |
---|
3851 | ac_ext=cpp |
---|
3852 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3856 | if test -z "$CXX"; then |
---|
3857 | if test -n "$CCC"; then |
---|
3858 | CXX=$CCC |
---|
3859 | else |
---|
3860 | if test -n "$ac_tool_prefix"; then |
---|
3861 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3862 | do |
---|
3863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3866 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3867 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3868 | $as_echo_n "(cached) " >&6 |
---|
3869 | else |
---|
3870 | if test -n "$CXX"; then |
---|
3871 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3872 | else |
---|
3873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3874 | for as_dir in $PATH |
---|
3875 | do |
---|
3876 | IFS=$as_save_IFS |
---|
3877 | test -z "$as_dir" && as_dir=. |
---|
3878 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3880 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3882 | break 2 |
---|
3883 | fi |
---|
3884 | done |
---|
3885 | done |
---|
3886 | IFS=$as_save_IFS |
---|
3887 | |
---|
3888 | fi |
---|
3889 | fi |
---|
3890 | CXX=$ac_cv_prog_CXX |
---|
3891 | if test -n "$CXX"; then |
---|
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3893 | $as_echo "$CXX" >&6; } |
---|
3894 | else |
---|
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3896 | $as_echo "no" >&6; } |
---|
3897 | fi |
---|
3898 | |
---|
3899 | |
---|
3900 | test -n "$CXX" && break |
---|
3901 | done |
---|
3902 | fi |
---|
3903 | if test -z "$CXX"; then |
---|
3904 | ac_ct_CXX=$CXX |
---|
3905 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3906 | do |
---|
3907 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3908 | set dummy $ac_prog; ac_word=$2 |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3910 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3911 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3912 | $as_echo_n "(cached) " >&6 |
---|
3913 | else |
---|
3914 | if test -n "$ac_ct_CXX"; then |
---|
3915 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3916 | else |
---|
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3918 | for as_dir in $PATH |
---|
3919 | do |
---|
3920 | IFS=$as_save_IFS |
---|
3921 | test -z "$as_dir" && as_dir=. |
---|
3922 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3924 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3926 | break 2 |
---|
3927 | fi |
---|
3928 | done |
---|
3929 | done |
---|
3930 | IFS=$as_save_IFS |
---|
3931 | |
---|
3932 | fi |
---|
3933 | fi |
---|
3934 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3935 | if test -n "$ac_ct_CXX"; then |
---|
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3937 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3938 | else |
---|
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3940 | $as_echo "no" >&6; } |
---|
3941 | fi |
---|
3942 | |
---|
3943 | |
---|
3944 | test -n "$ac_ct_CXX" && break |
---|
3945 | done |
---|
3946 | |
---|
3947 | if test "x$ac_ct_CXX" = x; then |
---|
3948 | CXX="g++" |
---|
3949 | else |
---|
3950 | case $cross_compiling:$ac_tool_warned in |
---|
3951 | yes:) |
---|
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3954 | ac_tool_warned=yes ;; |
---|
3955 | esac |
---|
3956 | CXX=$ac_ct_CXX |
---|
3957 | fi |
---|
3958 | fi |
---|
3959 | |
---|
3960 | fi |
---|
3961 | fi |
---|
3962 | # Provide some information about the compiler. |
---|
3963 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3964 | set X $ac_compile |
---|
3965 | ac_compiler=$2 |
---|
3966 | for ac_option in --version -v -V -qversion; do |
---|
3967 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3968 | case "(($ac_try" in |
---|
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3970 | *) ac_try_echo=$ac_try;; |
---|
3971 | esac |
---|
3972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3973 | $as_echo "$ac_try_echo"; } >&5 |
---|
3974 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3975 | ac_status=$? |
---|
3976 | if test -s conftest.err; then |
---|
3977 | sed '10a\ |
---|
3978 | ... rest of stderr output deleted ... |
---|
3979 | 10q' conftest.err >conftest.er1 |
---|
3980 | cat conftest.er1 >&5 |
---|
3981 | fi |
---|
3982 | rm -f conftest.er1 conftest.err |
---|
3983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3984 | test $ac_status = 0; } |
---|
3985 | done |
---|
3986 | |
---|
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3988 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3989 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3990 | $as_echo_n "(cached) " >&6 |
---|
3991 | else |
---|
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3993 | /* end confdefs.h. */ |
---|
3994 | |
---|
3995 | int |
---|
3996 | main () |
---|
3997 | { |
---|
3998 | #ifndef __GNUC__ |
---|
3999 | choke me |
---|
4000 | #endif |
---|
4001 | |
---|
4002 | ; |
---|
4003 | return 0; |
---|
4004 | } |
---|
4005 | _ACEOF |
---|
4006 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4007 | ac_compiler_gnu=yes |
---|
4008 | else |
---|
4009 | ac_compiler_gnu=no |
---|
4010 | fi |
---|
4011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4012 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
4013 | |
---|
4014 | fi |
---|
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
4016 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
4017 | if test $ac_compiler_gnu = yes; then |
---|
4018 | GXX=yes |
---|
4019 | else |
---|
4020 | GXX= |
---|
4021 | fi |
---|
4022 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
4023 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
4025 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
4026 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
4027 | $as_echo_n "(cached) " >&6 |
---|
4028 | else |
---|
4029 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
4030 | ac_cxx_werror_flag=yes |
---|
4031 | ac_cv_prog_cxx_g=no |
---|
4032 | CXXFLAGS="-g" |
---|
4033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4034 | /* end confdefs.h. */ |
---|
4035 | |
---|
4036 | int |
---|
4037 | main () |
---|
4038 | { |
---|
4039 | |
---|
4040 | ; |
---|
4041 | return 0; |
---|
4042 | } |
---|
4043 | _ACEOF |
---|
4044 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4045 | ac_cv_prog_cxx_g=yes |
---|
4046 | else |
---|
4047 | CXXFLAGS="" |
---|
4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4049 | /* end confdefs.h. */ |
---|
4050 | |
---|
4051 | int |
---|
4052 | main () |
---|
4053 | { |
---|
4054 | |
---|
4055 | ; |
---|
4056 | return 0; |
---|
4057 | } |
---|
4058 | _ACEOF |
---|
4059 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4060 | |
---|
4061 | else |
---|
4062 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4063 | CXXFLAGS="-g" |
---|
4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4065 | /* end confdefs.h. */ |
---|
4066 | |
---|
4067 | int |
---|
4068 | main () |
---|
4069 | { |
---|
4070 | |
---|
4071 | ; |
---|
4072 | return 0; |
---|
4073 | } |
---|
4074 | _ACEOF |
---|
4075 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4076 | ac_cv_prog_cxx_g=yes |
---|
4077 | fi |
---|
4078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4079 | fi |
---|
4080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4081 | fi |
---|
4082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4083 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4084 | fi |
---|
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
4086 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
4087 | if test "$ac_test_CXXFLAGS" = set; then |
---|
4088 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
4089 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
4090 | if test "$GXX" = yes; then |
---|
4091 | CXXFLAGS="-g -O2" |
---|
4092 | else |
---|
4093 | CXXFLAGS="-g" |
---|
4094 | fi |
---|
4095 | else |
---|
4096 | if test "$GXX" = yes; then |
---|
4097 | CXXFLAGS="-O2" |
---|
4098 | else |
---|
4099 | CXXFLAGS= |
---|
4100 | fi |
---|
4101 | fi |
---|
4102 | ac_ext=c |
---|
4103 | ac_cpp='$CPP $CPPFLAGS' |
---|
4104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4107 | |
---|
4108 | ac_ext=cpp |
---|
4109 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4113 | |
---|
4114 | |
---|
4115 | # |
---|
4116 | # Need to check for the following dependencies: |
---|
4117 | # Tcl headers and library |
---|
4118 | # GL headers and library |
---|
4119 | # pthread library |
---|
4120 | # vtk libraries |
---|
4121 | # |
---|
4122 | |
---|
4123 | TCL_VERSION="8.4" |
---|
4124 | for dir in \ |
---|
4125 | ${exec_prefix} \ |
---|
4126 | ${exec_prefix}/lib ; do |
---|
4127 | tclconfig="${dir}/tclConfig.sh" |
---|
4128 | if test -f "$tclconfig" ; then |
---|
4129 | . $tclconfig |
---|
4130 | break |
---|
4131 | fi |
---|
4132 | done |
---|
4133 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
4134 | |
---|
4135 | if test "x$with_tcllib" != "x" ; then |
---|
4136 | tclconfig="${with_tcllib}/tclConfig.sh" |
---|
4137 | if test -f "$tclconfig" ; then |
---|
4138 | . $tclconfig |
---|
4139 | fi |
---|
4140 | TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}" |
---|
4141 | fi |
---|
4142 | if test "x$with_tclinclude" != "x" ; then |
---|
4143 | TCL_INC_SPEC="-I${with_tclinclude}" |
---|
4144 | fi |
---|
4145 | |
---|
4146 | # We are assuming that we're using VTK 6.0 |
---|
4147 | VTK_VERSION=6.1 |
---|
4148 | VTK_LIB_DIR=${libdir} |
---|
4149 | VTK_INC_DIR=${incdir} |
---|
4150 | |
---|
4151 | if test "x$with_vtk_includes" != "x"; then |
---|
4152 | VTK_INC_DIR=$with_vtk_includes |
---|
4153 | fi |
---|
4154 | |
---|
4155 | if test "x$with_vtk_libs" != "x"; then |
---|
4156 | VTK_LIB_DIR=$with_vtk_libs |
---|
4157 | fi |
---|
4158 | |
---|
4159 | if test "x$with_vtk" != "x" ; then |
---|
4160 | VTK_VERSION=$with_vtk |
---|
4161 | fi |
---|
4162 | |
---|
4163 | if ! test -d "$VTK_INC_DIR/vtk-${VTK_VERSION}" ; then |
---|
4164 | as_fn_error $? "Couldn't find VTK includes" "$LINENO" 5 |
---|
4165 | else |
---|
4166 | VTK_INC_SPEC="-I${VTK_INC_DIR}/vtk-${VTK_VERSION}" |
---|
4167 | fi |
---|
4168 | |
---|
4169 | save_CPPFLAGS=$CPPFLAGS |
---|
4170 | CPPFLAGS=$VTK_INC_SPEC |
---|
4171 | |
---|
4172 | |
---|
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4174 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4175 | if ${ac_cv_path_GREP+:} false; then : |
---|
4176 | $as_echo_n "(cached) " >&6 |
---|
4177 | else |
---|
4178 | if test -z "$GREP"; then |
---|
4179 | ac_path_GREP_found=false |
---|
4180 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4182 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4183 | do |
---|
4184 | IFS=$as_save_IFS |
---|
4185 | test -z "$as_dir" && as_dir=. |
---|
4186 | for ac_prog in grep ggrep; do |
---|
4187 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4188 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4189 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
4190 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4191 | # Check for GNU $ac_path_GREP |
---|
4192 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4193 | *GNU*) |
---|
4194 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4195 | *) |
---|
4196 | ac_count=0 |
---|
4197 | $as_echo_n 0123456789 >"conftest.in" |
---|
4198 | while : |
---|
4199 | do |
---|
4200 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4201 | mv "conftest.tmp" "conftest.in" |
---|
4202 | cp "conftest.in" "conftest.nl" |
---|
4203 | $as_echo 'GREP' >> "conftest.nl" |
---|
4204 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4205 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4206 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4207 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4208 | # Best one so far, save it but keep looking for a better one |
---|
4209 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4210 | ac_path_GREP_max=$ac_count |
---|
4211 | fi |
---|
4212 | # 10*(2^10) chars as input seems more than enough |
---|
4213 | test $ac_count -gt 10 && break |
---|
4214 | done |
---|
4215 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4216 | esac |
---|
4217 | |
---|
4218 | $ac_path_GREP_found && break 3 |
---|
4219 | done |
---|
4220 | done |
---|
4221 | done |
---|
4222 | IFS=$as_save_IFS |
---|
4223 | if test -z "$ac_cv_path_GREP"; then |
---|
4224 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4225 | fi |
---|
4226 | else |
---|
4227 | ac_cv_path_GREP=$GREP |
---|
4228 | fi |
---|
4229 | |
---|
4230 | fi |
---|
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4232 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4233 | GREP="$ac_cv_path_GREP" |
---|
4234 | |
---|
4235 | |
---|
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4237 | $as_echo_n "checking for egrep... " >&6; } |
---|
4238 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4239 | $as_echo_n "(cached) " >&6 |
---|
4240 | else |
---|
4241 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4242 | then ac_cv_path_EGREP="$GREP -E" |
---|
4243 | else |
---|
4244 | if test -z "$EGREP"; then |
---|
4245 | ac_path_EGREP_found=false |
---|
4246 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4248 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4249 | do |
---|
4250 | IFS=$as_save_IFS |
---|
4251 | test -z "$as_dir" && as_dir=. |
---|
4252 | for ac_prog in egrep; do |
---|
4253 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4254 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4255 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
4256 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4257 | # Check for GNU $ac_path_EGREP |
---|
4258 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4259 | *GNU*) |
---|
4260 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4261 | *) |
---|
4262 | ac_count=0 |
---|
4263 | $as_echo_n 0123456789 >"conftest.in" |
---|
4264 | while : |
---|
4265 | do |
---|
4266 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4267 | mv "conftest.tmp" "conftest.in" |
---|
4268 | cp "conftest.in" "conftest.nl" |
---|
4269 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4270 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4271 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4272 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4273 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4274 | # Best one so far, save it but keep looking for a better one |
---|
4275 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4276 | ac_path_EGREP_max=$ac_count |
---|
4277 | fi |
---|
4278 | # 10*(2^10) chars as input seems more than enough |
---|
4279 | test $ac_count -gt 10 && break |
---|
4280 | done |
---|
4281 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4282 | esac |
---|
4283 | |
---|
4284 | $ac_path_EGREP_found && break 3 |
---|
4285 | done |
---|
4286 | done |
---|
4287 | done |
---|
4288 | IFS=$as_save_IFS |
---|
4289 | if test -z "$ac_cv_path_EGREP"; then |
---|
4290 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4291 | fi |
---|
4292 | else |
---|
4293 | ac_cv_path_EGREP=$EGREP |
---|
4294 | fi |
---|
4295 | |
---|
4296 | fi |
---|
4297 | fi |
---|
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4299 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4300 | EGREP="$ac_cv_path_EGREP" |
---|
4301 | |
---|
4302 | |
---|
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4304 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4305 | if ${ac_cv_header_stdc+:} false; then : |
---|
4306 | $as_echo_n "(cached) " >&6 |
---|
4307 | else |
---|
4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4309 | /* end confdefs.h. */ |
---|
4310 | #include <stdlib.h> |
---|
4311 | #include <stdarg.h> |
---|
4312 | #include <string.h> |
---|
4313 | #include <float.h> |
---|
4314 | |
---|
4315 | int |
---|
4316 | main () |
---|
4317 | { |
---|
4318 | |
---|
4319 | ; |
---|
4320 | return 0; |
---|
4321 | } |
---|
4322 | _ACEOF |
---|
4323 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4324 | ac_cv_header_stdc=yes |
---|
4325 | else |
---|
4326 | ac_cv_header_stdc=no |
---|
4327 | fi |
---|
4328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4329 | |
---|
4330 | if test $ac_cv_header_stdc = yes; then |
---|
4331 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4333 | /* end confdefs.h. */ |
---|
4334 | #include <string.h> |
---|
4335 | |
---|
4336 | _ACEOF |
---|
4337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4338 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4339 | |
---|
4340 | else |
---|
4341 | ac_cv_header_stdc=no |
---|
4342 | fi |
---|
4343 | rm -f conftest* |
---|
4344 | |
---|
4345 | fi |
---|
4346 | |
---|
4347 | if test $ac_cv_header_stdc = yes; then |
---|
4348 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4350 | /* end confdefs.h. */ |
---|
4351 | #include <stdlib.h> |
---|
4352 | |
---|
4353 | _ACEOF |
---|
4354 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4355 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4356 | |
---|
4357 | else |
---|
4358 | ac_cv_header_stdc=no |
---|
4359 | fi |
---|
4360 | rm -f conftest* |
---|
4361 | |
---|
4362 | fi |
---|
4363 | |
---|
4364 | if test $ac_cv_header_stdc = yes; then |
---|
4365 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4366 | if test "$cross_compiling" = yes; then : |
---|
4367 | : |
---|
4368 | else |
---|
4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4370 | /* end confdefs.h. */ |
---|
4371 | #include <ctype.h> |
---|
4372 | #include <stdlib.h> |
---|
4373 | #if ((' ' & 0x0FF) == 0x020) |
---|
4374 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4375 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4376 | #else |
---|
4377 | # define ISLOWER(c) \ |
---|
4378 | (('a' <= (c) && (c) <= 'i') \ |
---|
4379 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4380 | || ('s' <= (c) && (c) <= 'z')) |
---|
4381 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4382 | #endif |
---|
4383 | |
---|
4384 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4385 | int |
---|
4386 | main () |
---|
4387 | { |
---|
4388 | int i; |
---|
4389 | for (i = 0; i < 256; i++) |
---|
4390 | if (XOR (islower (i), ISLOWER (i)) |
---|
4391 | || toupper (i) != TOUPPER (i)) |
---|
4392 | return 2; |
---|
4393 | return 0; |
---|
4394 | } |
---|
4395 | _ACEOF |
---|
4396 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
4397 | |
---|
4398 | else |
---|
4399 | ac_cv_header_stdc=no |
---|
4400 | fi |
---|
4401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4402 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4403 | fi |
---|
4404 | |
---|
4405 | fi |
---|
4406 | fi |
---|
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4408 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4409 | if test $ac_cv_header_stdc = yes; then |
---|
4410 | |
---|
4411 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4412 | |
---|
4413 | fi |
---|
4414 | |
---|
4415 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4416 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4417 | inttypes.h stdint.h unistd.h |
---|
4418 | do : |
---|
4419 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4420 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4421 | " |
---|
4422 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4423 | cat >>confdefs.h <<_ACEOF |
---|
4424 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4425 | _ACEOF |
---|
4426 | |
---|
4427 | fi |
---|
4428 | |
---|
4429 | done |
---|
4430 | |
---|
4431 | |
---|
4432 | for ac_header in vtkSmartPointer.h |
---|
4433 | do : |
---|
4434 | ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default" |
---|
4435 | if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then : |
---|
4436 | cat >>confdefs.h <<_ACEOF |
---|
4437 | #define HAVE_VTKSMARTPOINTER_H 1 |
---|
4438 | _ACEOF |
---|
4439 | |
---|
4440 | else |
---|
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5 |
---|
4442 | $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;} |
---|
4443 | fi |
---|
4444 | |
---|
4445 | done |
---|
4446 | |
---|
4447 | CPPFLAGS=$save_CPPFLAGS |
---|
4448 | |
---|
4449 | for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h |
---|
4450 | do : |
---|
4451 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4452 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
4453 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4454 | cat >>confdefs.h <<_ACEOF |
---|
4455 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4456 | _ACEOF |
---|
4457 | |
---|
4458 | fi |
---|
4459 | |
---|
4460 | done |
---|
4461 | |
---|
4462 | for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h |
---|
4463 | do : |
---|
4464 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4465 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
4466 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4467 | cat >>confdefs.h <<_ACEOF |
---|
4468 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4469 | _ACEOF |
---|
4470 | |
---|
4471 | fi |
---|
4472 | |
---|
4473 | done |
---|
4474 | |
---|
4475 | |
---|
4476 | for ac_func in accept4 |
---|
4477 | do : |
---|
4478 | ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
---|
4479 | if test "x$ac_cv_func_accept4" = xyes; then : |
---|
4480 | cat >>confdefs.h <<_ACEOF |
---|
4481 | #define HAVE_ACCEPT4 1 |
---|
4482 | _ACEOF |
---|
4483 | |
---|
4484 | fi |
---|
4485 | done |
---|
4486 | |
---|
4487 | |
---|
4488 | |
---|
4489 | |
---|
4490 | |
---|
4491 | |
---|
4492 | |
---|
4493 | |
---|
4494 | |
---|
4495 | |
---|
4496 | ac_config_files="$ac_config_files Doxyfile Makefile" |
---|
4497 | |
---|
4498 | cat >confcache <<\_ACEOF |
---|
4499 | # This file is a shell script that caches the results of configure |
---|
4500 | # tests run on this system so they can be shared between configure |
---|
4501 | # scripts and configure runs, see configure's option --config-cache. |
---|
4502 | # It is not useful on other systems. If it contains results you don't |
---|
4503 | # want to keep, you may remove or edit it. |
---|
4504 | # |
---|
4505 | # config.status only pays attention to the cache file if you give it |
---|
4506 | # the --recheck option to rerun configure. |
---|
4507 | # |
---|
4508 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
4509 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
4510 | # following values. |
---|
4511 | |
---|
4512 | _ACEOF |
---|
4513 | |
---|
4514 | # The following way of writing the cache mishandles newlines in values, |
---|
4515 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4516 | # So, we kill variables containing newlines. |
---|
4517 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4518 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4519 | ( |
---|
4520 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
4521 | eval ac_val=\$$ac_var |
---|
4522 | case $ac_val in #( |
---|
4523 | *${as_nl}*) |
---|
4524 | case $ac_var in #( |
---|
4525 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
4526 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
4527 | esac |
---|
4528 | case $ac_var in #( |
---|
4529 | _ | IFS | as_nl) ;; #( |
---|
4530 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
4531 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
4532 | esac ;; |
---|
4533 | esac |
---|
4534 | done |
---|
4535 | |
---|
4536 | (set) 2>&1 | |
---|
4537 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
4538 | *${as_nl}ac_space=\ *) |
---|
4539 | # `set' does not quote correctly, so add quotes: double-quote |
---|
4540 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
4541 | sed -n \ |
---|
4542 | "s/'/'\\\\''/g; |
---|
4543 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
4544 | ;; #( |
---|
4545 | *) |
---|
4546 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4547 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
4548 | ;; |
---|
4549 | esac | |
---|
4550 | sort |
---|
4551 | ) | |
---|
4552 | sed ' |
---|
4553 | /^ac_cv_env_/b end |
---|
4554 | t clear |
---|
4555 | :clear |
---|
4556 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
4557 | t end |
---|
4558 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
4559 | :end' >>confcache |
---|
4560 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
4561 | if test -w "$cache_file"; then |
---|
4562 | if test "x$cache_file" != "x/dev/null"; then |
---|
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
4564 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
4565 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
4566 | cat confcache >"$cache_file" |
---|
4567 | else |
---|
4568 | case $cache_file in #( |
---|
4569 | */* | ?:*) |
---|
4570 | mv -f confcache "$cache_file"$$ && |
---|
4571 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
4572 | *) |
---|
4573 | mv -f confcache "$cache_file" ;; |
---|
4574 | esac |
---|
4575 | fi |
---|
4576 | fi |
---|
4577 | else |
---|
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
4579 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
4580 | fi |
---|
4581 | fi |
---|
4582 | rm -f confcache |
---|
4583 | |
---|
4584 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4585 | # Let make expand exec_prefix. |
---|
4586 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4587 | |
---|
4588 | # Transform confdefs.h into DEFS. |
---|
4589 | # Protect against shell expansion while executing Makefile rules. |
---|
4590 | # Protect against Makefile macro expansion. |
---|
4591 | # |
---|
4592 | # If the first sed substitution is executed (which looks for macros that |
---|
4593 | # take arguments), then branch to the quote section. Otherwise, |
---|
4594 | # look for a macro that doesn't take arguments. |
---|
4595 | ac_script=' |
---|
4596 | :mline |
---|
4597 | /\\$/{ |
---|
4598 | N |
---|
4599 | s,\\\n,, |
---|
4600 | b mline |
---|
4601 | } |
---|
4602 | t clear |
---|
4603 | :clear |
---|
4604 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
4605 | t quote |
---|
4606 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
4607 | t quote |
---|
4608 | b any |
---|
4609 | :quote |
---|
4610 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
4611 | s/\[/\\&/g |
---|
4612 | s/\]/\\&/g |
---|
4613 | s/\$/$$/g |
---|
4614 | H |
---|
4615 | :any |
---|
4616 | ${ |
---|
4617 | g |
---|
4618 | s/^\n// |
---|
4619 | s/\n/ /g |
---|
4620 | p |
---|
4621 | } |
---|
4622 | ' |
---|
4623 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
4624 | |
---|
4625 | |
---|
4626 | ac_libobjs= |
---|
4627 | ac_ltlibobjs= |
---|
4628 | U= |
---|
4629 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
4630 | # 1. Remove the extension, and $U if already installed. |
---|
4631 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
4632 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
4633 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
4634 | # will be set to the directory where LIBOBJS objects are built. |
---|
4635 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
4636 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
4637 | done |
---|
4638 | LIBOBJS=$ac_libobjs |
---|
4639 | |
---|
4640 | LTLIBOBJS=$ac_ltlibobjs |
---|
4641 | |
---|
4642 | |
---|
4643 | |
---|
4644 | : "${CONFIG_STATUS=./config.status}" |
---|
4645 | ac_write_fail=0 |
---|
4646 | ac_clean_files_save=$ac_clean_files |
---|
4647 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
4649 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
4650 | as_write_fail=0 |
---|
4651 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
4652 | #! $SHELL |
---|
4653 | # Generated by $as_me. |
---|
4654 | # Run this file to recreate the current configuration. |
---|
4655 | # Compiler output produced by configure, useful for debugging |
---|
4656 | # configure, is in config.log if it exists. |
---|
4657 | |
---|
4658 | debug=false |
---|
4659 | ac_cs_recheck=false |
---|
4660 | ac_cs_silent=false |
---|
4661 | |
---|
4662 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
4663 | export SHELL |
---|
4664 | _ASEOF |
---|
4665 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
4666 | ## -------------------- ## |
---|
4667 | ## M4sh Initialization. ## |
---|
4668 | ## -------------------- ## |
---|
4669 | |
---|
4670 | # Be more Bourne compatible |
---|
4671 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
4672 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
4673 | emulate sh |
---|
4674 | NULLCMD=: |
---|
4675 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
4676 | # is contrary to our usage. Disable this feature. |
---|
4677 | alias -g '${1+"$@"}'='"$@"' |
---|
4678 | setopt NO_GLOB_SUBST |
---|
4679 | else |
---|
4680 | case `(set -o) 2>/dev/null` in #( |
---|
4681 | *posix*) : |
---|
4682 | set -o posix ;; #( |
---|
4683 | *) : |
---|
4684 | ;; |
---|
4685 | esac |
---|
4686 | fi |
---|
4687 | |
---|
4688 | |
---|
4689 | as_nl=' |
---|
4690 | ' |
---|
4691 | export as_nl |
---|
4692 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
4693 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
4694 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
4695 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
4696 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
4697 | # but without wasting forks for bash or zsh. |
---|
4698 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
4699 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
4700 | as_echo='print -r --' |
---|
4701 | as_echo_n='print -rn --' |
---|
4702 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
4703 | as_echo='printf %s\n' |
---|
4704 | as_echo_n='printf %s' |
---|
4705 | else |
---|
4706 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
4707 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
4708 | as_echo_n='/usr/ucb/echo -n' |
---|
4709 | else |
---|
4710 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
4711 | as_echo_n_body='eval |
---|
4712 | arg=$1; |
---|
4713 | case $arg in #( |
---|
4714 | *"$as_nl"*) |
---|
4715 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
4716 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
4717 | esac; |
---|
4718 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
4719 | ' |
---|
4720 | export as_echo_n_body |
---|
4721 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
4722 | fi |
---|
4723 | export as_echo_body |
---|
4724 | as_echo='sh -c $as_echo_body as_echo' |
---|
4725 | fi |
---|
4726 | |
---|
4727 | # The user is always right. |
---|
4728 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
4729 | PATH_SEPARATOR=: |
---|
4730 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
4731 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
4732 | PATH_SEPARATOR=';' |
---|
4733 | } |
---|
4734 | fi |
---|
4735 | |
---|
4736 | |
---|
4737 | # IFS |
---|
4738 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
4739 | # there to prevent editors from complaining about space-tab. |
---|
4740 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
4741 | # splitting by setting IFS to empty value.) |
---|
4742 | IFS=" "" $as_nl" |
---|
4743 | |
---|
4744 | # Find who we are. Look in the path if we contain no directory separator. |
---|
4745 | as_myself= |
---|
4746 | case $0 in #(( |
---|
4747 | *[\\/]* ) as_myself=$0 ;; |
---|
4748 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4749 | for as_dir in $PATH |
---|
4750 | do |
---|
4751 | IFS=$as_save_IFS |
---|
4752 | test -z "$as_dir" && as_dir=. |
---|
4753 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
4754 | done |
---|
4755 | IFS=$as_save_IFS |
---|
4756 | |
---|
4757 | ;; |
---|
4758 | esac |
---|
4759 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
4760 | # in which case we are not to be found in the path. |
---|
4761 | if test "x$as_myself" = x; then |
---|
4762 | as_myself=$0 |
---|
4763 | fi |
---|
4764 | if test ! -f "$as_myself"; then |
---|
4765 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
4766 | exit 1 |
---|
4767 | fi |
---|
4768 | |
---|
4769 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
4770 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
4771 | # suppresses any "Segmentation fault" message there. '((' could |
---|
4772 | # trigger a bug in pdksh 5.2.14. |
---|
4773 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
4774 | do eval test x\${$as_var+set} = xset \ |
---|
4775 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
4776 | done |
---|
4777 | PS1='$ ' |
---|
4778 | PS2='> ' |
---|
4779 | PS4='+ ' |
---|
4780 | |
---|
4781 | # NLS nuisances. |
---|
4782 | LC_ALL=C |
---|
4783 | export LC_ALL |
---|
4784 | LANGUAGE=C |
---|
4785 | export LANGUAGE |
---|
4786 | |
---|
4787 | # CDPATH. |
---|
4788 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
4789 | |
---|
4790 | |
---|
4791 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
4792 | # ---------------------------------------- |
---|
4793 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
4794 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
4795 | # script with STATUS, using 1 if that was 0. |
---|
4796 | as_fn_error () |
---|
4797 | { |
---|
4798 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
4799 | if test "$4"; then |
---|
4800 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
4801 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
4802 | fi |
---|
4803 | $as_echo "$as_me: error: $2" >&2 |
---|
4804 | as_fn_exit $as_status |
---|
4805 | } # as_fn_error |
---|
4806 | |
---|
4807 | |
---|
4808 | # as_fn_set_status STATUS |
---|
4809 | # ----------------------- |
---|
4810 | # Set $? to STATUS, without forking. |
---|
4811 | as_fn_set_status () |
---|
4812 | { |
---|
4813 | return $1 |
---|
4814 | } # as_fn_set_status |
---|
4815 | |
---|
4816 | # as_fn_exit STATUS |
---|
4817 | # ----------------- |
---|
4818 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
4819 | as_fn_exit () |
---|
4820 | { |
---|
4821 | set +e |
---|
4822 | as_fn_set_status $1 |
---|
4823 | exit $1 |
---|
4824 | } # as_fn_exit |
---|
4825 | |
---|
4826 | # as_fn_unset VAR |
---|
4827 | # --------------- |
---|
4828 | # Portably unset VAR. |
---|
4829 | as_fn_unset () |
---|
4830 | { |
---|
4831 | { eval $1=; unset $1;} |
---|
4832 | } |
---|
4833 | as_unset=as_fn_unset |
---|
4834 | # as_fn_append VAR VALUE |
---|
4835 | # ---------------------- |
---|
4836 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
4837 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
4838 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
4839 | # implementations. |
---|
4840 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
4841 | eval 'as_fn_append () |
---|
4842 | { |
---|
4843 | eval $1+=\$2 |
---|
4844 | }' |
---|
4845 | else |
---|
4846 | as_fn_append () |
---|
4847 | { |
---|
4848 | eval $1=\$$1\$2 |
---|
4849 | } |
---|
4850 | fi # as_fn_append |
---|
4851 | |
---|
4852 | # as_fn_arith ARG... |
---|
4853 | # ------------------ |
---|
4854 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
4855 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
4856 | # must be portable across $(()) and expr. |
---|
4857 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
4858 | eval 'as_fn_arith () |
---|
4859 | { |
---|
4860 | as_val=$(( $* )) |
---|
4861 | }' |
---|
4862 | else |
---|
4863 | as_fn_arith () |
---|
4864 | { |
---|
4865 | as_val=`expr "$@" || test $? -eq 1` |
---|
4866 | } |
---|
4867 | fi # as_fn_arith |
---|
4868 | |
---|
4869 | |
---|
4870 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
4871 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
4872 | as_expr=expr |
---|
4873 | else |
---|
4874 | as_expr=false |
---|
4875 | fi |
---|
4876 | |
---|
4877 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
4878 | as_basename=basename |
---|
4879 | else |
---|
4880 | as_basename=false |
---|
4881 | fi |
---|
4882 | |
---|
4883 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
4884 | as_dirname=dirname |
---|
4885 | else |
---|
4886 | as_dirname=false |
---|
4887 | fi |
---|
4888 | |
---|
4889 | as_me=`$as_basename -- "$0" || |
---|
4890 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
4891 | X"$0" : 'X\(//\)$' \| \ |
---|
4892 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
4893 | $as_echo X/"$0" | |
---|
4894 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
4895 | s//\1/ |
---|
4896 | q |
---|
4897 | } |
---|
4898 | /^X\/\(\/\/\)$/{ |
---|
4899 | s//\1/ |
---|
4900 | q |
---|
4901 | } |
---|
4902 | /^X\/\(\/\).*/{ |
---|
4903 | s//\1/ |
---|
4904 | q |
---|
4905 | } |
---|
4906 | s/.*/./; q'` |
---|
4907 | |
---|
4908 | # Avoid depending upon Character Ranges. |
---|
4909 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
4910 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
4911 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
4912 | as_cr_digits='0123456789' |
---|
4913 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
4914 | |
---|
4915 | ECHO_C= ECHO_N= ECHO_T= |
---|
4916 | case `echo -n x` in #((((( |
---|
4917 | -n*) |
---|
4918 | case `echo 'xy\c'` in |
---|
4919 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
4920 | xy) ECHO_C='\c';; |
---|
4921 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
4922 | ECHO_T=' ';; |
---|
4923 | esac;; |
---|
4924 | *) |
---|
4925 | ECHO_N='-n';; |
---|
4926 | esac |
---|
4927 | |
---|
4928 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4929 | if test -d conf$$.dir; then |
---|
4930 | rm -f conf$$.dir/conf$$.file |
---|
4931 | else |
---|
4932 | rm -f conf$$.dir |
---|
4933 | mkdir conf$$.dir 2>/dev/null |
---|
4934 | fi |
---|
4935 | if (echo >conf$$.file) 2>/dev/null; then |
---|
4936 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
4937 | as_ln_s='ln -s' |
---|
4938 | # ... but there are two gotchas: |
---|
4939 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
4940 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
4941 | # In both cases, we have to default to `cp -pR'. |
---|
4942 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
4943 | as_ln_s='cp -pR' |
---|
4944 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
4945 | as_ln_s=ln |
---|
4946 | else |
---|
4947 | as_ln_s='cp -pR' |
---|
4948 | fi |
---|
4949 | else |
---|
4950 | as_ln_s='cp -pR' |
---|
4951 | fi |
---|
4952 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
4953 | rmdir conf$$.dir 2>/dev/null |
---|
4954 | |
---|
4955 | |
---|
4956 | # as_fn_mkdir_p |
---|
4957 | # ------------- |
---|
4958 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
4959 | as_fn_mkdir_p () |
---|
4960 | { |
---|
4961 | |
---|
4962 | case $as_dir in #( |
---|
4963 | -*) as_dir=./$as_dir;; |
---|
4964 | esac |
---|
4965 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
4966 | as_dirs= |
---|
4967 | while :; do |
---|
4968 | case $as_dir in #( |
---|
4969 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
4970 | *) as_qdir=$as_dir;; |
---|
4971 | esac |
---|
4972 | as_dirs="'$as_qdir' $as_dirs" |
---|
4973 | as_dir=`$as_dirname -- "$as_dir" || |
---|
4974 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4975 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4976 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4977 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
4978 | $as_echo X"$as_dir" | |
---|
4979 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
4980 | s//\1/ |
---|
4981 | q |
---|
4982 | } |
---|
4983 | /^X\(\/\/\)[^/].*/{ |
---|
4984 | s//\1/ |
---|
4985 | q |
---|
4986 | } |
---|
4987 | /^X\(\/\/\)$/{ |
---|
4988 | s//\1/ |
---|
4989 | q |
---|
4990 | } |
---|
4991 | /^X\(\/\).*/{ |
---|
4992 | s//\1/ |
---|
4993 | q |
---|
4994 | } |
---|
4995 | s/.*/./; q'` |
---|
4996 | test -d "$as_dir" && break |
---|
4997 | done |
---|
4998 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
4999 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
5000 | |
---|
5001 | |
---|
5002 | } # as_fn_mkdir_p |
---|
5003 | if mkdir -p . 2>/dev/null; then |
---|
5004 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5005 | else |
---|
5006 | test -d ./-p && rmdir ./-p |
---|
5007 | as_mkdir_p=false |
---|
5008 | fi |
---|
5009 | |
---|
5010 | |
---|
5011 | # as_fn_executable_p FILE |
---|
5012 | # ----------------------- |
---|
5013 | # Test if FILE is an executable regular file. |
---|
5014 | as_fn_executable_p () |
---|
5015 | { |
---|
5016 | test -f "$1" && test -x "$1" |
---|
5017 | } # as_fn_executable_p |
---|
5018 | as_test_x='test -x' |
---|
5019 | as_executable_p=as_fn_executable_p |
---|
5020 | |
---|
5021 | # Sed expression to map a string onto a valid CPP name. |
---|
5022 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5023 | |
---|
5024 | # Sed expression to map a string onto a valid variable name. |
---|
5025 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5026 | |
---|
5027 | |
---|
5028 | exec 6>&1 |
---|
5029 | ## ----------------------------------- ## |
---|
5030 | ## Main body of $CONFIG_STATUS script. ## |
---|
5031 | ## ----------------------------------- ## |
---|
5032 | _ASEOF |
---|
5033 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
5034 | |
---|
5035 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5036 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
5037 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5038 | # values after options handling. |
---|
5039 | ac_log=" |
---|
5040 | This file was extended by vtkvis $as_me 1.8, which was |
---|
5041 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
5042 | |
---|
5043 | CONFIG_FILES = $CONFIG_FILES |
---|
5044 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5045 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5046 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5047 | $ $0 $@ |
---|
5048 | |
---|
5049 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
5050 | " |
---|
5051 | |
---|
5052 | _ACEOF |
---|
5053 | |
---|
5054 | case $ac_config_files in *" |
---|
5055 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
5056 | esac |
---|
5057 | |
---|
5058 | |
---|
5059 | |
---|
5060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5061 | # Files that config.status was made for. |
---|
5062 | config_files="$ac_config_files" |
---|
5063 | |
---|
5064 | _ACEOF |
---|
5065 | |
---|
5066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5067 | ac_cs_usage="\ |
---|
5068 | \`$as_me' instantiates files and other configuration actions |
---|
5069 | from templates according to the current configuration. Unless the files |
---|
5070 | and actions are specified as TAGs, all are instantiated by default. |
---|
5071 | |
---|
5072 | Usage: $0 [OPTION]... [TAG]... |
---|
5073 | |
---|
5074 | -h, --help print this help, then exit |
---|
5075 | -V, --version print version number and configuration settings, then exit |
---|
5076 | --config print configuration, then exit |
---|
5077 | -q, --quiet, --silent |
---|
5078 | do not print progress messages |
---|
5079 | -d, --debug don't remove temporary files |
---|
5080 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5081 | --file=FILE[:TEMPLATE] |
---|
5082 | instantiate the configuration file FILE |
---|
5083 | |
---|
5084 | Configuration files: |
---|
5085 | $config_files |
---|
5086 | |
---|
5087 | Report bugs to <rappture@nanohub.org>." |
---|
5088 | |
---|
5089 | _ACEOF |
---|
5090 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5091 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
5092 | ac_cs_version="\\ |
---|
5093 | vtkvis config.status 1.8 |
---|
5094 | configured by $0, generated by GNU Autoconf 2.69, |
---|
5095 | with options \\"\$ac_cs_config\\" |
---|
5096 | |
---|
5097 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
5098 | This config.status script is free software; the Free Software Foundation |
---|
5099 | gives unlimited permission to copy, distribute and modify it." |
---|
5100 | |
---|
5101 | ac_pwd='$ac_pwd' |
---|
5102 | srcdir='$srcdir' |
---|
5103 | INSTALL='$INSTALL' |
---|
5104 | MKDIR_P='$MKDIR_P' |
---|
5105 | test -n "\$AWK" || AWK=awk |
---|
5106 | _ACEOF |
---|
5107 | |
---|
5108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5109 | # The default lists apply if the user does not specify any file. |
---|
5110 | ac_need_defaults=: |
---|
5111 | while test $# != 0 |
---|
5112 | do |
---|
5113 | case $1 in |
---|
5114 | --*=?*) |
---|
5115 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5116 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
5117 | ac_shift=: |
---|
5118 | ;; |
---|
5119 | --*=) |
---|
5120 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5121 | ac_optarg= |
---|
5122 | ac_shift=: |
---|
5123 | ;; |
---|
5124 | *) |
---|
5125 | ac_option=$1 |
---|
5126 | ac_optarg=$2 |
---|
5127 | ac_shift=shift |
---|
5128 | ;; |
---|
5129 | esac |
---|
5130 | |
---|
5131 | case $ac_option in |
---|
5132 | # Handling of the options. |
---|
5133 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5134 | ac_cs_recheck=: ;; |
---|
5135 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
5136 | $as_echo "$ac_cs_version"; exit ;; |
---|
5137 | --config | --confi | --conf | --con | --co | --c ) |
---|
5138 | $as_echo "$ac_cs_config"; exit ;; |
---|
5139 | --debug | --debu | --deb | --de | --d | -d ) |
---|
5140 | debug=: ;; |
---|
5141 | --file | --fil | --fi | --f ) |
---|
5142 | $ac_shift |
---|
5143 | case $ac_optarg in |
---|
5144 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5145 | '') as_fn_error $? "missing file argument" ;; |
---|
5146 | esac |
---|
5147 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
5148 | ac_need_defaults=false;; |
---|
5149 | --he | --h | --help | --hel | -h ) |
---|
5150 | $as_echo "$ac_cs_usage"; exit ;; |
---|
5151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5152 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5153 | ac_cs_silent=: ;; |
---|
5154 | |
---|
5155 | # This is an error. |
---|
5156 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
5157 | Try \`$0 --help' for more information." ;; |
---|
5158 | |
---|
5159 | *) as_fn_append ac_config_targets " $1" |
---|
5160 | ac_need_defaults=false ;; |
---|
5161 | |
---|
5162 | esac |
---|
5163 | shift |
---|
5164 | done |
---|
5165 | |
---|
5166 | ac_configure_extra_args= |
---|
5167 | |
---|
5168 | if $ac_cs_silent; then |
---|
5169 | exec 6>/dev/null |
---|
5170 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
5171 | fi |
---|
5172 | |
---|
5173 | _ACEOF |
---|
5174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5175 | if \$ac_cs_recheck; then |
---|
5176 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
5177 | shift |
---|
5178 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
5179 | CONFIG_SHELL='$SHELL' |
---|
5180 | export CONFIG_SHELL |
---|
5181 | exec "\$@" |
---|
5182 | fi |
---|
5183 | |
---|
5184 | _ACEOF |
---|
5185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5186 | exec 5>>config.log |
---|
5187 | { |
---|
5188 | echo |
---|
5189 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5190 | ## Running $as_me. ## |
---|
5191 | _ASBOX |
---|
5192 | $as_echo "$ac_log" |
---|
5193 | } >&5 |
---|
5194 | |
---|
5195 | _ACEOF |
---|
5196 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5197 | _ACEOF |
---|
5198 | |
---|
5199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5200 | |
---|
5201 | # Handling of arguments. |
---|
5202 | for ac_config_target in $ac_config_targets |
---|
5203 | do |
---|
5204 | case $ac_config_target in |
---|
5205 | "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; |
---|
5206 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
5207 | |
---|
5208 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
5209 | esac |
---|
5210 | done |
---|
5211 | |
---|
5212 | |
---|
5213 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5214 | # then the envvar interface is used. Set only those that are not. |
---|
5215 | # We use the long form for the default assignment because of an extremely |
---|
5216 | # bizarre bug on SunOS 4.1.3. |
---|
5217 | if $ac_need_defaults; then |
---|
5218 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
5219 | fi |
---|
5220 | |
---|
5221 | # Have a temporary directory for convenience. Make it in the build tree |
---|
5222 | # simply because there is no reason against having it here, and in addition, |
---|
5223 | # creating and moving files from /tmp can sometimes cause problems. |
---|
5224 | # Hook for its removal unless debugging. |
---|
5225 | # Note that there is a small window in which the directory will not be cleaned: |
---|
5226 | # after its creation but before its name has been assigned to `$tmp'. |
---|
5227 | $debug || |
---|
5228 | { |
---|
5229 | tmp= ac_tmp= |
---|
5230 | trap 'exit_status=$? |
---|
5231 | : "${ac_tmp:=$tmp}" |
---|
5232 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
5233 | ' 0 |
---|
5234 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
5235 | } |
---|
5236 | # Create a (secure) tmp directory for tmp files. |
---|
5237 | |
---|
5238 | { |
---|
5239 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
5240 | test -d "$tmp" |
---|
5241 | } || |
---|
5242 | { |
---|
5243 | tmp=./conf$$-$RANDOM |
---|
5244 | (umask 077 && mkdir "$tmp") |
---|
5245 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
5246 | ac_tmp=$tmp |
---|
5247 | |
---|
5248 | # Set up the scripts for CONFIG_FILES section. |
---|
5249 | # No need to generate them if there are no CONFIG_FILES. |
---|
5250 | # This happens for instance with `./config.status config.h'. |
---|
5251 | if test -n "$CONFIG_FILES"; then |
---|
5252 | |
---|
5253 | |
---|
5254 | ac_cr=`echo X | tr X '\015'` |
---|
5255 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
5256 | # But we know of no other shell where ac_cr would be empty at this |
---|
5257 | # point, so we can use a bashism as a fallback. |
---|
5258 | if test "x$ac_cr" = x; then |
---|
5259 | eval ac_cr=\$\'\\r\' |
---|
5260 | fi |
---|
5261 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
5262 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
5263 | ac_cs_awk_cr='\\r' |
---|
5264 | else |
---|
5265 | ac_cs_awk_cr=$ac_cr |
---|
5266 | fi |
---|
5267 | |
---|
5268 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
5269 | _ACEOF |
---|
5270 | |
---|
5271 | |
---|
5272 | { |
---|
5273 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
5274 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
5275 | echo "_ACEOF" |
---|
5276 | } >conf$$subs.sh || |
---|
5277 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5278 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
5279 | ac_delim='%!_!# ' |
---|
5280 | for ac_last_try in false false false false false :; do |
---|
5281 | . ./conf$$subs.sh || |
---|
5282 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5283 | |
---|
5284 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
5285 | if test $ac_delim_n = $ac_delim_num; then |
---|
5286 | break |
---|
5287 | elif $ac_last_try; then |
---|
5288 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5289 | else |
---|
5290 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5291 | fi |
---|
5292 | done |
---|
5293 | rm -f conf$$subs.sh |
---|
5294 | |
---|
5295 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5296 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
5297 | _ACEOF |
---|
5298 | sed -n ' |
---|
5299 | h |
---|
5300 | s/^/S["/; s/!.*/"]=/ |
---|
5301 | p |
---|
5302 | g |
---|
5303 | s/^[^!]*!// |
---|
5304 | :repl |
---|
5305 | t repl |
---|
5306 | s/'"$ac_delim"'$// |
---|
5307 | t delim |
---|
5308 | :nl |
---|
5309 | h |
---|
5310 | s/\(.\{148\}\)..*/\1/ |
---|
5311 | t more1 |
---|
5312 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
5313 | p |
---|
5314 | n |
---|
5315 | b repl |
---|
5316 | :more1 |
---|
5317 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5318 | p |
---|
5319 | g |
---|
5320 | s/.\{148\}// |
---|
5321 | t nl |
---|
5322 | :delim |
---|
5323 | h |
---|
5324 | s/\(.\{148\}\)..*/\1/ |
---|
5325 | t more2 |
---|
5326 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
5327 | p |
---|
5328 | b |
---|
5329 | :more2 |
---|
5330 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5331 | p |
---|
5332 | g |
---|
5333 | s/.\{148\}// |
---|
5334 | t delim |
---|
5335 | ' <conf$$subs.awk | sed ' |
---|
5336 | /^[^""]/{ |
---|
5337 | N |
---|
5338 | s/\n// |
---|
5339 | } |
---|
5340 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
5341 | rm -f conf$$subs.awk |
---|
5342 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5343 | _ACAWK |
---|
5344 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
5345 | for (key in S) S_is_set[key] = 1 |
---|
5346 | FS = "" |
---|
5347 | |
---|
5348 | } |
---|
5349 | { |
---|
5350 | line = $ 0 |
---|
5351 | nfields = split(line, field, "@") |
---|
5352 | substed = 0 |
---|
5353 | len = length(field[1]) |
---|
5354 | for (i = 2; i < nfields; i++) { |
---|
5355 | key = field[i] |
---|
5356 | keylen = length(key) |
---|
5357 | if (S_is_set[key]) { |
---|
5358 | value = S[key] |
---|
5359 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
5360 | len += length(value) + length(field[++i]) |
---|
5361 | substed = 1 |
---|
5362 | } else |
---|
5363 | len += 1 + keylen |
---|
5364 | } |
---|
5365 | |
---|
5366 | print line |
---|
5367 | } |
---|
5368 | |
---|
5369 | _ACAWK |
---|
5370 | _ACEOF |
---|
5371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5372 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
5373 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
5374 | else |
---|
5375 | cat |
---|
5376 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
5377 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
5378 | _ACEOF |
---|
5379 | |
---|
5380 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
5381 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
5382 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5383 | # (actually we leave an empty line to preserve line numbers). |
---|
5384 | if test "x$srcdir" = x.; then |
---|
5385 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
5386 | h |
---|
5387 | s/// |
---|
5388 | s/^/:/ |
---|
5389 | s/[ ]*$/:/ |
---|
5390 | s/:\$(srcdir):/:/g |
---|
5391 | s/:\${srcdir}:/:/g |
---|
5392 | s/:@srcdir@:/:/g |
---|
5393 | s/^:*// |
---|
5394 | s/:*$// |
---|
5395 | x |
---|
5396 | s/\(=[ ]*\).*/\1/ |
---|
5397 | G |
---|
5398 | s/\n// |
---|
5399 | s/^[^=]*=[ ]*$// |
---|
5400 | }' |
---|
5401 | fi |
---|
5402 | |
---|
5403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5404 | fi # test -n "$CONFIG_FILES" |
---|
5405 | |
---|
5406 | |
---|
5407 | eval set X " :F $CONFIG_FILES " |
---|
5408 | shift |
---|
5409 | for ac_tag |
---|
5410 | do |
---|
5411 | case $ac_tag in |
---|
5412 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
5413 | esac |
---|
5414 | case $ac_mode$ac_tag in |
---|
5415 | :[FHL]*:*);; |
---|
5416 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
5417 | :[FH]-) ac_tag=-:-;; |
---|
5418 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
5419 | esac |
---|
5420 | ac_save_IFS=$IFS |
---|
5421 | IFS=: |
---|
5422 | set x $ac_tag |
---|
5423 | IFS=$ac_save_IFS |
---|
5424 | shift |
---|
5425 | ac_file=$1 |
---|
5426 | shift |
---|
5427 | |
---|
5428 | case $ac_mode in |
---|
5429 | :L) ac_source=$1;; |
---|
5430 | :[FH]) |
---|
5431 | ac_file_inputs= |
---|
5432 | for ac_f |
---|
5433 | do |
---|
5434 | case $ac_f in |
---|
5435 | -) ac_f="$ac_tmp/stdin";; |
---|
5436 | *) # Look for the file first in the build tree, then in the source tree |
---|
5437 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
5438 | # because $ac_f cannot contain `:'. |
---|
5439 | test -f "$ac_f" || |
---|
5440 | case $ac_f in |
---|
5441 | [\\/$]*) false;; |
---|
5442 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
5443 | esac || |
---|
5444 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
5445 | esac |
---|
5446 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
5447 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
5448 | done |
---|
5449 | |
---|
5450 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
5451 | # use $as_me), people would be surprised to read: |
---|
5452 | # /* config.h. Generated by config.status. */ |
---|
5453 | configure_input='Generated from '` |
---|
5454 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
5455 | `' by configure.' |
---|
5456 | if test x"$ac_file" != x-; then |
---|
5457 | configure_input="$ac_file. $configure_input" |
---|
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
5459 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
5460 | fi |
---|
5461 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
5462 | case $configure_input in #( |
---|
5463 | *\&* | *\|* | *\\* ) |
---|
5464 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
5465 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
5466 | *) ac_sed_conf_input=$configure_input;; |
---|
5467 | esac |
---|
5468 | |
---|
5469 | case $ac_tag in |
---|
5470 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
5471 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
5472 | esac |
---|
5473 | ;; |
---|
5474 | esac |
---|
5475 | |
---|
5476 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
5477 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5478 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
5479 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
5480 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
5481 | $as_echo X"$ac_file" | |
---|
5482 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5483 | s//\1/ |
---|
5484 | q |
---|
5485 | } |
---|
5486 | /^X\(\/\/\)[^/].*/{ |
---|
5487 | s//\1/ |
---|
5488 | q |
---|
5489 | } |
---|
5490 | /^X\(\/\/\)$/{ |
---|
5491 | s//\1/ |
---|
5492 | q |
---|
5493 | } |
---|
5494 | /^X\(\/\).*/{ |
---|
5495 | s//\1/ |
---|
5496 | q |
---|
5497 | } |
---|
5498 | s/.*/./; q'` |
---|
5499 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
5500 | ac_builddir=. |
---|
5501 | |
---|
5502 | case "$ac_dir" in |
---|
5503 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
5504 | *) |
---|
5505 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
5506 | # A ".." for each directory in $ac_dir_suffix. |
---|
5507 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
5508 | case $ac_top_builddir_sub in |
---|
5509 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
5510 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
5511 | esac ;; |
---|
5512 | esac |
---|
5513 | ac_abs_top_builddir=$ac_pwd |
---|
5514 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
5515 | # for backward compatibility: |
---|
5516 | ac_top_builddir=$ac_top_build_prefix |
---|
5517 | |
---|
5518 | case $srcdir in |
---|
5519 | .) # We are building in place. |
---|
5520 | ac_srcdir=. |
---|
5521 | ac_top_srcdir=$ac_top_builddir_sub |
---|
5522 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
5523 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
5524 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
5525 | ac_top_srcdir=$srcdir |
---|
5526 | ac_abs_top_srcdir=$srcdir ;; |
---|
5527 | *) # Relative name. |
---|
5528 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
5529 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
5530 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
5531 | esac |
---|
5532 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
5533 | |
---|
5534 | |
---|
5535 | case $ac_mode in |
---|
5536 | :F) |
---|
5537 | # |
---|
5538 | # CONFIG_FILE |
---|
5539 | # |
---|
5540 | |
---|
5541 | case $INSTALL in |
---|
5542 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
5543 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
5544 | esac |
---|
5545 | ac_MKDIR_P=$MKDIR_P |
---|
5546 | case $MKDIR_P in |
---|
5547 | [\\/$]* | ?:[\\/]* ) ;; |
---|
5548 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
5549 | esac |
---|
5550 | _ACEOF |
---|
5551 | |
---|
5552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5553 | # If the template does not know about datarootdir, expand it. |
---|
5554 | # FIXME: This hack should be removed a few years after 2.60. |
---|
5555 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
5556 | ac_sed_dataroot=' |
---|
5557 | /datarootdir/ { |
---|
5558 | p |
---|
5559 | q |
---|
5560 | } |
---|
5561 | /@datadir@/p |
---|
5562 | /@docdir@/p |
---|
5563 | /@infodir@/p |
---|
5564 | /@localedir@/p |
---|
5565 | /@mandir@/p' |
---|
5566 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
5567 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
5568 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
5570 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
5571 | _ACEOF |
---|
5572 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5573 | ac_datarootdir_hack=' |
---|
5574 | s&@datadir@&$datadir&g |
---|
5575 | s&@docdir@&$docdir&g |
---|
5576 | s&@infodir@&$infodir&g |
---|
5577 | s&@localedir@&$localedir&g |
---|
5578 | s&@mandir@&$mandir&g |
---|
5579 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
5580 | esac |
---|
5581 | _ACEOF |
---|
5582 | |
---|
5583 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
5584 | # Shell code in configure.ac might set extrasub. |
---|
5585 | # FIXME: do we really want to maintain this feature? |
---|
5586 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5587 | ac_sed_extra="$ac_vpsub |
---|
5588 | $extrasub |
---|
5589 | _ACEOF |
---|
5590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5591 | :t |
---|
5592 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
5593 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
5594 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
5595 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
5596 | s&@srcdir@&$ac_srcdir&;t t |
---|
5597 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
5598 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
5599 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
5600 | s&@builddir@&$ac_builddir&;t t |
---|
5601 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
5602 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
5603 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
5604 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
5605 | $ac_datarootdir_hack |
---|
5606 | " |
---|
5607 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
5608 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
5609 | |
---|
5610 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
5611 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
5612 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
5613 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
5615 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
5616 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
5617 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
5618 | |
---|
5619 | rm -f "$ac_tmp/stdin" |
---|
5620 | case $ac_file in |
---|
5621 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
5622 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
5623 | esac \ |
---|
5624 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
5625 | ;; |
---|
5626 | |
---|
5627 | |
---|
5628 | |
---|
5629 | esac |
---|
5630 | |
---|
5631 | done # for ac_tag |
---|
5632 | |
---|
5633 | |
---|
5634 | as_fn_exit 0 |
---|
5635 | _ACEOF |
---|
5636 | ac_clean_files=$ac_clean_files_save |
---|
5637 | |
---|
5638 | test $ac_write_fail = 0 || |
---|
5639 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
5640 | |
---|
5641 | |
---|
5642 | # configure is writing to config.log, and then calls config.status. |
---|
5643 | # config.status does its own redirection, appending to config.log. |
---|
5644 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
5645 | # by configure, so config.status won't be able to write to it; its |
---|
5646 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
5647 | # effectively closing config.log, so it can be properly (re)opened and |
---|
5648 | # appended to by config.status. When coming back to configure, we |
---|
5649 | # need to make the FD available again. |
---|
5650 | if test "$no_create" != yes; then |
---|
5651 | ac_cs_success=: |
---|
5652 | ac_config_status_args= |
---|
5653 | test "$silent" = yes && |
---|
5654 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
5655 | exec 5>/dev/null |
---|
5656 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
5657 | exec 5>>config.log |
---|
5658 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
5659 | # would make configure fail if this is the last instruction. |
---|
5660 | $ac_cs_success || as_fn_exit 1 |
---|
5661 | fi |
---|
5662 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
5664 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
5665 | fi |
---|
5666 | |
---|