Debian Codegraph @

debian/external_deps/fetk/sg/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sg 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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and
250 $0: [email protected] about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='sg'
572 PACKAGE_TARNAME='sg'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='sg 1.0'
575 PACKAGE_BUGREPORT='[email protected]'
576 PACKAGE_URL=''
577
578 ac_unique_file="src/ogl/sg/ogl.h"
579 ac_default_prefix=${HOME}
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 MAKE_DOC
621 MAKE_DOC_FALSE
622 MAKE_DOC_TRUE
623 dot_path
624 doxygen_path
625 maloc_inc
626 maloc_lib
627 BUILD_GLW_FALSE
628 BUILD_GLW_TRUE
629 glw
630 glw_lib
631 glw_inc
632 BUILD_GLU_FALSE
633 BUILD_GLU_TRUE
634 glu
635 glu_lib
636 glu_inc
637 BUILD_GL_FALSE
638 BUILD_GL_TRUE
639 gl
640 gl_lib
641 gl_inc
642 EXISTS_MOTIF_FALSE
643 EXISTS_MOTIF_TRUE
644 motif_lib
645 motif_inc
646 zfence_lib
647 zfence
648 profile_lib
649 profile
650 pedantic_ansi
651 wall_pedantic_ansi
652 wall_pedantic
653 wall
654 x_lib
655 X_EXTRA_LIBS
656 X_LIBS
657 X_PRE_LIBS
658 X_CFLAGS
659 XMKMF
660 objc_lib
661 rl_lib
662 fetk_cpu_vendor_os
663 thread_lib
664 socket_lib
665 nsl_lib
666 liberty_lib
667 math_lib
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 ac_ct_AR
676 AR
677 DLLTOOL
678 OBJDUMP
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LD
684 FGREP
685 EGREP
686 GREP
687 SED
688 LIBTOOL
689 CPP
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 FETK_VERSION
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_maintainer_mode
787 enable_dependency_tracking
788 enable_static
789 enable_shared
790 with_pic
791 enable_fast_install
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 enable_triplet
796 with_x
797 enable_vdebug
798 enable_pansi
799 enable_gprof
800 enable_efence
801 enable_motif
802 enable_glforce
803 enable_gluforce
804 enable_glwforce
805 with_doxygen
806 with_dot
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 CPPFLAGS
818 XMKMF'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used" >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures sg 1.0 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/sg]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 X features:
1424 --x-includes=DIR X include files are in DIR
1425 --x-libraries=DIR X library files are in DIR
1426
1427 System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 --target=TARGET configure for building compilers for TARGET [HOST]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of sg 1.0:";;
1437 esac
1438 cat <<\_ACEOF
1439
1440 Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
1446 --disable-dependency-tracking speeds up one-time build
1447 --enable-dependency-tracking do not reject slow dependency extractors
1448 --enable-static[=PKGS] build static libraries [default=no]
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --disable-triplet disable CPU-VENDOR-OS install triplet [default=no]
1454 --enable-vdebug enable debug compilation default=no
1455 --enable-pansi enable pedantic ANSI compilation
1456 --enable-gprof enable gprof profiling default=no
1457 --enable-efence enable ElectricFence malloc lib default=no
1458 --disable-motif disable motif default=no
1459 --enable-glforce force building of GL library default=no
1460 --enable-gluforce force building of GLU library default=no
1461 --enable-glwforce force building of GLw library default=no
1462
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-sysroot=DIR Search for dependent libraries within DIR
1470 (or the compiler's sysroot if not specified).
1471 --with-x use the X Window System
1472 --with-doxygen Doxygen path
1473 --with-dot Dot path
1474
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CPP C preprocessor
1484 XMKMF Path to xmkmf, Makefile generator for X Window System
1485
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1488
1489 Report bugs to <[email protected]>.
1490 _ACEOF
1491 ac_status=$?
1492 fi
1493
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
1500 ac_builddir=.
1501
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *)
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1517
1518 case $srcdir in
1519 .) # We are building in place.
1520 ac_srcdir=.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 sg configure 1.0
1553 generated by GNU Autoconf 2.68
1554
1555 Copyright (C) 2010 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_compile
1603
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_cpp ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_cpp conftest.$ac_ext"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } > conftest.i && {
1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635 fi
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_cpp
1640
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_link ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 $as_test_x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_link
1686
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_compile
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753 fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1776
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1781
1782 #ifdef __STDC__
1783 # include <limits.h>
1784 #else
1785 # include <assert.h>
1786 #endif
1787
1788 #undef $2
1789
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1793 #ifdef __cplusplus
1794 extern "C"
1795 #endif
1796 char $2 ();
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1801 choke me
1802 #endif
1803
1804 int
1805 main ()
1806 {
1807 return $2 ();
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_link "$LINENO"; then :
1813 eval "$3=yes"
1814 else
1815 eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_func
1826
1827 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830 # the include files in INCLUDES and setting the cache variable VAR
1831 # accordingly.
1832 ac_fn_c_check_header_mongrel ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if eval \${$3+:} false; then :
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 else
1845 # Is the header compilable?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847 $as_echo_n "checking $2 usability... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_header_compiler=yes
1855 else
1856 ac_header_compiler=no
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860 $as_echo "$ac_header_compiler" >&6; }
1861
1862 # Is the header present?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864 $as_echo_n "checking $2 presence... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_cpp "$LINENO"; then :
1870 ac_header_preproc=yes
1871 else
1872 ac_header_preproc=no
1873 fi
1874 rm -f conftest.err conftest.i conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876 $as_echo "$ac_header_preproc" >&6; }
1877
1878 # So? What about this header?
1879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880 yes:no: )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886 no:yes:* )
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1890 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1894 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ( $as_echo "## ----------------------------------- ##
1898 ## Report this to [email protected] ##
1899 ## ----------------------------------- ##"
1900 ) | sed "s/^/$as_me: WARNING: /" >&2
1901 ;;
1902 esac
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 eval "$3=\$ac_header_compiler"
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 fi
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_header_mongrel
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1920
1921 It was created by sg $as_me 1.0, which was
1922 generated by GNU Autoconf 2.68. Invocation command line was
1923
1924 $ $0 $@
1925
1926 _ACEOF
1927 exec 5>>config.log
1928 {
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1933
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950
1951 _ASUNAME
1952
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1961
1962 } >&5
1963
1964 cat >&5 <<_ACEOF
1965
1966
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1970
1971 _ACEOF
1972
1973
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1984 do
1985 for ac_arg
1986 do
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997 2)
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2010 ;;
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2013 fi
2014 as_fn_append ac_configure_args " '$ac_arg'"
2015 ;;
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2021
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2029 {
2030 echo
2031
2032 $as_echo "## ---------------- ##
2033 ## Cache variables. ##
2034 ## ---------------- ##"
2035 echo
2036 # The following way of writing the cache mishandles newlines in values,
2037 (
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2050 esac ;;
2051 esac
2052 done
2053 (set) 2>&1 |
2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
2056 sed -n \
2057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 ;; #(
2060 *)
2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 ;;
2063 esac |
2064 sort
2065 )
2066 echo
2067
2068 $as_echo "## ----------------- ##
2069 ## Output variables. ##
2070 ## ----------------- ##"
2071 echo
2072 for ac_var in $ac_subst_vars
2073 do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 esac
2078 $as_echo "$ac_var='\''$ac_val'\''"
2079 done | sort
2080 echo
2081
2082 if test -n "$ac_subst_files"; then
2083 $as_echo "## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##"
2086 echo
2087 for ac_var in $ac_subst_files
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096 fi
2097
2098 if test -s confdefs.h; then
2099 $as_echo "## ----------- ##
2100 ## confdefs.h. ##
2101 ## ----------- ##"
2102 echo
2103 cat confdefs.h
2104 echo
2105 fi
2106 test "$ac_signal" != 0 &&
2107 $as_echo "$as_me: caught signal $ac_signal"
2108 $as_echo "$as_me: exit $exit_status"
2109 } >&5
2110 rm -f core *.core core.conftest.* &&
2111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112 exit $exit_status
2113 ' 0
2114 for ac_signal in 1 2 13 15; do
2115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 done
2117 ac_signal=0
2118
2119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2120 rm -f -r conftest* confdefs.h
2121
2122 $as_echo "/* confdefs.h */" > confdefs.h
2123
2124 # Predefined preprocessor variables.
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "$PACKAGE_NAME"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_STRING "$PACKAGE_STRING"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_URL "$PACKAGE_URL"
2148 _ACEOF
2149
2150
2151 # Let the site file select an alternate cache file if it wants to.
2152 # Prefer an explicitly selected file to automatically selected ones.
2153 ac_site_file1=NONE
2154 ac_site_file2=NONE
2155 if test -n "$CONFIG_SITE"; then
2156 # We do not want a PATH search for config.site.
2157 case $CONFIG_SITE in #((
2158 -*) ac_site_file1=./$CONFIG_SITE;;
2159 */*) ac_site_file1=$CONFIG_SITE;;
2160 *) ac_site_file1=./$CONFIG_SITE;;
2161 esac
2162 elif test "x$prefix" != xNONE; then
2163 ac_site_file1=$prefix/share/config.site
2164 ac_site_file2=$prefix/etc/config.site
2165 else
2166 ac_site_file1=$ac_default_prefix/share/config.site
2167 ac_site_file2=$ac_default_prefix/etc/config.site
2168 fi
2169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2170 do
2171 test "x$ac_site_file" = xNONE && continue
2172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2175 sed 's/^/| /' "$ac_site_file" >&5
2176 . "$ac_site_file" \
2177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179 as_fn_error $? "failed to load site script $ac_site_file
2180 See \`config.log' for more details" "$LINENO" 5; }
2181 fi
2182 done
2183
2184 if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special files
2186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189 $as_echo "$as_me: loading cache $cache_file" >&6;}
2190 case $cache_file in
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
2193 esac
2194 fi
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 >$cache_file
2199 fi
2200
2201 # Check that the precious variables saved in the cache have kept the same
2202 # value.
2203 ac_cache_corrupted=false
2204 for ac_var in $ac_precious_vars; do
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
2209 case $ac_old_set,$ac_new_set in
2210 set,)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213 ac_cache_corrupted=: ;;
2214 ,set)
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 esac
2249 fi
2250 done
2251 if $ac_cache_corrupted; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 fi
2258 ## -------------------- ##
2259 ## Main body of script. ##
2260 ## -------------------- ##
2261
2262 ac_ext=c
2263 ac_cpp='$CPP $CPPFLAGS'
2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270 ac_config_headers="$ac_config_headers src/aaa_inc/sgcf.h"
2271
2272 ac_aux_dir=
2273 for ac_dir in config "$srcdir"/config; do
2274 if test -f "$ac_dir/install-sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install-sh -c"
2277 break
2278 elif test -f "$ac_dir/install.sh"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/install.sh -c"
2281 break
2282 elif test -f "$ac_dir/shtool"; then
2283 ac_aux_dir=$ac_dir
2284 ac_install_sh="$ac_aux_dir/shtool install -c"
2285 break
2286 fi
2287 done
2288 if test -z "$ac_aux_dir"; then
2289 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2290 fi
2291
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
2300
2301
2302 # Make sure we can run config.sub.
2303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2304 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2305
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if ${ac_cv_build+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2318
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2321 $as_echo "$ac_cv_build" >&6; }
2322 case $ac_cv_build in
2323 *-*-*) ;;
2324 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2325 esac
2326 build=$ac_cv_build
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_build
2329 shift
2330 build_cpu=$1
2331 build_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 build_os=$*
2336 IFS=$ac_save_IFS
2337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2338
2339
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2341 $as_echo_n "checking host system type... " >&6; }
2342 if ${ac_cv_host+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test "x$host_alias" = x; then
2346 ac_cv_host=$ac_cv_build
2347 else
2348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2349 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2350 fi
2351
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2354 $as_echo "$ac_cv_host" >&6; }
2355 case $ac_cv_host in
2356 *-*-*) ;;
2357 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2358 esac
2359 host=$ac_cv_host
2360 ac_save_IFS=$IFS; IFS='-'
2361 set x $ac_cv_host
2362 shift
2363 host_cpu=$1
2364 host_vendor=$2
2365 shift; shift
2366 # Remember, the first character of IFS is used to create $*,
2367 # except with old shells:
2368 host_os=$*
2369 IFS=$ac_save_IFS
2370 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2371
2372
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2374 $as_echo_n "checking target system type... " >&6; }
2375 if ${ac_cv_target+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 if test "x$target_alias" = x; then
2379 ac_cv_target=$ac_cv_host
2380 else
2381 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2383 fi
2384
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2387 $as_echo "$ac_cv_target" >&6; }
2388 case $ac_cv_target in
2389 *-*-*) ;;
2390 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2391 esac
2392 target=$ac_cv_target
2393 ac_save_IFS=$IFS; IFS='-'
2394 set x $ac_cv_target
2395 shift
2396 target_cpu=$1
2397 target_vendor=$2
2398 shift; shift
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2401 target_os=$*
2402 IFS=$ac_save_IFS
2403 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2404
2405
2406 # The aliases save the names the user supplied, while $host etc.
2407 # will get canonicalized.
2408 test -n "$target_alias" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_prefix=${target_alias}-
2412
2413 am__api_version='1.11'
2414
2415 # Find a good install program. We prefer a C program (faster),
2416 # so one script is as good as another. But avoid the broken or
2417 # incompatible versions:
2418 # SysV /etc/install, /usr/sbin/install
2419 # SunOS /usr/etc/install
2420 # IRIX /sbin/install
2421 # AIX /bin/install
2422 # AmigaOS /C/install, which installs bootblocks on floppy discs
2423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2426 # OS/2's system install, which has a completely different semantic
2427 # ./install, which can be erroneously created by make from ./install.sh.
2428 # Reject install programs that cannot install multiple files.
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2430 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2431 if test -z "$INSTALL"; then
2432 if ${ac_cv_path_install+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 # Account for people who put trailing slashes in PATH elements.
2441 case $as_dir/ in #((
2442 ./ | .// | /[cC]/* | \
2443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2444 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445 /usr/ucb/* ) ;;
2446 *)
2447 # OSF1 and SCO ODT 3.0 have their own names for install.
2448 # Don't use installbsd from OSF since it installs stuff as root
2449 # by default.
2450 for ac_prog in ginstall scoinst install; do
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2453 if test $ac_prog = install &&
2454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # AIX install. It has an incompatible calling convention.
2456 :
2457 elif test $ac_prog = install &&
2458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459 # program-specific install script used by HP pwplus--don't use.
2460 :
2461 else
2462 rm -rf conftest.one conftest.two conftest.dir
2463 echo one > conftest.one
2464 echo two > conftest.two
2465 mkdir conftest.dir
2466 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2467 test -s conftest.one && test -s conftest.two &&
2468 test -s conftest.dir/conftest.one &&
2469 test -s conftest.dir/conftest.two
2470 then
2471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 break 3
2473 fi
2474 fi
2475 fi
2476 done
2477 done
2478 ;;
2479 esac
2480
2481 done
2482 IFS=$as_save_IFS
2483
2484 rm -rf conftest.one conftest.two conftest.dir
2485
2486 fi
2487 if test "${ac_cv_path_install+set}" = set; then
2488 INSTALL=$ac_cv_path_install
2489 else
2490 # As a last resort, use the slow shell script. Don't cache a
2491 # value for INSTALL within a source directory, because that will
2492 # break other packages using the cache if that directory is
2493 # removed, or if the value is a relative name.
2494 INSTALL=$ac_install_sh
2495 fi
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2498 $as_echo "$INSTALL" >&6; }
2499
2500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2501 # It thinks the first close brace ends the variable substitution.
2502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2503
2504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2505
2506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2509 $as_echo_n "checking whether build environment is sane... " >&6; }
2510 # Just in case
2511 sleep 1
2512 echo timestamp > conftest.file
2513 # Reject unsafe characters in $srcdir or the absolute working directory
2514 # name. Accept space and tab only in the latter.
2515 am_lf='
2516 '
2517 case `pwd` in
2518 *[\\\"\#\$\&\'\`$am_lf]*)
2519 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2520 esac
2521 case $srcdir in
2522 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2523 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2524 esac
2525
2526 # Do `set' in a subshell so we don't clobber the current shell's
2527 # arguments. Must try -L first in case configure is actually a
2528 # symlink; some systems play weird games with the mod time of symlinks
2529 # (eg FreeBSD returns the mod time of the symlink's containing
2530 # directory).
2531 if (
2532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533 if test "$*" = "X"; then
2534 # -L didn't work.
2535 set X `ls -t "$srcdir/configure" conftest.file`
2536 fi
2537 rm -f conftest.file
2538 if test "$*" != "X $srcdir/configure conftest.file" \
2539 && test "$*" != "X conftest.file $srcdir/configure"; then
2540
2541 # If neither matched, then we have a broken ls. This can happen
2542 # if, for instance, CONFIG_SHELL is bash and it inherits a
2543 # broken ls alias from the environment. This has actually
2544 # happened. Such a system could not be considered "sane".
2545 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2546 alias in your environment" "$LINENO" 5
2547 fi
2548
2549 test "$2" = conftest.file
2550 )
2551 then
2552 # Ok.
2553 :
2554 else
2555 as_fn_error $? "newly created file is older than distributed files!
2556 Check your system clock" "$LINENO" 5
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 test "$program_prefix" != NONE &&
2561 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2562 # Use a double $ so make ignores it.
2563 test "$program_suffix" != NONE &&
2564 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2565 # Double any \ or $.
2566 # By default was `s,x,x', remove it if useless.
2567 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2568 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2569
2570 # expand $ac_aux_dir to an absolute path
2571 am_aux_dir=`cd $ac_aux_dir && pwd`
2572
2573 if test x"${MISSING+set}" != xset; then
2574 case $am_aux_dir in
2575 *\ * | *\ *)
2576 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2577 *)
2578 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2579 esac
2580 fi
2581 # Use eval to expand $SHELL
2582 if eval "$MISSING --run true"; then
2583 am_missing_run="$MISSING --run "
2584 else
2585 am_missing_run=
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2587 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588 fi
2589
2590 if test x"${install_sh}" != xset; then
2591 case $am_aux_dir in
2592 *\ * | *\ *)
2593 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2594 *)
2595 install_sh="\${SHELL} $am_aux_dir/install-sh"
2596 esac
2597 fi
2598
2599 # Installed binaries are usually stripped using `strip' when the user
2600 # run `make install-strip'. However `strip' might not be the right
2601 # tool to use in cross-compilation environments, therefore Automake
2602 # will honor the `STRIP' environment variable to overrule this program.
2603 if test "$cross_compiling" != no; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_STRIP+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$STRIP"; then
2613 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 STRIP=$ac_cv_prog_STRIP
2633 if test -n "$STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2635 $as_echo "$STRIP" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 fi
2643 if test -z "$ac_cv_prog_STRIP"; then
2644 ac_ct_STRIP=$STRIP
2645 # Extract the first word of "strip", so it can be a program name with args.
2646 set dummy strip; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$ac_ct_STRIP"; then
2653 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_ac_ct_STRIP="strip"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2673 if test -n "$ac_ct_STRIP"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2675 $as_echo "$ac_ct_STRIP" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681 if test "x$ac_ct_STRIP" = x; then
2682 STRIP=":"
2683 else
2684 case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 STRIP=$ac_ct_STRIP
2691 fi
2692 else
2693 STRIP="$ac_cv_prog_STRIP"
2694 fi
2695
2696 fi
2697 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2700 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2701 if test -z "$MKDIR_P"; then
2702 if ${ac_cv_path_mkdir+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_prog in mkdir gmkdir; do
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2713 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2714 'mkdir (GNU coreutils) '* | \
2715 'mkdir (coreutils) '* | \
2716 'mkdir (fileutils) '4.1*)
2717 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2718 break 3;;
2719 esac
2720 done
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726
2727 test -d ./--version && rmdir ./--version
2728 if test "${ac_cv_path_mkdir+set}" = set; then
2729 MKDIR_P="$ac_cv_path_mkdir -p"
2730 else
2731 # As a last resort, use the slow shell script. Don't cache a
2732 # value for MKDIR_P within a source directory, because that will
2733 # break other packages using the cache if that directory is
2734 # removed, or if the value is a relative name.
2735 MKDIR_P="$ac_install_sh -d"
2736 fi
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2739 $as_echo "$MKDIR_P" >&6; }
2740
2741 mkdir_p="$MKDIR_P"
2742 case $mkdir_p in
2743 [\\/$]* | ?:[\\/]*) ;;
2744 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2745 esac
2746
2747 for ac_prog in gawk mawk nawk awk
2748 do
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_AWK+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$AWK"; then
2757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_AWK="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 AWK=$ac_cv_prog_AWK
2777 if test -n "$AWK"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779 $as_echo "$AWK" >&6; }
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 test -n "$AWK" && break
2787 done
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2791 set x ${MAKE-make}
2792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2793 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 cat >conftest.make <<\_ACEOF
2797 SHELL = /bin/sh
2798 all:
2799 @echo '@@@%%%=$(MAKE)=@@@%%%'
2800 _ACEOF
2801 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2803 *@@@%%%=?*=@@@%%%*)
2804 eval ac_cv_prog_make_${ac_make}_set=yes;;
2805 *)
2806 eval ac_cv_prog_make_${ac_make}_set=no;;
2807 esac
2808 rm -f conftest.make
2809 fi
2810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 SET_MAKE=
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 SET_MAKE="MAKE=${MAKE-make}"
2818 fi
2819
2820 rm -rf .tst 2>/dev/null
2821 mkdir .tst 2>/dev/null
2822 if test -d .tst; then
2823 am__leading_dot=.
2824 else
2825 am__leading_dot=_
2826 fi
2827 rmdir .tst 2>/dev/null
2828
2829 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2830 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2831 # is not polluted with repeated "-I."
2832 am__isrc=' -I$(srcdir)'
2833 # test to see if srcdir already configured
2834 if test -f $srcdir/config.status; then
2835 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2836 fi
2837 fi
2838
2839 # test whether we have cygpath
2840 if test -z "$CYGPATH_W"; then
2841 if (cygpath --version) >/dev/null 2>/dev/null; then
2842 CYGPATH_W='cygpath -w'
2843 else
2844 CYGPATH_W=echo
2845 fi
2846 fi
2847
2848
2849 # Define the identity of the package.
2850 PACKAGE='sg'
2851 VERSION='1.0'
2852
2853
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE "$PACKAGE"
2856 _ACEOF
2857
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define VERSION "$VERSION"
2861 _ACEOF
2862
2863 # Some tools Automake needs.
2864
2865 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2866
2867
2868 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2869
2870
2871 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2872
2873
2874 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2875
2876
2877 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2878
2879 # We need awk for the "check" target. The system "awk" is bad on
2880 # some platforms.
2881 # Always define AMTAR for backward compatibility.
2882
2883 AMTAR=${AMTAR-"${am_missing_run}tar"}
2884
2885 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2886
2887
2888
2889
2890
2891 FETK_VERSION="1:0:0"
2892
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2896 # Check whether --enable-maintainer-mode was given.
2897 if test "${enable_maintainer_mode+set}" = set; then :
2898 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2899 else
2900 USE_MAINTAINER_MODE=no
2901 fi
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2905 if test $USE_MAINTAINER_MODE = yes; then
2906 MAINTAINER_MODE_TRUE=
2907 MAINTAINER_MODE_FALSE='#'
2908 else
2909 MAINTAINER_MODE_TRUE='#'
2910 MAINTAINER_MODE_FALSE=
2911 fi
2912
2913 MAINT=$MAINTAINER_MODE_TRUE
2914
2915
2916
2917 ac_ext=c
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 fi
2967 if test -z "$ac_cv_prog_CC"; then
2968 ac_ct_CC=$CC
2969 # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_CC="gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999 $as_echo "$ac_ct_CC" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005 if test "x$ac_ct_CC" = x; then
3006 CC=""
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014 CC=$ac_ct_CC
3015 fi
3016 else
3017 CC="$ac_cv_prog_CC"
3018 fi
3019
3020 if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CC="${ac_tool_prefix}cc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059 fi
3060 fi
3061 if test -z "$CC"; then
3062 # Extract the first word of "cc", so it can be a program name with args.
3063 set dummy cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 ac_prog_rejected=no
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081 ac_prog_rejected=yes
3082 continue
3083 fi
3084 ac_cv_prog_CC="cc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 if test $ac_prog_rejected = yes; then
3093 # We found a bogon in the path, so make sure we never use it.
3094 set dummy $ac_cv_prog_CC
3095 shift
3096 if test $# != 0; then
3097 # We chose a different compiler from the bogus one.
3098 # However, it has the same basename, so the bogon will be chosen
3099 # first if we set CC to just the basename; use the full file name.
3100 shift
3101 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102 fi
3103 fi
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 for ac_prog in cl.exe
3120 do
3121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 test -n "$CC" && break
3159 done
3160 fi
3161 if test -z "$CC"; then
3162 ac_ct_CC=$CC
3163 for ac_prog in cl.exe
3164 do
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$ac_ct_CC"; then
3173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_ac_ct_CC="$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202 test -n "$ac_ct_CC" && break
3203 done
3204
3205 if test "x$ac_ct_CC" = x; then
3206 CC=""
3207 else
3208 case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214 CC=$ac_ct_CC
3215 fi
3216 fi
3217
3218 fi
3219
3220
3221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details" "$LINENO" 5; }
3225
3226 # Provide some information about the compiler.
3227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 set X $ac_compile
3229 ac_compiler=$2
3230 for ac_option in --version -v -V -qversion; do
3231 { { ac_try="$ac_compiler $ac_option >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239 ac_status=$?
3240 if test -s conftest.err; then
3241 sed '10a\
3242 ... rest of stderr output deleted ...
3243 10q' conftest.err >conftest.er1
3244 cat conftest.er1 >&5
3245 fi
3246 rm -f conftest.er1 conftest.err
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }
3249 done
3250
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3266 # of exeext.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3276 do
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280 esac
3281 done
3282 rm -f $ac_rmfiles
3283
3284 if { { ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_link_default") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3299 # Autoconf.
3300 for ac_file in $ac_files ''
3301 do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305 ;;
3306 [ab].out )
3307 # We found the default executable, but exeext='' is most
3308 # certainly right.
3309 break;;
3310 *.* )
3311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312 then :; else
3313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 fi
3315 # We set ac_cv_exeext here because the later test for it is not
3316 # safe: cross compilers may not add the suffix if given an `-o'
3317 # argument, so we may need to know it at that point already.
3318 # Even if this section looks crufty: it has the advantage of
3319 # actually working.
3320 break;;
3321 * )
3322 break;;
3323 esac
3324 done
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3326
3327 else
3328 ac_file=''
3329 fi
3330 if test -z "$ac_file"; then :
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error 77 "C compiler cannot create executables
3339 See \`config.log' for more details" "$LINENO" 5; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345 $as_echo_n "checking for C compiler default output file name... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347 $as_echo "$ac_file" >&6; }
3348 ac_exeext=$ac_cv_exeext
3349
3350 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353 $as_echo_n "checking for suffix of executables... " >&6; }
3354 if { { ac_try="$ac_link"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_link") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }; then :
3365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 # `rm'.
3369 for ac_file in conftest.exe conftest conftest.*; do
3370 test -f "$ac_file" || continue
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374 break;;
3375 * ) break;;
3376 esac
3377 done
3378 else
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 rm -f conftest conftest$ac_cv_exeext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386 $as_echo "$ac_cv_exeext" >&6; }
3387
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3390 ac_exeext=$EXEEXT
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393 #include <stdio.h>
3394 int
3395 main ()
3396 {
3397 FILE *f = fopen ("conftest.out", "w");
3398 return ferror (f) || fclose (f) != 0;
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files="$ac_clean_files conftest.out"
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408 $as_echo_n "checking whether we are cross compiling... " >&6; }
3409 if test "$cross_compiling" != yes; then
3410 { { ac_try="$ac_link"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }
3421 if { ac_try='./conftest$ac_cv_exeext'
3422 { { case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_try") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; }; then
3432 cross_compiling=no
3433 else
3434 if test "$cross_compiling" = maybe; then
3435 cross_compiling=yes
3436 else
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot run C compiled programs.
3440 If you meant to cross compile, use \`--host'.
3441 See \`config.log' for more details" "$LINENO" 5; }
3442 fi
3443 fi
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3446 $as_echo "$cross_compiling" >&6; }
3447
3448 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3449 ac_clean_files=$ac_clean_files_save
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3451 $as_echo_n "checking for suffix of object files... " >&6; }
3452 if ${ac_cv_objext+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.o conftest.obj
3467 if { { ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_compile") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 for ac_file in conftest.o conftest.obj conftest.*; do
3479 test -f "$ac_file" || continue;
3480 case $ac_file in
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3483 break;;
3484 esac
3485 done
3486 else
3487 $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot compute suffix of object files: cannot compile
3493 See \`config.log' for more details" "$LINENO" 5; }
3494 fi
3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498 $as_echo "$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3500 ac_objext=$OBJEXT
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503 if ${ac_cv_c_compiler_gnu+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508
3509 int
3510 main ()
3511 {
3512 #ifndef __GNUC__
3513 choke me
3514 #endif
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_compiler_gnu=yes
3522 else
3523 ac_compiler_gnu=no
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531 if test $ac_compiler_gnu = yes; then
3532 GCC=yes
3533 else
3534 GCC=
3535 fi
3536 ac_test_CFLAGS=${CFLAGS+set}
3537 ac_save_CFLAGS=$CFLAGS
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3540 if ${ac_cv_prog_cc_g+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 ac_save_c_werror_flag=$ac_c_werror_flag
3544 ac_c_werror_flag=yes
3545 ac_cv_prog_cc_g=no
3546 CFLAGS="-g"
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_prog_cc_g=yes
3560 else
3561 CFLAGS=""
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574
3575 else
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 $as_echo "$ac_cv_prog_cc_g" >&6; }
3601 if test "$ac_test_CFLAGS" = set; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3608 fi
3609 else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3614 fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618 if ${ac_cv_prog_cc_c89+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 ac_cv_prog_cc_c89=no
3622 ac_save_CC=$CC
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <stdarg.h>
3626 #include <stdio.h>
3627 #include <sys/types.h>
3628 #include <sys/stat.h>
3629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3630 struct buf { int x; };
3631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632 static char *e (p, i)
3633 char **p;
3634 int i;
3635 {
3636 return p[i];
3637 }
3638 static char *f (char * (*g) (char **, int), char **p, ...)
3639 {
3640 char *s;
3641 va_list v;
3642 va_start (v,p);
3643 s = g (p, va_arg (v,int));
3644 va_end (v);
3645 return s;
3646 }
3647
3648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3649 function prototypes and stuff, but not '\xHH' hex character constants.
3650 These don't provoke an error unfortunately, instead are silently treated
3651 as 'x'. The following induces an error, until -std is added to get
3652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3653 array size at least. It's necessary to write '\x00'==0 to get something
3654 that's true only with -std. */
3655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656
3657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3658 inside strings and character constants. */
3659 #define FOO(x) 'x'
3660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661
3662 int test (int i, double x);
3663 struct s1 {int (*f) (int a);};
3664 struct s2 {int (*f) (double a);};
3665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3666 int argc;
3667 char **argv;
3668 int
3669 main ()
3670 {
3671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678 do
3679 CC="$ac_save_CC $ac_arg"
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_cv_prog_cc_c89=$ac_arg
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext
3684 test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 done
3686 rm -f conftest.$ac_ext
3687 CC=$ac_save_CC
3688
3689 fi
3690 # AC_CACHE_VAL
3691 case "x$ac_cv_prog_cc_c89" in
3692 x)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3695 xno)
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3698 *)
3699 CC="$CC $ac_cv_prog_cc_c89"
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 esac
3703 if test "x$ac_cv_prog_cc_c89" != xno; then :
3704
3705 fi
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 DEPDIR="${am__leading_dot}deps"
3713
3714 ac_config_commands="$ac_config_commands depfiles"
3715
3716
3717 am_make=${MAKE-make}
3718 cat > confinc << 'END'
3719 am__doit:
3720 @echo this is the am__doit target
3721 .PHONY: am__doit
3722 END
3723 # If we don't find an include directive, just comment out the code.
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3725 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3726 am__include="#"
3727 am__quote=
3728 _am_result=none
3729 # First try GNU make style include.
3730 echo "include confinc" > confmf
3731 # Ignore all kinds of additional output from `make'.
3732 case `$am_make -s -f confmf 2> /dev/null` in #(
3733 *the\ am__doit\ target*)
3734 am__include=include
3735 am__quote=
3736 _am_result=GNU
3737 ;;
3738 esac
3739 # Now try BSD make style include.
3740 if test "$am__include" = "#"; then
3741 echo '.include "confinc"' > confmf
3742 case `$am_make -s -f confmf 2> /dev/null` in #(
3743 *the\ am__doit\ target*)
3744 am__include=.include
3745 am__quote="\""
3746 _am_result=BSD
3747 ;;
3748 esac
3749 fi
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3753 $as_echo "$_am_result" >&6; }
3754 rm -f confinc confmf
3755
3756 # Check whether --enable-dependency-tracking was given.
3757 if test "${enable_dependency_tracking+set}" = set; then :
3758 enableval=$enable_dependency_tracking;
3759 fi
3760
3761 if test "x$enable_dependency_tracking" != xno; then
3762 am_depcomp="$ac_aux_dir/depcomp"
3763 AMDEPBACKSLASH='\'
3764 fi
3765 if test "x$enable_dependency_tracking" != xno; then
3766 AMDEP_TRUE=
3767 AMDEP_FALSE='#'
3768 else
3769 AMDEP_TRUE='#'
3770 AMDEP_FALSE=
3771 fi
3772
3773
3774
3775 depcc="$CC" am_compiler_list=
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3778 $as_echo_n "checking dependency style of $depcc... " >&6; }
3779 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3783 # We make a subdir and do the tests there. Otherwise we can end up
3784 # making bogus files that we don't know about and never remove. For
3785 # instance it was reported that on HP-UX the gcc test will end up
3786 # making a dummy file named `D' -- because `-MD' means `put the output
3787 # in D'.
3788 mkdir conftest.dir
3789 # Copy depcomp to subdir because otherwise we won't find it if we're
3790 # using a relative directory.
3791 cp "$am_depcomp" conftest.dir
3792 cd conftest.dir
3793 # We will build objects and dependencies in a subdirectory because
3794 # it helps to detect inapplicable dependency modes. For instance
3795 # both Tru64's cc and ICC support -MD to output dependencies as a
3796 # side effect of compilation, but ICC will put the dependencies in
3797 # the current directory while Tru64 will put them in the object
3798 # directory.
3799 mkdir sub
3800
3801 am_cv_CC_dependencies_compiler_type=none
3802 if test "$am_compiler_list" = ""; then
3803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 fi
3805 am__universal=false
3806 case " $depcc " in #(
3807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808 esac
3809
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3814 #
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3818 : > sub/conftest.c
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822 # Solaris 8's {/usr,}/bin/sh.
3823 touch sub/conftst$i.h
3824 done
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
3827 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle `-M -o', and we need to detect this. Also, some Intel
3830 # versions had trouble with output in subdirs
3831 am__obj=sub/conftest.${OBJEXT-o}
3832 am__minus_obj="-o $am__obj"
3833 case $depmode in
3834 gcc)
3835 # This depmode causes a compiler race in universal mode.
3836 test "$am__universal" = false || continue
3837 ;;
3838 nosideeffect)
3839 # after this tag, mechanisms are not by side-effect, so they'll
3840 # only be used when explicitly requested
3841 if test "x$enable_dependency_tracking" = xyes; then
3842 continue
3843 else
3844 break
3845 fi
3846 ;;
3847 msvisualcpp | msvcmsys)
3848 # This compiler won't grok `-c -o', but also, the minuso test has
3849 # not run yet. These depmodes are late enough in the game, and
3850 # so weak that their functioning should not be impacted.
3851 am__obj=conftest.${OBJEXT-o}
3852 am__minus_obj=
3853 ;;
3854 none) break ;;
3855 esac
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=$am__obj \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3875 break
3876 fi
3877 fi
3878 done
3879
3880 cd ..
3881 rm -rf conftest.dir
3882 else
3883 am_cv_CC_dependencies_compiler_type=none
3884 fi
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891 if
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894 am__fastdepCC_TRUE=
3895 am__fastdepCC_FALSE='#'
3896 else
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3899 fi
3900
3901
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3909 # On Suns, sometimes $CPP names a directory.
3910 if test -n "$CPP" && test -d "$CPP"; then
3911 CPP=
3912 fi
3913 if test -z "$CPP"; then
3914 if ${ac_cv_prog_CPP+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 # Double quotes because CPP needs to be expanded
3918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 do
3920 ac_preproc_ok=false
3921 for ac_c_preproc_warn_flag in '' yes
3922 do
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #ifdef __STDC__
3932 # include <limits.h>
3933 #else
3934 # include <assert.h>
3935 #endif
3936 Syntax error
3937 _ACEOF
3938 if ac_fn_c_try_cpp "$LINENO"; then :
3939
3940 else
3941 # Broken: fails on valid input.
3942 continue
3943 fi
3944 rm -f conftest.err conftest.i conftest.$ac_ext
3945
3946 # OK, works on sane cases. Now check whether nonexistent headers
3947 # can be detected and how.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <ac_nonexistent.h>
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3953 # Broken: success on invalid input.
3954 continue
3955 else
3956 # Passes both tests.
3957 ac_preproc_ok=:
3958 break
3959 fi
3960 rm -f conftest.err conftest.i conftest.$ac_ext
3961
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.i conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then :
3966 break
3967 fi
3968
3969 done
3970 ac_cv_prog_CPP=$CPP
3971
3972 fi
3973 CPP=$ac_cv_prog_CPP
3974 else
3975 ac_cv_prog_CPP=$CPP
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3978 $as_echo "$CPP" >&6; }
3979 ac_preproc_ok=false
3980 for ac_c_preproc_warn_flag in '' yes
3981 do
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
3986 # On the NeXT, cc -E runs the code through the compiler's parser,
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995 Syntax error
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3998
3999 else
4000 # Broken: fails on valid input.
4001 continue
4002 fi
4003 rm -f conftest.err conftest.i conftest.$ac_ext
4004
4005 # OK, works on sane cases. Now check whether nonexistent headers
4006 # can be detected and how.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012 # Broken: success on invalid input.
4013 continue
4014 else
4015 # Passes both tests.
4016 ac_preproc_ok=:
4017 break
4018 fi
4019 rm -f conftest.err conftest.i conftest.$ac_ext
4020
4021 done
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.i conftest.err conftest.$ac_ext
4024 if $ac_preproc_ok; then :
4025
4026 else
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details" "$LINENO" 5; }
4031 fi
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 # Check whether --enable-static was given.
4040 if test "${enable_static+set}" = set; then :
4041 enableval=$enable_static; p=${PACKAGE-default}
4042 case $enableval in
4043 yes) enable_static=yes ;;
4044 no) enable_static=no ;;
4045 *)
4046 enable_static=no
4047 # Look at the argument we got. We use all the common list separators.
4048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4049 for pkg in $enableval; do
4050 IFS="$lt_save_ifs"
4051 if test "X$pkg" = "X$p"; then
4052 enable_static=yes
4053 fi
4054 done
4055 IFS="$lt_save_ifs"
4056 ;;
4057 esac
4058 else
4059 enable_static=no
4060 fi
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070 case `pwd` in
4071 *\ * | *\ *)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4073 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4074 esac
4075
4076
4077
4078 macro_version='2.4'
4079 macro_revision='1.3293'
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093 ltmain="$ac_aux_dir/ltmain.sh"
4094
4095 # Backslashify metacharacters that are still active within
4096 # double-quoted strings.
4097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4098
4099 # Same as above, but do not quote variable references.
4100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4101
4102 # Sed substitution to delay expansion of an escaped shell variable in a
4103 # double_quote_subst'ed string.
4104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4105
4106 # Sed substitution to delay expansion of an escaped single quote.
4107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4108
4109 # Sed substitution to avoid accidental globbing in evaled expressions
4110 no_glob_subst='s/\*/\\\*/g'
4111
4112 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4114 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4117 $as_echo_n "checking how to print strings... " >&6; }
4118 # Test print first, because it will be a builtin if present.
4119 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4120 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4121 ECHO='print -r --'
4122 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4123 ECHO='printf %s\n'
4124 else
4125 # Use this function as a fallback that always works.
4126 func_fallback_echo ()
4127 {
4128 eval 'cat <<_LTECHO_EOF
4129 $1
4130 _LTECHO_EOF'
4131 }
4132 ECHO='func_fallback_echo'
4133 fi
4134
4135 # func_echo_all arg...
4136 # Invoke $ECHO with all args, space-separated.
4137 func_echo_all ()
4138 {
4139 $ECHO ""
4140 }
4141
4142 case "$ECHO" in
4143 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4144 $as_echo "printf" >&6; } ;;
4145 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4146 $as_echo "print -r" >&6; } ;;
4147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4148 $as_echo "cat" >&6; } ;;
4149 esac
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166 if ${ac_cv_path_SED+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170 for ac_i in 1 2 3 4 5 6 7; do
4171 ac_script="$ac_script$as_nl$ac_script"
4172 done
4173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174 { ac_script=; unset ac_script;}
4175 if test -z "$SED"; then
4176 ac_path_SED_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in sed gsed; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4187 # Check for GNU ac_path_SED and select it if it is found.
4188 # Check for GNU $ac_path_SED
4189 case `"$ac_path_SED" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo '' >> "conftest.nl"
4201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_SED_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_SED="$ac_path_SED"
4207 ac_path_SED_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_SED_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_SED"; then
4221 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_SED=$SED
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229 $as_echo "$ac_cv_path_SED" >&6; }
4230 SED="$ac_cv_path_SED"
4231 rm -f conftest.sed
4232
4233 test -z "$SED" && SED=sed
4234 Xsed="$SED -e 1s/^X//"
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4247 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4248 if ${ac_cv_path_GREP+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -z "$GREP"; then
4252 ac_path_GREP_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in grep ggrep; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4262 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4263 # Check for GNU ac_path_GREP and select it if it is found.
4264 # Check for GNU $ac_path_GREP
4265 case `"$ac_path_GREP" --version 2>&1` in
4266 *GNU*)
4267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268 *)
4269 ac_count=0
4270 $as_echo_n 0123456789 >"conftest.in"
4271 while :
4272 do
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'GREP' >> "conftest.nl"
4277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_GREP="$ac_path_GREP"
4283 ac_path_GREP_max=$ac_count
4284 fi
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4287 done
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291 $ac_path_GREP_found && break 3
4292 done
4293 done
4294 done
4295 IFS=$as_save_IFS
4296 if test -z "$ac_cv_path_GREP"; then
4297 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 fi
4299 else
4300 ac_cv_path_GREP=$GREP
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4305 $as_echo "$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4310 $as_echo_n "checking for egrep... " >&6; }
4311 if ${ac_cv_path_EGREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315 then ac_cv_path_EGREP="$GREP -E"
4316 else
4317 if test -z "$EGREP"; then
4318 ac_path_EGREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in egrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329 # Check for GNU ac_path_EGREP and select it if it is found.
4330 # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'EGREP' >> "conftest.nl"
4343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_EGREP="$ac_path_EGREP"
4349 ac_path_EGREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_EGREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_EGREP"; then
4363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_EGREP=$EGREP
4367 fi
4368
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4372 $as_echo "$ac_cv_path_EGREP" >&6; }
4373 EGREP="$ac_cv_path_EGREP"
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4377 $as_echo_n "checking for fgrep... " >&6; }
4378 if ${ac_cv_path_FGREP+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4382 then ac_cv_path_FGREP="$GREP -F"
4383 else
4384 if test -z "$FGREP"; then
4385 ac_path_FGREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in fgrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4396 # Check for GNU ac_path_FGREP and select it if it is found.
4397 # Check for GNU $ac_path_FGREP
4398 case `"$ac_path_FGREP" --version 2>&1` in
4399 *GNU*)
4400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401 *)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'FGREP' >> "conftest.nl"
4410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_FGREP="$ac_path_FGREP"
4416 ac_path_FGREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424 $ac_path_FGREP_found && break 3
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_FGREP"; then
4430 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432 else
4433 ac_cv_path_FGREP=$FGREP
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4439 $as_echo "$ac_cv_path_FGREP" >&6; }
4440 FGREP="$ac_cv_path_FGREP"
4441
4442
4443 test -z "$GREP" && GREP=grep
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 # Check whether --with-gnu-ld was given.
4464 if test "${with_gnu_ld+set}" = set; then :
4465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4466 else
4467 with_gnu_ld=no
4468 fi
4469
4470 ac_prog=ld
4471 if test "$GCC" = yes; then
4472 # Check if gcc -print-prog-name=ld gives a path.
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4474 $as_echo_n "checking for ld used by $CC... " >&6; }
4475 case $host in
4476 *-*-mingw*)
4477 # gcc leaves a trailing carriage return which upsets mingw
4478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 *)
4480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4481 esac
4482 case $ac_prog in
4483 # Accept absolute paths.
4484 [\\/]* | ?:[\\/]*)
4485 re_direlt='/[^/][^/]*/\.\./'
4486 # Canonicalize the pathname of ld
4487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4490 done
4491 test -z "$LD" && LD="$ac_prog"
4492 ;;
4493 "")
4494 # If it fails, then pretend we aren't using GCC.
4495 ac_prog=ld
4496 ;;
4497 *)
4498 # If it is relative, then search for the first ld in PATH.
4499 with_gnu_ld=unknown
4500 ;;
4501 esac
4502 elif test "$with_gnu_ld" = yes; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4504 $as_echo_n "checking for GNU ld... " >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4507 $as_echo_n "checking for non-GNU ld... " >&6; }
4508 fi
4509 if ${lt_cv_path_LD+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -z "$LD"; then
4513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4514 for ac_dir in $PATH; do
4515 IFS="$lt_save_ifs"
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4518 lt_cv_path_LD="$ac_dir/$ac_prog"
4519 # Check to see if the program is GNU ld. I'd rather use --version,
4520 # but apparently some variants of GNU ld only accept -v.
4521 # Break only if it was the GNU/non-GNU ld that we prefer.
4522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524 test "$with_gnu_ld" != no && break
4525 ;;
4526 *)
4527 test "$with_gnu_ld" != yes && break
4528 ;;
4529 esac
4530 fi
4531 done
4532 IFS="$lt_save_ifs"
4533 else
4534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4535 fi
4536 fi
4537
4538 LD="$lt_cv_path_LD"
4539 if test -n "$LD"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4541 $as_echo "$LD" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4549 if ${lt_cv_prog_gnu_ld+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4553 case `$LD -v 2>&1 </dev/null` in
4554 *GNU* | *'with BFD'*)
4555 lt_cv_prog_gnu_ld=yes
4556 ;;
4557 *)
4558 lt_cv_prog_gnu_ld=no
4559 ;;
4560 esac
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4564 with_gnu_ld=$lt_cv_prog_gnu_ld
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4575 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4576 if ${lt_cv_path_NM+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$NM"; then
4580 # Let the user override the test.
4581 lt_cv_path_NM="$NM"
4582 else
4583 lt_nm_to_check="${ac_tool_prefix}nm"
4584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4585 lt_nm_to_check="$lt_nm_to_check nm"
4586 fi
4587 for lt_tmp_nm in $lt_nm_to_check; do
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 tmp_nm="$ac_dir/$lt_tmp_nm"
4593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4594 # Check to see if the nm accepts a BSD-compat flag.
4595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4596 # nm: unknown option "B" ignored
4597 # Tru64's nm complains that /dev/null is an invalid object file
4598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4599 */dev/null* | *'Invalid file or object type'*)
4600 lt_cv_path_NM="$tmp_nm -B"
4601 break
4602 ;;
4603 *)
4604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605 */dev/null*)
4606 lt_cv_path_NM="$tmp_nm -p"
4607 break
4608 ;;
4609 *)
4610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4611 continue # so that we can try to find one that supports BSD flags
4612 ;;
4613 esac
4614 ;;
4615 esac
4616 fi
4617 done
4618 IFS="$lt_save_ifs"
4619 done
4620 : ${lt_cv_path_NM=no}
4621 fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4624 $as_echo "$lt_cv_path_NM" >&6; }
4625 if test "$lt_cv_path_NM" != "no"; then
4626 NM="$lt_cv_path_NM"
4627 else
4628 # Didn't find any BSD compatible name lister, look for dumpbin.
4629 if test -n "$DUMPBIN"; then :
4630 # Let the user override the test.
4631 else
4632 if test -n "$ac_tool_prefix"; then
4633 for ac_prog in dumpbin "link -dump"
4634 do
4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_DUMPBIN+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$DUMPBIN"; then
4643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 DUMPBIN=$ac_cv_prog_DUMPBIN
4663 if test -n "$DUMPBIN"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4665 $as_echo "$DUMPBIN" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672 test -n "$DUMPBIN" && break
4673 done
4674 fi
4675 if test -z "$DUMPBIN"; then
4676 ac_ct_DUMPBIN=$DUMPBIN
4677 for ac_prog in dumpbin "link -dump"
4678 do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$ac_ct_DUMPBIN"; then
4687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4707 if test -n "$ac_ct_DUMPBIN"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4709 $as_echo "$ac_ct_DUMPBIN" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716 test -n "$ac_ct_DUMPBIN" && break
4717 done
4718
4719 if test "x$ac_ct_DUMPBIN" = x; then
4720 DUMPBIN=":"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728 DUMPBIN=$ac_ct_DUMPBIN
4729 fi
4730 fi
4731
4732 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4733 *COFF*)
4734 DUMPBIN="$DUMPBIN -symbols"
4735 ;;
4736 *)
4737 DUMPBIN=:
4738 ;;
4739 esac
4740 fi
4741
4742 if test "$DUMPBIN" != ":"; then
4743 NM="$DUMPBIN"
4744 fi
4745 fi
4746 test -z "$NM" && NM=nm
4747
4748
4749
4750
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4755 if ${lt_cv_nm_interface+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 lt_cv_nm_interface="BSD nm"
4759 echo "int some_variable = 0;" > conftest.$ac_ext
4760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4761 (eval "$ac_compile" 2>conftest.err)
4762 cat conftest.err >&5
4763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4765 cat conftest.err >&5
4766 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4767 cat conftest.out >&5
4768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4769 lt_cv_nm_interface="MS dumpbin"
4770 fi
4771 rm -f conftest*
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4774 $as_echo "$lt_cv_nm_interface" >&6; }
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4777 $as_echo_n "checking whether ln -s works... " >&6; }
4778 LN_S=$as_ln_s
4779 if test "$LN_S" = "ln -s"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4781 $as_echo "yes" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4784 $as_echo "no, using $LN_S" >&6; }
4785 fi
4786
4787 # find the maximum length of command line arguments
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4790 if ${lt_cv_sys_max_cmd_len+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 i=0
4794 teststring="ABCD"
4795
4796 case $build_os in
4797 msdosdjgpp*)
4798 # On DJGPP, this test can blow up pretty badly due to problems in libc
4799 # (any single argument exceeding 2000 bytes causes a buffer overrun
4800 # during glob expansion). Even if it were fixed, the result of this
4801 # check would be larger than it should be.
4802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4803 ;;
4804
4805 gnu*)
4806 # Under GNU Hurd, this test is not required because there is
4807 # no limit to the length of command line arguments.
4808 # Libtool will interpret -1 as no limit whatsoever
4809 lt_cv_sys_max_cmd_len=-1;
4810 ;;
4811
4812 cygwin* | mingw* | cegcc*)
4813 # On Win9x/ME, this test blows up -- it succeeds, but takes
4814 # about 5 minutes as the teststring grows exponentially.
4815 # Worse, since 9x/ME are not pre-emptively multitasking,
4816 # you end up with a "frozen" computer, even though with patience
4817 # the test eventually succeeds (with a max line length of 256k).
4818 # Instead, let's just punt: use the minimum linelength reported by
4819 # all of the supported platforms: 8192 (on NT/2K/XP).
4820 lt_cv_sys_max_cmd_len=8192;
4821 ;;
4822
4823 mint*)
4824 # On MiNT this can take a long time and run out of memory.
4825 lt_cv_sys_max_cmd_len=8192;
4826 ;;
4827
4828 amigaos*)
4829 # On AmigaOS with pdksh, this test takes hours, literally.
4830 # So we just punt and use a minimum line length of 8192.
4831 lt_cv_sys_max_cmd_len=8192;
4832 ;;
4833
4834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4835 # This has been around since 386BSD, at least. Likely further.
4836 if test -x /sbin/sysctl; then
4837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4838 elif test -x /usr/sbin/sysctl; then
4839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4840 else
4841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4842 fi
4843 # And add a safety zone
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4846 ;;
4847
4848 interix*)
4849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4850 lt_cv_sys_max_cmd_len=196608
4851 ;;
4852
4853 osf*)
4854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4856 # nice to cause kernel panics so lets avoid the loop below.
4857 # First set a reasonable default.
4858 lt_cv_sys_max_cmd_len=16384
4859 #
4860 if test -x /sbin/sysconfig; then
4861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4863 esac
4864 fi
4865 ;;
4866 sco3.2v5*)
4867 lt_cv_sys_max_cmd_len=102400
4868 ;;
4869 sysv5* | sco5v6* | sysv4.2uw2*)
4870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4871 if test -n "$kargmax"; then
4872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4873 else
4874 lt_cv_sys_max_cmd_len=32768
4875 fi
4876 ;;
4877 *)
4878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4879 if test -n "$lt_cv_sys_max_cmd_len"; then
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4882 else
4883 # Make teststring a little bigger before we do anything with it.
4884 # a 1K string should be a reasonable start.
4885 for i in 1 2 3 4 5 6 7 8 ; do
4886 teststring=$teststring$teststring
4887 done
4888 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4889 # If test is not a shell built-in, we'll probably end up computing a
4890 # maximum length that is only half of the actual maximum length, but
4891 # we can't tell.
4892 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4893 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4894 test $i != 17 # 1/2 MB should be enough
4895 do
4896 i=`expr $i + 1`
4897 teststring=$teststring$teststring
4898 done
4899 # Only check the string length outside the loop.
4900 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4901 teststring=
4902 # Add a significant safety factor because C++ compilers can tack on
4903 # massive amounts of additional arguments before passing them to the
4904 # linker. It appears as though 1/2 is a usable value.
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4906 fi
4907 ;;
4908 esac
4909
4910 fi
4911
4912 if test -n $lt_cv_sys_max_cmd_len ; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4914 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4917 $as_echo "none" >&6; }
4918 fi
4919 max_cmd_len=$lt_cv_sys_max_cmd_len
4920
4921
4922
4923
4924
4925
4926 : ${CP="cp -f"}
4927 : ${MV="mv -f"}
4928 : ${RM="rm -f"}
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4931 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4932 # Try some XSI features
4933 xsi_shell=no
4934 ( _lt_dummy="a/b/c"
4935 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4936 = c,a/b,b/c, \
4937 && eval 'test $(( 1 + 1 )) -eq 2 \
4938 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4939 && xsi_shell=yes
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4941 $as_echo "$xsi_shell" >&6; }
4942
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4946 lt_shell_append=no
4947 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4948 >/dev/null 2>&1 \
4949 && lt_shell_append=yes
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4951 $as_echo "$lt_shell_append" >&6; }
4952
4953
4954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4955 lt_unset=unset
4956 else
4957 lt_unset=false
4958 fi
4959
4960
4961
4962
4963
4964 # test EBCDIC or ASCII
4965 case `echo X|tr X '\101'` in
4966 A) # ASCII based system
4967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4968 lt_SP2NL='tr \040 \012'
4969 lt_NL2SP='tr \015\012 \040\040'
4970 ;;
4971 *) # EBCDIC based system
4972 lt_SP2NL='tr \100 \n'
4973 lt_NL2SP='tr \r\n \100\100'
4974 ;;
4975 esac
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4986 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4987 if ${lt_cv_to_host_file_cmd+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 case $host in
4991 *-*-mingw* )
4992 case $build in
4993 *-*-mingw* ) # actually msys
4994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4995 ;;
4996 *-*-cygwin* )
4997 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4998 ;;
4999 * ) # otherwise, assume *nix
5000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5001 ;;
5002 esac
5003 ;;
5004 *-*-cygwin* )
5005 case $build in
5006 *-*-mingw* ) # actually msys
5007 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5008 ;;
5009 *-*-cygwin* )
5010 lt_cv_to_host_file_cmd=func_convert_file_noop
5011 ;;
5012 * ) # otherwise, assume *nix
5013 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5014 ;;
5015 esac
5016 ;;
5017 * ) # unhandled hosts (and "normal" native builds)
5018 lt_cv_to_host_file_cmd=func_convert_file_noop
5019 ;;
5020 esac
5021
5022 fi
5023
5024 to_host_file_cmd=$lt_cv_to_host_file_cmd
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5026 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5027
5028
5029
5030
5031
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5033 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5034 if ${lt_cv_to_tool_file_cmd+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 #assume ordinary cross tools, or native build.
5038 lt_cv_to_tool_file_cmd=func_convert_file_noop
5039 case $host in
5040 *-*-mingw* )
5041 case $build in
5042 *-*-mingw* ) # actually msys
5043 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5044 ;;
5045 esac
5046 ;;
5047 esac
5048
5049 fi
5050
5051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5053 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5054
5055
5056
5057
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5061 if ${lt_cv_ld_reload_flag+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 lt_cv_ld_reload_flag='-r'
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5068 reload_flag=$lt_cv_ld_reload_flag
5069 case $reload_flag in
5070 "" | " "*) ;;
5071 *) reload_flag=" $reload_flag" ;;
5072 esac
5073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074 case $host_os in
5075 cygwin* | mingw* | pw32* | cegcc*)
5076 if test "$GCC" != yes; then
5077 reload_cmds=false
5078 fi
5079 ;;
5080 darwin*)
5081 if test "$GCC" = yes; then
5082 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5083 else
5084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5085 fi
5086 ;;
5087 esac
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_OBJDUMP+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$OBJDUMP"; then
5106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 OBJDUMP=$ac_cv_prog_OBJDUMP
5126 if test -n "$OBJDUMP"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5128 $as_echo "$OBJDUMP" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135 fi
5136 if test -z "$ac_cv_prog_OBJDUMP"; then
5137 ac_ct_OBJDUMP=$OBJDUMP
5138 # Extract the first word of "objdump", so it can be a program name with args.
5139 set dummy objdump; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$ac_ct_OBJDUMP"; then
5146 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5166 if test -n "$ac_ct_OBJDUMP"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5168 $as_echo "$ac_ct_OBJDUMP" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174 if test "x$ac_ct_OBJDUMP" = x; then
5175 OBJDUMP="false"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183 OBJDUMP=$ac_ct_OBJDUMP
5184 fi
5185 else
5186 OBJDUMP="$ac_cv_prog_OBJDUMP"
5187 fi
5188
5189 test -z "$OBJDUMP" && OBJDUMP=objdump
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5200 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5201 if ${lt_cv_deplibs_check_method+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 lt_cv_file_magic_cmd='$MAGIC_CMD'
5205 lt_cv_file_magic_test_file=
5206 lt_cv_deplibs_check_method='unknown'
5207 # Need to set the preceding variable on all platforms that support
5208 # interlibrary dependencies.
5209 # 'none' -- dependencies not supported.
5210 # `unknown' -- same as none, but documents that we really don't know.
5211 # 'pass_all' -- all dependencies passed with no checks.
5212 # 'test_compile' -- check by making test program.
5213 # 'file_magic [[regex]]' -- check by looking for files in library path
5214 # which responds to the $file_magic_cmd with a given extended regex.
5215 # If you have `file' or equivalent on your system and you're not sure
5216 # whether `pass_all' will *always* work, you probably want this one.
5217
5218 case $host_os in
5219 aix[4-9]*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 beos*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 bsdi[45]*)
5228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5229 lt_cv_file_magic_cmd='/usr/bin/file -L'
5230 lt_cv_file_magic_test_file=/shlib/libc.so
5231 ;;
5232
5233 cygwin*)
5234 # func_win32_libid is a shell function defined in ltmain.sh
5235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5236 lt_cv_file_magic_cmd='func_win32_libid'
5237 ;;
5238
5239 mingw* | pw32*)
5240 # Base MSYS/MinGW do not provide the 'file' command needed by
5241 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5242 # unless we find 'file', for example because we are cross-compiling.
5243 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5244 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5247 else
5248 # Keep this pattern in sync with the one in func_win32_libid.
5249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5250 lt_cv_file_magic_cmd='$OBJDUMP -f'
5251 fi
5252 ;;
5253
5254 cegcc*)
5255 # use the weaker test based on 'objdump'. See mingw*.
5256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5257 lt_cv_file_magic_cmd='$OBJDUMP -f'
5258 ;;
5259
5260 darwin* | rhapsody*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 freebsd* | dragonfly*)
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 case $host_cpu in
5267 i*86 )
5268 # Not sure whether the presence of OpenBSD here was a mistake.
5269 # Let's accept both of them until this is cleared up.
5270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5273 ;;
5274 esac
5275 else
5276 lt_cv_deplibs_check_method=pass_all
5277 fi
5278 ;;
5279
5280 gnu*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 haiku*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 hpux10.20* | hpux11*)
5289 lt_cv_file_magic_cmd=/usr/bin/file
5290 case $host_cpu in
5291 ia64*)
5292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5293 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5294 ;;
5295 hppa*64*)
5296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5297 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5298 ;;
5299 *)
5300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5302 ;;
5303 esac
5304 ;;
5305
5306 interix[3-9]*)
5307 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5309 ;;
5310
5311 irix5* | irix6* | nonstopux*)
5312 case $LD in
5313 *-32|*"-32 ") libmagic=32-bit;;
5314 *-n32|*"-n32 ") libmagic=N32;;
5315 *-64|*"-64 ") libmagic=64-bit;;
5316 *) libmagic=never-match;;
5317 esac
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320
5321 # This must be Linux ELF.
5322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 netbsd*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329 else
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5331 fi
5332 ;;
5333
5334 newos6*)
5335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5336 lt_cv_file_magic_cmd=/usr/bin/file
5337 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5338 ;;
5339
5340 *nto* | *qnx*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 openbsd*)
5345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5347 else
5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5349 fi
5350 ;;
5351
5352 osf3* | osf4* | osf5*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 rdos*)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359
5360 solaris*)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363
5364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367
5368 sysv4 | sysv4.3*)
5369 case $host_vendor in
5370 motorola)
5371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5373 ;;
5374 ncr)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377 sequent)
5378 lt_cv_file_magic_cmd='/bin/file'
5379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5380 ;;
5381 sni)
5382 lt_cv_file_magic_cmd='/bin/file'
5383 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5384 lt_cv_file_magic_test_file=/lib/libc.so
5385 ;;
5386 siemens)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389 pc)
5390 lt_cv_deplibs_check_method=pass_all
5391 ;;
5392 esac
5393 ;;
5394
5395 tpf*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398 esac
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5402 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5403
5404 file_magic_glob=
5405 want_nocaseglob=no
5406 if test "$build" = "$host"; then
5407 case $host_os in
5408 mingw* | pw32*)
5409 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5410 want_nocaseglob=yes
5411 else
5412 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5413 fi
5414 ;;
5415 esac
5416 fi
5417
5418 file_magic_cmd=$lt_cv_file_magic_cmd
5419 deplibs_check_method=$lt_cv_deplibs_check_method
5420 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_DLLTOOL+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$DLLTOOL"; then
5452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 DLLTOOL=$ac_cv_prog_DLLTOOL
5472 if test -n "$DLLTOOL"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5474 $as_echo "$DLLTOOL" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_prog_DLLTOOL"; then
5483 ac_ct_DLLTOOL=$DLLTOOL
5484 # Extract the first word of "dlltool", so it can be a program name with args.
5485 set dummy dlltool; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$ac_ct_DLLTOOL"; then
5492 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5512 if test -n "$ac_ct_DLLTOOL"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5514 $as_echo "$ac_ct_DLLTOOL" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520 if test "x$ac_ct_DLLTOOL" = x; then
5521 DLLTOOL="false"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 DLLTOOL=$ac_ct_DLLTOOL
5530 fi
5531 else
5532 DLLTOOL="$ac_cv_prog_DLLTOOL"
5533 fi
5534
5535 test -z "$DLLTOOL" && DLLTOOL=dlltool
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5547 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5548 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 lt_cv_sharedlib_from_linklib_cmd='unknown'
5552
5553 case $host_os in
5554 cygwin* | mingw* | pw32* | cegcc*)
5555 # two different shell functions defined in ltmain.sh
5556 # decide which to use based on capabilities of $DLLTOOL
5557 case `$DLLTOOL --help 2>&1` in
5558 *--identify-strict*)
5559 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5560 ;;
5561 *)
5562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5563 ;;
5564 esac
5565 ;;
5566 *)
5567 # fallback: assume linklib IS sharedlib
5568 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5569 ;;
5570 esac
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5574 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5575 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5576 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5577
5578
5579
5580
5581
5582
5583
5584
5585 if test -n "$ac_tool_prefix"; then
5586 for ac_prog in ar
5587 do
5588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_AR+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$AR"; then
5596 ac_cv_prog_AR="$AR" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 AR=$ac_cv_prog_AR
5616 if test -n "$AR"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5618 $as_echo "$AR" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625 test -n "$AR" && break
5626 done
5627 fi
5628 if test -z "$AR"; then
5629 ac_ct_AR=$AR
5630 for ac_prog in ar
5631 do
5632 # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$ac_ct_AR"; then
5640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_AR="$ac_prog"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5662 $as_echo "$ac_ct_AR" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 test -n "$ac_ct_AR" && break
5670 done
5671
5672 if test "x$ac_ct_AR" = x; then
5673 AR="false"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681 AR=$ac_ct_AR
5682 fi
5683 fi
5684
5685 : ${AR=ar}
5686 : ${AR_FLAGS=cru}
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5699 $as_echo_n "checking for archiver @FILE support... " >&6; }
5700 if ${lt_cv_ar_at_file+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 lt_cv_ar_at_file=no
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 echo conftest.$ac_objext > conftest.lst
5717 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5719 (eval $lt_ar_try) 2>&5
5720 ac_status=$?
5721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5722 test $ac_status = 0; }
5723 if test "$ac_status" -eq 0; then
5724 # Ensure the archiver fails upon bogus file names.
5725 rm -f conftest.$ac_objext libconftest.a
5726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5727 (eval $lt_ar_try) 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; }
5731 if test "$ac_status" -ne 0; then
5732 lt_cv_ar_at_file=@
5733 fi
5734 fi
5735 rm -f conftest.* libconftest.a
5736
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5742 $as_echo "$lt_cv_ar_at_file" >&6; }
5743
5744 if test "x$lt_cv_ar_at_file" = xno; then
5745 archiver_list_spec=
5746 else
5747 archiver_list_spec=$lt_cv_ar_at_file
5748 fi
5749
5750
5751
5752
5753
5754
5755
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}strip; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_STRIP+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$STRIP"; then
5765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 STRIP=$ac_cv_prog_STRIP
5785 if test -n "$STRIP"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5787 $as_echo "$STRIP" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793
5794 fi
5795 if test -z "$ac_cv_prog_STRIP"; then
5796 ac_ct_STRIP=$STRIP
5797 # Extract the first word of "strip", so it can be a program name with args.
5798 set dummy strip; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if test -n "$ac_ct_STRIP"; then
5805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_ac_ct_STRIP="strip"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5825 if test -n "$ac_ct_STRIP"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5827 $as_echo "$ac_ct_STRIP" >&6; }
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833 if test "x$ac_ct_STRIP" = x; then
5834 STRIP=":"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837 yes:)
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842 STRIP=$ac_ct_STRIP
5843 fi
5844 else
5845 STRIP="$ac_cv_prog_STRIP"
5846 fi
5847
5848 test -z "$STRIP" && STRIP=:
5849
5850
5851
5852
5853
5854
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_RANLIB+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$RANLIB"; then
5864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 RANLIB=$ac_cv_prog_RANLIB
5884 if test -n "$RANLIB"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5886 $as_echo "$RANLIB" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892
5893 fi
5894 if test -z "$ac_cv_prog_RANLIB"; then
5895 ac_ct_RANLIB=$RANLIB
5896 # Extract the first word of "ranlib", so it can be a program name with args.
5897 set dummy ranlib; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$ac_ct_RANLIB"; then
5904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_ac_ct_RANLIB="ranlib"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5924 if test -n "$ac_ct_RANLIB"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5926 $as_echo "$ac_ct_RANLIB" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932 if test "x$ac_ct_RANLIB" = x; then
5933 RANLIB=":"
5934 else
5935 case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939 ac_tool_warned=yes ;;
5940 esac
5941 RANLIB=$ac_ct_RANLIB
5942 fi
5943 else
5944 RANLIB="$ac_cv_prog_RANLIB"
5945 fi
5946
5947 test -z "$RANLIB" && RANLIB=:
5948
5949
5950
5951
5952
5953
5954 # Determine commands to create old-style static archives.
5955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5956 old_postinstall_cmds='chmod 644 $oldlib'
5957 old_postuninstall_cmds=
5958
5959 if test -n "$RANLIB"; then
5960 case $host_os in
5961 openbsd*)
5962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5963 ;;
5964 *)
5965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5966 ;;
5967 esac
5968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5969 fi
5970
5971 case $host_os in
5972 darwin*)
5973 lock_old_archive_extraction=yes ;;
5974 *)
5975 lock_old_archive_extraction=no ;;
5976 esac
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016 # If no C compiler was specified, use CC.
6017 LTCC=${LTCC-"$CC"}
6018
6019 # If no C compiler flags were specified, use CFLAGS.
6020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6021
6022 # Allow CC to be a program name with arguments.
6023 compiler=$CC
6024
6025
6026 # Check for command to grab the raw symbol name followed by C symbol from nm.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6028 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6029 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032
6033 # These are sane defaults that work on at least a few old systems.
6034 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6035
6036 # Character class describing NM global symbol codes.
6037 symcode='[BCDEGRST]'
6038
6039 # Regexp to match symbols that can be accessed directly from C.
6040 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6041
6042 # Define system-specific variables.
6043 case $host_os in
6044 aix*)
6045 symcode='[BCDT]'
6046 ;;
6047 cygwin* | mingw* | pw32* | cegcc*)
6048 symcode='[ABCDGISTW]'
6049 ;;
6050 hpux*)
6051 if test "$host_cpu" = ia64; then
6052 symcode='[ABCDEGRST]'
6053 fi
6054 ;;
6055 irix* | nonstopux*)
6056 symcode='[BCDEGRST]'
6057 ;;
6058 osf*)
6059 symcode='[BCDEGQRST]'
6060 ;;
6061 solaris*)
6062 symcode='[BDRT]'
6063 ;;
6064 sco3.2v5*)
6065 symcode='[DT]'
6066 ;;
6067 sysv4.2uw2*)
6068 symcode='[DT]'
6069 ;;
6070 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6071 symcode='[ABDT]'
6072 ;;
6073 sysv4)
6074 symcode='[DFNSTU]'
6075 ;;
6076 esac
6077
6078 # If we're using GNU nm, then use its standard symbol codes.
6079 case `$NM -V 2>&1` in
6080 *GNU* | *'with BFD'*)
6081 symcode='[ABCDGIRSTW]' ;;
6082 esac
6083
6084 # Transform an extracted symbol line into a proper C declaration.
6085 # Some systems (esp. on ia64) link data and code symbols differently,
6086 # so use this general approach.
6087 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6088
6089 # Transform an extracted symbol line into symbol name and symbol address
6090 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6092
6093 # Handle CRLF in mingw tool chain
6094 opt_cr=
6095 case $build_os in
6096 mingw*)
6097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6098 ;;
6099 esac
6100
6101 # Try without a prefix underscore, then with it.
6102 for ac_symprfx in "" "_"; do
6103
6104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6105 symxfrm="\\1 $ac_symprfx\\2 \\2"
6106
6107 # Write the raw and C identifiers.
6108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6109 # Fake it for dumpbin and say T for any non-static function
6110 # and D for any global variable.
6111 # Also find C++ and __fastcall symbols from MSVC++,
6112 # which start with @ or ?.
6113 lt_cv_sys_global_symbol_pipe="$AWK '"\
6114 " {last_section=section; section=\$ 3};"\
6115 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6116 " \$ 0!~/External *\|/{next};"\
6117 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6118 " {if(hide[section]) next};"\
6119 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6120 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6121 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6122 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6123 " ' prfx=^$ac_symprfx"
6124 else
6125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6126 fi
6127 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6128
6129 # Check to see that the pipe works correctly.
6130 pipe_works=no
6131
6132 rm -f conftest*
6133 cat > conftest.$ac_ext <<_LT_EOF
6134 #ifdef __cplusplus
6135 extern "C" {
6136 #endif
6137 char nm_test_var;
6138 void nm_test_func(void);
6139 void nm_test_func(void){}
6140 #ifdef __cplusplus
6141 }
6142 #endif
6143 int main(){nm_test_var='a';nm_test_func();return(0);}
6144 _LT_EOF
6145
6146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6147 (eval $ac_compile) 2>&5
6148 ac_status=$?
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }; then
6151 # Now try to grab the symbols.
6152 nlist=conftest.nm
6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6154 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; } && test -s "$nlist"; then
6158 # Try sorting and uniquifying the output.
6159 if sort "$nlist" | uniq > "$nlist"T; then
6160 mv -f "$nlist"T "$nlist"
6161 else
6162 rm -f "$nlist"T
6163 fi
6164
6165 # Make sure that we snagged all the symbols we need.
6166 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6167 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6168 cat <<_LT_EOF > conftest.$ac_ext
6169 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6170 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6171 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6172 relocations are performed -- see ld's documentation on pseudo-relocs. */
6173 # define LT_DLSYM_CONST
6174 #elif defined(__osf__)
6175 /* This system does not cope well with relocations in const data. */
6176 # define LT_DLSYM_CONST
6177 #else
6178 # define LT_DLSYM_CONST const
6179 #endif
6180
6181 #ifdef __cplusplus
6182 extern "C" {
6183 #endif
6184
6185 _LT_EOF
6186 # Now generate the symbol file.
6187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6188
6189 cat <<_LT_EOF >> conftest.$ac_ext
6190
6191 /* The mapping between symbol names and symbols. */
6192 LT_DLSYM_CONST struct {
6193 const char *name;
6194 void *address;
6195 }
6196 lt__PROGRAM__LTX_preloaded_symbols[] =
6197 {
6198 { "@PROGRAM@", (void *) 0 },
6199 _LT_EOF
6200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201 cat <<\_LT_EOF >> conftest.$ac_ext
6202 {0, (void *) 0}
6203 };
6204
6205 /* This works around a problem in FreeBSD linker */
6206 #ifdef FREEBSD_WORKAROUND
6207 static const void *lt_preloaded_setup() {
6208 return lt__PROGRAM__LTX_preloaded_symbols;
6209 }
6210 #endif
6211
6212 #ifdef __cplusplus
6213 }
6214 #endif
6215 _LT_EOF
6216 # Now try linking the two files.
6217 mv conftest.$ac_objext conftstm.$ac_objext
6218 lt_globsym_save_LIBS=$LIBS
6219 lt_globsym_save_CFLAGS=$CFLAGS
6220 LIBS="conftstm.$ac_objext"
6221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6223 (eval $ac_link) 2>&5
6224 ac_status=$?
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6227 pipe_works=yes
6228 fi
6229 LIBS=$lt_globsym_save_LIBS
6230 CFLAGS=$lt_globsym_save_CFLAGS
6231 else
6232 echo "cannot find nm_test_func in $nlist" >&5
6233 fi
6234 else
6235 echo "cannot find nm_test_var in $nlist" >&5
6236 fi
6237 else
6238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239 fi
6240 else
6241 echo "$progname: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 fi
6244 rm -rf conftest* conftst*
6245
6246 # Do not use the global_symbol_pipe unless it works.
6247 if test "$pipe_works" = yes; then
6248 break
6249 else
6250 lt_cv_sys_global_symbol_pipe=
6251 fi
6252 done
6253
6254 fi
6255
6256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257 lt_cv_sys_global_symbol_to_cdecl=
6258 fi
6259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6261 $as_echo "failed" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6264 $as_echo "ok" >&6; }
6265 fi
6266
6267 # Response file support.
6268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269 nm_file_list_spec='@'
6270 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6271 nm_file_list_spec='@'
6272 fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6301 $as_echo_n "checking for sysroot... " >&6; }
6302
6303 # Check whether --with-sysroot was given.
6304 if test "${with_sysroot+set}" = set; then :
6305 withval=$with_sysroot;
6306 else
6307 with_sysroot=no
6308 fi
6309
6310
6311 lt_sysroot=
6312 case ${with_sysroot} in #(
6313 yes)
6314 if test "$GCC" = yes; then
6315 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6316 fi
6317 ;; #(
6318 /*)
6319 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6320 ;; #(
6321 no|'')
6322 ;; #(
6323 *)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6325 $as_echo "${with_sysroot}" >&6; }
6326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6327 ;;
6328 esac
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6331 $as_echo "${lt_sysroot:-no}" >&6; }
6332
6333
6334
6335
6336
6337 # Check whether --enable-libtool-lock was given.
6338 if test "${enable_libtool_lock+set}" = set; then :
6339 enableval=$enable_libtool_lock;
6340 fi
6341
6342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6343
6344 # Some flags need to be propagated to the compiler or linker for good
6345 # libtool support.
6346 case $host in
6347 ia64-*-hpux*)
6348 # Find out which ABI we are using.
6349 echo 'int i;' > conftest.$ac_ext
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; then
6355 case `/usr/bin/file conftest.$ac_objext` in
6356 *ELF-32*)
6357 HPUX_IA64_MODE="32"
6358 ;;
6359 *ELF-64*)
6360 HPUX_IA64_MODE="64"
6361 ;;
6362 esac
6363 fi
6364 rm -rf conftest*
6365 ;;
6366 *-*-irix6*)
6367 # Find out which ABI we are using.
6368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6370 (eval $ac_compile) 2>&5
6371 ac_status=$?
6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373 test $ac_status = 0; }; then
6374 if test "$lt_cv_prog_gnu_ld" = yes; then
6375 case `/usr/bin/file conftest.$ac_objext` in
6376 *32-bit*)
6377 LD="${LD-ld} -melf32bsmip"
6378 ;;
6379 *N32*)
6380 LD="${LD-ld} -melf32bmipn32"
6381 ;;
6382 *64-bit*)
6383 LD="${LD-ld} -melf64bmip"
6384 ;;
6385 esac
6386 else
6387 case `/usr/bin/file conftest.$ac_objext` in
6388 *32-bit*)
6389 LD="${LD-ld} -32"
6390 ;;
6391 *N32*)
6392 LD="${LD-ld} -n32"
6393 ;;
6394 *64-bit*)
6395 LD="${LD-ld} -64"
6396 ;;
6397 esac
6398 fi
6399 fi
6400 rm -rf conftest*
6401 ;;
6402
6403 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6404 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6405 # Find out which ABI we are using.
6406 echo 'int i;' > conftest.$ac_ext
6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6408 (eval $ac_compile) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }; then
6412 case `/usr/bin/file conftest.o` in
6413 *32-bit*)
6414 case $host in
6415 x86_64-*kfreebsd*-gnu)
6416 LD="${LD-ld} -m elf_i386_fbsd"
6417 ;;
6418 x86_64-*linux*)
6419 LD="${LD-ld} -m elf_i386"
6420 ;;
6421 ppc64-*linux*|powerpc64-*linux*)
6422 LD="${LD-ld} -m elf32ppclinux"
6423 ;;
6424 s390x-*linux*)
6425 LD="${LD-ld} -m elf_s390"
6426 ;;
6427 sparc64-*linux*)
6428 LD="${LD-ld} -m elf32_sparc"
6429 ;;
6430 esac
6431 ;;
6432 *64-bit*)
6433 case $host in
6434 x86_64-*kfreebsd*-gnu)
6435 LD="${LD-ld} -m elf_x86_64_fbsd"
6436 ;;
6437 x86_64-*linux*)
6438 LD="${LD-ld} -m elf_x86_64"
6439 ;;
6440 ppc*-*linux*|powerpc*-*linux*)
6441 LD="${LD-ld} -m elf64ppc"
6442 ;;
6443 s390*-*linux*|s390*-*tpf*)
6444 LD="${LD-ld} -m elf64_s390"
6445 ;;
6446 sparc*-*linux*)
6447 LD="${LD-ld} -m elf64_sparc"
6448 ;;
6449 esac
6450 ;;
6451 esac
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456 *-*-sco3.2v5*)
6457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6458 SAVE_CFLAGS="$CFLAGS"
6459 CFLAGS="$CFLAGS -belf"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6461 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6462 if ${lt_cv_cc_needs_belf+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473
6474 int
6475 main ()
6476 {
6477
6478 ;
6479 return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_c_try_link "$LINENO"; then :
6483 lt_cv_cc_needs_belf=yes
6484 else
6485 lt_cv_cc_needs_belf=no
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6489 ac_ext=c
6490 ac_cpp='$CPP $CPPFLAGS'
6491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6497 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6498 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6499 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6500 CFLAGS="$SAVE_CFLAGS"
6501 fi
6502 ;;
6503 sparc*-*solaris*)
6504 # Find out which ABI we are using.
6505 echo 'int i;' > conftest.$ac_ext
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 case `/usr/bin/file conftest.o` in
6512 *64-bit*)
6513 case $lt_cv_prog_gnu_ld in
6514 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6515 *)
6516 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6517 LD="${LD-ld} -64"
6518 fi
6519 ;;
6520 esac
6521 ;;
6522 esac
6523 fi
6524 rm -rf conftest*
6525 ;;
6526 esac
6527
6528 need_locks="$enable_libtool_lock"
6529
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}mt; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$MANIFEST_TOOL"; then
6539 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6559 if test -n "$MANIFEST_TOOL"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6561 $as_echo "$MANIFEST_TOOL" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6570 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6571 # Extract the first word of "mt", so it can be a program name with args.
6572 set dummy mt; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$ac_ct_MANIFEST_TOOL"; then
6579 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6599 if test -n "$ac_ct_MANIFEST_TOOL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6601 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6608 MANIFEST_TOOL=":"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6617 fi
6618 else
6619 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6620 fi
6621
6622 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6624 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6625 if ${lt_cv_path_mainfest_tool+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 lt_cv_path_mainfest_tool=no
6629 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6630 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6631 cat conftest.err >&5
6632 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6633 lt_cv_path_mainfest_tool=yes
6634 fi
6635 rm -f conftest*
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6638 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6639 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6640 MANIFEST_TOOL=:
6641 fi
6642
6643
6644
6645
6646
6647
6648 case $host_os in
6649 rhapsody* | darwin*)
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$DSYMUTIL"; then
6659 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6679 if test -n "$DSYMUTIL"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6681 $as_echo "$DSYMUTIL" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_DSYMUTIL"; then
6690 ac_ct_DSYMUTIL=$DSYMUTIL
6691 # Extract the first word of "dsymutil", so it can be a program name with args.
6692 set dummy dsymutil; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$ac_ct_DSYMUTIL"; then
6699 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6719 if test -n "$ac_ct_DSYMUTIL"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6721 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727 if test "x$ac_ct_DSYMUTIL" = x; then
6728 DSYMUTIL=":"
6729 else
6730 case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6735 esac
6736 DSYMUTIL=$ac_ct_DSYMUTIL
6737 fi
6738 else
6739 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6740 fi
6741
6742 if test -n "$ac_tool_prefix"; then
6743 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6744 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if ${ac_cv_prog_NMEDIT+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test -n "$NMEDIT"; then
6751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 NMEDIT=$ac_cv_prog_NMEDIT
6771 if test -n "$NMEDIT"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6773 $as_echo "$NMEDIT" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778
6779
6780 fi
6781 if test -z "$ac_cv_prog_NMEDIT"; then
6782 ac_ct_NMEDIT=$NMEDIT
6783 # Extract the first word of "nmedit", so it can be a program name with args.
6784 set dummy nmedit; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test -n "$ac_ct_NMEDIT"; then
6791 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6811 if test -n "$ac_ct_NMEDIT"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6813 $as_echo "$ac_ct_NMEDIT" >&6; }
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819 if test "x$ac_ct_NMEDIT" = x; then
6820 NMEDIT=":"
6821 else
6822 case $cross_compiling:$ac_tool_warned in
6823 yes:)
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826 ac_tool_warned=yes ;;
6827 esac
6828 NMEDIT=$ac_ct_NMEDIT
6829 fi
6830 else
6831 NMEDIT="$ac_cv_prog_NMEDIT"
6832 fi
6833
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_LIPO+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$LIPO"; then
6843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 LIPO=$ac_cv_prog_LIPO
6863 if test -n "$LIPO"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6865 $as_echo "$LIPO" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872 fi
6873 if test -z "$ac_cv_prog_LIPO"; then
6874 ac_ct_LIPO=$LIPO
6875 # Extract the first word of "lipo", so it can be a program name with args.
6876 set dummy lipo; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$ac_ct_LIPO"; then
6883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_ac_ct_LIPO="lipo"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6903 if test -n "$ac_ct_LIPO"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6905 $as_echo "$ac_ct_LIPO" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911 if test "x$ac_ct_LIPO" = x; then
6912 LIPO=":"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 LIPO=$ac_ct_LIPO
6921 fi
6922 else
6923 LIPO="$ac_cv_prog_LIPO"
6924 fi
6925
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}otool; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_OTOOL+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$OTOOL"; then
6935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 OTOOL=$ac_cv_prog_OTOOL
6955 if test -n "$OTOOL"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6957 $as_echo "$OTOOL" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963
6964 fi
6965 if test -z "$ac_cv_prog_OTOOL"; then
6966 ac_ct_OTOOL=$OTOOL
6967 # Extract the first word of "otool", so it can be a program name with args.
6968 set dummy otool; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$ac_ct_OTOOL"; then
6975 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_ac_ct_OTOOL="otool"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6995 if test -n "$ac_ct_OTOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6997 $as_echo "$ac_ct_OTOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003 if test "x$ac_ct_OTOOL" = x; then
7004 OTOOL=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012 OTOOL=$ac_ct_OTOOL
7013 fi
7014 else
7015 OTOOL="$ac_cv_prog_OTOOL"
7016 fi
7017
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_OTOOL64+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$OTOOL64"; then
7027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 OTOOL64=$ac_cv_prog_OTOOL64
7047 if test -n "$OTOOL64"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7049 $as_echo "$OTOOL64" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_OTOOL64"; then
7058 ac_ct_OTOOL64=$OTOOL64
7059 # Extract the first word of "otool64", so it can be a program name with args.
7060 set dummy otool64; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$ac_ct_OTOOL64"; then
7067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_OTOOL64="otool64"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7087 if test -n "$ac_ct_OTOOL64"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7089 $as_echo "$ac_ct_OTOOL64" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095 if test "x$ac_ct_OTOOL64" = x; then
7096 OTOOL64=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104 OTOOL64=$ac_ct_OTOOL64
7105 fi
7106 else
7107 OTOOL64="$ac_cv_prog_OTOOL64"
7108 fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7137 $as_echo_n "checking for -single_module linker flag... " >&6; }
7138 if ${lt_cv_apple_cc_single_mod+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 lt_cv_apple_cc_single_mod=no
7142 if test -z "${LT_MULTI_MODULE}"; then
7143 # By default we will add the -single_module flag. You can override
7144 # by either setting the environment variable LT_MULTI_MODULE
7145 # non-empty at configure time, or by adding -multi_module to the
7146 # link flags.
7147 rm -rf libconftest.dylib*
7148 echo "int foo(void){return 1;}" > conftest.c
7149 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7150 -dynamiclib -Wl,-single_module conftest.c" >&5
7151 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7152 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7153 _lt_result=$?
7154 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7155 lt_cv_apple_cc_single_mod=yes
7156 else
7157 cat conftest.err >&5
7158 fi
7159 rm -rf libconftest.dylib*
7160 rm -f conftest.*
7161 fi
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7164 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7166 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7167 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 lt_cv_ld_exported_symbols_list=no
7171 save_LDFLAGS=$LDFLAGS
7172 echo "_main" > conftest.sym
7173 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176
7177 int
7178 main ()
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"; then :
7186 lt_cv_ld_exported_symbols_list=yes
7187 else
7188 lt_cv_ld_exported_symbols_list=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192 LDFLAGS="$save_LDFLAGS"
7193
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7196 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7198 $as_echo_n "checking for -force_load linker flag... " >&6; }
7199 if ${lt_cv_ld_force_load+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 lt_cv_ld_force_load=no
7203 cat > conftest.c << _LT_EOF
7204 int forced_loaded() { return 2;}
7205 _LT_EOF
7206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7208 echo "$AR cru libconftest.a conftest.o" >&5
7209 $AR cru libconftest.a conftest.o 2>&5
7210 echo "$RANLIB libconftest.a" >&5
7211 $RANLIB libconftest.a 2>&5
7212 cat > conftest.c << _LT_EOF
7213 int main() { return 0;}
7214 _LT_EOF
7215 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7216 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7217 _lt_result=$?
7218 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7219 lt_cv_ld_force_load=yes
7220 else
7221 cat conftest.err >&5
7222 fi
7223 rm -f conftest.err libconftest.a conftest conftest.c
7224 rm -rf conftest.dSYM
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7228 $as_echo "$lt_cv_ld_force_load" >&6; }
7229 case $host_os in
7230 rhapsody* | darwin1.[012])
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7232 darwin1.*)
7233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7234 darwin*) # darwin 5.x on
7235 # if running on 10.5 or later, the deployment target defaults
7236 # to the OS version, if on x86, and 10.4, the deployment
7237 # target defaults to 10.4. Don't you love it?
7238 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7239 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7240 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7241 10.[012]*)
7242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7243 10.*)
7244 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7245 esac
7246 ;;
7247 esac
7248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7249 _lt_dar_single_mod='$single_module'
7250 fi
7251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7253 else
7254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7255 fi
7256 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7257 _lt_dsymutil='~$DSYMUTIL $lib || :'
7258 else
7259 _lt_dsymutil=
7260 fi
7261 ;;
7262 esac
7263
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7266 $as_echo_n "checking for ANSI C header files... " >&6; }
7267 if ${ac_cv_header_stdc+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <stdlib.h>
7273 #include <stdarg.h>
7274 #include <string.h>
7275 #include <float.h>
7276
7277 int
7278 main ()
7279 {
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 ac_cv_header_stdc=yes
7287 else
7288 ac_cv_header_stdc=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291
7292 if test $ac_cv_header_stdc = yes; then
7293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #include <string.h>
7297
7298 _ACEOF
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300 $EGREP "memchr" >/dev/null 2>&1; then :
7301
7302 else
7303 ac_cv_header_stdc=no
7304 fi
7305 rm -f conftest*
7306
7307 fi
7308
7309 if test $ac_cv_header_stdc = yes; then
7310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <stdlib.h>
7314
7315 _ACEOF
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 $EGREP "free" >/dev/null 2>&1; then :
7318
7319 else
7320 ac_cv_header_stdc=no
7321 fi
7322 rm -f conftest*
7323
7324 fi
7325
7326 if test $ac_cv_header_stdc = yes; then
7327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7328 if test "$cross_compiling" = yes; then :
7329 :
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <ctype.h>
7334 #include <stdlib.h>
7335 #if ((' ' & 0x0FF) == 0x020)
7336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7338 #else
7339 # define ISLOWER(c) \
7340 (('a' <= (c) && (c) <= 'i') \
7341 || ('j' <= (c) && (c) <= 'r') \
7342 || ('s' <= (c) && (c) <= 'z'))
7343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7344 #endif
7345
7346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7347 int
7348 main ()
7349 {
7350 int i;
7351 for (i = 0; i < 256; i++)
7352 if (XOR (islower (i), ISLOWER (i))
7353 || toupper (i) != TOUPPER (i))
7354 return 2;
7355 return 0;
7356 }
7357 _ACEOF
7358 if ac_fn_c_try_run "$LINENO"; then :
7359
7360 else
7361 ac_cv_header_stdc=no
7362 fi
7363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7364 conftest.$ac_objext conftest.beam conftest.$ac_ext
7365 fi
7366
7367 fi
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7370 $as_echo "$ac_cv_header_stdc" >&6; }
7371 if test $ac_cv_header_stdc = yes; then
7372
7373 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7374
7375 fi
7376
7377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7379 inttypes.h stdint.h unistd.h
7380 do :
7381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7382 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7383 "
7384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7385 cat >>confdefs.h <<_ACEOF
7386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387 _ACEOF
7388
7389 fi
7390
7391 done
7392
7393
7394 for ac_header in dlfcn.h
7395 do :
7396 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7397 "
7398 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7399 cat >>confdefs.h <<_ACEOF
7400 #define HAVE_DLFCN_H 1
7401 _ACEOF
7402
7403 fi
7404
7405 done
7406
7407
7408
7409
7410
7411 # Set options
7412
7413
7414
7415 enable_dlopen=no
7416
7417
7418 enable_win32_dll=no
7419
7420
7421 # Check whether --enable-shared was given.
7422 if test "${enable_shared+set}" = set; then :
7423 enableval=$enable_shared; p=${PACKAGE-default}
7424 case $enableval in
7425 yes) enable_shared=yes ;;
7426 no) enable_shared=no ;;
7427 *)
7428 enable_shared=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_shared=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440 else
7441 enable_shared=yes
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 # Check whether --with-pic was given.
7455 if test "${with_pic+set}" = set; then :
7456 withval=$with_pic; pic_mode="$withval"
7457 else
7458 pic_mode=default
7459 fi
7460
7461
7462 test -z "$pic_mode" && pic_mode=default
7463
7464
7465
7466
7467
7468
7469
7470 # Check whether --enable-fast-install was given.
7471 if test "${enable_fast_install+set}" = set; then :
7472 enableval=$enable_fast_install; p=${PACKAGE-default}
7473 case $enableval in
7474 yes) enable_fast_install=yes ;;
7475 no) enable_fast_install=no ;;
7476 *)
7477 enable_fast_install=no
7478 # Look at the argument we got. We use all the common list separators.
7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480 for pkg in $enableval; do
7481 IFS="$lt_save_ifs"
7482 if test "X$pkg" = "X$p"; then
7483 enable_fast_install=yes
7484 fi
7485 done
7486 IFS="$lt_save_ifs"
7487 ;;
7488 esac
7489 else
7490 enable_fast_install=yes
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 # This can be used to rebuild libtool when needed
7504 LIBTOOL_DEPS="$ltmain"
7505
7506 # Always use our own libtool.
7507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 test -z "$LN_S" && LN_S="ln -s"
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 if test -n "${ZSH_VERSION+set}" ; then
7550 setopt NO_GLOB_SUBST
7551 fi
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7554 $as_echo_n "checking for objdir... " >&6; }
7555 if ${lt_cv_objdir+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 rm -f .libs 2>/dev/null
7559 mkdir .libs 2>/dev/null
7560 if test -d .libs; then
7561 lt_cv_objdir=.libs
7562 else
7563 # MS-DOS does not allow filenames that begin with a dot.
7564 lt_cv_objdir=_libs
7565 fi
7566 rmdir .libs 2>/dev/null
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7569 $as_echo "$lt_cv_objdir" >&6; }
7570 objdir=$lt_cv_objdir
7571
7572
7573
7574
7575
7576 cat >>confdefs.h <<_ACEOF
7577 #define LT_OBJDIR "$lt_cv_objdir/"
7578 _ACEOF
7579
7580
7581
7582
7583 case $host_os in
7584 aix3*)
7585 # AIX sometimes has problems with the GCC collect2 program. For some
7586 # reason, if we set the COLLECT_NAMES environment variable, the problems
7587 # vanish in a puff of smoke.
7588 if test "X${COLLECT_NAMES+set}" != Xset; then
7589 COLLECT_NAMES=
7590 export COLLECT_NAMES
7591 fi
7592 ;;
7593 esac
7594
7595 # Global variables:
7596 ofile=libtool
7597 can_build_shared=yes
7598
7599 # All known linkers require a `.a' archive for static linking (except MSVC,
7600 # which needs '.lib').
7601 libext=a
7602
7603 with_gnu_ld="$lt_cv_prog_gnu_ld"
7604
7605 old_CC="$CC"
7606 old_CFLAGS="$CFLAGS"
7607
7608 # Set sane defaults for various variables
7609 test -z "$CC" && CC=cc
7610 test -z "$LTCC" && LTCC=$CC
7611 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7612 test -z "$LD" && LD=ld
7613 test -z "$ac_objext" && ac_objext=o
7614
7615 for cc_temp in $compiler""; do
7616 case $cc_temp in
7617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7619 \-*) ;;
7620 *) break;;
7621 esac
7622 done
7623 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7624
7625
7626 # Only perform the check for file, if the check method requires it
7627 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7628 case $deplibs_check_method in
7629 file_magic*)
7630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7632 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7633 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 case $MAGIC_CMD in
7637 [\\/*] | ?:[\\/]*)
7638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 lt_save_MAGIC_CMD="$MAGIC_CMD"
7642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7644 for ac_dir in $ac_dummy; do
7645 IFS="$lt_save_ifs"
7646 test -z "$ac_dir" && ac_dir=.
7647 if test -f $ac_dir/${ac_tool_prefix}file; then
7648 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7649 if test -n "$file_magic_test_file"; then
7650 case $deplibs_check_method in
7651 "file_magic "*)
7652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7655 $EGREP "$file_magic_regex" > /dev/null; then
7656 :
7657 else
7658 cat <<_LT_EOF 1>&2
7659
7660 *** Warning: the command libtool uses to detect shared libraries,
7661 *** $file_magic_cmd, produces output that libtool cannot recognize.
7662 *** The result is that libtool may fail to recognize shared libraries
7663 *** as such. This will affect the creation of libtool libraries that
7664 *** depend on shared libraries, but programs linked with such libtool
7665 *** libraries will work regardless of this problem. Nevertheless, you
7666 *** may want to report the problem to your system manager and/or to
7667 *** [email protected]
7668
7669 _LT_EOF
7670 fi ;;
7671 esac
7672 fi
7673 break
7674 fi
7675 done
7676 IFS="$lt_save_ifs"
7677 MAGIC_CMD="$lt_save_MAGIC_CMD"
7678 ;;
7679 esac
7680 fi
7681
7682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683 if test -n "$MAGIC_CMD"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7685 $as_echo "$MAGIC_CMD" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692
7693
7694
7695 if test -z "$lt_cv_path_MAGIC_CMD"; then
7696 if test -n "$ac_tool_prefix"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7698 $as_echo_n "checking for file... " >&6; }
7699 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 case $MAGIC_CMD in
7703 [\\/*] | ?:[\\/]*)
7704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705 ;;
7706 *)
7707 lt_save_MAGIC_CMD="$MAGIC_CMD"
7708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710 for ac_dir in $ac_dummy; do
7711 IFS="$lt_save_ifs"
7712 test -z "$ac_dir" && ac_dir=.
7713 if test -f $ac_dir/file; then
7714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7715 if test -n "$file_magic_test_file"; then
7716 case $deplibs_check_method in
7717 "file_magic "*)
7718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721 $EGREP "$file_magic_regex" > /dev/null; then
7722 :
7723 else
7724 cat <<_LT_EOF 1>&2
7725
7726 *** Warning: the command libtool uses to detect shared libraries,
7727 *** $file_magic_cmd, produces output that libtool cannot recognize.
7728 *** The result is that libtool may fail to recognize shared libraries
7729 *** as such. This will affect the creation of libtool libraries that
7730 *** depend on shared libraries, but programs linked with such libtool
7731 *** libraries will work regardless of this problem. Nevertheless, you
7732 *** may want to report the problem to your system manager and/or to
7733 *** [email protected]
7734
7735 _LT_EOF
7736 fi ;;
7737 esac
7738 fi
7739 break
7740 fi
7741 done
7742 IFS="$lt_save_ifs"
7743 MAGIC_CMD="$lt_save_MAGIC_CMD"
7744 ;;
7745 esac
7746 fi
7747
7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749 if test -n "$MAGIC_CMD"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7751 $as_echo "$MAGIC_CMD" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 else
7759 MAGIC_CMD=:
7760 fi
7761 fi
7762
7763 fi
7764 ;;
7765 esac
7766
7767 # Use C for the default configuration in the libtool script
7768
7769 lt_save_CC="$CC"
7770 ac_ext=c
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775
7776
7777 # Source file extension for C test sources.
7778 ac_ext=c
7779
7780 # Object file extension for compiled C test sources.
7781 objext=o
7782 objext=$objext
7783
7784 # Code to be used in simple compile tests
7785 lt_simple_compile_test_code="int some_variable = 0;"
7786
7787 # Code to be used in simple link tests
7788 lt_simple_link_test_code='int main(){return(0);}'
7789
7790
7791
7792
7793
7794
7795
7796 # If no C compiler was specified, use CC.
7797 LTCC=${LTCC-"$CC"}
7798
7799 # If no C compiler flags were specified, use CFLAGS.
7800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7801
7802 # Allow CC to be a program name with arguments.
7803 compiler=$CC
7804
7805 # Save the default compiler, since it gets overwritten when the other
7806 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7807 compiler_DEFAULT=$CC
7808
7809 # save warnings/boilerplate of simple test code
7810 ac_outfile=conftest.$ac_objext
7811 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7813 _lt_compiler_boilerplate=`cat conftest.err`
7814 $RM conftest*
7815
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_linker_boilerplate=`cat conftest.err`
7820 $RM -r conftest*
7821
7822
7823 if test -n "$compiler"; then
7824
7825 lt_prog_compiler_no_builtin_flag=
7826
7827 if test "$GCC" = yes; then
7828 case $cc_basename in
7829 nvcc*)
7830 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7831 *)
7832 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7833 esac
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7836 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7837 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 lt_cv_prog_compiler_rtti_exceptions=no
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="-fno-rtti -fno-exceptions"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>conftest.err)
7855 ac_status=$?
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
7861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_rtti_exceptions=yes
7865 fi
7866 fi
7867 $RM conftest*
7868
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7871 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7872
7873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7875 else
7876 :
7877 fi
7878
7879 fi
7880
7881
7882
7883
7884
7885
7886 lt_prog_compiler_wl=
7887 lt_prog_compiler_pic=
7888 lt_prog_compiler_static=
7889
7890
7891 if test "$GCC" = yes; then
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_static='-static'
7894
7895 case $host_os in
7896 aix*)
7897 # All AIX code is PIC.
7898 if test "$host_cpu" = ia64; then
7899 # AIX 5 now supports IA64 processor
7900 lt_prog_compiler_static='-Bstatic'
7901 fi
7902 ;;
7903
7904 amigaos*)
7905 case $host_cpu in
7906 powerpc)
7907 # see comment about AmigaOS4 .so support
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 m68k)
7911 # FIXME: we need at least 68020 code to build shared libraries, but
7912 # adding the `-m68020' flag to GCC prevents building anything better,
7913 # like `-m68040'.
7914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7915 ;;
7916 esac
7917 ;;
7918
7919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7920 # PIC is the default for these OSes.
7921 ;;
7922
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7927 # (--disable-auto-import) libraries
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 ;;
7930
7931 darwin* | rhapsody*)
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
7934 lt_prog_compiler_pic='-fno-common'
7935 ;;
7936
7937 haiku*)
7938 # PIC is the default for Haiku.
7939 # The "-static" flag exists, but is broken.
7940 lt_prog_compiler_static=
7941 ;;
7942
7943 hpux*)
7944 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7945 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7946 # sets the default TLS model and affects inlining.
7947 case $host_cpu in
7948 hppa*64*)
7949 # +Z the default
7950 ;;
7951 *)
7952 lt_prog_compiler_pic='-fPIC'
7953 ;;
7954 esac
7955 ;;
7956
7957 interix[3-9]*)
7958 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7959 # Instead, we relocate shared libraries at runtime.
7960 ;;
7961
7962 msdosdjgpp*)
7963 # Just because we use GCC doesn't mean we suddenly get shared libraries
7964 # on systems that don't support them.
7965 lt_prog_compiler_can_build_shared=no
7966 enable_shared=no
7967 ;;
7968
7969 *nto* | *qnx*)
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7971 # it will coredump.
7972 lt_prog_compiler_pic='-fPIC -shared'
7973 ;;
7974
7975 sysv4*MP*)
7976 if test -d /usr/nec; then
7977 lt_prog_compiler_pic=-Kconform_pic
7978 fi
7979 ;;
7980
7981 *)
7982 lt_prog_compiler_pic='-fPIC'
7983 ;;
7984 esac
7985
7986 case $cc_basename in
7987 nvcc*) # Cuda Compiler Driver 2.2
7988 lt_prog_compiler_wl='-Xlinker '
7989 lt_prog_compiler_pic='-Xcompiler -fPIC'
7990 ;;
7991 esac
7992 else
7993 # PORTME Check for flag to pass linker flags through the system compiler.
7994 case $host_os in
7995 aix*)
7996 lt_prog_compiler_wl='-Wl,'
7997 if test "$host_cpu" = ia64; then
7998 # AIX 5 now supports IA64 processor
7999 lt_prog_compiler_static='-Bstatic'
8000 else
8001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8002 fi
8003 ;;
8004
8005 mingw* | cygwin* | pw32* | os2* | cegcc*)
8006 # This hack is so that the source file can tell whether it is being
8007 # built for inclusion in a dll (and should export symbols for example).
8008 lt_prog_compiler_pic='-DDLL_EXPORT'
8009 ;;
8010
8011 hpux9* | hpux10* | hpux11*)
8012 lt_prog_compiler_wl='-Wl,'
8013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8014 # not for PA HP-UX.
8015 case $host_cpu in
8016 hppa*64*|ia64*)
8017 # +Z the default
8018 ;;
8019 *)
8020 lt_prog_compiler_pic='+Z'
8021 ;;
8022 esac
8023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8024 lt_prog_compiler_static='${wl}-a ${wl}archive'
8025 ;;
8026
8027 irix5* | irix6* | nonstopux*)
8028 lt_prog_compiler_wl='-Wl,'
8029 # PIC (with -KPIC) is the default.
8030 lt_prog_compiler_static='-non_shared'
8031 ;;
8032
8033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8034 case $cc_basename in
8035 # old Intel for x86_64 which still supported -KPIC.
8036 ecc*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-static'
8040 ;;
8041 # icc used to be incompatible with GCC.
8042 # ICC 10 doesn't accept -KPIC any more.
8043 icc* | ifort*)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fPIC'
8046 lt_prog_compiler_static='-static'
8047 ;;
8048 # Lahey Fortran 8.1.
8049 lf95*)
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='--shared'
8052 lt_prog_compiler_static='--static'
8053 ;;
8054 nagfor*)
8055 # NAG Fortran compiler
8056 lt_prog_compiler_wl='-Wl,-Wl,,'
8057 lt_prog_compiler_pic='-PIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 ;;
8060 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8061 # Portland Group compilers (*not* the Pentium gcc compiler,
8062 # which looks to be a dead project)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-fpic'
8065 lt_prog_compiler_static='-Bstatic'
8066 ;;
8067 ccc*)
8068 lt_prog_compiler_wl='-Wl,'
8069 # All Alpha code is PIC.
8070 lt_prog_compiler_static='-non_shared'
8071 ;;
8072 xl* | bgxl* | bgf* | mpixl*)
8073 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-qpic'
8076 lt_prog_compiler_static='-qstaticlink'
8077 ;;
8078 *)
8079 case `$CC -V 2>&1 | sed 5q` in
8080 *Sun\ F* | *Sun*Fortran*)
8081 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8082 lt_prog_compiler_pic='-KPIC'
8083 lt_prog_compiler_static='-Bstatic'
8084 lt_prog_compiler_wl=''
8085 ;;
8086 *Sun\ C*)
8087 # Sun C 5.9
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-Bstatic'
8090 lt_prog_compiler_wl='-Wl,'
8091 ;;
8092 esac
8093 ;;
8094 esac
8095 ;;
8096
8097 newsos6)
8098 lt_prog_compiler_pic='-KPIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 ;;
8101
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
8106 ;;
8107
8108 osf3* | osf4* | osf5*)
8109 lt_prog_compiler_wl='-Wl,'
8110 # All OSF/1 code is PIC.
8111 lt_prog_compiler_static='-non_shared'
8112 ;;
8113
8114 rdos*)
8115 lt_prog_compiler_static='-non_shared'
8116 ;;
8117
8118 solaris*)
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 case $cc_basename in
8122 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8123 lt_prog_compiler_wl='-Qoption ld ';;
8124 *)
8125 lt_prog_compiler_wl='-Wl,';;
8126 esac
8127 ;;
8128
8129 sunos4*)
8130 lt_prog_compiler_wl='-Qoption ld '
8131 lt_prog_compiler_pic='-PIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 ;;
8134
8135 sysv4 | sysv4.2uw2* | sysv4.3*)
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 ;;
8140
8141 sysv4*MP*)
8142 if test -d /usr/nec ;then
8143 lt_prog_compiler_pic='-Kconform_pic'
8144 lt_prog_compiler_static='-Bstatic'
8145 fi
8146 ;;
8147
8148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153
8154 unicos*)
8155 lt_prog_compiler_wl='-Wl,'
8156 lt_prog_compiler_can_build_shared=no
8157 ;;
8158
8159 uts4*)
8160 lt_prog_compiler_pic='-pic'
8161 lt_prog_compiler_static='-Bstatic'
8162 ;;
8163
8164 *)
8165 lt_prog_compiler_can_build_shared=no
8166 ;;
8167 esac
8168 fi
8169
8170 case $host_os in
8171 # For platforms which do not support PIC, -DPIC is meaningless:
8172 *djgpp*)
8173 lt_prog_compiler_pic=
8174 ;;
8175 *)
8176 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8177 ;;
8178 esac
8179
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8181 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8182 if ${lt_cv_prog_compiler_pic+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8188 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8189 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8190
8191 #
8192 # Check to make sure the PIC flag actually works.
8193 #
8194 if test -n "$lt_prog_compiler_pic"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8196 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8197 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 lt_cv_prog_compiler_pic_works=no
8201 ac_outfile=conftest.$ac_objext
8202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8204 # Insert the option either (1) after the last *FLAGS variable, or
8205 # (2) before a word containing "conftest.", or (3) at the end.
8206 # Note that $ac_compile itself does not contain backslashes and begins
8207 # with a dollar sign (not a hyphen), so the echo should work correctly.
8208 # The option is referenced via a variable to avoid confusing sed.
8209 lt_compile=`echo "$ac_compile" | $SED \
8210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212 -e 's:$: $lt_compiler_flag:'`
8213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8214 (eval "$lt_compile" 2>conftest.err)
8215 ac_status=$?
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 if (exit $ac_status) && test -s "$ac_outfile"; then
8219 # The compiler can only warn and ignore the option if not recognized
8220 # So say no if there are warnings other than the usual output.
8221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8224 lt_cv_prog_compiler_pic_works=yes
8225 fi
8226 fi
8227 $RM conftest*
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8231 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8232
8233 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8234 case $lt_prog_compiler_pic in
8235 "" | " "*) ;;
8236 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8237 esac
8238 else
8239 lt_prog_compiler_pic=
8240 lt_prog_compiler_can_build_shared=no
8241 fi
8242
8243 fi
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255 #
8256 # Check to make sure the static flag actually works.
8257 #
8258 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8260 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8261 if ${lt_cv_prog_compiler_static_works+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 lt_cv_prog_compiler_static_works=no
8265 save_LDFLAGS="$LDFLAGS"
8266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8269 # The linker can only warn and ignore the option if not recognized
8270 # So say no if there are warnings
8271 if test -s conftest.err; then
8272 # Append any errors to the config.log.
8273 cat conftest.err 1>&5
8274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8276 if diff conftest.exp conftest.er2 >/dev/null; then
8277 lt_cv_prog_compiler_static_works=yes
8278 fi
8279 else
8280 lt_cv_prog_compiler_static_works=yes
8281 fi
8282 fi
8283 $RM -r conftest*
8284 LDFLAGS="$save_LDFLAGS"
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8288 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8289
8290 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8291 :
8292 else
8293 lt_prog_compiler_static=
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8304 if ${lt_cv_prog_compiler_c_o+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 lt_cv_prog_compiler_c_o=no
8308 $RM -r conftest 2>/dev/null
8309 mkdir conftest
8310 cd conftest
8311 mkdir out
8312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8313
8314 lt_compiler_flag="-o out/conftest2.$ac_objext"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 lt_compile=`echo "$ac_compile" | $SED \
8320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8322 -e 's:$: $lt_compiler_flag:'`
8323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8324 (eval "$lt_compile" 2>out/conftest.err)
8325 ac_status=$?
8326 cat out/conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8329 then
8330 # The compiler can only warn and ignore the option if not recognized
8331 # So say no if there are warnings
8332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_c_o=yes
8336 fi
8337 fi
8338 chmod u+w . 2>&5
8339 $RM conftest*
8340 # SGI C++ compiler will create directory out/ii_files/ for
8341 # template instantiation
8342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8343 $RM out/* && rmdir out
8344 cd ..
8345 $RM -r conftest
8346 $RM conftest*
8347
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8351
8352
8353
8354
8355
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8359 if ${lt_cv_prog_compiler_c_o+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 lt_cv_prog_compiler_c_o=no
8363 $RM -r conftest 2>/dev/null
8364 mkdir conftest
8365 cd conftest
8366 mkdir out
8367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368
8369 lt_compiler_flag="-o out/conftest2.$ac_objext"
8370 # Insert the option either (1) after the last *FLAGS variable, or
8371 # (2) before a word containing "conftest.", or (3) at the end.
8372 # Note that $ac_compile itself does not contain backslashes and begins
8373 # with a dollar sign (not a hyphen), so the echo should work correctly.
8374 lt_compile=`echo "$ac_compile" | $SED \
8375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377 -e 's:$: $lt_compiler_flag:'`
8378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379 (eval "$lt_compile" 2>out/conftest.err)
8380 ac_status=$?
8381 cat out/conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8384 then
8385 # The compiler can only warn and ignore the option if not recognized
8386 # So say no if there are warnings
8387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8390 lt_cv_prog_compiler_c_o=yes
8391 fi
8392 fi
8393 chmod u+w . 2>&5
8394 $RM conftest*
8395 # SGI C++ compiler will create directory out/ii_files/ for
8396 # template instantiation
8397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8398 $RM out/* && rmdir out
8399 cd ..
8400 $RM -r conftest
8401 $RM conftest*
8402
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8406
8407
8408
8409
8410 hard_links="nottested"
8411 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8412 # do not overwrite the value of need_locks provided by the user
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8414 $as_echo_n "checking if we can lock with hard links... " >&6; }
8415 hard_links=yes
8416 $RM conftest*
8417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8418 touch conftest.a
8419 ln conftest.a conftest.b 2>&5 || hard_links=no
8420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8422 $as_echo "$hard_links" >&6; }
8423 if test "$hard_links" = no; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8425 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8426 need_locks=warn
8427 fi
8428 else
8429 need_locks=no
8430 fi
8431
8432
8433
8434
8435
8436
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8438 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8439
8440 runpath_var=
8441 allow_undefined_flag=
8442 always_export_symbols=no
8443 archive_cmds=
8444 archive_expsym_cmds=
8445 compiler_needs_object=no
8446 enable_shared_with_static_runtimes=no
8447 export_dynamic_flag_spec=
8448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8449 hardcode_automatic=no
8450 hardcode_direct=no
8451 hardcode_direct_absolute=no
8452 hardcode_libdir_flag_spec=
8453 hardcode_libdir_flag_spec_ld=
8454 hardcode_libdir_separator=
8455 hardcode_minus_L=no
8456 hardcode_shlibpath_var=unsupported
8457 inherit_rpath=no
8458 link_all_deplibs=unknown
8459 module_cmds=
8460 module_expsym_cmds=
8461 old_archive_from_new_cmds=
8462 old_archive_from_expsyms_cmds=
8463 thread_safe_flag_spec=
8464 whole_archive_flag_spec=
8465 # include_expsyms should be a list of space-separated symbols to be *always*
8466 # included in the symbol list
8467 include_expsyms=
8468 # exclude_expsyms can be an extended regexp of symbols to exclude
8469 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8470 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8471 # as well as any symbol that contains `d'.
8472 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8474 # platforms (ab)use it in PIC code, but their linkers get confused if
8475 # the symbol is explicitly referenced. Since portable code cannot
8476 # rely on this symbol name, it's probably fine to never include it in
8477 # preloaded symbol tables.
8478 # Exclude shared library initialization/finalization symbols.
8479 extract_expsyms_cmds=
8480
8481 case $host_os in
8482 cygwin* | mingw* | pw32* | cegcc*)
8483 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8484 # When not using gcc, we currently assume that we are using
8485 # Microsoft Visual C++.
8486 if test "$GCC" != yes; then
8487 with_gnu_ld=no
8488 fi
8489 ;;
8490 interix*)
8491 # we just hope/assume this is gcc and not c89 (= MSVC++)
8492 with_gnu_ld=yes
8493 ;;
8494 openbsd*)
8495 with_gnu_ld=no
8496 ;;
8497 esac
8498
8499 ld_shlibs=yes
8500
8501 # On some targets, GNU ld is compatible enough with the native linker
8502 # that we're better off using the native interface for both.
8503 lt_use_gnu_ld_interface=no
8504 if test "$with_gnu_ld" = yes; then
8505 case $host_os in
8506 aix*)
8507 # The AIX port of GNU ld has always aspired to compatibility
8508 # with the native linker. However, as the warning in the GNU ld
8509 # block says, versions before 2.19.5* couldn't really create working
8510 # shared libraries, regardless of the interface used.
8511 case `$LD -v 2>&1` in
8512 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8513 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8514 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8515 *)
8516 lt_use_gnu_ld_interface=yes
8517 ;;
8518 esac
8519 ;;
8520 *)
8521 lt_use_gnu_ld_interface=yes
8522 ;;
8523 esac
8524 fi
8525
8526 if test "$lt_use_gnu_ld_interface" = yes; then
8527 # If archive_cmds runs LD, not CC, wlarc should be empty
8528 wlarc='${wl}'
8529
8530 # Set some defaults for GNU ld with shared library support. These
8531 # are reset later if shared libraries are not supported. Putting them
8532 # here allows them to be overridden if necessary.
8533 runpath_var=LD_RUN_PATH
8534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8535 export_dynamic_flag_spec='${wl}--export-dynamic'
8536 # ancient GNU ld didn't support --whole-archive et. al.
8537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8538 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8539 else
8540 whole_archive_flag_spec=
8541 fi
8542 supports_anon_versioning=no
8543 case `$LD -v 2>&1` in
8544 *GNU\ gold*) supports_anon_versioning=yes ;;
8545 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8546 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8547 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8548 *\ 2.11.*) ;; # other 2.11 versions
8549 *) supports_anon_versioning=yes ;;
8550 esac
8551
8552 # See if GNU ld supports shared libraries.
8553 case $host_os in
8554 aix[3-9]*)
8555 # On AIX/PPC, the GNU linker is very broken
8556 if test "$host_cpu" != ia64; then
8557 ld_shlibs=no
8558 cat <<_LT_EOF 1>&2
8559
8560 *** Warning: the GNU linker, at least up to release 2.19, is reported
8561 *** to be unable to reliably create shared libraries on AIX.
8562 *** Therefore, libtool is disabling shared libraries support. If you
8563 *** really care for shared libraries, you may want to install binutils
8564 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8565 *** You will then need to restart the configuration process.
8566
8567 _LT_EOF
8568 fi
8569 ;;
8570
8571 amigaos*)
8572 case $host_cpu in
8573 powerpc)
8574 # see comment about AmigaOS4 .so support
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds=''
8577 ;;
8578 m68k)
8579 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8580 hardcode_libdir_flag_spec='-L$libdir'
8581 hardcode_minus_L=yes
8582 ;;
8583 esac
8584 ;;
8585
8586 beos*)
8587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8588 allow_undefined_flag=unsupported
8589 # Joseph Beckenbach <[email protected]> says some releases of gcc
8590 # support --undefined. This deserves some investigation. FIXME
8591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 else
8593 ld_shlibs=no
8594 fi
8595 ;;
8596
8597 cygwin* | mingw* | pw32* | cegcc*)
8598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8599 # as there is no search path for DLLs.
8600 hardcode_libdir_flag_spec='-L$libdir'
8601 export_dynamic_flag_spec='${wl}--export-all-symbols'
8602 allow_undefined_flag=unsupported
8603 always_export_symbols=no
8604 enable_shared_with_static_runtimes=yes
8605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8606 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8607
8608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610 # If the export-symbols file already is a .def file (1st line
8611 # is EXPORTS), use it as is; otherwise, prepend...
8612 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8613 cp $export_symbols $output_objdir/$soname.def;
8614 else
8615 echo EXPORTS > $output_objdir/$soname.def;
8616 cat $export_symbols >> $output_objdir/$soname.def;
8617 fi~
8618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623
8624 haiku*)
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626 link_all_deplibs=yes
8627 ;;
8628
8629 interix[3-9]*)
8630 hardcode_direct=no
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635 # Instead, shared libraries are loaded at an image base (0x10000000 by
8636 # default) and relocated if they conflict, which is a slow very memory
8637 # consuming and fragmenting process. To avoid this, we pick a random,
8638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8642 ;;
8643
8644 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8645 tmp_diet=no
8646 if test "$host_os" = linux-dietlibc; then
8647 case $cc_basename in
8648 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8649 esac
8650 fi
8651 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652 && test "$tmp_diet" = no
8653 then
8654 tmp_addflag=' $pic_flag'
8655 tmp_sharedflag='-shared'
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8659 tmp_addflag=' $pic_flag'
8660 ;;
8661 pgf77* | pgf90* | pgf95* | pgfortran*)
8662 # Portland Group f77 and f90 compilers
8663 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8664 tmp_addflag=' $pic_flag -Mnomain' ;;
8665 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8666 tmp_addflag=' -i_dynamic' ;;
8667 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8668 tmp_addflag=' -i_dynamic -nofor_main' ;;
8669 ifc* | ifort*) # Intel Fortran compiler
8670 tmp_addflag=' -nofor_main' ;;
8671 lf95*) # Lahey Fortran 8.1
8672 whole_archive_flag_spec=
8673 tmp_sharedflag='--shared' ;;
8674 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8675 tmp_sharedflag='-qmkshrobj'
8676 tmp_addflag= ;;
8677 nvcc*) # Cuda Compiler Driver 2.2
8678 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8679 compiler_needs_object=yes
8680 ;;
8681 esac
8682 case `$CC -V 2>&1 | sed 5q` in
8683 *Sun\ C*) # Sun C 5.9
8684 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8685 compiler_needs_object=yes
8686 tmp_sharedflag='-G' ;;
8687 *Sun\ F*) # Sun Fortran 8.3
8688 tmp_sharedflag='-G' ;;
8689 esac
8690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691
8692 if test "x$supports_anon_versioning" = xyes; then
8693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8695 echo "local: *; };" >> $output_objdir/$libname.ver~
8696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8697 fi
8698
8699 case $cc_basename in
8700 xlf* | bgf* | bgxlf* | mpixlf*)
8701 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8702 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8703 hardcode_libdir_flag_spec=
8704 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8705 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8706 if test "x$supports_anon_versioning" = xyes; then
8707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8709 echo "local: *; };" >> $output_objdir/$libname.ver~
8710 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8711 fi
8712 ;;
8713 esac
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718
8719 netbsd*)
8720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8722 wlarc=
8723 else
8724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726 fi
8727 ;;
8728
8729 solaris*)
8730 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8731 ld_shlibs=no
8732 cat <<_LT_EOF 1>&2
8733
8734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8735 *** create shared libraries on Solaris systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.9.1 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745 else
8746 ld_shlibs=no
8747 fi
8748 ;;
8749
8750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8751 case `$LD -v 2>&1` in
8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8753 ld_shlibs=no
8754 cat <<_LT_EOF 1>&2
8755
8756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8757 *** reliably create shared libraries on SCO systems. Therefore, libtool
8758 *** is disabling shared libraries support. We urge you to upgrade GNU
8759 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8760 *** your PATH or compiler configuration so that the native linker is
8761 *** used, and then restart.
8762
8763 _LT_EOF
8764 ;;
8765 *)
8766 # For security reasons, it is highly recommended that you always
8767 # use absolute paths for naming shared libraries, and exclude the
8768 # DT_RUNPATH tag from executables and libraries. But doing so
8769 # requires that you compile everything twice, which is a pain.
8770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8774 else
8775 ld_shlibs=no
8776 fi
8777 ;;
8778 esac
8779 ;;
8780
8781 sunos4*)
8782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783 wlarc=
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 *)
8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792 else
8793 ld_shlibs=no
8794 fi
8795 ;;
8796 esac
8797
8798 if test "$ld_shlibs" = no; then
8799 runpath_var=
8800 hardcode_libdir_flag_spec=
8801 export_dynamic_flag_spec=
8802 whole_archive_flag_spec=
8803 fi
8804 else
8805 # PORTME fill in a description of your system's linker (not GNU ld)
8806 case $host_os in
8807 aix3*)
8808 allow_undefined_flag=unsupported
8809 always_export_symbols=yes
8810 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8811 # Note: this linker hardcodes the directories in LIBPATH if there
8812 # are no directories specified by -L.
8813 hardcode_minus_L=yes
8814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8815 # Neither direct hardcoding nor static linking is supported with a
8816 # broken collect2.
8817 hardcode_direct=unsupported
8818 fi
8819 ;;
8820
8821 aix[4-9]*)
8822 if test "$host_cpu" = ia64; then
8823 # On IA64, the linker does run time linking by default, so we don't
8824 # have to do anything special.
8825 aix_use_runtimelinking=no
8826 exp_sym_flag='-Bexport'
8827 no_entry_flag=""
8828 else
8829 # If we're using GNU nm, then we don't want the "-C" option.
8830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8831 # Also, AIX nm treats weak defined symbols like other global
8832 # defined symbols, whereas GNU nm marks them as "W".
8833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8834 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8835 else
8836 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8837 fi
8838 aix_use_runtimelinking=no
8839
8840 # Test if we are trying to use run time linking or normal
8841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8842 # need to do runtime linking.
8843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8844 for ld_flag in $LDFLAGS; do
8845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8846 aix_use_runtimelinking=yes
8847 break
8848 fi
8849 done
8850 ;;
8851 esac
8852
8853 exp_sym_flag='-bexport'
8854 no_entry_flag='-bnoentry'
8855 fi
8856
8857 # When large executables or shared objects are built, AIX ld can
8858 # have problems creating the table of contents. If linking a library
8859 # or program results in "error TOC overflow" add -mminimal-toc to
8860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8862
8863 archive_cmds=''
8864 hardcode_direct=yes
8865 hardcode_direct_absolute=yes
8866 hardcode_libdir_separator=':'
8867 link_all_deplibs=yes
8868 file_list_spec='${wl}-f,'
8869
8870 if test "$GCC" = yes; then
8871 case $host_os in aix4.[012]|aix4.[012].*)
8872 # We only want to do this on AIX 4.2 and lower, the check
8873 # below for broken collect2 doesn't work under 4.3+
8874 collect2name=`${CC} -print-prog-name=collect2`
8875 if test -f "$collect2name" &&
8876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8877 then
8878 # We have reworked collect2
8879 :
8880 else
8881 # We have old collect2
8882 hardcode_direct=unsupported
8883 # It fails to find uninstalled libraries when the uninstalled
8884 # path is not listed in the libpath. Setting hardcode_minus_L
8885 # to unsupported forces relinking
8886 hardcode_minus_L=yes
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_libdir_separator=
8889 fi
8890 ;;
8891 esac
8892 shared_flag='-shared'
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag="$shared_flag "'${wl}-G'
8895 fi
8896 else
8897 # not using gcc
8898 if test "$host_cpu" = ia64; then
8899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8900 # chokes on -Wl,-G. The following line is correct:
8901 shared_flag='-G'
8902 else
8903 if test "$aix_use_runtimelinking" = yes; then
8904 shared_flag='${wl}-G'
8905 else
8906 shared_flag='${wl}-bM:SRE'
8907 fi
8908 fi
8909 fi
8910
8911 export_dynamic_flag_spec='${wl}-bexpall'
8912 # It seems that -bexpall does not export symbols beginning with
8913 # underscore (_), so it is better to generate a list of symbols to export.
8914 always_export_symbols=yes
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # Warning - without using the other runtime loading flags (-brtl),
8917 # -berok will link without error, but may produce a broken library.
8918 allow_undefined_flag='-berok'
8919 # Determine the default libpath from the value encoded in an
8920 # empty executable.
8921 if test "${lt_cv_aix_libpath+set}" = set; then
8922 aix_libpath=$lt_cv_aix_libpath
8923 else
8924 if ${lt_cv_aix_libpath_+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929
8930 int
8931 main ()
8932 {
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"; then :
8939
8940 lt_aix_libpath_sed='
8941 /Import File Strings/,/^$/ {
8942 /^0/ {
8943 s/^0 *\([^ ]*\) *$/\1/
8944 p
8945 }
8946 }'
8947 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 # Check for a 64-bit object if we didn't find anything.
8949 if test -z "$lt_cv_aix_libpath_"; then
8950 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 fi
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 if test -z "$lt_cv_aix_libpath_"; then
8956 lt_cv_aix_libpath_="/usr/lib:/lib"
8957 fi
8958
8959 fi
8960
8961 aix_libpath=$lt_cv_aix_libpath_
8962 fi
8963
8964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8965 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8966 else
8967 if test "$host_cpu" = ia64; then
8968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8969 allow_undefined_flag="-z nodefs"
8970 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8971 else
8972 # Determine the default libpath from the value encoded in an
8973 # empty executable.
8974 if test "${lt_cv_aix_libpath+set}" = set; then
8975 aix_libpath=$lt_cv_aix_libpath
8976 else
8977 if ${lt_cv_aix_libpath_+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982
8983 int
8984 main ()
8985 {
8986
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 if ac_fn_c_try_link "$LINENO"; then :
8992
8993 lt_aix_libpath_sed='
8994 /Import File Strings/,/^$/ {
8995 /^0/ {
8996 s/^0 *\([^ ]*\) *$/\1/
8997 p
8998 }
8999 }'
9000 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001 # Check for a 64-bit object if we didn't find anything.
9002 if test -z "$lt_cv_aix_libpath_"; then
9003 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004 fi
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 if test -z "$lt_cv_aix_libpath_"; then
9009 lt_cv_aix_libpath_="/usr/lib:/lib"
9010 fi
9011
9012 fi
9013
9014 aix_libpath=$lt_cv_aix_libpath_
9015 fi
9016
9017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9018 # Warning - without using the other run time loading flags,
9019 # -berok will link without error, but may produce a broken library.
9020 no_undefined_flag=' ${wl}-bernotok'
9021 allow_undefined_flag=' ${wl}-berok'
9022 if test "$with_gnu_ld" = yes; then
9023 # We only use this code for GNU lds that support --whole-archive.
9024 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9025 else
9026 # Exported symbols can be pulled into shared objects from archives
9027 whole_archive_flag_spec='$convenience'
9028 fi
9029 archive_cmds_need_lc=yes
9030 # This is similar to how AIX traditionally builds its shared libraries.
9031 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9032 fi
9033 fi
9034 ;;
9035
9036 amigaos*)
9037 case $host_cpu in
9038 powerpc)
9039 # see comment about AmigaOS4 .so support
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds=''
9042 ;;
9043 m68k)
9044 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9045 hardcode_libdir_flag_spec='-L$libdir'
9046 hardcode_minus_L=yes
9047 ;;
9048 esac
9049 ;;
9050
9051 bsdi[45]*)
9052 export_dynamic_flag_spec=-rdynamic
9053 ;;
9054
9055 cygwin* | mingw* | pw32* | cegcc*)
9056 # When not using gcc, we currently assume that we are using
9057 # Microsoft Visual C++.
9058 # hardcode_libdir_flag_spec is actually meaningless, as there is
9059 # no search path for DLLs.
9060 case $cc_basename in
9061 cl*)
9062 # Native MSVC
9063 hardcode_libdir_flag_spec=' '
9064 allow_undefined_flag=unsupported
9065 always_export_symbols=yes
9066 file_list_spec='@'
9067 # Tell ltmain to make .lib files, not .a files.
9068 libext=lib
9069 # Tell ltmain to make .dll files, not .so files.
9070 shrext_cmds=".dll"
9071 # FIXME: Setting linknames here is a bad hack.
9072 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9073 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9074 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9075 else
9076 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9077 fi~
9078 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9079 linknames='
9080 # The linker will not automatically build a static lib if we build a DLL.
9081 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9082 enable_shared_with_static_runtimes=yes
9083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9084 # Don't use ranlib
9085 old_postinstall_cmds='chmod 644 $oldlib'
9086 postlink_cmds='lt_outputfile="@OUTPUT@"~
9087 lt_tool_outputfile="@TOOL_OUTPUT@"~
9088 case $lt_outputfile in
9089 *.exe|*.EXE) ;;
9090 *)
9091 lt_outputfile="$lt_outputfile.exe"
9092 lt_tool_outputfile="$lt_tool_outputfile.exe"
9093 ;;
9094 esac~
9095 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9096 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9097 $RM "$lt_outputfile.manifest";
9098 fi'
9099 ;;
9100 *)
9101 # Assume MSVC wrapper
9102 hardcode_libdir_flag_spec=' '
9103 allow_undefined_flag=unsupported
9104 # Tell ltmain to make .lib files, not .a files.
9105 libext=lib
9106 # Tell ltmain to make .dll files, not .so files.
9107 shrext_cmds=".dll"
9108 # FIXME: Setting linknames here is a bad hack.
9109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9110 # The linker will automatically build a .lib file if we build a DLL.
9111 old_archive_from_new_cmds='true'
9112 # FIXME: Should let the user specify the lib program.
9113 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9114 enable_shared_with_static_runtimes=yes
9115 ;;
9116 esac
9117 ;;
9118
9119 darwin* | rhapsody*)
9120
9121
9122 archive_cmds_need_lc=no
9123 hardcode_direct=no
9124 hardcode_automatic=yes
9125 hardcode_shlibpath_var=unsupported
9126 if test "$lt_cv_ld_force_load" = "yes"; then
9127 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9128 else
9129 whole_archive_flag_spec=''
9130 fi
9131 link_all_deplibs=yes
9132 allow_undefined_flag="$_lt_dar_allow_undefined"
9133 case $cc_basename in
9134 ifort*) _lt_dar_can_shared=yes ;;
9135 *) _lt_dar_can_shared=$GCC ;;
9136 esac
9137 if test "$_lt_dar_can_shared" = "yes"; then
9138 output_verbose_link_cmd=func_echo_all
9139 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9140 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9141 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9142 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9143
9144 else
9145 ld_shlibs=no
9146 fi
9147
9148 ;;
9149
9150 dgux*)
9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 hardcode_shlibpath_var=no
9154 ;;
9155
9156 freebsd1*)
9157 ld_shlibs=no
9158 ;;
9159
9160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9161 # support. Future versions do this automatically, but an explicit c++rt0.o
9162 # does not break anything, and helps significantly (at the cost of a little
9163 # extra space).
9164 freebsd2.2*)
9165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9169 ;;
9170
9171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9172 freebsd2*)
9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_direct=yes
9175 hardcode_minus_L=yes
9176 hardcode_shlibpath_var=no
9177 ;;
9178
9179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9180 freebsd* | dragonfly*)
9181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9182 hardcode_libdir_flag_spec='-R$libdir'
9183 hardcode_direct=yes
9184 hardcode_shlibpath_var=no
9185 ;;
9186
9187 hpux9*)
9188 if test "$GCC" = yes; then
9189 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9190 else
9191 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9192 fi
9193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9194 hardcode_libdir_separator=:
9195 hardcode_direct=yes
9196
9197 # hardcode_minus_L: Not really in the search PATH,
9198 # but as the default location of the library.
9199 hardcode_minus_L=yes
9200 export_dynamic_flag_spec='${wl}-E'
9201 ;;
9202
9203 hpux10*)
9204 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9205 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9206 else
9207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9208 fi
9209 if test "$with_gnu_ld" = no; then
9210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9211 hardcode_libdir_flag_spec_ld='+b $libdir'
9212 hardcode_libdir_separator=:
9213 hardcode_direct=yes
9214 hardcode_direct_absolute=yes
9215 export_dynamic_flag_spec='${wl}-E'
9216 # hardcode_minus_L: Not really in the search PATH,
9217 # but as the default location of the library.
9218 hardcode_minus_L=yes
9219 fi
9220 ;;
9221
9222 hpux11*)
9223 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9224 case $host_cpu in
9225 hppa*64*)
9226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227 ;;
9228 ia64*)
9229 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9230 ;;
9231 *)
9232 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233 ;;
9234 esac
9235 else
9236 case $host_cpu in
9237 hppa*64*)
9238 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 ;;
9240 ia64*)
9241 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9242 ;;
9243 *)
9244
9245 # Older versions of the 11.00 compiler do not understand -b yet
9246 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9248 $as_echo_n "checking if $CC understands -b... " >&6; }
9249 if ${lt_cv_prog_compiler__b+:} false; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 lt_cv_prog_compiler__b=no
9253 save_LDFLAGS="$LDFLAGS"
9254 LDFLAGS="$LDFLAGS -b"
9255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9257 # The linker can only warn and ignore the option if not recognized
9258 # So say no if there are warnings
9259 if test -s conftest.err; then
9260 # Append any errors to the config.log.
9261 cat conftest.err 1>&5
9262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264 if diff conftest.exp conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler__b=yes
9266 fi
9267 else
9268 lt_cv_prog_compiler__b=yes
9269 fi
9270 fi
9271 $RM -r conftest*
9272 LDFLAGS="$save_LDFLAGS"
9273
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9276 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9277
9278 if test x"$lt_cv_prog_compiler__b" = xyes; then
9279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280 else
9281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9282 fi
9283
9284 ;;
9285 esac
9286 fi
9287 if test "$with_gnu_ld" = no; then
9288 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290
9291 case $host_cpu in
9292 hppa*64*|ia64*)
9293 hardcode_direct=no
9294 hardcode_shlibpath_var=no
9295 ;;
9296 *)
9297 hardcode_direct=yes
9298 hardcode_direct_absolute=yes
9299 export_dynamic_flag_spec='${wl}-E'
9300
9301 # hardcode_minus_L: Not really in the search PATH,
9302 # but as the default location of the library.
9303 hardcode_minus_L=yes
9304 ;;
9305 esac
9306 fi
9307 ;;
9308
9309 irix5* | irix6* | nonstopux*)
9310 if test "$GCC" = yes; then
9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9312 # Try to use the -exported_symbol ld option, if it does not
9313 # work, assume that -exports_file does not work either and
9314 # implicitly export all symbols.
9315 # This should be the same for all languages, so no per-tag cache variable.
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9317 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9318 if ${lt_cv_irix_exported_symbol+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 save_LDFLAGS="$LDFLAGS"
9322 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int foo (void) { return 0; }
9326 _ACEOF
9327 if ac_fn_c_try_link "$LINENO"; then :
9328 lt_cv_irix_exported_symbol=yes
9329 else
9330 lt_cv_irix_exported_symbol=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 LDFLAGS="$save_LDFLAGS"
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9337 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9338 if test "$lt_cv_irix_exported_symbol" = yes; then
9339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9340 fi
9341 else
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9344 fi
9345 archive_cmds_need_lc='no'
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 hardcode_libdir_separator=:
9348 inherit_rpath=yes
9349 link_all_deplibs=yes
9350 ;;
9351
9352 netbsd*)
9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9355 else
9356 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9357 fi
9358 hardcode_libdir_flag_spec='-R$libdir'
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 newsos6)
9364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365 hardcode_direct=yes
9366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367 hardcode_libdir_separator=:
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 *nto* | *qnx*)
9372 ;;
9373
9374 openbsd*)
9375 if test -f /usr/libexec/ld.so; then
9376 hardcode_direct=yes
9377 hardcode_shlibpath_var=no
9378 hardcode_direct_absolute=yes
9379 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383 export_dynamic_flag_spec='${wl}-E'
9384 else
9385 case $host_os in
9386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 ;;
9390 *)
9391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393 ;;
9394 esac
9395 fi
9396 else
9397 ld_shlibs=no
9398 fi
9399 ;;
9400
9401 os2*)
9402 hardcode_libdir_flag_spec='-L$libdir'
9403 hardcode_minus_L=yes
9404 allow_undefined_flag=unsupported
9405 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9406 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9407 ;;
9408
9409 osf3*)
9410 if test "$GCC" = yes; then
9411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9412 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9413 else
9414 allow_undefined_flag=' -expect_unresolved \*'
9415 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9416 fi
9417 archive_cmds_need_lc='no'
9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 hardcode_libdir_separator=:
9420 ;;
9421
9422 osf4* | osf5*) # as osf3* with the addition of -msym flag
9423 if test "$GCC" = yes; then
9424 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9425 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 else
9428 allow_undefined_flag=' -expect_unresolved \*'
9429 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9430 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9431 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9432
9433 # Both c and cxx compiler support -rpath directly
9434 hardcode_libdir_flag_spec='-rpath $libdir'
9435 fi
9436 archive_cmds_need_lc='no'
9437 hardcode_libdir_separator=:
9438 ;;
9439
9440 solaris*)
9441 no_undefined_flag=' -z defs'
9442 if test "$GCC" = yes; then
9443 wlarc='${wl}'
9444 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9446 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9447 else
9448 case `$CC -V 2>&1` in
9449 *"Compilers 5.0"*)
9450 wlarc=''
9451 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9453 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9454 ;;
9455 *)
9456 wlarc='${wl}'
9457 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9459 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9460 ;;
9461 esac
9462 fi
9463 hardcode_libdir_flag_spec='-R$libdir'
9464 hardcode_shlibpath_var=no
9465 case $host_os in
9466 solaris2.[0-5] | solaris2.[0-5].*) ;;
9467 *)
9468 # The compiler driver will combine and reorder linker options,
9469 # but understands `-z linker_flag'. GCC discards it without `$wl',
9470 # but is careful enough not to reorder.
9471 # Supported since Solaris 2.6 (maybe 2.5.1?)
9472 if test "$GCC" = yes; then
9473 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9474 else
9475 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9476 fi
9477 ;;
9478 esac
9479 link_all_deplibs=yes
9480 ;;
9481
9482 sunos4*)
9483 if test "x$host_vendor" = xsequent; then
9484 # Use $CC to link under sequent, because it throws in some extra .o
9485 # files that make .init and .fini sections work.
9486 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9489 fi
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_direct=yes
9492 hardcode_minus_L=yes
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 sysv4)
9497 case $host_vendor in
9498 sni)
9499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_direct=yes # is this really true???
9501 ;;
9502 siemens)
9503 ## LD is ld it makes a PLAMLIB
9504 ## CC just makes a GrossModule.
9505 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9506 reload_cmds='$CC -r -o $output$reload_objs'
9507 hardcode_direct=no
9508 ;;
9509 motorola)
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9512 ;;
9513 esac
9514 runpath_var='LD_RUN_PATH'
9515 hardcode_shlibpath_var=no
9516 ;;
9517
9518 sysv4.3*)
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_shlibpath_var=no
9521 export_dynamic_flag_spec='-Bexport'
9522 ;;
9523
9524 sysv4*MP*)
9525 if test -d /usr/nec; then
9526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527 hardcode_shlibpath_var=no
9528 runpath_var=LD_RUN_PATH
9529 hardcode_runpath_var=yes
9530 ld_shlibs=yes
9531 fi
9532 ;;
9533
9534 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9535 no_undefined_flag='${wl}-z,text'
9536 archive_cmds_need_lc=no
9537 hardcode_shlibpath_var=no
9538 runpath_var='LD_RUN_PATH'
9539
9540 if test "$GCC" = yes; then
9541 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 else
9544 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 fi
9547 ;;
9548
9549 sysv5* | sco3.2v5* | sco5v6*)
9550 # Note: We can NOT use -z defs as we might desire, because we do not
9551 # link with -lc, and that would cause any symbols used from libc to
9552 # always be unresolved, which means just about no library would
9553 # ever link correctly. If we're not using GNU ld we use -z text
9554 # though, which does catch some bad symbols but isn't as heavy-handed
9555 # as -z defs.
9556 no_undefined_flag='${wl}-z,text'
9557 allow_undefined_flag='${wl}-z,nodefs'
9558 archive_cmds_need_lc=no
9559 hardcode_shlibpath_var=no
9560 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9561 hardcode_libdir_separator=':'
9562 link_all_deplibs=yes
9563 export_dynamic_flag_spec='${wl}-Bexport'
9564 runpath_var='LD_RUN_PATH'
9565
9566 if test "$GCC" = yes; then
9567 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 else
9570 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572 fi
9573 ;;
9574
9575 uts4*)
9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_shlibpath_var=no
9579 ;;
9580
9581 *)
9582 ld_shlibs=no
9583 ;;
9584 esac
9585
9586 if test x$host_vendor = xsni; then
9587 case $host in
9588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9589 export_dynamic_flag_spec='${wl}-Blargedynsym'
9590 ;;
9591 esac
9592 fi
9593 fi
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9596 $as_echo "$ld_shlibs" >&6; }
9597 test "$ld_shlibs" = no && can_build_shared=no
9598
9599 with_gnu_ld=$with_gnu_ld
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615 #
9616 # Do we need to explicitly link libc?
9617 #
9618 case "x$archive_cmds_need_lc" in
9619 x|xyes)
9620 # Assume -lc should be added
9621 archive_cmds_need_lc=yes
9622
9623 if test "$enable_shared" = yes && test "$GCC" = yes; then
9624 case $archive_cmds in
9625 *'~'*)
9626 # FIXME: we may have to deal with multi-command sequences.
9627 ;;
9628 '$CC '*)
9629 # Test whether the compiler implicitly links with -lc since on some
9630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9631 # to ld, don't add -lc before -lgcc.
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9634 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 $RM conftest*
9638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639
9640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9641 (eval $ac_compile) 2>&5
9642 ac_status=$?
9643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644 test $ac_status = 0; } 2>conftest.err; then
9645 soname=conftest
9646 lib=conftest
9647 libobjs=conftest.$ac_objext
9648 deplibs=
9649 wl=$lt_prog_compiler_wl
9650 pic_flag=$lt_prog_compiler_pic
9651 compiler_flags=-v
9652 linker_flags=-v
9653 verstring=
9654 output_objdir=.
9655 libname=conftest
9656 lt_save_allow_undefined_flag=$allow_undefined_flag
9657 allow_undefined_flag=
9658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9659 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9660 ac_status=$?
9661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9662 test $ac_status = 0; }
9663 then
9664 lt_cv_archive_cmds_need_lc=no
9665 else
9666 lt_cv_archive_cmds_need_lc=yes
9667 fi
9668 allow_undefined_flag=$lt_save_allow_undefined_flag
9669 else
9670 cat conftest.err 1>&5
9671 fi
9672 $RM conftest*
9673
9674 fi
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9676 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9677 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9678 ;;
9679 esac
9680 fi
9681 ;;
9682 esac
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9841 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9842
9843 if test "$GCC" = yes; then
9844 case $host_os in
9845 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9846 *) lt_awk_arg="/^libraries:/" ;;
9847 esac
9848 case $host_os in
9849 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9850 *) lt_sed_strip_eq="s,=/,/,g" ;;
9851 esac
9852 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9853 case $lt_search_path_spec in
9854 *\;*)
9855 # if the path contains ";" then we assume it to be the separator
9856 # otherwise default to the standard path separator (i.e. ":") - it is
9857 # assumed that no part of a normal pathname contains ";" but that should
9858 # okay in the real world where ";" in dirpaths is itself problematic.
9859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9860 ;;
9861 *)
9862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9863 ;;
9864 esac
9865 # Ok, now we have the path, separated by spaces, we can step through it
9866 # and add multilib dir if necessary.
9867 lt_tmp_lt_search_path_spec=
9868 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9869 for lt_sys_path in $lt_search_path_spec; do
9870 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9872 else
9873 test -d "$lt_sys_path" && \
9874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9875 fi
9876 done
9877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9878 BEGIN {RS=" "; FS="/|\n";} {
9879 lt_foo="";
9880 lt_count=0;
9881 for (lt_i = NF; lt_i > 0; lt_i--) {
9882 if ($lt_i != "" && $lt_i != ".") {
9883 if ($lt_i == "..") {
9884 lt_count++;
9885 } else {
9886 if (lt_count == 0) {
9887 lt_foo="/" $lt_i lt_foo;
9888 } else {
9889 lt_count--;
9890 }
9891 }
9892 }
9893 }
9894 if (lt_foo != "") { lt_freq[lt_foo]++; }
9895 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9896 }'`
9897 # AWK program above erroneously prepends '/' to C:/dos/paths
9898 # for these hosts.
9899 case $host_os in
9900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9901 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9902 esac
9903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9904 else
9905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 fi
9907 library_names_spec=
9908 libname_spec='lib$name'
9909 soname_spec=
9910 shrext_cmds=".so"
9911 postinstall_cmds=
9912 postuninstall_cmds=
9913 finish_cmds=
9914 finish_eval=
9915 shlibpath_var=
9916 shlibpath_overrides_runpath=unknown
9917 version_type=none
9918 dynamic_linker="$host_os ld.so"
9919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9920 need_lib_prefix=unknown
9921 hardcode_into_libs=no
9922
9923 # when you set need_version to no, make sure it does not cause -set_version
9924 # flags to be left without arguments
9925 need_version=unknown
9926
9927 case $host_os in
9928 aix3*)
9929 version_type=linux
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9931 shlibpath_var=LIBPATH
9932
9933 # AIX 3 has no versioning support, so we append a major version to the name.
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 ;;
9936
9937 aix[4-9]*)
9938 version_type=linux
9939 need_lib_prefix=no
9940 need_version=no
9941 hardcode_into_libs=yes
9942 if test "$host_cpu" = ia64; then
9943 # AIX 5 supports IA64
9944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 else
9947 # With GCC up to 2.95.x, collect2 would create an import file
9948 # for dependence libraries. The import file would start with
9949 # the line `#! .'. This would cause the generated library to
9950 # depend on `.', always an invalid library. This was fixed in
9951 # development snapshots of GCC prior to 3.0.
9952 case $host_os in
9953 aix4 | aix4.[01] | aix4.[01].*)
9954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9955 echo ' yes '
9956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9957 :
9958 else
9959 can_build_shared=no
9960 fi
9961 ;;
9962 esac
9963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9964 # soname into executable. Probably we can add versioning support to
9965 # collect2, so additional links can be useful in future.
9966 if test "$aix_use_runtimelinking" = yes; then
9967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9968 # instead of lib<name>.a to let people know that these are not
9969 # typical AIX shared libraries.
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 else
9972 # We preserve .a as extension for shared libraries through AIX4.2
9973 # and later when we are not doing run time linking.
9974 library_names_spec='${libname}${release}.a $libname.a'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 fi
9977 shlibpath_var=LIBPATH
9978 fi
9979 ;;
9980
9981 amigaos*)
9982 case $host_cpu in
9983 powerpc)
9984 # Since July 2007 AmigaOS4 officially supports .so libraries.
9985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987 ;;
9988 m68k)
9989 library_names_spec='$libname.ixlibrary $libname.a'
9990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9991 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9992 ;;
9993 esac
9994 ;;
9995
9996 beos*)
9997 library_names_spec='${libname}${shared_ext}'
9998 dynamic_linker="$host_os ld.so"
9999 shlibpath_var=LIBRARY_PATH
10000 ;;
10001
10002 bsdi[45]*)
10003 version_type=linux
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10011 # the default ld.so.conf also contains /usr/contrib/lib and
10012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10013 # libtool to hard-code these into programs
10014 ;;
10015
10016 cygwin* | mingw* | pw32* | cegcc*)
10017 version_type=windows
10018 shrext_cmds=".dll"
10019 need_version=no
10020 need_lib_prefix=no
10021
10022 case $GCC,$cc_basename in
10023 yes,*)
10024 # gcc
10025 library_names_spec='$libname.dll.a'
10026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10027 postinstall_cmds='base_file=`basename \${file}`~
10028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10029 dldir=$destdir/`dirname \$dlpath`~
10030 test -d \$dldir || mkdir -p \$dldir~
10031 $install_prog $dir/$dlname \$dldir/$dlname~
10032 chmod a+x \$dldir/$dlname~
10033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10035 fi'
10036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10037 dlpath=$dir/\$dldll~
10038 $RM \$dlpath'
10039 shlibpath_overrides_runpath=yes
10040
10041 case $host_os in
10042 cygwin*)
10043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10045
10046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10047 ;;
10048 mingw* | cegcc*)
10049 # MinGW DLLs use traditional 'lib' prefix
10050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10051 ;;
10052 pw32*)
10053 # pw32 DLLs use 'pw' prefix rather than 'lib'
10054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10055 ;;
10056 esac
10057 dynamic_linker='Win32 ld.exe'
10058 ;;
10059
10060 *,cl*)
10061 # Native MSVC
10062 libname_spec='$name'
10063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10064 library_names_spec='${libname}.dll.lib'
10065
10066 case $build_os in
10067 mingw*)
10068 sys_lib_search_path_spec=
10069 lt_save_ifs=$IFS
10070 IFS=';'
10071 for lt_path in $LIB
10072 do
10073 IFS=$lt_save_ifs
10074 # Let DOS variable expansion print the short 8.3 style file name.
10075 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10077 done
10078 IFS=$lt_save_ifs
10079 # Convert to MSYS style.
10080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10081 ;;
10082 cygwin*)
10083 # Convert to unix form, then to dos form, then back to unix form
10084 # but this time dos style (no spaces!) so that the unix form looks
10085 # like /cygdrive/c/PROGRA~1:/cygdr...
10086 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10087 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10088 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10089 ;;
10090 *)
10091 sys_lib_search_path_spec="$LIB"
10092 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10093 # It is most probably a Windows format PATH.
10094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10095 else
10096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10097 fi
10098 # FIXME: find the short name or the path components, as spaces are
10099 # common. (e.g. "Program Files" -> "PROGRA~1")
10100 ;;
10101 esac
10102
10103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10104 postinstall_cmds='base_file=`basename \${file}`~
10105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10106 dldir=$destdir/`dirname \$dlpath`~
10107 test -d \$dldir || mkdir -p \$dldir~
10108 $install_prog $dir/$dlname \$dldir/$dlname'
10109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10110 dlpath=$dir/\$dldll~
10111 $RM \$dlpath'
10112 shlibpath_overrides_runpath=yes
10113 dynamic_linker='Win32 link.exe'
10114 ;;
10115
10116 *)
10117 # Assume MSVC wrapper
10118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10119 dynamic_linker='Win32 ld.exe'
10120 ;;
10121 esac
10122 # FIXME: first we should search . and the directory the executable is in
10123 shlibpath_var=PATH
10124 ;;
10125
10126 darwin* | rhapsody*)
10127 dynamic_linker="$host_os dyld"
10128 version_type=darwin
10129 need_lib_prefix=no
10130 need_version=no
10131 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10132 soname_spec='${libname}${release}${major}$shared_ext'
10133 shlibpath_overrides_runpath=yes
10134 shlibpath_var=DYLD_LIBRARY_PATH
10135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10136
10137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10139 ;;
10140
10141 dgux*)
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 ;;
10149
10150 freebsd1*)
10151 dynamic_linker=no
10152 ;;
10153
10154 freebsd* | dragonfly*)
10155 # DragonFly does not have aout. When/if they implement a new
10156 # versioning mechanism, adjust this.
10157 if test -x /usr/bin/objformat; then
10158 objformat=`/usr/bin/objformat`
10159 else
10160 case $host_os in
10161 freebsd[123]*) objformat=aout ;;
10162 *) objformat=elf ;;
10163 esac
10164 fi
10165 version_type=freebsd-$objformat
10166 case $version_type in
10167 freebsd-elf*)
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10169 need_version=no
10170 need_lib_prefix=no
10171 ;;
10172 freebsd-*)
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10174 need_version=yes
10175 ;;
10176 esac
10177 shlibpath_var=LD_LIBRARY_PATH
10178 case $host_os in
10179 freebsd2*)
10180 shlibpath_overrides_runpath=yes
10181 ;;
10182 freebsd3.[01]* | freebsdelf3.[01]*)
10183 shlibpath_overrides_runpath=yes
10184 hardcode_into_libs=yes
10185 ;;
10186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10188 shlibpath_overrides_runpath=no
10189 hardcode_into_libs=yes
10190 ;;
10191 *) # from 4.6 on, and DragonFly
10192 shlibpath_overrides_runpath=yes
10193 hardcode_into_libs=yes
10194 ;;
10195 esac
10196 ;;
10197
10198 gnu*)
10199 version_type=linux
10200 need_lib_prefix=no
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 hardcode_into_libs=yes
10206 ;;
10207
10208 haiku*)
10209 version_type=linux
10210 need_lib_prefix=no
10211 need_version=no
10212 dynamic_linker="$host_os runtime_loader"
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LIBRARY_PATH
10216 shlibpath_overrides_runpath=yes
10217 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10218 hardcode_into_libs=yes
10219 ;;
10220
10221 hpux9* | hpux10* | hpux11*)
10222 # Give a soname corresponding to the major version so that dld.sl refuses to
10223 # link against other versions.
10224 version_type=sunos
10225 need_lib_prefix=no
10226 need_version=no
10227 case $host_cpu in
10228 ia64*)
10229 shrext_cmds='.so'
10230 hardcode_into_libs=yes
10231 dynamic_linker="$host_os dld.so"
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 if test "X$HPUX_IA64_MODE" = X32; then
10237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10238 else
10239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10240 fi
10241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10242 ;;
10243 hppa*64*)
10244 shrext_cmds='.sl'
10245 hardcode_into_libs=yes
10246 dynamic_linker="$host_os dld.sl"
10247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10253 ;;
10254 *)
10255 shrext_cmds='.sl'
10256 dynamic_linker="$host_os dld.sl"
10257 shlibpath_var=SHLIB_PATH
10258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 ;;
10262 esac
10263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10264 postinstall_cmds='chmod 555 $lib'
10265 # or fails outright, so override atomically:
10266 install_override_mode=555
10267 ;;
10268
10269 interix[3-9]*)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10279 ;;
10280
10281 irix5* | irix6* | nonstopux*)
10282 case $host_os in
10283 nonstopux*) version_type=nonstopux ;;
10284 *)
10285 if test "$lt_cv_prog_gnu_ld" = yes; then
10286 version_type=linux
10287 else
10288 version_type=irix
10289 fi ;;
10290 esac
10291 need_lib_prefix=no
10292 need_version=no
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 case $host_os in
10296 irix5* | nonstopux*)
10297 libsuff= shlibsuff=
10298 ;;
10299 *)
10300 case $LD in # libtool.m4 will add one of these switches to LD
10301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10302 libsuff= shlibsuff= libmagic=32-bit;;
10303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10304 libsuff=32 shlibsuff=N32 libmagic=N32;;
10305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10307 *) libsuff= shlibsuff= libmagic=never-match;;
10308 esac
10309 ;;
10310 esac
10311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10312 shlibpath_overrides_runpath=no
10313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10315 hardcode_into_libs=yes
10316 ;;
10317
10318 # No shared lib support for Linux oldld, aout, or coff.
10319 linux*oldld* | linux*aout* | linux*coff*)
10320 dynamic_linker=no
10321 ;;
10322
10323 # This must be Linux ELF.
10324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=no
10333
10334 # Some binutils ld are patched to set DT_RUNPATH
10335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_shlibpath_overrides_runpath=no
10339 save_LDFLAGS=$LDFLAGS
10340 save_libdir=$libdir
10341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10356 lt_cv_shlibpath_overrides_runpath=yes
10357 fi
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 LDFLAGS=$save_LDFLAGS
10362 libdir=$save_libdir
10363
10364 fi
10365
10366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10367
10368 # This implies no fast_install, which is unacceptable.
10369 # Some rework will be needed to allow for fast_install
10370 # before this can be enabled.
10371 hardcode_into_libs=yes
10372
10373 # Append ld.so.conf contents to the search path
10374 if test -f /etc/ld.so.conf; then
10375 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10377 fi
10378
10379 # We used to test for /lib/ld.so.1 and disable shared libraries on
10380 # powerpc, because MkLinux only supported shared libraries with the
10381 # GNU dynamic linker. Since this was broken with cross compilers,
10382 # most powerpc-linux boxes support dynamic linking these days and
10383 # people can always --disable-shared, the test was removed, and we
10384 # assume the GNU/Linux dynamic linker is in use.
10385 dynamic_linker='GNU/Linux ld.so'
10386 ;;
10387
10388 netbsd*)
10389 version_type=sunos
10390 need_lib_prefix=no
10391 need_version=no
10392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 dynamic_linker='NetBSD (a.out) ld.so'
10396 else
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 dynamic_linker='NetBSD ld.elf_so'
10400 fi
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10403 hardcode_into_libs=yes
10404 ;;
10405
10406 newsos6)
10407 version_type=linux
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 ;;
10412
10413 *nto* | *qnx*)
10414 version_type=qnx
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10422 dynamic_linker='ldqnx.so'
10423 ;;
10424
10425 openbsd*)
10426 version_type=sunos
10427 sys_lib_dlsearch_path_spec="/usr/lib"
10428 need_lib_prefix=no
10429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10430 case $host_os in
10431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10432 *) need_version=no ;;
10433 esac
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438 case $host_os in
10439 openbsd2.[89] | openbsd2.[89].*)
10440 shlibpath_overrides_runpath=no
10441 ;;
10442 *)
10443 shlibpath_overrides_runpath=yes
10444 ;;
10445 esac
10446 else
10447 shlibpath_overrides_runpath=yes
10448 fi
10449 ;;
10450
10451 os2*)
10452 libname_spec='$name'
10453 shrext_cmds=".dll"
10454 need_lib_prefix=no
10455 library_names_spec='$libname${shared_ext} $libname.a'
10456 dynamic_linker='OS/2 ld.exe'
10457 shlibpath_var=LIBPATH
10458 ;;
10459
10460 osf3* | osf4* | osf5*)
10461 version_type=osf
10462 need_lib_prefix=no
10463 need_version=no
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10469 ;;
10470
10471 rdos*)
10472 dynamic_linker=no
10473 ;;
10474
10475 solaris*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 hardcode_into_libs=yes
10484 # ldd complains unless libraries are executable
10485 postinstall_cmds='chmod +x $lib'
10486 ;;
10487
10488 sunos4*)
10489 version_type=sunos
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 if test "$with_gnu_ld" = yes; then
10495 need_lib_prefix=no
10496 fi
10497 need_version=yes
10498 ;;
10499
10500 sysv4 | sysv4.3*)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 case $host_vendor in
10506 sni)
10507 shlibpath_overrides_runpath=no
10508 need_lib_prefix=no
10509 runpath_var=LD_RUN_PATH
10510 ;;
10511 siemens)
10512 need_lib_prefix=no
10513 ;;
10514 motorola)
10515 need_lib_prefix=no
10516 need_version=no
10517 shlibpath_overrides_runpath=no
10518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10519 ;;
10520 esac
10521 ;;
10522
10523 sysv4*MP*)
10524 if test -d /usr/nec ;then
10525 version_type=linux
10526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10527 soname_spec='$libname${shared_ext}.$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 fi
10530 ;;
10531
10532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533 version_type=freebsd-elf
10534 need_lib_prefix=no
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=yes
10540 hardcode_into_libs=yes
10541 if test "$with_gnu_ld" = yes; then
10542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10543 else
10544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10545 case $host_os in
10546 sco3.2v5*)
10547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10548 ;;
10549 esac
10550 fi
10551 sys_lib_dlsearch_path_spec='/usr/lib'
10552 ;;
10553
10554 tpf*)
10555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10556 version_type=linux
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564
10565 uts4*)
10566 version_type=linux
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 ;;
10571
10572 *)
10573 dynamic_linker=no
10574 ;;
10575 esac
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10577 $as_echo "$dynamic_linker" >&6; }
10578 test "$dynamic_linker" = no && can_build_shared=no
10579
10580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10581 if test "$GCC" = yes; then
10582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10583 fi
10584
10585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10587 fi
10588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10590 fi
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10685 hardcode_action=
10686 if test -n "$hardcode_libdir_flag_spec" ||
10687 test -n "$runpath_var" ||
10688 test "X$hardcode_automatic" = "Xyes" ; then
10689
10690 # We can hardcode non-existent directories.
10691 if test "$hardcode_direct" != no &&
10692 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10693 # have to relink, otherwise we might link with an installed library
10694 # when we should be linking with a yet-to-be-installed one
10695 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10696 test "$hardcode_minus_L" != no; then
10697 # Linking always hardcodes the temporary library directory.
10698 hardcode_action=relink
10699 else
10700 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10701 hardcode_action=immediate
10702 fi
10703 else
10704 # We cannot hardcode anything, or else we can only hardcode existing
10705 # directories.
10706 hardcode_action=unsupported
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10709 $as_echo "$hardcode_action" >&6; }
10710
10711 if test "$hardcode_action" = relink ||
10712 test "$inherit_rpath" = yes; then
10713 # Fast installation is not supported
10714 enable_fast_install=no
10715 elif test "$shlibpath_overrides_runpath" = yes ||
10716 test "$enable_shared" = no; then
10717 # Fast installation is not necessary
10718 enable_fast_install=needless
10719 fi
10720
10721
10722
10723
10724
10725
10726 if test "x$enable_dlopen" != xyes; then
10727 enable_dlopen=unknown
10728 enable_dlopen_self=unknown
10729 enable_dlopen_self_static=unknown
10730 else
10731 lt_cv_dlopen=no
10732 lt_cv_dlopen_libs=
10733
10734 case $host_os in
10735 beos*)
10736 lt_cv_dlopen="load_add_on"
10737 lt_cv_dlopen_libs=
10738 lt_cv_dlopen_self=yes
10739 ;;
10740
10741 mingw* | pw32* | cegcc*)
10742 lt_cv_dlopen="LoadLibrary"
10743 lt_cv_dlopen_libs=
10744 ;;
10745
10746 cygwin*)
10747 lt_cv_dlopen="dlopen"
10748 lt_cv_dlopen_libs=
10749 ;;
10750
10751 darwin*)
10752 # if libdl is installed we need to link against it
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if ${ac_cv_lib_dl_dlopen+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldl $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dlopen ();
10770 int
10771 main ()
10772 {
10773 return dlopen ();
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_dl_dlopen=yes
10780 else
10781 ac_cv_lib_dl_dlopen=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10791 else
10792
10793 lt_cv_dlopen="dyld"
10794 lt_cv_dlopen_libs=
10795 lt_cv_dlopen_self=yes
10796
10797 fi
10798
10799 ;;
10800
10801 *)
10802 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10803 if test "x$ac_cv_func_shl_load" = xyes; then :
10804 lt_cv_dlopen="shl_load"
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10807 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10808 if ${ac_cv_lib_dld_shl_load+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-ldld $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char shl_load ();
10823 int
10824 main ()
10825 {
10826 return shl_load ();
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_dld_shl_load=yes
10833 else
10834 ac_cv_lib_dld_shl_load=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10841 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10842 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10844 else
10845 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10846 if test "x$ac_cv_func_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10851 if ${ac_cv_lib_dl_dlopen+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldl $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10866 int
10867 main ()
10868 {
10869 return dlopen ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dl_dlopen=yes
10876 else
10877 ac_cv_lib_dl_dlopen=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10889 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10890 if ${ac_cv_lib_svld_dlopen+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-lsvld $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10905 int
10906 main ()
10907 {
10908 return dlopen ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_svld_dlopen=yes
10915 else
10916 ac_cv_lib_svld_dlopen=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10923 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10924 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10928 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10929 if ${ac_cv_lib_dld_dld_link+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-ldld $LIBS"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char dld_link ();
10944 int
10945 main ()
10946 {
10947 return dld_link ();
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_lib_dld_dld_link=yes
10954 else
10955 ac_cv_lib_dld_dld_link=no
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_lib_save_LIBS
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10962 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10963 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10964 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10965 fi
10966
10967
10968 fi
10969
10970
10971 fi
10972
10973
10974 fi
10975
10976
10977 fi
10978
10979
10980 fi
10981
10982 ;;
10983 esac
10984
10985 if test "x$lt_cv_dlopen" != xno; then
10986 enable_dlopen=yes
10987 else
10988 enable_dlopen=no
10989 fi
10990
10991 case $lt_cv_dlopen in
10992 dlopen)
10993 save_CPPFLAGS="$CPPFLAGS"
10994 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10995
10996 save_LDFLAGS="$LDFLAGS"
10997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10998
10999 save_LIBS="$LIBS"
11000 LIBS="$lt_cv_dlopen_libs $LIBS"
11001
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11003 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11004 if ${lt_cv_dlopen_self+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test "$cross_compiling" = yes; then :
11008 lt_cv_dlopen_self=cross
11009 else
11010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011 lt_status=$lt_dlunknown
11012 cat > conftest.$ac_ext <<_LT_EOF
11013 #line $LINENO "configure"
11014 #include "confdefs.h"
11015
11016 #if HAVE_DLFCN_H
11017 #include <dlfcn.h>
11018 #endif
11019
11020 #include <stdio.h>
11021
11022 #ifdef RTLD_GLOBAL
11023 # define LT_DLGLOBAL RTLD_GLOBAL
11024 #else
11025 # ifdef DL_GLOBAL
11026 # define LT_DLGLOBAL DL_GLOBAL
11027 # else
11028 # define LT_DLGLOBAL 0
11029 # endif
11030 #endif
11031
11032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033 find out it does not work in some platform. */
11034 #ifndef LT_DLLAZY_OR_NOW
11035 # ifdef RTLD_LAZY
11036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11037 # else
11038 # ifdef DL_LAZY
11039 # define LT_DLLAZY_OR_NOW DL_LAZY
11040 # else
11041 # ifdef RTLD_NOW
11042 # define LT_DLLAZY_OR_NOW RTLD_NOW
11043 # else
11044 # ifdef DL_NOW
11045 # define LT_DLLAZY_OR_NOW DL_NOW
11046 # else
11047 # define LT_DLLAZY_OR_NOW 0
11048 # endif
11049 # endif
11050 # endif
11051 # endif
11052 #endif
11053
11054 /* When -fvisbility=hidden is used, assume the code has been annotated
11055 correspondingly for the symbols needed. */
11056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11057 int fnord () __attribute__((visibility("default")));
11058 #endif
11059
11060 int fnord () { return 42; }
11061 int main ()
11062 {
11063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11064 int status = $lt_dlunknown;
11065
11066 if (self)
11067 {
11068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11069 else
11070 {
11071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11072 else puts (dlerror ());
11073 }
11074 /* dlclose (self); */
11075 }
11076 else
11077 puts (dlerror ());
11078
11079 return status;
11080 }
11081 _LT_EOF
11082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11083 (eval $ac_link) 2>&5
11084 ac_status=$?
11085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11087 (./conftest; exit; ) >&5 2>/dev/null
11088 lt_status=$?
11089 case x$lt_status in
11090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11092 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11093 esac
11094 else :
11095 # compilation failed
11096 lt_cv_dlopen_self=no
11097 fi
11098 fi
11099 rm -fr conftest*
11100
11101
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11104 $as_echo "$lt_cv_dlopen_self" >&6; }
11105
11106 if test "x$lt_cv_dlopen_self" = xyes; then
11107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11109 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11110 if ${lt_cv_dlopen_self_static+:} false; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if test "$cross_compiling" = yes; then :
11114 lt_cv_dlopen_self_static=cross
11115 else
11116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11117 lt_status=$lt_dlunknown
11118 cat > conftest.$ac_ext <<_LT_EOF
11119 #line $LINENO "configure"
11120 #include "confdefs.h"
11121
11122 #if HAVE_DLFCN_H
11123 #include <dlfcn.h>
11124 #endif
11125
11126 #include <stdio.h>
11127
11128 #ifdef RTLD_GLOBAL
11129 # define LT_DLGLOBAL RTLD_GLOBAL
11130 #else
11131 # ifdef DL_GLOBAL
11132 # define LT_DLGLOBAL DL_GLOBAL
11133 # else
11134 # define LT_DLGLOBAL 0
11135 # endif
11136 #endif
11137
11138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11139 find out it does not work in some platform. */
11140 #ifndef LT_DLLAZY_OR_NOW
11141 # ifdef RTLD_LAZY
11142 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11143 # else
11144 # ifdef DL_LAZY
11145 # define LT_DLLAZY_OR_NOW DL_LAZY
11146 # else
11147 # ifdef RTLD_NOW
11148 # define LT_DLLAZY_OR_NOW RTLD_NOW
11149 # else
11150 # ifdef DL_NOW
11151 # define LT_DLLAZY_OR_NOW DL_NOW
11152 # else
11153 # define LT_DLLAZY_OR_NOW 0
11154 # endif
11155 # endif
11156 # endif
11157 # endif
11158 #endif
11159
11160 /* When -fvisbility=hidden is used, assume the code has been annotated
11161 correspondingly for the symbols needed. */
11162 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11163 int fnord () __attribute__((visibility("default")));
11164 #endif
11165
11166 int fnord () { return 42; }
11167 int main ()
11168 {
11169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11170 int status = $lt_dlunknown;
11171
11172 if (self)
11173 {
11174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11175 else
11176 {
11177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178 else puts (dlerror ());
11179 }
11180 /* dlclose (self); */
11181 }
11182 else
11183 puts (dlerror ());
11184
11185 return status;
11186 }
11187 _LT_EOF
11188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189 (eval $ac_link) 2>&5
11190 ac_status=$?
11191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193 (./conftest; exit; ) >&5 2>/dev/null
11194 lt_status=$?
11195 case x$lt_status in
11196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199 esac
11200 else :
11201 # compilation failed
11202 lt_cv_dlopen_self_static=no
11203 fi
11204 fi
11205 rm -fr conftest*
11206
11207
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11210 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11211 fi
11212
11213 CPPFLAGS="$save_CPPFLAGS"
11214 LDFLAGS="$save_LDFLAGS"
11215 LIBS="$save_LIBS"
11216 ;;
11217 esac
11218
11219 case $lt_cv_dlopen_self in
11220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221 *) enable_dlopen_self=unknown ;;
11222 esac
11223
11224 case $lt_cv_dlopen_self_static in
11225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226 *) enable_dlopen_self_static=unknown ;;
11227 esac
11228 fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 striplib=
11247 old_striplib=
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11249 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11250 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254 $as_echo "yes" >&6; }
11255 else
11256 # FIXME - insert some real tests, host_os isn't really good enough
11257 case $host_os in
11258 darwin*)
11259 if test -n "$STRIP" ; then
11260 striplib="$STRIP -x"
11261 old_striplib="$STRIP -S"
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268 ;;
11269 *)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11272 ;;
11273 esac
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287 # Report which library types will actually be built
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11289 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11291 $as_echo "$can_build_shared" >&6; }
11292
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11294 $as_echo_n "checking whether to build shared libraries... " >&6; }
11295 test "$can_build_shared" = "no" && enable_shared=no
11296
11297 # On AIX, shared libraries and static libraries use the same namespace, and
11298 # are all built from PIC.
11299 case $host_os in
11300 aix3*)
11301 test "$enable_shared" = yes && enable_static=no
11302 if test -n "$RANLIB"; then
11303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304 postinstall_cmds='$RANLIB $lib'
11305 fi
11306 ;;
11307
11308 aix[4-9]*)
11309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310 test "$enable_shared" = yes && enable_static=no
11311 fi
11312 ;;
11313 esac
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11315 $as_echo "$enable_shared" >&6; }
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11318 $as_echo_n "checking whether to build static libraries... " >&6; }
11319 # Make sure either enable_shared or enable_static is yes.
11320 test "$enable_shared" = yes || enable_static=yes
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11322 $as_echo "$enable_static" >&6; }
11323
11324
11325
11326
11327 fi
11328 ac_ext=c
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
11334 CC="$lt_save_CC"
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348 ac_config_commands="$ac_config_commands libtool"
11349
11350
11351
11352
11353 # Only expand once:
11354
11355
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11358 $as_echo_n "checking for pow in -lm... " >&6; }
11359 if ${ac_cv_lib_m_pow+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lm $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char pow ();
11374 int
11375 main ()
11376 {
11377 return pow ();
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_m_pow=yes
11384 else
11385 ac_cv_lib_m_pow=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11392 $as_echo "$ac_cv_lib_m_pow" >&6; }
11393 if test "x$ac_cv_lib_m_pow" = xyes; then :
11394 math_lib="-lm"
11395 else
11396 math_lib=""
11397 fi
11398
11399
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerrno in -liberty" >&5
11401 $as_echo_n "checking for strerrno in -liberty... " >&6; }
11402 if ${ac_cv_lib_iberty_strerrno+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-liberty $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char strerrno ();
11417 int
11418 main ()
11419 {
11420 return strerrno ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_iberty_strerrno=yes
11427 else
11428 ac_cv_lib_iberty_strerrno=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_strerrno" >&5
11435 $as_echo "$ac_cv_lib_iberty_strerrno" >&6; }
11436 if test "x$ac_cv_lib_iberty_strerrno" = xyes; then :
11437 liberty_lib="-liberty"
11438 else
11439 liberty_lib=""
11440 fi
11441
11442
11443 nsl_lib="";
11444 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11445 if test "x$ac_cv_func_gethostbyname" = xyes; then :
11446 try_nsl=""
11447 else
11448 try_nsl="yes"
11449 fi
11450
11451 if test -n "${try_nsl}"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11453 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11454 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-lnsl $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char gethostbyname ();
11469 int
11470 main ()
11471 {
11472 return gethostbyname ();
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_nsl_gethostbyname=yes
11479 else
11480 ac_cv_lib_nsl_gethostbyname=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11487 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11488 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11489 nsl_lib="-lnsl"
11490 else
11491 nsl_lib=""
11492 fi
11493
11494 fi
11495
11496 socket_lib="";
11497 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11498 if test "x$ac_cv_func_connect" = xyes; then :
11499 try_socket=""
11500 else
11501 try_socket="yes"
11502 fi
11503
11504 if test -n "${try_socket}"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11506 $as_echo_n "checking for connect in -lsocket... " >&6; }
11507 if ${ac_cv_lib_socket_connect+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-lsocket $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char connect ();
11522 int
11523 main ()
11524 {
11525 return connect ();
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_socket_connect=yes
11532 else
11533 ac_cv_lib_socket_connect=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11540 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11541 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11542 socket_lib="-lsocket"
11543 else
11544 socket_lib=""
11545 fi
11546
11547 fi
11548
11549 thread_lib="";
11550 ac_fn_c_check_func "$LINENO" "thr_create" "ac_cv_func_thr_create"
11551 if test "x$ac_cv_func_thr_create" = xyes; then :
11552 try_thread=""
11553 else
11554 try_thread="yes"
11555 fi
11556
11557 if test -n "${try_thread}"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
11559 $as_echo_n "checking for thr_create in -lthread... " >&6; }
11560 if ${ac_cv_lib_thread_thr_create+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_check_lib_save_LIBS=$LIBS
11564 LIBS="-lthread $LIBS"
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567
11568 /* Override any GCC internal prototype to avoid an error.
11569 Use char because int might match the return type of a GCC
11570 builtin and then its argument prototype would still apply. */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 char thr_create ();
11575 int
11576 main ()
11577 {
11578 return thr_create ();
11579 ;
11580 return 0;
11581 }
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584 ac_cv_lib_thread_thr_create=yes
11585 else
11586 ac_cv_lib_thread_thr_create=no
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
11593 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
11594 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
11595 thread_lib="-lthread"
11596 else
11597 thread_lib=""
11598 fi
11599
11600 fi
11601
11602
11603
11604 fetk_cpu_vendor_os="";
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to disable the CPU-VENDOR-OS install triplet" >&5
11606 $as_echo_n "checking whether you want to disable the CPU-VENDOR-OS install triplet... " >&6; }
11607 # Check whether --enable-triplet was given.
11608 if test "${enable_triplet+set}" = set; then :
11609 enableval=$enable_triplet; triplet_kill="yes"
11610 else
11611 triplet_kill=""
11612
11613 fi
11614
11615 if test "${triplet_kill}" = yes; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11618 fetk_cpu_vendor_os="";
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fetk_cpu_vendor_os="${host_cpu}-${host_vendor}-${host_os}";
11623 fi
11624
11625
11626 if test "${host_os}" = "cygwin"; then
11627 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
11628
11629 fi
11630
11631 rl_lib="";
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_RL_LIBRARY" >&5
11633 $as_echo_n "checking whether your environment defines FETK_RL_LIBRARY... " >&6; }
11634 if test -n "${FETK_RL_LIBRARY}"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11636 $as_echo "yes" >&6; }
11637 rl_lib_path="-L${FETK_RL_LIBRARY} ";
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 rl_lib_path="";
11642 fi
11643 LDFLAGS_SAVE=${LDFLAGS};
11644 LDFLAGS=${rl_lib_path};
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -lncurses" >&5
11646 $as_echo_n "checking for tgetnum in -lncurses... " >&6; }
11647 if ${ac_cv_lib_ncurses_tgetnum+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-lncurses ${math_lib} $LIBS"
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char tgetnum ();
11662 int
11663 main ()
11664 {
11665 return tgetnum ();
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"; then :
11671 ac_cv_lib_ncurses_tgetnum=yes
11672 else
11673 ac_cv_lib_ncurses_tgetnum=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetnum" >&5
11680 $as_echo "$ac_cv_lib_ncurses_tgetnum" >&6; }
11681 if test "x$ac_cv_lib_ncurses_tgetnum" = xyes; then :
11682 ncurses_lib="-lncurses"
11683 else
11684 ncurses_lib=""
11685 fi
11686
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11688 $as_echo_n "checking for readline in -lreadline... " >&6; }
11689 if ${ac_cv_lib_readline_readline+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 ac_check_lib_save_LIBS=$LIBS
11693 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696
11697 /* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char readline ();
11704 int
11705 main ()
11706 {
11707 return readline ();
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 ac_cv_lib_readline_readline=yes
11714 else
11715 ac_cv_lib_readline_readline=no
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LIBS=$ac_check_lib_save_LIBS
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11722 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11723 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11724 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
11725 else
11726 rl_use="";rl_lib=""
11727 fi
11728
11729 if test -n "${rl_use}"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
11731 $as_echo_n "checking for add_history in -lreadline... " >&6; }
11732 if ${ac_cv_lib_readline_add_history+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char add_history ();
11747 int
11748 main ()
11749 {
11750 return add_history ();
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"; then :
11756 ac_cv_lib_readline_add_history=yes
11757 else
11758 ac_cv_lib_readline_add_history=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
11765 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
11766 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
11767 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
11768 else
11769 rl_use="";rl_lib=""
11770 fi
11771
11772 fi
11773 LDFLAGS=${LDFLAGS_SAVE};
11774
11775
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EMBED macro can be used without compilation errors" >&5
11777 $as_echo_n "checking whether EMBED macro can be used without compilation errors... " >&6; }
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780
11781 int
11782 main ()
11783 {
11784 #define EMBED(rctag) \
11785 static const char* rctag; \
11786 static void* use_rcsid=(0 ? &use_rcsid : (void*)&rcsid);
11787 EMBED(rcsid)
11788 ;
11789 return 0;
11790 }
11791 _ACEOF
11792 if ac_fn_c_try_compile "$LINENO"; then :
11793 embed_ok=yes;$as_echo "#define HAVE_EMBED 1" >>confdefs.h
11794
11795 else
11796 embed_ok=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${embed_ok}" >&5
11800 $as_echo "${embed_ok}" >&6; }
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is an OPENSTEP/NeXTSTEP/MacOS machine" >&5
11803 $as_echo_n "checking whether this is an OPENSTEP/NeXTSTEP/MacOS machine... " >&6; }
11804 if test "${host_os}" = "openstep4"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; }
11807 objc_lib="-framework AppKit -Xlinker -read_only_relocs -Xlinker suppress";
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811 objc_lib="";
11812 fi
11813
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_X_LIBRARY" >&5
11816 $as_echo_n "checking whether your environment defines FETK_X_LIBRARY... " >&6; }
11817 if test -n "${FETK_X_LIBRARY}"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819 $as_echo "yes" >&6; }
11820 x_lib_path="-L${FETK_X_LIBRARY} ";
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 x_lib_path="";
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11827 $as_echo_n "checking for X... " >&6; }
11828
11829
11830 # Check whether --with-x was given.
11831 if test "${with_x+set}" = set; then :
11832 withval=$with_x;
11833 fi
11834
11835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11836 if test "x$with_x" = xno; then
11837 # The user explicitly disabled X.
11838 have_x=disabled
11839 else
11840 case $x_includes,$x_libraries in #(
11841 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11842 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 # One or both of the vars are not set, and there is no cached value.
11846 ac_x_includes=no ac_x_libraries=no
11847 rm -f -r conftest.dir
11848 if mkdir conftest.dir; then
11849 cd conftest.dir
11850 cat >Imakefile <<'_ACEOF'
11851 incroot:
11852 @echo incroot='${INCROOT}'
11853 usrlibdir:
11854 @echo usrlibdir='${USRLIBDIR}'
11855 libdir:
11856 @echo libdir='${LIBDIR}'
11857 _ACEOF
11858 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11859 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11860 for ac_var in incroot usrlibdir libdir; do
11861 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11862 done
11863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11864 for ac_extension in a so sl dylib la dll; do
11865 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11866 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11867 ac_im_usrlibdir=$ac_im_libdir; break
11868 fi
11869 done
11870 # Screen out bogus values from the imake configuration. They are
11871 # bogus both because they are the default anyway, and because
11872 # using them would break gcc on systems where it needs fixed includes.
11873 case $ac_im_incroot in
11874 /usr/include) ac_x_includes= ;;
11875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11876 esac
11877 case $ac_im_usrlibdir in
11878 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11880 esac
11881 fi
11882 cd ..
11883 rm -f -r conftest.dir
11884 fi
11885
11886 # Standard set of common directories for X headers.
11887 # Check X11 before X11Rn because it is often a symlink to the current release.
11888 ac_x_header_dirs='
11889 /usr/X11/include
11890 /usr/X11R7/include
11891 /usr/X11R6/include
11892 /usr/X11R5/include
11893 /usr/X11R4/include
11894
11895 /usr/include/X11
11896 /usr/include/X11R7
11897 /usr/include/X11R6
11898 /usr/include/X11R5
11899 /usr/include/X11R4
11900
11901 /usr/local/X11/include
11902 /usr/local/X11R7/include
11903 /usr/local/X11R6/include
11904 /usr/local/X11R5/include
11905 /usr/local/X11R4/include
11906
11907 /usr/local/include/X11
11908 /usr/local/include/X11R7
11909 /usr/local/include/X11R6
11910 /usr/local/include/X11R5
11911 /usr/local/include/X11R4
11912
11913 /usr/X386/include
11914 /usr/x386/include
11915 /usr/XFree86/include/X11
11916
11917 /usr/include
11918 /usr/local/include
11919 /usr/unsupported/include
11920 /usr/athena/include
11921 /usr/local/x11r5/include
11922 /usr/lpp/Xamples/include
11923
11924 /usr/openwin/include
11925 /usr/openwin/share/include'
11926
11927 if test "$ac_x_includes" = no; then
11928 # Guess where to find include files, by looking for Xlib.h.
11929 # First, try using that file with no special directory specified.
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <X11/Xlib.h>
11933 _ACEOF
11934 if ac_fn_c_try_cpp "$LINENO"; then :
11935 # We can compile using X headers with no special include directory.
11936 ac_x_includes=
11937 else
11938 for ac_dir in $ac_x_header_dirs; do
11939 if test -r "$ac_dir/X11/Xlib.h"; then
11940 ac_x_includes=$ac_dir
11941 break
11942 fi
11943 done
11944 fi
11945 rm -f conftest.err conftest.i conftest.$ac_ext
11946 fi # $ac_x_includes = no
11947
11948 if test "$ac_x_libraries" = no; then
11949 # Check for the libraries.
11950 # See if we find them without any special options.
11951 # Don't add to $LIBS permanently.
11952 ac_save_LIBS=$LIBS
11953 LIBS="-lX11 $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <X11/Xlib.h>
11957 int
11958 main ()
11959 {
11960 XrmInitialize ()
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 LIBS=$ac_save_LIBS
11967 # We can link X programs with no special library path.
11968 ac_x_libraries=
11969 else
11970 LIBS=$ac_save_LIBS
11971 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11972 do
11973 # Don't even attempt the hair of trying to link an X program!
11974 for ac_extension in a so sl dylib la dll; do
11975 if test -r "$ac_dir/libX11.$ac_extension"; then
11976 ac_x_libraries=$ac_dir
11977 break 2
11978 fi
11979 done
11980 done
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 fi # $ac_x_libraries = no
11985
11986 case $ac_x_includes,$ac_x_libraries in #(
11987 no,* | *,no | *\'*)
11988 # Didn't find X, or a directory has "'" in its name.
11989 ac_cv_have_x="have_x=no";; #(
11990 *)
11991 # Record where we found X for the cache.
11992 ac_cv_have_x="have_x=yes\
11993 ac_x_includes='$ac_x_includes'\
11994 ac_x_libraries='$ac_x_libraries'"
11995 esac
11996 fi
11997 ;; #(
11998 *) have_x=yes;;
11999 esac
12000 eval "$ac_cv_have_x"
12001 fi # $with_x != no
12002
12003 if test "$have_x" != yes; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12005 $as_echo "$have_x" >&6; }
12006 no_x=yes
12007 else
12008 # If each of the values was on the command line, it overrides each guess.
12009 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12010 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12011 # Update the cache value to reflect the command line values.
12012 ac_cv_have_x="have_x=yes\
12013 ac_x_includes='$x_includes'\
12014 ac_x_libraries='$x_libraries'"
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12016 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12017 fi
12018
12019 if test "$no_x" = yes; then
12020 # Not all programs may use this symbol, but it does not hurt to define it.
12021
12022 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12023
12024 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12025 else
12026 if test -n "$x_includes"; then
12027 X_CFLAGS="$X_CFLAGS -I$x_includes"
12028 fi
12029
12030 # It would also be nice to do this for all -L options, not just this one.
12031 if test -n "$x_libraries"; then
12032 X_LIBS="$X_LIBS -L$x_libraries"
12033 # For Solaris; some versions of Sun CC require a space after -R and
12034 # others require no space. Words are not sufficient . . . .
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12036 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12037 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12038 ac_xsave_c_werror_flag=$ac_c_werror_flag
12039 ac_c_werror_flag=yes
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 int
12044 main ()
12045 {
12046
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 X_LIBS="$X_LIBS -R$x_libraries"
12055 else
12056 LIBS="$ac_xsave_LIBS -R $x_libraries"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060 int
12061 main ()
12062 {
12063
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"; then :
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 X_LIBS="$X_LIBS -R $x_libraries"
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12074 $as_echo "neither works" >&6; }
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 ac_c_werror_flag=$ac_xsave_c_werror_flag
12082 LIBS=$ac_xsave_LIBS
12083 fi
12084
12085 # Check for system-dependent libraries X programs must link with.
12086 # Do this before checking for the system-independent R6 libraries
12087 # (-lICE), since we may need -lsocket or whatever for X linking.
12088
12089 if test "$ISC" = yes; then
12090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12091 else
12092 # Martyn Johnson says this is needed for Ultrix, if the X
12093 # libraries were built with DECnet support. And Karl Berry says
12094 # the Alpha needs dnet_stub (dnet does not exist).
12095 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char XOpenDisplay ();
12106 int
12107 main ()
12108 {
12109 return XOpenDisplay ();
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"; then :
12115
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12118 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12119 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-ldnet $LIBS"
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 char dnet_ntoa ();
12134 int
12135 main ()
12136 {
12137 return dnet_ntoa ();
12138 ;
12139 return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_link "$LINENO"; then :
12143 ac_cv_lib_dnet_dnet_ntoa=yes
12144 else
12145 ac_cv_lib_dnet_dnet_ntoa=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12152 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12153 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
12154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12155 fi
12156
12157 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12159 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12160 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-ldnet_stub $LIBS"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char dnet_ntoa ();
12175 int
12176 main ()
12177 {
12178 return dnet_ntoa ();
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12185 else
12186 ac_cv_lib_dnet_stub_dnet_ntoa=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12193 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12194 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
12195 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12196 fi
12197
12198 fi
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS="$ac_xsave_LIBS"
12203
12204 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
12205 # to get the SysV transport functions.
12206 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12207 # needs -lnsl.
12208 # The nsl library prevents programs from opening the X display
12209 # on Irix 5.2, according to T.E. Dickey.
12210 # The functions gethostbyname, getservbyname, and inet_addr are
12211 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12212 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12213 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12214
12215 fi
12216
12217 if test $ac_cv_func_gethostbyname = no; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12219 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12220 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 ac_check_lib_save_LIBS=$LIBS
12224 LIBS="-lnsl $LIBS"
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227
12228 /* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 char gethostbyname ();
12235 int
12236 main ()
12237 {
12238 return gethostbyname ();
12239 ;
12240 return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_lib_nsl_gethostbyname=yes
12245 else
12246 ac_cv_lib_nsl_gethostbyname=no
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12253 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12254 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12256 fi
12257
12258 if test $ac_cv_lib_nsl_gethostbyname = no; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12260 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12261 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-lbsd $LIBS"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char gethostbyname ();
12276 int
12277 main ()
12278 {
12279 return gethostbyname ();
12280 ;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_bsd_gethostbyname=yes
12286 else
12287 ac_cv_lib_bsd_gethostbyname=no
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12294 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12295 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
12296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12297 fi
12298
12299 fi
12300 fi
12301
12302 # [email protected] says without -lsocket,
12303 # socket/setsockopt and other routines are undefined under SCO ODT
12304 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12305 # on later versions), says Simon Leinen: it contains gethostby*
12306 # variants that don't use the name server (or something). -lsocket
12307 # must be given before -lnsl if both are needed. We assume that
12308 # if connect needs -lnsl, so does gethostbyname.
12309 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12310 if test "x$ac_cv_func_connect" = xyes; then :
12311
12312 fi
12313
12314 if test $ac_cv_func_connect = no; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12316 $as_echo_n "checking for connect in -lsocket... " >&6; }
12317 if ${ac_cv_lib_socket_connect+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char connect ();
12332 int
12333 main ()
12334 {
12335 return connect ();
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_lib_socket_connect=yes
12342 else
12343 ac_cv_lib_socket_connect=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12350 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12351 if test "x$ac_cv_lib_socket_connect" = xyes; then :
12352 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12353 fi
12354
12355 fi
12356
12357 # Guillermo Gomez says -lposix is necessary on A/UX.
12358 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12359 if test "x$ac_cv_func_remove" = xyes; then :
12360
12361 fi
12362
12363 if test $ac_cv_func_remove = no; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12365 $as_echo_n "checking for remove in -lposix... " >&6; }
12366 if ${ac_cv_lib_posix_remove+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lposix $LIBS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char remove ();
12381 int
12382 main ()
12383 {
12384 return remove ();
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_lib_posix_remove=yes
12391 else
12392 ac_cv_lib_posix_remove=no
12393 fi
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12397 fi
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12399 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12400 if test "x$ac_cv_lib_posix_remove" = xyes; then :
12401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12402 fi
12403
12404 fi
12405
12406 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12407 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12408 if test "x$ac_cv_func_shmat" = xyes; then :
12409
12410 fi
12411
12412 if test $ac_cv_func_shmat = no; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12414 $as_echo_n "checking for shmat in -lipc... " >&6; }
12415 if ${ac_cv_lib_ipc_shmat+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lipc $LIBS"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char shmat ();
12430 int
12431 main ()
12432 {
12433 return shmat ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 ac_cv_lib_ipc_shmat=yes
12440 else
12441 ac_cv_lib_ipc_shmat=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12448 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12449 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
12450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12451 fi
12452
12453 fi
12454 fi
12455
12456 # Check for libraries that X11R6 Xt/Xaw programs need.
12457 ac_save_LDFLAGS=$LDFLAGS
12458 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12459 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12460 # check for ICE first), but we must link in the order -lSM -lICE or
12461 # we get undefined symbols. So assume we have SM if we have ICE.
12462 # These have to be linked with before -lX11, unlike the other
12463 # libraries we check for below, so use a different variable.
12464 # John Interrante, Karl Berry
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12466 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12467 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char IceConnectionNumber ();
12482 int
12483 main ()
12484 {
12485 return IceConnectionNumber ();
12486 ;
12487 return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_lib_ICE_IceConnectionNumber=yes
12492 else
12493 ac_cv_lib_ICE_IceConnectionNumber=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 LIBS=$ac_check_lib_save_LIBS
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12500 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12501 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
12502 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12503 fi
12504
12505 LDFLAGS=$ac_save_LDFLAGS
12506
12507 fi
12508
12509 if test -z "${no_x}"; then
12510 $as_echo "#define HAVE_X11 1" >>confdefs.h
12511
12512 x_lib_base="-lXaw -lXmu -lXi -lXt -lXext -lX11"
12513 x_lib="${x_lib_path} ${X_LIBS} ${X_EXTRA_LIBS} ${X_PRE_LIBS} ${x_lib_base}"
12514 else
12515 x_lib=""
12516 fi
12517
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------- begin processing SG configure options ---------" >&5
12520 $as_echo "----------- begin processing SG configure options ---------" >&6; }
12521
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want debug compilation" >&5
12523 $as_echo_n "checking whether you want debug compilation... " >&6; }
12524 # Check whether --enable-vdebug was given.
12525 if test "${enable_vdebug+set}" = set; then :
12526 enableval=$enable_vdebug; vdebug_use="yes"
12527 else
12528 vdebug_use=""
12529
12530 fi
12531
12532 if test -z "${vdebug_use}"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12537 $as_echo "yes" >&6; }
12538 $as_echo "#define HAVE_DEBUG 1" >>confdefs.h
12539
12540 fi
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want pedantic ANSI compilation" >&5
12543 $as_echo_n "checking whether you want pedantic ANSI compilation... " >&6; }
12544 # Check whether --enable-pansi was given.
12545 if test "${enable_pansi+set}" = set; then :
12546 enableval=$enable_pansi; pansi_use="yes"
12547 else
12548 pansi_use=""
12549
12550 fi
12551
12552 if test -z "${pansi_use}"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 wall=""
12556 wall_pedantic=""
12557 wall_pedantic_ansi=""
12558 pedantic_ansi=""
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12561 $as_echo "yes" >&6; }
12562 wall="-Wall"
12563 wall_pedantic="-Wall -pedantic"
12564 wall_pedantic_ansi="-Wall -pedantic -ansi"
12565 pedantic_ansi="-pedantic -ansi"
12566 fi
12567
12568
12569
12570
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want profiling" >&5
12573 $as_echo_n "checking whether you want profiling... " >&6; }
12574 # Check whether --enable-gprof was given.
12575 if test "${enable_gprof+set}" = set; then :
12576 enableval=$enable_gprof; gprof_use="yes"
12577 else
12578 gprof_use=""
12579
12580 fi
12581
12582 if test -z "${gprof_use}"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585 profile=""
12586 profile_lib=""
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590 profile="-pg"
12591 profile_lib="-pg"
12592 fi
12593
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want ElectricFence" >&5
12597 $as_echo_n "checking whether you want ElectricFence... " >&6; }
12598 # Check whether --enable-efence was given.
12599 if test "${enable_efence+set}" = set; then :
12600 enableval=$enable_efence; efence_use="yes"
12601 else
12602 efence_use=""
12603
12604 fi
12605
12606 if test -z "${efence_use}"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 zfence="";
12610 zfence_lib="";
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ...poking around for it" >&5
12613 $as_echo "yes ...poking around for it" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
12615 $as_echo_n "checking for main in -lefence... " >&6; }
12616 if ${ac_cv_lib_efence_main+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-lefence $LIBS"
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623
12624
12625 int
12626 main ()
12627 {
12628 return main ();
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 ac_cv_lib_efence_main=yes
12635 else
12636 ac_cv_lib_efence_main=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
12643 $as_echo "$ac_cv_lib_efence_main" >&6; }
12644 if test "x$ac_cv_lib_efence_main" = xyes; then :
12645 efence_use="yes";zfence="zfence";zfence_lib="-lefence"
12646 else
12647 efence_use="";zfence="";zfence_lib=""
12648 fi
12649
12650 fi
12651
12652
12653
12654
12655 motif_inc="";
12656 motif_lib="";
12657 motif_use="";
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to disable Motif" >&5
12659 $as_echo_n "checking whether you want to disable Motif... " >&6; }
12660 # Check whether --enable-motif was given.
12661 if test "${enable_motif+set}" = set; then :
12662 enableval=$enable_motif; motif_use=""
12663 else
12664 motif_use="yes"
12665 fi
12666
12667
12668 if test -z "${motif_use}"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes -- Motif DISABLED" >&5
12670 $as_echo "yes -- Motif DISABLED" >&6; }
12671 motif_use="";
12672 elif test -n "${no_x}"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
12674 $as_echo "no ...poking around" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: You do not have X...Motif DISABLED" >&5
12676 $as_echo "You do not have X...Motif DISABLED" >&6; }
12677 motif_use="";
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
12680 $as_echo "no ...poking around" >&6; }
12681 motif_use="";
12682
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_MOTIF_INCLUDE" >&5
12684 $as_echo_n "checking whether your environment defines FETK_MOTIF_INCLUDE... " >&6; }
12685 if test -n "${FETK_MOTIF_INCLUDE}"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12687 $as_echo "yes" >&6; }
12688 motif_inc_path="-I${FETK_MOTIF_INCLUDE} ";
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
12693 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
12694 if test -n "${FETK_INCLUDE}"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12696 $as_echo "yes" >&6; }
12697 motif_inc_path="-I${FETK_INCLUDE} ";
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 motif_inc_path="";
12702 fi
12703 fi
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_MOTIF_LIBRARY" >&5
12706 $as_echo_n "checking whether your environment defines FETK_MOTIF_LIBRARY... " >&6; }
12707 if test -n "${FETK_MOTIF_LIBRARY}"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710 motif_lib_path="-L${FETK_MOTIF_LIBRARY} ";
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
12715 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
12716 if test -n "${FETK_LIBRARY}"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718 $as_echo "yes" >&6; }
12719 motif_lib_path="-L${FETK_LIBRARY} ";
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 motif_lib_path="";
12724 fi
12725 fi
12726
12727 LDFLAGS_SAVE=${LDFLAGS};
12728 CPPFLAGS_SAVE=${CPPFLAGS};
12729 LDFLAGS=${motif_lib_path};
12730 CPPFLAGS=${motif_inc_path};
12731 motif_use="";
12732 ac_fn_c_check_header_mongrel "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default"
12733 if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
12734 motif_use="yes";motif_inc="${motif_inc_path}"
12735 else
12736 motif_use="";motif_inc=""
12737 fi
12738
12739
12740 if test -n "${motif_use}"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetColors in -lXm" >&5
12742 $as_echo_n "checking for XmGetColors in -lXm... " >&6; }
12743 if ${ac_cv_lib_Xm_XmGetColors+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 ac_check_lib_save_LIBS=$LIBS
12747 LIBS="-lXm ${motif_lib_path}-lXm ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 char XmGetColors ();
12758 int
12759 main ()
12760 {
12761 return XmGetColors ();
12762 ;
12763 return 0;
12764 }
12765 _ACEOF
12766 if ac_fn_c_try_link "$LINENO"; then :
12767 ac_cv_lib_Xm_XmGetColors=yes
12768 else
12769 ac_cv_lib_Xm_XmGetColors=no
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12773 LIBS=$ac_check_lib_save_LIBS
12774 fi
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetColors" >&5
12776 $as_echo "$ac_cv_lib_Xm_XmGetColors" >&6; }
12777 if test "x$ac_cv_lib_Xm_XmGetColors" = xyes; then :
12778 motif_use="yes";motif_lib="${motif_lib_path}-lXm"
12779 else
12780 motif_use="";motif_lib=""
12781 fi
12782
12783 fi
12784 if test -z "${motif_use}"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Motif library OR header missing ...Motif DISABLED **" >&5
12786 $as_echo "** Motif library OR header missing ...Motif DISABLED **" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Motif library AND header found ...will USE **" >&5
12789 $as_echo "** Motif library AND header found ...will USE **" >&6; }
12790 $as_echo "#define HAVE_MOTIF 1" >>confdefs.h
12791
12792 fi
12793
12794 LDFLAGS=${LDFLAGS_SAVE};
12795 CPPFLAGS=${CPPFLAGS_SAVE};
12796 fi
12797
12798
12799
12800 if test x$motif_use = xyes; then
12801 EXISTS_MOTIF_TRUE=
12802 EXISTS_MOTIF_FALSE='#'
12803 else
12804 EXISTS_MOTIF_TRUE='#'
12805 EXISTS_MOTIF_FALSE=
12806 fi
12807
12808
12809
12810 gl_inc="";
12811 gl_lib="";
12812 gl="";
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want force build of GL lib" >&5
12814 $as_echo_n "checking whether you want force build of GL lib... " >&6; }
12815 # Check whether --enable-glforce was given.
12816 if test "${enable_glforce+set}" = set; then :
12817 enableval=$enable_glforce; gl="gl"
12818 else
12819 gl=""
12820 fi
12821
12822
12823 if test -n "${gl}"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12825 $as_echo "yes" >&6; }
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
12828 $as_echo "no ...poking around" >&6; }
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GL_INCLUDE" >&5
12831 $as_echo_n "checking whether your environment defines FETK_GL_INCLUDE... " >&6; }
12832 if test -n "${FETK_GL_INCLUDE}"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12834 $as_echo "yes" >&6; }
12835 gl_inc_path="-I${FETK_GL_INCLUDE} ";
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 gl_inc_path="";
12840 fi
12841 if test -n "${FETK_INCLUDE}"; then
12842 gl_inc_path="${gl_inc_path} -I${FETK_INCLUDE} ";
12843 fi
12844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GL_LIBRARY" >&5
12846 $as_echo_n "checking whether your environment defines FETK_GL_LIBRARY... " >&6; }
12847 if test -n "${FETK_GL_LIBRARY}"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849 $as_echo "yes" >&6; }
12850 gl_lib_path="-L${FETK_GL_LIBRARY} ";
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 gl_lib_path="";
12855 fi
12856 if test -n "${FETK_LIBRARY}"; then
12857 gl_lib_path="${gl_lib_path} -L${FETK_LIBRARY} ";
12858 fi
12859
12860 LDFLAGS_SAVE=${LDFLAGS};
12861 CPPFLAGS_SAVE=${CPPFLAGS};
12862 LDFLAGS=${gl_lib_path};
12863 CPPFLAGS=${gl_inc_path};
12864 gl_use="";
12865 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
12866 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
12867 gl_use="yes";gl_inc="${gl_inc_path}"
12868 else
12869 gl_use="";gl_inc=""
12870 fi
12871
12872
12873 if test -n "${gl_use}"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you need the MacOSX hack for OpenGL" >&5
12875 $as_echo_n "checking whether you need the MacOSX hack for OpenGL... " >&6; }
12876 if test "${host_vendor}" == "apple"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878 $as_echo "yes" >&6; }
12879 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"
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 gl_lib_hack="";
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glPushMatrix in -lGL" >&5
12886 $as_echo_n "checking for glPushMatrix in -lGL... " >&6; }
12887 if ${ac_cv_lib_GL_glPushMatrix+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-lGL ${gl_lib_path}-lGL ${gl_lib_hack} ${motif_lib} ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char glPushMatrix ();
12902 int
12903 main ()
12904 {
12905 return glPushMatrix ();
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_lib_GL_glPushMatrix=yes
12912 else
12913 ac_cv_lib_GL_glPushMatrix=no
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glPushMatrix" >&5
12920 $as_echo "$ac_cv_lib_GL_glPushMatrix" >&6; }
12921 if test "x$ac_cv_lib_GL_glPushMatrix" = xyes; then :
12922 gl_use="yes";gl_lib="${gl_lib_path}-lGL ${gl_lib_hack}"
12923 else
12924 gl_use="";gl_lib=""
12925 fi
12926
12927 fi
12928 if test -z "${gl_use}"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GL library OR header missing ...will BUILD **" >&5
12930 $as_echo "** GL library OR header missing ...will BUILD **" >&6; }
12931 gl="gl";
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GL library AND header found ...will USE **" >&5
12934 $as_echo "** GL library AND header found ...will USE **" >&6; }
12935 gl="";
12936 fi
12937
12938 LDFLAGS=${LDFLAGS_SAVE};
12939 CPPFLAGS=${CPPFLAGS_SAVE};
12940 fi
12941
12942
12943
12944
12945 if test x$gl = xgl; then
12946 BUILD_GL_TRUE=
12947 BUILD_GL_FALSE='#'
12948 else
12949 BUILD_GL_TRUE='#'
12950 BUILD_GL_FALSE=
12951 fi
12952
12953
12954
12955 glu_inc="";
12956 glu_lib="";
12957 glu="";
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want force build of GLU lib" >&5
12959 $as_echo_n "checking whether you want force build of GLU lib... " >&6; }
12960 # Check whether --enable-gluforce was given.
12961 if test "${enable_gluforce+set}" = set; then :
12962 enableval=$enable_gluforce; glu="glu"
12963 else
12964 glu=""
12965 fi
12966
12967
12968 if test -n "${glu}"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12970 $as_echo "yes" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
12973 $as_echo "no ...poking around" >&6; }
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLU_INCLUDE" >&5
12976 $as_echo_n "checking whether your environment defines FETK_GLU_INCLUDE... " >&6; }
12977 if test -n "${FETK_GLU_INCLUDE}"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979 $as_echo "yes" >&6; }
12980 glu_inc_path="-I${FETK_GLU_INCLUDE} ";
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 glu_inc_path="";
12985 fi
12986 if test -n "${FETK_INCLUDE}"; then
12987 glu_inc_path="${glu_inc_path} -I${FETK_INCLUDE} ";
12988 fi
12989
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLU_LIBRARY" >&5
12991 $as_echo_n "checking whether your environment defines FETK_GLU_LIBRARY... " >&6; }
12992 if test -n "${FETK_GLU_LIBRARY}"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12994 $as_echo "yes" >&6; }
12995 glu_lib_path="-L${FETK_GLU_LIBRARY} ";
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999 glu_lib_path="";
13000 fi
13001 if test -n "${FETK_LIBRARY}"; then
13002 glu_lib_path="${glu_lib_path} -L${FETK_LIBRARY} ";
13003 fi
13004
13005 LDFLAGS_SAVE=${LDFLAGS};
13006 CPPFLAGS_SAVE=${CPPFLAGS};
13007 LDFLAGS=${glu_lib_path};
13008 CPPFLAGS=${glu_inc_path};
13009 glu_use="";
13010 ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
13011 if test "x$ac_cv_header_GL_glu_h" = xyes; then :
13012 glu_use="yes";glu_inc="${glu_inc_path}"
13013 else
13014 glu_use="";glu_inc=""
13015 fi
13016
13017
13018 if test -n "${glu_use}"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
13020 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
13021 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-lGLU ${glu_lib_path}-lGLU ${gl_lib} ${motif_lib} ${x_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${objc_lib} ${math_lib} $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char gluLookAt ();
13036 int
13037 main ()
13038 {
13039 return gluLookAt ();
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_lib_GLU_gluLookAt=yes
13046 else
13047 ac_cv_lib_GLU_gluLookAt=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
13054 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
13055 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
13056 glu_use="yes";glu_lib="${glu_lib_path}-lGLU"
13057 else
13058 glu_use="";glu_lib=""
13059 fi
13060
13061 fi
13062 if test -z "${glu_use}"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLU library OR header missing ...will BUILD **" >&5
13064 $as_echo "** GLU library OR header missing ...will BUILD **" >&6; }
13065 glu="glu";
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLU library AND header found ...will USE **" >&5
13068 $as_echo "** GLU library AND header found ...will USE **" >&6; }
13069 glu="";
13070 fi
13071
13072 LDFLAGS=${LDFLAGS_SAVE};
13073 CPPFLAGS=${CPPFLAGS_SAVE};
13074 fi
13075
13076
13077
13078
13079 if test x$glu = xglu; then
13080 BUILD_GLU_TRUE=
13081 BUILD_GLU_FALSE='#'
13082 else
13083 BUILD_GLU_TRUE='#'
13084 BUILD_GLU_FALSE=
13085 fi
13086
13087
13088
13089 glw_inc="";
13090 glw_lib="";
13091 glw="";
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want force build of GLw lib" >&5
13093 $as_echo_n "checking whether you want force build of GLw lib... " >&6; }
13094 # Check whether --enable-glwforce was given.
13095 if test "${enable_glwforce+set}" = set; then :
13096 enableval=$enable_glwforce; glw="glw"
13097 else
13098 glw=""
13099 fi
13100
13101
13102 if test -n "${glw}"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 if test -n "${no_x}"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: You do not have X...GLw DISABLED" >&5
13107 $as_echo "You do not have X...GLw DISABLED" >&6; }
13108 glw=""
13109 fi
13110 elif test -n "${no_x}"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
13112 $as_echo "no ...poking around" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: You do not have X...GLw DISABLED" >&5
13114 $as_echo "You do not have X...GLw DISABLED" >&6; }
13115 glw=""
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ...poking around" >&5
13118 $as_echo "no ...poking around" >&6; }
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLW_INCLUDE" >&5
13121 $as_echo_n "checking whether your environment defines FETK_GLW_INCLUDE... " >&6; }
13122 if test -n "${FETK_GLW_INCLUDE}"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13125 glw_inc_path="-I${FETK_GLW_INCLUDE} ";
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 glw_inc_path="";
13130 fi
13131 if test -n "${FETK_INCLUDE}"; then
13132 glw_inc_path="${glw_inc_path} -I${FETK_INCLUDE} ";
13133 fi
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_GLW_LIBRARY" >&5
13136 $as_echo_n "checking whether your environment defines FETK_GLW_LIBRARY... " >&6; }
13137 if test -n "${FETK_GLW_LIBRARY}"; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139 $as_echo "yes" >&6; }
13140 glw_lib_path="-L${FETK_GLW_LIBRARY} ";
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13144 glw_lib_path="";
13145 fi
13146 if test -n "${FETK_LIBRARY}"; then
13147 glw_lib_path="${glw_lib_path} -L${FETK_LIBRARY} ";
13148 fi
13149
13150 LDFLAGS_SAVE=${LDFLAGS};
13151 CPPFLAGS_SAVE=${CPPFLAGS};
13152 LDFLAGS=${glw_lib_path};
13153 CPPFLAGS=${glw_inc_path};
13154 glw_use="";
13155 ac_fn_c_check_header_mongrel "$LINENO" "GL/GLwDrawA.h" "ac_cv_header_GL_GLwDrawA_h" "$ac_includes_default"
13156 if test "x$ac_cv_header_GL_GLwDrawA_h" = xyes; then :
13157 glw_use="yes";glw_inc="${glw_inc_path}"
13158 else
13159 glw_use="";glw_inc=""
13160 fi
13161
13162
13163 if test -z "${glw_use}"; then
13164 ac_fn_c_check_header_mongrel "$LINENO" "GLw/GLwDrawA.h" "ac_cv_header_GLw_GLwDrawA_h" "$ac_includes_default"
13165 if test "x$ac_cv_header_GLw_GLwDrawA_h" = xyes; then :
13166 glw_use="yes";glw_inc="${glw_inc_path}"
13167 else
13168 glw_use="";glw_inc=""
13169 fi
13170
13171
13172 fi
13173 if test -n "${glw_use}"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLwDrawingAreaSwapBuffers in -lGLw" >&5
13175 $as_echo_n "checking for GLwDrawingAreaSwapBuffers in -lGLw... " >&6; }
13176 if ${ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 ac_check_lib_save_LIBS=$LIBS
13180 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"
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183
13184 /* Override any GCC internal prototype to avoid an error.
13185 Use char because int might match the return type of a GCC
13186 builtin and then its argument prototype would still apply. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 char GLwDrawingAreaSwapBuffers ();
13191 int
13192 main ()
13193 {
13194 return GLwDrawingAreaSwapBuffers ();
13195 ;
13196 return 0;
13197 }
13198 _ACEOF
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers=yes
13201 else
13202 ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers=no
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 LIBS=$ac_check_lib_save_LIBS
13207 fi
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" >&5
13209 $as_echo "$ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" >&6; }
13210 if test "x$ac_cv_lib_GLw_GLwDrawingAreaSwapBuffers" = xyes; then :
13211 glw_use="yes";glw_lib="${glw_lib_path}-lGLw"
13212 else
13213 glw_use="";glw_lib=""
13214 fi
13215
13216 fi
13217 if test -z "${glw_use}"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLw library OR header missing ...will BUILD **" >&5
13219 $as_echo "** GLw library OR header missing ...will BUILD **" >&6; }
13220 glw="glw";
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLw library AND header found ...will USE **" >&5
13223 $as_echo "** GLw library AND header found ...will USE **" >&6; }
13224 glw="";
13225 fi
13226
13227 LDFLAGS=${LDFLAGS_SAVE};
13228 CPPFLAGS=${CPPFLAGS_SAVE};
13229 fi
13230
13231
13232
13233
13234 if test x$glw = xglw; then
13235 BUILD_GLW_TRUE=
13236 BUILD_GLW_FALSE='#'
13237 else
13238 BUILD_GLW_TRUE='#'
13239 BUILD_GLW_FALSE=
13240 fi
13241
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ------------ end processing SG configure options ----------" >&5
13244 $as_echo "------------ end processing SG configure options ----------" >&6; }
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin configuring for MALOC linkage ------------" >&5
13247 $as_echo "---------- begin configuring for MALOC linkage ------------" >&6; }
13248
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
13251 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
13252 if test -n "${FETK_INCLUDE}"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13254 $as_echo "yes" >&6; }
13255 maloc_inc_path="-I${FETK_INCLUDE} ";
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13259 maloc_inc_path="-I${HOME}/include ";
13260 fi
13261
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
13263 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
13264 if test -n "${FETK_LIBRARY}"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267 maloc_lib_path="-L${FETK_LIBRARY} ";
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13271 maloc_lib_path="-L${HOME}/lib ";
13272 fi
13273
13274 LDFLAGS_SAVE=${LDFLAGS};
13275 CPPFLAGS_SAVE=${CPPFLAGS};
13276 LDFLAGS=${maloc_lib_path};
13277 CPPFLAGS=${maloc_inc_path};
13278 maloc_found="";
13279 ac_fn_c_check_header_mongrel "$LINENO" "maloc/maloc.h" "ac_cv_header_maloc_maloc_h" "$ac_includes_default"
13280 if test "x$ac_cv_header_maloc_maloc_h" = xyes; then :
13281 maloc_found="yes";maloc_inc="${maloc_inc_path}"
13282 else
13283 maloc_found="";maloc_inc=""
13284 fi
13285
13286
13287 if test -n "${maloc_found}"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_link in -lmaloc" >&5
13289 $as_echo_n "checking for maloc_link in -lmaloc... " >&6; }
13290 if ${ac_cv_lib_maloc_maloc_link+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-lmaloc ${maloc_lib_path}-lmaloc ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297
13298 /* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 char maloc_link ();
13305 int
13306 main ()
13307 {
13308 return maloc_link ();
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_link "$LINENO"; then :
13314 ac_cv_lib_maloc_maloc_link=yes
13315 else
13316 ac_cv_lib_maloc_maloc_link=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319 conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_link" >&5
13323 $as_echo "$ac_cv_lib_maloc_maloc_link" >&6; }
13324 if test "x$ac_cv_lib_maloc_maloc_link" = xyes; then :
13325 maloc_found="yes";maloc_lib="${maloc_lib_path}-lmaloc"
13326 else
13327 maloc_found="";maloc_lib=""
13328 fi
13329
13330 fi
13331 if test -z "${maloc_found}"; then
13332 as_fn_error $? "MALOC libraries OR headers missing ...EXITING ON ERROR" "$LINENO" 5
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MALOC libraries AND headers were found ...rocking on..." >&5
13335 $as_echo "MALOC libraries AND headers were found ...rocking on..." >&6; }
13336 fi
13337
13338 LDFLAGS=${LDFLAGS_SAVE};
13339 CPPFLAGS=${CPPFLAGS_SAVE};
13340
13341
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_needs_rl in -lmaloc" >&5
13344 $as_echo_n "checking for maloc_needs_rl in -lmaloc... " >&6; }
13345 if ${ac_cv_lib_maloc_maloc_needs_rl+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-lmaloc ${maloc_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char maloc_needs_rl ();
13360 int
13361 main ()
13362 {
13363 return maloc_needs_rl ();
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_lib_maloc_maloc_needs_rl=yes
13370 else
13371 ac_cv_lib_maloc_maloc_needs_rl=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_needs_rl" >&5
13378 $as_echo "$ac_cv_lib_maloc_maloc_needs_rl" >&6; }
13379 if test "x$ac_cv_lib_maloc_maloc_needs_rl" = xyes; then :
13380 rl_use="yes"
13381 else
13382 rl_use=""
13383 fi
13384
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- end configuring for MALOC linkage --------------" >&5
13387 $as_echo "---------- end configuring for MALOC linkage --------------" >&6; }
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405 cwd=`pwd`
13406 cd ${srcdir}
13407 TOPDIR=`pwd`
13408 cd ${cwd}
13409
13410
13411 # Check whether --with-doxygen was given.
13412 if test "${with_doxygen+set}" = set; then :
13413 withval=$with_doxygen; with_doxygen=$withval
13414 else
13415 with_doxygen=no
13416 fi
13417
13418
13419 if test "$with_doxygen" = "no"; then
13420 # Extract the first word of "doxygen", so it can be a program name with args.
13421 set dummy doxygen; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_path_doxygen_path+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 case $doxygen_path in
13428 [\\/]* | ?:[\\/]*)
13429 ac_cv_path_doxygen_path="$doxygen_path" # Let the user override the test with a path.
13430 ;;
13431 *)
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13439 ac_cv_path_doxygen_path="$as_dir/$ac_word$ac_exec_ext"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 ;;
13448 esac
13449 fi
13450 doxygen_path=$ac_cv_path_doxygen_path
13451 if test -n "$doxygen_path"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_path" >&5
13453 $as_echo "$doxygen_path" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459
13460 if test -z "${doxygen_path}"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find doxygen!" >&5
13462 $as_echo "$as_me: WARNING: Unable to find doxygen!" >&2;}
13463 fi
13464 else
13465 doxygen_path=$with_doxygen
13466 fi
13467
13468
13469 # Check whether --with-dot was given.
13470 if test "${with_dot+set}" = set; then :
13471 withval=$with_dot; with_dot=$withval
13472 else
13473 with_dot=no
13474 fi
13475
13476
13477 if test "$with_dot" = "no"; then
13478 # Extract the first word of "dot", so it can be a program name with args.
13479 set dummy dot; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_dot_path+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 case $dot_path in
13486 [\\/]* | ?:[\\/]*)
13487 ac_cv_path_dot_path="$dot_path" # Let the user override the test with a path.
13488 ;;
13489 *)
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13492 do
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13497 ac_cv_path_dot_path="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13500 fi
13501 done
13502 done
13503 IFS=$as_save_IFS
13504
13505 ;;
13506 esac
13507 fi
13508 dot_path=$ac_cv_path_dot_path
13509 if test -n "$dot_path"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dot_path" >&5
13511 $as_echo "$dot_path" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515 fi
13516
13517
13518 if test -z "${dot_path}"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find dot!" >&5
13520 $as_echo "$as_me: WARNING: Unable to find dot!" >&2;}
13521 fi
13522 else
13523 dot_path=$with_dot
13524 fi
13525
13526 if test "$dot_path" = ""; then
13527 sed -e 's%@have_dot@%'NO'%' $TOPDIR/doc/doxygen/sg.dox.in > $TOPDIR/doc/doxygen/sg.dox.in.temp
13528 sed -e 's%@dot_path@%''%' $TOPDIR/doc/doxygen/sg.dox.in.temp > $TOPDIR/doc/doxygen/sg.dox.in.temp.2
13529 else
13530 sed -e 's%@have_dot@%'YES'%' $TOPDIR/doc/doxygen/sg.dox.in > $TOPDIR/doc/doxygen/sg.dox.in.temp
13531 sed -e 's%@dot_path@%'${dot_path}'%' $TOPDIR/doc/doxygen/sg.dox.in.temp > $TOPDIR/doc/doxygen/sg.dox.in.temp.2
13532 fi
13533
13534 sed -e 's%@topdir@%'${TOPDIR}'%' $TOPDIR/doc/doxygen/sg.dox.in.temp.2 > $TOPDIR/doc/doxygen/sg.dox
13535 rm -f $TOPDIR/doc/doxygen/sg.dox.in.temp*
13536
13537 if test "$doxygen_path" != ""; then
13538 MAKE_DOC_TRUE=
13539 MAKE_DOC_FALSE='#'
13540 else
13541 MAKE_DOC_TRUE='#'
13542 MAKE_DOC_FALSE=
13543 fi
13544
13545
13546
13547
13548
13549 ac_config_files="$ac_config_files Makefile src/Makefile src/base/Makefile src/gl/Makefile src/glu/Makefile src/glw/Makefile src/ogl/Makefile src/vgl/Makefile src/aaa_inc/Makefile src/aaa_inc/sg/Makefile src/aaa_inc/GL/Makefile src/aaa_lib/Makefile doc/Makefile doc/doxygen/Makefile"
13550
13551 cat >confcache <<\_ACEOF
13552 # This file is a shell script that caches the results of configure
13553 # tests run on this system so they can be shared between configure
13554 # scripts and configure runs, see configure's option --config-cache.
13555 # It is not useful on other systems. If it contains results you don't
13556 # want to keep, you may remove or edit it.
13557 #
13558 # config.status only pays attention to the cache file if you give it
13559 # the --recheck option to rerun configure.
13560 #
13561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13563 # following values.
13564
13565 _ACEOF
13566
13567 # The following way of writing the cache mishandles newlines in values,
13568 # but we know of no workaround that is simple, portable, and efficient.
13569 # So, we kill variables containing newlines.
13570 # Ultrix sh set writes to stderr and can't be redirected directly,
13571 # and sets the high bit in the cache file unless we assign to the vars.
13572 (
13573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13574 eval ac_val=\$$ac_var
13575 case $ac_val in #(
13576 *${as_nl}*)
13577 case $ac_var in #(
13578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13580 esac
13581 case $ac_var in #(
13582 _ | IFS | as_nl) ;; #(
13583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13584 *) { eval $ac_var=; unset $ac_var;} ;;
13585 esac ;;
13586 esac
13587 done
13588
13589 (set) 2>&1 |
13590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13591 *${as_nl}ac_space=\ *)
13592 # `set' does not quote correctly, so add quotes: double-quote
13593 # substitution turns \\\\ into \\, and sed turns \\ into \.
13594 sed -n \
13595 "s/'/'\\\\''/g;
13596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13597 ;; #(
13598 *)
13599 # `set' quotes correctly as required by POSIX, so do not add quotes.
13600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13601 ;;
13602 esac |
13603 sort
13604 ) |
13605 sed '
13606 /^ac_cv_env_/b end
13607 t clear
13608 :clear
13609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13610 t end
13611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13612 :end' >>confcache
13613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13614 if test -w "$cache_file"; then
13615 if test "x$cache_file" != "x/dev/null"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13617 $as_echo "$as_me: updating cache $cache_file" >&6;}
13618 if test ! -f "$cache_file" || test -h "$cache_file"; then
13619 cat confcache >"$cache_file"
13620 else
13621 case $cache_file in #(
13622 */* | ?:*)
13623 mv -f confcache "$cache_file"$$ &&
13624 mv -f "$cache_file"$$ "$cache_file" ;; #(
13625 *)
13626 mv -f confcache "$cache_file" ;;
13627 esac
13628 fi
13629 fi
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13633 fi
13634 fi
13635 rm -f confcache
13636
13637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13638 # Let make expand exec_prefix.
13639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13640
13641 DEFS=-DHAVE_CONFIG_H
13642
13643 ac_libobjs=
13644 ac_ltlibobjs=
13645 U=
13646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13647 # 1. Remove the extension, and $U if already installed.
13648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13651 # will be set to the directory where LIBOBJS objects are built.
13652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13654 done
13655 LIBOBJS=$ac_libobjs
13656
13657 LTLIBOBJS=$ac_ltlibobjs
13658
13659
13660 if test -n "$EXEEXT"; then
13661 am__EXEEXT_TRUE=
13662 am__EXEEXT_FALSE='#'
13663 else
13664 am__EXEEXT_TRUE='#'
13665 am__EXEEXT_FALSE=
13666 fi
13667
13668 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13669 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13671 fi
13672 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13673 as_fn_error $? "conditional \"AMDEP\" was never defined.
13674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13675 fi
13676 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13679 fi
13680 if test -z "${EXISTS_MOTIF_TRUE}" && test -z "${EXISTS_MOTIF_FALSE}"; then
13681 as_fn_error $? "conditional \"EXISTS_MOTIF\" was never defined.
13682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13683 fi
13684 if test -z "${BUILD_GL_TRUE}" && test -z "${BUILD_GL_FALSE}"; then
13685 as_fn_error $? "conditional \"BUILD_GL\" was never defined.
13686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13687 fi
13688 if test -z "${BUILD_GLU_TRUE}" && test -z "${BUILD_GLU_FALSE}"; then
13689 as_fn_error $? "conditional \"BUILD_GLU\" was never defined.
13690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691 fi
13692 if test -z "${BUILD_GLW_TRUE}" && test -z "${BUILD_GLW_FALSE}"; then
13693 as_fn_error $? "conditional \"BUILD_GLW\" was never defined.
13694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695 fi
13696 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
13697 as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
13698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699 fi
13700
13701 : "${CONFIG_STATUS=./config.status}"
13702 ac_write_fail=0
13703 ac_clean_files_save=$ac_clean_files
13704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13707 as_write_fail=0
13708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13709 #! $SHELL
13710 # Generated by $as_me.
13711 # Run this file to recreate the current configuration.
13712 # Compiler output produced by configure, useful for debugging
13713 # configure, is in config.log if it exists.
13714
13715 debug=false
13716 ac_cs_recheck=false
13717 ac_cs_silent=false
13718
13719 SHELL=\${CONFIG_SHELL-$SHELL}
13720 export SHELL
13721 _ASEOF
13722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13723 ## -------------------- ##
13724 ## M4sh Initialization. ##
13725 ## -------------------- ##
13726
13727 # Be more Bourne compatible
13728 DUALCASE=1; export DUALCASE # for MKS sh
13729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13730 emulate sh
13731 NULLCMD=:
13732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13733 # is contrary to our usage. Disable this feature.
13734 alias -g '${1+"$@"}'='"$@"'
13735 setopt NO_GLOB_SUBST
13736 else
13737 case `(set -o) 2>/dev/null` in #(
13738 *posix*) :
13739 set -o posix ;; #(
13740 *) :
13741 ;;
13742 esac
13743 fi
13744
13745
13746 as_nl='
13747 '
13748 export as_nl
13749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13753 # Prefer a ksh shell builtin over an external printf program on Solaris,
13754 # but without wasting forks for bash or zsh.
13755 if test -z "$BASH_VERSION$ZSH_VERSION" \
13756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13757 as_echo='print -r --'
13758 as_echo_n='print -rn --'
13759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13760 as_echo='printf %s\n'
13761 as_echo_n='printf %s'
13762 else
13763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13765 as_echo_n='/usr/ucb/echo -n'
13766 else
13767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13768 as_echo_n_body='eval
13769 arg=$1;
13770 case $arg in #(
13771 *"$as_nl"*)
13772 expr "X$arg" : "X\\(.*\\)$as_nl";
13773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13774 esac;
13775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13776 '
13777 export as_echo_n_body
13778 as_echo_n='sh -c $as_echo_n_body as_echo'
13779 fi
13780 export as_echo_body
13781 as_echo='sh -c $as_echo_body as_echo'
13782 fi
13783
13784 # The user is always right.
13785 if test "${PATH_SEPARATOR+set}" != set; then
13786 PATH_SEPARATOR=:
13787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13789 PATH_SEPARATOR=';'
13790 }
13791 fi
13792
13793
13794 # IFS
13795 # We need space, tab and new line, in precisely that order. Quoting is
13796 # there to prevent editors from complaining about space-tab.
13797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13798 # splitting by setting IFS to empty value.)
13799 IFS=" "" $as_nl"
13800
13801 # Find who we are. Look in the path if we contain no directory separator.
13802 as_myself=
13803 case $0 in #((
13804 *[\\/]* ) as_myself=$0 ;;
13805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13807 do
13808 IFS=$as_save_IFS
13809 test -z "$as_dir" && as_dir=.
13810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13811 done
13812 IFS=$as_save_IFS
13813
13814 ;;
13815 esac
13816 # We did not find ourselves, most probably we were run as `sh COMMAND'
13817 # in which case we are not to be found in the path.
13818 if test "x$as_myself" = x; then
13819 as_myself=$0
13820 fi
13821 if test ! -f "$as_myself"; then
13822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13823 exit 1
13824 fi
13825
13826 # Unset variables that we do not need and which cause bugs (e.g. in
13827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13828 # suppresses any "Segmentation fault" message there. '((' could
13829 # trigger a bug in pdksh 5.2.14.
13830 for as_var in BASH_ENV ENV MAIL MAILPATH
13831 do eval test x\${$as_var+set} = xset \
13832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13833 done
13834 PS1='$ '
13835 PS2='> '
13836 PS4='+ '
13837
13838 # NLS nuisances.
13839 LC_ALL=C
13840 export LC_ALL
13841 LANGUAGE=C
13842 export LANGUAGE
13843
13844 # CDPATH.
13845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13846
13847
13848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13849 # ----------------------------------------
13850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13852 # script with STATUS, using 1 if that was 0.
13853 as_fn_error ()
13854 {
13855 as_status=$1; test $as_status -eq 0 && as_status=1
13856 if test "$4"; then
13857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13859 fi
13860 $as_echo "$as_me: error: $2" >&2
13861 as_fn_exit $as_status
13862 } # as_fn_error
13863
13864
13865 # as_fn_set_status STATUS
13866 # -----------------------
13867 # Set $? to STATUS, without forking.
13868 as_fn_set_status ()
13869 {
13870 return $1
13871 } # as_fn_set_status
13872
13873 # as_fn_exit STATUS
13874 # -----------------
13875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13876 as_fn_exit ()
13877 {
13878 set +e
13879 as_fn_set_status $1
13880 exit $1
13881 } # as_fn_exit
13882
13883 # as_fn_unset VAR
13884 # ---------------
13885 # Portably unset VAR.
13886 as_fn_unset ()
13887 {
13888 { eval $1=; unset $1;}
13889 }
13890 as_unset=as_fn_unset
13891 # as_fn_append VAR VALUE
13892 # ----------------------
13893 # Append the text in VALUE to the end of the definition contained in VAR. Take
13894 # advantage of any shell optimizations that allow amortized linear growth over
13895 # repeated appends, instead of the typical quadratic growth present in naive
13896 # implementations.
13897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13898 eval 'as_fn_append ()
13899 {
13900 eval $1+=\$2
13901 }'
13902 else
13903 as_fn_append ()
13904 {
13905 eval $1=\$$1\$2
13906 }
13907 fi # as_fn_append
13908
13909 # as_fn_arith ARG...
13910 # ------------------
13911 # Perform arithmetic evaluation on the ARGs, and store the result in the
13912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13913 # must be portable across $(()) and expr.
13914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13915 eval 'as_fn_arith ()
13916 {
13917 as_val=$(( $* ))
13918 }'
13919 else
13920 as_fn_arith ()
13921 {
13922 as_val=`expr "$@" || test $? -eq 1`
13923 }
13924 fi # as_fn_arith
13925
13926
13927 if expr a : '\(a\)' >/dev/null 2>&1 &&
13928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13929 as_expr=expr
13930 else
13931 as_expr=false
13932 fi
13933
13934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13935 as_basename=basename
13936 else
13937 as_basename=false
13938 fi
13939
13940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13941 as_dirname=dirname
13942 else
13943 as_dirname=false
13944 fi
13945
13946 as_me=`$as_basename -- "$0" ||
13947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13948 X"$0" : 'X\(//\)$' \| \
13949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13950 $as_echo X/"$0" |
13951 sed '/^.*\/\([^/][^/]*\)\/*$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\/\(\/\/\)$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\/\(\/\).*/{
13960 s//\1/
13961 q
13962 }
13963 s/.*/./; q'`
13964
13965 # Avoid depending upon Character Ranges.
13966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13969 as_cr_digits='0123456789'
13970 as_cr_alnum=$as_cr_Letters$as_cr_digits
13971
13972 ECHO_C= ECHO_N= ECHO_T=
13973 case `echo -n x` in #(((((
13974 -n*)
13975 case `echo 'xy\c'` in
13976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13977 xy) ECHO_C='\c';;
13978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13979 ECHO_T=' ';;
13980 esac;;
13981 *)
13982 ECHO_N='-n';;
13983 esac
13984
13985 rm -f conf$$ conf$$.exe conf$$.file
13986 if test -d conf$$.dir; then
13987 rm -f conf$$.dir/conf$$.file
13988 else
13989 rm -f conf$$.dir
13990 mkdir conf$$.dir 2>/dev/null
13991 fi
13992 if (echo >conf$$.file) 2>/dev/null; then
13993 if ln -s conf$$.file conf$$ 2>/dev/null; then
13994 as_ln_s='ln -s'
13995 # ... but there are two gotchas:
13996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13998 # In both cases, we have to default to `cp -p'.
13999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14000 as_ln_s='cp -p'
14001 elif ln conf$$.file conf$$ 2>/dev/null; then
14002 as_ln_s=ln
14003 else
14004 as_ln_s='cp -p'
14005 fi
14006 else
14007 as_ln_s='cp -p'
14008 fi
14009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14010 rmdir conf$$.dir 2>/dev/null
14011
14012
14013 # as_fn_mkdir_p
14014 # -------------
14015 # Create "$as_dir" as a directory, including parents if necessary.
14016 as_fn_mkdir_p ()
14017 {
14018
14019 case $as_dir in #(
14020 -*) as_dir=./$as_dir;;
14021 esac
14022 test -d "$as_dir" || eval $as_mkdir_p || {
14023 as_dirs=
14024 while :; do
14025 case $as_dir in #(
14026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14027 *) as_qdir=$as_dir;;
14028 esac
14029 as_dirs="'$as_qdir' $as_dirs"
14030 as_dir=`$as_dirname -- "$as_dir" ||
14031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$as_dir" : 'X\(//\)[^/]' \| \
14033 X"$as_dir" : 'X\(//\)$' \| \
14034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14035 $as_echo X"$as_dir" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 s//\1/
14038 q
14039 }
14040 /^X\(\/\/\)[^/].*/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\/\)$/{
14045 s//\1/
14046 q
14047 }
14048 /^X\(\/\).*/{
14049 s//\1/
14050 q
14051 }
14052 s/.*/./; q'`
14053 test -d "$as_dir" && break
14054 done
14055 test -z "$as_dirs" || eval "mkdir $as_dirs"
14056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14057
14058
14059 } # as_fn_mkdir_p
14060 if mkdir -p . 2>/dev/null; then
14061 as_mkdir_p='mkdir -p "$as_dir"'
14062 else
14063 test -d ./-p && rmdir ./-p
14064 as_mkdir_p=false
14065 fi
14066
14067 if test -x / >/dev/null 2>&1; then
14068 as_test_x='test -x'
14069 else
14070 if ls -dL / >/dev/null 2>&1; then
14071 as_ls_L_option=L
14072 else
14073 as_ls_L_option=
14074 fi
14075 as_test_x='
14076 eval sh -c '\''
14077 if test -d "$1"; then
14078 test -d "$1/.";
14079 else
14080 case $1 in #(
14081 -*)set "./$1";;
14082 esac;
14083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14084 ???[sx]*):;;*)false;;esac;fi
14085 '\'' sh
14086 '
14087 fi
14088 as_executable_p=$as_test_x
14089
14090 # Sed expression to map a string onto a valid CPP name.
14091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14092
14093 # Sed expression to map a string onto a valid variable name.
14094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14095
14096
14097 exec 6>&1
14098 ## ----------------------------------- ##
14099 ## Main body of $CONFIG_STATUS script. ##
14100 ## ----------------------------------- ##
14101 _ASEOF
14102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14103
14104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14105 # Save the log message, to keep $0 and so on meaningful, and to
14106 # report actual input values of CONFIG_FILES etc. instead of their
14107 # values after options handling.
14108 ac_log="
14109 This file was extended by sg $as_me 1.0, which was
14110 generated by GNU Autoconf 2.68. Invocation command line was
14111
14112 CONFIG_FILES = $CONFIG_FILES
14113 CONFIG_HEADERS = $CONFIG_HEADERS
14114 CONFIG_LINKS = $CONFIG_LINKS
14115 CONFIG_COMMANDS = $CONFIG_COMMANDS
14116 $ $0 $@
14117
14118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14119 "
14120
14121 _ACEOF
14122
14123 case $ac_config_files in *"
14124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14125 esac
14126
14127 case $ac_config_headers in *"
14128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14129 esac
14130
14131
14132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133 # Files that config.status was made for.
14134 config_files="$ac_config_files"
14135 config_headers="$ac_config_headers"
14136 config_commands="$ac_config_commands"
14137
14138 _ACEOF
14139
14140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14141 ac_cs_usage="\
14142 \`$as_me' instantiates files and other configuration actions
14143 from templates according to the current configuration. Unless the files
14144 and actions are specified as TAGs, all are instantiated by default.
14145
14146 Usage: $0 [OPTION]... [TAG]...
14147
14148 -h, --help print this help, then exit
14149 -V, --version print version number and configuration settings, then exit
14150 --config print configuration, then exit
14151 -q, --quiet, --silent
14152 do not print progress messages
14153 -d, --debug don't remove temporary files
14154 --recheck update $as_me by reconfiguring in the same conditions
14155 --file=FILE[:TEMPLATE]
14156 instantiate the configuration file FILE
14157 --header=FILE[:TEMPLATE]
14158 instantiate the configuration header FILE
14159
14160 Configuration files:
14161 $config_files
14162
14163 Configuration headers:
14164 $config_headers
14165
14166 Configuration commands:
14167 $config_commands
14168
14169 Report bugs to <[email protected]>."
14170
14171 _ACEOF
14172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14173 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14174 ac_cs_version="\\
14175 sg config.status 1.0
14176 configured by $0, generated by GNU Autoconf 2.68,
14177 with options \\"\$ac_cs_config\\"
14178
14179 Copyright (C) 2010 Free Software Foundation, Inc.
14180 This config.status script is free software; the Free Software Foundation
14181 gives unlimited permission to copy, distribute and modify it."
14182
14183 ac_pwd='$ac_pwd'
14184 srcdir='$srcdir'
14185 INSTALL='$INSTALL'
14186 MKDIR_P='$MKDIR_P'
14187 AWK='$AWK'
14188 test -n "\$AWK" || AWK=awk
14189 _ACEOF
14190
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 # The default lists apply if the user does not specify any file.
14193 ac_need_defaults=:
14194 while test $# != 0
14195 do
14196 case $1 in
14197 --*=?*)
14198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14200 ac_shift=:
14201 ;;
14202 --*=)
14203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14204 ac_optarg=
14205 ac_shift=:
14206 ;;
14207 *)
14208 ac_option=$1
14209 ac_optarg=$2
14210 ac_shift=shift
14211 ;;
14212 esac
14213
14214 case $ac_option in
14215 # Handling of the options.
14216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14217 ac_cs_recheck=: ;;
14218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14219 $as_echo "$ac_cs_version"; exit ;;
14220 --config | --confi | --conf | --con | --co | --c )
14221 $as_echo "$ac_cs_config"; exit ;;
14222 --debug | --debu | --deb | --de | --d | -d )
14223 debug=: ;;
14224 --file | --fil | --fi | --f )
14225 $ac_shift
14226 case $ac_optarg in
14227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14228 '') as_fn_error $? "missing file argument" ;;
14229 esac
14230 as_fn_append CONFIG_FILES " '$ac_optarg'"
14231 ac_need_defaults=false;;
14232 --header | --heade | --head | --hea )
14233 $ac_shift
14234 case $ac_optarg in
14235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14236 esac
14237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14238 ac_need_defaults=false;;
14239 --he | --h)
14240 # Conflict between --help and --header
14241 as_fn_error $? "ambiguous option: \`$1'
14242 Try \`$0 --help' for more information.";;
14243 --help | --hel | -h )
14244 $as_echo "$ac_cs_usage"; exit ;;
14245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14247 ac_cs_silent=: ;;
14248
14249 # This is an error.
14250 -*) as_fn_error $? "unrecognized option: \`$1'
14251 Try \`$0 --help' for more information." ;;
14252
14253 *) as_fn_append ac_config_targets " $1"
14254 ac_need_defaults=false ;;
14255
14256 esac
14257 shift
14258 done
14259
14260 ac_configure_extra_args=
14261
14262 if $ac_cs_silent; then
14263 exec 6>/dev/null
14264 ac_configure_extra_args="$ac_configure_extra_args --silent"
14265 fi
14266
14267 _ACEOF
14268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14269 if \$ac_cs_recheck; then
14270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14271 shift
14272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14273 CONFIG_SHELL='$SHELL'
14274 export CONFIG_SHELL
14275 exec "\$@"
14276 fi
14277
14278 _ACEOF
14279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14280 exec 5>>config.log
14281 {
14282 echo
14283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14284 ## Running $as_me. ##
14285 _ASBOX
14286 $as_echo "$ac_log"
14287 } >&5
14288
14289 _ACEOF
14290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291 #
14292 # INIT-COMMANDS
14293 #
14294 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14295
14296
14297 # The HP-UX ksh and POSIX shell print the target directory to stdout
14298 # if CDPATH is set.
14299 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14300
14301 sed_quote_subst='$sed_quote_subst'
14302 double_quote_subst='$double_quote_subst'
14303 delay_variable_subst='$delay_variable_subst'
14304 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14305 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14306 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14307 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14308 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14309 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14310 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14311 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14312 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14313 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14314 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14315 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14316 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14317 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14318 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14319 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14320 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14321 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14322 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14323 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14324 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14325 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14326 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14327 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14328 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14329 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14330 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14331 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14332 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14333 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14334 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14335 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14339 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14340 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14341 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14342 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14343 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14344 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14345 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14359 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14360 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14361 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14362 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14363 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14364 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14365 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14366 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14367 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14368 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14369 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14370 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14371 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14372 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14373 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14374 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14375 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14376 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14377 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14378 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14379 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14380 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14381 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14382 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14383 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14384 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14385 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14386 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14387 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14388 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14389 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14390 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14391 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14392 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14393 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14394 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14395 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14396 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14397 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14398 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14399 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14400 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14401 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14402 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14403 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14404 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14405 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14406 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14407 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14408 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14409 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14410 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14411 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14412 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14413 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14414 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14415 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14416 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14417 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14418 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14419 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14420 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14421 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14422 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14423 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14424 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14425 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14426 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14427 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14428 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14429 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14430 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14431 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14432 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14433 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14434
14435 LTCC='$LTCC'
14436 LTCFLAGS='$LTCFLAGS'
14437 compiler='$compiler_DEFAULT'
14438
14439 # A function that is used when there is no print builtin or printf.
14440 func_fallback_echo ()
14441 {
14442 eval 'cat <<_LTECHO_EOF
14443 \$1
14444 _LTECHO_EOF'
14445 }
14446
14447 # Quote evaled strings.
14448 for var in SHELL \
14449 ECHO \
14450 SED \
14451 GREP \
14452 EGREP \
14453 FGREP \
14454 LD \
14455 NM \
14456 LN_S \
14457 lt_SP2NL \
14458 lt_NL2SP \
14459 reload_flag \
14460 OBJDUMP \
14461 deplibs_check_method \
14462 file_magic_cmd \
14463 file_magic_glob \
14464 want_nocaseglob \
14465 DLLTOOL \
14466 sharedlib_from_linklib_cmd \
14467 AR \
14468 AR_FLAGS \
14469 archiver_list_spec \
14470 STRIP \
14471 RANLIB \
14472 CC \
14473 CFLAGS \
14474 compiler \
14475 lt_cv_sys_global_symbol_pipe \
14476 lt_cv_sys_global_symbol_to_cdecl \
14477 lt_cv_sys_global_symbol_to_c_name_address \
14478 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14479 nm_file_list_spec \
14480 lt_prog_compiler_no_builtin_flag \
14481 lt_prog_compiler_pic \
14482 lt_prog_compiler_wl \
14483 lt_prog_compiler_static \
14484 lt_cv_prog_compiler_c_o \
14485 need_locks \
14486 MANIFEST_TOOL \
14487 DSYMUTIL \
14488 NMEDIT \
14489 LIPO \
14490 OTOOL \
14491 OTOOL64 \
14492 shrext_cmds \
14493 export_dynamic_flag_spec \
14494 whole_archive_flag_spec \
14495 compiler_needs_object \
14496 with_gnu_ld \
14497 allow_undefined_flag \
14498 no_undefined_flag \
14499 hardcode_libdir_flag_spec \
14500 hardcode_libdir_flag_spec_ld \
14501 hardcode_libdir_separator \
14502 exclude_expsyms \
14503 include_expsyms \
14504 file_list_spec \
14505 variables_saved_for_relink \
14506 libname_spec \
14507 library_names_spec \
14508 soname_spec \
14509 install_override_mode \
14510 finish_eval \
14511 old_striplib \
14512 striplib; do
14513 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14514 *[\\\\\\\`\\"\\\$]*)
14515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14516 ;;
14517 *)
14518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14519 ;;
14520 esac
14521 done
14522
14523 # Double-quote double-evaled strings.
14524 for var in reload_cmds \
14525 old_postinstall_cmds \
14526 old_postuninstall_cmds \
14527 old_archive_cmds \
14528 extract_expsyms_cmds \
14529 old_archive_from_new_cmds \
14530 old_archive_from_expsyms_cmds \
14531 archive_cmds \
14532 archive_expsym_cmds \
14533 module_cmds \
14534 module_expsym_cmds \
14535 export_symbols_cmds \
14536 prelink_cmds \
14537 postlink_cmds \
14538 postinstall_cmds \
14539 postuninstall_cmds \
14540 finish_cmds \
14541 sys_lib_search_path_spec \
14542 sys_lib_dlsearch_path_spec; do
14543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14544 *[\\\\\\\`\\"\\\$]*)
14545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14546 ;;
14547 *)
14548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14549 ;;
14550 esac
14551 done
14552
14553 ac_aux_dir='$ac_aux_dir'
14554 xsi_shell='$xsi_shell'
14555 lt_shell_append='$lt_shell_append'
14556
14557 # See if we are running on zsh, and set the options which allow our
14558 # commands through without removal of \ escapes INIT.
14559 if test -n "\${ZSH_VERSION+set}" ; then
14560 setopt NO_GLOB_SUBST
14561 fi
14562
14563
14564 PACKAGE='$PACKAGE'
14565 VERSION='$VERSION'
14566 TIMESTAMP='$TIMESTAMP'
14567 RM='$RM'
14568 ofile='$ofile'
14569
14570
14571
14572
14573 _ACEOF
14574
14575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14576
14577 # Handling of arguments.
14578 for ac_config_target in $ac_config_targets
14579 do
14580 case $ac_config_target in
14581 "src/aaa_inc/sgcf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/aaa_inc/sgcf.h" ;;
14582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14585 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14586 "src/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
14587 "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
14588 "src/glu/Makefile") CONFIG_FILES="$CONFIG_FILES src/glu/Makefile" ;;
14589 "src/glw/Makefile") CONFIG_FILES="$CONFIG_FILES src/glw/Makefile" ;;
14590 "src/ogl/Makefile") CONFIG_FILES="$CONFIG_FILES src/ogl/Makefile" ;;
14591 "src/vgl/Makefile") CONFIG_FILES="$CONFIG_FILES src/vgl/Makefile" ;;
14592 "src/aaa_inc/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_inc/Makefile" ;;
14593 "src/aaa_inc/sg/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_inc/sg/Makefile" ;;
14594 "src/aaa_inc/GL/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_inc/GL/Makefile" ;;
14595 "src/aaa_lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_lib/Makefile" ;;
14596 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14597 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
14598
14599 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14600 esac
14601 done
14602
14603
14604 # If the user did not use the arguments to specify the items to instantiate,
14605 # then the envvar interface is used. Set only those that are not.
14606 # We use the long form for the default assignment because of an extremely
14607 # bizarre bug on SunOS 4.1.3.
14608 if $ac_need_defaults; then
14609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14610 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14612 fi
14613
14614 # Have a temporary directory for convenience. Make it in the build tree
14615 # simply because there is no reason against having it here, and in addition,
14616 # creating and moving files from /tmp can sometimes cause problems.
14617 # Hook for its removal unless debugging.
14618 # Note that there is a small window in which the directory will not be cleaned:
14619 # after its creation but before its name has been assigned to `$tmp'.
14620 $debug ||
14621 {
14622 tmp= ac_tmp=
14623 trap 'exit_status=$?
14624 : "${ac_tmp:=$tmp}"
14625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14626 ' 0
14627 trap 'as_fn_exit 1' 1 2 13 15
14628 }
14629 # Create a (secure) tmp directory for tmp files.
14630
14631 {
14632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14633 test -d "$tmp"
14634 } ||
14635 {
14636 tmp=./conf$$-$RANDOM
14637 (umask 077 && mkdir "$tmp")
14638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14639 ac_tmp=$tmp
14640
14641 # Set up the scripts for CONFIG_FILES section.
14642 # No need to generate them if there are no CONFIG_FILES.
14643 # This happens for instance with `./config.status config.h'.
14644 if test -n "$CONFIG_FILES"; then
14645
14646
14647 ac_cr=`echo X | tr X '\015'`
14648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14649 # But we know of no other shell where ac_cr would be empty at this
14650 # point, so we can use a bashism as a fallback.
14651 if test "x$ac_cr" = x; then
14652 eval ac_cr=\$\'\\r\'
14653 fi
14654 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14656 ac_cs_awk_cr='\\r'
14657 else
14658 ac_cs_awk_cr=$ac_cr
14659 fi
14660
14661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14662 _ACEOF
14663
14664
14665 {
14666 echo "cat >conf$$subs.awk <<_ACEOF" &&
14667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14668 echo "_ACEOF"
14669 } >conf$$subs.sh ||
14670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14672 ac_delim='%!_!# '
14673 for ac_last_try in false false false false false :; do
14674 . ./conf$$subs.sh ||
14675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14676
14677 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14678 if test $ac_delim_n = $ac_delim_num; then
14679 break
14680 elif $ac_last_try; then
14681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14682 else
14683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14684 fi
14685 done
14686 rm -f conf$$subs.sh
14687
14688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14690 _ACEOF
14691 sed -n '
14692 h
14693 s/^/S["/; s/!.*/"]=/
14694 p
14695 g
14696 s/^[^!]*!//
14697 :repl
14698 t repl
14699 s/'"$ac_delim"'$//
14700 t delim
14701 :nl
14702 h
14703 s/\(.\{148\}\)..*/\1/
14704 t more1
14705 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14706 p
14707 n
14708 b repl
14709 :more1
14710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14711 p
14712 g
14713 s/.\{148\}//
14714 t nl
14715 :delim
14716 h
14717 s/\(.\{148\}\)..*/\1/
14718 t more2
14719 s/["\\]/\\&/g; s/^/"/; s/$/"/
14720 p
14721 b
14722 :more2
14723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14724 p
14725 g
14726 s/.\{148\}//
14727 t delim
14728 ' <conf$$subs.awk | sed '
14729 /^[^""]/{
14730 N
14731 s/\n//
14732 }
14733 ' >>$CONFIG_STATUS || ac_write_fail=1
14734 rm -f conf$$subs.awk
14735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14736 _ACAWK
14737 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14738 for (key in S) S_is_set[key] = 1
14739 FS = ""
14740
14741 }
14742 {
14743 line = $ 0
14744 nfields = split(line, field, "@")
14745 substed = 0
14746 len = length(field[1])
14747 for (i = 2; i < nfields; i++) {
14748 key = field[i]
14749 keylen = length(key)
14750 if (S_is_set[key]) {
14751 value = S[key]
14752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14753 len += length(value) + length(field[++i])
14754 substed = 1
14755 } else
14756 len += 1 + keylen
14757 }
14758
14759 print line
14760 }
14761
14762 _ACAWK
14763 _ACEOF
14764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14765 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14766 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14767 else
14768 cat
14769 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14770 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14771 _ACEOF
14772
14773 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14774 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14775 # trailing colons and then remove the whole line if VPATH becomes empty
14776 # (actually we leave an empty line to preserve line numbers).
14777 if test "x$srcdir" = x.; then
14778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14779 h
14780 s///
14781 s/^/:/
14782 s/[ ]*$/:/
14783 s/:\$(srcdir):/:/g
14784 s/:\${srcdir}:/:/g
14785 s/:@srcdir@:/:/g
14786 s/^:*//
14787 s/:*$//
14788 x
14789 s/\(=[ ]*\).*/\1/
14790 G
14791 s/\n//
14792 s/^[^=]*=[ ]*$//
14793 }'
14794 fi
14795
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 fi # test -n "$CONFIG_FILES"
14798
14799 # Set up the scripts for CONFIG_HEADERS section.
14800 # No need to generate them if there are no CONFIG_HEADERS.
14801 # This happens for instance with `./config.status Makefile'.
14802 if test -n "$CONFIG_HEADERS"; then
14803 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14804 BEGIN {
14805 _ACEOF
14806
14807 # Transform confdefs.h into an awk script `defines.awk', embedded as
14808 # here-document in config.status, that substitutes the proper values into
14809 # config.h.in to produce config.h.
14810
14811 # Create a delimiter string that does not exist in confdefs.h, to ease
14812 # handling of long lines.
14813 ac_delim='%!_!# '
14814 for ac_last_try in false false :; do
14815 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14816 if test -z "$ac_tt"; then
14817 break
14818 elif $ac_last_try; then
14819 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14820 else
14821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14822 fi
14823 done
14824
14825 # For the awk script, D is an array of macro values keyed by name,
14826 # likewise P contains macro parameters if any. Preserve backslash
14827 # newline sequences.
14828
14829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14830 sed -n '
14831 s/.\{148\}/&'"$ac_delim"'/g
14832 t rset
14833 :rset
14834 s/^[ ]*#[ ]*define[ ][ ]*/ /
14835 t def
14836 d
14837 :def
14838 s/\\$//
14839 t bsnl
14840 s/["\\]/\\&/g
14841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14842 D["\1"]=" \3"/p
14843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14844 d
14845 :bsnl
14846 s/["\\]/\\&/g
14847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14848 D["\1"]=" \3\\\\\\n"\\/p
14849 t cont
14850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14851 t cont
14852 d
14853 :cont
14854 n
14855 s/.\{148\}/&'"$ac_delim"'/g
14856 t clear
14857 :clear
14858 s/\\$//
14859 t bsnlc
14860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14861 d
14862 :bsnlc
14863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14864 b cont
14865 ' <confdefs.h | sed '
14866 s/'"$ac_delim"'/"\\\
14867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14868
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 for (key in D) D_is_set[key] = 1
14871 FS = ""
14872 }
14873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14874 line = \$ 0
14875 split(line, arg, " ")
14876 if (arg[1] == "#") {
14877 defundef = arg[2]
14878 mac1 = arg[3]
14879 } else {
14880 defundef = substr(arg[1], 2)
14881 mac1 = arg[2]
14882 }
14883 split(mac1, mac2, "(") #)
14884 macro = mac2[1]
14885 prefix = substr(line, 1, index(line, defundef) - 1)
14886 if (D_is_set[macro]) {
14887 # Preserve the white space surrounding the "#".
14888 print prefix "define", macro P[macro] D[macro]
14889 next
14890 } else {
14891 # Replace #undef with comments. This is necessary, for example,
14892 # in the case of _POSIX_SOURCE, which is predefined and required
14893 # on some systems where configure will not decide to define it.
14894 if (defundef == "undef") {
14895 print "/*", prefix defundef, macro, "*/"
14896 next
14897 }
14898 }
14899 }
14900 { print }
14901 _ACAWK
14902 _ACEOF
14903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14904 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14905 fi # test -n "$CONFIG_HEADERS"
14906
14907
14908 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14909 shift
14910 for ac_tag
14911 do
14912 case $ac_tag in
14913 :[FHLC]) ac_mode=$ac_tag; continue;;
14914 esac
14915 case $ac_mode$ac_tag in
14916 :[FHL]*:*);;
14917 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14918 :[FH]-) ac_tag=-:-;;
14919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14920 esac
14921 ac_save_IFS=$IFS
14922 IFS=:
14923 set x $ac_tag
14924 IFS=$ac_save_IFS
14925 shift
14926 ac_file=$1
14927 shift
14928
14929 case $ac_mode in
14930 :L) ac_source=$1;;
14931 :[FH])
14932 ac_file_inputs=
14933 for ac_f
14934 do
14935 case $ac_f in
14936 -) ac_f="$ac_tmp/stdin";;
14937 *) # Look for the file first in the build tree, then in the source tree
14938 # (if the path is not absolute). The absolute path cannot be DOS-style,
14939 # because $ac_f cannot contain `:'.
14940 test -f "$ac_f" ||
14941 case $ac_f in
14942 [\\/$]*) false;;
14943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14944 esac ||
14945 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14946 esac
14947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14948 as_fn_append ac_file_inputs " '$ac_f'"
14949 done
14950
14951 # Let's still pretend it is `configure' which instantiates (i.e., don't
14952 # use $as_me), people would be surprised to read:
14953 # /* config.h. Generated by config.status. */
14954 configure_input='Generated from '`
14955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14956 `' by configure.'
14957 if test x"$ac_file" != x-; then
14958 configure_input="$ac_file. $configure_input"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14960 $as_echo "$as_me: creating $ac_file" >&6;}
14961 fi
14962 # Neutralize special characters interpreted by sed in replacement strings.
14963 case $configure_input in #(
14964 *\&* | *\|* | *\\* )
14965 ac_sed_conf_input=`$as_echo "$configure_input" |
14966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14967 *) ac_sed_conf_input=$configure_input;;
14968 esac
14969
14970 case $ac_tag in
14971 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14973 esac
14974 ;;
14975 esac
14976
14977 ac_dir=`$as_dirname -- "$ac_file" ||
14978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14979 X"$ac_file" : 'X\(//\)[^/]' \| \
14980 X"$ac_file" : 'X\(//\)$' \| \
14981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14982 $as_echo X"$ac_file" |
14983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14984 s//\1/
14985 q
14986 }
14987 /^X\(\/\/\)[^/].*/{
14988 s//\1/
14989 q
14990 }
14991 /^X\(\/\/\)$/{
14992 s//\1/
14993 q
14994 }
14995 /^X\(\/\).*/{
14996 s//\1/
14997 q
14998 }
14999 s/.*/./; q'`
15000 as_dir="$ac_dir"; as_fn_mkdir_p
15001 ac_builddir=.
15002
15003 case "$ac_dir" in
15004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15005 *)
15006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15007 # A ".." for each directory in $ac_dir_suffix.
15008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15009 case $ac_top_builddir_sub in
15010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15012 esac ;;
15013 esac
15014 ac_abs_top_builddir=$ac_pwd
15015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15016 # for backward compatibility:
15017 ac_top_builddir=$ac_top_build_prefix
15018
15019 case $srcdir in
15020 .) # We are building in place.
15021 ac_srcdir=.
15022 ac_top_srcdir=$ac_top_builddir_sub
15023 ac_abs_top_srcdir=$ac_pwd ;;
15024 [\\/]* | ?:[\\/]* ) # Absolute name.
15025 ac_srcdir=$srcdir$ac_dir_suffix;
15026 ac_top_srcdir=$srcdir
15027 ac_abs_top_srcdir=$srcdir ;;
15028 *) # Relative name.
15029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15030 ac_top_srcdir=$ac_top_build_prefix$srcdir
15031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15032 esac
15033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15034
15035
15036 case $ac_mode in
15037 :F)
15038 #
15039 # CONFIG_FILE
15040 #
15041
15042 case $INSTALL in
15043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15045 esac
15046 ac_MKDIR_P=$MKDIR_P
15047 case $MKDIR_P in
15048 [\\/$]* | ?:[\\/]* ) ;;
15049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15050 esac
15051 _ACEOF
15052
15053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15054 # If the template does not know about datarootdir, expand it.
15055 # FIXME: This hack should be removed a few years after 2.60.
15056 ac_datarootdir_hack=; ac_datarootdir_seen=
15057 ac_sed_dataroot='
15058 /datarootdir/ {
15059 p
15060 q
15061 }
15062 /@datadir@/p
15063 /@docdir@/p
15064 /@infodir@/p
15065 /@localedir@/p
15066 /@mandir@/p'
15067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15068 *datarootdir*) ac_datarootdir_seen=yes;;
15069 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 ac_datarootdir_hack='
15075 s&@datadir@&$datadir&g
15076 s&@docdir@&$docdir&g
15077 s&@infodir@&$infodir&g
15078 s&@localedir@&$localedir&g
15079 s&@mandir@&$mandir&g
15080 s&\\\${datarootdir}&$datarootdir&g' ;;
15081 esac
15082 _ACEOF
15083
15084 # Neutralize VPATH when `$srcdir' = `.'.
15085 # Shell code in configure.ac might set extrasub.
15086 # FIXME: do we really want to maintain this feature?
15087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 ac_sed_extra="$ac_vpsub
15089 $extrasub
15090 _ACEOF
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 :t
15093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15094 s|@configure_input@|$ac_sed_conf_input|;t t
15095 s&@top_builddir@&$ac_top_builddir_sub&;t t
15096 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15097 s&@srcdir@&$ac_srcdir&;t t
15098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15099 s&@top_srcdir@&$ac_top_srcdir&;t t
15100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15101 s&@builddir@&$ac_builddir&;t t
15102 s&@abs_builddir@&$ac_abs_builddir&;t t
15103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15104 s&@INSTALL@&$ac_INSTALL&;t t
15105 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15106 $ac_datarootdir_hack
15107 "
15108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15109 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15110
15111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15112 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15114 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15116 which seems to be undefined. Please make sure it is defined" >&5
15117 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15118 which seems to be undefined. Please make sure it is defined" >&2;}
15119
15120 rm -f "$ac_tmp/stdin"
15121 case $ac_file in
15122 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15123 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15124 esac \
15125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15126 ;;
15127 :H)
15128 #
15129 # CONFIG_HEADER
15130 #
15131 if test x"$ac_file" != x-; then
15132 {
15133 $as_echo "/* $configure_input */" \
15134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15135 } >"$ac_tmp/config.h" \
15136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15137 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15139 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15140 else
15141 rm -f "$ac_file"
15142 mv "$ac_tmp/config.h" "$ac_file" \
15143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15144 fi
15145 else
15146 $as_echo "/* $configure_input */" \
15147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15148 || as_fn_error $? "could not create -" "$LINENO" 5
15149 fi
15150 # Compute "$ac_file"'s index in $config_headers.
15151 _am_arg="$ac_file"
15152 _am_stamp_count=1
15153 for _am_header in $config_headers :; do
15154 case $_am_header in
15155 $_am_arg | $_am_arg:* )
15156 break ;;
15157 * )
15158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15159 esac
15160 done
15161 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15162 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15163 X"$_am_arg" : 'X\(//\)[^/]' \| \
15164 X"$_am_arg" : 'X\(//\)$' \| \
15165 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15166 $as_echo X"$_am_arg" |
15167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15168 s//\1/
15169 q
15170 }
15171 /^X\(\/\/\)[^/].*/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\/\)$/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\).*/{
15180 s//\1/
15181 q
15182 }
15183 s/.*/./; q'`/stamp-h$_am_stamp_count
15184 ;;
15185
15186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15187 $as_echo "$as_me: executing $ac_file commands" >&6;}
15188 ;;
15189 esac
15190
15191
15192 case $ac_file$ac_mode in
15193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15194 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15195 # are listed without --file. Let's play safe and only enable the eval
15196 # if we detect the quoting.
15197 case $CONFIG_FILES in
15198 *\'*) eval set x "$CONFIG_FILES" ;;
15199 *) set x $CONFIG_FILES ;;
15200 esac
15201 shift
15202 for mf
15203 do
15204 # Strip MF so we end up with the name of the file.
15205 mf=`echo "$mf" | sed -e 's/:.*$//'`
15206 # Check whether this is an Automake generated Makefile or not.
15207 # We used to match only the files named `Makefile.in', but
15208 # some people rename them; so instead we look at the file content.
15209 # Grep'ing the first line is not enough: some people post-process
15210 # each Makefile.in and add a new line on top of each file to say so.
15211 # Grep'ing the whole file is not good either: AIX grep has a line
15212 # limit of 2048, but all sed's we know have understand at least 4000.
15213 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15214 dirpart=`$as_dirname -- "$mf" ||
15215 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216 X"$mf" : 'X\(//\)[^/]' \| \
15217 X"$mf" : 'X\(//\)$' \| \
15218 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15219 $as_echo X"$mf" |
15220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\(\/\/\)[^/].*/{
15225 s//\1/
15226 q
15227 }
15228 /^X\(\/\/\)$/{
15229 s//\1/
15230 q
15231 }
15232 /^X\(\/\).*/{
15233 s//\1/
15234 q
15235 }
15236 s/.*/./; q'`
15237 else
15238 continue
15239 fi
15240 # Extract the definition of DEPDIR, am__include, and am__quote
15241 # from the Makefile without running `make'.
15242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15243 test -z "$DEPDIR" && continue
15244 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15245 test -z "am__include" && continue
15246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15247 # When using ansi2knr, U may be empty or an underscore; expand it
15248 U=`sed -n 's/^U = //p' < "$mf"`
15249 # Find all dependency output files, they are included files with
15250 # $(DEPDIR) in their names. We invoke sed twice because it is the
15251 # simplest approach to changing $(DEPDIR) to its actual value in the
15252 # expansion.
15253 for file in `sed -n "
15254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15256 # Make sure the directory exists.
15257 test -f "$dirpart/$file" && continue
15258 fdir=`$as_dirname -- "$file" ||
15259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15260 X"$file" : 'X\(//\)[^/]' \| \
15261 X"$file" : 'X\(//\)$' \| \
15262 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15263 $as_echo X"$file" |
15264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15265 s//\1/
15266 q
15267 }
15268 /^X\(\/\/\)[^/].*/{
15269 s//\1/
15270 q
15271 }
15272 /^X\(\/\/\)$/{
15273 s//\1/
15274 q
15275 }
15276 /^X\(\/\).*/{
15277 s//\1/
15278 q
15279 }
15280 s/.*/./; q'`
15281 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15282 # echo "creating $dirpart/$file"
15283 echo '# dummy' > "$dirpart/$file"
15284 done
15285 done
15286 }
15287 ;;
15288 "libtool":C)
15289
15290 # See if we are running on zsh, and set the options which allow our
15291 # commands through without removal of \ escapes.
15292 if test -n "${ZSH_VERSION+set}" ; then
15293 setopt NO_GLOB_SUBST
15294 fi
15295
15296 cfgfile="${ofile}T"
15297 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15298 $RM "$cfgfile"
15299
15300 cat <<_LT_EOF >> "$cfgfile"
15301 #! $SHELL
15302
15303 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15304 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15306 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15307 #
15308 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15309 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15310 # Inc.
15311 # Written by Gordon Matzigkeit, 1996
15312 #
15313 # This file is part of GNU Libtool.
15314 #
15315 # GNU Libtool is free software; you can redistribute it and/or
15316 # modify it under the terms of the GNU General Public License as
15317 # published by the Free Software Foundation; either version 2 of
15318 # the License, or (at your option) any later version.
15319 #
15320 # As a special exception to the GNU General Public License,
15321 # if you distribute this file as part of a program or library that
15322 # is built using GNU Libtool, you may include this file under the
15323 # same distribution terms that you use for the rest of that program.
15324 #
15325 # GNU Libtool is distributed in the hope that it will be useful,
15326 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15327 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15328 # GNU General Public License for more details.
15329 #
15330 # You should have received a copy of the GNU General Public License
15331 # along with GNU Libtool; see the file COPYING. If not, a copy
15332 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15333 # obtained by writing to the Free Software Foundation, Inc.,
15334 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15335
15336
15337 # The names of the tagged configurations supported by this script.
15338 available_tags=""
15339
15340 # ### BEGIN LIBTOOL CONFIG
15341
15342 # Whether or not to build static libraries.
15343 build_old_libs=$enable_static
15344
15345 # Which release of libtool.m4 was used?
15346 macro_version=$macro_version
15347 macro_revision=$macro_revision
15348
15349 # Whether or not to build shared libraries.
15350 build_libtool_libs=$enable_shared
15351
15352 # What type of objects to build.
15353 pic_mode=$pic_mode
15354
15355 # Whether or not to optimize for fast installation.
15356 fast_install=$enable_fast_install
15357
15358 # Shell to use when invoking shell scripts.
15359 SHELL=$lt_SHELL
15360
15361 # An echo program that protects backslashes.
15362 ECHO=$lt_ECHO
15363
15364 # The host system.
15365 host_alias=$host_alias
15366 host=$host
15367 host_os=$host_os
15368
15369 # The build system.
15370 build_alias=$build_alias
15371 build=$build
15372 build_os=$build_os
15373
15374 # A sed program that does not truncate output.
15375 SED=$lt_SED
15376
15377 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15378 Xsed="\$SED -e 1s/^X//"
15379
15380 # A grep program that handles long lines.
15381 GREP=$lt_GREP
15382
15383 # An ERE matcher.
15384 EGREP=$lt_EGREP
15385
15386 # A literal string matcher.
15387 FGREP=$lt_FGREP
15388
15389 # A BSD- or MS-compatible name lister.
15390 NM=$lt_NM
15391
15392 # Whether we need soft or hard links.
15393 LN_S=$lt_LN_S
15394
15395 # What is the maximum length of a command?
15396 max_cmd_len=$max_cmd_len
15397
15398 # Object file suffix (normally "o").
15399 objext=$ac_objext
15400
15401 # Executable file suffix (normally "").
15402 exeext=$exeext
15403
15404 # whether the shell understands "unset".
15405 lt_unset=$lt_unset
15406
15407 # turn spaces into newlines.
15408 SP2NL=$lt_lt_SP2NL
15409
15410 # turn newlines into spaces.
15411 NL2SP=$lt_lt_NL2SP
15412
15413 # convert \$build file names to \$host format.
15414 to_host_file_cmd=$lt_cv_to_host_file_cmd
15415
15416 # convert \$build files to toolchain format.
15417 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15418
15419 # An object symbol dumper.
15420 OBJDUMP=$lt_OBJDUMP
15421
15422 # Method to check whether dependent libraries are shared objects.
15423 deplibs_check_method=$lt_deplibs_check_method
15424
15425 # Command to use when deplibs_check_method = "file_magic".
15426 file_magic_cmd=$lt_file_magic_cmd
15427
15428 # How to find potential files when deplibs_check_method = "file_magic".
15429 file_magic_glob=$lt_file_magic_glob
15430
15431 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15432 want_nocaseglob=$lt_want_nocaseglob
15433
15434 # DLL creation program.
15435 DLLTOOL=$lt_DLLTOOL
15436
15437 # Command to associate shared and link libraries.
15438 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15439
15440 # The archiver.
15441 AR=$lt_AR
15442
15443 # Flags to create an archive.
15444 AR_FLAGS=$lt_AR_FLAGS
15445
15446 # How to feed a file listing to the archiver.
15447 archiver_list_spec=$lt_archiver_list_spec
15448
15449 # A symbol stripping program.
15450 STRIP=$lt_STRIP
15451
15452 # Commands used to install an old-style archive.
15453 RANLIB=$lt_RANLIB
15454 old_postinstall_cmds=$lt_old_postinstall_cmds
15455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15456
15457 # Whether to use a lock for old archive extraction.
15458 lock_old_archive_extraction=$lock_old_archive_extraction
15459
15460 # A C compiler.
15461 LTCC=$lt_CC
15462
15463 # LTCC compiler flags.
15464 LTCFLAGS=$lt_CFLAGS
15465
15466 # Take the output of nm and produce a listing of raw symbols and C names.
15467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15468
15469 # Transform the output of nm in a proper C declaration.
15470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15471
15472 # Transform the output of nm in a C name address pair.
15473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15474
15475 # Transform the output of nm in a C name address pair when lib prefix is needed.
15476 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15477
15478 # Specify filename containing input files for \$NM.
15479 nm_file_list_spec=$lt_nm_file_list_spec
15480
15481 # The root where to search for dependent libraries,and in which our libraries should be installed.
15482 lt_sysroot=$lt_sysroot
15483
15484 # The name of the directory that contains temporary libtool files.
15485 objdir=$objdir
15486
15487 # Used to examine libraries when file_magic_cmd begins with "file".
15488 MAGIC_CMD=$MAGIC_CMD
15489
15490 # Must we lock files when doing compilation?
15491 need_locks=$lt_need_locks
15492
15493 # Manifest tool.
15494 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15495
15496 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15497 DSYMUTIL=$lt_DSYMUTIL
15498
15499 # Tool to change global to local symbols on Mac OS X.
15500 NMEDIT=$lt_NMEDIT
15501
15502 # Tool to manipulate fat objects and archives on Mac OS X.
15503 LIPO=$lt_LIPO
15504
15505 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15506 OTOOL=$lt_OTOOL
15507
15508 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15509 OTOOL64=$lt_OTOOL64
15510
15511 # Old archive suffix (normally "a").
15512 libext=$libext
15513
15514 # Shared library suffix (normally ".so").
15515 shrext_cmds=$lt_shrext_cmds
15516
15517 # The commands to extract the exported symbol list from a shared archive.
15518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15519
15520 # Variables whose values should be saved in libtool wrapper scripts and
15521 # restored at link time.
15522 variables_saved_for_relink=$lt_variables_saved_for_relink
15523
15524 # Do we need the "lib" prefix for modules?
15525 need_lib_prefix=$need_lib_prefix
15526
15527 # Do we need a version for libraries?
15528 need_version=$need_version
15529
15530 # Library versioning type.
15531 version_type=$version_type
15532
15533 # Shared library runtime path variable.
15534 runpath_var=$runpath_var
15535
15536 # Shared library path variable.
15537 shlibpath_var=$shlibpath_var
15538
15539 # Is shlibpath searched before the hard-coded library search path?
15540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15541
15542 # Format of library name prefix.
15543 libname_spec=$lt_libname_spec
15544
15545 # List of archive names. First name is the real one, the rest are links.
15546 # The last name is the one that the linker finds with -lNAME
15547 library_names_spec=$lt_library_names_spec
15548
15549 # The coded name of the library, if different from the real name.
15550 soname_spec=$lt_soname_spec
15551
15552 # Permission mode override for installation of shared libraries.
15553 install_override_mode=$lt_install_override_mode
15554
15555 # Command to use after installation of a shared archive.
15556 postinstall_cmds=$lt_postinstall_cmds
15557
15558 # Command to use after uninstallation of a shared archive.
15559 postuninstall_cmds=$lt_postuninstall_cmds
15560
15561 # Commands used to finish a libtool library installation in a directory.
15562 finish_cmds=$lt_finish_cmds
15563
15564 # As "finish_cmds", except a single script fragment to be evaled but
15565 # not shown.
15566 finish_eval=$lt_finish_eval
15567
15568 # Whether we should hardcode library paths into libraries.
15569 hardcode_into_libs=$hardcode_into_libs
15570
15571 # Compile-time system search path for libraries.
15572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15573
15574 # Run-time system search path for libraries.
15575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15576
15577 # Whether dlopen is supported.
15578 dlopen_support=$enable_dlopen
15579
15580 # Whether dlopen of programs is supported.
15581 dlopen_self=$enable_dlopen_self
15582
15583 # Whether dlopen of statically linked programs is supported.
15584 dlopen_self_static=$enable_dlopen_self_static
15585
15586 # Commands to strip libraries.
15587 old_striplib=$lt_old_striplib
15588 striplib=$lt_striplib
15589
15590
15591 # The linker used to build libraries.
15592 LD=$lt_LD
15593
15594 # How to create reloadable object files.
15595 reload_flag=$lt_reload_flag
15596 reload_cmds=$lt_reload_cmds
15597
15598 # Commands used to build an old-style archive.
15599 old_archive_cmds=$lt_old_archive_cmds
15600
15601 # A language specific compiler.
15602 CC=$lt_compiler
15603
15604 # Is the compiler the GNU compiler?
15605 with_gcc=$GCC
15606
15607 # Compiler flag to turn off builtin functions.
15608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15609
15610 # Additional compiler flags for building library objects.
15611 pic_flag=$lt_lt_prog_compiler_pic
15612
15613 # How to pass a linker flag through the compiler.
15614 wl=$lt_lt_prog_compiler_wl
15615
15616 # Compiler flag to prevent dynamic linking.
15617 link_static_flag=$lt_lt_prog_compiler_static
15618
15619 # Does compiler simultaneously support -c and -o options?
15620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15621
15622 # Whether or not to add -lc for building shared libraries.
15623 build_libtool_need_lc=$archive_cmds_need_lc
15624
15625 # Whether or not to disallow shared libs when runtime libs are static.
15626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15627
15628 # Compiler flag to allow reflexive dlopens.
15629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15630
15631 # Compiler flag to generate shared objects directly from archives.
15632 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15633
15634 # Whether the compiler copes with passing no objects directly.
15635 compiler_needs_object=$lt_compiler_needs_object
15636
15637 # Create an old-style archive from a shared archive.
15638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15639
15640 # Create a temporary old-style archive to link instead of a shared archive.
15641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15642
15643 # Commands used to build a shared archive.
15644 archive_cmds=$lt_archive_cmds
15645 archive_expsym_cmds=$lt_archive_expsym_cmds
15646
15647 # Commands used to build a loadable module if different from building
15648 # a shared archive.
15649 module_cmds=$lt_module_cmds
15650 module_expsym_cmds=$lt_module_expsym_cmds
15651
15652 # Whether we are building with GNU ld or not.
15653 with_gnu_ld=$lt_with_gnu_ld
15654
15655 # Flag that allows shared libraries with undefined symbols to be built.
15656 allow_undefined_flag=$lt_allow_undefined_flag
15657
15658 # Flag that enforces no undefined symbols.
15659 no_undefined_flag=$lt_no_undefined_flag
15660
15661 # Flag to hardcode \$libdir into a binary during linking.
15662 # This must work even if \$libdir does not exist
15663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15664
15665 # If ld is used when linking, flag to hardcode \$libdir into a binary
15666 # during linking. This must work even if \$libdir does not exist.
15667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15668
15669 # Whether we need a single "-rpath" flag with a separated argument.
15670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15671
15672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15673 # DIR into the resulting binary.
15674 hardcode_direct=$hardcode_direct
15675
15676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15677 # DIR into the resulting binary and the resulting library dependency is
15678 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15679 # library is relocated.
15680 hardcode_direct_absolute=$hardcode_direct_absolute
15681
15682 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15683 # into the resulting binary.
15684 hardcode_minus_L=$hardcode_minus_L
15685
15686 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15687 # into the resulting binary.
15688 hardcode_shlibpath_var=$hardcode_shlibpath_var
15689
15690 # Set to "yes" if building a shared library automatically hardcodes DIR
15691 # into the library and all subsequent libraries and executables linked
15692 # against it.
15693 hardcode_automatic=$hardcode_automatic
15694
15695 # Set to yes if linker adds runtime paths of dependent libraries
15696 # to runtime path list.
15697 inherit_rpath=$inherit_rpath
15698
15699 # Whether libtool must link a program against all its dependency libraries.
15700 link_all_deplibs=$link_all_deplibs
15701
15702 # Set to "yes" if exported symbols are required.
15703 always_export_symbols=$always_export_symbols
15704
15705 # The commands to list exported symbols.
15706 export_symbols_cmds=$lt_export_symbols_cmds
15707
15708 # Symbols that should not be listed in the preloaded symbols.
15709 exclude_expsyms=$lt_exclude_expsyms
15710
15711 # Symbols that must always be exported.
15712 include_expsyms=$lt_include_expsyms
15713
15714 # Commands necessary for linking programs (against libraries) with templates.
15715 prelink_cmds=$lt_prelink_cmds
15716
15717 # Commands necessary for finishing linking programs.
15718 postlink_cmds=$lt_postlink_cmds
15719
15720 # Specify filename containing input files.
15721 file_list_spec=$lt_file_list_spec
15722
15723 # How to hardcode a shared library path into an executable.
15724 hardcode_action=$hardcode_action
15725
15726 # ### END LIBTOOL CONFIG
15727
15728 _LT_EOF
15729
15730 case $host_os in
15731 aix3*)
15732 cat <<\_LT_EOF >> "$cfgfile"
15733 # AIX sometimes has problems with the GCC collect2 program. For some
15734 # reason, if we set the COLLECT_NAMES environment variable, the problems
15735 # vanish in a puff of smoke.
15736 if test "X${COLLECT_NAMES+set}" != Xset; then
15737 COLLECT_NAMES=
15738 export COLLECT_NAMES
15739 fi
15740 _LT_EOF
15741 ;;
15742 esac
15743
15744
15745 ltmain="$ac_aux_dir/ltmain.sh"
15746
15747
15748 # We use sed instead of cat because bash on DJGPP gets confused if
15749 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15750 # text mode, it properly converts lines to CR/LF. This bash problem
15751 # is reportedly fixed, but why not run on old versions too?
15752 sed '$q' "$ltmain" >> "$cfgfile" \
15753 || (rm -f "$cfgfile"; exit 1)
15754
15755 if test x"$xsi_shell" = xyes; then
15756 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15757 func_dirname ()\
15758 {\
15759 \ case ${1} in\
15760 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15761 \ * ) func_dirname_result="${3}" ;;\
15762 \ esac\
15763 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15764 && mv -f "$cfgfile.tmp" "$cfgfile" \
15765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15766 test 0 -eq $? || _lt_function_replace_fail=:
15767
15768
15769 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15770 func_basename ()\
15771 {\
15772 \ func_basename_result="${1##*/}"\
15773 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15774 && mv -f "$cfgfile.tmp" "$cfgfile" \
15775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15776 test 0 -eq $? || _lt_function_replace_fail=:
15777
15778
15779 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15780 func_dirname_and_basename ()\
15781 {\
15782 \ case ${1} in\
15783 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15784 \ * ) func_dirname_result="${3}" ;;\
15785 \ esac\
15786 \ func_basename_result="${1##*/}"\
15787 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15788 && mv -f "$cfgfile.tmp" "$cfgfile" \
15789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15790 test 0 -eq $? || _lt_function_replace_fail=:
15791
15792
15793 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15794 func_stripname ()\
15795 {\
15796 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15797 \ # positional parameters, so assign one to ordinary parameter first.\
15798 \ func_stripname_result=${3}\
15799 \ func_stripname_result=${func_stripname_result#"${1}"}\
15800 \ func_stripname_result=${func_stripname_result%"${2}"}\
15801 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15802 && mv -f "$cfgfile.tmp" "$cfgfile" \
15803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15804 test 0 -eq $? || _lt_function_replace_fail=:
15805
15806
15807 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15808 func_split_long_opt ()\
15809 {\
15810 \ func_split_long_opt_name=${1%%=*}\
15811 \ func_split_long_opt_arg=${1#*=}\
15812 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15813 && mv -f "$cfgfile.tmp" "$cfgfile" \
15814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15815 test 0 -eq $? || _lt_function_replace_fail=:
15816
15817
15818 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15819 func_split_short_opt ()\
15820 {\
15821 \ func_split_short_opt_arg=${1#??}\
15822 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15823 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15824 && mv -f "$cfgfile.tmp" "$cfgfile" \
15825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15826 test 0 -eq $? || _lt_function_replace_fail=:
15827
15828
15829 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15830 func_lo2o ()\
15831 {\
15832 \ case ${1} in\
15833 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15834 \ *) func_lo2o_result=${1} ;;\
15835 \ esac\
15836 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15837 && mv -f "$cfgfile.tmp" "$cfgfile" \
15838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15839 test 0 -eq $? || _lt_function_replace_fail=:
15840
15841
15842 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15843 func_xform ()\
15844 {\
15845 func_xform_result=${1%.*}.lo\
15846 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15847 && mv -f "$cfgfile.tmp" "$cfgfile" \
15848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15849 test 0 -eq $? || _lt_function_replace_fail=:
15850
15851
15852 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15853 func_arith ()\
15854 {\
15855 func_arith_result=$(( $* ))\
15856 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15857 && mv -f "$cfgfile.tmp" "$cfgfile" \
15858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15859 test 0 -eq $? || _lt_function_replace_fail=:
15860
15861
15862 sed -e '/^func_len ()$/,/^} # func_len /c\
15863 func_len ()\
15864 {\
15865 func_len_result=${#1}\
15866 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15867 && mv -f "$cfgfile.tmp" "$cfgfile" \
15868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869 test 0 -eq $? || _lt_function_replace_fail=:
15870
15871 fi
15872
15873 if test x"$lt_shell_append" = xyes; then
15874 sed -e '/^func_append ()$/,/^} # func_append /c\
15875 func_append ()\
15876 {\
15877 eval "${1}+=\\${2}"\
15878 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15879 && mv -f "$cfgfile.tmp" "$cfgfile" \
15880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15881 test 0 -eq $? || _lt_function_replace_fail=:
15882
15883
15884 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15885 func_append_quoted ()\
15886 {\
15887 \ func_quote_for_eval "${2}"\
15888 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15889 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15890 && mv -f "$cfgfile.tmp" "$cfgfile" \
15891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15892 test 0 -eq $? || _lt_function_replace_fail=:
15893
15894
15895 # Save a `func_append' function call where possible by direct use of '+='
15896 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15897 && mv -f "$cfgfile.tmp" "$cfgfile" \
15898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15899 test 0 -eq $? || _lt_function_replace_fail=:
15900 else
15901 # Save a `func_append' function call even when '+=' is not available
15902 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15903 && mv -f "$cfgfile.tmp" "$cfgfile" \
15904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15905 test 0 -eq $? || _lt_function_replace_fail=:
15906 fi
15907
15908 if test x"$_lt_function_replace_fail" = x":"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15910 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15911 fi
15912
15913
15914 mv -f "$cfgfile" "$ofile" ||
15915 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15916 chmod +x "$ofile"
15917
15918 ;;
15919
15920 esac
15921 done # for ac_tag
15922
15923
15924 as_fn_exit 0
15925 _ACEOF
15926 ac_clean_files=$ac_clean_files_save
15927
15928 test $ac_write_fail = 0 ||
15929 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15930
15931
15932 # configure is writing to config.log, and then calls config.status.
15933 # config.status does its own redirection, appending to config.log.
15934 # Unfortunately, on DOS this fails, as config.log is still kept open
15935 # by configure, so config.status won't be able to write to it; its
15936 # output is simply discarded. So we exec the FD to /dev/null,
15937 # effectively closing config.log, so it can be properly (re)opened and
15938 # appended to by config.status. When coming back to configure, we
15939 # need to make the FD available again.
15940 if test "$no_create" != yes; then
15941 ac_cs_success=:
15942 ac_config_status_args=
15943 test "$silent" = yes &&
15944 ac_config_status_args="$ac_config_status_args --quiet"
15945 exec 5>/dev/null
15946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15947 exec 5>>config.log
15948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15949 # would make configure fail if this is the last instruction.
15950 $ac_cs_success || as_fn_exit 1
15951 fi
15952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15955 fi
15956
15957