Debian Codegraph @

debian/external_deps/fetk/sg/tools/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sgapp 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell [email protected] and
242 $0: [email protected] about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='sgapp'
562 PACKAGE_TARNAME='sgapp'
563 PACKAGE_VERSION='1.0'
564 PACKAGE_STRING='sgapp 1.0'
565 PACKAGE_BUGREPORT='[email protected]'
566 PACKAGE_URL=''
567
568 ac_unique_file="main.c"
569 ac_default_prefix=${HOME}
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 sg_inc
611 sg_lib
612 maloc_inc
613 maloc_lib
614 EGREP
615 GREP
616 vtst
617 glw_lib
618 glu_lib
619 gl_lib
620 EXISTS_MOTIF_FALSE
621 EXISTS_MOTIF_TRUE
622 motif_lib
623 zfence_lib
624 zfence
625 profile_lib
626 profile
627 pedantic_ansi
628 wall_pedantic_ansi
629 wall_pedantic
630 wall
631 x_lib
632 X_EXTRA_LIBS
633 X_LIBS
634 X_PRE_LIBS
635 X_CFLAGS
636 XMKMF
637 objc_lib
638 rl_lib
639 fetk_cpu_vendor_os
640 thread_lib
641 socket_lib
642 nsl_lib
643 liberty_lib
644 math_lib
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 FETK_VERSION
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_maintainer_mode
743 enable_dependency_tracking
744 enable_triplet
745 with_x
746 enable_pansi
747 enable_gprof
748 enable_efence
749 enable_vtst
750 '
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CC
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 CPP
760 CPPFLAGS
761 XMKMF'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *=) ac_optarg= ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190 do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures sgapp 1.0 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/sgapp]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 X features:
1367 --x-includes=DIR X include files are in DIR
1368 --x-libraries=DIR X library files are in DIR
1369
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of sgapp 1.0:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --disable-triplet disable CPU-VENDOR-OS install triplet [default=no]
1392 --enable-pansi enable pedantic ANSI compilation
1393 --enable-gprof enable gprof profiling default=no
1394 --enable-efence enable ElectricFence malloc lib default=no
1395 --enable-vtst enable building of library tests default=no
1396
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-x use the X Window System
1401
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 XMKMF Path to xmkmf, Makefile generator for X Window System
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to <[email protected]>.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 sgapp configure 1.0
1480 generated by GNU Autoconf 2.68
1481
1482 Copyright (C) 2010 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488
1489 ## ------------------------ ##
1490 ## Autoconf initialization. ##
1491 ## ------------------------ ##
1492
1493 # ac_fn_c_try_compile LINENO
1494 # --------------------------
1495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_compile ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_try_cpp LINENO
1532 # ----------------------
1533 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_cpp ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 if { { ac_try="$ac_cpp conftest.$ac_ext"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } > conftest.i && {
1553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 }; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_cpp
1567
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_link
1613
1614 # ac_fn_c_check_func LINENO FUNC VAR
1615 # ----------------------------------
1616 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1617 ac_fn_c_check_func ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1629 #define $2 innocuous_$2
1630
1631 /* System header to define __stub macros and hopefully few prototypes,
1632 which can conflict with char $2 (); below.
1633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1634 <limits.h> exists even on freestanding compilers. */
1635
1636 #ifdef __STDC__
1637 # include <limits.h>
1638 #else
1639 # include <assert.h>
1640 #endif
1641
1642 #undef $2
1643
1644 /* Override any GCC internal prototype to avoid an error.
1645 Use char because int might match the return type of a GCC
1646 builtin and then its argument prototype would still apply. */
1647 #ifdef __cplusplus
1648 extern "C"
1649 #endif
1650 char $2 ();
1651 /* The GNU C library defines this for functions which it implements
1652 to always fail with ENOSYS. Some functions are actually named
1653 something starting with __ and the normal name is an alias. */
1654 #if defined __stub_$2 || defined __stub___$2
1655 choke me
1656 #endif
1657
1658 int
1659 main ()
1660 {
1661 return $2 ();
1662 ;
1663 return 0;
1664 }
1665 _ACEOF
1666 if ac_fn_c_try_link "$LINENO"; then :
1667 eval "$3=yes"
1668 else
1669 eval "$3=no"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext \
1672 conftest$ac_exeext conftest.$ac_ext
1673 fi
1674 eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_func
1680
1681 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684 # the include files in INCLUDES and setting the cache variable VAR
1685 # accordingly.
1686 ac_fn_c_check_header_mongrel ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if eval \${$3+:} false; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 else
1699 # Is the header compilable?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701 $as_echo_n "checking $2 usability... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1709 else
1710 ac_header_compiler=no
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714 $as_echo "$ac_header_compiler" >&6; }
1715
1716 # Is the header present?
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718 $as_echo_n "checking $2 presence... " >&6; }
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1725 else
1726 ac_header_preproc=no
1727 fi
1728 rm -f conftest.err conftest.i conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730 $as_echo "$ac_header_preproc" >&6; }
1731
1732 # So? What about this header?
1733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 yes:no: )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 ;;
1740 no:yes:* )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ( $as_echo "## ----------------------------------- ##
1752 ## Report this to [email protected] ##
1753 ## ----------------------------------- ##"
1754 ) | sed "s/^/$as_me: WARNING: /" >&2
1755 ;;
1756 esac
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 eval "$3=\$ac_header_compiler"
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_mongrel
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_header_compile
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1847
1848 It was created by sgapp $as_me 1.0, which was
1849 generated by GNU Autoconf 2.68. Invocation command line was
1850
1851 $ $0 $@
1852
1853 _ACEOF
1854 exec 5>>config.log
1855 {
1856 cat <<_ASUNAME
1857 ## --------- ##
1858 ## Platform. ##
1859 ## --------- ##
1860
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869
1870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1877
1878 _ASUNAME
1879
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 $as_echo "PATH: $as_dir"
1886 done
1887 IFS=$as_save_IFS
1888
1889 } >&5
1890
1891 cat >&5 <<_ACEOF
1892
1893
1894 ## ----------- ##
1895 ## Core tests. ##
1896 ## ----------- ##
1897
1898 _ACEOF
1899
1900
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1906 ac_configure_args=
1907 ac_configure_args0=
1908 ac_configure_args1=
1909 ac_must_keep_next=false
1910 for ac_pass in 1 2
1911 do
1912 for ac_arg
1913 do
1914 case $ac_arg in
1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917 | -silent | --silent | --silen | --sile | --sil)
1918 continue ;;
1919 *\'*)
1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 esac
1922 case $ac_pass in
1923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1924 2)
1925 as_fn_append ac_configure_args1 " '$ac_arg'"
1926 if test $ac_must_keep_next = true; then
1927 ac_must_keep_next=false # Got value, back to normal.
1928 else
1929 case $ac_arg in
1930 *=* | --config-cache | -C | -disable-* | --disable-* \
1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933 | -with-* | --with-* | -without-* | --without-* | --x)
1934 case "$ac_configure_args0 " in
1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 esac
1937 ;;
1938 -* ) ac_must_keep_next=true ;;
1939 esac
1940 fi
1941 as_fn_append ac_configure_args " '$ac_arg'"
1942 ;;
1943 esac
1944 done
1945 done
1946 { ac_configure_args0=; unset ac_configure_args0;}
1947 { ac_configure_args1=; unset ac_configure_args1;}
1948
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log. We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955 # Save into config.log some information that might help in debugging.
1956 {
1957 echo
1958
1959 $as_echo "## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##"
1962 echo
1963 # The following way of writing the cache mishandles newlines in values,
1964 (
1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in #(
1968 *${as_nl}*)
1969 case $ac_var in #(
1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1972 esac
1973 case $ac_var in #(
1974 _ | IFS | as_nl) ;; #(
1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1976 *) { eval $ac_var=; unset $ac_var;} ;;
1977 esac ;;
1978 esac
1979 done
1980 (set) 2>&1 |
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space=\ *)
1983 sed -n \
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986 ;; #(
1987 *)
1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ;;
1990 esac |
1991 sort
1992 )
1993 echo
1994
1995 $as_echo "## ----------------- ##
1996 ## Output variables. ##
1997 ## ----------------- ##"
1998 echo
1999 for ac_var in $ac_subst_vars
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008
2009 if test -n "$ac_subst_files"; then
2010 $as_echo "## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##"
2013 echo
2014 for ac_var in $ac_subst_files
2015 do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2023 fi
2024
2025 if test -s confdefs.h; then
2026 $as_echo "## ----------- ##
2027 ## confdefs.h. ##
2028 ## ----------- ##"
2029 echo
2030 cat confdefs.h
2031 echo
2032 fi
2033 test "$ac_signal" != 0 &&
2034 $as_echo "$as_me: caught signal $ac_signal"
2035 $as_echo "$as_me: exit $exit_status"
2036 } >&5
2037 rm -f core *.core core.conftest.* &&
2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039 exit $exit_status
2040 ' 0
2041 for ac_signal in 1 2 13 15; do
2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043 done
2044 ac_signal=0
2045
2046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2047 rm -f -r conftest* confdefs.h
2048
2049 $as_echo "/* confdefs.h */" > confdefs.h
2050
2051 # Predefined preprocessor variables.
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2063 _ACEOF
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071 _ACEOF
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_URL "$PACKAGE_URL"
2075 _ACEOF
2076
2077
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer an explicitly selected file to automatically selected ones.
2080 ac_site_file1=NONE
2081 ac_site_file2=NONE
2082 if test -n "$CONFIG_SITE"; then
2083 # We do not want a PATH search for config.site.
2084 case $CONFIG_SITE in #((
2085 -*) ac_site_file1=./$CONFIG_SITE;;
2086 */*) ac_site_file1=$CONFIG_SITE;;
2087 *) ac_site_file1=./$CONFIG_SITE;;
2088 esac
2089 elif test "x$prefix" != xNONE; then
2090 ac_site_file1=$prefix/share/config.site
2091 ac_site_file2=$prefix/etc/config.site
2092 else
2093 ac_site_file1=$ac_default_prefix/share/config.site
2094 ac_site_file2=$ac_default_prefix/etc/config.site
2095 fi
2096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2097 do
2098 test "x$ac_site_file" = xNONE && continue
2099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2102 sed 's/^/| /' "$ac_site_file" >&5
2103 . "$ac_site_file" \
2104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2106 as_fn_error $? "failed to load site script $ac_site_file
2107 See \`config.log' for more details" "$LINENO" 5; }
2108 fi
2109 done
2110
2111 if test -r "$cache_file"; then
2112 # Some versions of bash will fail to source /dev/null (special files
2113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116 $as_echo "$as_me: loading cache $cache_file" >&6;}
2117 case $cache_file in
2118 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2119 *) . "./$cache_file";;
2120 esac
2121 fi
2122 else
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124 $as_echo "$as_me: creating cache $cache_file" >&6;}
2125 >$cache_file
2126 fi
2127
2128 # Check that the precious variables saved in the cache have kept the same
2129 # value.
2130 ac_cache_corrupted=false
2131 for ac_var in $ac_precious_vars; do
2132 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2133 eval ac_new_set=\$ac_env_${ac_var}_set
2134 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2135 eval ac_new_val=\$ac_env_${ac_var}_value
2136 case $ac_old_set,$ac_new_set in
2137 set,)
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2139 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2140 ac_cache_corrupted=: ;;
2141 ,set)
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2145 ,);;
2146 *)
2147 if test "x$ac_old_val" != "x$ac_new_val"; then
2148 # differences in whitespace do not lead to failure.
2149 ac_old_val_w=`echo x $ac_old_val`
2150 ac_new_val_w=`echo x $ac_new_val`
2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2153 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2154 ac_cache_corrupted=:
2155 else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2157 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2158 eval $ac_var=\$ac_old_val
2159 fi
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2161 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2163 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2164 fi;;
2165 esac
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2168 case $ac_new_val in
2169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg=$ac_var=$ac_new_val ;;
2171 esac
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2175 esac
2176 fi
2177 done
2178 if $ac_cache_corrupted; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2182 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2183 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2184 fi
2185 ## -------------------- ##
2186 ## Main body of script. ##
2187 ## -------------------- ##
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196
2197 ac_aux_dir=
2198 for ac_dir in config "$srcdir"/config; do
2199 if test -f "$ac_dir/install-sh"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/install-sh -c"
2202 break
2203 elif test -f "$ac_dir/install.sh"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/install.sh -c"
2206 break
2207 elif test -f "$ac_dir/shtool"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/shtool install -c"
2210 break
2211 fi
2212 done
2213 if test -z "$ac_aux_dir"; then
2214 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2215 fi
2216
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224
2225
2226
2227 # Make sure we can run config.sub.
2228 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2229 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2230
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2232 $as_echo_n "checking build system type... " >&6; }
2233 if ${ac_cv_build+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 ac_build_alias=$build_alias
2237 test "x$ac_build_alias" = x &&
2238 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2239 test "x$ac_build_alias" = x &&
2240 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2242 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2243
2244 fi
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2246 $as_echo "$ac_cv_build" >&6; }
2247 case $ac_cv_build in
2248 *-*-*) ;;
2249 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2250 esac
2251 build=$ac_cv_build
2252 ac_save_IFS=$IFS; IFS='-'
2253 set x $ac_cv_build
2254 shift
2255 build_cpu=$1
2256 build_vendor=$2
2257 shift; shift
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2260 build_os=$*
2261 IFS=$ac_save_IFS
2262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2263
2264
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2266 $as_echo_n "checking host system type... " >&6; }
2267 if ${ac_cv_host+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 if test "x$host_alias" = x; then
2271 ac_cv_host=$ac_cv_build
2272 else
2273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2274 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2275 fi
2276
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2279 $as_echo "$ac_cv_host" >&6; }
2280 case $ac_cv_host in
2281 *-*-*) ;;
2282 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2283 esac
2284 host=$ac_cv_host
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_host
2287 shift
2288 host_cpu=$1
2289 host_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 host_os=$*
2294 IFS=$ac_save_IFS
2295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2296
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2299 $as_echo_n "checking target system type... " >&6; }
2300 if ${ac_cv_target+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$target_alias" = x; then
2304 ac_cv_target=$ac_cv_host
2305 else
2306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2308 fi
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2312 $as_echo "$ac_cv_target" >&6; }
2313 case $ac_cv_target in
2314 *-*-*) ;;
2315 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2316 esac
2317 target=$ac_cv_target
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_target
2320 shift
2321 target_cpu=$1
2322 target_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 target_os=$*
2327 IFS=$ac_save_IFS
2328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 # The aliases save the names the user supplied, while $host etc.
2332 # will get canonicalized.
2333 test -n "$target_alias" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2335 NONENONEs,x,x, &&
2336 program_prefix=${target_alias}-
2337
2338 am__api_version='1.11'
2339
2340 # Find a good install program. We prefer a C program (faster),
2341 # so one script is as good as another. But avoid the broken or
2342 # incompatible versions:
2343 # SysV /etc/install, /usr/sbin/install
2344 # SunOS /usr/etc/install
2345 # IRIX /sbin/install
2346 # AIX /bin/install
2347 # AmigaOS /C/install, which installs bootblocks on floppy discs
2348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2351 # OS/2's system install, which has a completely different semantic
2352 # ./install, which can be erroneously created by make from ./install.sh.
2353 # Reject install programs that cannot install multiple files.
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2355 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2356 if test -z "$INSTALL"; then
2357 if ${ac_cv_path_install+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 # Account for people who put trailing slashes in PATH elements.
2366 case $as_dir/ in #((
2367 ./ | .// | /[cC]/* | \
2368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2370 /usr/ucb/* ) ;;
2371 *)
2372 # OSF1 and SCO ODT 3.0 have their own names for install.
2373 # Don't use installbsd from OSF since it installs stuff as root
2374 # by default.
2375 for ac_prog in ginstall scoinst install; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2378 if test $ac_prog = install &&
2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # AIX install. It has an incompatible calling convention.
2381 :
2382 elif test $ac_prog = install &&
2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # program-specific install script used by HP pwplus--don't use.
2385 :
2386 else
2387 rm -rf conftest.one conftest.two conftest.dir
2388 echo one > conftest.one
2389 echo two > conftest.two
2390 mkdir conftest.dir
2391 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2392 test -s conftest.one && test -s conftest.two &&
2393 test -s conftest.dir/conftest.one &&
2394 test -s conftest.dir/conftest.two
2395 then
2396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 break 3
2398 fi
2399 fi
2400 fi
2401 done
2402 done
2403 ;;
2404 esac
2405
2406 done
2407 IFS=$as_save_IFS
2408
2409 rm -rf conftest.one conftest.two conftest.dir
2410
2411 fi
2412 if test "${ac_cv_path_install+set}" = set; then
2413 INSTALL=$ac_cv_path_install
2414 else
2415 # As a last resort, use the slow shell script. Don't cache a
2416 # value for INSTALL within a source directory, because that will
2417 # break other packages using the cache if that directory is
2418 # removed, or if the value is a relative name.
2419 INSTALL=$ac_install_sh
2420 fi
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2423 $as_echo "$INSTALL" >&6; }
2424
2425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2426 # It thinks the first close brace ends the variable substitution.
2427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428
2429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430
2431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2434 $as_echo_n "checking whether build environment is sane... " >&6; }
2435 # Just in case
2436 sleep 1
2437 echo timestamp > conftest.file
2438 # Reject unsafe characters in $srcdir or the absolute working directory
2439 # name. Accept space and tab only in the latter.
2440 am_lf='
2441 '
2442 case `pwd` in
2443 *[\\\"\#\$\&\'\`$am_lf]*)
2444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2445 esac
2446 case $srcdir in
2447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2448 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2449 esac
2450
2451 # Do `set' in a subshell so we don't clobber the current shell's
2452 # arguments. Must try -L first in case configure is actually a
2453 # symlink; some systems play weird games with the mod time of symlinks
2454 # (eg FreeBSD returns the mod time of the symlink's containing
2455 # directory).
2456 if (
2457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2458 if test "$*" = "X"; then
2459 # -L didn't work.
2460 set X `ls -t "$srcdir/configure" conftest.file`
2461 fi
2462 rm -f conftest.file
2463 if test "$*" != "X $srcdir/configure conftest.file" \
2464 && test "$*" != "X conftest.file $srcdir/configure"; then
2465
2466 # If neither matched, then we have a broken ls. This can happen
2467 # if, for instance, CONFIG_SHELL is bash and it inherits a
2468 # broken ls alias from the environment. This has actually
2469 # happened. Such a system could not be considered "sane".
2470 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2471 alias in your environment" "$LINENO" 5
2472 fi
2473
2474 test "$2" = conftest.file
2475 )
2476 then
2477 # Ok.
2478 :
2479 else
2480 as_fn_error $? "newly created file is older than distributed files!
2481 Check your system clock" "$LINENO" 5
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 test "$program_prefix" != NONE &&
2486 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2497
2498 if test x"${MISSING+set}" != xset; then
2499 case $am_aux_dir in
2500 *\ * | *\ *)
2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502 *)
2503 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504 esac
2505 fi
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --run true"; then
2508 am_missing_run="$MISSING --run "
2509 else
2510 am_missing_run=
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2513 fi
2514
2515 if test x"${install_sh}" != xset; then
2516 case $am_aux_dir in
2517 *\ * | *\ *)
2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519 *)
2520 install_sh="\${SHELL} $am_aux_dir/install-sh"
2521 esac
2522 fi
2523
2524 # Installed binaries are usually stripped using `strip' when the user
2525 # run `make install-strip'. However `strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the `STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$STRIP"; then
2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_STRIP"; then
2569 ac_ct_STRIP=$STRIP
2570 # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$ac_ct_STRIP"; then
2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_STRIP="strip"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606 if test "x$ac_ct_STRIP" = x; then
2607 STRIP=":"
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 STRIP=$ac_ct_STRIP
2616 fi
2617 else
2618 STRIP="$ac_cv_prog_STRIP"
2619 fi
2620
2621 fi
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627 if ${ac_cv_path_mkdir+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_prog in mkdir gmkdir; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639 'mkdir (GNU coreutils) '* | \
2640 'mkdir (coreutils) '* | \
2641 'mkdir (fileutils) '4.1*)
2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643 break 3;;
2644 esac
2645 done
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651
2652 test -d ./--version && rmdir ./--version
2653 if test "${ac_cv_path_mkdir+set}" = set; then
2654 MKDIR_P="$ac_cv_path_mkdir -p"
2655 else
2656 # As a last resort, use the slow shell script. Don't cache a
2657 # value for MKDIR_P within a source directory, because that will
2658 # break other packages using the cache if that directory is
2659 # removed, or if the value is a relative name.
2660 MKDIR_P="$ac_install_sh -d"
2661 fi
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2665
2666 mkdir_p="$MKDIR_P"
2667 case $mkdir_p in
2668 [\\/$]* | ?:[\\/]*) ;;
2669 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2670 esac
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; 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_AWK+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 test -n "$AWK" && break
2712 done
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 set x ${MAKE-make}
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 SHELL = /bin/sh
2723 all:
2724 @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728 *@@@%%%=?*=@@@%%%*)
2729 eval ac_cv_prog_make_${ac_make}_set=yes;;
2730 *)
2731 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 esac
2733 rm -f conftest.make
2734 fi
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 SET_MAKE=
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2751 fi
2752 rmdir .tst 2>/dev/null
2753
2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
2760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 fi
2762 fi
2763
2764 # test whether we have cygpath
2765 if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2770 fi
2771 fi
2772
2773
2774 # Define the identity of the package.
2775 PACKAGE='sgapp'
2776 VERSION='1.0'
2777
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE "$PACKAGE"
2781 _ACEOF
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define VERSION "$VERSION"
2786 _ACEOF
2787
2788 # Some tools Automake needs.
2789
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
2804 # We need awk for the "check" target. The system "awk" is bad on
2805 # some platforms.
2806 # Always define AMTAR for backward compatibility.
2807
2808 AMTAR=${AMTAR-"${am_missing_run}tar"}
2809
2810 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2811
2812
2813
2814
2815
2816 FETK_VERSION="1:0:0"
2817
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821 # Check whether --enable-maintainer-mode was given.
2822 if test "${enable_maintainer_mode+set}" = set; then :
2823 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824 else
2825 USE_MAINTAINER_MODE=no
2826 fi
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2829 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2830 if test $USE_MAINTAINER_MODE = yes; then
2831 MAINTAINER_MODE_TRUE=
2832 MAINTAINER_MODE_FALSE='#'
2833 else
2834 MAINTAINER_MODE_TRUE='#'
2835 MAINTAINER_MODE_FALSE=
2836 fi
2837
2838 MAINT=$MAINTAINER_MODE_TRUE
2839
2840
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 fi
2892 if test -z "$ac_cv_prog_CC"; then
2893 ac_ct_CC=$CC
2894 # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_ac_ct_CC="gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2924 $as_echo "$ac_ct_CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930 if test "x$ac_ct_CC" = x; then
2931 CC=""
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934 yes:)
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939 CC=$ac_ct_CC
2940 fi
2941 else
2942 CC="$ac_cv_prog_CC"
2943 fi
2944
2945 if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}cc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC="${ac_tool_prefix}cc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 fi
2986 if test -z "$CC"; then
2987 # Extract the first word of "cc", so it can be a program name with args.
2988 set dummy cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 ac_prog_rejected=no
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3006 ac_prog_rejected=yes
3007 continue
3008 fi
3009 ac_cv_prog_CC="cc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 if test $ac_prog_rejected = yes; then
3018 # We found a bogon in the path, so make sure we never use it.
3019 set dummy $ac_cv_prog_CC
3020 shift
3021 if test $# != 0; then
3022 # We chose a different compiler from the bogus one.
3023 # However, it has the same basename, so the bogon will be chosen
3024 # first if we set CC to just the basename; use the full file name.
3025 shift
3026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 fi
3028 fi
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 for ac_prog in cl.exe
3045 do
3046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 test -n "$CC" && break
3084 done
3085 fi
3086 if test -z "$CC"; then
3087 ac_ct_CC=$CC
3088 for ac_prog in cl.exe
3089 do
3090 # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 ac_cv_prog_ac_ct_CC="$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 test -n "$ac_ct_CC" && break
3128 done
3129
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139 CC=$ac_ct_CC
3140 fi
3141 fi
3142
3143 fi
3144
3145
3146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details" "$LINENO" 5; }
3150
3151 # Provide some information about the compiler.
3152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 set X $ac_compile
3154 ac_compiler=$2
3155 for ac_option in --version -v -V -qversion; do
3156 { { ac_try="$ac_compiler $ac_option >&5"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164 ac_status=$?
3165 if test -s conftest.err; then
3166 sed '10a\
3167 ... rest of stderr output deleted ...
3168 10q' conftest.err >conftest.er1
3169 cat conftest.er1 >&5
3170 fi
3171 rm -f conftest.er1 conftest.err
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 done
3175
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3191 # of exeext.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195
3196 # The possible output files:
3197 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198
3199 ac_rmfiles=
3200 for ac_file in $ac_files
3201 do
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 esac
3206 done
3207 rm -f $ac_rmfiles
3208
3209 if { { ac_try="$ac_link_default"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link_default") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3221 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3222 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3223 # so that the user can short-circuit this test for compilers unknown to
3224 # Autoconf.
3225 for ac_file in $ac_files ''
3226 do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230 ;;
3231 [ab].out )
3232 # We found the default executable, but exeext='' is most
3233 # certainly right.
3234 break;;
3235 *.* )
3236 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3237 then :; else
3238 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 fi
3240 # We set ac_cv_exeext here because the later test for it is not
3241 # safe: cross compilers may not add the suffix if given an `-o'
3242 # argument, so we may need to know it at that point already.
3243 # Even if this section looks crufty: it has the advantage of
3244 # actually working.
3245 break;;
3246 * )
3247 break;;
3248 esac
3249 done
3250 test "$ac_cv_exeext" = no && ac_cv_exeext=
3251
3252 else
3253 ac_file=''
3254 fi
3255 if test -z "$ac_file"; then :
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error 77 "C compiler cannot create executables
3264 See \`config.log' for more details" "$LINENO" 5; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3270 $as_echo_n "checking for C compiler default output file name... " >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 $as_echo "$ac_file" >&6; }
3273 ac_exeext=$ac_cv_exeext
3274
3275 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278 $as_echo_n "checking for suffix of executables... " >&6; }
3279 if { { ac_try="$ac_link"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_link") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; then :
3290 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3291 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3292 # work properly (i.e., refer to `conftest.exe'), while it won't with
3293 # `rm'.
3294 for ac_file in conftest.exe conftest conftest.*; do
3295 test -f "$ac_file" || continue
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 break;;
3300 * ) break;;
3301 esac
3302 done
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 fi
3309 rm -f conftest conftest$ac_cv_exeext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311 $as_echo "$ac_cv_exeext" >&6; }
3312
3313 rm -f conftest.$ac_ext
3314 EXEEXT=$ac_cv_exeext
3315 ac_exeext=$EXEEXT
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <stdio.h>
3319 int
3320 main ()
3321 {
3322 FILE *f = fopen ("conftest.out", "w");
3323 return ferror (f) || fclose (f) != 0;
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 ac_clean_files="$ac_clean_files conftest.out"
3330 # Check that the compiler produces executables we can run. If not, either
3331 # the compiler is broken, or we cross compile.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 if test "$cross_compiling" != yes; then
3335 { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3346 if { ac_try='./conftest$ac_cv_exeext'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3357 cross_compiling=no
3358 else
3359 if test "$cross_compiling" = maybe; then
3360 cross_compiling=yes
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 fi
3368 fi
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 $as_echo "$cross_compiling" >&6; }
3372
3373 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376 $as_echo_n "checking for suffix of object files... " >&6; }
3377 if ${ac_cv_objext+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.o conftest.obj
3392 if { { ac_try="$ac_compile"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_compile") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 for ac_file in conftest.o conftest.obj conftest.*; do
3404 test -f "$ac_file" || continue;
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408 break;;
3409 esac
3410 done
3411 else
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details" "$LINENO" 5; }
3419 fi
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3425 ac_objext=$OBJEXT
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if ${ac_cv_c_compiler_gnu+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437 #ifndef __GNUC__
3438 choke me
3439 #endif
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_compiler_gnu=yes
3447 else
3448 ac_compiler_gnu=no
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3456 if test $ac_compiler_gnu = yes; then
3457 GCC=yes
3458 else
3459 GCC=
3460 fi
3461 ac_test_CFLAGS=${CFLAGS+set}
3462 ac_save_CFLAGS=$CFLAGS
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3465 if ${ac_cv_prog_cc_g+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_save_c_werror_flag=$ac_c_werror_flag
3469 ac_c_werror_flag=yes
3470 ac_cv_prog_cc_g=no
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485 else
3486 CFLAGS=""
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499
3500 else
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 CFLAGS="-g"
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_g=yes
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_c_werror_flag=$ac_save_c_werror_flag
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3525 $as_echo "$ac_cv_prog_cc_g" >&6; }
3526 if test "$ac_test_CFLAGS" = set; then
3527 CFLAGS=$ac_save_CFLAGS
3528 elif test $ac_cv_prog_cc_g = yes; then
3529 if test "$GCC" = yes; then
3530 CFLAGS="-g -O2"
3531 else
3532 CFLAGS="-g"
3533 fi
3534 else
3535 if test "$GCC" = yes; then
3536 CFLAGS="-O2"
3537 else
3538 CFLAGS=
3539 fi
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3543 if ${ac_cv_prog_cc_c89+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 ac_cv_prog_cc_c89=no
3547 ac_save_CC=$CC
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <stdarg.h>
3551 #include <stdio.h>
3552 #include <sys/types.h>
3553 #include <sys/stat.h>
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3558 char **p;
3559 int i;
3560 {
3561 return p[i];
3562 }
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3564 {
3565 char *s;
3566 va_list v;
3567 va_start (v,p);
3568 s = g (p, va_arg (v,int));
3569 va_end (v);
3570 return s;
3571 }
3572
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
3576 as 'x'. The following induces an error, until -std is added to get
3577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
3579 that's true only with -std. */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3584 #define FOO(x) 'x'
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 int argc;
3592 char **argv;
3593 int
3594 main ()
3595 {
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603 do
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c89=$ac_arg
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3613
3614 fi
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3617 x)
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620 xno)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3623 *)
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 DEPDIR="${am__leading_dot}deps"
3638
3639 ac_config_commands="$ac_config_commands depfiles"
3640
3641
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3644 am__doit:
3645 @echo this is the am__doit target
3646 .PHONY: am__doit
3647 END
3648 # If we don't find an include directive, just comment out the code.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3651 am__include="#"
3652 am__quote=
3653 _am_result=none
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # Ignore all kinds of additional output from `make'.
3657 case `$am_make -s -f confmf 2> /dev/null` in #(
3658 *the\ am__doit\ target*)
3659 am__include=include
3660 am__quote=
3661 _am_result=GNU
3662 ;;
3663 esac
3664 # Now try BSD make style include.
3665 if test "$am__include" = "#"; then
3666 echo '.include "confinc"' > confmf
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3669 am__include=.include
3670 am__quote="\""
3671 _am_result=BSD
3672 ;;
3673 esac
3674 fi
3675
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3678 $as_echo "$_am_result" >&6; }
3679 rm -f confinc confmf
3680
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then :
3683 enableval=$enable_dependency_tracking;
3684 fi
3685
3686 if test "x$enable_dependency_tracking" != xno; then
3687 am_depcomp="$ac_aux_dir/depcomp"
3688 AMDEPBACKSLASH='\'
3689 fi
3690 if test "x$enable_dependency_tracking" != xno; then
3691 AMDEP_TRUE=
3692 AMDEP_FALSE='#'
3693 else
3694 AMDEP_TRUE='#'
3695 AMDEP_FALSE=
3696 fi
3697
3698
3699
3700 depcc="$CC" am_compiler_list=
3701
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3703 $as_echo_n "checking dependency style of $depcc... " >&6; }
3704 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708 # We make a subdir and do the tests there. Otherwise we can end up
3709 # making bogus files that we don't know about and never remove. For
3710 # instance it was reported that on HP-UX the gcc test will end up
3711 # making a dummy file named `D' -- because `-MD' means `put the output
3712 # in D'.
3713 mkdir conftest.dir
3714 # Copy depcomp to subdir because otherwise we won't find it if we're
3715 # using a relative directory.
3716 cp "$am_depcomp" conftest.dir
3717 cd conftest.dir
3718 # We will build objects and dependencies in a subdirectory because
3719 # it helps to detect inapplicable dependency modes. For instance
3720 # both Tru64's cc and ICC support -MD to output dependencies as a
3721 # side effect of compilation, but ICC will put the dependencies in
3722 # the current directory while Tru64 will put them in the object
3723 # directory.
3724 mkdir sub
3725
3726 am_cv_CC_dependencies_compiler_type=none
3727 if test "$am_compiler_list" = ""; then
3728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729 fi
3730 am__universal=false
3731 case " $depcc " in #(
3732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3733 esac
3734
3735 for depmode in $am_compiler_list; do
3736 # Setup a source with many dependencies, because some compilers
3737 # like to wrap large dependency lists on column 80 (with \), and
3738 # we should not choose a depcomp mode which is confused by this.
3739 #
3740 # We need to recreate these files for each test, as the compiler may
3741 # overwrite some of them when testing with obscure command lines.
3742 # This happens at least with the AIX C compiler.
3743 : > sub/conftest.c
3744 for i in 1 2 3 4 5 6; do
3745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3747 # Solaris 8's {/usr,}/bin/sh.
3748 touch sub/conftst$i.h
3749 done
3750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3751
3752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3753 # mode. It turns out that the SunPro C++ compiler does not properly
3754 # handle `-M -o', and we need to detect this. Also, some Intel
3755 # versions had trouble with output in subdirs
3756 am__obj=sub/conftest.${OBJEXT-o}
3757 am__minus_obj="-o $am__obj"
3758 case $depmode in
3759 gcc)
3760 # This depmode causes a compiler race in universal mode.
3761 test "$am__universal" = false || continue
3762 ;;
3763 nosideeffect)
3764 # after this tag, mechanisms are not by side-effect, so they'll
3765 # only be used when explicitly requested
3766 if test "x$enable_dependency_tracking" = xyes; then
3767 continue
3768 else
3769 break
3770 fi
3771 ;;
3772 msvisualcpp | msvcmsys)
3773 # This compiler won't grok `-c -o', but also, the minuso test has
3774 # not run yet. These depmodes are late enough in the game, and
3775 # so weak that their functioning should not be impacted.
3776 am__obj=conftest.${OBJEXT-o}
3777 am__minus_obj=
3778 ;;
3779 none) break ;;
3780 esac
3781 if depmode=$depmode \
3782 source=sub/conftest.c object=$am__obj \
3783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3785 >/dev/null 2>conftest.err &&
3786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790 # icc doesn't choke on unknown options, it will just issue warnings
3791 # or remarks (even with -Werror). So we grep stderr for any message
3792 # that says an option was ignored or not supported.
3793 # When given -MP, icc 7.0 and 7.1 complain thusly:
3794 # icc: Command line warning: ignoring option '-M'; no argument required
3795 # The diagnosis changed in icc 8.0:
3796 # icc: Command line remark: option '-MP' not supported
3797 if (grep 'ignoring option' conftest.err ||
3798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799 am_cv_CC_dependencies_compiler_type=$depmode
3800 break
3801 fi
3802 fi
3803 done
3804
3805 cd ..
3806 rm -rf conftest.dir
3807 else
3808 am_cv_CC_dependencies_compiler_type=none
3809 fi
3810
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815
3816 if
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3819 am__fastdepCC_TRUE=
3820 am__fastdepCC_FALSE='#'
3821 else
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3824 fi
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836 CPP=
3837 fi
3838 if test -z "$CPP"; then
3839 if ${ac_cv_prog_CPP+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844 do
3845 ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864
3865 else
3866 # Broken: fails on valid input.
3867 continue
3868 fi
3869 rm -f conftest.err conftest.i conftest.$ac_ext
3870
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <ac_nonexistent.h>
3876 _ACEOF
3877 if ac_fn_c_try_cpp "$LINENO"; then :
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3886
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.i conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then :
3891 break
3892 fi
3893
3894 done
3895 ac_cv_prog_CPP=$CPP
3896
3897 fi
3898 CPP=$ac_cv_prog_CPP
3899 else
3900 ac_cv_prog_CPP=$CPP
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3903 $as_echo "$CPP" >&6; }
3904 ac_preproc_ok=false
3905 for ac_c_preproc_warn_flag in '' yes
3906 do
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920 Syntax error
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923
3924 else
3925 # Broken: fails on valid input.
3926 continue
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"; then :
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3943 fi
3944 rm -f conftest.err conftest.i conftest.$ac_ext
3945
3946 done
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.i conftest.err conftest.$ac_ext
3949 if $ac_preproc_ok; then :
3950
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
3967 $as_echo_n "checking for pow in -lm... " >&6; }
3968 if ${ac_cv_lib_m_pow+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 ac_check_lib_save_LIBS=$LIBS
3972 LIBS="-lm $LIBS"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 /* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 char pow ();
3983 int
3984 main ()
3985 {
3986 return pow ();
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_link "$LINENO"; then :
3992 ac_cv_lib_m_pow=yes
3993 else
3994 ac_cv_lib_m_pow=no
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext \
3997 conftest$ac_exeext conftest.$ac_ext
3998 LIBS=$ac_check_lib_save_LIBS
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
4001 $as_echo "$ac_cv_lib_m_pow" >&6; }
4002 if test "x$ac_cv_lib_m_pow" = xyes; then :
4003 math_lib="-lm"
4004 else
4005 math_lib=""
4006 fi
4007
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerrno in -liberty" >&5
4010 $as_echo_n "checking for strerrno in -liberty... " >&6; }
4011 if ${ac_cv_lib_iberty_strerrno+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 ac_check_lib_save_LIBS=$LIBS
4015 LIBS="-liberty $LIBS"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 /* Override any GCC internal prototype to avoid an error.
4020 Use char because int might match the return type of a GCC
4021 builtin and then its argument prototype would still apply. */
4022 #ifdef __cplusplus
4023 extern "C"
4024 #endif
4025 char strerrno ();
4026 int
4027 main ()
4028 {
4029 return strerrno ();
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_link "$LINENO"; then :
4035 ac_cv_lib_iberty_strerrno=yes
4036 else
4037 ac_cv_lib_iberty_strerrno=no
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_strerrno" >&5
4044 $as_echo "$ac_cv_lib_iberty_strerrno" >&6; }
4045 if test "x$ac_cv_lib_iberty_strerrno" = xyes; then :
4046 liberty_lib="-liberty"
4047 else
4048 liberty_lib=""
4049 fi
4050
4051
4052 nsl_lib="";
4053 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4054 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4055 try_nsl=""
4056 else
4057 try_nsl="yes"
4058 fi
4059
4060 if test -n "${try_nsl}"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4062 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4063 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 ac_check_lib_save_LIBS=$LIBS
4067 LIBS="-lnsl $LIBS"
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 /* Override any GCC internal prototype to avoid an error.
4072 Use char because int might match the return type of a GCC
4073 builtin and then its argument prototype would still apply. */
4074 #ifdef __cplusplus
4075 extern "C"
4076 #endif
4077 char gethostbyname ();
4078 int
4079 main ()
4080 {
4081 return gethostbyname ();
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 if ac_fn_c_try_link "$LINENO"; then :
4087 ac_cv_lib_nsl_gethostbyname=yes
4088 else
4089 ac_cv_lib_nsl_gethostbyname=no
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext \
4092 conftest$ac_exeext conftest.$ac_ext
4093 LIBS=$ac_check_lib_save_LIBS
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4096 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4097 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4098 nsl_lib="-lnsl"
4099 else
4100 nsl_lib=""
4101 fi
4102
4103 fi
4104
4105 socket_lib="";
4106 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4107 if test "x$ac_cv_func_connect" = xyes; then :
4108 try_socket=""
4109 else
4110 try_socket="yes"
4111 fi
4112
4113 if test -n "${try_socket}"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4115 $as_echo_n "checking for connect in -lsocket... " >&6; }
4116 if ${ac_cv_lib_socket_connect+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_check_lib_save_LIBS=$LIBS
4120 LIBS="-lsocket $LIBS"
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 /* Override any GCC internal prototype to avoid an error.
4125 Use char because int might match the return type of a GCC
4126 builtin and then its argument prototype would still apply. */
4127 #ifdef __cplusplus
4128 extern "C"
4129 #endif
4130 char connect ();
4131 int
4132 main ()
4133 {
4134 return connect ();
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_link "$LINENO"; then :
4140 ac_cv_lib_socket_connect=yes
4141 else
4142 ac_cv_lib_socket_connect=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext \
4145 conftest$ac_exeext conftest.$ac_ext
4146 LIBS=$ac_check_lib_save_LIBS
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4149 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4150 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4151 socket_lib="-lsocket"
4152 else
4153 socket_lib=""
4154 fi
4155
4156 fi
4157
4158 thread_lib="";
4159 ac_fn_c_check_func "$LINENO" "thr_create" "ac_cv_func_thr_create"
4160 if test "x$ac_cv_func_thr_create" = xyes; then :
4161 try_thread=""
4162 else
4163 try_thread="yes"
4164 fi
4165
4166 if test -n "${try_thread}"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
4168 $as_echo_n "checking for thr_create in -lthread... " >&6; }
4169 if ${ac_cv_lib_thread_thr_create+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 ac_check_lib_save_LIBS=$LIBS
4173 LIBS="-lthread $LIBS"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 /* Override any GCC internal prototype to avoid an error.
4178 Use char because int might match the return type of a GCC
4179 builtin and then its argument prototype would still apply. */
4180 #ifdef __cplusplus
4181 extern "C"
4182 #endif
4183 char thr_create ();
4184 int
4185 main ()
4186 {
4187 return thr_create ();
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_link "$LINENO"; then :
4193 ac_cv_lib_thread_thr_create=yes
4194 else
4195 ac_cv_lib_thread_thr_create=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
4202 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
4203 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
4204 thread_lib="-lthread"
4205 else
4206 thread_lib=""
4207 fi
4208
4209 fi
4210
4211
4212
4213 fetk_cpu_vendor_os="";
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to disable the CPU-VENDOR-OS install triplet" >&5
4215 $as_echo_n "checking whether you want to disable the CPU-VENDOR-OS install triplet... " >&6; }
4216 # Check whether --enable-triplet was given.
4217 if test "${enable_triplet+set}" = set; then :
4218 enableval=$enable_triplet; triplet_kill="yes"
4219 else
4220 triplet_kill=""
4221
4222 fi
4223
4224 if test "${triplet_kill}" = yes; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4226 $as_echo "yes" >&6; }
4227 fetk_cpu_vendor_os="";
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fetk_cpu_vendor_os="${host_cpu}-${host_vendor}-${host_os}";
4232 fi
4233
4234
4235 rl_lib="";
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_RL_LIBRARY" >&5
4237 $as_echo_n "checking whether your environment defines FETK_RL_LIBRARY... " >&6; }
4238 if test -n "${FETK_RL_LIBRARY}"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4240 $as_echo "yes" >&6; }
4241 rl_lib_path="-L${FETK_RL_LIBRARY} ";
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 rl_lib_path="";
4246 fi
4247 LDFLAGS_SAVE=${LDFLAGS};
4248 LDFLAGS=${rl_lib_path};
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -lncurses" >&5
4250 $as_echo_n "checking for tgetnum in -lncurses... " >&6; }
4251 if ${ac_cv_lib_ncurses_tgetnum+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 ac_check_lib_save_LIBS=$LIBS
4255 LIBS="-lncurses ${math_lib} $LIBS"
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 /* Override any GCC internal prototype to avoid an error.
4260 Use char because int might match the return type of a GCC
4261 builtin and then its argument prototype would still apply. */
4262 #ifdef __cplusplus
4263 extern "C"
4264 #endif
4265 char tgetnum ();
4266 int
4267 main ()
4268 {
4269 return tgetnum ();
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_c_try_link "$LINENO"; then :
4275 ac_cv_lib_ncurses_tgetnum=yes
4276 else
4277 ac_cv_lib_ncurses_tgetnum=no
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext \
4280 conftest$ac_exeext conftest.$ac_ext
4281 LIBS=$ac_check_lib_save_LIBS
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetnum" >&5
4284 $as_echo "$ac_cv_lib_ncurses_tgetnum" >&6; }
4285 if test "x$ac_cv_lib_ncurses_tgetnum" = xyes; then :
4286 ncurses_lib="-lncurses"
4287 else
4288 ncurses_lib=""
4289 fi
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
4292 $as_echo_n "checking for readline in -lreadline... " >&6; }
4293 if ${ac_cv_lib_readline_readline+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 ac_check_lib_save_LIBS=$LIBS
4297 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300
4301 /* Override any GCC internal prototype to avoid an error.
4302 Use char because int might match the return type of a GCC
4303 builtin and then its argument prototype would still apply. */
4304 #ifdef __cplusplus
4305 extern "C"
4306 #endif
4307 char readline ();
4308 int
4309 main ()
4310 {
4311 return readline ();
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_link "$LINENO"; then :
4317 ac_cv_lib_readline_readline=yes
4318 else
4319 ac_cv_lib_readline_readline=no
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
4323 LIBS=$ac_check_lib_save_LIBS
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
4326 $as_echo "$ac_cv_lib_readline_readline" >&6; }
4327 if test "x$ac_cv_lib_readline_readline" = xyes; then :
4328 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
4329 else
4330 rl_use="";rl_lib=""
4331 fi
4332
4333 if test -n "${rl_use}"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
4335 $as_echo_n "checking for add_history in -lreadline... " >&6; }
4336 if ${ac_cv_lib_readline_add_history+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 ac_check_lib_save_LIBS=$LIBS
4340 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 /* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
4347 #ifdef __cplusplus
4348 extern "C"
4349 #endif
4350 char add_history ();
4351 int
4352 main ()
4353 {
4354 return add_history ();
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_link "$LINENO"; then :
4360 ac_cv_lib_readline_add_history=yes
4361 else
4362 ac_cv_lib_readline_add_history=no
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
4369 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
4370 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
4371 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
4372 else
4373 rl_use="";rl_lib=""
4374 fi
4375
4376 fi
4377 LDFLAGS=${LDFLAGS_SAVE};
4378
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is an OPENSTEP/NeXTSTEP/MacOS machine" >&5
4381 $as_echo_n "checking whether this is an OPENSTEP/NeXTSTEP/MacOS machine... " >&6; }
4382 if test "${host_os}" = "openstep4"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4385 objc_lib="-framework AppKit -Xlinker -read_only_relocs -Xlinker suppress";
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 objc_lib="";
4390 fi
4391
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_X_LIBRARY" >&5
4394 $as_echo_n "checking whether your environment defines FETK_X_LIBRARY... " >&6; }
4395 if test -n "${FETK_X_LIBRARY}"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397 $as_echo "yes" >&6; }
4398 x_lib_path="-L${FETK_X_LIBRARY} ";
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 x_lib_path="";
4403 fi
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4406 $as_echo_n "checking for X... " >&6; }
4407
4408
4409 # Check whether --with-x was given.
4410 if test "${with_x+set}" = set; then :
4411 withval=$with_x;
4412 fi
4413
4414 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4415 if test "x$with_x" = xno; then
4416 # The user explicitly disabled X.
4417 have_x=disabled
4418 else
4419 case $x_includes,$x_libraries in #(
4420 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4421 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 # One or both of the vars are not set, and there is no cached value.
4425 ac_x_includes=no ac_x_libraries=no
4426 rm -f -r conftest.dir
4427 if mkdir conftest.dir; then
4428 cd conftest.dir
4429 cat >Imakefile <<'_ACEOF'
4430 incroot:
4431 @echo incroot='${INCROOT}'
4432 usrlibdir:
4433 @echo usrlibdir='${USRLIBDIR}'
4434 libdir:
4435 @echo libdir='${LIBDIR}'
4436 _ACEOF
4437 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4438 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4439 for ac_var in incroot usrlibdir libdir; do
4440 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4441 done
4442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4443 for ac_extension in a so sl dylib la dll; do
4444 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4445 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4446 ac_im_usrlibdir=$ac_im_libdir; break
4447 fi
4448 done
4449 # Screen out bogus values from the imake configuration. They are
4450 # bogus both because they are the default anyway, and because
4451 # using them would break gcc on systems where it needs fixed includes.
4452 case $ac_im_incroot in
4453 /usr/include) ac_x_includes= ;;
4454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4455 esac
4456 case $ac_im_usrlibdir in
4457 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4459 esac
4460 fi
4461 cd ..
4462 rm -f -r conftest.dir
4463 fi
4464
4465 # Standard set of common directories for X headers.
4466 # Check X11 before X11Rn because it is often a symlink to the current release.
4467 ac_x_header_dirs='
4468 /usr/X11/include
4469 /usr/X11R7/include
4470 /usr/X11R6/include
4471 /usr/X11R5/include
4472 /usr/X11R4/include
4473
4474 /usr/include/X11
4475 /usr/include/X11R7
4476 /usr/include/X11R6
4477 /usr/include/X11R5
4478 /usr/include/X11R4
4479
4480 /usr/local/X11/include
4481 /usr/local/X11R7/include
4482 /usr/local/X11R6/include
4483 /usr/local/X11R5/include
4484 /usr/local/X11R4/include
4485
4486 /usr/local/include/X11
4487 /usr/local/include/X11R7
4488 /usr/local/include/X11R6
4489 /usr/local/include/X11R5
4490 /usr/local/include/X11R4
4491
4492 /usr/X386/include
4493 /usr/x386/include
4494 /usr/XFree86/include/X11
4495
4496 /usr/include
4497 /usr/local/include
4498 /usr/unsupported/include
4499 /usr/athena/include
4500 /usr/local/x11r5/include
4501 /usr/lpp/Xamples/include
4502
4503 /usr/openwin/include
4504 /usr/openwin/share/include'
4505
4506 if test "$ac_x_includes" = no; then
4507 # Guess where to find include files, by looking for Xlib.h.
4508 # First, try using that file with no special directory specified.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <X11/Xlib.h>
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514 # We can compile using X headers with no special include directory.
4515 ac_x_includes=
4516 else
4517 for ac_dir in $ac_x_header_dirs; do
4518 if test -r "$ac_dir/X11/Xlib.h"; then
4519 ac_x_includes=$ac_dir
4520 break
4521 fi
4522 done
4523 fi
4524 rm -f conftest.err conftest.i conftest.$ac_ext
4525 fi # $ac_x_includes = no
4526
4527 if test "$ac_x_libraries" = no; then
4528 # Check for the libraries.
4529 # See if we find them without any special options.
4530 # Don't add to $LIBS permanently.
4531 ac_save_LIBS=$LIBS
4532 LIBS="-lX11 $LIBS"
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <X11/Xlib.h>
4536 int
4537 main ()
4538 {
4539 XrmInitialize ()
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_link "$LINENO"; then :
4545 LIBS=$ac_save_LIBS
4546 # We can link X programs with no special library path.
4547 ac_x_libraries=
4548 else
4549 LIBS=$ac_save_LIBS
4550 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4551 do
4552 # Don't even attempt the hair of trying to link an X program!
4553 for ac_extension in a so sl dylib la dll; do
4554 if test -r "$ac_dir/libX11.$ac_extension"; then
4555 ac_x_libraries=$ac_dir
4556 break 2
4557 fi
4558 done
4559 done
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext \
4562 conftest$ac_exeext conftest.$ac_ext
4563 fi # $ac_x_libraries = no
4564
4565 case $ac_x_includes,$ac_x_libraries in #(
4566 no,* | *,no | *\'*)
4567 # Didn't find X, or a directory has "'" in its name.
4568 ac_cv_have_x="have_x=no";; #(
4569 *)
4570 # Record where we found X for the cache.
4571 ac_cv_have_x="have_x=yes\
4572 ac_x_includes='$ac_x_includes'\
4573 ac_x_libraries='$ac_x_libraries'"
4574 esac
4575 fi
4576 ;; #(
4577 *) have_x=yes;;
4578 esac
4579 eval "$ac_cv_have_x"
4580 fi # $with_x != no
4581
4582 if test "$have_x" != yes; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4584 $as_echo "$have_x" >&6; }
4585 no_x=yes
4586 else
4587 # If each of the values was on the command line, it overrides each guess.
4588 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4589 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4590 # Update the cache value to reflect the command line values.
4591 ac_cv_have_x="have_x=yes\
4592 ac_x_includes='$x_includes'\
4593 ac_x_libraries='$x_libraries'"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4595 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4596 fi
4597
4598 if test "$no_x" = yes; then
4599 # Not all programs may use this symbol, but it does not hurt to define it.
4600
4601 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4602
4603 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4604 else
4605 if test -n "$x_includes"; then
4606 X_CFLAGS="$X_CFLAGS -I$x_includes"
4607 fi
4608
4609 # It would also be nice to do this for all -L options, not just this one.
4610 if test -n "$x_libraries"; then
4611 X_LIBS="$X_LIBS -L$x_libraries"
4612 # For Solaris; some versions of Sun CC require a space after -R and
4613 # others require no space. Words are not sufficient . . . .
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4615 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4616 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4617 ac_xsave_c_werror_flag=$ac_c_werror_flag
4618 ac_c_werror_flag=yes
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 int
4623 main ()
4624 {
4625
4626 ;
4627 return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_link "$LINENO"; then :
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 X_LIBS="$X_LIBS -R$x_libraries"
4634 else
4635 LIBS="$ac_xsave_LIBS -R $x_libraries"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642
4643 ;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_link "$LINENO"; then :
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649 $as_echo "yes" >&6; }
4650 X_LIBS="$X_LIBS -R $x_libraries"
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4653 $as_echo "neither works" >&6; }
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext \
4659 conftest$ac_exeext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_xsave_c_werror_flag
4661 LIBS=$ac_xsave_LIBS
4662 fi
4663
4664 # Check for system-dependent libraries X programs must link with.
4665 # Do this before checking for the system-independent R6 libraries
4666 # (-lICE), since we may need -lsocket or whatever for X linking.
4667
4668 if test "$ISC" = yes; then
4669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4670 else
4671 # Martyn Johnson says this is needed for Ultrix, if the X
4672 # libraries were built with DECnet support. And Karl Berry says
4673 # the Alpha needs dnet_stub (dnet does not exist).
4674 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677
4678 /* Override any GCC internal prototype to avoid an error.
4679 Use char because int might match the return type of a GCC
4680 builtin and then its argument prototype would still apply. */
4681 #ifdef __cplusplus
4682 extern "C"
4683 #endif
4684 char XOpenDisplay ();
4685 int
4686 main ()
4687 {
4688 return XOpenDisplay ();
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_link "$LINENO"; then :
4694
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4697 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4698 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 ac_check_lib_save_LIBS=$LIBS
4702 LIBS="-ldnet $LIBS"
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705
4706 /* Override any GCC internal prototype to avoid an error.
4707 Use char because int might match the return type of a GCC
4708 builtin and then its argument prototype would still apply. */
4709 #ifdef __cplusplus
4710 extern "C"
4711 #endif
4712 char dnet_ntoa ();
4713 int
4714 main ()
4715 {
4716 return dnet_ntoa ();
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_link "$LINENO"; then :
4722 ac_cv_lib_dnet_dnet_ntoa=yes
4723 else
4724 ac_cv_lib_dnet_dnet_ntoa=no
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4731 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4732 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4733 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4734 fi
4735
4736 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4738 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4739 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_check_lib_save_LIBS=$LIBS
4743 LIBS="-ldnet_stub $LIBS"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746
4747 /* Override any GCC internal prototype to avoid an error.
4748 Use char because int might match the return type of a GCC
4749 builtin and then its argument prototype would still apply. */
4750 #ifdef __cplusplus
4751 extern "C"
4752 #endif
4753 char dnet_ntoa ();
4754 int
4755 main ()
4756 {
4757 return dnet_ntoa ();
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_link "$LINENO"; then :
4763 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4764 else
4765 ac_cv_lib_dnet_stub_dnet_ntoa=no
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext \
4768 conftest$ac_exeext conftest.$ac_ext
4769 LIBS=$ac_check_lib_save_LIBS
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4772 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4773 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4775 fi
4776
4777 fi
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
4781 LIBS="$ac_xsave_LIBS"
4782
4783 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4784 # to get the SysV transport functions.
4785 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4786 # needs -lnsl.
4787 # The nsl library prevents programs from opening the X display
4788 # on Irix 5.2, according to T.E. Dickey.
4789 # The functions gethostbyname, getservbyname, and inet_addr are
4790 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4791 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4792 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4793
4794 fi
4795
4796 if test $ac_cv_func_gethostbyname = no; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4798 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4799 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 ac_check_lib_save_LIBS=$LIBS
4803 LIBS="-lnsl $LIBS"
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806
4807 /* Override any GCC internal prototype to avoid an error.
4808 Use char because int might match the return type of a GCC
4809 builtin and then its argument prototype would still apply. */
4810 #ifdef __cplusplus
4811 extern "C"
4812 #endif
4813 char gethostbyname ();
4814 int
4815 main ()
4816 {
4817 return gethostbyname ();
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_link "$LINENO"; then :
4823 ac_cv_lib_nsl_gethostbyname=yes
4824 else
4825 ac_cv_lib_nsl_gethostbyname=no
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext \
4828 conftest$ac_exeext conftest.$ac_ext
4829 LIBS=$ac_check_lib_save_LIBS
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4832 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4833 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4835 fi
4836
4837 if test $ac_cv_lib_nsl_gethostbyname = no; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4839 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4840 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 ac_check_lib_save_LIBS=$LIBS
4844 LIBS="-lbsd $LIBS"
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847
4848 /* Override any GCC internal prototype to avoid an error.
4849 Use char because int might match the return type of a GCC
4850 builtin and then its argument prototype would still apply. */
4851 #ifdef __cplusplus
4852 extern "C"
4853 #endif
4854 char gethostbyname ();
4855 int
4856 main ()
4857 {
4858 return gethostbyname ();
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_link "$LINENO"; then :
4864 ac_cv_lib_bsd_gethostbyname=yes
4865 else
4866 ac_cv_lib_bsd_gethostbyname=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext \
4869 conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4873 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4874 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4876 fi
4877
4878 fi
4879 fi
4880
4881 # [email protected] says without -lsocket,
4882 # socket/setsockopt and other routines are undefined under SCO ODT
4883 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4884 # on later versions), says Simon Leinen: it contains gethostby*
4885 # variants that don't use the name server (or something). -lsocket
4886 # must be given before -lnsl if both are needed. We assume that
4887 # if connect needs -lnsl, so does gethostbyname.
4888 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4889 if test "x$ac_cv_func_connect" = xyes; then :
4890
4891 fi
4892
4893 if test $ac_cv_func_connect = no; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4895 $as_echo_n "checking for connect in -lsocket... " >&6; }
4896 if ${ac_cv_lib_socket_connect+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 ac_check_lib_save_LIBS=$LIBS
4900 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903
4904 /* Override any GCC internal prototype to avoid an error.
4905 Use char because int might match the return type of a GCC
4906 builtin and then its argument prototype would still apply. */
4907 #ifdef __cplusplus
4908 extern "C"
4909 #endif
4910 char connect ();
4911 int
4912 main ()
4913 {
4914 return connect ();
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_link "$LINENO"; then :
4920 ac_cv_lib_socket_connect=yes
4921 else
4922 ac_cv_lib_socket_connect=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext \
4925 conftest$ac_exeext conftest.$ac_ext
4926 LIBS=$ac_check_lib_save_LIBS
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4929 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4930 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4931 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4932 fi
4933
4934 fi
4935
4936 # Guillermo Gomez says -lposix is necessary on A/UX.
4937 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4938 if test "x$ac_cv_func_remove" = xyes; then :
4939
4940 fi
4941
4942 if test $ac_cv_func_remove = no; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4944 $as_echo_n "checking for remove in -lposix... " >&6; }
4945 if ${ac_cv_lib_posix_remove+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_check_lib_save_LIBS=$LIBS
4949 LIBS="-lposix $LIBS"
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 /* Override any GCC internal prototype to avoid an error.
4954 Use char because int might match the return type of a GCC
4955 builtin and then its argument prototype would still apply. */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 char remove ();
4960 int
4961 main ()
4962 {
4963 return remove ();
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_lib_posix_remove=yes
4970 else
4971 ac_cv_lib_posix_remove=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4978 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4979 if test "x$ac_cv_lib_posix_remove" = xyes; then :
4980 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4981 fi
4982
4983 fi
4984
4985 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4986 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4987 if test "x$ac_cv_func_shmat" = xyes; then :
4988
4989 fi
4990
4991 if test $ac_cv_func_shmat = no; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4993 $as_echo_n "checking for shmat in -lipc... " >&6; }
4994 if ${ac_cv_lib_ipc_shmat+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_check_lib_save_LIBS=$LIBS
4998 LIBS="-lipc $LIBS"
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001
5002 /* Override any GCC internal prototype to avoid an error.
5003 Use char because int might match the return type of a GCC
5004 builtin and then its argument prototype would still apply. */
5005 #ifdef __cplusplus
5006 extern "C"
5007 #endif
5008 char shmat ();
5009 int
5010 main ()
5011 {
5012 return shmat ();
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_link "$LINENO"; then :
5018 ac_cv_lib_ipc_shmat=yes
5019 else
5020 ac_cv_lib_ipc_shmat=no
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext \
5023 conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5027 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5028 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5030 fi
5031
5032 fi
5033 fi
5034
5035 # Check for libraries that X11R6 Xt/Xaw programs need.
5036 ac_save_LDFLAGS=$LDFLAGS
5037 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5038 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5039 # check for ICE first), but we must link in the order -lSM -lICE or
5040 # we get undefined symbols. So assume we have SM if we have ICE.
5041 # These have to be linked with before -lX11, unlike the other
5042 # libraries we check for below, so use a different variable.
5043 # John Interrante, Karl Berry
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5045 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5046 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 /* Override any GCC internal prototype to avoid an error.
5055 Use char because int might match the return type of a GCC
5056 builtin and then its argument prototype would still apply. */
5057 #ifdef __cplusplus
5058 extern "C"
5059 #endif
5060 char IceConnectionNumber ();
5061 int
5062 main ()
5063 {
5064 return IceConnectionNumber ();
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_link "$LINENO"; then :
5070 ac_cv_lib_ICE_IceConnectionNumber=yes
5071 else
5072 ac_cv_lib_ICE_IceConnectionNumber=no
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext \
5075 conftest$ac_exeext conftest.$ac_ext
5076 LIBS=$ac_check_lib_save_LIBS
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5079 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5080 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5081 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5082 fi
5083
5084 LDFLAGS=$ac_save_LDFLAGS
5085
5086 fi
5087
5088 if test -z "${no_x}"; then
5089 x_lib_base="-lXaw -lXmu -lXi -lXt -lXext -lX11"
5090 x_lib="${x_lib_path} ${X_LIBS} ${X_EXTRA_LIBS} ${X_PRE_LIBS} ${x_lib_base}"
5091 else
5092 x_lib=""
5093 fi
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin processing APP configure options ----------" >&5
5097 $as_echo "---------- begin processing APP configure options ----------" >&6; }
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want pedantic ANSI compilation" >&5
5100 $as_echo_n "checking whether you want pedantic ANSI compilation... " >&6; }
5101 # Check whether --enable-pansi was given.
5102 if test "${enable_pansi+set}" = set; then :
5103 enableval=$enable_pansi; pansi_use="yes"
5104 else
5105 pansi_use=""
5106
5107 fi
5108
5109 if test -z "${pansi_use}"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 wall=""
5113 wall_pedantic=""
5114 wall_pedantic_ansi=""
5115 pedantic_ansi=""
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5118 $as_echo "yes" >&6; }
5119 wall="-Wall"
5120 wall_pedantic="-Wall -pedantic"
5121 wall_pedantic_ansi="-Wall -pedantic -ansi"
5122 pedantic_ansi="-pedantic -ansi"
5123 fi
5124
5125
5126
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want profiling" >&5
5130 $as_echo_n "checking whether you want profiling... " >&6; }
5131 # Check whether --enable-gprof was given.
5132 if test "${enable_gprof+set}" = set; then :
5133 enableval=$enable_gprof; gprof_use="yes"
5134 else
5135 gprof_use=""
5136
5137 fi
5138
5139 if test -z "${gprof_use}"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 profile=""
5143 profile_lib=""
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147 profile="-pg"
5148 profile_lib="-pg"
5149 fi
5150
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want ElectricFence" >&5
5154 $as_echo_n "checking whether you want ElectricFence... " >&6; }
5155 # Check whether --enable-efence was given.
5156 if test "${enable_efence+set}" = set; then :
5157 enableval=$enable_efence; efence_use="yes"
5158 else
5159 efence_use=""
5160
5161 fi
5162
5163 if test -z "${efence_use}"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 zfence="";
5167 zfence_lib="";
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ...poking around for it" >&5
5170 $as_echo "yes ...poking around for it" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
5172 $as_echo_n "checking for main in -lefence... " >&6; }
5173 if ${ac_cv_lib_efence_main+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-lefence $LIBS"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180
5181
5182 int
5183 main ()
5184 {
5185 return main ();
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_link "$LINENO"; then :
5191 ac_cv_lib_efence_main=yes
5192 else
5193 ac_cv_lib_efence_main=no
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext \
5196 conftest$ac_exeext conftest.$ac_ext
5197 LIBS=$ac_check_lib_save_LIBS
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
5200 $as_echo "$ac_cv_lib_efence_main" >&6; }
5201 if test "x$ac_cv_lib_efence_main" = xyes; then :
5202 efence_use="yes";zfence="zfence";zfence_lib="-lefence"
5203 else
5204 efence_use="";zfence="";zfence_lib=""
5205 fi
5206
5207 fi
5208
5209
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_MOTIF_LIBRARY" >&5
5212 $as_echo_n "checking whether your environment defines FETK_MOTIF_LIBRARY... " >&6; }
5213 if test -n "${FETK_MOTIF_LIBRARY}"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5216 motif_lib_path="-L${FETK_MOTIF_LIBRARY} ";
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 motif_lib_path="";
5221 fi
5222 motif_lib=""
5223 motif_use="";
5224 if test -n "${no_x}"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** You do not have X ...Motif DISABLED **" >&5
5226 $as_echo "** You do not have X ...Motif DISABLED **" >&6; }
5227 else
5228 LDFLAGS_SAVE=${LDFLAGS};
5229 LDFLAGS=${motif_lib_path};
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetColors in -lXm" >&5
5231 $as_echo_n "checking for XmGetColors in -lXm... " >&6; }
5232 if ${ac_cv_lib_Xm_XmGetColors+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_check_lib_save_LIBS=$LIBS
5236 LIBS="-lXm ${motif_lib_path}-lXm ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char XmGetColors ();
5247 int
5248 main ()
5249 {
5250 return XmGetColors ();
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_link "$LINENO"; then :
5256 ac_cv_lib_Xm_XmGetColors=yes
5257 else
5258 ac_cv_lib_Xm_XmGetColors=no
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetColors" >&5
5265 $as_echo "$ac_cv_lib_Xm_XmGetColors" >&6; }
5266 if test "x$ac_cv_lib_Xm_XmGetColors" = xyes; then :
5267 motif_use="yes";motif_lib="${motif_lib_path}-lXm"
5268 else
5269 motif_use="";motif_lib=""
5270 fi
5271
5272 LDFLAGS=${LDFLAGS_SAVE};
5273 fi
5274
5275 if test x$motif_use = xyes; then
5276 EXISTS_MOTIF_TRUE=
5277 EXISTS_MOTIF_FALSE='#'
5278 else
5279 EXISTS_MOTIF_TRUE='#'
5280 EXISTS_MOTIF_FALSE=
5281 fi
5282
5283
5284 if test -z "${no_x}"; then
5285 if test -z "${motif_use}"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif library missing but not required ...rocking on..." >&5
5287 $as_echo "Motif library missing but not required ...rocking on..." >&6; }
5288 fi
5289 fi
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GL_LIBRARY" >&5
5292 $as_echo_n "checking whether your environment defines FETK_GL_LIBRARY... " >&6; }
5293 if test -n "${FETK_GL_LIBRARY}"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5296 gl_lib_path="-L${FETK_GL_LIBRARY} ";
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 gl_lib_path="";
5301 fi
5302 if test -n "${FETK_LIBRARY}"; then
5303 gl_lib_path="${gl_lib_path} -L${FETK_LIBRARY} ";
5304 fi
5305
5306 LDFLAGS_SAVE=${LDFLAGS};
5307 LDFLAGS=${gl_lib_path};
5308 gl_lib="";
5309 gl_use="";
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you need the MacOSX hack for OpenGL" >&5
5311 $as_echo_n "checking whether you need the MacOSX hack for OpenGL... " >&6; }
5312 if test "${host_vendor}" == "apple"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314 $as_echo "yes" >&6; }
5315 gl_lib_hack="-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 gl_lib_hack="";
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glPushMatrix in -lGL" >&5
5322 $as_echo_n "checking for glPushMatrix in -lGL... " >&6; }
5323 if ${ac_cv_lib_GL_glPushMatrix+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 ac_check_lib_save_LIBS=$LIBS
5327 LIBS="-lGL ${gl_lib_path}-lGL ${gl_lib_hack} ${motif_lib} ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330
5331 /* Override any GCC internal prototype to avoid an error.
5332 Use char because int might match the return type of a GCC
5333 builtin and then its argument prototype would still apply. */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 char glPushMatrix ();
5338 int
5339 main ()
5340 {
5341 return glPushMatrix ();
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 ac_cv_lib_GL_glPushMatrix=yes
5348 else
5349 ac_cv_lib_GL_glPushMatrix=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glPushMatrix" >&5
5356 $as_echo "$ac_cv_lib_GL_glPushMatrix" >&6; }
5357 if test "x$ac_cv_lib_GL_glPushMatrix" = xyes; then :
5358 gl_use="yes";gl_lib="${gl_lib_path}-lGL ${gl_lib_hack}"
5359 else
5360 gl_use="";gl_lib=""
5361 fi
5362
5363
5364 LDFLAGS=${LDFLAGS_SAVE};
5365
5366
5367 if test -z "${gl_use}"; then
5368 as_fn_error $? "GL library missing but REQUIRED...EXITING ON ERROR" "$LINENO" 5
5369 fi
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLU_LIBRARY" >&5
5372 $as_echo_n "checking whether your environment defines FETK_GLU_LIBRARY... " >&6; }
5373 if test -n "${FETK_GLU_LIBRARY}"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375 $as_echo "yes" >&6; }
5376 glu_lib_path="-L${FETK_GLU_LIBRARY} ";
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 glu_lib_path="";
5381 fi
5382 if test -n "${FETK_LIBRARY}"; then
5383 glu_lib_path="${glu_lib_path} -L${FETK_LIBRARY} ";
5384 fi
5385
5386 LDFLAGS_SAVE=${LDFLAGS};
5387 LDFLAGS=${glu_lib_path};
5388 glu_use="";
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
5390 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
5391 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 ac_check_lib_save_LIBS=$LIBS
5395 LIBS="-lGLU ${glu_lib_path}-lGLU ${gl_lib} ${motif_lib} ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5402 #ifdef __cplusplus
5403 extern "C"
5404 #endif
5405 char gluLookAt ();
5406 int
5407 main ()
5408 {
5409 return gluLookAt ();
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_link "$LINENO"; then :
5415 ac_cv_lib_GLU_gluLookAt=yes
5416 else
5417 ac_cv_lib_GLU_gluLookAt=no
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
5424 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
5425 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
5426 glu_use="yes";glu_lib="${glu_lib_path}-lGLU"
5427 else
5428 glu_use="";glu_lib=""
5429 fi
5430
5431
5432 LDFLAGS=${LDFLAGS_SAVE};
5433
5434
5435 if test -z "${glu_use}"; then
5436 as_fn_error $? "GLU library missing but REQUIRED...EXITING ON ERROR" "$LINENO" 5
5437 fi
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLW_LIBRARY" >&5
5440 $as_echo_n "checking whether your environment defines FETK_GLW_LIBRARY... " >&6; }
5441 if test -n "${FETK_GLW_LIBRARY}"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5443 $as_echo "yes" >&6; }
5444 glw_lib_path="-L${FETK_GLW_LIBRARY} ";
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448 glw_lib_path="";
5449 fi
5450 if test -n "${FETK_LIBRARY}"; then
5451 glw_lib_path="${glw_lib_path} -L${FETK_LIBRARY} ";
5452 fi
5453
5454 glw_lib=""
5455 glw_use="";
5456 if test -n "${no_x}"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** You do not have X ...GLw DISABLED **" >&5
5458 $as_echo "** You do not have X ...GLw DISABLED **" >&6; }
5459 else
5460 LDFLAGS_SAVE=${LDFLAGS};
5461 LDFLAGS=${glw_lib_path};
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLwDrawingAreaSwapBuffers in -lGLw" >&5
5463 $as_echo_n "checking for GLwDrawingAreaSwapBuffers in -lGLw... " >&6; }
5464 if ${ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 ac_check_lib_save_LIBS=$LIBS
5468 LIBS="-lGLw ${glw_lib_path}-lGLw ${glu_lib} ${gl_lib} ${motif_lib} ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471
5472 /* Override any GCC internal prototype to avoid an error.
5473 Use char because int might match the return type of a GCC
5474 builtin and then its argument prototype would still apply. */
5475 #ifdef __cplusplus
5476 extern "C"
5477 #endif
5478 char GLwDrawingAreaSwapBuffers ();
5479 int
5480 main ()
5481 {
5482 return GLwDrawingAreaSwapBuffers ();
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_link "$LINENO"; then :
5488 ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers=yes
5489 else
5490 ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers=no
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext \
5493 conftest$ac_exeext conftest.$ac_ext
5494 LIBS=$ac_check_lib_save_LIBS
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" >&5
5497 $as_echo "$ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" >&6; }
5498 if test "x$ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" = xyes; then :
5499 glw_use="yes";glw_lib="${glw_lib_path}-lGLw"
5500 else
5501 glw_use="";glw_lib=""
5502 fi
5503
5504 LDFLAGS=${LDFLAGS_SAVE};
5505 fi
5506
5507
5508 if test -z "${no_x}"; then
5509 if test -z "${glw_lib}"; then
5510 as_fn_error $? "GLw library missing but REQUIRED...EXITING ON ERROR" "$LINENO" 5
5511 fi
5512 fi
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to build library test programs" >&5
5515 $as_echo_n "checking whether you want to build library test programs... " >&6; }
5516 # Check whether --enable-vtst was given.
5517 if test "${enable_vtst+set}" = set; then :
5518 enableval=$enable_vtst; vtst="tests";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5519 $as_echo "yes" >&6; }
5520 else
5521 vtst="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523
5524 fi
5525
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ------------ end processing APP configure options ----------" >&5
5529 $as_echo "------------ end processing APP configure options ----------" >&6; }
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin configuring for MALOC linkage ------------" >&5
5532 $as_echo "---------- begin configuring for MALOC linkage ------------" >&6; }
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
5536 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
5537 if test -n "${FETK_INCLUDE}"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 maloc_inc_path="-I${FETK_INCLUDE} ";
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 maloc_inc_path="";
5545 fi
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
5548 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
5549 if test -n "${FETK_LIBRARY}"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5552 maloc_lib_path="-L${FETK_LIBRARY} ";
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 maloc_lib_path="";
5557 fi
5558
5559 LDFLAGS_SAVE=${LDFLAGS};
5560 CPPFLAGS_SAVE=${CPPFLAGS};
5561 LDFLAGS=${maloc_lib_path};
5562 CPPFLAGS=${maloc_inc_path};
5563 maloc_found="";
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5565 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5566 if ${ac_cv_path_GREP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -z "$GREP"; then
5570 ac_path_GREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5574 do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in grep ggrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5581 # Check for GNU ac_path_GREP and select it if it is found.
5582 # Check for GNU $ac_path_GREP
5583 case `"$ac_path_GREP" --version 2>&1` in
5584 *GNU*)
5585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5586 *)
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5590 do
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo 'GREP' >> "conftest.nl"
5595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_GREP="$ac_path_GREP"
5601 ac_path_GREP_max=$ac_count
5602 fi
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5608
5609 $ac_path_GREP_found && break 3
5610 done
5611 done
5612 done
5613 IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_GREP"; then
5615 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5616 fi
5617 else
5618 ac_cv_path_GREP=$GREP
5619 fi
5620
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5623 $as_echo "$ac_cv_path_GREP" >&6; }
5624 GREP="$ac_cv_path_GREP"
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5628 $as_echo_n "checking for egrep... " >&6; }
5629 if ${ac_cv_path_EGREP+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5633 then ac_cv_path_EGREP="$GREP -E"
5634 else
5635 if test -z "$EGREP"; then
5636 ac_path_EGREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in egrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5647 # Check for GNU ac_path_EGREP and select it if it is found.
5648 # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5652 *)
5653 ac_count=0
5654 $as_echo_n 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP="$ac_path_EGREP"
5667 ac_path_EGREP_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675 $ac_path_EGREP_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_EGREP"; then
5681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5682 fi
5683 else
5684 ac_cv_path_EGREP=$EGREP
5685 fi
5686
5687 fi
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5690 $as_echo "$ac_cv_path_EGREP" >&6; }
5691 EGREP="$ac_cv_path_EGREP"
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5695 $as_echo_n "checking for ANSI C header files... " >&6; }
5696 if ${ac_cv_header_stdc+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <stdlib.h>
5702 #include <stdarg.h>
5703 #include <string.h>
5704 #include <float.h>
5705
5706 int
5707 main ()
5708 {
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 ac_cv_header_stdc=yes
5716 else
5717 ac_cv_header_stdc=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720
5721 if test $ac_cv_header_stdc = yes; then
5722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <string.h>
5726
5727 _ACEOF
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "memchr" >/dev/null 2>&1; then :
5730
5731 else
5732 ac_cv_header_stdc=no
5733 fi
5734 rm -f conftest*
5735
5736 fi
5737
5738 if test $ac_cv_header_stdc = yes; then
5739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <stdlib.h>
5743
5744 _ACEOF
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "free" >/dev/null 2>&1; then :
5747
5748 else
5749 ac_cv_header_stdc=no
5750 fi
5751 rm -f conftest*
5752
5753 fi
5754
5755 if test $ac_cv_header_stdc = yes; then
5756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5757 if test "$cross_compiling" = yes; then :
5758 :
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <ctype.h>
5763 #include <stdlib.h>
5764 #if ((' ' & 0x0FF) == 0x020)
5765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5767 #else
5768 # define ISLOWER(c) \
5769 (('a' <= (c) && (c) <= 'i') \
5770 || ('j' <= (c) && (c) <= 'r') \
5771 || ('s' <= (c) && (c) <= 'z'))
5772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5773 #endif
5774
5775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5776 int
5777 main ()
5778 {
5779 int i;
5780 for (i = 0; i < 256; i++)
5781 if (XOR (islower (i), ISLOWER (i))
5782 || toupper (i) != TOUPPER (i))
5783 return 2;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_run "$LINENO"; then :
5788
5789 else
5790 ac_cv_header_stdc=no
5791 fi
5792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5793 conftest.$ac_objext conftest.beam conftest.$ac_ext
5794 fi
5795
5796 fi
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5799 $as_echo "$ac_cv_header_stdc" >&6; }
5800 if test $ac_cv_header_stdc = yes; then
5801
5802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5803
5804 fi
5805
5806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5808 inttypes.h stdint.h unistd.h
5809 do :
5810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5812 "
5813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5814 cat >>confdefs.h <<_ACEOF
5815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816 _ACEOF
5817
5818 fi
5819
5820 done
5821
5822
5823 ac_fn_c_check_header_mongrel "$LINENO" "maloc/maloc.h" "ac_cv_header_maloc_maloc_h" "$ac_includes_default"
5824 if test "x$ac_cv_header_maloc_maloc_h" = xyes; then :
5825 maloc_found="yes";maloc_inc="${maloc_inc_path}"
5826 else
5827 maloc_found="";maloc_inc=""
5828 fi
5829
5830
5831 if test -n "${maloc_found}"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_link in -lmaloc" >&5
5833 $as_echo_n "checking for maloc_link in -lmaloc... " >&6; }
5834 if ${ac_cv_lib_maloc_maloc_link+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-lmaloc ${maloc_lib_path}-lmaloc ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char maloc_link ();
5849 int
5850 main ()
5851 {
5852 return maloc_link ();
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"; then :
5858 ac_cv_lib_maloc_maloc_link=yes
5859 else
5860 ac_cv_lib_maloc_maloc_link=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
5864 LIBS=$ac_check_lib_save_LIBS
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_link" >&5
5867 $as_echo "$ac_cv_lib_maloc_maloc_link" >&6; }
5868 if test "x$ac_cv_lib_maloc_maloc_link" = xyes; then :
5869 maloc_found="yes";maloc_lib="${maloc_lib_path}-lmaloc"
5870 else
5871 maloc_found="";maloc_lib=""
5872 fi
5873
5874 fi
5875 if test -z "${maloc_found}"; then
5876 as_fn_error $? "MALOC libraries OR headers missing ...EXITING ON ERROR" "$LINENO" 5
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MALOC libraries AND headers were found ...rocking on..." >&5
5879 $as_echo "MALOC libraries AND headers were found ...rocking on..." >&6; }
5880 fi
5881
5882 LDFLAGS=${LDFLAGS_SAVE};
5883 CPPFLAGS=${CPPFLAGS_SAVE};
5884
5885
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_needs_rl in -lmaloc" >&5
5888 $as_echo_n "checking for maloc_needs_rl in -lmaloc... " >&6; }
5889 if ${ac_cv_lib_maloc_maloc_needs_rl+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lmaloc ${maloc_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 char maloc_needs_rl ();
5904 int
5905 main ()
5906 {
5907 return maloc_needs_rl ();
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_link "$LINENO"; then :
5913 ac_cv_lib_maloc_maloc_needs_rl=yes
5914 else
5915 ac_cv_lib_maloc_maloc_needs_rl=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5919 LIBS=$ac_check_lib_save_LIBS
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_needs_rl" >&5
5922 $as_echo "$ac_cv_lib_maloc_maloc_needs_rl" >&6; }
5923 if test "x$ac_cv_lib_maloc_maloc_needs_rl" = xyes; then :
5924 rl_use="yes"
5925 else
5926 rl_use=""
5927 fi
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- end configuring for MALOC linkage --------------" >&5
5931 $as_echo "---------- end configuring for MALOC linkage --------------" >&6; }
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin configuring for SG linkage ---------------" >&5
5934 $as_echo "---------- begin configuring for SG linkage ---------------" >&6; }
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
5937 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
5938 if test -n "${FETK_INCLUDE}"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5940 $as_echo "yes" >&6; }
5941 sg_inc_path="-I${FETK_INCLUDE} ";
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 sg_inc_path="";
5946 fi
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
5949 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
5950 if test -n "${FETK_LIBRARY}"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952 $as_echo "yes" >&6; }
5953 sg_lib_path="-L${FETK_LIBRARY} ";
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 sg_lib_path="";
5958 fi
5959
5960 LDFLAGS_SAVE=${LDFLAGS};
5961 CPPFLAGS_SAVE=${CPPFLAGS};
5962 LDFLAGS=${sg_lib_path};
5963 CPPFLAGS=${sg_inc_path};
5964 sg_found="";
5965 ac_fn_c_check_header_mongrel "$LINENO" "sg/sg.h" "ac_cv_header_sg_sg_h" "$ac_includes_default"
5966 if test "x$ac_cv_header_sg_sg_h" = xyes; then :
5967 sg_found="yes";sg_inc="${sg_inc_path}"
5968 else
5969 sg_found="";sg_inc=""
5970 fi
5971
5972
5973 if test -n "${sg_found}"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_link in -lsg" >&5
5975 $as_echo_n "checking for sg_link in -lsg... " >&6; }
5976 if ${ac_cv_lib_sg_sg_link+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 ac_check_lib_save_LIBS=$LIBS
5980 LIBS="-lsg ${sg_lib_path}-lsg ${maloc_lib} ${glw_lib} ${glu_lib} ${gl_lib} ${motif_lib} ${x_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${objc_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983
5984 /* Override any GCC internal prototype to avoid an error.
5985 Use char because int might match the return type of a GCC
5986 builtin and then its argument prototype would still apply. */
5987 #ifdef __cplusplus
5988 extern "C"
5989 #endif
5990 char sg_link ();
5991 int
5992 main ()
5993 {
5994 return sg_link ();
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 if ac_fn_c_try_link "$LINENO"; then :
6000 ac_cv_lib_sg_sg_link=yes
6001 else
6002 ac_cv_lib_sg_sg_link=no
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sg_sg_link" >&5
6009 $as_echo "$ac_cv_lib_sg_sg_link" >&6; }
6010 if test "x$ac_cv_lib_sg_sg_link" = xyes; then :
6011 sg_found="yes";sg_lib="${sg_lib_path}-lsg"
6012 else
6013 sg_found="";sg_lib=""
6014 fi
6015
6016 fi
6017 if test -z "${sg_found}"; then
6018 as_fn_error $? "SG libraries OR headers missing ...EXITING ON ERROR" "$LINENO" 5
6019 else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SG libraries AND headers were found ...rocking on..." >&5
6021 $as_echo "SG libraries AND headers were found ...rocking on..." >&6; }
6022 fi
6023
6024 LDFLAGS=${LDFLAGS_SAVE};
6025 CPPFLAGS=${CPPFLAGS_SAVE};
6026
6027
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- end processing SG configure options ----------" >&5
6030 $as_echo "---------- end processing SG configure options ----------" >&6; }
6031
6032 ac_config_files="$ac_config_files Makefile tests/Makefile tests/gl/Makefile tests/glu/Makefile tests/glw/Makefile"
6033
6034 cat >confcache <<\_ACEOF
6035 # This file is a shell script that caches the results of configure
6036 # tests run on this system so they can be shared between configure
6037 # scripts and configure runs, see configure's option --config-cache.
6038 # It is not useful on other systems. If it contains results you don't
6039 # want to keep, you may remove or edit it.
6040 #
6041 # config.status only pays attention to the cache file if you give it
6042 # the --recheck option to rerun configure.
6043 #
6044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6046 # following values.
6047
6048 _ACEOF
6049
6050 # The following way of writing the cache mishandles newlines in values,
6051 # but we know of no workaround that is simple, portable, and efficient.
6052 # So, we kill variables containing newlines.
6053 # Ultrix sh set writes to stderr and can't be redirected directly,
6054 # and sets the high bit in the cache file unless we assign to the vars.
6055 (
6056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6057 eval ac_val=\$$ac_var
6058 case $ac_val in #(
6059 *${as_nl}*)
6060 case $ac_var in #(
6061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6063 esac
6064 case $ac_var in #(
6065 _ | IFS | as_nl) ;; #(
6066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6067 *) { eval $ac_var=; unset $ac_var;} ;;
6068 esac ;;
6069 esac
6070 done
6071
6072 (set) 2>&1 |
6073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6074 *${as_nl}ac_space=\ *)
6075 # `set' does not quote correctly, so add quotes: double-quote
6076 # substitution turns \\\\ into \\, and sed turns \\ into \.
6077 sed -n \
6078 "s/'/'\\\\''/g;
6079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6080 ;; #(
6081 *)
6082 # `set' quotes correctly as required by POSIX, so do not add quotes.
6083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6084 ;;
6085 esac |
6086 sort
6087 ) |
6088 sed '
6089 /^ac_cv_env_/b end
6090 t clear
6091 :clear
6092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6093 t end
6094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6095 :end' >>confcache
6096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6097 if test -w "$cache_file"; then
6098 if test "x$cache_file" != "x/dev/null"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6100 $as_echo "$as_me: updating cache $cache_file" >&6;}
6101 if test ! -f "$cache_file" || test -h "$cache_file"; then
6102 cat confcache >"$cache_file"
6103 else
6104 case $cache_file in #(
6105 */* | ?:*)
6106 mv -f confcache "$cache_file"$$ &&
6107 mv -f "$cache_file"$$ "$cache_file" ;; #(
6108 *)
6109 mv -f confcache "$cache_file" ;;
6110 esac
6111 fi
6112 fi
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6115 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6116 fi
6117 fi
6118 rm -f confcache
6119
6120 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6121 # Let make expand exec_prefix.
6122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6123
6124 # Transform confdefs.h into DEFS.
6125 # Protect against shell expansion while executing Makefile rules.
6126 # Protect against Makefile macro expansion.
6127 #
6128 # If the first sed substitution is executed (which looks for macros that
6129 # take arguments), then branch to the quote section. Otherwise,
6130 # look for a macro that doesn't take arguments.
6131 ac_script='
6132 :mline
6133 /\\$/{
6134 N
6135 s,\\\n,,
6136 b mline
6137 }
6138 t clear
6139 :clear
6140 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6141 t quote
6142 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6143 t quote
6144 b any
6145 :quote
6146 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6147 s/\[/\\&/g
6148 s/\]/\\&/g
6149 s/\$/$$/g
6150 H
6151 :any
6152 ${
6153 g
6154 s/^\n//
6155 s/\n/ /g
6156 p
6157 }
6158 '
6159 DEFS=`sed -n "$ac_script" confdefs.h`
6160
6161
6162 ac_libobjs=
6163 ac_ltlibobjs=
6164 U=
6165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6166 # 1. Remove the extension, and $U if already installed.
6167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6168 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6170 # will be set to the directory where LIBOBJS objects are built.
6171 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6172 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6173 done
6174 LIBOBJS=$ac_libobjs
6175
6176 LTLIBOBJS=$ac_ltlibobjs
6177
6178
6179 if test -n "$EXEEXT"; then
6180 am__EXEEXT_TRUE=
6181 am__EXEEXT_FALSE='#'
6182 else
6183 am__EXEEXT_TRUE='#'
6184 am__EXEEXT_FALSE=
6185 fi
6186
6187 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6190 fi
6191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6192 as_fn_error $? "conditional \"AMDEP\" was never defined.
6193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6194 fi
6195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6198 fi
6199 if test -z "${EXISTS_MOTIF_TRUE}" && test -z "${EXISTS_MOTIF_FALSE}"; then
6200 as_fn_error $? "conditional \"EXISTS_MOTIF\" was never defined.
6201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6202 fi
6203
6204 : "${CONFIG_STATUS=./config.status}"
6205 ac_write_fail=0
6206 ac_clean_files_save=$ac_clean_files
6207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6209 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6210 as_write_fail=0
6211 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6212 #! $SHELL
6213 # Generated by $as_me.
6214 # Run this file to recreate the current configuration.
6215 # Compiler output produced by configure, useful for debugging
6216 # configure, is in config.log if it exists.
6217
6218 debug=false
6219 ac_cs_recheck=false
6220 ac_cs_silent=false
6221
6222 SHELL=\${CONFIG_SHELL-$SHELL}
6223 export SHELL
6224 _ASEOF
6225 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6226 ## -------------------- ##
6227 ## M4sh Initialization. ##
6228 ## -------------------- ##
6229
6230 # Be more Bourne compatible
6231 DUALCASE=1; export DUALCASE # for MKS sh
6232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6233 emulate sh
6234 NULLCMD=:
6235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6236 # is contrary to our usage. Disable this feature.
6237 alias -g '${1+"$@"}'='"$@"'
6238 setopt NO_GLOB_SUBST
6239 else
6240 case `(set -o) 2>/dev/null` in #(
6241 *posix*) :
6242 set -o posix ;; #(
6243 *) :
6244 ;;
6245 esac
6246 fi
6247
6248
6249 as_nl='
6250 '
6251 export as_nl
6252 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6253 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6256 # Prefer a ksh shell builtin over an external printf program on Solaris,
6257 # but without wasting forks for bash or zsh.
6258 if test -z "$BASH_VERSION$ZSH_VERSION" \
6259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6260 as_echo='print -r --'
6261 as_echo_n='print -rn --'
6262 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6263 as_echo='printf %s\n'
6264 as_echo_n='printf %s'
6265 else
6266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6267 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6268 as_echo_n='/usr/ucb/echo -n'
6269 else
6270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6271 as_echo_n_body='eval
6272 arg=$1;
6273 case $arg in #(
6274 *"$as_nl"*)
6275 expr "X$arg" : "X\\(.*\\)$as_nl";
6276 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6277 esac;
6278 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6279 '
6280 export as_echo_n_body
6281 as_echo_n='sh -c $as_echo_n_body as_echo'
6282 fi
6283 export as_echo_body
6284 as_echo='sh -c $as_echo_body as_echo'
6285 fi
6286
6287 # The user is always right.
6288 if test "${PATH_SEPARATOR+set}" != set; then
6289 PATH_SEPARATOR=:
6290 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6291 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6292 PATH_SEPARATOR=';'
6293 }
6294 fi
6295
6296
6297 # IFS
6298 # We need space, tab and new line, in precisely that order. Quoting is
6299 # there to prevent editors from complaining about space-tab.
6300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6301 # splitting by setting IFS to empty value.)
6302 IFS=" "" $as_nl"
6303
6304 # Find who we are. Look in the path if we contain no directory separator.
6305 as_myself=
6306 case $0 in #((
6307 *[\\/]* ) as_myself=$0 ;;
6308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6314 done
6315 IFS=$as_save_IFS
6316
6317 ;;
6318 esac
6319 # We did not find ourselves, most probably we were run as `sh COMMAND'
6320 # in which case we are not to be found in the path.
6321 if test "x$as_myself" = x; then
6322 as_myself=$0
6323 fi
6324 if test ! -f "$as_myself"; then
6325 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6326 exit 1
6327 fi
6328
6329 # Unset variables that we do not need and which cause bugs (e.g. in
6330 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6331 # suppresses any "Segmentation fault" message there. '((' could
6332 # trigger a bug in pdksh 5.2.14.
6333 for as_var in BASH_ENV ENV MAIL MAILPATH
6334 do eval test x\${$as_var+set} = xset \
6335 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6336 done
6337 PS1='$ '
6338 PS2='> '
6339 PS4='+ '
6340
6341 # NLS nuisances.
6342 LC_ALL=C
6343 export LC_ALL
6344 LANGUAGE=C
6345 export LANGUAGE
6346
6347 # CDPATH.
6348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6349
6350
6351 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6352 # ----------------------------------------
6353 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6354 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6355 # script with STATUS, using 1 if that was 0.
6356 as_fn_error ()
6357 {
6358 as_status=$1; test $as_status -eq 0 && as_status=1
6359 if test "$4"; then
6360 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6361 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6362 fi
6363 $as_echo "$as_me: error: $2" >&2
6364 as_fn_exit $as_status
6365 } # as_fn_error
6366
6367
6368 # as_fn_set_status STATUS
6369 # -----------------------
6370 # Set $? to STATUS, without forking.
6371 as_fn_set_status ()
6372 {
6373 return $1
6374 } # as_fn_set_status
6375
6376 # as_fn_exit STATUS
6377 # -----------------
6378 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6379 as_fn_exit ()
6380 {
6381 set +e
6382 as_fn_set_status $1
6383 exit $1
6384 } # as_fn_exit
6385
6386 # as_fn_unset VAR
6387 # ---------------
6388 # Portably unset VAR.
6389 as_fn_unset ()
6390 {
6391 { eval $1=; unset $1;}
6392 }
6393 as_unset=as_fn_unset
6394 # as_fn_append VAR VALUE
6395 # ----------------------
6396 # Append the text in VALUE to the end of the definition contained in VAR. Take
6397 # advantage of any shell optimizations that allow amortized linear growth over
6398 # repeated appends, instead of the typical quadratic growth present in naive
6399 # implementations.
6400 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6401 eval 'as_fn_append ()
6402 {
6403 eval $1+=\$2
6404 }'
6405 else
6406 as_fn_append ()
6407 {
6408 eval $1=\$$1\$2
6409 }
6410 fi # as_fn_append
6411
6412 # as_fn_arith ARG...
6413 # ------------------
6414 # Perform arithmetic evaluation on the ARGs, and store the result in the
6415 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6416 # must be portable across $(()) and expr.
6417 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6418 eval 'as_fn_arith ()
6419 {
6420 as_val=$(( $* ))
6421 }'
6422 else
6423 as_fn_arith ()
6424 {
6425 as_val=`expr "$@" || test $? -eq 1`
6426 }
6427 fi # as_fn_arith
6428
6429
6430 if expr a : '\(a\)' >/dev/null 2>&1 &&
6431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6432 as_expr=expr
6433 else
6434 as_expr=false
6435 fi
6436
6437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6438 as_basename=basename
6439 else
6440 as_basename=false
6441 fi
6442
6443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6444 as_dirname=dirname
6445 else
6446 as_dirname=false
6447 fi
6448
6449 as_me=`$as_basename -- "$0" ||
6450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6451 X"$0" : 'X\(//\)$' \| \
6452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6453 $as_echo X/"$0" |
6454 sed '/^.*\/\([^/][^/]*\)\/*$/{
6455 s//\1/
6456 q
6457 }
6458 /^X\/\(\/\/\)$/{
6459 s//\1/
6460 q
6461 }
6462 /^X\/\(\/\).*/{
6463 s//\1/
6464 q
6465 }
6466 s/.*/./; q'`
6467
6468 # Avoid depending upon Character Ranges.
6469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6472 as_cr_digits='0123456789'
6473 as_cr_alnum=$as_cr_Letters$as_cr_digits
6474
6475 ECHO_C= ECHO_N= ECHO_T=
6476 case `echo -n x` in #(((((
6477 -n*)
6478 case `echo 'xy\c'` in
6479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6480 xy) ECHO_C='\c';;
6481 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6482 ECHO_T=' ';;
6483 esac;;
6484 *)
6485 ECHO_N='-n';;
6486 esac
6487
6488 rm -f conf$$ conf$$.exe conf$$.file
6489 if test -d conf$$.dir; then
6490 rm -f conf$$.dir/conf$$.file
6491 else
6492 rm -f conf$$.dir
6493 mkdir conf$$.dir 2>/dev/null
6494 fi
6495 if (echo >conf$$.file) 2>/dev/null; then
6496 if ln -s conf$$.file conf$$ 2>/dev/null; then
6497 as_ln_s='ln -s'
6498 # ... but there are two gotchas:
6499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6501 # In both cases, we have to default to `cp -p'.
6502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6503 as_ln_s='cp -p'
6504 elif ln conf$$.file conf$$ 2>/dev/null; then
6505 as_ln_s=ln
6506 else
6507 as_ln_s='cp -p'
6508 fi
6509 else
6510 as_ln_s='cp -p'
6511 fi
6512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6513 rmdir conf$$.dir 2>/dev/null
6514
6515
6516 # as_fn_mkdir_p
6517 # -------------
6518 # Create "$as_dir" as a directory, including parents if necessary.
6519 as_fn_mkdir_p ()
6520 {
6521
6522 case $as_dir in #(
6523 -*) as_dir=./$as_dir;;
6524 esac
6525 test -d "$as_dir" || eval $as_mkdir_p || {
6526 as_dirs=
6527 while :; do
6528 case $as_dir in #(
6529 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6530 *) as_qdir=$as_dir;;
6531 esac
6532 as_dirs="'$as_qdir' $as_dirs"
6533 as_dir=`$as_dirname -- "$as_dir" ||
6534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6535 X"$as_dir" : 'X\(//\)[^/]' \| \
6536 X"$as_dir" : 'X\(//\)$' \| \
6537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6538 $as_echo X"$as_dir" |
6539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6540 s//\1/
6541 q
6542 }
6543 /^X\(\/\/\)[^/].*/{
6544 s//\1/
6545 q
6546 }
6547 /^X\(\/\/\)$/{
6548 s//\1/
6549 q
6550 }
6551 /^X\(\/\).*/{
6552 s//\1/
6553 q
6554 }
6555 s/.*/./; q'`
6556 test -d "$as_dir" && break
6557 done
6558 test -z "$as_dirs" || eval "mkdir $as_dirs"
6559 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6560
6561
6562 } # as_fn_mkdir_p
6563 if mkdir -p . 2>/dev/null; then
6564 as_mkdir_p='mkdir -p "$as_dir"'
6565 else
6566 test -d ./-p && rmdir ./-p
6567 as_mkdir_p=false
6568 fi
6569
6570 if test -x / >/dev/null 2>&1; then
6571 as_test_x='test -x'
6572 else
6573 if ls -dL / >/dev/null 2>&1; then
6574 as_ls_L_option=L
6575 else
6576 as_ls_L_option=
6577 fi
6578 as_test_x='
6579 eval sh -c '\''
6580 if test -d "$1"; then
6581 test -d "$1/.";
6582 else
6583 case $1 in #(
6584 -*)set "./$1";;
6585 esac;
6586 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6587 ???[sx]*):;;*)false;;esac;fi
6588 '\'' sh
6589 '
6590 fi
6591 as_executable_p=$as_test_x
6592
6593 # Sed expression to map a string onto a valid CPP name.
6594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6595
6596 # Sed expression to map a string onto a valid variable name.
6597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6598
6599
6600 exec 6>&1
6601 ## ----------------------------------- ##
6602 ## Main body of $CONFIG_STATUS script. ##
6603 ## ----------------------------------- ##
6604 _ASEOF
6605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6606
6607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6608 # Save the log message, to keep $0 and so on meaningful, and to
6609 # report actual input values of CONFIG_FILES etc. instead of their
6610 # values after options handling.
6611 ac_log="
6612 This file was extended by sgapp $as_me 1.0, which was
6613 generated by GNU Autoconf 2.68. Invocation command line was
6614
6615 CONFIG_FILES = $CONFIG_FILES
6616 CONFIG_HEADERS = $CONFIG_HEADERS
6617 CONFIG_LINKS = $CONFIG_LINKS
6618 CONFIG_COMMANDS = $CONFIG_COMMANDS
6619 $ $0 $@
6620
6621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6622 "
6623
6624 _ACEOF
6625
6626 case $ac_config_files in *"
6627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6628 esac
6629
6630
6631
6632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6633 # Files that config.status was made for.
6634 config_files="$ac_config_files"
6635 config_commands="$ac_config_commands"
6636
6637 _ACEOF
6638
6639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6640 ac_cs_usage="\
6641 \`$as_me' instantiates files and other configuration actions
6642 from templates according to the current configuration. Unless the files
6643 and actions are specified as TAGs, all are instantiated by default.
6644
6645 Usage: $0 [OPTION]... [TAG]...
6646
6647 -h, --help print this help, then exit
6648 -V, --version print version number and configuration settings, then exit
6649 --config print configuration, then exit
6650 -q, --quiet, --silent
6651 do not print progress messages
6652 -d, --debug don't remove temporary files
6653 --recheck update $as_me by reconfiguring in the same conditions
6654 --file=FILE[:TEMPLATE]
6655 instantiate the configuration file FILE
6656
6657 Configuration files:
6658 $config_files
6659
6660 Configuration commands:
6661 $config_commands
6662
6663 Report bugs to <[email protected]>."
6664
6665 _ACEOF
6666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6667 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6668 ac_cs_version="\\
6669 sgapp config.status 1.0
6670 configured by $0, generated by GNU Autoconf 2.68,
6671 with options \\"\$ac_cs_config\\"
6672
6673 Copyright (C) 2010 Free Software Foundation, Inc.
6674 This config.status script is free software; the Free Software Foundation
6675 gives unlimited permission to copy, distribute and modify it."
6676
6677 ac_pwd='$ac_pwd'
6678 srcdir='$srcdir'
6679 INSTALL='$INSTALL'
6680 MKDIR_P='$MKDIR_P'
6681 AWK='$AWK'
6682 test -n "\$AWK" || AWK=awk
6683 _ACEOF
6684
6685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6686 # The default lists apply if the user does not specify any file.
6687 ac_need_defaults=:
6688 while test $# != 0
6689 do
6690 case $1 in
6691 --*=?*)
6692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6694 ac_shift=:
6695 ;;
6696 --*=)
6697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6698 ac_optarg=
6699 ac_shift=:
6700 ;;
6701 *)
6702 ac_option=$1
6703 ac_optarg=$2
6704 ac_shift=shift
6705 ;;
6706 esac
6707
6708 case $ac_option in
6709 # Handling of the options.
6710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6711 ac_cs_recheck=: ;;
6712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6713 $as_echo "$ac_cs_version"; exit ;;
6714 --config | --confi | --conf | --con | --co | --c )
6715 $as_echo "$ac_cs_config"; exit ;;
6716 --debug | --debu | --deb | --de | --d | -d )
6717 debug=: ;;
6718 --file | --fil | --fi | --f )
6719 $ac_shift
6720 case $ac_optarg in
6721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6722 '') as_fn_error $? "missing file argument" ;;
6723 esac
6724 as_fn_append CONFIG_FILES " '$ac_optarg'"
6725 ac_need_defaults=false;;
6726 --he | --h | --help | --hel | -h )
6727 $as_echo "$ac_cs_usage"; exit ;;
6728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6730 ac_cs_silent=: ;;
6731
6732 # This is an error.
6733 -*) as_fn_error $? "unrecognized option: \`$1'
6734 Try \`$0 --help' for more information." ;;
6735
6736 *) as_fn_append ac_config_targets " $1"
6737 ac_need_defaults=false ;;
6738
6739 esac
6740 shift
6741 done
6742
6743 ac_configure_extra_args=
6744
6745 if $ac_cs_silent; then
6746 exec 6>/dev/null
6747 ac_configure_extra_args="$ac_configure_extra_args --silent"
6748 fi
6749
6750 _ACEOF
6751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6752 if \$ac_cs_recheck; then
6753 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6754 shift
6755 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6756 CONFIG_SHELL='$SHELL'
6757 export CONFIG_SHELL
6758 exec "\$@"
6759 fi
6760
6761 _ACEOF
6762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6763 exec 5>>config.log
6764 {
6765 echo
6766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6767 ## Running $as_me. ##
6768 _ASBOX
6769 $as_echo "$ac_log"
6770 } >&5
6771
6772 _ACEOF
6773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6774 #
6775 # INIT-COMMANDS
6776 #
6777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6778
6779 _ACEOF
6780
6781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6782
6783 # Handling of arguments.
6784 for ac_config_target in $ac_config_targets
6785 do
6786 case $ac_config_target in
6787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6789 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
6790 "tests/gl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gl/Makefile" ;;
6791 "tests/glu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/glu/Makefile" ;;
6792 "tests/glw/Makefile") CONFIG_FILES="$CONFIG_FILES tests/glw/Makefile" ;;
6793
6794 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6795 esac
6796 done
6797
6798
6799 # If the user did not use the arguments to specify the items to instantiate,
6800 # then the envvar interface is used. Set only those that are not.
6801 # We use the long form for the default assignment because of an extremely
6802 # bizarre bug on SunOS 4.1.3.
6803 if $ac_need_defaults; then
6804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6806 fi
6807
6808 # Have a temporary directory for convenience. Make it in the build tree
6809 # simply because there is no reason against having it here, and in addition,
6810 # creating and moving files from /tmp can sometimes cause problems.
6811 # Hook for its removal unless debugging.
6812 # Note that there is a small window in which the directory will not be cleaned:
6813 # after its creation but before its name has been assigned to `$tmp'.
6814 $debug ||
6815 {
6816 tmp= ac_tmp=
6817 trap 'exit_status=$?
6818 : "${ac_tmp:=$tmp}"
6819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6820 ' 0
6821 trap 'as_fn_exit 1' 1 2 13 15
6822 }
6823 # Create a (secure) tmp directory for tmp files.
6824
6825 {
6826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6827 test -d "$tmp"
6828 } ||
6829 {
6830 tmp=./conf$$-$RANDOM
6831 (umask 077 && mkdir "$tmp")
6832 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6833 ac_tmp=$tmp
6834
6835 # Set up the scripts for CONFIG_FILES section.
6836 # No need to generate them if there are no CONFIG_FILES.
6837 # This happens for instance with `./config.status config.h'.
6838 if test -n "$CONFIG_FILES"; then
6839
6840
6841 ac_cr=`echo X | tr X '\015'`
6842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6843 # But we know of no other shell where ac_cr would be empty at this
6844 # point, so we can use a bashism as a fallback.
6845 if test "x$ac_cr" = x; then
6846 eval ac_cr=\$\'\\r\'
6847 fi
6848 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6850 ac_cs_awk_cr='\\r'
6851 else
6852 ac_cs_awk_cr=$ac_cr
6853 fi
6854
6855 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6856 _ACEOF
6857
6858
6859 {
6860 echo "cat >conf$$subs.awk <<_ACEOF" &&
6861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6862 echo "_ACEOF"
6863 } >conf$$subs.sh ||
6864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6865 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6866 ac_delim='%!_!# '
6867 for ac_last_try in false false false false false :; do
6868 . ./conf$$subs.sh ||
6869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6870
6871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6872 if test $ac_delim_n = $ac_delim_num; then
6873 break
6874 elif $ac_last_try; then
6875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6876 else
6877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6878 fi
6879 done
6880 rm -f conf$$subs.sh
6881
6882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6883 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6884 _ACEOF
6885 sed -n '
6886 h
6887 s/^/S["/; s/!.*/"]=/
6888 p
6889 g
6890 s/^[^!]*!//
6891 :repl
6892 t repl
6893 s/'"$ac_delim"'$//
6894 t delim
6895 :nl
6896 h
6897 s/\(.\{148\}\)..*/\1/
6898 t more1
6899 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6900 p
6901 n
6902 b repl
6903 :more1
6904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6905 p
6906 g
6907 s/.\{148\}//
6908 t nl
6909 :delim
6910 h
6911 s/\(.\{148\}\)..*/\1/
6912 t more2
6913 s/["\\]/\\&/g; s/^/"/; s/$/"/
6914 p
6915 b
6916 :more2
6917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6918 p
6919 g
6920 s/.\{148\}//
6921 t delim
6922 ' <conf$$subs.awk | sed '
6923 /^[^""]/{
6924 N
6925 s/\n//
6926 }
6927 ' >>$CONFIG_STATUS || ac_write_fail=1
6928 rm -f conf$$subs.awk
6929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6930 _ACAWK
6931 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6932 for (key in S) S_is_set[key] = 1
6933 FS = ""
6934
6935 }
6936 {
6937 line = $ 0
6938 nfields = split(line, field, "@")
6939 substed = 0
6940 len = length(field[1])
6941 for (i = 2; i < nfields; i++) {
6942 key = field[i]
6943 keylen = length(key)
6944 if (S_is_set[key]) {
6945 value = S[key]
6946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6947 len += length(value) + length(field[++i])
6948 substed = 1
6949 } else
6950 len += 1 + keylen
6951 }
6952
6953 print line
6954 }
6955
6956 _ACAWK
6957 _ACEOF
6958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6961 else
6962 cat
6963 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6964 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6965 _ACEOF
6966
6967 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6968 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6969 # trailing colons and then remove the whole line if VPATH becomes empty
6970 # (actually we leave an empty line to preserve line numbers).
6971 if test "x$srcdir" = x.; then
6972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6973 h
6974 s///
6975 s/^/:/
6976 s/[ ]*$/:/
6977 s/:\$(srcdir):/:/g
6978 s/:\${srcdir}:/:/g
6979 s/:@srcdir@:/:/g
6980 s/^:*//
6981 s/:*$//
6982 x
6983 s/\(=[ ]*\).*/\1/
6984 G
6985 s/\n//
6986 s/^[^=]*=[ ]*$//
6987 }'
6988 fi
6989
6990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6991 fi # test -n "$CONFIG_FILES"
6992
6993
6994 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6995 shift
6996 for ac_tag
6997 do
6998 case $ac_tag in
6999 :[FHLC]) ac_mode=$ac_tag; continue;;
7000 esac
7001 case $ac_mode$ac_tag in
7002 :[FHL]*:*);;
7003 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7004 :[FH]-) ac_tag=-:-;;
7005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7006 esac
7007 ac_save_IFS=$IFS
7008 IFS=:
7009 set x $ac_tag
7010 IFS=$ac_save_IFS
7011 shift
7012 ac_file=$1
7013 shift
7014
7015 case $ac_mode in
7016 :L) ac_source=$1;;
7017 :[FH])
7018 ac_file_inputs=
7019 for ac_f
7020 do
7021 case $ac_f in
7022 -) ac_f="$ac_tmp/stdin";;
7023 *) # Look for the file first in the build tree, then in the source tree
7024 # (if the path is not absolute). The absolute path cannot be DOS-style,
7025 # because $ac_f cannot contain `:'.
7026 test -f "$ac_f" ||
7027 case $ac_f in
7028 [\\/$]*) false;;
7029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7030 esac ||
7031 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7032 esac
7033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7034 as_fn_append ac_file_inputs " '$ac_f'"
7035 done
7036
7037 # Let's still pretend it is `configure' which instantiates (i.e., don't
7038 # use $as_me), people would be surprised to read:
7039 # /* config.h. Generated by config.status. */
7040 configure_input='Generated from '`
7041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7042 `' by configure.'
7043 if test x"$ac_file" != x-; then
7044 configure_input="$ac_file. $configure_input"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7046 $as_echo "$as_me: creating $ac_file" >&6;}
7047 fi
7048 # Neutralize special characters interpreted by sed in replacement strings.
7049 case $configure_input in #(
7050 *\&* | *\|* | *\\* )
7051 ac_sed_conf_input=`$as_echo "$configure_input" |
7052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7053 *) ac_sed_conf_input=$configure_input;;
7054 esac
7055
7056 case $ac_tag in
7057 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7059 esac
7060 ;;
7061 esac
7062
7063 ac_dir=`$as_dirname -- "$ac_file" ||
7064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7065 X"$ac_file" : 'X\(//\)[^/]' \| \
7066 X"$ac_file" : 'X\(//\)$' \| \
7067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7068 $as_echo X"$ac_file" |
7069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7070 s//\1/
7071 q
7072 }
7073 /^X\(\/\/\)[^/].*/{
7074 s//\1/
7075 q
7076 }
7077 /^X\(\/\/\)$/{
7078 s//\1/
7079 q
7080 }
7081 /^X\(\/\).*/{
7082 s//\1/
7083 q
7084 }
7085 s/.*/./; q'`
7086 as_dir="$ac_dir"; as_fn_mkdir_p
7087 ac_builddir=.
7088
7089 case "$ac_dir" in
7090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7091 *)
7092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7093 # A ".." for each directory in $ac_dir_suffix.
7094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7095 case $ac_top_builddir_sub in
7096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7098 esac ;;
7099 esac
7100 ac_abs_top_builddir=$ac_pwd
7101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7102 # for backward compatibility:
7103 ac_top_builddir=$ac_top_build_prefix
7104
7105 case $srcdir in
7106 .) # We are building in place.
7107 ac_srcdir=.
7108 ac_top_srcdir=$ac_top_builddir_sub
7109 ac_abs_top_srcdir=$ac_pwd ;;
7110 [\\/]* | ?:[\\/]* ) # Absolute name.
7111 ac_srcdir=$srcdir$ac_dir_suffix;
7112 ac_top_srcdir=$srcdir
7113 ac_abs_top_srcdir=$srcdir ;;
7114 *) # Relative name.
7115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7116 ac_top_srcdir=$ac_top_build_prefix$srcdir
7117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7118 esac
7119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7120
7121
7122 case $ac_mode in
7123 :F)
7124 #
7125 # CONFIG_FILE
7126 #
7127
7128 case $INSTALL in
7129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7131 esac
7132 ac_MKDIR_P=$MKDIR_P
7133 case $MKDIR_P in
7134 [\\/$]* | ?:[\\/]* ) ;;
7135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7136 esac
7137 _ACEOF
7138
7139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7140 # If the template does not know about datarootdir, expand it.
7141 # FIXME: This hack should be removed a few years after 2.60.
7142 ac_datarootdir_hack=; ac_datarootdir_seen=
7143 ac_sed_dataroot='
7144 /datarootdir/ {
7145 p
7146 q
7147 }
7148 /@datadir@/p
7149 /@docdir@/p
7150 /@infodir@/p
7151 /@localedir@/p
7152 /@mandir@/p'
7153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7154 *datarootdir*) ac_datarootdir_seen=yes;;
7155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7158 _ACEOF
7159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7160 ac_datarootdir_hack='
7161 s&@datadir@&$datadir&g
7162 s&@docdir@&$docdir&g
7163 s&@infodir@&$infodir&g
7164 s&@localedir@&$localedir&g
7165 s&@mandir@&$mandir&g
7166 s&\\\${datarootdir}&$datarootdir&g' ;;
7167 esac
7168 _ACEOF
7169
7170 # Neutralize VPATH when `$srcdir' = `.'.
7171 # Shell code in configure.ac might set extrasub.
7172 # FIXME: do we really want to maintain this feature?
7173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7174 ac_sed_extra="$ac_vpsub
7175 $extrasub
7176 _ACEOF
7177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7178 :t
7179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7180 s|@configure_input@|$ac_sed_conf_input|;t t
7181 s&@top_builddir@&$ac_top_builddir_sub&;t t
7182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7183 s&@srcdir@&$ac_srcdir&;t t
7184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7185 s&@top_srcdir@&$ac_top_srcdir&;t t
7186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7187 s&@builddir@&$ac_builddir&;t t
7188 s&@abs_builddir@&$ac_abs_builddir&;t t
7189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7190 s&@INSTALL@&$ac_INSTALL&;t t
7191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7192 $ac_datarootdir_hack
7193 "
7194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7195 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7196
7197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7198 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7200 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7202 which seems to be undefined. Please make sure it is defined" >&5
7203 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7204 which seems to be undefined. Please make sure it is defined" >&2;}
7205
7206 rm -f "$ac_tmp/stdin"
7207 case $ac_file in
7208 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7209 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7210 esac \
7211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7212 ;;
7213
7214
7215 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7216 $as_echo "$as_me: executing $ac_file commands" >&6;}
7217 ;;
7218 esac
7219
7220
7221 case $ac_file$ac_mode in
7222 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7223 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7224 # are listed without --file. Let's play safe and only enable the eval
7225 # if we detect the quoting.
7226 case $CONFIG_FILES in
7227 *\'*) eval set x "$CONFIG_FILES" ;;
7228 *) set x $CONFIG_FILES ;;
7229 esac
7230 shift
7231 for mf
7232 do
7233 # Strip MF so we end up with the name of the file.
7234 mf=`echo "$mf" | sed -e 's/:.*$//'`
7235 # Check whether this is an Automake generated Makefile or not.
7236 # We used to match only the files named `Makefile.in', but
7237 # some people rename them; so instead we look at the file content.
7238 # Grep'ing the first line is not enough: some people post-process
7239 # each Makefile.in and add a new line on top of each file to say so.
7240 # Grep'ing the whole file is not good either: AIX grep has a line
7241 # limit of 2048, but all sed's we know have understand at least 4000.
7242 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7243 dirpart=`$as_dirname -- "$mf" ||
7244 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7245 X"$mf" : 'X\(//\)[^/]' \| \
7246 X"$mf" : 'X\(//\)$' \| \
7247 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7248 $as_echo X"$mf" |
7249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7250 s//\1/
7251 q
7252 }
7253 /^X\(\/\/\)[^/].*/{
7254 s//\1/
7255 q
7256 }
7257 /^X\(\/\/\)$/{
7258 s//\1/
7259 q
7260 }
7261 /^X\(\/\).*/{
7262 s//\1/
7263 q
7264 }
7265 s/.*/./; q'`
7266 else
7267 continue
7268 fi
7269 # Extract the definition of DEPDIR, am__include, and am__quote
7270 # from the Makefile without running `make'.
7271 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7272 test -z "$DEPDIR" && continue
7273 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7274 test -z "am__include" && continue
7275 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7276 # When using ansi2knr, U may be empty or an underscore; expand it
7277 U=`sed -n 's/^U = //p' < "$mf"`
7278 # Find all dependency output files, they are included files with
7279 # $(DEPDIR) in their names. We invoke sed twice because it is the
7280 # simplest approach to changing $(DEPDIR) to its actual value in the
7281 # expansion.
7282 for file in `sed -n "
7283 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7284 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7285 # Make sure the directory exists.
7286 test -f "$dirpart/$file" && continue
7287 fdir=`$as_dirname -- "$file" ||
7288 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7289 X"$file" : 'X\(//\)[^/]' \| \
7290 X"$file" : 'X\(//\)$' \| \
7291 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7292 $as_echo X"$file" |
7293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7294 s//\1/
7295 q
7296 }
7297 /^X\(\/\/\)[^/].*/{
7298 s//\1/
7299 q
7300 }
7301 /^X\(\/\/\)$/{
7302 s//\1/
7303 q
7304 }
7305 /^X\(\/\).*/{
7306 s//\1/
7307 q
7308 }
7309 s/.*/./; q'`
7310 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7311 # echo "creating $dirpart/$file"
7312 echo '# dummy' > "$dirpart/$file"
7313 done
7314 done
7315 }
7316 ;;
7317
7318 esac
7319 done # for ac_tag
7320
7321
7322 as_fn_exit 0
7323 _ACEOF
7324 ac_clean_files=$ac_clean_files_save
7325
7326 test $ac_write_fail = 0 ||
7327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7328
7329
7330 # configure is writing to config.log, and then calls config.status.
7331 # config.status does its own redirection, appending to config.log.
7332 # Unfortunately, on DOS this fails, as config.log is still kept open
7333 # by configure, so config.status won't be able to write to it; its
7334 # output is simply discarded. So we exec the FD to /dev/null,
7335 # effectively closing config.log, so it can be properly (re)opened and
7336 # appended to by config.status. When coming back to configure, we
7337 # need to make the FD available again.
7338 if test "$no_create" != yes; then
7339 ac_cs_success=:
7340 ac_config_status_args=
7341 test "$silent" = yes &&
7342 ac_config_status_args="$ac_config_status_args --quiet"
7343 exec 5>/dev/null
7344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7345 exec 5>>config.log
7346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7347 # would make configure fail if this is the last instruction.
7348 $ac_cs_success || as_fn_exit 1
7349 fi
7350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7353 fi
7354
7355