Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenCity 0.0.6.5stable.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='OpenCity'
589 PACKAGE_TARNAME='opencity'
590 PACKAGE_VERSION='0.0.6.5stable'
591 PACKAGE_STRING='OpenCity 0.0.6.5stable'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/main.cpp"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 OPENCITY_SDL_MIXER_FALSE
637 OPENCITY_SDL_MIXER_TRUE
638 CXXCPP
639 am__fastdepCXX_FALSE
640 am__fastdepCXX_TRUE
641 CXXDEPMODE
642 ac_ct_CXX
643 CXXFLAGS
644 CXX
645 SDL_LIBS
646 SDL_CFLAGS
647 SDL_CONFIG
648 PACKAGE_CONFIG
649 CPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 LIBTOOL
671 BINRELOC_LIBS
672 BINRELOC_CFLAGS
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_os
718 target_vendor
719 target_cpu
720 target
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_binreloc
772 enable_binreloc_threads
773 enable_dependency_tracking
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 with_sdl_prefix
782 with_sdl_exec_prefix
783 enable_sdltest
784 enable_sdl_mixer
785 with_gl
786 enable_gprof
787 enable_gdb
788 enable_debug
789 enable_mingw
790 enable_as_needed
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CPP
801 CXX
802 CXXFLAGS
803 CCC
804 CXXCPP'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 # Accept the important Cygnus configure options, so we can diagnose typos.
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures OpenCity 0.0.6.5stable to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/opencity]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1399
1400 cat <<\_ACEOF
1401
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 --target=TARGET configure for building compilers for TARGET [HOST]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of OpenCity 0.0.6.5stable:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-binreloc compile with binary relocation support
1427 (default=enable when available)
1428 --enable-binreloc-threads compile binary relocation with threads support
1429 (default=yes)
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-static[=PKGS] build static libraries [default=yes]
1436 --enable-fast-install[=PKGS]
1437 optimize for fast installation [default=yes]
1438 --disable-libtool-lock avoid locking (might break parallel builds)
1439 --disable-sdltest Do not try to compile and run a test SDL program
1440 --disable-sdl-mixer disable SDL_mixer linking
1441 --enable-gprof enable GNU profiling support
1442 --enable-gdb enable GDB support with debugging enabled
1443 --enable-debug enable ALL debugging codes
1444 --enable-mingw enable MinGW32 support
1445 --enable-as-needed link with --as-needed flag
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot=DIR Search for dependent libraries within DIR
1454 (or the compiler's sysroot if not specified).
1455 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1456 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1457 --with-gl-prefix=DIR specify OpenGL prefix (DIR="/usr/X11R6")
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1470 CXXCPP C++ preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to the package provider.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 OpenCity configure 0.0.6.5stable
1539 generated by GNU Autoconf 2.69
1540
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 test -x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_link
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739 fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1767
1768 #ifdef __STDC__
1769 # include <limits.h>
1770 #else
1771 # include <assert.h>
1772 #endif
1773
1774 #undef $2
1775
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1789
1790 int
1791 main ()
1792 {
1793 return $2 ();
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_func
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_cxx_try_cpp LINENO
1852 # ------------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_cpp ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } > conftest.i && {
1873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1885
1886 } # ac_fn_cxx_try_cpp
1887
1888 # ac_fn_cxx_try_link LINENO
1889 # -------------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_link ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext conftest$ac_exeext
1895 if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest$ac_exeext && {
1914 test "$cross_compiling" = yes ||
1915 test -x conftest$ac_exeext
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923 fi
1924 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926 # interfere with the next link command; also delete a directory that is
1927 # left behind by Apple's compiler. We do this before executing the actions.
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1931
1932 } # ac_fn_cxx_try_link
1933
1934 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1935 # ---------------------------------------------------------
1936 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1937 # the include files in INCLUDES and setting the cache variable VAR
1938 # accordingly.
1939 ac_fn_cxx_check_header_mongrel ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if eval \${$3+:} false; then :
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 else
1952 # Is the header compilable?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1954 $as_echo_n "checking $2 usability... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_cxx_try_compile "$LINENO"; then :
1961 ac_header_compiler=yes
1962 else
1963 ac_header_compiler=no
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1967 $as_echo "$ac_header_compiler" >&6; }
1968
1969 # Is the header present?
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1971 $as_echo_n "checking $2 presence... " >&6; }
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_cxx_try_cpp "$LINENO"; then :
1977 ac_header_preproc=yes
1978 else
1979 ac_header_preproc=no
1980 fi
1981 rm -f conftest.err conftest.i conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1983 $as_echo "$ac_header_preproc" >&6; }
1984
1985 # So? What about this header?
1986 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1987 yes:no: )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1989 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 ;;
1993 no:yes:* )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1995 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1997 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1999 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2001 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 ;;
2005 esac
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 eval "$3=\$ac_header_compiler"
2012 fi
2013 eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_cxx_check_header_mongrel
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2023
2024 It was created by OpenCity $as_me 0.0.6.5stable, which was
2025 generated by GNU Autoconf 2.69. Invocation command line was
2026
2027 $ $0 $@
2028
2029 _ACEOF
2030 exec 5>>config.log
2031 {
2032 cat <<_ASUNAME
2033 ## --------- ##
2034 ## Platform. ##
2035 ## --------- ##
2036
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2045
2046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2053
2054 _ASUNAME
2055
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 $as_echo "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088 for ac_arg
2089 do
2090 case $ac_arg in
2091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093 | -silent | --silent | --silen | --sile | --sil)
2094 continue ;;
2095 *\'*)
2096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 esac
2098 case $ac_pass in
2099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100 2)
2101 as_fn_append ac_configure_args1 " '$ac_arg'"
2102 if test $ac_must_keep_next = true; then
2103 ac_must_keep_next=false # Got value, back to normal.
2104 else
2105 case $ac_arg in
2106 *=* | --config-cache | -C | -disable-* | --disable-* \
2107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109 | -with-* | --with-* | -without-* | --without-* | --x)
2110 case "$ac_configure_args0 " in
2111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112 esac
2113 ;;
2114 -* ) ac_must_keep_next=true ;;
2115 esac
2116 fi
2117 as_fn_append ac_configure_args " '$ac_arg'"
2118 ;;
2119 esac
2120 done
2121 done
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log. We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131 # Save into config.log some information that might help in debugging.
2132 {
2133 echo
2134
2135 $as_echo "## ---------------- ##
2136 ## Cache variables. ##
2137 ## ---------------- ##"
2138 echo
2139 # The following way of writing the cache mishandles newlines in values,
2140 (
2141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in #(
2144 *${as_nl}*)
2145 case $ac_var in #(
2146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 esac
2149 case $ac_var in #(
2150 _ | IFS | as_nl) ;; #(
2151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152 *) { eval $ac_var=; unset $ac_var;} ;;
2153 esac ;;
2154 esac
2155 done
2156 (set) 2>&1 |
2157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158 *${as_nl}ac_space=\ *)
2159 sed -n \
2160 "s/'\''/'\''\\\\'\'''\''/g;
2161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 ;; #(
2163 *)
2164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165 ;;
2166 esac |
2167 sort
2168 )
2169 echo
2170
2171 $as_echo "## ----------------- ##
2172 ## Output variables. ##
2173 ## ----------------- ##"
2174 echo
2175 for ac_var in $ac_subst_vars
2176 do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 esac
2181 $as_echo "$ac_var='\''$ac_val'\''"
2182 done | sort
2183 echo
2184
2185 if test -n "$ac_subst_files"; then
2186 $as_echo "## ------------------- ##
2187 ## File substitutions. ##
2188 ## ------------------- ##"
2189 echo
2190 for ac_var in $ac_subst_files
2191 do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2199 fi
2200
2201 if test -s confdefs.h; then
2202 $as_echo "## ----------- ##
2203 ## confdefs.h. ##
2204 ## ----------- ##"
2205 echo
2206 cat confdefs.h
2207 echo
2208 fi
2209 test "$ac_signal" != 0 &&
2210 $as_echo "$as_me: caught signal $ac_signal"
2211 $as_echo "$as_me: exit $exit_status"
2212 } >&5
2213 rm -f core *.core core.conftest.* &&
2214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215 exit $exit_status
2216 ' 0
2217 for ac_signal in 1 2 13 15; do
2218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 done
2220 ac_signal=0
2221
2222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2223 rm -f -r conftest* confdefs.h
2224
2225 $as_echo "/* confdefs.h */" > confdefs.h
2226
2227 # Predefined preprocessor variables.
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_STRING "$PACKAGE_STRING"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_URL "$PACKAGE_URL"
2251 _ACEOF
2252
2253
2254 # Let the site file select an alternate cache file if it wants to.
2255 # Prefer an explicitly selected file to automatically selected ones.
2256 ac_site_file1=NONE
2257 ac_site_file2=NONE
2258 if test -n "$CONFIG_SITE"; then
2259 # We do not want a PATH search for config.site.
2260 case $CONFIG_SITE in #((
2261 -*) ac_site_file1=./$CONFIG_SITE;;
2262 */*) ac_site_file1=$CONFIG_SITE;;
2263 *) ac_site_file1=./$CONFIG_SITE;;
2264 esac
2265 elif test "x$prefix" != xNONE; then
2266 ac_site_file1=$prefix/share/config.site
2267 ac_site_file2=$prefix/etc/config.site
2268 else
2269 ac_site_file1=$ac_default_prefix/share/config.site
2270 ac_site_file2=$ac_default_prefix/etc/config.site
2271 fi
2272 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2273 do
2274 test "x$ac_site_file" = xNONE && continue
2275 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2277 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2278 sed 's/^/| /' "$ac_site_file" >&5
2279 . "$ac_site_file" \
2280 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 as_fn_error $? "failed to load site script $ac_site_file
2283 See \`config.log' for more details" "$LINENO" 5; }
2284 fi
2285 done
2286
2287 if test -r "$cache_file"; then
2288 # Some versions of bash will fail to source /dev/null (special files
2289 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2290 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292 $as_echo "$as_me: loading cache $cache_file" >&6;}
2293 case $cache_file in
2294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295 *) . "./$cache_file";;
2296 esac
2297 fi
2298 else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301 >$cache_file
2302 fi
2303
2304 # Check that the precious variables saved in the cache have kept the same
2305 # value.
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309 eval ac_new_set=\$ac_env_${ac_var}_set
2310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311 eval ac_new_val=\$ac_env_${ac_var}_value
2312 case $ac_old_set,$ac_new_set in
2313 set,)
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2317 ,set)
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320 ac_cache_corrupted=: ;;
2321 ,);;
2322 *)
2323 if test "x$ac_old_val" != "x$ac_new_val"; then
2324 # differences in whitespace do not lead to failure.
2325 ac_old_val_w=`echo x $ac_old_val`
2326 ac_new_val_w=`echo x $ac_new_val`
2327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330 ac_cache_corrupted=:
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334 eval $ac_var=\$ac_old_val
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2337 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2339 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2340 fi;;
2341 esac
2342 # Pass precious variables to config.status.
2343 if test "$ac_new_set" = set; then
2344 case $ac_new_val in
2345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 *) ac_arg=$ac_var=$ac_new_val ;;
2347 esac
2348 case " $ac_configure_args " in
2349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2350 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 esac
2352 fi
2353 done
2354 if $ac_cache_corrupted; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360 fi
2361 ## -------------------- ##
2362 ## Main body of script. ##
2363 ## -------------------- ##
2364
2365 ac_ext=c
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2371
2372
2373
2374 ac_aux_dir=
2375 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2376 if test -f "$ac_dir/install-sh"; then
2377 ac_aux_dir=$ac_dir
2378 ac_install_sh="$ac_aux_dir/install-sh -c"
2379 break
2380 elif test -f "$ac_dir/install.sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install.sh -c"
2383 break
2384 elif test -f "$ac_dir/shtool"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/shtool install -c"
2387 break
2388 fi
2389 done
2390 if test -z "$ac_aux_dir"; then
2391 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2392 fi
2393
2394 # These three variables are undocumented and unsupported,
2395 # and are intended to be withdrawn in a future Autoconf release.
2396 # They can cause serious problems if a builder's source tree is in a directory
2397 # whose full name contains unusual characters.
2398 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2399 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2400 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2401
2402
2403 # Make sure we can run config.sub.
2404 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2405 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2408 $as_echo_n "checking build system type... " >&6; }
2409 if ${ac_cv_build+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 ac_build_alias=$build_alias
2413 test "x$ac_build_alias" = x &&
2414 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2415 test "x$ac_build_alias" = x &&
2416 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2417 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2419
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2422 $as_echo "$ac_cv_build" >&6; }
2423 case $ac_cv_build in
2424 *-*-*) ;;
2425 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2426 esac
2427 build=$ac_cv_build
2428 ac_save_IFS=$IFS; IFS='-'
2429 set x $ac_cv_build
2430 shift
2431 build_cpu=$1
2432 build_vendor=$2
2433 shift; shift
2434 # Remember, the first character of IFS is used to create $*,
2435 # except with old shells:
2436 build_os=$*
2437 IFS=$ac_save_IFS
2438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2439
2440
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2442 $as_echo_n "checking host system type... " >&6; }
2443 if ${ac_cv_host+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test "x$host_alias" = x; then
2447 ac_cv_host=$ac_cv_build
2448 else
2449 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2451 fi
2452
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2455 $as_echo "$ac_cv_host" >&6; }
2456 case $ac_cv_host in
2457 *-*-*) ;;
2458 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2459 esac
2460 host=$ac_cv_host
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_host
2463 shift
2464 host_cpu=$1
2465 host_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 host_os=$*
2470 IFS=$ac_save_IFS
2471 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2475 $as_echo_n "checking target system type... " >&6; }
2476 if ${ac_cv_target+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test "x$target_alias" = x; then
2480 ac_cv_target=$ac_cv_host
2481 else
2482 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2484 fi
2485
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2488 $as_echo "$ac_cv_target" >&6; }
2489 case $ac_cv_target in
2490 *-*-*) ;;
2491 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2492 esac
2493 target=$ac_cv_target
2494 ac_save_IFS=$IFS; IFS='-'
2495 set x $ac_cv_target
2496 shift
2497 target_cpu=$1
2498 target_vendor=$2
2499 shift; shift
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2502 target_os=$*
2503 IFS=$ac_save_IFS
2504 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505
2506
2507 # The aliases save the names the user supplied, while $host etc.
2508 # will get canonicalized.
2509 test -n "$target_alias" &&
2510 test "$program_prefix$program_suffix$program_transform_name" = \
2511 NONENONEs,x,x, &&
2512 program_prefix=${target_alias}-
2513 ac_config_headers="$ac_config_headers config.h"
2514
2515
2516
2517 am__api_version='1.14'
2518
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if ${ac_cv_path_install+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2560 :
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
2565 else
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
2578 fi
2579 fi
2580 done
2581 done
2582 ;;
2583 esac
2584
2585 done
2586 IFS=$as_save_IFS
2587
2588 rm -rf conftest.one conftest.two conftest.dir
2589
2590 fi
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2599 fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2603
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613 $as_echo_n "checking whether build environment is sane... " >&6; }
2614 # Reject unsafe characters in $srcdir or the absolute working directory
2615 # name. Accept space and tab only in the latter.
2616 am_lf='
2617 '
2618 case `pwd` in
2619 *[\\\"\#\$\&\'\`$am_lf]*)
2620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2621 esac
2622 case $srcdir in
2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2624 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2625 esac
2626
2627 # Do 'set' in a subshell so we don't clobber the current shell's
2628 # arguments. Must try -L first in case configure is actually a
2629 # symlink; some systems play weird games with the mod time of symlinks
2630 # (eg FreeBSD returns the mod time of the symlink's containing
2631 # directory).
2632 if (
2633 am_has_slept=no
2634 for am_try in 1 2; do
2635 echo "timestamp, slept: $am_has_slept" > conftest.file
2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637 if test "$*" = "X"; then
2638 # -L didn't work.
2639 set X `ls -t "$srcdir/configure" conftest.file`
2640 fi
2641 if test "$*" != "X $srcdir/configure conftest.file" \
2642 && test "$*" != "X conftest.file $srcdir/configure"; then
2643
2644 # If neither matched, then we have a broken ls. This can happen
2645 # if, for instance, CONFIG_SHELL is bash and it inherits a
2646 # broken ls alias from the environment. This has actually
2647 # happened. Such a system could not be considered "sane".
2648 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2649 alias in your environment" "$LINENO" 5
2650 fi
2651 if test "$2" = conftest.file || test $am_try -eq 2; then
2652 break
2653 fi
2654 # Just in case.
2655 sleep 1
2656 am_has_slept=yes
2657 done
2658 test "$2" = conftest.file
2659 )
2660 then
2661 # Ok.
2662 :
2663 else
2664 as_fn_error $? "newly created file is older than distributed files!
2665 Check your system clock" "$LINENO" 5
2666 fi
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 # If we didn't sleep, we still need to ensure time stamps of config.status and
2670 # generated files are strictly newer.
2671 am_sleep_pid=
2672 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2673 ( sleep 1 ) &
2674 am_sleep_pid=$!
2675 fi
2676
2677 rm -f conftest.file
2678
2679 test "$program_prefix" != NONE &&
2680 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681 # Use a double $ so make ignores it.
2682 test "$program_suffix" != NONE &&
2683 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684 # Double any \ or $.
2685 # By default was `s,x,x', remove it if useless.
2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2688
2689 # expand $ac_aux_dir to an absolute path
2690 am_aux_dir=`cd $ac_aux_dir && pwd`
2691
2692 if test x"${MISSING+set}" != xset; then
2693 case $am_aux_dir in
2694 *\ * | *\ *)
2695 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2696 *)
2697 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2698 esac
2699 fi
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --is-lightweight"; then
2702 am_missing_run="$MISSING "
2703 else
2704 am_missing_run=
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2706 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2707 fi
2708
2709 if test x"${install_sh}" != xset; then
2710 case $am_aux_dir in
2711 *\ * | *\ *)
2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2713 *)
2714 install_sh="\${SHELL} $am_aux_dir/install-sh"
2715 esac
2716 fi
2717
2718 # Installed binaries are usually stripped using 'strip' when the user
2719 # run "make install-strip". However 'strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the 'STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_STRIP+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$STRIP"; then
2732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 $as_echo "$STRIP" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_STRIP"; then
2763 ac_ct_STRIP=$STRIP
2764 # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$ac_ct_STRIP"; then
2772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_STRIP="strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 $as_echo "$ac_ct_STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800 if test "x$ac_ct_STRIP" = x; then
2801 STRIP=":"
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 STRIP=$ac_ct_STRIP
2810 fi
2811 else
2812 STRIP="$ac_cv_prog_STRIP"
2813 fi
2814
2815 fi
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2819 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2820 if test -z "$MKDIR_P"; then
2821 if ${ac_cv_path_mkdir+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_prog in mkdir gmkdir; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2832 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2833 'mkdir (GNU coreutils) '* | \
2834 'mkdir (coreutils) '* | \
2835 'mkdir (fileutils) '4.1*)
2836 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2837 break 3;;
2838 esac
2839 done
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845
2846 test -d ./--version && rmdir ./--version
2847 if test "${ac_cv_path_mkdir+set}" = set; then
2848 MKDIR_P="$ac_cv_path_mkdir -p"
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for MKDIR_P within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 MKDIR_P="$ac_install_sh -d"
2855 fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2858 $as_echo "$MKDIR_P" >&6; }
2859
2860 for ac_prog in gawk mawk nawk awk
2861 do
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_AWK+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 AWK=$ac_cv_prog_AWK
2890 if test -n "$AWK"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2892 $as_echo "$AWK" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 test -n "$AWK" && break
2900 done
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 set x ${MAKE-make}
2905 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 SHELL = /bin/sh
2911 all:
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 *@@@%%%=?*=@@@%%%*)
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2918 *)
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2920 esac
2921 rm -f conftest.make
2922 fi
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 SET_MAKE=
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2931 fi
2932
2933 rm -rf .tst 2>/dev/null
2934 mkdir .tst 2>/dev/null
2935 if test -d .tst; then
2936 am__leading_dot=.
2937 else
2938 am__leading_dot=_
2939 fi
2940 rmdir .tst 2>/dev/null
2941
2942 # Check whether --enable-silent-rules was given.
2943 if test "${enable_silent_rules+set}" = set; then :
2944 enableval=$enable_silent_rules;
2945 fi
2946
2947 case $enable_silent_rules in # (((
2948 yes) AM_DEFAULT_VERBOSITY=0;;
2949 no) AM_DEFAULT_VERBOSITY=1;;
2950 *) AM_DEFAULT_VERBOSITY=1;;
2951 esac
2952 am_make=${MAKE-make}
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2954 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2955 if ${am_cv_make_support_nested_variables+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if $as_echo 'TRUE=$(BAR$(V))
2959 BAR0=false
2960 BAR1=true
2961 V=1
2962 am__doit:
2963 @$(TRUE)
2964 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2965 am_cv_make_support_nested_variables=yes
2966 else
2967 am_cv_make_support_nested_variables=no
2968 fi
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2971 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2972 if test $am_cv_make_support_nested_variables = yes; then
2973 AM_V='$(V)'
2974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2975 else
2976 AM_V=$AM_DEFAULT_VERBOSITY
2977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2978 fi
2979 AM_BACKSLASH='\'
2980
2981 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2983 # is not polluted with repeated "-I."
2984 am__isrc=' -I$(srcdir)'
2985 # test to see if srcdir already configured
2986 if test -f $srcdir/config.status; then
2987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2988 fi
2989 fi
2990
2991 # test whether we have cygpath
2992 if test -z "$CYGPATH_W"; then
2993 if (cygpath --version) >/dev/null 2>/dev/null; then
2994 CYGPATH_W='cygpath -w'
2995 else
2996 CYGPATH_W=echo
2997 fi
2998 fi
2999
3000
3001 # Define the identity of the package.
3002 PACKAGE='opencity'
3003 VERSION='0.0.6.5stable'
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define PACKAGE "$PACKAGE"
3008 _ACEOF
3009
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define VERSION "$VERSION"
3013 _ACEOF
3014
3015 # Some tools Automake needs.
3016
3017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031 # For better backward compatibility. To be removed once Automake 1.9.x
3032 # dies out for good. For more background, see:
3033 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035 mkdir_p='$(MKDIR_P)'
3036
3037 # We need awk for the "check" target. The system "awk" is bad on
3038 # some platforms.
3039 # Always define AMTAR for backward compatibility. Yes, it's still used
3040 # in the wild :-( We should find a proper way to deprecate it ...
3041 AMTAR='$${TAR-tar}'
3042
3043
3044 # We'll loop over all known methods to create a tar archive until one works.
3045 _am_tools='gnutar pax cpio none'
3046
3047 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048
3049
3050
3051
3052
3053
3054 # POSIX will say in a future version that running "rm -f" with no argument
3055 # is OK; and we want to be able to make that assumption in our Makefile
3056 # recipes. So use an aggressive probe to check that the usage we want is
3057 # actually supported "in the wild" to an acceptable degree.
3058 # See automake bug#10828.
3059 # To make any issue more visible, cause the running configure to be aborted
3060 # by default if the 'rm' program in use doesn't match our expectations; the
3061 # user can still override this though.
3062 if rm -f && rm -fr && rm -rf; then : OK; else
3063 cat >&2 <<'END'
3064 Oops!
3065
3066 Your 'rm' program seems unable to run without file operands specified
3067 on the command line, even when the '-f' option is present. This is contrary
3068 to the behaviour of most rm programs out there, and not conforming with
3069 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3070
3071 Please tell [email protected] about your system, including the value
3072 of your $PATH and any error possibly output before this message. This
3073 can help us improve future automake versions.
3074
3075 END
3076 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3077 echo 'Configuration will proceed anyway, since you have set the' >&2
3078 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3079 echo >&2
3080 else
3081 cat >&2 <<'END'
3082 Aborting the configuration process, to ensure you take notice of the issue.
3083
3084 You can download and install GNU coreutils to get an 'rm' implementation
3085 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3086
3087 If you want to complete the configuration process using your problematic
3088 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3089 to "yes", and re-run configure.
3090
3091 END
3092 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3093 fi
3094 fi
3095 DEPDIR="${am__leading_dot}deps"
3096
3097 ac_config_commands="$ac_config_commands depfiles"
3098
3099
3100 am_make=${MAKE-make}
3101 cat > confinc << 'END'
3102 am__doit:
3103 @echo this is the am__doit target
3104 .PHONY: am__doit
3105 END
3106 # If we don't find an include directive, just comment out the code.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3109 am__include="#"
3110 am__quote=
3111 _am_result=none
3112 # First try GNU make style include.
3113 echo "include confinc" > confmf
3114 # Ignore all kinds of additional output from 'make'.
3115 case `$am_make -s -f confmf 2> /dev/null` in #(
3116 *the\ am__doit\ target*)
3117 am__include=include
3118 am__quote=
3119 _am_result=GNU
3120 ;;
3121 esac
3122 # Now try BSD make style include.
3123 if test "$am__include" = "#"; then
3124 echo '.include "confinc"' > confmf
3125 case `$am_make -s -f confmf 2> /dev/null` in #(
3126 *the\ am__doit\ target*)
3127 am__include=.include
3128 am__quote="\""
3129 _am_result=BSD
3130 ;;
3131 esac
3132 fi
3133
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3136 $as_echo "$_am_result" >&6; }
3137 rm -f confinc confmf
3138
3139 # Check whether --enable-dependency-tracking was given.
3140 if test "${enable_dependency_tracking+set}" = set; then :
3141 enableval=$enable_dependency_tracking;
3142 fi
3143
3144 if test "x$enable_dependency_tracking" != xno; then
3145 am_depcomp="$ac_aux_dir/depcomp"
3146 AMDEPBACKSLASH='\'
3147 am__nodep='_no'
3148 fi
3149 if test "x$enable_dependency_tracking" != xno; then
3150 AMDEP_TRUE=
3151 AMDEP_FALSE='#'
3152 else
3153 AMDEP_TRUE='#'
3154 AMDEP_FALSE=
3155 fi
3156
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 if test -z "$ac_cv_prog_CC"; then
3203 ac_ct_CC=$CC
3204 # Extract the first word of "gcc", so it can be a program name with args.
3205 set dummy gcc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_CC="gcc"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240 if test "x$ac_ct_CC" = x; then
3241 CC=""
3242 else
3243 case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3250 fi
3251 else
3252 CC="$ac_cv_prog_CC"
3253 fi
3254
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_CC="${ac_tool_prefix}cc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 fi
3296 if test -z "$CC"; then
3297 # Extract the first word of "cc", so it can be a program name with args.
3298 set dummy cc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 ac_prog_rejected=no
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3316 ac_prog_rejected=yes
3317 continue
3318 fi
3319 ac_cv_prog_CC="cc"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 if test $ac_prog_rejected = yes; then
3328 # We found a bogon in the path, so make sure we never use it.
3329 set dummy $ac_cv_prog_CC
3330 shift
3331 if test $# != 0; then
3332 # We chose a different compiler from the bogus one.
3333 # However, it has the same basename, so the bogon will be chosen
3334 # first if we set CC to just the basename; use the full file name.
3335 shift
3336 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3337 fi
3338 fi
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 $as_echo "$CC" >&6; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 for ac_prog in cl.exe
3355 do
3356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 test -n "$CC" && break
3394 done
3395 fi
3396 if test -z "$CC"; then
3397 ac_ct_CC=$CC
3398 for ac_prog in cl.exe
3399 do
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401 set dummy $ac_prog; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_ac_ct_CC="$ac_prog"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430 $as_echo "$ac_ct_CC" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436
3437 test -n "$ac_ct_CC" && break
3438 done
3439
3440 if test "x$ac_ct_CC" = x; then
3441 CC=""
3442 else
3443 case $cross_compiling:$ac_tool_warned in
3444 yes:)
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447 ac_tool_warned=yes ;;
3448 esac
3449 CC=$ac_ct_CC
3450 fi
3451 fi
3452
3453 fi
3454
3455
3456 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "no acceptable C compiler found in \$PATH
3459 See \`config.log' for more details" "$LINENO" 5; }
3460
3461 # Provide some information about the compiler.
3462 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3463 set X $ac_compile
3464 ac_compiler=$2
3465 for ac_option in --version -v -V -qversion; do
3466 { { ac_try="$ac_compiler $ac_option >&5"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3474 ac_status=$?
3475 if test -s conftest.err; then
3476 sed '10a\
3477 ... rest of stderr output deleted ...
3478 10q' conftest.err >conftest.er1
3479 cat conftest.er1 >&5
3480 fi
3481 rm -f conftest.er1 conftest.err
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }
3484 done
3485
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 ac_clean_files_save=$ac_clean_files
3498 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3499 # Try to create an executable without -o first, disregard a.out.
3500 # It will help us diagnose broken compilers, and finding out an intuition
3501 # of exeext.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3503 $as_echo_n "checking whether the C compiler works... " >&6; }
3504 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505
3506 # The possible output files:
3507 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508
3509 ac_rmfiles=
3510 for ac_file in $ac_files
3511 do
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3515 esac
3516 done
3517 rm -f $ac_rmfiles
3518
3519 if { { ac_try="$ac_link_default"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link_default") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3533 # so that the user can short-circuit this test for compilers unknown to
3534 # Autoconf.
3535 for ac_file in $ac_files ''
3536 do
3537 test -f "$ac_file" || continue
3538 case $ac_file in
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540 ;;
3541 [ab].out )
3542 # We found the default executable, but exeext='' is most
3543 # certainly right.
3544 break;;
3545 *.* )
3546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3547 then :; else
3548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 fi
3550 # We set ac_cv_exeext here because the later test for it is not
3551 # safe: cross compilers may not add the suffix if given an `-o'
3552 # argument, so we may need to know it at that point already.
3553 # Even if this section looks crufty: it has the advantage of
3554 # actually working.
3555 break;;
3556 * )
3557 break;;
3558 esac
3559 done
3560 test "$ac_cv_exeext" = no && ac_cv_exeext=
3561
3562 else
3563 ac_file=''
3564 fi
3565 if test -z "$ac_file"; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error 77 "C compiler cannot create executables
3574 See \`config.log' for more details" "$LINENO" 5; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577 $as_echo "yes" >&6; }
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3580 $as_echo_n "checking for C compiler default output file name... " >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 ac_exeext=$ac_cv_exeext
3584
3585 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3586 ac_clean_files=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588 $as_echo_n "checking for suffix of executables... " >&6; }
3589 if { { ac_try="$ac_link"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3602 # work properly (i.e., refer to `conftest.exe'), while it won't with
3603 # `rm'.
3604 for ac_file in conftest.exe conftest conftest.*; do
3605 test -f "$ac_file" || continue
3606 case $ac_file in
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 break;;
3610 * ) break;;
3611 esac
3612 done
3613 else
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3617 See \`config.log' for more details" "$LINENO" 5; }
3618 fi
3619 rm -f conftest conftest$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3622
3623 rm -f conftest.$ac_ext
3624 EXEEXT=$ac_cv_exeext
3625 ac_exeext=$EXEEXT
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <stdio.h>
3629 int
3630 main ()
3631 {
3632 FILE *f = fopen ("conftest.out", "w");
3633 return ferror (f) || fclose (f) != 0;
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 ac_clean_files="$ac_clean_files conftest.out"
3640 # Check that the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3643 $as_echo_n "checking whether we are cross compiling... " >&6; }
3644 if test "$cross_compiling" != yes; then
3645 { { ac_try="$ac_link"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link") 2>&5
3653 ac_status=$?
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 if { ac_try='./conftest$ac_cv_exeext'
3657 { { case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; }; then
3667 cross_compiling=no
3668 else
3669 if test "$cross_compiling" = maybe; then
3670 cross_compiling=yes
3671 else
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "cannot run C compiled programs.
3675 If you meant to cross compile, use \`--host'.
3676 See \`config.log' for more details" "$LINENO" 5; }
3677 fi
3678 fi
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3682
3683 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3686 $as_echo_n "checking for suffix of object files... " >&6; }
3687 if ${ac_cv_objext+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.o conftest.obj
3702 if { { ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_compile") 2>&5
3710 ac_status=$?
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 for ac_file in conftest.o conftest.obj conftest.*; do
3714 test -f "$ac_file" || continue;
3715 case $ac_file in
3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 break;;
3719 esac
3720 done
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 fi
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3735 ac_objext=$OBJEXT
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if ${ac_cv_c_compiler_gnu+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747 #ifndef __GNUC__
3748 choke me
3749 #endif
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_compiler_gnu=yes
3757 else
3758 ac_compiler_gnu=no
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3762
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3765 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3766 if test $ac_compiler_gnu = yes; then
3767 GCC=yes
3768 else
3769 GCC=
3770 fi
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3774 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3775 if ${ac_cv_prog_cc_g+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 ac_save_c_werror_flag=$ac_c_werror_flag
3779 ac_c_werror_flag=yes
3780 ac_cv_prog_cc_g=no
3781 CFLAGS="-g"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_g=yes
3795 else
3796 CFLAGS=""
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799
3800 int
3801 main ()
3802 {
3803
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809
3810 else
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3812 CFLAGS="-g"
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_g=yes
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_c_werror_flag=$ac_save_c_werror_flag
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3835 $as_echo "$ac_cv_prog_cc_g" >&6; }
3836 if test "$ac_test_CFLAGS" = set; then
3837 CFLAGS=$ac_save_CFLAGS
3838 elif test $ac_cv_prog_cc_g = yes; then
3839 if test "$GCC" = yes; then
3840 CFLAGS="-g -O2"
3841 else
3842 CFLAGS="-g"
3843 fi
3844 else
3845 if test "$GCC" = yes; then
3846 CFLAGS="-O2"
3847 else
3848 CFLAGS=
3849 fi
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3852 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3853 if ${ac_cv_prog_cc_c89+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_cv_prog_cc_c89=no
3857 ac_save_CC=$CC
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdarg.h>
3861 #include <stdio.h>
3862 struct stat;
3863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3864 struct buf { int x; };
3865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3866 static char *e (p, i)
3867 char **p;
3868 int i;
3869 {
3870 return p[i];
3871 }
3872 static char *f (char * (*g) (char **, int), char **p, ...)
3873 {
3874 char *s;
3875 va_list v;
3876 va_start (v,p);
3877 s = g (p, va_arg (v,int));
3878 va_end (v);
3879 return s;
3880 }
3881
3882 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3883 function prototypes and stuff, but not '\xHH' hex character constants.
3884 These don't provoke an error unfortunately, instead are silently treated
3885 as 'x'. The following induces an error, until -std is added to get
3886 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3887 array size at least. It's necessary to write '\x00'==0 to get something
3888 that's true only with -std. */
3889 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3890
3891 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3892 inside strings and character constants. */
3893 #define FOO(x) 'x'
3894 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3895
3896 int test (int i, double x);
3897 struct s1 {int (*f) (int a);};
3898 struct s2 {int (*f) (double a);};
3899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3900 int argc;
3901 char **argv;
3902 int
3903 main ()
3904 {
3905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3911 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3912 do
3913 CC="$ac_save_CC $ac_arg"
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915 ac_cv_prog_cc_c89=$ac_arg
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext
3918 test "x$ac_cv_prog_cc_c89" != "xno" && break
3919 done
3920 rm -f conftest.$ac_ext
3921 CC=$ac_save_CC
3922
3923 fi
3924 # AC_CACHE_VAL
3925 case "x$ac_cv_prog_cc_c89" in
3926 x)
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3928 $as_echo "none needed" >&6; } ;;
3929 xno)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3931 $as_echo "unsupported" >&6; } ;;
3932 *)
3933 CC="$CC $ac_cv_prog_cc_c89"
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3935 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3936 esac
3937 if test "x$ac_cv_prog_cc_c89" != xno; then :
3938
3939 fi
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3953 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3954 if ${am_cv_prog_cc_c_o+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959
3960 int
3961 main ()
3962 {
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 # Make sure it works both with $CC and with simple cc.
3969 # Following AC_PROG_CC_C_O, we do the test twice because some
3970 # compilers refuse to overwrite an existing .o file with -o,
3971 # though they will create one.
3972 am_cv_prog_cc_c_o=yes
3973 for am_i in 1 2; do
3974 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3975 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } \
3979 && test -f conftest2.$ac_objext; then
3980 : OK
3981 else
3982 am_cv_prog_cc_c_o=no
3983 break
3984 fi
3985 done
3986 rm -f core conftest*
3987 unset am_i
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3990 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3991 if test "$am_cv_prog_cc_c_o" != yes; then
3992 # Losing compiler, so override with the script.
3993 # FIXME: It is wrong to rewrite CC.
3994 # But if we don't then we get into trouble of one sort or another.
3995 # A longer-term fix would be to have automake use am__CC in this case,
3996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3997 CC="$am_aux_dir/compile $CC"
3998 fi
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005
4006 depcc="$CC" am_compiler_list=
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4009 $as_echo_n "checking dependency style of $depcc... " >&6; }
4010 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014 # We make a subdir and do the tests there. Otherwise we can end up
4015 # making bogus files that we don't know about and never remove. For
4016 # instance it was reported that on HP-UX the gcc test will end up
4017 # making a dummy file named 'D' -- because '-MD' means "put the output
4018 # in D".
4019 rm -rf conftest.dir
4020 mkdir conftest.dir
4021 # Copy depcomp to subdir because otherwise we won't find it if we're
4022 # using a relative directory.
4023 cp "$am_depcomp" conftest.dir
4024 cd conftest.dir
4025 # We will build objects and dependencies in a subdirectory because
4026 # it helps to detect inapplicable dependency modes. For instance
4027 # both Tru64's cc and ICC support -MD to output dependencies as a
4028 # side effect of compilation, but ICC will put the dependencies in
4029 # the current directory while Tru64 will put them in the object
4030 # directory.
4031 mkdir sub
4032
4033 am_cv_CC_dependencies_compiler_type=none
4034 if test "$am_compiler_list" = ""; then
4035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4036 fi
4037 am__universal=false
4038 case " $depcc " in #(
4039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4040 esac
4041
4042 for depmode in $am_compiler_list; do
4043 # Setup a source with many dependencies, because some compilers
4044 # like to wrap large dependency lists on column 80 (with \), and
4045 # we should not choose a depcomp mode which is confused by this.
4046 #
4047 # We need to recreate these files for each test, as the compiler may
4048 # overwrite some of them when testing with obscure command lines.
4049 # This happens at least with the AIX C compiler.
4050 : > sub/conftest.c
4051 for i in 1 2 3 4 5 6; do
4052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4054 # Solaris 10 /bin/sh.
4055 echo '/* dummy */' > sub/conftst$i.h
4056 done
4057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4058
4059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4060 # mode. It turns out that the SunPro C++ compiler does not properly
4061 # handle '-M -o', and we need to detect this. Also, some Intel
4062 # versions had trouble with output in subdirs.
4063 am__obj=sub/conftest.${OBJEXT-o}
4064 am__minus_obj="-o $am__obj"
4065 case $depmode in
4066 gcc)
4067 # This depmode causes a compiler race in universal mode.
4068 test "$am__universal" = false || continue
4069 ;;
4070 nosideeffect)
4071 # After this tag, mechanisms are not by side-effect, so they'll
4072 # only be used when explicitly requested.
4073 if test "x$enable_dependency_tracking" = xyes; then
4074 continue
4075 else
4076 break
4077 fi
4078 ;;
4079 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4080 # This compiler won't grok '-c -o', but also, the minuso test has
4081 # not run yet. These depmodes are late enough in the game, and
4082 # so weak that their functioning should not be impacted.
4083 am__obj=conftest.${OBJEXT-o}
4084 am__minus_obj=
4085 ;;
4086 none) break ;;
4087 esac
4088 if depmode=$depmode \
4089 source=sub/conftest.c object=$am__obj \
4090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4092 >/dev/null 2>conftest.err &&
4093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4097 # icc doesn't choke on unknown options, it will just issue warnings
4098 # or remarks (even with -Werror). So we grep stderr for any message
4099 # that says an option was ignored or not supported.
4100 # When given -MP, icc 7.0 and 7.1 complain thusly:
4101 # icc: Command line warning: ignoring option '-M'; no argument required
4102 # The diagnosis changed in icc 8.0:
4103 # icc: Command line remark: option '-MP' not supported
4104 if (grep 'ignoring option' conftest.err ||
4105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4106 am_cv_CC_dependencies_compiler_type=$depmode
4107 break
4108 fi
4109 fi
4110 done
4111
4112 cd ..
4113 rm -rf conftest.dir
4114 else
4115 am_cv_CC_dependencies_compiler_type=none
4116 fi
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4122
4123 if
4124 test "x$enable_dependency_tracking" != xno \
4125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4126 am__fastdepCC_TRUE=
4127 am__fastdepCC_FALSE='#'
4128 else
4129 am__fastdepCC_TRUE='#'
4130 am__fastdepCC_FALSE=
4131 fi
4132
4133
4134
4135
4136 # Check whether --enable-binreloc was given.
4137 if test "${enable_binreloc+set}" = set; then :
4138 enableval=$enable_binreloc; enable_binreloc=$enableval
4139 else
4140 enable_binreloc=auto
4141 fi
4142
4143
4144 # Check whether --enable-binreloc-threads was given.
4145 if test "${enable_binreloc_threads+set}" = set; then :
4146 enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
4147 else
4148 enable_binreloc_threads=yes
4149 fi
4150
4151
4152 BINRELOC_CFLAGS=
4153 BINRELOC_LIBS=
4154 if test "x$enable_binreloc" = "xauto"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
4156 $as_echo_n "checking for /proc/self/maps... " >&6; }
4157 if ${ac_cv_file__proc_self_maps+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 test "$cross_compiling" = yes &&
4161 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4162 if test -r "/proc/self/maps"; then
4163 ac_cv_file__proc_self_maps=yes
4164 else
4165 ac_cv_file__proc_self_maps=no
4166 fi
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
4169 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
4170 if test "x$ac_cv_file__proc_self_maps" = xyes; then :
4171
4172 fi
4173
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether everything is installed to the same prefix" >&5
4175 $as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
4176 if ${br_cv_valid_prefixes+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179
4180 if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
4181 "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
4182 "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
4183 then
4184 br_cv_valid_prefixes=yes
4185 else
4186 br_cv_valid_prefixes=no
4187 fi
4188
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_valid_prefixes" >&5
4191 $as_echo "$br_cv_valid_prefixes" >&6; }
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation support should be enabled" >&5
4194 $as_echo_n "checking whether binary relocation support should be enabled... " >&6; }
4195 if ${br_cv_binreloc+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198
4199 if test "x$enable_binreloc" = "xyes"; then
4200 br_cv_binreloc=yes
4201 elif test "x$enable_binreloc" = "xauto"; then
4202 if test "x$br_cv_valid_prefixes" = "xyes" -a \
4203 "x$ac_cv_file__proc_self_maps" = "xyes"; then
4204 br_cv_binreloc=yes
4205 else
4206 br_cv_binreloc=no
4207 fi
4208 else
4209 br_cv_binreloc=no
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc" >&5
4214 $as_echo "$br_cv_binreloc" >&6; }
4215
4216 if test "x$br_cv_binreloc" = "xyes"; then
4217 BINRELOC_CFLAGS="-DENABLE_BINRELOC"
4218
4219 $as_echo "#define ENABLE_BINRELOC 1" >>confdefs.h
4220
4221 if test "x$enable_binreloc_threads" = "xyes"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_getspecific in -lpthread" >&5
4223 $as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; }
4224 if ${ac_cv_lib_pthread_pthread_getspecific+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_check_lib_save_LIBS=$LIBS
4228 LIBS="-lpthread $LIBS"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231
4232 /* Override any GCC internal prototype to avoid an error.
4233 Use char because int might match the return type of a GCC
4234 builtin and then its argument prototype would still apply. */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 char pthread_getspecific ();
4239 int
4240 main ()
4241 {
4242 return pthread_getspecific ();
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_link "$LINENO"; then :
4248 ac_cv_lib_pthread_pthread_getspecific=yes
4249 else
4250 ac_cv_lib_pthread_pthread_getspecific=no
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
4257 $as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; }
4258 if test "x$ac_cv_lib_pthread_pthread_getspecific" = xyes; then :
4259 cat >>confdefs.h <<_ACEOF
4260 #define HAVE_LIBPTHREAD 1
4261 _ACEOF
4262
4263 LIBS="-lpthread $LIBS"
4264
4265 fi
4266
4267 fi
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation should use threads" >&5
4270 $as_echo_n "checking whether binary relocation should use threads... " >&6; }
4271 if ${br_cv_binreloc_threads+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274
4275 if test "x$enable_binreloc_threads" = "xyes"; then
4276 if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
4277 br_cv_binreloc_threads=yes
4278 else
4279 br_cv_binreloc_threads=no
4280 fi
4281 else
4282 br_cv_binreloc_threads=no
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc_threads" >&5
4287 $as_echo "$br_cv_binreloc_threads" >&6; }
4288
4289 if test "x$br_cv_binreloc_threads" = "xyes"; then
4290 BINRELOC_LIBS="-lpthread"
4291
4292 $as_echo "#define BR_PTHREAD 1" >>confdefs.h
4293
4294 else
4295 BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
4296
4297 $as_echo "#define BR_PTHREAD 0" >>confdefs.h
4298
4299 fi
4300 fi
4301
4302
4303
4304
4305
4306
4307
4308 case `pwd` in
4309 *\ * | *\ *)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4311 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4312 esac
4313
4314
4315
4316 macro_version='2.4.2'
4317 macro_revision='1.3337'
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 ltmain="$ac_aux_dir/ltmain.sh"
4332
4333 # Backslashify metacharacters that are still active within
4334 # double-quoted strings.
4335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4336
4337 # Same as above, but do not quote variable references.
4338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4339
4340 # Sed substitution to delay expansion of an escaped shell variable in a
4341 # double_quote_subst'ed string.
4342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4343
4344 # Sed substitution to delay expansion of an escaped single quote.
4345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4346
4347 # Sed substitution to avoid accidental globbing in evaled expressions
4348 no_glob_subst='s/\*/\\\*/g'
4349
4350 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4355 $as_echo_n "checking how to print strings... " >&6; }
4356 # Test print first, because it will be a builtin if present.
4357 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4359 ECHO='print -r --'
4360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4361 ECHO='printf %s\n'
4362 else
4363 # Use this function as a fallback that always works.
4364 func_fallback_echo ()
4365 {
4366 eval 'cat <<_LTECHO_EOF
4367 $1
4368 _LTECHO_EOF'
4369 }
4370 ECHO='func_fallback_echo'
4371 fi
4372
4373 # func_echo_all arg...
4374 # Invoke $ECHO with all args, space-separated.
4375 func_echo_all ()
4376 {
4377 $ECHO ""
4378 }
4379
4380 case "$ECHO" in
4381 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4382 $as_echo "printf" >&6; } ;;
4383 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4384 $as_echo "print -r" >&6; } ;;
4385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4386 $as_echo "cat" >&6; } ;;
4387 esac
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404 if ${ac_cv_path_SED+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408 for ac_i in 1 2 3 4 5 6 7; do
4409 ac_script="$ac_script$as_nl$ac_script"
4410 done
4411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412 { ac_script=; unset ac_script;}
4413 if test -z "$SED"; then
4414 ac_path_SED_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in sed gsed; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424 as_fn_executable_p "$ac_path_SED" || continue
4425 # Check for GNU ac_path_SED and select it if it is found.
4426 # Check for GNU $ac_path_SED
4427 case `"$ac_path_SED" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4430 *)
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo '' >> "conftest.nl"
4439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_SED_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_SED="$ac_path_SED"
4445 ac_path_SED_max=$ac_count
4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4452
4453 $ac_path_SED_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_SED"; then
4459 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4460 fi
4461 else
4462 ac_cv_path_SED=$SED
4463 fi
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4467 $as_echo "$ac_cv_path_SED" >&6; }
4468 SED="$ac_cv_path_SED"
4469 rm -f conftest.sed
4470
4471 test -z "$SED" && SED=sed
4472 Xsed="$SED -e 1s/^X//"
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4485 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4486 if ${ac_cv_path_GREP+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -z "$GREP"; then
4490 ac_path_GREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in grep ggrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4500 as_fn_executable_p "$ac_path_GREP" || continue
4501 # Check for GNU ac_path_GREP and select it if it is found.
4502 # Check for GNU $ac_path_GREP
4503 case `"$ac_path_GREP" --version 2>&1` in
4504 *GNU*)
4505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506 *)
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4510 do
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'GREP' >> "conftest.nl"
4515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_GREP="$ac_path_GREP"
4521 ac_path_GREP_max=$ac_count
4522 fi
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4528
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533 IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_GREP"; then
4535 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 fi
4537 else
4538 ac_cv_path_GREP=$GREP
4539 fi
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4543 $as_echo "$ac_cv_path_GREP" >&6; }
4544 GREP="$ac_cv_path_GREP"
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4548 $as_echo_n "checking for egrep... " >&6; }
4549 if ${ac_cv_path_EGREP+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4553 then ac_cv_path_EGREP="$GREP -E"
4554 else
4555 if test -z "$EGREP"; then
4556 ac_path_EGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in egrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 as_fn_executable_p "$ac_path_EGREP" || continue
4567 # Check for GNU ac_path_EGREP and select it if it is found.
4568 # Check for GNU $ac_path_EGREP
4569 case `"$ac_path_EGREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572 *)
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4576 do
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'EGREP' >> "conftest.nl"
4581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_EGREP="$ac_path_EGREP"
4587 ac_path_EGREP_max=$ac_count
4588 fi
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4594
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_EGREP"; then
4601 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 fi
4603 else
4604 ac_cv_path_EGREP=$EGREP
4605 fi
4606
4607 fi
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4610 $as_echo "$ac_cv_path_EGREP" >&6; }
4611 EGREP="$ac_cv_path_EGREP"
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4615 $as_echo_n "checking for fgrep... " >&6; }
4616 if ${ac_cv_path_FGREP+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4620 then ac_cv_path_FGREP="$GREP -F"
4621 else
4622 if test -z "$FGREP"; then
4623 ac_path_FGREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in fgrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4633 as_fn_executable_p "$ac_path_FGREP" || continue
4634 # Check for GNU ac_path_FGREP and select it if it is found.
4635 # Check for GNU $ac_path_FGREP
4636 case `"$ac_path_FGREP" --version 2>&1` in
4637 *GNU*)
4638 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4639 *)
4640 ac_count=0
4641 $as_echo_n 0123456789 >"conftest.in"
4642 while :
4643 do
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'FGREP' >> "conftest.nl"
4648 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_FGREP="$ac_path_FGREP"
4654 ac_path_FGREP_max=$ac_count
4655 fi
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4658 done
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662 $ac_path_FGREP_found && break 3
4663 done
4664 done
4665 done
4666 IFS=$as_save_IFS
4667 if test -z "$ac_cv_path_FGREP"; then
4668 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 fi
4670 else
4671 ac_cv_path_FGREP=$FGREP
4672 fi
4673
4674 fi
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4677 $as_echo "$ac_cv_path_FGREP" >&6; }
4678 FGREP="$ac_cv_path_FGREP"
4679
4680
4681 test -z "$GREP" && GREP=grep
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701 # Check whether --with-gnu-ld was given.
4702 if test "${with_gnu_ld+set}" = set; then :
4703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4704 else
4705 with_gnu_ld=no
4706 fi
4707
4708 ac_prog=ld
4709 if test "$GCC" = yes; then
4710 # Check if gcc -print-prog-name=ld gives a path.
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4712 $as_echo_n "checking for ld used by $CC... " >&6; }
4713 case $host in
4714 *-*-mingw*)
4715 # gcc leaves a trailing carriage return which upsets mingw
4716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4717 *)
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4719 esac
4720 case $ac_prog in
4721 # Accept absolute paths.
4722 [\\/]* | ?:[\\/]*)
4723 re_direlt='/[^/][^/]*/\.\./'
4724 # Canonicalize the pathname of ld
4725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4728 done
4729 test -z "$LD" && LD="$ac_prog"
4730 ;;
4731 "")
4732 # If it fails, then pretend we aren't using GCC.
4733 ac_prog=ld
4734 ;;
4735 *)
4736 # If it is relative, then search for the first ld in PATH.
4737 with_gnu_ld=unknown
4738 ;;
4739 esac
4740 elif test "$with_gnu_ld" = yes; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4742 $as_echo_n "checking for GNU ld... " >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4745 $as_echo_n "checking for non-GNU ld... " >&6; }
4746 fi
4747 if ${lt_cv_path_LD+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -z "$LD"; then
4751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752 for ac_dir in $PATH; do
4753 IFS="$lt_save_ifs"
4754 test -z "$ac_dir" && ac_dir=.
4755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4756 lt_cv_path_LD="$ac_dir/$ac_prog"
4757 # Check to see if the program is GNU ld. I'd rather use --version,
4758 # but apparently some variants of GNU ld only accept -v.
4759 # Break only if it was the GNU/non-GNU ld that we prefer.
4760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4761 *GNU* | *'with BFD'*)
4762 test "$with_gnu_ld" != no && break
4763 ;;
4764 *)
4765 test "$with_gnu_ld" != yes && break
4766 ;;
4767 esac
4768 fi
4769 done
4770 IFS="$lt_save_ifs"
4771 else
4772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4773 fi
4774 fi
4775
4776 LD="$lt_cv_path_LD"
4777 if test -n "$LD"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4779 $as_echo "$LD" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4787 if ${lt_cv_prog_gnu_ld+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4791 case `$LD -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 lt_cv_prog_gnu_ld=yes
4794 ;;
4795 *)
4796 lt_cv_prog_gnu_ld=no
4797 ;;
4798 esac
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4802 with_gnu_ld=$lt_cv_prog_gnu_ld
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4813 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4814 if ${lt_cv_path_NM+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$NM"; then
4818 # Let the user override the test.
4819 lt_cv_path_NM="$NM"
4820 else
4821 lt_nm_to_check="${ac_tool_prefix}nm"
4822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4823 lt_nm_to_check="$lt_nm_to_check nm"
4824 fi
4825 for lt_tmp_nm in $lt_nm_to_check; do
4826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4828 IFS="$lt_save_ifs"
4829 test -z "$ac_dir" && ac_dir=.
4830 tmp_nm="$ac_dir/$lt_tmp_nm"
4831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4832 # Check to see if the nm accepts a BSD-compat flag.
4833 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4834 # nm: unknown option "B" ignored
4835 # Tru64's nm complains that /dev/null is an invalid object file
4836 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4837 */dev/null* | *'Invalid file or object type'*)
4838 lt_cv_path_NM="$tmp_nm -B"
4839 break
4840 ;;
4841 *)
4842 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4843 */dev/null*)
4844 lt_cv_path_NM="$tmp_nm -p"
4845 break
4846 ;;
4847 *)
4848 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4849 continue # so that we can try to find one that supports BSD flags
4850 ;;
4851 esac
4852 ;;
4853 esac
4854 fi
4855 done
4856 IFS="$lt_save_ifs"
4857 done
4858 : ${lt_cv_path_NM=no}
4859 fi
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4862 $as_echo "$lt_cv_path_NM" >&6; }
4863 if test "$lt_cv_path_NM" != "no"; then
4864 NM="$lt_cv_path_NM"
4865 else
4866 # Didn't find any BSD compatible name lister, look for dumpbin.
4867 if test -n "$DUMPBIN"; then :
4868 # Let the user override the test.
4869 else
4870 if test -n "$ac_tool_prefix"; then
4871 for ac_prog in dumpbin "link -dump"
4872 do
4873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_DUMPBIN+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$DUMPBIN"; then
4881 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894 done
4895 done
4896 IFS=$as_save_IFS
4897
4898 fi
4899 fi
4900 DUMPBIN=$ac_cv_prog_DUMPBIN
4901 if test -n "$DUMPBIN"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4903 $as_echo "$DUMPBIN" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4907 fi
4908
4909
4910 test -n "$DUMPBIN" && break
4911 done
4912 fi
4913 if test -z "$DUMPBIN"; then
4914 ac_ct_DUMPBIN=$DUMPBIN
4915 for ac_prog in dumpbin "link -dump"
4916 do
4917 # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy $ac_prog; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$ac_ct_DUMPBIN"; then
4925 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4945 if test -n "$ac_ct_DUMPBIN"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4947 $as_echo "$ac_ct_DUMPBIN" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 fi
4952
4953
4954 test -n "$ac_ct_DUMPBIN" && break
4955 done
4956
4957 if test "x$ac_ct_DUMPBIN" = x; then
4958 DUMPBIN=":"
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966 DUMPBIN=$ac_ct_DUMPBIN
4967 fi
4968 fi
4969
4970 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4971 *COFF*)
4972 DUMPBIN="$DUMPBIN -symbols"
4973 ;;
4974 *)
4975 DUMPBIN=:
4976 ;;
4977 esac
4978 fi
4979
4980 if test "$DUMPBIN" != ":"; then
4981 NM="$DUMPBIN"
4982 fi
4983 fi
4984 test -z "$NM" && NM=nm
4985
4986
4987
4988
4989
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4992 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4993 if ${lt_cv_nm_interface+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 lt_cv_nm_interface="BSD nm"
4997 echo "int some_variable = 0;" > conftest.$ac_ext
4998 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4999 (eval "$ac_compile" 2>conftest.err)
5000 cat conftest.err >&5
5001 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5002 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5003 cat conftest.err >&5
5004 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5005 cat conftest.out >&5
5006 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5007 lt_cv_nm_interface="MS dumpbin"
5008 fi
5009 rm -f conftest*
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5012 $as_echo "$lt_cv_nm_interface" >&6; }
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5015 $as_echo_n "checking whether ln -s works... " >&6; }
5016 LN_S=$as_ln_s
5017 if test "$LN_S" = "ln -s"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5019 $as_echo "yes" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5022 $as_echo "no, using $LN_S" >&6; }
5023 fi
5024
5025 # find the maximum length of command line arguments
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5027 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5028 if ${lt_cv_sys_max_cmd_len+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 i=0
5032 teststring="ABCD"
5033
5034 case $build_os in
5035 msdosdjgpp*)
5036 # On DJGPP, this test can blow up pretty badly due to problems in libc
5037 # (any single argument exceeding 2000 bytes causes a buffer overrun
5038 # during glob expansion). Even if it were fixed, the result of this
5039 # check would be larger than it should be.
5040 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5041 ;;
5042
5043 gnu*)
5044 # Under GNU Hurd, this test is not required because there is
5045 # no limit to the length of command line arguments.
5046 # Libtool will interpret -1 as no limit whatsoever
5047 lt_cv_sys_max_cmd_len=-1;
5048 ;;
5049
5050 cygwin* | mingw* | cegcc*)
5051 # On Win9x/ME, this test blows up -- it succeeds, but takes
5052 # about 5 minutes as the teststring grows exponentially.
5053 # Worse, since 9x/ME are not pre-emptively multitasking,
5054 # you end up with a "frozen" computer, even though with patience
5055 # the test eventually succeeds (with a max line length of 256k).
5056 # Instead, let's just punt: use the minimum linelength reported by
5057 # all of the supported platforms: 8192 (on NT/2K/XP).
5058 lt_cv_sys_max_cmd_len=8192;
5059 ;;
5060
5061 mint*)
5062 # On MiNT this can take a long time and run out of memory.
5063 lt_cv_sys_max_cmd_len=8192;
5064 ;;
5065
5066 amigaos*)
5067 # On AmigaOS with pdksh, this test takes hours, literally.
5068 # So we just punt and use a minimum line length of 8192.
5069 lt_cv_sys_max_cmd_len=8192;
5070 ;;
5071
5072 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5073 # This has been around since 386BSD, at least. Likely further.
5074 if test -x /sbin/sysctl; then
5075 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5076 elif test -x /usr/sbin/sysctl; then
5077 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5078 else
5079 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5080 fi
5081 # And add a safety zone
5082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5084 ;;
5085
5086 interix*)
5087 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5088 lt_cv_sys_max_cmd_len=196608
5089 ;;
5090
5091 os2*)
5092 # The test takes a long time on OS/2.
5093 lt_cv_sys_max_cmd_len=8192
5094 ;;
5095
5096 osf*)
5097 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5098 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5099 # nice to cause kernel panics so lets avoid the loop below.
5100 # First set a reasonable default.
5101 lt_cv_sys_max_cmd_len=16384
5102 #
5103 if test -x /sbin/sysconfig; then
5104 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5105 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5106 esac
5107 fi
5108 ;;
5109 sco3.2v5*)
5110 lt_cv_sys_max_cmd_len=102400
5111 ;;
5112 sysv5* | sco5v6* | sysv4.2uw2*)
5113 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5114 if test -n "$kargmax"; then
5115 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5116 else
5117 lt_cv_sys_max_cmd_len=32768
5118 fi
5119 ;;
5120 *)
5121 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5122 if test -n "$lt_cv_sys_max_cmd_len"; then
5123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5125 else
5126 # Make teststring a little bigger before we do anything with it.
5127 # a 1K string should be a reasonable start.
5128 for i in 1 2 3 4 5 6 7 8 ; do
5129 teststring=$teststring$teststring
5130 done
5131 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5132 # If test is not a shell built-in, we'll probably end up computing a
5133 # maximum length that is only half of the actual maximum length, but
5134 # we can't tell.
5135 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5136 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5137 test $i != 17 # 1/2 MB should be enough
5138 do
5139 i=`expr $i + 1`
5140 teststring=$teststring$teststring
5141 done
5142 # Only check the string length outside the loop.
5143 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5144 teststring=
5145 # Add a significant safety factor because C++ compilers can tack on
5146 # massive amounts of additional arguments before passing them to the
5147 # linker. It appears as though 1/2 is a usable value.
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5149 fi
5150 ;;
5151 esac
5152
5153 fi
5154
5155 if test -n $lt_cv_sys_max_cmd_len ; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5157 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5160 $as_echo "none" >&6; }
5161 fi
5162 max_cmd_len=$lt_cv_sys_max_cmd_len
5163
5164
5165
5166
5167
5168
5169 : ${CP="cp -f"}
5170 : ${MV="mv -f"}
5171 : ${RM="rm -f"}
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5174 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5175 # Try some XSI features
5176 xsi_shell=no
5177 ( _lt_dummy="a/b/c"
5178 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5179 = c,a/b,b/c, \
5180 && eval 'test $(( 1 + 1 )) -eq 2 \
5181 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5182 && xsi_shell=yes
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5184 $as_echo "$xsi_shell" >&6; }
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5188 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5189 lt_shell_append=no
5190 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5191 >/dev/null 2>&1 \
5192 && lt_shell_append=yes
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5194 $as_echo "$lt_shell_append" >&6; }
5195
5196
5197 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5198 lt_unset=unset
5199 else
5200 lt_unset=false
5201 fi
5202
5203
5204
5205
5206
5207 # test EBCDIC or ASCII
5208 case `echo X|tr X '\101'` in
5209 A) # ASCII based system
5210 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5211 lt_SP2NL='tr \040 \012'
5212 lt_NL2SP='tr \015\012 \040\040'
5213 ;;
5214 *) # EBCDIC based system
5215 lt_SP2NL='tr \100 \n'
5216 lt_NL2SP='tr \r\n \100\100'
5217 ;;
5218 esac
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5229 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5230 if ${lt_cv_to_host_file_cmd+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 case $host in
5234 *-*-mingw* )
5235 case $build in
5236 *-*-mingw* ) # actually msys
5237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5238 ;;
5239 *-*-cygwin* )
5240 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5241 ;;
5242 * ) # otherwise, assume *nix
5243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5244 ;;
5245 esac
5246 ;;
5247 *-*-cygwin* )
5248 case $build in
5249 *-*-mingw* ) # actually msys
5250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5251 ;;
5252 *-*-cygwin* )
5253 lt_cv_to_host_file_cmd=func_convert_file_noop
5254 ;;
5255 * ) # otherwise, assume *nix
5256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5257 ;;
5258 esac
5259 ;;
5260 * ) # unhandled hosts (and "normal" native builds)
5261 lt_cv_to_host_file_cmd=func_convert_file_noop
5262 ;;
5263 esac
5264
5265 fi
5266
5267 to_host_file_cmd=$lt_cv_to_host_file_cmd
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5269 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5270
5271
5272
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5276 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5277 if ${lt_cv_to_tool_file_cmd+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 #assume ordinary cross tools, or native build.
5281 lt_cv_to_tool_file_cmd=func_convert_file_noop
5282 case $host in
5283 *-*-mingw* )
5284 case $build in
5285 *-*-mingw* ) # actually msys
5286 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5287 ;;
5288 esac
5289 ;;
5290 esac
5291
5292 fi
5293
5294 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5296 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5297
5298
5299
5300
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5303 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5304 if ${lt_cv_ld_reload_flag+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 lt_cv_ld_reload_flag='-r'
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5310 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5311 reload_flag=$lt_cv_ld_reload_flag
5312 case $reload_flag in
5313 "" | " "*) ;;
5314 *) reload_flag=" $reload_flag" ;;
5315 esac
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5317 case $host_os in
5318 cygwin* | mingw* | pw32* | cegcc*)
5319 if test "$GCC" != yes; then
5320 reload_cmds=false
5321 fi
5322 ;;
5323 darwin*)
5324 if test "$GCC" = yes; then
5325 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5326 else
5327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5328 fi
5329 ;;
5330 esac
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if ${ac_cv_prog_OBJDUMP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$OBJDUMP"; then
5349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362 done
5363 done
5364 IFS=$as_save_IFS
5365
5366 fi
5367 fi
5368 OBJDUMP=$ac_cv_prog_OBJDUMP
5369 if test -n "$OBJDUMP"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5371 $as_echo "$OBJDUMP" >&6; }
5372 else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376
5377
5378 fi
5379 if test -z "$ac_cv_prog_OBJDUMP"; then
5380 ac_ct_OBJDUMP=$OBJDUMP
5381 # Extract the first word of "objdump", so it can be a program name with args.
5382 set dummy objdump; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$ac_ct_OBJDUMP"; then
5389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5409 if test -n "$ac_ct_OBJDUMP"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5411 $as_echo "$ac_ct_OBJDUMP" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417 if test "x$ac_ct_OBJDUMP" = x; then
5418 OBJDUMP="false"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 OBJDUMP=$ac_ct_OBJDUMP
5427 fi
5428 else
5429 OBJDUMP="$ac_cv_prog_OBJDUMP"
5430 fi
5431
5432 test -z "$OBJDUMP" && OBJDUMP=objdump
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5443 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5444 if ${lt_cv_deplibs_check_method+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 lt_cv_file_magic_cmd='$MAGIC_CMD'
5448 lt_cv_file_magic_test_file=
5449 lt_cv_deplibs_check_method='unknown'
5450 # Need to set the preceding variable on all platforms that support
5451 # interlibrary dependencies.
5452 # 'none' -- dependencies not supported.
5453 # `unknown' -- same as none, but documents that we really don't know.
5454 # 'pass_all' -- all dependencies passed with no checks.
5455 # 'test_compile' -- check by making test program.
5456 # 'file_magic [[regex]]' -- check by looking for files in library path
5457 # which responds to the $file_magic_cmd with a given extended regex.
5458 # If you have `file' or equivalent on your system and you're not sure
5459 # whether `pass_all' will *always* work, you probably want this one.
5460
5461 case $host_os in
5462 aix[4-9]*)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465
5466 beos*)
5467 lt_cv_deplibs_check_method=pass_all
5468 ;;
5469
5470 bsdi[45]*)
5471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5472 lt_cv_file_magic_cmd='/usr/bin/file -L'
5473 lt_cv_file_magic_test_file=/shlib/libc.so
5474 ;;
5475
5476 cygwin*)
5477 # func_win32_libid is a shell function defined in ltmain.sh
5478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5479 lt_cv_file_magic_cmd='func_win32_libid'
5480 ;;
5481
5482 mingw* | pw32*)
5483 # Base MSYS/MinGW do not provide the 'file' command needed by
5484 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5485 # unless we find 'file', for example because we are cross-compiling.
5486 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5487 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5489 lt_cv_file_magic_cmd='func_win32_libid'
5490 else
5491 # Keep this pattern in sync with the one in func_win32_libid.
5492 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5493 lt_cv_file_magic_cmd='$OBJDUMP -f'
5494 fi
5495 ;;
5496
5497 cegcc*)
5498 # use the weaker test based on 'objdump'. See mingw*.
5499 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5500 lt_cv_file_magic_cmd='$OBJDUMP -f'
5501 ;;
5502
5503 darwin* | rhapsody*)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507 freebsd* | dragonfly*)
5508 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5509 case $host_cpu in
5510 i*86 )
5511 # Not sure whether the presence of OpenBSD here was a mistake.
5512 # Let's accept both of them until this is cleared up.
5513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5514 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5516 ;;
5517 esac
5518 else
5519 lt_cv_deplibs_check_method=pass_all
5520 fi
5521 ;;
5522
5523 gnu*)
5524 lt_cv_deplibs_check_method=pass_all
5525 ;;
5526
5527 haiku*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531 hpux10.20* | hpux11*)
5532 lt_cv_file_magic_cmd=/usr/bin/file
5533 case $host_cpu in
5534 ia64*)
5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537 ;;
5538 hppa*64*)
5539 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]'
5540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5541 ;;
5542 *)
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545 ;;
5546 esac
5547 ;;
5548
5549 interix[3-9]*)
5550 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5552 ;;
5553
5554 irix5* | irix6* | nonstopux*)
5555 case $LD in
5556 *-32|*"-32 ") libmagic=32-bit;;
5557 *-n32|*"-n32 ") libmagic=N32;;
5558 *-64|*"-64 ") libmagic=64-bit;;
5559 *) libmagic=never-match;;
5560 esac
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 # This must be glibc/ELF.
5565 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 netbsd*)
5570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5572 else
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5574 fi
5575 ;;
5576
5577 newos6*)
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5581 ;;
5582
5583 *nto* | *qnx*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586
5587 openbsd*)
5588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5590 else
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5592 fi
5593 ;;
5594
5595 osf3* | osf4* | osf5*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 rdos*)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
5603 solaris*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
5607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 sysv4 | sysv4.3*)
5612 case $host_vendor in
5613 motorola)
5614 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]'
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5616 ;;
5617 ncr)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620 sequent)
5621 lt_cv_file_magic_cmd='/bin/file'
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5623 ;;
5624 sni)
5625 lt_cv_file_magic_cmd='/bin/file'
5626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627 lt_cv_file_magic_test_file=/lib/libc.so
5628 ;;
5629 siemens)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632 pc)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635 esac
5636 ;;
5637
5638 tpf*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641 esac
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5645 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5646
5647 file_magic_glob=
5648 want_nocaseglob=no
5649 if test "$build" = "$host"; then
5650 case $host_os in
5651 mingw* | pw32*)
5652 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5653 want_nocaseglob=yes
5654 else
5655 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5656 fi
5657 ;;
5658 esac
5659 fi
5660
5661 file_magic_cmd=$lt_cv_file_magic_cmd
5662 deplibs_check_method=$lt_cv_deplibs_check_method
5663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_DLLTOOL+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$DLLTOOL"; then
5695 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 DLLTOOL=$ac_cv_prog_DLLTOOL
5715 if test -n "$DLLTOOL"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5717 $as_echo "$DLLTOOL" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_DLLTOOL"; then
5726 ac_ct_DLLTOOL=$DLLTOOL
5727 # Extract the first word of "dlltool", so it can be a program name with args.
5728 set dummy dlltool; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$ac_ct_DLLTOOL"; then
5735 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5755 if test -n "$ac_ct_DLLTOOL"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5757 $as_echo "$ac_ct_DLLTOOL" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763 if test "x$ac_ct_DLLTOOL" = x; then
5764 DLLTOOL="false"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772 DLLTOOL=$ac_ct_DLLTOOL
5773 fi
5774 else
5775 DLLTOOL="$ac_cv_prog_DLLTOOL"
5776 fi
5777
5778 test -z "$DLLTOOL" && DLLTOOL=dlltool
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5790 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5791 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_sharedlib_from_linklib_cmd='unknown'
5795
5796 case $host_os in
5797 cygwin* | mingw* | pw32* | cegcc*)
5798 # two different shell functions defined in ltmain.sh
5799 # decide which to use based on capabilities of $DLLTOOL
5800 case `$DLLTOOL --help 2>&1` in
5801 *--identify-strict*)
5802 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5803 ;;
5804 *)
5805 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5806 ;;
5807 esac
5808 ;;
5809 *)
5810 # fallback: assume linklib IS sharedlib
5811 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5812 ;;
5813 esac
5814
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5817 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5818 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5819 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5820
5821
5822
5823
5824
5825
5826
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in ar
5829 do
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_AR+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if test -n "$AR"; then
5838 ac_cv_prog_AR="$AR" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 AR=$ac_cv_prog_AR
5858 if test -n "$AR"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860 $as_echo "$AR" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867 test -n "$AR" && break
5868 done
5869 fi
5870 if test -z "$AR"; then
5871 ac_ct_AR=$AR
5872 for ac_prog in ar
5873 do
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$ac_ct_AR"; then
5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_AR="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904 $as_echo "$ac_ct_AR" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911 test -n "$ac_ct_AR" && break
5912 done
5913
5914 if test "x$ac_ct_AR" = x; then
5915 AR="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 AR=$ac_ct_AR
5924 fi
5925 fi
5926
5927 : ${AR=ar}
5928 : ${AR_FLAGS=cru}
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5941 $as_echo_n "checking for archiver @FILE support... " >&6; }
5942 if ${lt_cv_ar_at_file+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 lt_cv_ar_at_file=no
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948
5949 int
5950 main ()
5951 {
5952
5953 ;
5954 return 0;
5955 }
5956 _ACEOF
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958 echo conftest.$ac_objext > conftest.lst
5959 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5961 (eval $lt_ar_try) 2>&5
5962 ac_status=$?
5963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; }
5965 if test "$ac_status" -eq 0; then
5966 # Ensure the archiver fails upon bogus file names.
5967 rm -f conftest.$ac_objext libconftest.a
5968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5969 (eval $lt_ar_try) 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }
5973 if test "$ac_status" -ne 0; then
5974 lt_cv_ar_at_file=@
5975 fi
5976 fi
5977 rm -f conftest.* libconftest.a
5978
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5984 $as_echo "$lt_cv_ar_at_file" >&6; }
5985
5986 if test "x$lt_cv_ar_at_file" = xno; then
5987 archiver_list_spec=
5988 else
5989 archiver_list_spec=$lt_cv_ar_at_file
5990 fi
5991
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_STRIP+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 STRIP=$ac_ct_STRIP
6085 fi
6086 else
6087 STRIP="$ac_cv_prog_STRIP"
6088 fi
6089
6090 test -z "$STRIP" && STRIP=:
6091
6092
6093
6094
6095
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_RANLIB+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174 if test "x$ac_ct_RANLIB" = x; then
6175 RANLIB=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 RANLIB=$ac_ct_RANLIB
6184 fi
6185 else
6186 RANLIB="$ac_cv_prog_RANLIB"
6187 fi
6188
6189 test -z "$RANLIB" && RANLIB=:
6190
6191
6192
6193
6194
6195
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6200
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6205 ;;
6206 *)
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6208 ;;
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6211 fi
6212
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6216 *)
6217 lock_old_archive_extraction=no ;;
6218 esac
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6260
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6266
6267
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6277
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6280
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6288 ;;
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6291 ;;
6292 hpux*)
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6295 fi
6296 ;;
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6299 ;;
6300 osf*)
6301 symcode='[BCDEGQRST]'
6302 ;;
6303 solaris*)
6304 symcode='[BDRT]'
6305 ;;
6306 sco3.2v5*)
6307 symcode='[DT]'
6308 ;;
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6311 ;;
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6314 ;;
6315 sysv4)
6316 symcode='[DFNSTU]'
6317 ;;
6318 esac
6319
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6325
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6330
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 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'"
6334
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6340 ;;
6341 esac
6342
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_"; do
6345
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6348
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6359 " \$ 0!~/External *\|/{next};"\
6360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6361 " {if(hide[section]) next};"\
6362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6366 " ' prfx=^$ac_symprfx"
6367 else
6368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369 fi
6370 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6371
6372 # Check to see that the pipe works correctly.
6373 pipe_works=no
6374
6375 rm -f conftest*
6376 cat > conftest.$ac_ext <<_LT_EOF
6377 #ifdef __cplusplus
6378 extern "C" {
6379 #endif
6380 char nm_test_var;
6381 void nm_test_func(void);
6382 void nm_test_func(void){}
6383 #ifdef __cplusplus
6384 }
6385 #endif
6386 int main(){nm_test_var='a';nm_test_func();return(0);}
6387 _LT_EOF
6388
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6394 # Now try to grab the symbols.
6395 nlist=conftest.nm
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6397 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; } && test -s "$nlist"; then
6401 # Try sorting and uniquifying the output.
6402 if sort "$nlist" | uniq > "$nlist"T; then
6403 mv -f "$nlist"T "$nlist"
6404 else
6405 rm -f "$nlist"T
6406 fi
6407
6408 # Make sure that we snagged all the symbols we need.
6409 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6410 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6411 cat <<_LT_EOF > conftest.$ac_ext
6412 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6413 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6414 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6415 relocations are performed -- see ld's documentation on pseudo-relocs. */
6416 # define LT_DLSYM_CONST
6417 #elif defined(__osf__)
6418 /* This system does not cope well with relocations in const data. */
6419 # define LT_DLSYM_CONST
6420 #else
6421 # define LT_DLSYM_CONST const
6422 #endif
6423
6424 #ifdef __cplusplus
6425 extern "C" {
6426 #endif
6427
6428 _LT_EOF
6429 # Now generate the symbol file.
6430 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6431
6432 cat <<_LT_EOF >> conftest.$ac_ext
6433
6434 /* The mapping between symbol names and symbols. */
6435 LT_DLSYM_CONST struct {
6436 const char *name;
6437 void *address;
6438 }
6439 lt__PROGRAM__LTX_preloaded_symbols[] =
6440 {
6441 { "@PROGRAM@", (void *) 0 },
6442 _LT_EOF
6443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6444 cat <<\_LT_EOF >> conftest.$ac_ext
6445 {0, (void *) 0}
6446 };
6447
6448 /* This works around a problem in FreeBSD linker */
6449 #ifdef FREEBSD_WORKAROUND
6450 static const void *lt_preloaded_setup() {
6451 return lt__PROGRAM__LTX_preloaded_symbols;
6452 }
6453 #endif
6454
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 _LT_EOF
6459 # Now try linking the two files.
6460 mv conftest.$ac_objext conftstm.$ac_objext
6461 lt_globsym_save_LIBS=$LIBS
6462 lt_globsym_save_CFLAGS=$CFLAGS
6463 LIBS="conftstm.$ac_objext"
6464 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6466 (eval $ac_link) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6470 pipe_works=yes
6471 fi
6472 LIBS=$lt_globsym_save_LIBS
6473 CFLAGS=$lt_globsym_save_CFLAGS
6474 else
6475 echo "cannot find nm_test_func in $nlist" >&5
6476 fi
6477 else
6478 echo "cannot find nm_test_var in $nlist" >&5
6479 fi
6480 else
6481 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6482 fi
6483 else
6484 echo "$progname: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 fi
6487 rm -rf conftest* conftst*
6488
6489 # Do not use the global_symbol_pipe unless it works.
6490 if test "$pipe_works" = yes; then
6491 break
6492 else
6493 lt_cv_sys_global_symbol_pipe=
6494 fi
6495 done
6496
6497 fi
6498
6499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6500 lt_cv_sys_global_symbol_to_cdecl=
6501 fi
6502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6504 $as_echo "failed" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6507 $as_echo "ok" >&6; }
6508 fi
6509
6510 # Response file support.
6511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6512 nm_file_list_spec='@'
6513 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6514 nm_file_list_spec='@'
6515 fi
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6544 $as_echo_n "checking for sysroot... " >&6; }
6545
6546 # Check whether --with-sysroot was given.
6547 if test "${with_sysroot+set}" = set; then :
6548 withval=$with_sysroot;
6549 else
6550 with_sysroot=no
6551 fi
6552
6553
6554 lt_sysroot=
6555 case ${with_sysroot} in #(
6556 yes)
6557 if test "$GCC" = yes; then
6558 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6559 fi
6560 ;; #(
6561 /*)
6562 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6563 ;; #(
6564 no|'')
6565 ;; #(
6566 *)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6568 $as_echo "${with_sysroot}" >&6; }
6569 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6570 ;;
6571 esac
6572
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6574 $as_echo "${lt_sysroot:-no}" >&6; }
6575
6576
6577
6578
6579
6580 # Check whether --enable-libtool-lock was given.
6581 if test "${enable_libtool_lock+set}" = set; then :
6582 enableval=$enable_libtool_lock;
6583 fi
6584
6585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6586
6587 # Some flags need to be propagated to the compiler or linker for good
6588 # libtool support.
6589 case $host in
6590 ia64-*-hpux*)
6591 # Find out which ABI we are using.
6592 echo 'int i;' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *ELF-32*)
6600 HPUX_IA64_MODE="32"
6601 ;;
6602 *ELF-64*)
6603 HPUX_IA64_MODE="64"
6604 ;;
6605 esac
6606 fi
6607 rm -rf conftest*
6608 ;;
6609 *-*-irix6*)
6610 # Find out which ABI we are using.
6611 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 if test "$lt_cv_prog_gnu_ld" = yes; then
6618 case `/usr/bin/file conftest.$ac_objext` in
6619 *32-bit*)
6620 LD="${LD-ld} -melf32bsmip"
6621 ;;
6622 *N32*)
6623 LD="${LD-ld} -melf32bmipn32"
6624 ;;
6625 *64-bit*)
6626 LD="${LD-ld} -melf64bmip"
6627 ;;
6628 esac
6629 else
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 LD="${LD-ld} -32"
6633 ;;
6634 *N32*)
6635 LD="${LD-ld} -n32"
6636 ;;
6637 *64-bit*)
6638 LD="${LD-ld} -64"
6639 ;;
6640 esac
6641 fi
6642 fi
6643 rm -rf conftest*
6644 ;;
6645
6646 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6647 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6648 # Find out which ABI we are using.
6649 echo 'int i;' > conftest.$ac_ext
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }; then
6655 case `/usr/bin/file conftest.o` in
6656 *32-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_i386_fbsd"
6660 ;;
6661 x86_64-*linux*)
6662 LD="${LD-ld} -m elf_i386"
6663 ;;
6664 powerpc64le-*linux*)
6665 LD="${LD-ld} -m elf32lppclinux"
6666 ;;
6667 powerpc64-*linux*)
6668 LD="${LD-ld} -m elf32ppclinux"
6669 ;;
6670 s390x-*linux*)
6671 LD="${LD-ld} -m elf_s390"
6672 ;;
6673 sparc64-*linux*)
6674 LD="${LD-ld} -m elf32_sparc"
6675 ;;
6676 esac
6677 ;;
6678 *64-bit*)
6679 case $host in
6680 x86_64-*kfreebsd*-gnu)
6681 LD="${LD-ld} -m elf_x86_64_fbsd"
6682 ;;
6683 x86_64-*linux*)
6684 LD="${LD-ld} -m elf_x86_64"
6685 ;;
6686 powerpcle-*linux*)
6687 LD="${LD-ld} -m elf64lppc"
6688 ;;
6689 powerpc-*linux*)
6690 LD="${LD-ld} -m elf64ppc"
6691 ;;
6692 s390*-*linux*|s390*-*tpf*)
6693 LD="${LD-ld} -m elf64_s390"
6694 ;;
6695 sparc*-*linux*)
6696 LD="${LD-ld} -m elf64_sparc"
6697 ;;
6698 esac
6699 ;;
6700 esac
6701 fi
6702 rm -rf conftest*
6703 ;;
6704
6705 *-*-sco3.2v5*)
6706 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6707 SAVE_CFLAGS="$CFLAGS"
6708 CFLAGS="$CFLAGS -belf"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6710 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6711 if ${lt_cv_cc_needs_belf+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 ac_ext=c
6715 ac_cpp='$CPP $CPPFLAGS'
6716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722
6723 int
6724 main ()
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 if ac_fn_c_try_link "$LINENO"; then :
6732 lt_cv_cc_needs_belf=yes
6733 else
6734 lt_cv_cc_needs_belf=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 ac_ext=c
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6746 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6747 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6749 CFLAGS="$SAVE_CFLAGS"
6750 fi
6751 ;;
6752 *-*solaris*)
6753 # Find out which ABI we are using.
6754 echo 'int i;' > conftest.$ac_ext
6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756 (eval $ac_compile) 2>&5
6757 ac_status=$?
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; then
6760 case `/usr/bin/file conftest.o` in
6761 *64-bit*)
6762 case $lt_cv_prog_gnu_ld in
6763 yes*)
6764 case $host in
6765 i?86-*-solaris*)
6766 LD="${LD-ld} -m elf_x86_64"
6767 ;;
6768 sparc*-*-solaris*)
6769 LD="${LD-ld} -m elf64_sparc"
6770 ;;
6771 esac
6772 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6773 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6774 LD="${LD-ld}_sol2"
6775 fi
6776 ;;
6777 *)
6778 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6779 LD="${LD-ld} -64"
6780 fi
6781 ;;
6782 esac
6783 ;;
6784 esac
6785 fi
6786 rm -rf conftest*
6787 ;;
6788 esac
6789
6790 need_locks="$enable_libtool_lock"
6791
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}mt; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 if test -n "$MANIFEST_TOOL"; then
6801 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6821 if test -n "$MANIFEST_TOOL"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6823 $as_echo "$MANIFEST_TOOL" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6832 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6833 # Extract the first word of "mt", so it can be a program name with args.
6834 set dummy mt; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 if test -n "$ac_ct_MANIFEST_TOOL"; then
6841 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6861 if test -n "$ac_ct_MANIFEST_TOOL"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6863 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6870 MANIFEST_TOOL=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6879 fi
6880 else
6881 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6882 fi
6883
6884 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6886 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6887 if ${lt_cv_path_mainfest_tool+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 lt_cv_path_mainfest_tool=no
6891 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6892 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6893 cat conftest.err >&5
6894 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6895 lt_cv_path_mainfest_tool=yes
6896 fi
6897 rm -f conftest*
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6900 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6901 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6902 MANIFEST_TOOL=:
6903 fi
6904
6905
6906
6907
6908
6909
6910 case $host_os in
6911 rhapsody* | darwin*)
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$DSYMUTIL"; then
6921 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6941 if test -n "$DSYMUTIL"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6943 $as_echo "$DSYMUTIL" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_DSYMUTIL"; then
6952 ac_ct_DSYMUTIL=$DSYMUTIL
6953 # Extract the first word of "dsymutil", so it can be a program name with args.
6954 set dummy dsymutil; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_DSYMUTIL"; then
6961 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6981 if test -n "$ac_ct_DSYMUTIL"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6983 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_DSYMUTIL" = x; then
6990 DSYMUTIL=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 DSYMUTIL=$ac_ct_DSYMUTIL
6999 fi
7000 else
7001 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7002 fi
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_NMEDIT+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$NMEDIT"; then
7013 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 NMEDIT=$ac_cv_prog_NMEDIT
7033 if test -n "$NMEDIT"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7035 $as_echo "$NMEDIT" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_NMEDIT"; then
7044 ac_ct_NMEDIT=$NMEDIT
7045 # Extract the first word of "nmedit", so it can be a program name with args.
7046 set dummy nmedit; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_NMEDIT"; then
7053 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7073 if test -n "$ac_ct_NMEDIT"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7075 $as_echo "$ac_ct_NMEDIT" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_NMEDIT" = x; then
7082 NMEDIT=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 NMEDIT=$ac_ct_NMEDIT
7091 fi
7092 else
7093 NMEDIT="$ac_cv_prog_NMEDIT"
7094 fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_LIPO+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$LIPO"; then
7105 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 LIPO=$ac_cv_prog_LIPO
7125 if test -n "$LIPO"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7127 $as_echo "$LIPO" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_LIPO"; then
7136 ac_ct_LIPO=$LIPO
7137 # Extract the first word of "lipo", so it can be a program name with args.
7138 set dummy lipo; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_LIPO"; then
7145 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_LIPO="lipo"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7165 if test -n "$ac_ct_LIPO"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7167 $as_echo "$ac_ct_LIPO" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_LIPO" = x; then
7174 LIPO=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 LIPO=$ac_ct_LIPO
7183 fi
7184 else
7185 LIPO="$ac_cv_prog_LIPO"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}otool; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_OTOOL+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$OTOOL"; then
7197 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 OTOOL=$ac_cv_prog_OTOOL
7217 if test -n "$OTOOL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7219 $as_echo "$OTOOL" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_OTOOL"; then
7228 ac_ct_OTOOL=$OTOOL
7229 # Extract the first word of "otool", so it can be a program name with args.
7230 set dummy otool; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_OTOOL"; then
7237 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_OTOOL="otool"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7257 if test -n "$ac_ct_OTOOL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7259 $as_echo "$ac_ct_OTOOL" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_OTOOL" = x; then
7266 OTOOL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 OTOOL=$ac_ct_OTOOL
7275 fi
7276 else
7277 OTOOL="$ac_cv_prog_OTOOL"
7278 fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_OTOOL64+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$OTOOL64"; then
7289 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 OTOOL64=$ac_cv_prog_OTOOL64
7309 if test -n "$OTOOL64"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7311 $as_echo "$OTOOL64" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_OTOOL64"; then
7320 ac_ct_OTOOL64=$OTOOL64
7321 # Extract the first word of "otool64", so it can be a program name with args.
7322 set dummy otool64; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_OTOOL64"; then
7329 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_OTOOL64="otool64"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7349 if test -n "$ac_ct_OTOOL64"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7351 $as_echo "$ac_ct_OTOOL64" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357 if test "x$ac_ct_OTOOL64" = x; then
7358 OTOOL64=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 OTOOL64=$ac_ct_OTOOL64
7367 fi
7368 else
7369 OTOOL64="$ac_cv_prog_OTOOL64"
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7399 $as_echo_n "checking for -single_module linker flag... " >&6; }
7400 if ${lt_cv_apple_cc_single_mod+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 lt_cv_apple_cc_single_mod=no
7404 if test -z "${LT_MULTI_MODULE}"; then
7405 # By default we will add the -single_module flag. You can override
7406 # by either setting the environment variable LT_MULTI_MODULE
7407 # non-empty at configure time, or by adding -multi_module to the
7408 # link flags.
7409 rm -rf libconftest.dylib*
7410 echo "int foo(void){return 1;}" > conftest.c
7411 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7412 -dynamiclib -Wl,-single_module conftest.c" >&5
7413 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7414 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7415 _lt_result=$?
7416 # If there is a non-empty error log, and "single_module"
7417 # appears in it, assume the flag caused a linker warning
7418 if test -s conftest.err && $GREP single_module conftest.err; then
7419 cat conftest.err >&5
7420 # Otherwise, if the output was created with a 0 exit code from
7421 # the compiler, it worked.
7422 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7423 lt_cv_apple_cc_single_mod=yes
7424 else
7425 cat conftest.err >&5
7426 fi
7427 rm -rf libconftest.dylib*
7428 rm -f conftest.*
7429 fi
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7435 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7436 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 lt_cv_ld_exported_symbols_list=no
7440 save_LDFLAGS=$LDFLAGS
7441 echo "_main" > conftest.sym
7442 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445
7446 int
7447 main ()
7448 {
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_link "$LINENO"; then :
7455 lt_cv_ld_exported_symbols_list=yes
7456 else
7457 lt_cv_ld_exported_symbols_list=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7461 LDFLAGS="$save_LDFLAGS"
7462
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7465 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7468 $as_echo_n "checking for -force_load linker flag... " >&6; }
7469 if ${lt_cv_ld_force_load+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 lt_cv_ld_force_load=no
7473 cat > conftest.c << _LT_EOF
7474 int forced_loaded() { return 2;}
7475 _LT_EOF
7476 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7477 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7478 echo "$AR cru libconftest.a conftest.o" >&5
7479 $AR cru libconftest.a conftest.o 2>&5
7480 echo "$RANLIB libconftest.a" >&5
7481 $RANLIB libconftest.a 2>&5
7482 cat > conftest.c << _LT_EOF
7483 int main() { return 0;}
7484 _LT_EOF
7485 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7486 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7487 _lt_result=$?
7488 if test -s conftest.err && $GREP force_load conftest.err; then
7489 cat conftest.err >&5
7490 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7491 lt_cv_ld_force_load=yes
7492 else
7493 cat conftest.err >&5
7494 fi
7495 rm -f conftest.err libconftest.a conftest conftest.c
7496 rm -rf conftest.dSYM
7497
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7500 $as_echo "$lt_cv_ld_force_load" >&6; }
7501 case $host_os in
7502 rhapsody* | darwin1.[012])
7503 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7504 darwin1.*)
7505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7506 darwin*) # darwin 5.x on
7507 # if running on 10.5 or later, the deployment target defaults
7508 # to the OS version, if on x86, and 10.4, the deployment
7509 # target defaults to 10.4. Don't you love it?
7510 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7511 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7513 10.[012]*)
7514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7515 10.*)
7516 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7517 esac
7518 ;;
7519 esac
7520 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7521 _lt_dar_single_mod='$single_module'
7522 fi
7523 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7524 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7525 else
7526 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7527 fi
7528 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7529 _lt_dsymutil='~$DSYMUTIL $lib || :'
7530 else
7531 _lt_dsymutil=
7532 fi
7533 ;;
7534 esac
7535
7536 ac_ext=c
7537 ac_cpp='$CPP $CPPFLAGS'
7538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7542 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7543 # On Suns, sometimes $CPP names a directory.
7544 if test -n "$CPP" && test -d "$CPP"; then
7545 CPP=
7546 fi
7547 if test -z "$CPP"; then
7548 if ${ac_cv_prog_CPP+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 # Double quotes because CPP needs to be expanded
7552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7553 do
7554 ac_preproc_ok=false
7555 for ac_c_preproc_warn_flag in '' yes
7556 do
7557 # Use a header file that comes with gcc, so configuring glibc
7558 # with a fresh cross-compiler works.
7559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7560 # <limits.h> exists even on freestanding compilers.
7561 # On the NeXT, cc -E runs the code through the compiler's parser,
7562 # not just through cpp. "Syntax error" is here to catch this case.
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 #ifdef __STDC__
7566 # include <limits.h>
7567 #else
7568 # include <assert.h>
7569 #endif
7570 Syntax error
7571 _ACEOF
7572 if ac_fn_c_try_cpp "$LINENO"; then :
7573
7574 else
7575 # Broken: fails on valid input.
7576 continue
7577 fi
7578 rm -f conftest.err conftest.i conftest.$ac_ext
7579
7580 # OK, works on sane cases. Now check whether nonexistent headers
7581 # can be detected and how.
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 #include <ac_nonexistent.h>
7585 _ACEOF
7586 if ac_fn_c_try_cpp "$LINENO"; then :
7587 # Broken: success on invalid input.
7588 continue
7589 else
7590 # Passes both tests.
7591 ac_preproc_ok=:
7592 break
7593 fi
7594 rm -f conftest.err conftest.i conftest.$ac_ext
7595
7596 done
7597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7598 rm -f conftest.i conftest.err conftest.$ac_ext
7599 if $ac_preproc_ok; then :
7600 break
7601 fi
7602
7603 done
7604 ac_cv_prog_CPP=$CPP
7605
7606 fi
7607 CPP=$ac_cv_prog_CPP
7608 else
7609 ac_cv_prog_CPP=$CPP
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7612 $as_echo "$CPP" >&6; }
7613 ac_preproc_ok=false
7614 for ac_c_preproc_warn_flag in '' yes
7615 do
7616 # Use a header file that comes with gcc, so configuring glibc
7617 # with a fresh cross-compiler works.
7618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7619 # <limits.h> exists even on freestanding compilers.
7620 # On the NeXT, cc -E runs the code through the compiler's parser,
7621 # not just through cpp. "Syntax error" is here to catch this case.
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #ifdef __STDC__
7625 # include <limits.h>
7626 #else
7627 # include <assert.h>
7628 #endif
7629 Syntax error
7630 _ACEOF
7631 if ac_fn_c_try_cpp "$LINENO"; then :
7632
7633 else
7634 # Broken: fails on valid input.
7635 continue
7636 fi
7637 rm -f conftest.err conftest.i conftest.$ac_ext
7638
7639 # OK, works on sane cases. Now check whether nonexistent headers
7640 # can be detected and how.
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 #include <ac_nonexistent.h>
7644 _ACEOF
7645 if ac_fn_c_try_cpp "$LINENO"; then :
7646 # Broken: success on invalid input.
7647 continue
7648 else
7649 # Passes both tests.
7650 ac_preproc_ok=:
7651 break
7652 fi
7653 rm -f conftest.err conftest.i conftest.$ac_ext
7654
7655 done
7656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7657 rm -f conftest.i conftest.err conftest.$ac_ext
7658 if $ac_preproc_ok; then :
7659
7660 else
7661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7663 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7664 See \`config.log' for more details" "$LINENO" 5; }
7665 fi
7666
7667 ac_ext=c
7668 ac_cpp='$CPP $CPPFLAGS'
7669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7675 $as_echo_n "checking for ANSI C header files... " >&6; }
7676 if ${ac_cv_header_stdc+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <stdlib.h>
7682 #include <stdarg.h>
7683 #include <string.h>
7684 #include <float.h>
7685
7686 int
7687 main ()
7688 {
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_compile "$LINENO"; then :
7695 ac_cv_header_stdc=yes
7696 else
7697 ac_cv_header_stdc=no
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700
7701 if test $ac_cv_header_stdc = yes; then
7702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 #include <string.h>
7706
7707 _ACEOF
7708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7709 $EGREP "memchr" >/dev/null 2>&1; then :
7710
7711 else
7712 ac_cv_header_stdc=no
7713 fi
7714 rm -f conftest*
7715
7716 fi
7717
7718 if test $ac_cv_header_stdc = yes; then
7719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <stdlib.h>
7723
7724 _ACEOF
7725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7726 $EGREP "free" >/dev/null 2>&1; then :
7727
7728 else
7729 ac_cv_header_stdc=no
7730 fi
7731 rm -f conftest*
7732
7733 fi
7734
7735 if test $ac_cv_header_stdc = yes; then
7736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7737 if test "$cross_compiling" = yes; then :
7738 :
7739 else
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 #include <ctype.h>
7743 #include <stdlib.h>
7744 #if ((' ' & 0x0FF) == 0x020)
7745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7747 #else
7748 # define ISLOWER(c) \
7749 (('a' <= (c) && (c) <= 'i') \
7750 || ('j' <= (c) && (c) <= 'r') \
7751 || ('s' <= (c) && (c) <= 'z'))
7752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7753 #endif
7754
7755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7756 int
7757 main ()
7758 {
7759 int i;
7760 for (i = 0; i < 256; i++)
7761 if (XOR (islower (i), ISLOWER (i))
7762 || toupper (i) != TOUPPER (i))
7763 return 2;
7764 return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_run "$LINENO"; then :
7768
7769 else
7770 ac_cv_header_stdc=no
7771 fi
7772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7773 conftest.$ac_objext conftest.beam conftest.$ac_ext
7774 fi
7775
7776 fi
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7779 $as_echo "$ac_cv_header_stdc" >&6; }
7780 if test $ac_cv_header_stdc = yes; then
7781
7782 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7783
7784 fi
7785
7786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7787 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7788 inttypes.h stdint.h unistd.h
7789 do :
7790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7792 "
7793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7794 cat >>confdefs.h <<_ACEOF
7795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802
7803 for ac_header in dlfcn.h
7804 do :
7805 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7806 "
7807 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_DLFCN_H 1
7810 _ACEOF
7811
7812 fi
7813
7814 done
7815
7816
7817
7818
7819
7820 # Set options
7821
7822
7823
7824 enable_dlopen=no
7825
7826
7827 enable_win32_dll=no
7828
7829
7830 # Check whether --enable-shared was given.
7831 if test "${enable_shared+set}" = set; then :
7832 enableval=$enable_shared; p=${PACKAGE-default}
7833 case $enableval in
7834 yes) enable_shared=yes ;;
7835 no) enable_shared=no ;;
7836 *)
7837 enable_shared=no
7838 # Look at the argument we got. We use all the common list separators.
7839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7840 for pkg in $enableval; do
7841 IFS="$lt_save_ifs"
7842 if test "X$pkg" = "X$p"; then
7843 enable_shared=yes
7844 fi
7845 done
7846 IFS="$lt_save_ifs"
7847 ;;
7848 esac
7849 else
7850 enable_shared=yes
7851 fi
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 # Check whether --enable-static was given.
7862 if test "${enable_static+set}" = set; then :
7863 enableval=$enable_static; p=${PACKAGE-default}
7864 case $enableval in
7865 yes) enable_static=yes ;;
7866 no) enable_static=no ;;
7867 *)
7868 enable_static=no
7869 # Look at the argument we got. We use all the common list separators.
7870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871 for pkg in $enableval; do
7872 IFS="$lt_save_ifs"
7873 if test "X$pkg" = "X$p"; then
7874 enable_static=yes
7875 fi
7876 done
7877 IFS="$lt_save_ifs"
7878 ;;
7879 esac
7880 else
7881 enable_static=yes
7882 fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 # Check whether --with-pic was given.
7894 if test "${with_pic+set}" = set; then :
7895 withval=$with_pic; lt_p=${PACKAGE-default}
7896 case $withval in
7897 yes|no) pic_mode=$withval ;;
7898 *)
7899 pic_mode=default
7900 # Look at the argument we got. We use all the common list separators.
7901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7902 for lt_pkg in $withval; do
7903 IFS="$lt_save_ifs"
7904 if test "X$lt_pkg" = "X$lt_p"; then
7905 pic_mode=yes
7906 fi
7907 done
7908 IFS="$lt_save_ifs"
7909 ;;
7910 esac
7911 else
7912 pic_mode=default
7913 fi
7914
7915
7916 test -z "$pic_mode" && pic_mode=default
7917
7918
7919
7920
7921
7922
7923
7924 # Check whether --enable-fast-install was given.
7925 if test "${enable_fast_install+set}" = set; then :
7926 enableval=$enable_fast_install; p=${PACKAGE-default}
7927 case $enableval in
7928 yes) enable_fast_install=yes ;;
7929 no) enable_fast_install=no ;;
7930 *)
7931 enable_fast_install=no
7932 # Look at the argument we got. We use all the common list separators.
7933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7934 for pkg in $enableval; do
7935 IFS="$lt_save_ifs"
7936 if test "X$pkg" = "X$p"; then
7937 enable_fast_install=yes
7938 fi
7939 done
7940 IFS="$lt_save_ifs"
7941 ;;
7942 esac
7943 else
7944 enable_fast_install=yes
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 # This can be used to rebuild libtool when needed
7958 LIBTOOL_DEPS="$ltmain"
7959
7960 # Always use our own libtool.
7961 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992 test -z "$LN_S" && LN_S="ln -s"
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 if test -n "${ZSH_VERSION+set}" ; then
8008 setopt NO_GLOB_SUBST
8009 fi
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8012 $as_echo_n "checking for objdir... " >&6; }
8013 if ${lt_cv_objdir+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 rm -f .libs 2>/dev/null
8017 mkdir .libs 2>/dev/null
8018 if test -d .libs; then
8019 lt_cv_objdir=.libs
8020 else
8021 # MS-DOS does not allow filenames that begin with a dot.
8022 lt_cv_objdir=_libs
8023 fi
8024 rmdir .libs 2>/dev/null
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8027 $as_echo "$lt_cv_objdir" >&6; }
8028 objdir=$lt_cv_objdir
8029
8030
8031
8032
8033
8034 cat >>confdefs.h <<_ACEOF
8035 #define LT_OBJDIR "$lt_cv_objdir/"
8036 _ACEOF
8037
8038
8039
8040
8041 case $host_os in
8042 aix3*)
8043 # AIX sometimes has problems with the GCC collect2 program. For some
8044 # reason, if we set the COLLECT_NAMES environment variable, the problems
8045 # vanish in a puff of smoke.
8046 if test "X${COLLECT_NAMES+set}" != Xset; then
8047 COLLECT_NAMES=
8048 export COLLECT_NAMES
8049 fi
8050 ;;
8051 esac
8052
8053 # Global variables:
8054 ofile=libtool
8055 can_build_shared=yes
8056
8057 # All known linkers require a `.a' archive for static linking (except MSVC,
8058 # which needs '.lib').
8059 libext=a
8060
8061 with_gnu_ld="$lt_cv_prog_gnu_ld"
8062
8063 old_CC="$CC"
8064 old_CFLAGS="$CFLAGS"
8065
8066 # Set sane defaults for various variables
8067 test -z "$CC" && CC=cc
8068 test -z "$LTCC" && LTCC=$CC
8069 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8070 test -z "$LD" && LD=ld
8071 test -z "$ac_objext" && ac_objext=o
8072
8073 for cc_temp in $compiler""; do
8074 case $cc_temp in
8075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8077 \-*) ;;
8078 *) break;;
8079 esac
8080 done
8081 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8082
8083
8084 # Only perform the check for file, if the check method requires it
8085 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8086 case $deplibs_check_method in
8087 file_magic*)
8088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8090 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8091 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 case $MAGIC_CMD in
8095 [\\/*] | ?:[\\/]*)
8096 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8097 ;;
8098 *)
8099 lt_save_MAGIC_CMD="$MAGIC_CMD"
8100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8101 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8102 for ac_dir in $ac_dummy; do
8103 IFS="$lt_save_ifs"
8104 test -z "$ac_dir" && ac_dir=.
8105 if test -f $ac_dir/${ac_tool_prefix}file; then
8106 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8107 if test -n "$file_magic_test_file"; then
8108 case $deplibs_check_method in
8109 "file_magic "*)
8110 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8113 $EGREP "$file_magic_regex" > /dev/null; then
8114 :
8115 else
8116 cat <<_LT_EOF 1>&2
8117
8118 *** Warning: the command libtool uses to detect shared libraries,
8119 *** $file_magic_cmd, produces output that libtool cannot recognize.
8120 *** The result is that libtool may fail to recognize shared libraries
8121 *** as such. This will affect the creation of libtool libraries that
8122 *** depend on shared libraries, but programs linked with such libtool
8123 *** libraries will work regardless of this problem. Nevertheless, you
8124 *** may want to report the problem to your system manager and/or to
8125 *** [email protected]
8126
8127 _LT_EOF
8128 fi ;;
8129 esac
8130 fi
8131 break
8132 fi
8133 done
8134 IFS="$lt_save_ifs"
8135 MAGIC_CMD="$lt_save_MAGIC_CMD"
8136 ;;
8137 esac
8138 fi
8139
8140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8141 if test -n "$MAGIC_CMD"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8143 $as_echo "$MAGIC_CMD" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149
8150
8151
8152
8153 if test -z "$lt_cv_path_MAGIC_CMD"; then
8154 if test -n "$ac_tool_prefix"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8156 $as_echo_n "checking for file... " >&6; }
8157 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 case $MAGIC_CMD in
8161 [\\/*] | ?:[\\/]*)
8162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8163 ;;
8164 *)
8165 lt_save_MAGIC_CMD="$MAGIC_CMD"
8166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8168 for ac_dir in $ac_dummy; do
8169 IFS="$lt_save_ifs"
8170 test -z "$ac_dir" && ac_dir=.
8171 if test -f $ac_dir/file; then
8172 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8173 if test -n "$file_magic_test_file"; then
8174 case $deplibs_check_method in
8175 "file_magic "*)
8176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8179 $EGREP "$file_magic_regex" > /dev/null; then
8180 :
8181 else
8182 cat <<_LT_EOF 1>&2
8183
8184 *** Warning: the command libtool uses to detect shared libraries,
8185 *** $file_magic_cmd, produces output that libtool cannot recognize.
8186 *** The result is that libtool may fail to recognize shared libraries
8187 *** as such. This will affect the creation of libtool libraries that
8188 *** depend on shared libraries, but programs linked with such libtool
8189 *** libraries will work regardless of this problem. Nevertheless, you
8190 *** may want to report the problem to your system manager and/or to
8191 *** [email protected]
8192
8193 _LT_EOF
8194 fi ;;
8195 esac
8196 fi
8197 break
8198 fi
8199 done
8200 IFS="$lt_save_ifs"
8201 MAGIC_CMD="$lt_save_MAGIC_CMD"
8202 ;;
8203 esac
8204 fi
8205
8206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8207 if test -n "$MAGIC_CMD"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8209 $as_echo "$MAGIC_CMD" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 else
8217 MAGIC_CMD=:
8218 fi
8219 fi
8220
8221 fi
8222 ;;
8223 esac
8224
8225 # Use C for the default configuration in the libtool script
8226
8227 lt_save_CC="$CC"
8228 ac_ext=c
8229 ac_cpp='$CPP $CPPFLAGS'
8230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8233
8234
8235 # Source file extension for C test sources.
8236 ac_ext=c
8237
8238 # Object file extension for compiled C test sources.
8239 objext=o
8240 objext=$objext
8241
8242 # Code to be used in simple compile tests
8243 lt_simple_compile_test_code="int some_variable = 0;"
8244
8245 # Code to be used in simple link tests
8246 lt_simple_link_test_code='int main(){return(0);}'
8247
8248
8249
8250
8251
8252
8253
8254 # If no C compiler was specified, use CC.
8255 LTCC=${LTCC-"$CC"}
8256
8257 # If no C compiler flags were specified, use CFLAGS.
8258 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8259
8260 # Allow CC to be a program name with arguments.
8261 compiler=$CC
8262
8263 # Save the default compiler, since it gets overwritten when the other
8264 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8265 compiler_DEFAULT=$CC
8266
8267 # save warnings/boilerplate of simple test code
8268 ac_outfile=conftest.$ac_objext
8269 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8270 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8271 _lt_compiler_boilerplate=`cat conftest.err`
8272 $RM conftest*
8273
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8276 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8277 _lt_linker_boilerplate=`cat conftest.err`
8278 $RM -r conftest*
8279
8280
8281 if test -n "$compiler"; then
8282
8283 lt_prog_compiler_no_builtin_flag=
8284
8285 if test "$GCC" = yes; then
8286 case $cc_basename in
8287 nvcc*)
8288 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8289 *)
8290 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8291 esac
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8294 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8295 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 lt_cv_prog_compiler_rtti_exceptions=no
8299 ac_outfile=conftest.$ac_objext
8300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8301 lt_compiler_flag="-fno-rtti -fno-exceptions"
8302 # Insert the option either (1) after the last *FLAGS variable, or
8303 # (2) before a word containing "conftest.", or (3) at the end.
8304 # Note that $ac_compile itself does not contain backslashes and begins
8305 # with a dollar sign (not a hyphen), so the echo should work correctly.
8306 # The option is referenced via a variable to avoid confusing sed.
8307 lt_compile=`echo "$ac_compile" | $SED \
8308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310 -e 's:$: $lt_compiler_flag:'`
8311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8312 (eval "$lt_compile" 2>conftest.err)
8313 ac_status=$?
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 if (exit $ac_status) && test -s "$ac_outfile"; then
8317 # The compiler can only warn and ignore the option if not recognized
8318 # So say no if there are warnings other than the usual output.
8319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8322 lt_cv_prog_compiler_rtti_exceptions=yes
8323 fi
8324 fi
8325 $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8329 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8330
8331 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8332 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8333 else
8334 :
8335 fi
8336
8337 fi
8338
8339
8340
8341
8342
8343
8344 lt_prog_compiler_wl=
8345 lt_prog_compiler_pic=
8346 lt_prog_compiler_static=
8347
8348
8349 if test "$GCC" = yes; then
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_static='-static'
8352
8353 case $host_os in
8354 aix*)
8355 # All AIX code is PIC.
8356 if test "$host_cpu" = ia64; then
8357 # AIX 5 now supports IA64 processor
8358 lt_prog_compiler_static='-Bstatic'
8359 fi
8360 ;;
8361
8362 amigaos*)
8363 case $host_cpu in
8364 powerpc)
8365 # see comment about AmigaOS4 .so support
8366 lt_prog_compiler_pic='-fPIC'
8367 ;;
8368 m68k)
8369 # FIXME: we need at least 68020 code to build shared libraries, but
8370 # adding the `-m68020' flag to GCC prevents building anything better,
8371 # like `-m68040'.
8372 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8373 ;;
8374 esac
8375 ;;
8376
8377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8378 # PIC is the default for these OSes.
8379 ;;
8380
8381 mingw* | cygwin* | pw32* | os2* | cegcc*)
8382 # This hack is so that the source file can tell whether it is being
8383 # built for inclusion in a dll (and should export symbols for example).
8384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8385 # (--disable-auto-import) libraries
8386 lt_prog_compiler_pic='-DDLL_EXPORT'
8387 ;;
8388
8389 darwin* | rhapsody*)
8390 # PIC is the default on this platform
8391 # Common symbols not allowed in MH_DYLIB files
8392 lt_prog_compiler_pic='-fno-common'
8393 ;;
8394
8395 haiku*)
8396 # PIC is the default for Haiku.
8397 # The "-static" flag exists, but is broken.
8398 lt_prog_compiler_static=
8399 ;;
8400
8401 hpux*)
8402 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8403 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8404 # sets the default TLS model and affects inlining.
8405 case $host_cpu in
8406 hppa*64*)
8407 # +Z the default
8408 ;;
8409 *)
8410 lt_prog_compiler_pic='-fPIC'
8411 ;;
8412 esac
8413 ;;
8414
8415 interix[3-9]*)
8416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8417 # Instead, we relocate shared libraries at runtime.
8418 ;;
8419
8420 msdosdjgpp*)
8421 # Just because we use GCC doesn't mean we suddenly get shared libraries
8422 # on systems that don't support them.
8423 lt_prog_compiler_can_build_shared=no
8424 enable_shared=no
8425 ;;
8426
8427 *nto* | *qnx*)
8428 # QNX uses GNU C++, but need to define -shared option too, otherwise
8429 # it will coredump.
8430 lt_prog_compiler_pic='-fPIC -shared'
8431 ;;
8432
8433 sysv4*MP*)
8434 if test -d /usr/nec; then
8435 lt_prog_compiler_pic=-Kconform_pic
8436 fi
8437 ;;
8438
8439 *)
8440 lt_prog_compiler_pic='-fPIC'
8441 ;;
8442 esac
8443
8444 case $cc_basename in
8445 nvcc*) # Cuda Compiler Driver 2.2
8446 lt_prog_compiler_wl='-Xlinker '
8447 if test -n "$lt_prog_compiler_pic"; then
8448 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8449 fi
8450 ;;
8451 esac
8452 else
8453 # PORTME Check for flag to pass linker flags through the system compiler.
8454 case $host_os in
8455 aix*)
8456 lt_prog_compiler_wl='-Wl,'
8457 if test "$host_cpu" = ia64; then
8458 # AIX 5 now supports IA64 processor
8459 lt_prog_compiler_static='-Bstatic'
8460 else
8461 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8462 fi
8463 ;;
8464
8465 mingw* | cygwin* | pw32* | os2* | cegcc*)
8466 # This hack is so that the source file can tell whether it is being
8467 # built for inclusion in a dll (and should export symbols for example).
8468 lt_prog_compiler_pic='-DDLL_EXPORT'
8469 ;;
8470
8471 hpux9* | hpux10* | hpux11*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8474 # not for PA HP-UX.
8475 case $host_cpu in
8476 hppa*64*|ia64*)
8477 # +Z the default
8478 ;;
8479 *)
8480 lt_prog_compiler_pic='+Z'
8481 ;;
8482 esac
8483 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8484 lt_prog_compiler_static='${wl}-a ${wl}archive'
8485 ;;
8486
8487 irix5* | irix6* | nonstopux*)
8488 lt_prog_compiler_wl='-Wl,'
8489 # PIC (with -KPIC) is the default.
8490 lt_prog_compiler_static='-non_shared'
8491 ;;
8492
8493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8494 case $cc_basename in
8495 # old Intel for x86_64 which still supported -KPIC.
8496 ecc*)
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-static'
8500 ;;
8501 # icc used to be incompatible with GCC.
8502 # ICC 10 doesn't accept -KPIC any more.
8503 icc* | ifort*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fPIC'
8506 lt_prog_compiler_static='-static'
8507 ;;
8508 # Lahey Fortran 8.1.
8509 lf95*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='--shared'
8512 lt_prog_compiler_static='--static'
8513 ;;
8514 nagfor*)
8515 # NAG Fortran compiler
8516 lt_prog_compiler_wl='-Wl,-Wl,,'
8517 lt_prog_compiler_pic='-PIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8521 # Portland Group compilers (*not* the Pentium gcc compiler,
8522 # which looks to be a dead project)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-fpic'
8525 lt_prog_compiler_static='-Bstatic'
8526 ;;
8527 ccc*)
8528 lt_prog_compiler_wl='-Wl,'
8529 # All Alpha code is PIC.
8530 lt_prog_compiler_static='-non_shared'
8531 ;;
8532 xl* | bgxl* | bgf* | mpixl*)
8533 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-qpic'
8536 lt_prog_compiler_static='-qstaticlink'
8537 ;;
8538 *)
8539 case `$CC -V 2>&1 | sed 5q` in
8540 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8541 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_wl=''
8545 ;;
8546 *Sun\ F* | *Sun*Fortran*)
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8549 lt_prog_compiler_wl='-Qoption ld '
8550 ;;
8551 *Sun\ C*)
8552 # Sun C 5.9
8553 lt_prog_compiler_pic='-KPIC'
8554 lt_prog_compiler_static='-Bstatic'
8555 lt_prog_compiler_wl='-Wl,'
8556 ;;
8557 *Intel*\ [CF]*Compiler*)
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-fPIC'
8560 lt_prog_compiler_static='-static'
8561 ;;
8562 *Portland\ Group*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-fpic'
8565 lt_prog_compiler_static='-Bstatic'
8566 ;;
8567 esac
8568 ;;
8569 esac
8570 ;;
8571
8572 newsos6)
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576
8577 *nto* | *qnx*)
8578 # QNX uses GNU C++, but need to define -shared option too, otherwise
8579 # it will coredump.
8580 lt_prog_compiler_pic='-fPIC -shared'
8581 ;;
8582
8583 osf3* | osf4* | osf5*)
8584 lt_prog_compiler_wl='-Wl,'
8585 # All OSF/1 code is PIC.
8586 lt_prog_compiler_static='-non_shared'
8587 ;;
8588
8589 rdos*)
8590 lt_prog_compiler_static='-non_shared'
8591 ;;
8592
8593 solaris*)
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 case $cc_basename in
8597 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8598 lt_prog_compiler_wl='-Qoption ld ';;
8599 *)
8600 lt_prog_compiler_wl='-Wl,';;
8601 esac
8602 ;;
8603
8604 sunos4*)
8605 lt_prog_compiler_wl='-Qoption ld '
8606 lt_prog_compiler_pic='-PIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 ;;
8609
8610 sysv4 | sysv4.2uw2* | sysv4.3*)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 sysv4*MP*)
8617 if test -d /usr/nec ;then
8618 lt_prog_compiler_pic='-Kconform_pic'
8619 lt_prog_compiler_static='-Bstatic'
8620 fi
8621 ;;
8622
8623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 ;;
8628
8629 unicos*)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_can_build_shared=no
8632 ;;
8633
8634 uts4*)
8635 lt_prog_compiler_pic='-pic'
8636 lt_prog_compiler_static='-Bstatic'
8637 ;;
8638
8639 *)
8640 lt_prog_compiler_can_build_shared=no
8641 ;;
8642 esac
8643 fi
8644
8645 case $host_os in
8646 # For platforms which do not support PIC, -DPIC is meaningless:
8647 *djgpp*)
8648 lt_prog_compiler_pic=
8649 ;;
8650 *)
8651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8652 ;;
8653 esac
8654
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8657 if ${lt_cv_prog_compiler_pic+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8663 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8664 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8665
8666 #
8667 # Check to make sure the PIC flag actually works.
8668 #
8669 if test -n "$lt_prog_compiler_pic"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8671 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8672 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 lt_cv_prog_compiler_pic_works=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689 (eval "$lt_compile" 2>conftest.err)
8690 ac_status=$?
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_pic_works=yes
8700 fi
8701 fi
8702 $RM conftest*
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8706 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8709 case $lt_prog_compiler_pic in
8710 "" | " "*) ;;
8711 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8712 esac
8713 else
8714 lt_prog_compiler_pic=
8715 lt_prog_compiler_can_build_shared=no
8716 fi
8717
8718 fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 #
8731 # Check to make sure the static flag actually works.
8732 #
8733 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8735 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8736 if ${lt_cv_prog_compiler_static_works+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_static_works=no
8740 save_LDFLAGS="$LDFLAGS"
8741 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8744 # The linker can only warn and ignore the option if not recognized
8745 # So say no if there are warnings
8746 if test -s conftest.err; then
8747 # Append any errors to the config.log.
8748 cat conftest.err 1>&5
8749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751 if diff conftest.exp conftest.er2 >/dev/null; then
8752 lt_cv_prog_compiler_static_works=yes
8753 fi
8754 else
8755 lt_cv_prog_compiler_static_works=yes
8756 fi
8757 fi
8758 $RM -r conftest*
8759 LDFLAGS="$save_LDFLAGS"
8760
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8763 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8764
8765 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8766 :
8767 else
8768 lt_prog_compiler_static=
8769 fi
8770
8771
8772
8773
8774
8775
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8779 if ${lt_cv_prog_compiler_c_o+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_prog_compiler_c_o=no
8783 $RM -r conftest 2>/dev/null
8784 mkdir conftest
8785 cd conftest
8786 mkdir out
8787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788
8789 lt_compiler_flag="-o out/conftest2.$ac_objext"
8790 # Insert the option either (1) after the last *FLAGS variable, or
8791 # (2) before a word containing "conftest.", or (3) at the end.
8792 # Note that $ac_compile itself does not contain backslashes and begins
8793 # with a dollar sign (not a hyphen), so the echo should work correctly.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>out/conftest.err)
8800 ac_status=$?
8801 cat out/conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8804 then
8805 # The compiler can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8810 lt_cv_prog_compiler_c_o=yes
8811 fi
8812 fi
8813 chmod u+w . 2>&5
8814 $RM conftest*
8815 # SGI C++ compiler will create directory out/ii_files/ for
8816 # template instantiation
8817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8818 $RM out/* && rmdir out
8819 cd ..
8820 $RM -r conftest
8821 $RM conftest*
8822
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8825 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8826
8827
8828
8829
8830
8831
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8834 if ${lt_cv_prog_compiler_c_o+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 lt_cv_prog_compiler_c_o=no
8838 $RM -r conftest 2>/dev/null
8839 mkdir conftest
8840 cd conftest
8841 mkdir out
8842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843
8844 lt_compiler_flag="-o out/conftest2.$ac_objext"
8845 # Insert the option either (1) after the last *FLAGS variable, or
8846 # (2) before a word containing "conftest.", or (3) at the end.
8847 # Note that $ac_compile itself does not contain backslashes and begins
8848 # with a dollar sign (not a hyphen), so the echo should work correctly.
8849 lt_compile=`echo "$ac_compile" | $SED \
8850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8852 -e 's:$: $lt_compiler_flag:'`
8853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8854 (eval "$lt_compile" 2>out/conftest.err)
8855 ac_status=$?
8856 cat out/conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8859 then
8860 # The compiler can only warn and ignore the option if not recognized
8861 # So say no if there are warnings
8862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_c_o=yes
8866 fi
8867 fi
8868 chmod u+w . 2>&5
8869 $RM conftest*
8870 # SGI C++ compiler will create directory out/ii_files/ for
8871 # template instantiation
8872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8873 $RM out/* && rmdir out
8874 cd ..
8875 $RM -r conftest
8876 $RM conftest*
8877
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8881
8882
8883
8884
8885 hard_links="nottested"
8886 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8887 # do not overwrite the value of need_locks provided by the user
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8889 $as_echo_n "checking if we can lock with hard links... " >&6; }
8890 hard_links=yes
8891 $RM conftest*
8892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8893 touch conftest.a
8894 ln conftest.a conftest.b 2>&5 || hard_links=no
8895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8897 $as_echo "$hard_links" >&6; }
8898 if test "$hard_links" = no; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8901 need_locks=warn
8902 fi
8903 else
8904 need_locks=no
8905 fi
8906
8907
8908
8909
8910
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8914
8915 runpath_var=
8916 allow_undefined_flag=
8917 always_export_symbols=no
8918 archive_cmds=
8919 archive_expsym_cmds=
8920 compiler_needs_object=no
8921 enable_shared_with_static_runtimes=no
8922 export_dynamic_flag_spec=
8923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8924 hardcode_automatic=no
8925 hardcode_direct=no
8926 hardcode_direct_absolute=no
8927 hardcode_libdir_flag_spec=
8928 hardcode_libdir_separator=
8929 hardcode_minus_L=no
8930 hardcode_shlibpath_var=unsupported
8931 inherit_rpath=no
8932 link_all_deplibs=unknown
8933 module_cmds=
8934 module_expsym_cmds=
8935 old_archive_from_new_cmds=
8936 old_archive_from_expsyms_cmds=
8937 thread_safe_flag_spec=
8938 whole_archive_flag_spec=
8939 # include_expsyms should be a list of space-separated symbols to be *always*
8940 # included in the symbol list
8941 include_expsyms=
8942 # exclude_expsyms can be an extended regexp of symbols to exclude
8943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945 # as well as any symbol that contains `d'.
8946 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948 # platforms (ab)use it in PIC code, but their linkers get confused if
8949 # the symbol is explicitly referenced. Since portable code cannot
8950 # rely on this symbol name, it's probably fine to never include it in
8951 # preloaded symbol tables.
8952 # Exclude shared library initialization/finalization symbols.
8953 extract_expsyms_cmds=
8954
8955 case $host_os in
8956 cygwin* | mingw* | pw32* | cegcc*)
8957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8958 # When not using gcc, we currently assume that we are using
8959 # Microsoft Visual C++.
8960 if test "$GCC" != yes; then
8961 with_gnu_ld=no
8962 fi
8963 ;;
8964 interix*)
8965 # we just hope/assume this is gcc and not c89 (= MSVC++)
8966 with_gnu_ld=yes
8967 ;;
8968 openbsd*)
8969 with_gnu_ld=no
8970 ;;
8971 esac
8972
8973 ld_shlibs=yes
8974
8975 # On some targets, GNU ld is compatible enough with the native linker
8976 # that we're better off using the native interface for both.
8977 lt_use_gnu_ld_interface=no
8978 if test "$with_gnu_ld" = yes; then
8979 case $host_os in
8980 aix*)
8981 # The AIX port of GNU ld has always aspired to compatibility
8982 # with the native linker. However, as the warning in the GNU ld
8983 # block says, versions before 2.19.5* couldn't really create working
8984 # shared libraries, regardless of the interface used.
8985 case `$LD -v 2>&1` in
8986 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8987 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8988 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8989 *)
8990 lt_use_gnu_ld_interface=yes
8991 ;;
8992 esac
8993 ;;
8994 *)
8995 lt_use_gnu_ld_interface=yes
8996 ;;
8997 esac
8998 fi
8999
9000 if test "$lt_use_gnu_ld_interface" = yes; then
9001 # If archive_cmds runs LD, not CC, wlarc should be empty
9002 wlarc='${wl}'
9003
9004 # Set some defaults for GNU ld with shared library support. These
9005 # are reset later if shared libraries are not supported. Putting them
9006 # here allows them to be overridden if necessary.
9007 runpath_var=LD_RUN_PATH
9008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9009 export_dynamic_flag_spec='${wl}--export-dynamic'
9010 # ancient GNU ld didn't support --whole-archive et. al.
9011 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9013 else
9014 whole_archive_flag_spec=
9015 fi
9016 supports_anon_versioning=no
9017 case `$LD -v 2>&1` in
9018 *GNU\ gold*) supports_anon_versioning=yes ;;
9019 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9022 *\ 2.11.*) ;; # other 2.11 versions
9023 *) supports_anon_versioning=yes ;;
9024 esac
9025
9026 # See if GNU ld supports shared libraries.
9027 case $host_os in
9028 aix[3-9]*)
9029 # On AIX/PPC, the GNU linker is very broken
9030 if test "$host_cpu" != ia64; then
9031 ld_shlibs=no
9032 cat <<_LT_EOF 1>&2
9033
9034 *** Warning: the GNU linker, at least up to release 2.19, is reported
9035 *** to be unable to reliably create shared libraries on AIX.
9036 *** Therefore, libtool is disabling shared libraries support. If you
9037 *** really care for shared libraries, you may want to install binutils
9038 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9039 *** You will then need to restart the configuration process.
9040
9041 _LT_EOF
9042 fi
9043 ;;
9044
9045 amigaos*)
9046 case $host_cpu in
9047 powerpc)
9048 # see comment about AmigaOS4 .so support
9049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050 archive_expsym_cmds=''
9051 ;;
9052 m68k)
9053 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)'
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_minus_L=yes
9056 ;;
9057 esac
9058 ;;
9059
9060 beos*)
9061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9062 allow_undefined_flag=unsupported
9063 # Joseph Beckenbach <[email protected]> says some releases of gcc
9064 # support --undefined. This deserves some investigation. FIXME
9065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 else
9067 ld_shlibs=no
9068 fi
9069 ;;
9070
9071 cygwin* | mingw* | pw32* | cegcc*)
9072 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9073 # as there is no search path for DLLs.
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 export_dynamic_flag_spec='${wl}--export-all-symbols'
9076 allow_undefined_flag=unsupported
9077 always_export_symbols=no
9078 enable_shared_with_static_runtimes=yes
9079 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'
9080 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9081
9082 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9084 # If the export-symbols file already is a .def file (1st line
9085 # is EXPORTS), use it as is; otherwise, prepend...
9086 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9087 cp $export_symbols $output_objdir/$soname.def;
9088 else
9089 echo EXPORTS > $output_objdir/$soname.def;
9090 cat $export_symbols >> $output_objdir/$soname.def;
9091 fi~
9092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9093 else
9094 ld_shlibs=no
9095 fi
9096 ;;
9097
9098 haiku*)
9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100 link_all_deplibs=yes
9101 ;;
9102
9103 interix[3-9]*)
9104 hardcode_direct=no
9105 hardcode_shlibpath_var=no
9106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9107 export_dynamic_flag_spec='${wl}-E'
9108 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9109 # Instead, shared libraries are loaded at an image base (0x10000000 by
9110 # default) and relocated if they conflict, which is a slow very memory
9111 # consuming and fragmenting process. To avoid this, we pick a random,
9112 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9113 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9115 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'
9116 ;;
9117
9118 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9119 tmp_diet=no
9120 if test "$host_os" = linux-dietlibc; then
9121 case $cc_basename in
9122 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9123 esac
9124 fi
9125 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9126 && test "$tmp_diet" = no
9127 then
9128 tmp_addflag=' $pic_flag'
9129 tmp_sharedflag='-shared'
9130 case $cc_basename,$host_cpu in
9131 pgcc*) # Portland Group C compiler
9132 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'
9133 tmp_addflag=' $pic_flag'
9134 ;;
9135 pgf77* | pgf90* | pgf95* | pgfortran*)
9136 # Portland Group f77 and f90 compilers
9137 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'
9138 tmp_addflag=' $pic_flag -Mnomain' ;;
9139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9140 tmp_addflag=' -i_dynamic' ;;
9141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9142 tmp_addflag=' -i_dynamic -nofor_main' ;;
9143 ifc* | ifort*) # Intel Fortran compiler
9144 tmp_addflag=' -nofor_main' ;;
9145 lf95*) # Lahey Fortran 8.1
9146 whole_archive_flag_spec=
9147 tmp_sharedflag='--shared' ;;
9148 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9149 tmp_sharedflag='-qmkshrobj'
9150 tmp_addflag= ;;
9151 nvcc*) # Cuda Compiler Driver 2.2
9152 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'
9153 compiler_needs_object=yes
9154 ;;
9155 esac
9156 case `$CC -V 2>&1 | sed 5q` in
9157 *Sun\ C*) # Sun C 5.9
9158 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'
9159 compiler_needs_object=yes
9160 tmp_sharedflag='-G' ;;
9161 *Sun\ F*) # Sun Fortran 8.3
9162 tmp_sharedflag='-G' ;;
9163 esac
9164 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165
9166 if test "x$supports_anon_versioning" = xyes; then
9167 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9169 echo "local: *; };" >> $output_objdir/$libname.ver~
9170 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9171 fi
9172
9173 case $cc_basename in
9174 xlf* | bgf* | bgxlf* | mpixlf*)
9175 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9176 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9179 if test "x$supports_anon_versioning" = xyes; then
9180 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9182 echo "local: *; };" >> $output_objdir/$libname.ver~
9183 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9184 fi
9185 ;;
9186 esac
9187 else
9188 ld_shlibs=no
9189 fi
9190 ;;
9191
9192 netbsd*)
9193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9195 wlarc=
9196 else
9197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9199 fi
9200 ;;
9201
9202 solaris*)
9203 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9204 ld_shlibs=no
9205 cat <<_LT_EOF 1>&2
9206
9207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9208 *** create shared libraries on Solaris systems. Therefore, libtool
9209 *** is disabling shared libraries support. We urge you to upgrade GNU
9210 *** binutils to release 2.9.1 or newer. Another option is to modify
9211 *** your PATH or compiler configuration so that the native linker is
9212 *** used, and then restart.
9213
9214 _LT_EOF
9215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218 else
9219 ld_shlibs=no
9220 fi
9221 ;;
9222
9223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9224 case `$LD -v 2>&1` in
9225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9226 ld_shlibs=no
9227 cat <<_LT_EOF 1>&2
9228
9229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9230 *** reliably create shared libraries on SCO systems. Therefore, libtool
9231 *** is disabling shared libraries support. We urge you to upgrade GNU
9232 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9233 *** your PATH or compiler configuration so that the native linker is
9234 *** used, and then restart.
9235
9236 _LT_EOF
9237 ;;
9238 *)
9239 # For security reasons, it is highly recommended that you always
9240 # use absolute paths for naming shared libraries, and exclude the
9241 # DT_RUNPATH tag from executables and libraries. But doing so
9242 # requires that you compile everything twice, which is a pain.
9243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251 esac
9252 ;;
9253
9254 sunos4*)
9255 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256 wlarc=
9257 hardcode_direct=yes
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 *)
9262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 else
9266 ld_shlibs=no
9267 fi
9268 ;;
9269 esac
9270
9271 if test "$ld_shlibs" = no; then
9272 runpath_var=
9273 hardcode_libdir_flag_spec=
9274 export_dynamic_flag_spec=
9275 whole_archive_flag_spec=
9276 fi
9277 else
9278 # PORTME fill in a description of your system's linker (not GNU ld)
9279 case $host_os in
9280 aix3*)
9281 allow_undefined_flag=unsupported
9282 always_export_symbols=yes
9283 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'
9284 # Note: this linker hardcodes the directories in LIBPATH if there
9285 # are no directories specified by -L.
9286 hardcode_minus_L=yes
9287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9288 # Neither direct hardcoding nor static linking is supported with a
9289 # broken collect2.
9290 hardcode_direct=unsupported
9291 fi
9292 ;;
9293
9294 aix[4-9]*)
9295 if test "$host_cpu" = ia64; then
9296 # On IA64, the linker does run time linking by default, so we don't
9297 # have to do anything special.
9298 aix_use_runtimelinking=no
9299 exp_sym_flag='-Bexport'
9300 no_entry_flag=""
9301 else
9302 # If we're using GNU nm, then we don't want the "-C" option.
9303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9304 # Also, AIX nm treats weak defined symbols like other global
9305 # defined symbols, whereas GNU nm marks them as "W".
9306 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9307 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'
9308 else
9309 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'
9310 fi
9311 aix_use_runtimelinking=no
9312
9313 # Test if we are trying to use run time linking or normal
9314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9315 # need to do runtime linking.
9316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9317 for ld_flag in $LDFLAGS; do
9318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9319 aix_use_runtimelinking=yes
9320 break
9321 fi
9322 done
9323 ;;
9324 esac
9325
9326 exp_sym_flag='-bexport'
9327 no_entry_flag='-bnoentry'
9328 fi
9329
9330 # When large executables or shared objects are built, AIX ld can
9331 # have problems creating the table of contents. If linking a library
9332 # or program results in "error TOC overflow" add -mminimal-toc to
9333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9335
9336 archive_cmds=''
9337 hardcode_direct=yes
9338 hardcode_direct_absolute=yes
9339 hardcode_libdir_separator=':'
9340 link_all_deplibs=yes
9341 file_list_spec='${wl}-f,'
9342
9343 if test "$GCC" = yes; then
9344 case $host_os in aix4.[012]|aix4.[012].*)
9345 # We only want to do this on AIX 4.2 and lower, the check
9346 # below for broken collect2 doesn't work under 4.3+
9347 collect2name=`${CC} -print-prog-name=collect2`
9348 if test -f "$collect2name" &&
9349 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9350 then
9351 # We have reworked collect2
9352 :
9353 else
9354 # We have old collect2
9355 hardcode_direct=unsupported
9356 # It fails to find uninstalled libraries when the uninstalled
9357 # path is not listed in the libpath. Setting hardcode_minus_L
9358 # to unsupported forces relinking
9359 hardcode_minus_L=yes
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_libdir_separator=
9362 fi
9363 ;;
9364 esac
9365 shared_flag='-shared'
9366 if test "$aix_use_runtimelinking" = yes; then
9367 shared_flag="$shared_flag "'${wl}-G'
9368 fi
9369 else
9370 # not using gcc
9371 if test "$host_cpu" = ia64; then
9372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9373 # chokes on -Wl,-G. The following line is correct:
9374 shared_flag='-G'
9375 else
9376 if test "$aix_use_runtimelinking" = yes; then
9377 shared_flag='${wl}-G'
9378 else
9379 shared_flag='${wl}-bM:SRE'
9380 fi
9381 fi
9382 fi
9383
9384 export_dynamic_flag_spec='${wl}-bexpall'
9385 # It seems that -bexpall does not export symbols beginning with
9386 # underscore (_), so it is better to generate a list of symbols to export.
9387 always_export_symbols=yes
9388 if test "$aix_use_runtimelinking" = yes; then
9389 # Warning - without using the other runtime loading flags (-brtl),
9390 # -berok will link without error, but may produce a broken library.
9391 allow_undefined_flag='-berok'
9392 # Determine the default libpath from the value encoded in an
9393 # empty executable.
9394 if test "${lt_cv_aix_libpath+set}" = set; then
9395 aix_libpath=$lt_cv_aix_libpath
9396 else
9397 if ${lt_cv_aix_libpath_+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403 int
9404 main ()
9405 {
9406
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412
9413 lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\([^ ]*\) *$/\1/
9417 p
9418 }
9419 }'
9420 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$lt_cv_aix_libpath_"; then
9423 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424 fi
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 if test -z "$lt_cv_aix_libpath_"; then
9429 lt_cv_aix_libpath_="/usr/lib:/lib"
9430 fi
9431
9432 fi
9433
9434 aix_libpath=$lt_cv_aix_libpath_
9435 fi
9436
9437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9438 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"
9439 else
9440 if test "$host_cpu" = ia64; then
9441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9442 allow_undefined_flag="-z nodefs"
9443 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"
9444 else
9445 # Determine the default libpath from the value encoded in an
9446 # empty executable.
9447 if test "${lt_cv_aix_libpath+set}" = set; then
9448 aix_libpath=$lt_cv_aix_libpath
9449 else
9450 if ${lt_cv_aix_libpath_+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455
9456 int
9457 main ()
9458 {
9459
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"; then :
9465
9466 lt_aix_libpath_sed='
9467 /Import File Strings/,/^$/ {
9468 /^0/ {
9469 s/^0 *\([^ ]*\) *$/\1/
9470 p
9471 }
9472 }'
9473 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 # Check for a 64-bit object if we didn't find anything.
9475 if test -z "$lt_cv_aix_libpath_"; then
9476 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 fi
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 if test -z "$lt_cv_aix_libpath_"; then
9482 lt_cv_aix_libpath_="/usr/lib:/lib"
9483 fi
9484
9485 fi
9486
9487 aix_libpath=$lt_cv_aix_libpath_
9488 fi
9489
9490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9491 # Warning - without using the other run time loading flags,
9492 # -berok will link without error, but may produce a broken library.
9493 no_undefined_flag=' ${wl}-bernotok'
9494 allow_undefined_flag=' ${wl}-berok'
9495 if test "$with_gnu_ld" = yes; then
9496 # We only use this code for GNU lds that support --whole-archive.
9497 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9498 else
9499 # Exported symbols can be pulled into shared objects from archives
9500 whole_archive_flag_spec='$convenience'
9501 fi
9502 archive_cmds_need_lc=yes
9503 # This is similar to how AIX traditionally builds its shared libraries.
9504 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'
9505 fi
9506 fi
9507 ;;
9508
9509 amigaos*)
9510 case $host_cpu in
9511 powerpc)
9512 # see comment about AmigaOS4 .so support
9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514 archive_expsym_cmds=''
9515 ;;
9516 m68k)
9517 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)'
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_minus_L=yes
9520 ;;
9521 esac
9522 ;;
9523
9524 bsdi[45]*)
9525 export_dynamic_flag_spec=-rdynamic
9526 ;;
9527
9528 cygwin* | mingw* | pw32* | cegcc*)
9529 # When not using gcc, we currently assume that we are using
9530 # Microsoft Visual C++.
9531 # hardcode_libdir_flag_spec is actually meaningless, as there is
9532 # no search path for DLLs.
9533 case $cc_basename in
9534 cl*)
9535 # Native MSVC
9536 hardcode_libdir_flag_spec=' '
9537 allow_undefined_flag=unsupported
9538 always_export_symbols=yes
9539 file_list_spec='@'
9540 # Tell ltmain to make .lib files, not .a files.
9541 libext=lib
9542 # Tell ltmain to make .dll files, not .so files.
9543 shrext_cmds=".dll"
9544 # FIXME: Setting linknames here is a bad hack.
9545 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9546 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9547 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9548 else
9549 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9550 fi~
9551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9552 linknames='
9553 # The linker will not automatically build a static lib if we build a DLL.
9554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9555 enable_shared_with_static_runtimes=yes
9556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9558 # Don't use ranlib
9559 old_postinstall_cmds='chmod 644 $oldlib'
9560 postlink_cmds='lt_outputfile="@OUTPUT@"~
9561 lt_tool_outputfile="@TOOL_OUTPUT@"~
9562 case $lt_outputfile in
9563 *.exe|*.EXE) ;;
9564 *)
9565 lt_outputfile="$lt_outputfile.exe"
9566 lt_tool_outputfile="$lt_tool_outputfile.exe"
9567 ;;
9568 esac~
9569 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9571 $RM "$lt_outputfile.manifest";
9572 fi'
9573 ;;
9574 *)
9575 # Assume MSVC wrapper
9576 hardcode_libdir_flag_spec=' '
9577 allow_undefined_flag=unsupported
9578 # Tell ltmain to make .lib files, not .a files.
9579 libext=lib
9580 # Tell ltmain to make .dll files, not .so files.
9581 shrext_cmds=".dll"
9582 # FIXME: Setting linknames here is a bad hack.
9583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9584 # The linker will automatically build a .lib file if we build a DLL.
9585 old_archive_from_new_cmds='true'
9586 # FIXME: Should let the user specify the lib program.
9587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9588 enable_shared_with_static_runtimes=yes
9589 ;;
9590 esac
9591 ;;
9592
9593 darwin* | rhapsody*)
9594
9595
9596 archive_cmds_need_lc=no
9597 hardcode_direct=no
9598 hardcode_automatic=yes
9599 hardcode_shlibpath_var=unsupported
9600 if test "$lt_cv_ld_force_load" = "yes"; then
9601 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\"`'
9602
9603 else
9604 whole_archive_flag_spec=''
9605 fi
9606 link_all_deplibs=yes
9607 allow_undefined_flag="$_lt_dar_allow_undefined"
9608 case $cc_basename in
9609 ifort*) _lt_dar_can_shared=yes ;;
9610 *) _lt_dar_can_shared=$GCC ;;
9611 esac
9612 if test "$_lt_dar_can_shared" = "yes"; then
9613 output_verbose_link_cmd=func_echo_all
9614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9616 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}"
9617 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}"
9618
9619 else
9620 ld_shlibs=no
9621 fi
9622
9623 ;;
9624
9625 dgux*)
9626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_shlibpath_var=no
9629 ;;
9630
9631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9632 # support. Future versions do this automatically, but an explicit c++rt0.o
9633 # does not break anything, and helps significantly (at the cost of a little
9634 # extra space).
9635 freebsd2.2*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_direct=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9643 freebsd2.*)
9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_direct=yes
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9651 freebsd* | dragonfly*)
9652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9653 hardcode_libdir_flag_spec='-R$libdir'
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 hpux9*)
9659 if test "$GCC" = yes; then
9660 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'
9661 else
9662 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'
9663 fi
9664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_direct=yes
9667
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9671 export_dynamic_flag_spec='${wl}-E'
9672 ;;
9673
9674 hpux10*)
9675 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9676 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677 else
9678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9679 fi
9680 if test "$with_gnu_ld" = no; then
9681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9682 hardcode_libdir_separator=:
9683 hardcode_direct=yes
9684 hardcode_direct_absolute=yes
9685 export_dynamic_flag_spec='${wl}-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9689 fi
9690 ;;
9691
9692 hpux11*)
9693 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9694 case $host_cpu in
9695 hppa*64*)
9696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 ia64*)
9699 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 *)
9702 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 esac
9705 else
9706 case $host_cpu in
9707 hppa*64*)
9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 ia64*)
9711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9712 ;;
9713 *)
9714
9715 # Older versions of the 11.00 compiler do not understand -b yet
9716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9718 $as_echo_n "checking if $CC understands -b... " >&6; }
9719 if ${lt_cv_prog_compiler__b+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 lt_cv_prog_compiler__b=no
9723 save_LDFLAGS="$LDFLAGS"
9724 LDFLAGS="$LDFLAGS -b"
9725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9727 # The linker can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 if test -s conftest.err; then
9730 # Append any errors to the config.log.
9731 cat conftest.err 1>&5
9732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9734 if diff conftest.exp conftest.er2 >/dev/null; then
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 else
9738 lt_cv_prog_compiler__b=yes
9739 fi
9740 fi
9741 $RM -r conftest*
9742 LDFLAGS="$save_LDFLAGS"
9743
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9747
9748 if test x"$lt_cv_prog_compiler__b" = xyes; then
9749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750 else
9751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752 fi
9753
9754 ;;
9755 esac
9756 fi
9757 if test "$with_gnu_ld" = no; then
9758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9759 hardcode_libdir_separator=:
9760
9761 case $host_cpu in
9762 hppa*64*|ia64*)
9763 hardcode_direct=no
9764 hardcode_shlibpath_var=no
9765 ;;
9766 *)
9767 hardcode_direct=yes
9768 hardcode_direct_absolute=yes
9769 export_dynamic_flag_spec='${wl}-E'
9770
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L=yes
9774 ;;
9775 esac
9776 fi
9777 ;;
9778
9779 irix5* | irix6* | nonstopux*)
9780 if test "$GCC" = yes; then
9781 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'
9782 # Try to use the -exported_symbol ld option, if it does not
9783 # work, assume that -exports_file does not work either and
9784 # implicitly export all symbols.
9785 # This should be the same for all languages, so no per-tag cache variable.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9787 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9788 if ${lt_cv_irix_exported_symbol+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 save_LDFLAGS="$LDFLAGS"
9792 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int foo (void) { return 0; }
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"; then :
9798 lt_cv_irix_exported_symbol=yes
9799 else
9800 lt_cv_irix_exported_symbol=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LDFLAGS="$save_LDFLAGS"
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9807 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9808 if test "$lt_cv_irix_exported_symbol" = yes; then
9809 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'
9810 fi
9811 else
9812 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'
9813 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'
9814 fi
9815 archive_cmds_need_lc='no'
9816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817 hardcode_libdir_separator=:
9818 inherit_rpath=yes
9819 link_all_deplibs=yes
9820 ;;
9821
9822 netbsd*)
9823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9825 else
9826 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9827 fi
9828 hardcode_libdir_flag_spec='-R$libdir'
9829 hardcode_direct=yes
9830 hardcode_shlibpath_var=no
9831 ;;
9832
9833 newsos6)
9834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_direct=yes
9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837 hardcode_libdir_separator=:
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 *nto* | *qnx*)
9842 ;;
9843
9844 openbsd*)
9845 if test -f /usr/libexec/ld.so; then
9846 hardcode_direct=yes
9847 hardcode_shlibpath_var=no
9848 hardcode_direct_absolute=yes
9849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9853 export_dynamic_flag_spec='${wl}-E'
9854 else
9855 case $host_os in
9856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_libdir_flag_spec='-R$libdir'
9859 ;;
9860 *)
9861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9863 ;;
9864 esac
9865 fi
9866 else
9867 ld_shlibs=no
9868 fi
9869 ;;
9870
9871 os2*)
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_minus_L=yes
9874 allow_undefined_flag=unsupported
9875 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'
9876 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9877 ;;
9878
9879 osf3*)
9880 if test "$GCC" = yes; then
9881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9883 else
9884 allow_undefined_flag=' -expect_unresolved \*'
9885 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'
9886 fi
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator=:
9890 ;;
9891
9892 osf4* | osf5*) # as osf3* with the addition of -msym flag
9893 if test "$GCC" = yes; then
9894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9895 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'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 else
9898 allow_undefined_flag=' -expect_unresolved \*'
9899 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'
9900 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~
9901 $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'
9902
9903 # Both c and cxx compiler support -rpath directly
9904 hardcode_libdir_flag_spec='-rpath $libdir'
9905 fi
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_separator=:
9908 ;;
9909
9910 solaris*)
9911 no_undefined_flag=' -z defs'
9912 if test "$GCC" = yes; then
9913 wlarc='${wl}'
9914 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9916 $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'
9917 else
9918 case `$CC -V 2>&1` in
9919 *"Compilers 5.0"*)
9920 wlarc=''
9921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9924 ;;
9925 *)
9926 wlarc='${wl}'
9927 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9930 ;;
9931 esac
9932 fi
9933 hardcode_libdir_flag_spec='-R$libdir'
9934 hardcode_shlibpath_var=no
9935 case $host_os in
9936 solaris2.[0-5] | solaris2.[0-5].*) ;;
9937 *)
9938 # The compiler driver will combine and reorder linker options,
9939 # but understands `-z linker_flag'. GCC discards it without `$wl',
9940 # but is careful enough not to reorder.
9941 # Supported since Solaris 2.6 (maybe 2.5.1?)
9942 if test "$GCC" = yes; then
9943 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9944 else
9945 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9946 fi
9947 ;;
9948 esac
9949 link_all_deplibs=yes
9950 ;;
9951
9952 sunos4*)
9953 if test "x$host_vendor" = xsequent; then
9954 # Use $CC to link under sequent, because it throws in some extra .o
9955 # files that make .init and .fini sections work.
9956 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9957 else
9958 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9959 fi
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_direct=yes
9962 hardcode_minus_L=yes
9963 hardcode_shlibpath_var=no
9964 ;;
9965
9966 sysv4)
9967 case $host_vendor in
9968 sni)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes # is this really true???
9971 ;;
9972 siemens)
9973 ## LD is ld it makes a PLAMLIB
9974 ## CC just makes a GrossModule.
9975 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9976 reload_cmds='$CC -r -o $output$reload_objs'
9977 hardcode_direct=no
9978 ;;
9979 motorola)
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9982 ;;
9983 esac
9984 runpath_var='LD_RUN_PATH'
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 sysv4.3*)
9989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_shlibpath_var=no
9991 export_dynamic_flag_spec='-Bexport'
9992 ;;
9993
9994 sysv4*MP*)
9995 if test -d /usr/nec; then
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_shlibpath_var=no
9998 runpath_var=LD_RUN_PATH
9999 hardcode_runpath_var=yes
10000 ld_shlibs=yes
10001 fi
10002 ;;
10003
10004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10005 no_undefined_flag='${wl}-z,text'
10006 archive_cmds_need_lc=no
10007 hardcode_shlibpath_var=no
10008 runpath_var='LD_RUN_PATH'
10009
10010 if test "$GCC" = yes; then
10011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 else
10014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 fi
10017 ;;
10018
10019 sysv5* | sco3.2v5* | sco5v6*)
10020 # Note: We can NOT use -z defs as we might desire, because we do not
10021 # link with -lc, and that would cause any symbols used from libc to
10022 # always be unresolved, which means just about no library would
10023 # ever link correctly. If we're not using GNU ld we use -z text
10024 # though, which does catch some bad symbols but isn't as heavy-handed
10025 # as -z defs.
10026 no_undefined_flag='${wl}-z,text'
10027 allow_undefined_flag='${wl}-z,nodefs'
10028 archive_cmds_need_lc=no
10029 hardcode_shlibpath_var=no
10030 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10031 hardcode_libdir_separator=':'
10032 link_all_deplibs=yes
10033 export_dynamic_flag_spec='${wl}-Bexport'
10034 runpath_var='LD_RUN_PATH'
10035
10036 if test "$GCC" = yes; then
10037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 else
10040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 fi
10043 ;;
10044
10045 uts4*)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_shlibpath_var=no
10049 ;;
10050
10051 *)
10052 ld_shlibs=no
10053 ;;
10054 esac
10055
10056 if test x$host_vendor = xsni; then
10057 case $host in
10058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10059 export_dynamic_flag_spec='${wl}-Blargedynsym'
10060 ;;
10061 esac
10062 fi
10063 fi
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10066 $as_echo "$ld_shlibs" >&6; }
10067 test "$ld_shlibs" = no && can_build_shared=no
10068
10069 with_gnu_ld=$with_gnu_ld
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 #
10086 # Do we need to explicitly link libc?
10087 #
10088 case "x$archive_cmds_need_lc" in
10089 x|xyes)
10090 # Assume -lc should be added
10091 archive_cmds_need_lc=yes
10092
10093 if test "$enable_shared" = yes && test "$GCC" = yes; then
10094 case $archive_cmds in
10095 *'~'*)
10096 # FIXME: we may have to deal with multi-command sequences.
10097 ;;
10098 '$CC '*)
10099 # Test whether the compiler implicitly links with -lc since on some
10100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10101 # to ld, don't add -lc before -lgcc.
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10104 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 $RM conftest*
10108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10109
10110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10111 (eval $ac_compile) 2>&5
10112 ac_status=$?
10113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10114 test $ac_status = 0; } 2>conftest.err; then
10115 soname=conftest
10116 lib=conftest
10117 libobjs=conftest.$ac_objext
10118 deplibs=
10119 wl=$lt_prog_compiler_wl
10120 pic_flag=$lt_prog_compiler_pic
10121 compiler_flags=-v
10122 linker_flags=-v
10123 verstring=
10124 output_objdir=.
10125 libname=conftest
10126 lt_save_allow_undefined_flag=$allow_undefined_flag
10127 allow_undefined_flag=
10128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10129 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10130 ac_status=$?
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; }
10133 then
10134 lt_cv_archive_cmds_need_lc=no
10135 else
10136 lt_cv_archive_cmds_need_lc=yes
10137 fi
10138 allow_undefined_flag=$lt_save_allow_undefined_flag
10139 else
10140 cat conftest.err 1>&5
10141 fi
10142 $RM conftest*
10143
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10146 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10147 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10148 ;;
10149 esac
10150 fi
10151 ;;
10152 esac
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10306 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10307
10308 if test "$GCC" = yes; then
10309 case $host_os in
10310 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10311 *) lt_awk_arg="/^libraries:/" ;;
10312 esac
10313 case $host_os in
10314 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10315 *) lt_sed_strip_eq="s,=/,/,g" ;;
10316 esac
10317 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10318 case $lt_search_path_spec in
10319 *\;*)
10320 # if the path contains ";" then we assume it to be the separator
10321 # otherwise default to the standard path separator (i.e. ":") - it is
10322 # assumed that no part of a normal pathname contains ";" but that should
10323 # okay in the real world where ";" in dirpaths is itself problematic.
10324 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10325 ;;
10326 *)
10327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10328 ;;
10329 esac
10330 # Ok, now we have the path, separated by spaces, we can step through it
10331 # and add multilib dir if necessary.
10332 lt_tmp_lt_search_path_spec=
10333 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10334 for lt_sys_path in $lt_search_path_spec; do
10335 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10336 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10337 else
10338 test -d "$lt_sys_path" && \
10339 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10340 fi
10341 done
10342 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10343 BEGIN {RS=" "; FS="/|\n";} {
10344 lt_foo="";
10345 lt_count=0;
10346 for (lt_i = NF; lt_i > 0; lt_i--) {
10347 if ($lt_i != "" && $lt_i != ".") {
10348 if ($lt_i == "..") {
10349 lt_count++;
10350 } else {
10351 if (lt_count == 0) {
10352 lt_foo="/" $lt_i lt_foo;
10353 } else {
10354 lt_count--;
10355 }
10356 }
10357 }
10358 }
10359 if (lt_foo != "") { lt_freq[lt_foo]++; }
10360 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10361 }'`
10362 # AWK program above erroneously prepends '/' to C:/dos/paths
10363 # for these hosts.
10364 case $host_os in
10365 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10366 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10367 esac
10368 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10369 else
10370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10371 fi
10372 library_names_spec=
10373 libname_spec='lib$name'
10374 soname_spec=
10375 shrext_cmds=".so"
10376 postinstall_cmds=
10377 postuninstall_cmds=
10378 finish_cmds=
10379 finish_eval=
10380 shlibpath_var=
10381 shlibpath_overrides_runpath=unknown
10382 version_type=none
10383 dynamic_linker="$host_os ld.so"
10384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10385 need_lib_prefix=unknown
10386 hardcode_into_libs=no
10387
10388 # when you set need_version to no, make sure it does not cause -set_version
10389 # flags to be left without arguments
10390 need_version=unknown
10391
10392 case $host_os in
10393 aix3*)
10394 version_type=linux # correct to gnu/linux during the next big refactor
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10396 shlibpath_var=LIBPATH
10397
10398 # AIX 3 has no versioning support, so we append a major version to the name.
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 ;;
10401
10402 aix[4-9]*)
10403 version_type=linux # correct to gnu/linux during the next big refactor
10404 need_lib_prefix=no
10405 need_version=no
10406 hardcode_into_libs=yes
10407 if test "$host_cpu" = ia64; then
10408 # AIX 5 supports IA64
10409 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 else
10412 # With GCC up to 2.95.x, collect2 would create an import file
10413 # for dependence libraries. The import file would start with
10414 # the line `#! .'. This would cause the generated library to
10415 # depend on `.', always an invalid library. This was fixed in
10416 # development snapshots of GCC prior to 3.0.
10417 case $host_os in
10418 aix4 | aix4.[01] | aix4.[01].*)
10419 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10420 echo ' yes '
10421 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10422 :
10423 else
10424 can_build_shared=no
10425 fi
10426 ;;
10427 esac
10428 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10429 # soname into executable. Probably we can add versioning support to
10430 # collect2, so additional links can be useful in future.
10431 if test "$aix_use_runtimelinking" = yes; then
10432 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10433 # instead of lib<name>.a to let people know that these are not
10434 # typical AIX shared libraries.
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 else
10437 # We preserve .a as extension for shared libraries through AIX4.2
10438 # and later when we are not doing run time linking.
10439 library_names_spec='${libname}${release}.a $libname.a'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 fi
10442 shlibpath_var=LIBPATH
10443 fi
10444 ;;
10445
10446 amigaos*)
10447 case $host_cpu in
10448 powerpc)
10449 # Since July 2007 AmigaOS4 officially supports .so libraries.
10450 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 ;;
10453 m68k)
10454 library_names_spec='$libname.ixlibrary $libname.a'
10455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10456 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'
10457 ;;
10458 esac
10459 ;;
10460
10461 beos*)
10462 library_names_spec='${libname}${shared_ext}'
10463 dynamic_linker="$host_os ld.so"
10464 shlibpath_var=LIBRARY_PATH
10465 ;;
10466
10467 bsdi[45]*)
10468 version_type=linux # correct to gnu/linux during the next big refactor
10469 need_version=no
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10476 # the default ld.so.conf also contains /usr/contrib/lib and
10477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10478 # libtool to hard-code these into programs
10479 ;;
10480
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 version_type=windows
10483 shrext_cmds=".dll"
10484 need_version=no
10485 need_lib_prefix=no
10486
10487 case $GCC,$cc_basename in
10488 yes,*)
10489 # gcc
10490 library_names_spec='$libname.dll.a'
10491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10492 postinstall_cmds='base_file=`basename \${file}`~
10493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10494 dldir=$destdir/`dirname \$dlpath`~
10495 test -d \$dldir || mkdir -p \$dldir~
10496 $install_prog $dir/$dlname \$dldir/$dlname~
10497 chmod a+x \$dldir/$dlname~
10498 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10499 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10500 fi'
10501 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10502 dlpath=$dir/\$dldll~
10503 $RM \$dlpath'
10504 shlibpath_overrides_runpath=yes
10505
10506 case $host_os in
10507 cygwin*)
10508 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10509 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10510
10511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10512 ;;
10513 mingw* | cegcc*)
10514 # MinGW DLLs use traditional 'lib' prefix
10515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10516 ;;
10517 pw32*)
10518 # pw32 DLLs use 'pw' prefix rather than 'lib'
10519 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10520 ;;
10521 esac
10522 dynamic_linker='Win32 ld.exe'
10523 ;;
10524
10525 *,cl*)
10526 # Native MSVC
10527 libname_spec='$name'
10528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10529 library_names_spec='${libname}.dll.lib'
10530
10531 case $build_os in
10532 mingw*)
10533 sys_lib_search_path_spec=
10534 lt_save_ifs=$IFS
10535 IFS=';'
10536 for lt_path in $LIB
10537 do
10538 IFS=$lt_save_ifs
10539 # Let DOS variable expansion print the short 8.3 style file name.
10540 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10541 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10542 done
10543 IFS=$lt_save_ifs
10544 # Convert to MSYS style.
10545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10546 ;;
10547 cygwin*)
10548 # Convert to unix form, then to dos form, then back to unix form
10549 # but this time dos style (no spaces!) so that the unix form looks
10550 # like /cygdrive/c/PROGRA~1:/cygdr...
10551 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10552 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10553 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10554 ;;
10555 *)
10556 sys_lib_search_path_spec="$LIB"
10557 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10558 # It is most probably a Windows format PATH.
10559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10560 else
10561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10562 fi
10563 # FIXME: find the short name or the path components, as spaces are
10564 # common. (e.g. "Program Files" -> "PROGRA~1")
10565 ;;
10566 esac
10567
10568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10569 postinstall_cmds='base_file=`basename \${file}`~
10570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10571 dldir=$destdir/`dirname \$dlpath`~
10572 test -d \$dldir || mkdir -p \$dldir~
10573 $install_prog $dir/$dlname \$dldir/$dlname'
10574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10576 $RM \$dlpath'
10577 shlibpath_overrides_runpath=yes
10578 dynamic_linker='Win32 link.exe'
10579 ;;
10580
10581 *)
10582 # Assume MSVC wrapper
10583 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10584 dynamic_linker='Win32 ld.exe'
10585 ;;
10586 esac
10587 # FIXME: first we should search . and the directory the executable is in
10588 shlibpath_var=PATH
10589 ;;
10590
10591 darwin* | rhapsody*)
10592 dynamic_linker="$host_os dyld"
10593 version_type=darwin
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10597 soname_spec='${libname}${release}${major}$shared_ext'
10598 shlibpath_overrides_runpath=yes
10599 shlibpath_var=DYLD_LIBRARY_PATH
10600 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10601
10602 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10604 ;;
10605
10606 dgux*)
10607 version_type=linux # correct to gnu/linux during the next big refactor
10608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 ;;
10614
10615 freebsd* | dragonfly*)
10616 # DragonFly does not have aout. When/if they implement a new
10617 # versioning mechanism, adjust this.
10618 if test -x /usr/bin/objformat; then
10619 objformat=`/usr/bin/objformat`
10620 else
10621 case $host_os in
10622 freebsd[23].*) objformat=aout ;;
10623 *) objformat=elf ;;
10624 esac
10625 fi
10626 version_type=freebsd-$objformat
10627 case $version_type in
10628 freebsd-elf*)
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10630 need_version=no
10631 need_lib_prefix=no
10632 ;;
10633 freebsd-*)
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10635 need_version=yes
10636 ;;
10637 esac
10638 shlibpath_var=LD_LIBRARY_PATH
10639 case $host_os in
10640 freebsd2.*)
10641 shlibpath_overrides_runpath=yes
10642 ;;
10643 freebsd3.[01]* | freebsdelf3.[01]*)
10644 shlibpath_overrides_runpath=yes
10645 hardcode_into_libs=yes
10646 ;;
10647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10649 shlibpath_overrides_runpath=no
10650 hardcode_into_libs=yes
10651 ;;
10652 *) # from 4.6 on, and DragonFly
10653 shlibpath_overrides_runpath=yes
10654 hardcode_into_libs=yes
10655 ;;
10656 esac
10657 ;;
10658
10659 gnu*)
10660 version_type=linux # correct to gnu/linux during the next big refactor
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=no
10667 hardcode_into_libs=yes
10668 ;;
10669
10670 haiku*)
10671 version_type=linux # correct to gnu/linux during the next big refactor
10672 need_lib_prefix=no
10673 need_version=no
10674 dynamic_linker="$host_os runtime_loader"
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10680 hardcode_into_libs=yes
10681 ;;
10682
10683 hpux9* | hpux10* | hpux11*)
10684 # Give a soname corresponding to the major version so that dld.sl refuses to
10685 # link against other versions.
10686 version_type=sunos
10687 need_lib_prefix=no
10688 need_version=no
10689 case $host_cpu in
10690 ia64*)
10691 shrext_cmds='.so'
10692 hardcode_into_libs=yes
10693 dynamic_linker="$host_os dld.so"
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 if test "X$HPUX_IA64_MODE" = X32; then
10699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10700 else
10701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10702 fi
10703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10704 ;;
10705 hppa*64*)
10706 shrext_cmds='.sl'
10707 hardcode_into_libs=yes
10708 dynamic_linker="$host_os dld.sl"
10709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10715 ;;
10716 *)
10717 shrext_cmds='.sl'
10718 dynamic_linker="$host_os dld.sl"
10719 shlibpath_var=SHLIB_PATH
10720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 ;;
10724 esac
10725 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10726 postinstall_cmds='chmod 555 $lib'
10727 # or fails outright, so override atomically:
10728 install_override_mode=555
10729 ;;
10730
10731 interix[3-9]*)
10732 version_type=linux # correct to gnu/linux during the next big refactor
10733 need_lib_prefix=no
10734 need_version=no
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=no
10740 hardcode_into_libs=yes
10741 ;;
10742
10743 irix5* | irix6* | nonstopux*)
10744 case $host_os in
10745 nonstopux*) version_type=nonstopux ;;
10746 *)
10747 if test "$lt_cv_prog_gnu_ld" = yes; then
10748 version_type=linux # correct to gnu/linux during the next big refactor
10749 else
10750 version_type=irix
10751 fi ;;
10752 esac
10753 need_lib_prefix=no
10754 need_version=no
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10757 case $host_os in
10758 irix5* | nonstopux*)
10759 libsuff= shlibsuff=
10760 ;;
10761 *)
10762 case $LD in # libtool.m4 will add one of these switches to LD
10763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10764 libsuff= shlibsuff= libmagic=32-bit;;
10765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10766 libsuff=32 shlibsuff=N32 libmagic=N32;;
10767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10769 *) libsuff= shlibsuff= libmagic=never-match;;
10770 esac
10771 ;;
10772 esac
10773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10774 shlibpath_overrides_runpath=no
10775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10777 hardcode_into_libs=yes
10778 ;;
10779
10780 # No shared lib support for Linux oldld, aout, or coff.
10781 linux*oldld* | linux*aout* | linux*coff*)
10782 dynamic_linker=no
10783 ;;
10784
10785 # This must be glibc/ELF.
10786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=no
10795
10796 # Some binutils ld are patched to set DT_RUNPATH
10797 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 lt_cv_shlibpath_overrides_runpath=no
10801 save_LDFLAGS=$LDFLAGS
10802 save_libdir=$libdir
10803 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10804 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807
10808 int
10809 main ()
10810 {
10811
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10818 lt_cv_shlibpath_overrides_runpath=yes
10819 fi
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823 LDFLAGS=$save_LDFLAGS
10824 libdir=$save_libdir
10825
10826 fi
10827
10828 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10829
10830 # This implies no fast_install, which is unacceptable.
10831 # Some rework will be needed to allow for fast_install
10832 # before this can be enabled.
10833 hardcode_into_libs=yes
10834
10835 # Add ABI-specific directories to the system library path.
10836 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10837
10838 # Append ld.so.conf contents to the search path
10839 if test -f /etc/ld.so.conf; then
10840 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' ' '`
10841 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10842
10843 fi
10844
10845 # We used to test for /lib/ld.so.1 and disable shared libraries on
10846 # powerpc, because MkLinux only supported shared libraries with the
10847 # GNU dynamic linker. Since this was broken with cross compilers,
10848 # most powerpc-linux boxes support dynamic linking these days and
10849 # people can always --disable-shared, the test was removed, and we
10850 # assume the GNU/Linux dynamic linker is in use.
10851 dynamic_linker='GNU/Linux ld.so'
10852 ;;
10853
10854 netbsd*)
10855 version_type=sunos
10856 need_lib_prefix=no
10857 need_version=no
10858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10861 dynamic_linker='NetBSD (a.out) ld.so'
10862 else
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 dynamic_linker='NetBSD ld.elf_so'
10866 fi
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes
10869 hardcode_into_libs=yes
10870 ;;
10871
10872 newsos6)
10873 version_type=linux # correct to gnu/linux during the next big refactor
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes
10877 ;;
10878
10879 *nto* | *qnx*)
10880 version_type=qnx
10881 need_lib_prefix=no
10882 need_version=no
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10888 dynamic_linker='ldqnx.so'
10889 ;;
10890
10891 openbsd*)
10892 version_type=sunos
10893 sys_lib_dlsearch_path_spec="/usr/lib"
10894 need_lib_prefix=no
10895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10896 case $host_os in
10897 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10898 *) need_version=no ;;
10899 esac
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10904 case $host_os in
10905 openbsd2.[89] | openbsd2.[89].*)
10906 shlibpath_overrides_runpath=no
10907 ;;
10908 *)
10909 shlibpath_overrides_runpath=yes
10910 ;;
10911 esac
10912 else
10913 shlibpath_overrides_runpath=yes
10914 fi
10915 ;;
10916
10917 os2*)
10918 libname_spec='$name'
10919 shrext_cmds=".dll"
10920 need_lib_prefix=no
10921 library_names_spec='$libname${shared_ext} $libname.a'
10922 dynamic_linker='OS/2 ld.exe'
10923 shlibpath_var=LIBPATH
10924 ;;
10925
10926 osf3* | osf4* | osf5*)
10927 version_type=osf
10928 need_lib_prefix=no
10929 need_version=no
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 shlibpath_var=LD_LIBRARY_PATH
10933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10935 ;;
10936
10937 rdos*)
10938 dynamic_linker=no
10939 ;;
10940
10941 solaris*)
10942 version_type=linux # correct to gnu/linux during the next big refactor
10943 need_lib_prefix=no
10944 need_version=no
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10950 # ldd complains unless libraries are executable
10951 postinstall_cmds='chmod +x $lib'
10952 ;;
10953
10954 sunos4*)
10955 version_type=sunos
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 if test "$with_gnu_ld" = yes; then
10961 need_lib_prefix=no
10962 fi
10963 need_version=yes
10964 ;;
10965
10966 sysv4 | sysv4.3*)
10967 version_type=linux # correct to gnu/linux during the next big refactor
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 case $host_vendor in
10972 sni)
10973 shlibpath_overrides_runpath=no
10974 need_lib_prefix=no
10975 runpath_var=LD_RUN_PATH
10976 ;;
10977 siemens)
10978 need_lib_prefix=no
10979 ;;
10980 motorola)
10981 need_lib_prefix=no
10982 need_version=no
10983 shlibpath_overrides_runpath=no
10984 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10985 ;;
10986 esac
10987 ;;
10988
10989 sysv4*MP*)
10990 if test -d /usr/nec ;then
10991 version_type=linux # correct to gnu/linux during the next big refactor
10992 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10993 soname_spec='$libname${shared_ext}.$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 fi
10996 ;;
10997
10998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10999 version_type=freebsd-elf
11000 need_lib_prefix=no
11001 need_version=no
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 hardcode_into_libs=yes
11007 if test "$with_gnu_ld" = yes; then
11008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11009 else
11010 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11011 case $host_os in
11012 sco3.2v5*)
11013 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11014 ;;
11015 esac
11016 fi
11017 sys_lib_dlsearch_path_spec='/usr/lib'
11018 ;;
11019
11020 tpf*)
11021 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11022 version_type=linux # correct to gnu/linux during the next big refactor
11023 need_lib_prefix=no
11024 need_version=no
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=no
11028 hardcode_into_libs=yes
11029 ;;
11030
11031 uts4*)
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 ;;
11037
11038 *)
11039 dynamic_linker=no
11040 ;;
11041 esac
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11043 $as_echo "$dynamic_linker" >&6; }
11044 test "$dynamic_linker" = no && can_build_shared=no
11045
11046 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11047 if test "$GCC" = yes; then
11048 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11049 fi
11050
11051 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11052 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11053 fi
11054 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11055 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11056 fi
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11150 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11151 hardcode_action=
11152 if test -n "$hardcode_libdir_flag_spec" ||
11153 test -n "$runpath_var" ||
11154 test "X$hardcode_automatic" = "Xyes" ; then
11155
11156 # We can hardcode non-existent directories.
11157 if test "$hardcode_direct" != no &&
11158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11159 # have to relink, otherwise we might link with an installed library
11160 # when we should be linking with a yet-to-be-installed one
11161 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11162 test "$hardcode_minus_L" != no; then
11163 # Linking always hardcodes the temporary library directory.
11164 hardcode_action=relink
11165 else
11166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11167 hardcode_action=immediate
11168 fi
11169 else
11170 # We cannot hardcode anything, or else we can only hardcode existing
11171 # directories.
11172 hardcode_action=unsupported
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11175 $as_echo "$hardcode_action" >&6; }
11176
11177 if test "$hardcode_action" = relink ||
11178 test "$inherit_rpath" = yes; then
11179 # Fast installation is not supported
11180 enable_fast_install=no
11181 elif test "$shlibpath_overrides_runpath" = yes ||
11182 test "$enable_shared" = no; then
11183 # Fast installation is not necessary
11184 enable_fast_install=needless
11185 fi
11186
11187
11188
11189
11190
11191
11192 if test "x$enable_dlopen" != xyes; then
11193 enable_dlopen=unknown
11194 enable_dlopen_self=unknown
11195 enable_dlopen_self_static=unknown
11196 else
11197 lt_cv_dlopen=no
11198 lt_cv_dlopen_libs=
11199
11200 case $host_os in
11201 beos*)
11202 lt_cv_dlopen="load_add_on"
11203 lt_cv_dlopen_libs=
11204 lt_cv_dlopen_self=yes
11205 ;;
11206
11207 mingw* | pw32* | cegcc*)
11208 lt_cv_dlopen="LoadLibrary"
11209 lt_cv_dlopen_libs=
11210 ;;
11211
11212 cygwin*)
11213 lt_cv_dlopen="dlopen"
11214 lt_cv_dlopen_libs=
11215 ;;
11216
11217 darwin*)
11218 # if libdl is installed we need to link against it
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11221 if ${ac_cv_lib_dl_dlopen+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-ldl $LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 char dlopen ();
11236 int
11237 main ()
11238 {
11239 return dlopen ();
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 ac_cv_lib_dl_dlopen=yes
11246 else
11247 ac_cv_lib_dl_dlopen=no
11248 fi
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11255 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11257 else
11258
11259 lt_cv_dlopen="dyld"
11260 lt_cv_dlopen_libs=
11261 lt_cv_dlopen_self=yes
11262
11263 fi
11264
11265 ;;
11266
11267 *)
11268 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11269 if test "x$ac_cv_func_shl_load" = xyes; then :
11270 lt_cv_dlopen="shl_load"
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11273 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11274 if ${ac_cv_lib_dld_shl_load+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 ac_check_lib_save_LIBS=$LIBS
11278 LIBS="-ldld $LIBS"
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char shl_load ();
11289 int
11290 main ()
11291 {
11292 return shl_load ();
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 ac_cv_lib_dld_shl_load=yes
11299 else
11300 ac_cv_lib_dld_shl_load=no
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_lib_save_LIBS
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11307 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11308 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11309 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11310 else
11311 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11312 if test "x$ac_cv_func_dlopen" = xyes; then :
11313 lt_cv_dlopen="dlopen"
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11317 if ${ac_cv_lib_dl_dlopen+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldl $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dlopen ();
11332 int
11333 main ()
11334 {
11335 return dlopen ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dl_dlopen=yes
11342 else
11343 ac_cv_lib_dl_dlopen=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11351 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11355 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11356 if ${ac_cv_lib_svld_dlopen+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 ac_check_lib_save_LIBS=$LIBS
11360 LIBS="-lsvld $LIBS"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363
11364 /* Override any GCC internal prototype to avoid an error.
11365 Use char because int might match the return type of a GCC
11366 builtin and then its argument prototype would still apply. */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 char dlopen ();
11371 int
11372 main ()
11373 {
11374 return dlopen ();
11375 ;
11376 return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_c_try_link "$LINENO"; then :
11380 ac_cv_lib_svld_dlopen=yes
11381 else
11382 ac_cv_lib_svld_dlopen=no
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11389 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11390 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11394 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11395 if ${ac_cv_lib_dld_dld_link+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-ldld $LIBS"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char dld_link ();
11410 int
11411 main ()
11412 {
11413 return dld_link ();
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_dld_dld_link=yes
11420 else
11421 ac_cv_lib_dld_dld_link=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11428 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11429 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11431 fi
11432
11433
11434 fi
11435
11436
11437 fi
11438
11439
11440 fi
11441
11442
11443 fi
11444
11445
11446 fi
11447
11448 ;;
11449 esac
11450
11451 if test "x$lt_cv_dlopen" != xno; then
11452 enable_dlopen=yes
11453 else
11454 enable_dlopen=no
11455 fi
11456
11457 case $lt_cv_dlopen in
11458 dlopen)
11459 save_CPPFLAGS="$CPPFLAGS"
11460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11461
11462 save_LDFLAGS="$LDFLAGS"
11463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11464
11465 save_LIBS="$LIBS"
11466 LIBS="$lt_cv_dlopen_libs $LIBS"
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11469 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11470 if ${lt_cv_dlopen_self+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 if test "$cross_compiling" = yes; then :
11474 lt_cv_dlopen_self=cross
11475 else
11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477 lt_status=$lt_dlunknown
11478 cat > conftest.$ac_ext <<_LT_EOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11481
11482 #if HAVE_DLFCN_H
11483 #include <dlfcn.h>
11484 #endif
11485
11486 #include <stdio.h>
11487
11488 #ifdef RTLD_GLOBAL
11489 # define LT_DLGLOBAL RTLD_GLOBAL
11490 #else
11491 # ifdef DL_GLOBAL
11492 # define LT_DLGLOBAL DL_GLOBAL
11493 # else
11494 # define LT_DLGLOBAL 0
11495 # endif
11496 #endif
11497
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499 find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11501 # ifdef RTLD_LAZY
11502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11503 # else
11504 # ifdef DL_LAZY
11505 # define LT_DLLAZY_OR_NOW DL_LAZY
11506 # else
11507 # ifdef RTLD_NOW
11508 # define LT_DLLAZY_OR_NOW RTLD_NOW
11509 # else
11510 # ifdef DL_NOW
11511 # define LT_DLLAZY_OR_NOW DL_NOW
11512 # else
11513 # define LT_DLLAZY_OR_NOW 0
11514 # endif
11515 # endif
11516 # endif
11517 # endif
11518 #endif
11519
11520 /* When -fvisbility=hidden is used, assume the code has been annotated
11521 correspondingly for the symbols needed. */
11522 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523 int fnord () __attribute__((visibility("default")));
11524 #endif
11525
11526 int fnord () { return 42; }
11527 int main ()
11528 {
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11531
11532 if (self)
11533 {
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11535 else
11536 {
11537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11538 else puts (dlerror ());
11539 }
11540 /* dlclose (self); */
11541 }
11542 else
11543 puts (dlerror ());
11544
11545 return status;
11546 }
11547 _LT_EOF
11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11549 (eval $ac_link) 2>&5
11550 ac_status=$?
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11553 (./conftest; exit; ) >&5 2>/dev/null
11554 lt_status=$?
11555 case x$lt_status in
11556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11558 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11559 esac
11560 else :
11561 # compilation failed
11562 lt_cv_dlopen_self=no
11563 fi
11564 fi
11565 rm -fr conftest*
11566
11567
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11570 $as_echo "$lt_cv_dlopen_self" >&6; }
11571
11572 if test "x$lt_cv_dlopen_self" = xyes; then
11573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11575 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11576 if ${lt_cv_dlopen_self_static+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 if test "$cross_compiling" = yes; then :
11580 lt_cv_dlopen_self_static=cross
11581 else
11582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11583 lt_status=$lt_dlunknown
11584 cat > conftest.$ac_ext <<_LT_EOF
11585 #line $LINENO "configure"
11586 #include "confdefs.h"
11587
11588 #if HAVE_DLFCN_H
11589 #include <dlfcn.h>
11590 #endif
11591
11592 #include <stdio.h>
11593
11594 #ifdef RTLD_GLOBAL
11595 # define LT_DLGLOBAL RTLD_GLOBAL
11596 #else
11597 # ifdef DL_GLOBAL
11598 # define LT_DLGLOBAL DL_GLOBAL
11599 # else
11600 # define LT_DLGLOBAL 0
11601 # endif
11602 #endif
11603
11604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605 find out it does not work in some platform. */
11606 #ifndef LT_DLLAZY_OR_NOW
11607 # ifdef RTLD_LAZY
11608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11609 # else
11610 # ifdef DL_LAZY
11611 # define LT_DLLAZY_OR_NOW DL_LAZY
11612 # else
11613 # ifdef RTLD_NOW
11614 # define LT_DLLAZY_OR_NOW RTLD_NOW
11615 # else
11616 # ifdef DL_NOW
11617 # define LT_DLLAZY_OR_NOW DL_NOW
11618 # else
11619 # define LT_DLLAZY_OR_NOW 0
11620 # endif
11621 # endif
11622 # endif
11623 # endif
11624 #endif
11625
11626 /* When -fvisbility=hidden is used, assume the code has been annotated
11627 correspondingly for the symbols needed. */
11628 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11629 int fnord () __attribute__((visibility("default")));
11630 #endif
11631
11632 int fnord () { return 42; }
11633 int main ()
11634 {
11635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11636 int status = $lt_dlunknown;
11637
11638 if (self)
11639 {
11640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11641 else
11642 {
11643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644 else puts (dlerror ());
11645 }
11646 /* dlclose (self); */
11647 }
11648 else
11649 puts (dlerror ());
11650
11651 return status;
11652 }
11653 _LT_EOF
11654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11659 (./conftest; exit; ) >&5 2>/dev/null
11660 lt_status=$?
11661 case x$lt_status in
11662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11664 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11665 esac
11666 else :
11667 # compilation failed
11668 lt_cv_dlopen_self_static=no
11669 fi
11670 fi
11671 rm -fr conftest*
11672
11673
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11677 fi
11678
11679 CPPFLAGS="$save_CPPFLAGS"
11680 LDFLAGS="$save_LDFLAGS"
11681 LIBS="$save_LIBS"
11682 ;;
11683 esac
11684
11685 case $lt_cv_dlopen_self in
11686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11687 *) enable_dlopen_self=unknown ;;
11688 esac
11689
11690 case $lt_cv_dlopen_self_static in
11691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11692 *) enable_dlopen_self_static=unknown ;;
11693 esac
11694 fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712 striplib=
11713 old_striplib=
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11721 else
11722 # FIXME - insert some real tests, host_os isn't really good enough
11723 case $host_os in
11724 darwin*)
11725 if test -n "$STRIP" ; then
11726 striplib="$STRIP -x"
11727 old_striplib="$STRIP -S"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734 ;;
11735 *)
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 ;;
11739 esac
11740 fi
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 # Report which library types will actually be built
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11757 $as_echo "$can_build_shared" >&6; }
11758
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11760 $as_echo_n "checking whether to build shared libraries... " >&6; }
11761 test "$can_build_shared" = "no" && enable_shared=no
11762
11763 # On AIX, shared libraries and static libraries use the same namespace, and
11764 # are all built from PIC.
11765 case $host_os in
11766 aix3*)
11767 test "$enable_shared" = yes && enable_static=no
11768 if test -n "$RANLIB"; then
11769 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11770 postinstall_cmds='$RANLIB $lib'
11771 fi
11772 ;;
11773
11774 aix[4-9]*)
11775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11776 test "$enable_shared" = yes && enable_static=no
11777 fi
11778 ;;
11779 esac
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11781 $as_echo "$enable_shared" >&6; }
11782
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11784 $as_echo_n "checking whether to build static libraries... " >&6; }
11785 # Make sure either enable_shared or enable_static is yes.
11786 test "$enable_shared" = yes || enable_static=yes
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11788 $as_echo "$enable_static" >&6; }
11789
11790
11791
11792
11793 fi
11794 ac_ext=c
11795 ac_cpp='$CPP $CPPFLAGS'
11796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799
11800 CC="$lt_save_CC"
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 ac_config_commands="$ac_config_commands libtool"
11817
11818
11819
11820
11821 # Only expand once:
11822
11823
11824
11825
11826
11827
11828
11829
11830 for ac_prog in $host_alias-pkg-config pkg-config
11831 do
11832 # Extract the first word of "$ac_prog", so it can be a program name with args.
11833 set dummy $ac_prog; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_path_PACKAGE_CONFIG+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 case $PACKAGE_CONFIG in
11840 [\\/]* | ?:[\\/]*)
11841 ac_cv_path_PACKAGE_CONFIG="$PACKAGE_CONFIG" # Let the user override the test with a path.
11842 ;;
11843 *)
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_path_PACKAGE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11854 fi
11855 done
11856 done
11857 IFS=$as_save_IFS
11858
11859 ;;
11860 esac
11861 fi
11862 PACKAGE_CONFIG=$ac_cv_path_PACKAGE_CONFIG
11863 if test -n "$PACKAGE_CONFIG"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_CONFIG" >&5
11865 $as_echo "$PACKAGE_CONFIG" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870
11871
11872 test -n "$PACKAGE_CONFIG" && break
11873 done
11874 test -n "$PACKAGE_CONFIG" || PACKAGE_CONFIG="none"
11875
11876 if test "x$PACKAGE_CONFIG" = "xnone"; then
11877 as_fn_error $? "*** pkg-config, needed to check for libpng and libxml2 existence has not been found." "$LINENO" 5
11878 fi
11879
11880 SDL_VERSION=1.2.12
11881
11882 ac_ext=c
11883 ac_cpp='$CPP $CPPFLAGS'
11884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11887
11888
11889
11890 # Check whether --with-sdl-prefix was given.
11891 if test "${with_sdl_prefix+set}" = set; then :
11892 withval=$with_sdl_prefix; sdl_prefix="$withval"
11893 else
11894 sdl_prefix=""
11895 fi
11896
11897
11898 # Check whether --with-sdl-exec-prefix was given.
11899 if test "${with_sdl_exec_prefix+set}" = set; then :
11900 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11901 else
11902 sdl_exec_prefix=""
11903 fi
11904
11905 # Check whether --enable-sdltest was given.
11906 if test "${enable_sdltest+set}" = set; then :
11907 enableval=$enable_sdltest;
11908 else
11909 enable_sdltest=yes
11910 fi
11911
11912
11913 if test x$sdl_exec_prefix != x ; then
11914 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11915 if test x${SDL_CONFIG+set} != xset ; then
11916 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11917 fi
11918 fi
11919 if test x$sdl_prefix != x ; then
11920 sdl_args="$sdl_args --prefix=$sdl_prefix"
11921 if test x${SDL_CONFIG+set} != xset ; then
11922 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11923 fi
11924 fi
11925
11926
11927 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11928 # Extract the first word of "sdl-config", so it can be a program name with args.
11929 set dummy sdl-config; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 case $SDL_CONFIG in
11936 [\\/]* | ?:[\\/]*)
11937 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11938 ;;
11939 *)
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 break 2
11950 fi
11951 done
11952 done
11953 IFS=$as_save_IFS
11954
11955 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11956 ;;
11957 esac
11958 fi
11959 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11960 if test -n "$SDL_CONFIG"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11962 $as_echo "$SDL_CONFIG" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968
11969 min_sdl_version=$SDL_VERSION
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11971 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11972 no_sdl=""
11973 if test "$SDL_CONFIG" = "no" ; then
11974 no_sdl=yes
11975 else
11976 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11977 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11978
11979 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11981 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11983 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11985 if test "x$enable_sdltest" = "xyes" ; then
11986 ac_save_CFLAGS="$CFLAGS"
11987 ac_save_LIBS="$LIBS"
11988 CFLAGS="$CFLAGS $SDL_CFLAGS"
11989 LIBS="$LIBS $SDL_LIBS"
11990 rm -f conf.sdltest
11991 if test "$cross_compiling" = yes; then :
11992 echo $ac_n "cross compiling; assumed OK... $ac_c"
11993 else
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996
11997 #include <stdio.h>
11998 #include <stdlib.h>
11999 #include <string.h>
12000 #include "SDL.h"
12001
12002 char*
12003 my_strdup (char *str)
12004 {
12005 char *new_str;
12006
12007 if (str)
12008 {
12009 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12010 strcpy (new_str, str);
12011 }
12012 else
12013 new_str = NULL;
12014
12015 return new_str;
12016 }
12017
12018 int main (int argc, char *argv[])
12019 {
12020 int major, minor, micro;
12021 char *tmp_version;
12022
12023 /* This hangs on some systems (?)
12024 system ("touch conf.sdltest");
12025 */
12026 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12027
12028 /* HP/UX 9 (%@#!) writes to sscanf strings */
12029 tmp_version = my_strdup("$min_sdl_version");
12030 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12031 printf("%s, bad version string\n", "$min_sdl_version");
12032 exit(1);
12033 }
12034
12035 if (($sdl_major_version > major) ||
12036 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12037 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12038 {
12039 return 0;
12040 }
12041 else
12042 {
12043 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12044 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12045 printf("*** best to upgrade to the required version.\n");
12046 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12047 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12048 printf("*** config.cache before re-running configure\n");
12049 return 1;
12050 }
12051 }
12052
12053
12054 _ACEOF
12055 if ac_fn_c_try_run "$LINENO"; then :
12056
12057 else
12058 no_sdl=yes
12059 fi
12060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12061 conftest.$ac_objext conftest.beam conftest.$ac_ext
12062 fi
12063
12064 CFLAGS="$ac_save_CFLAGS"
12065 LIBS="$ac_save_LIBS"
12066 fi
12067 fi
12068 if test "x$no_sdl" = x ; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 :
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 if test "$SDL_CONFIG" = "no" ; then
12076 echo "*** The sdl-config script installed by SDL could not be found"
12077 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12078 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12079 echo "*** full path to sdl-config."
12080 else
12081 if test -f conf.sdltest ; then
12082 :
12083 else
12084 echo "*** Could not run SDL test program, checking why..."
12085 CFLAGS="$CFLAGS $SDL_CFLAGS"
12086 LIBS="$LIBS $SDL_LIBS"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089
12090 #include <stdio.h>
12091 #include "SDL.h"
12092
12093 int main(int argc, char *argv[])
12094 { return 0; }
12095 #undef main
12096 #define main K_and_R_C_main
12097
12098 int
12099 main ()
12100 {
12101 return 0;
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 echo "*** The test program compiled, but did not run. This usually means"
12108 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12109 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12110 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12111 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12112 echo "*** is required on your system"
12113 echo "***"
12114 echo "*** If you have an old version installed, it is best to remove it, although"
12115 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12116 else
12117 echo "*** The test program failed to compile or link. See the file config.log for the"
12118 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12119 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12120 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 CFLAGS="$ac_save_CFLAGS"
12125 LIBS="$ac_save_LIBS"
12126 fi
12127 fi
12128 SDL_CFLAGS=""
12129 SDL_LIBS=""
12130 as_fn_error $? "SDL version $SDL_VERSION not found" "$LINENO" 5
12131 fi
12132
12133
12134 rm -f conf.sdltest
12135
12136
12137
12138
12139 ac_ext=cpp
12140 ac_cpp='$CXXCPP $CPPFLAGS'
12141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12144 if test -z "$CXX"; then
12145 if test -n "$CCC"; then
12146 CXX=$CCC
12147 else
12148 if test -n "$ac_tool_prefix"; then
12149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12150 do
12151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_CXX+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$CXX"; then
12159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12171 fi
12172 done
12173 done
12174 IFS=$as_save_IFS
12175
12176 fi
12177 fi
12178 CXX=$ac_cv_prog_CXX
12179 if test -n "$CXX"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12181 $as_echo "$CXX" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186
12187
12188 test -n "$CXX" && break
12189 done
12190 fi
12191 if test -z "$CXX"; then
12192 ac_ct_CXX=$CXX
12193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12194 do
12195 # Extract the first word of "$ac_prog", so it can be a program name with args.
12196 set dummy $ac_prog; ac_word=$2
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198 $as_echo_n "checking for $ac_word... " >&6; }
12199 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 if test -n "$ac_ct_CXX"; then
12203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12204 else
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12207 do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212 ac_cv_prog_ac_ct_CXX="$ac_prog"
12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216 done
12217 done
12218 IFS=$as_save_IFS
12219
12220 fi
12221 fi
12222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12223 if test -n "$ac_ct_CXX"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12225 $as_echo "$ac_ct_CXX" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230
12231
12232 test -n "$ac_ct_CXX" && break
12233 done
12234
12235 if test "x$ac_ct_CXX" = x; then
12236 CXX="g++"
12237 else
12238 case $cross_compiling:$ac_tool_warned in
12239 yes:)
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12242 ac_tool_warned=yes ;;
12243 esac
12244 CXX=$ac_ct_CXX
12245 fi
12246 fi
12247
12248 fi
12249 fi
12250 # Provide some information about the compiler.
12251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12252 set X $ac_compile
12253 ac_compiler=$2
12254 for ac_option in --version -v -V -qversion; do
12255 { { ac_try="$ac_compiler $ac_option >&5"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12261 $as_echo "$ac_try_echo"; } >&5
12262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12263 ac_status=$?
12264 if test -s conftest.err; then
12265 sed '10a\
12266 ... rest of stderr output deleted ...
12267 10q' conftest.err >conftest.er1
12268 cat conftest.er1 >&5
12269 fi
12270 rm -f conftest.er1 conftest.err
12271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272 test $ac_status = 0; }
12273 done
12274
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12277 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 int
12284 main ()
12285 {
12286 #ifndef __GNUC__
12287 choke me
12288 #endif
12289
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_cxx_try_compile "$LINENO"; then :
12295 ac_compiler_gnu=yes
12296 else
12297 ac_compiler_gnu=no
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12301
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12305 if test $ac_compiler_gnu = yes; then
12306 GXX=yes
12307 else
12308 GXX=
12309 fi
12310 ac_test_CXXFLAGS=${CXXFLAGS+set}
12311 ac_save_CXXFLAGS=$CXXFLAGS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12314 if ${ac_cv_prog_cxx_g+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12318 ac_cxx_werror_flag=yes
12319 ac_cv_prog_cxx_g=no
12320 CXXFLAGS="-g"
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12323
12324 int
12325 main ()
12326 {
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_cxx_try_compile "$LINENO"; then :
12333 ac_cv_prog_cxx_g=yes
12334 else
12335 CXXFLAGS=""
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338
12339 int
12340 main ()
12341 {
12342
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_cxx_try_compile "$LINENO"; then :
12348
12349 else
12350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12351 CXXFLAGS="-g"
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354
12355 int
12356 main ()
12357 {
12358
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_cxx_try_compile "$LINENO"; then :
12364 ac_cv_prog_cxx_g=yes
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12374 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12375 if test "$ac_test_CXXFLAGS" = set; then
12376 CXXFLAGS=$ac_save_CXXFLAGS
12377 elif test $ac_cv_prog_cxx_g = yes; then
12378 if test "$GXX" = yes; then
12379 CXXFLAGS="-g -O2"
12380 else
12381 CXXFLAGS="-g"
12382 fi
12383 else
12384 if test "$GXX" = yes; then
12385 CXXFLAGS="-O2"
12386 else
12387 CXXFLAGS=
12388 fi
12389 fi
12390 ac_ext=c
12391 ac_cpp='$CPP $CPPFLAGS'
12392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395
12396 depcc="$CXX" am_compiler_list=
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12399 $as_echo_n "checking dependency style of $depcc... " >&6; }
12400 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12404 # We make a subdir and do the tests there. Otherwise we can end up
12405 # making bogus files that we don't know about and never remove. For
12406 # instance it was reported that on HP-UX the gcc test will end up
12407 # making a dummy file named 'D' -- because '-MD' means "put the output
12408 # in D".
12409 rm -rf conftest.dir
12410 mkdir conftest.dir
12411 # Copy depcomp to subdir because otherwise we won't find it if we're
12412 # using a relative directory.
12413 cp "$am_depcomp" conftest.dir
12414 cd conftest.dir
12415 # We will build objects and dependencies in a subdirectory because
12416 # it helps to detect inapplicable dependency modes. For instance
12417 # both Tru64's cc and ICC support -MD to output dependencies as a
12418 # side effect of compilation, but ICC will put the dependencies in
12419 # the current directory while Tru64 will put them in the object
12420 # directory.
12421 mkdir sub
12422
12423 am_cv_CXX_dependencies_compiler_type=none
12424 if test "$am_compiler_list" = ""; then
12425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12426 fi
12427 am__universal=false
12428 case " $depcc " in #(
12429 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12430 esac
12431
12432 for depmode in $am_compiler_list; do
12433 # Setup a source with many dependencies, because some compilers
12434 # like to wrap large dependency lists on column 80 (with \), and
12435 # we should not choose a depcomp mode which is confused by this.
12436 #
12437 # We need to recreate these files for each test, as the compiler may
12438 # overwrite some of them when testing with obscure command lines.
12439 # This happens at least with the AIX C compiler.
12440 : > sub/conftest.c
12441 for i in 1 2 3 4 5 6; do
12442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12443 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12444 # Solaris 10 /bin/sh.
12445 echo '/* dummy */' > sub/conftst$i.h
12446 done
12447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12448
12449 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12450 # mode. It turns out that the SunPro C++ compiler does not properly
12451 # handle '-M -o', and we need to detect this. Also, some Intel
12452 # versions had trouble with output in subdirs.
12453 am__obj=sub/conftest.${OBJEXT-o}
12454 am__minus_obj="-o $am__obj"
12455 case $depmode in
12456 gcc)
12457 # This depmode causes a compiler race in universal mode.
12458 test "$am__universal" = false || continue
12459 ;;
12460 nosideeffect)
12461 # After this tag, mechanisms are not by side-effect, so they'll
12462 # only be used when explicitly requested.
12463 if test "x$enable_dependency_tracking" = xyes; then
12464 continue
12465 else
12466 break
12467 fi
12468 ;;
12469 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12470 # This compiler won't grok '-c -o', but also, the minuso test has
12471 # not run yet. These depmodes are late enough in the game, and
12472 # so weak that their functioning should not be impacted.
12473 am__obj=conftest.${OBJEXT-o}
12474 am__minus_obj=
12475 ;;
12476 none) break ;;
12477 esac
12478 if depmode=$depmode \
12479 source=sub/conftest.c object=$am__obj \
12480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12481 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12482 >/dev/null 2>conftest.err &&
12483 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12484 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12485 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12486 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12487 # icc doesn't choke on unknown options, it will just issue warnings
12488 # or remarks (even with -Werror). So we grep stderr for any message
12489 # that says an option was ignored or not supported.
12490 # When given -MP, icc 7.0 and 7.1 complain thusly:
12491 # icc: Command line warning: ignoring option '-M'; no argument required
12492 # The diagnosis changed in icc 8.0:
12493 # icc: Command line remark: option '-MP' not supported
12494 if (grep 'ignoring option' conftest.err ||
12495 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12496 am_cv_CXX_dependencies_compiler_type=$depmode
12497 break
12498 fi
12499 fi
12500 done
12501
12502 cd ..
12503 rm -rf conftest.dir
12504 else
12505 am_cv_CXX_dependencies_compiler_type=none
12506 fi
12507
12508 fi
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12510 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12511 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12512
12513 if
12514 test "x$enable_dependency_tracking" != xno \
12515 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12516 am__fastdepCXX_TRUE=
12517 am__fastdepCXX_FALSE='#'
12518 else
12519 am__fastdepCXX_TRUE='#'
12520 am__fastdepCXX_FALSE=
12521 fi
12522
12523
12524
12525
12526 func_stripname_cnf ()
12527 {
12528 case ${2} in
12529 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12530 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12531 esac
12532 } # func_stripname_cnf
12533
12534 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12535 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12536 (test "X$CXX" != "Xg++"))) ; then
12537 ac_ext=cpp
12538 ac_cpp='$CXXCPP $CPPFLAGS'
12539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12543 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12544 if test -z "$CXXCPP"; then
12545 if ${ac_cv_prog_CXXCPP+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 # Double quotes because CXXCPP needs to be expanded
12549 for CXXCPP in "$CXX -E" "/lib/cpp"
12550 do
12551 ac_preproc_ok=false
12552 for ac_cxx_preproc_warn_flag in '' yes
12553 do
12554 # Use a header file that comes with gcc, so configuring glibc
12555 # with a fresh cross-compiler works.
12556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557 # <limits.h> exists even on freestanding compilers.
12558 # On the NeXT, cc -E runs the code through the compiler's parser,
12559 # not just through cpp. "Syntax error" is here to catch this case.
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 #ifdef __STDC__
12563 # include <limits.h>
12564 #else
12565 # include <assert.h>
12566 #endif
12567 Syntax error
12568 _ACEOF
12569 if ac_fn_cxx_try_cpp "$LINENO"; then :
12570
12571 else
12572 # Broken: fails on valid input.
12573 continue
12574 fi
12575 rm -f conftest.err conftest.i conftest.$ac_ext
12576
12577 # OK, works on sane cases. Now check whether nonexistent headers
12578 # can be detected and how.
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include <ac_nonexistent.h>
12582 _ACEOF
12583 if ac_fn_cxx_try_cpp "$LINENO"; then :
12584 # Broken: success on invalid input.
12585 continue
12586 else
12587 # Passes both tests.
12588 ac_preproc_ok=:
12589 break
12590 fi
12591 rm -f conftest.err conftest.i conftest.$ac_ext
12592
12593 done
12594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12595 rm -f conftest.i conftest.err conftest.$ac_ext
12596 if $ac_preproc_ok; then :
12597 break
12598 fi
12599
12600 done
12601 ac_cv_prog_CXXCPP=$CXXCPP
12602
12603 fi
12604 CXXCPP=$ac_cv_prog_CXXCPP
12605 else
12606 ac_cv_prog_CXXCPP=$CXXCPP
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12609 $as_echo "$CXXCPP" >&6; }
12610 ac_preproc_ok=false
12611 for ac_cxx_preproc_warn_flag in '' yes
12612 do
12613 # Use a header file that comes with gcc, so configuring glibc
12614 # with a fresh cross-compiler works.
12615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 # <limits.h> exists even on freestanding compilers.
12617 # On the NeXT, cc -E runs the code through the compiler's parser,
12618 # not just through cpp. "Syntax error" is here to catch this case.
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 #ifdef __STDC__
12622 # include <limits.h>
12623 #else
12624 # include <assert.h>
12625 #endif
12626 Syntax error
12627 _ACEOF
12628 if ac_fn_cxx_try_cpp "$LINENO"; then :
12629
12630 else
12631 # Broken: fails on valid input.
12632 continue
12633 fi
12634 rm -f conftest.err conftest.i conftest.$ac_ext
12635
12636 # OK, works on sane cases. Now check whether nonexistent headers
12637 # can be detected and how.
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 #include <ac_nonexistent.h>
12641 _ACEOF
12642 if ac_fn_cxx_try_cpp "$LINENO"; then :
12643 # Broken: success on invalid input.
12644 continue
12645 else
12646 # Passes both tests.
12647 ac_preproc_ok=:
12648 break
12649 fi
12650 rm -f conftest.err conftest.i conftest.$ac_ext
12651
12652 done
12653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12654 rm -f conftest.i conftest.err conftest.$ac_ext
12655 if $ac_preproc_ok; then :
12656
12657 else
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12660 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12661 See \`config.log' for more details" "$LINENO" 5; }
12662 fi
12663
12664 ac_ext=c
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12669
12670 else
12671 _lt_caught_CXX_error=yes
12672 fi
12673
12674 ac_ext=cpp
12675 ac_cpp='$CXXCPP $CPPFLAGS'
12676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679
12680 archive_cmds_need_lc_CXX=no
12681 allow_undefined_flag_CXX=
12682 always_export_symbols_CXX=no
12683 archive_expsym_cmds_CXX=
12684 compiler_needs_object_CXX=no
12685 export_dynamic_flag_spec_CXX=
12686 hardcode_direct_CXX=no
12687 hardcode_direct_absolute_CXX=no
12688 hardcode_libdir_flag_spec_CXX=
12689 hardcode_libdir_separator_CXX=
12690 hardcode_minus_L_CXX=no
12691 hardcode_shlibpath_var_CXX=unsupported
12692 hardcode_automatic_CXX=no
12693 inherit_rpath_CXX=no
12694 module_cmds_CXX=
12695 module_expsym_cmds_CXX=
12696 link_all_deplibs_CXX=unknown
12697 old_archive_cmds_CXX=$old_archive_cmds
12698 reload_flag_CXX=$reload_flag
12699 reload_cmds_CXX=$reload_cmds
12700 no_undefined_flag_CXX=
12701 whole_archive_flag_spec_CXX=
12702 enable_shared_with_static_runtimes_CXX=no
12703
12704 # Source file extension for C++ test sources.
12705 ac_ext=cpp
12706
12707 # Object file extension for compiled C++ test sources.
12708 objext=o
12709 objext_CXX=$objext
12710
12711 # No sense in running all these tests if we already determined that
12712 # the CXX compiler isn't working. Some variables (like enable_shared)
12713 # are currently assumed to apply to all compilers on this platform,
12714 # and will be corrupted by setting them based on a non-working compiler.
12715 if test "$_lt_caught_CXX_error" != yes; then
12716 # Code to be used in simple compile tests
12717 lt_simple_compile_test_code="int some_variable = 0;"
12718
12719 # Code to be used in simple link tests
12720 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12721
12722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12723
12724
12725
12726
12727
12728
12729 # If no C compiler was specified, use CC.
12730 LTCC=${LTCC-"$CC"}
12731
12732 # If no C compiler flags were specified, use CFLAGS.
12733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12734
12735 # Allow CC to be a program name with arguments.
12736 compiler=$CC
12737
12738
12739 # save warnings/boilerplate of simple test code
12740 ac_outfile=conftest.$ac_objext
12741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12743 _lt_compiler_boilerplate=`cat conftest.err`
12744 $RM conftest*
12745
12746 ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_linker_boilerplate=`cat conftest.err`
12750 $RM -r conftest*
12751
12752
12753 # Allow CC to be a program name with arguments.
12754 lt_save_CC=$CC
12755 lt_save_CFLAGS=$CFLAGS
12756 lt_save_LD=$LD
12757 lt_save_GCC=$GCC
12758 GCC=$GXX
12759 lt_save_with_gnu_ld=$with_gnu_ld
12760 lt_save_path_LD=$lt_cv_path_LD
12761 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12762 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12763 else
12764 $as_unset lt_cv_prog_gnu_ld
12765 fi
12766 if test -n "${lt_cv_path_LDCXX+set}"; then
12767 lt_cv_path_LD=$lt_cv_path_LDCXX
12768 else
12769 $as_unset lt_cv_path_LD
12770 fi
12771 test -z "${LDCXX+set}" || LD=$LDCXX
12772 CC=${CXX-"c++"}
12773 CFLAGS=$CXXFLAGS
12774 compiler=$CC
12775 compiler_CXX=$CC
12776 for cc_temp in $compiler""; do
12777 case $cc_temp in
12778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12780 \-*) ;;
12781 *) break;;
12782 esac
12783 done
12784 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12785
12786
12787 if test -n "$compiler"; then
12788 # We don't want -fno-exception when compiling C++ code, so set the
12789 # no_builtin_flag separately
12790 if test "$GXX" = yes; then
12791 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12792 else
12793 lt_prog_compiler_no_builtin_flag_CXX=
12794 fi
12795
12796 if test "$GXX" = yes; then
12797 # Set up default GNU C++ configuration
12798
12799
12800
12801 # Check whether --with-gnu-ld was given.
12802 if test "${with_gnu_ld+set}" = set; then :
12803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12804 else
12805 with_gnu_ld=no
12806 fi
12807
12808 ac_prog=ld
12809 if test "$GCC" = yes; then
12810 # Check if gcc -print-prog-name=ld gives a path.
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12812 $as_echo_n "checking for ld used by $CC... " >&6; }
12813 case $host in
12814 *-*-mingw*)
12815 # gcc leaves a trailing carriage return which upsets mingw
12816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12817 *)
12818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12819 esac
12820 case $ac_prog in
12821 # Accept absolute paths.
12822 [\\/]* | ?:[\\/]*)
12823 re_direlt='/[^/][^/]*/\.\./'
12824 # Canonicalize the pathname of ld
12825 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12826 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12827 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12828 done
12829 test -z "$LD" && LD="$ac_prog"
12830 ;;
12831 "")
12832 # If it fails, then pretend we aren't using GCC.
12833 ac_prog=ld
12834 ;;
12835 *)
12836 # If it is relative, then search for the first ld in PATH.
12837 with_gnu_ld=unknown
12838 ;;
12839 esac
12840 elif test "$with_gnu_ld" = yes; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12842 $as_echo_n "checking for GNU ld... " >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12845 $as_echo_n "checking for non-GNU ld... " >&6; }
12846 fi
12847 if ${lt_cv_path_LD+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test -z "$LD"; then
12851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12852 for ac_dir in $PATH; do
12853 IFS="$lt_save_ifs"
12854 test -z "$ac_dir" && ac_dir=.
12855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12856 lt_cv_path_LD="$ac_dir/$ac_prog"
12857 # Check to see if the program is GNU ld. I'd rather use --version,
12858 # but apparently some variants of GNU ld only accept -v.
12859 # Break only if it was the GNU/non-GNU ld that we prefer.
12860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12861 *GNU* | *'with BFD'*)
12862 test "$with_gnu_ld" != no && break
12863 ;;
12864 *)
12865 test "$with_gnu_ld" != yes && break
12866 ;;
12867 esac
12868 fi
12869 done
12870 IFS="$lt_save_ifs"
12871 else
12872 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12873 fi
12874 fi
12875
12876 LD="$lt_cv_path_LD"
12877 if test -n "$LD"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12879 $as_echo "$LD" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12886 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12887 if ${lt_cv_prog_gnu_ld+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12891 case `$LD -v 2>&1 </dev/null` in
12892 *GNU* | *'with BFD'*)
12893 lt_cv_prog_gnu_ld=yes
12894 ;;
12895 *)
12896 lt_cv_prog_gnu_ld=no
12897 ;;
12898 esac
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12901 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12902 with_gnu_ld=$lt_cv_prog_gnu_ld
12903
12904
12905
12906
12907
12908
12909
12910 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12911 # archiving commands below assume that GNU ld is being used.
12912 if test "$with_gnu_ld" = yes; then
12913 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12915
12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12918
12919 # If archive_cmds runs LD, not CC, wlarc should be empty
12920 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12921 # investigate it a little bit more. (MM)
12922 wlarc='${wl}'
12923
12924 # ancient GNU ld didn't support --whole-archive et. al.
12925 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12926 $GREP 'no-whole-archive' > /dev/null; then
12927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12928 else
12929 whole_archive_flag_spec_CXX=
12930 fi
12931 else
12932 with_gnu_ld=no
12933 wlarc=
12934
12935 # A generic and very simple default shared library creation
12936 # command for GNU C++ for the case where it uses the native
12937 # linker, instead of GNU ld. If possible, this setting should
12938 # overridden to take advantage of the native linker features on
12939 # the platform it is being used on.
12940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12941 fi
12942
12943 # Commands to make compiler produce verbose output that lists
12944 # what "hidden" libraries, object files and flags are used when
12945 # linking a shared library.
12946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12947
12948 else
12949 GXX=no
12950 with_gnu_ld=no
12951 wlarc=
12952 fi
12953
12954 # PORTME: fill in a description of your system's C++ link characteristics
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12957 ld_shlibs_CXX=yes
12958 case $host_os in
12959 aix3*)
12960 # FIXME: insert proper C++ library support
12961 ld_shlibs_CXX=no
12962 ;;
12963 aix[4-9]*)
12964 if test "$host_cpu" = ia64; then
12965 # On IA64, the linker does run time linking by default, so we don't
12966 # have to do anything special.
12967 aix_use_runtimelinking=no
12968 exp_sym_flag='-Bexport'
12969 no_entry_flag=""
12970 else
12971 aix_use_runtimelinking=no
12972
12973 # Test if we are trying to use run time linking or normal
12974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12975 # need to do runtime linking.
12976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12977 for ld_flag in $LDFLAGS; do
12978 case $ld_flag in
12979 *-brtl*)
12980 aix_use_runtimelinking=yes
12981 break
12982 ;;
12983 esac
12984 done
12985 ;;
12986 esac
12987
12988 exp_sym_flag='-bexport'
12989 no_entry_flag='-bnoentry'
12990 fi
12991
12992 # When large executables or shared objects are built, AIX ld can
12993 # have problems creating the table of contents. If linking a library
12994 # or program results in "error TOC overflow" add -mminimal-toc to
12995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12997
12998 archive_cmds_CXX=''
12999 hardcode_direct_CXX=yes
13000 hardcode_direct_absolute_CXX=yes
13001 hardcode_libdir_separator_CXX=':'
13002 link_all_deplibs_CXX=yes
13003 file_list_spec_CXX='${wl}-f,'
13004
13005 if test "$GXX" = yes; then
13006 case $host_os in aix4.[012]|aix4.[012].*)
13007 # We only want to do this on AIX 4.2 and lower, the check
13008 # below for broken collect2 doesn't work under 4.3+
13009 collect2name=`${CC} -print-prog-name=collect2`
13010 if test -f "$collect2name" &&
13011 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13012 then
13013 # We have reworked collect2
13014 :
13015 else
13016 # We have old collect2
13017 hardcode_direct_CXX=unsupported
13018 # It fails to find uninstalled libraries when the uninstalled
13019 # path is not listed in the libpath. Setting hardcode_minus_L
13020 # to unsupported forces relinking
13021 hardcode_minus_L_CXX=yes
13022 hardcode_libdir_flag_spec_CXX='-L$libdir'
13023 hardcode_libdir_separator_CXX=
13024 fi
13025 esac
13026 shared_flag='-shared'
13027 if test "$aix_use_runtimelinking" = yes; then
13028 shared_flag="$shared_flag "'${wl}-G'
13029 fi
13030 else
13031 # not using gcc
13032 if test "$host_cpu" = ia64; then
13033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13034 # chokes on -Wl,-G. The following line is correct:
13035 shared_flag='-G'
13036 else
13037 if test "$aix_use_runtimelinking" = yes; then
13038 shared_flag='${wl}-G'
13039 else
13040 shared_flag='${wl}-bM:SRE'
13041 fi
13042 fi
13043 fi
13044
13045 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13046 # It seems that -bexpall does not export symbols beginning with
13047 # underscore (_), so it is better to generate a list of symbols to
13048 # export.
13049 always_export_symbols_CXX=yes
13050 if test "$aix_use_runtimelinking" = yes; then
13051 # Warning - without using the other runtime loading flags (-brtl),
13052 # -berok will link without error, but may produce a broken library.
13053 allow_undefined_flag_CXX='-berok'
13054 # Determine the default libpath from the value encoded in an empty
13055 # executable.
13056 if test "${lt_cv_aix_libpath+set}" = set; then
13057 aix_libpath=$lt_cv_aix_libpath
13058 else
13059 if ${lt_cv_aix_libpath__CXX+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 int
13066 main ()
13067 {
13068
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_cxx_try_link "$LINENO"; then :
13074
13075 lt_aix_libpath_sed='
13076 /Import File Strings/,/^$/ {
13077 /^0/ {
13078 s/^0 *\([^ ]*\) *$/\1/
13079 p
13080 }
13081 }'
13082 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083 # Check for a 64-bit object if we didn't find anything.
13084 if test -z "$lt_cv_aix_libpath__CXX"; then
13085 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086 fi
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 if test -z "$lt_cv_aix_libpath__CXX"; then
13091 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13092 fi
13093
13094 fi
13095
13096 aix_libpath=$lt_cv_aix_libpath__CXX
13097 fi
13098
13099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13100
13101 archive_expsym_cmds_CXX='$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"
13102 else
13103 if test "$host_cpu" = ia64; then
13104 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13105 allow_undefined_flag_CXX="-z nodefs"
13106 archive_expsym_cmds_CXX="\$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"
13107 else
13108 # Determine the default libpath from the value encoded in an
13109 # empty executable.
13110 if test "${lt_cv_aix_libpath+set}" = set; then
13111 aix_libpath=$lt_cv_aix_libpath
13112 else
13113 if ${lt_cv_aix_libpath__CXX+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118
13119 int
13120 main ()
13121 {
13122
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_cxx_try_link "$LINENO"; then :
13128
13129 lt_aix_libpath_sed='
13130 /Import File Strings/,/^$/ {
13131 /^0/ {
13132 s/^0 *\([^ ]*\) *$/\1/
13133 p
13134 }
13135 }'
13136 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13137 # Check for a 64-bit object if we didn't find anything.
13138 if test -z "$lt_cv_aix_libpath__CXX"; then
13139 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13140 fi
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$lt_cv_aix_libpath__CXX"; then
13145 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13146 fi
13147
13148 fi
13149
13150 aix_libpath=$lt_cv_aix_libpath__CXX
13151 fi
13152
13153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13154 # Warning - without using the other run time loading flags,
13155 # -berok will link without error, but may produce a broken library.
13156 no_undefined_flag_CXX=' ${wl}-bernotok'
13157 allow_undefined_flag_CXX=' ${wl}-berok'
13158 if test "$with_gnu_ld" = yes; then
13159 # We only use this code for GNU lds that support --whole-archive.
13160 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13161 else
13162 # Exported symbols can be pulled into shared objects from archives
13163 whole_archive_flag_spec_CXX='$convenience'
13164 fi
13165 archive_cmds_need_lc_CXX=yes
13166 # This is similar to how AIX traditionally builds its shared
13167 # libraries.
13168 archive_expsym_cmds_CXX="\$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'
13169 fi
13170 fi
13171 ;;
13172
13173 beos*)
13174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13175 allow_undefined_flag_CXX=unsupported
13176 # Joseph Beckenbach <[email protected]> says some releases of gcc
13177 # support --undefined. This deserves some investigation. FIXME
13178 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 else
13180 ld_shlibs_CXX=no
13181 fi
13182 ;;
13183
13184 chorus*)
13185 case $cc_basename in
13186 *)
13187 # FIXME: insert proper C++ library support
13188 ld_shlibs_CXX=no
13189 ;;
13190 esac
13191 ;;
13192
13193 cygwin* | mingw* | pw32* | cegcc*)
13194 case $GXX,$cc_basename in
13195 ,cl* | no,cl*)
13196 # Native MSVC
13197 # hardcode_libdir_flag_spec is actually meaningless, as there is
13198 # no search path for DLLs.
13199 hardcode_libdir_flag_spec_CXX=' '
13200 allow_undefined_flag_CXX=unsupported
13201 always_export_symbols_CXX=yes
13202 file_list_spec_CXX='@'
13203 # Tell ltmain to make .lib files, not .a files.
13204 libext=lib
13205 # Tell ltmain to make .dll files, not .so files.
13206 shrext_cmds=".dll"
13207 # FIXME: Setting linknames here is a bad hack.
13208 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13209 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13210 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13211 else
13212 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13213 fi~
13214 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13215 linknames='
13216 # The linker will not automatically build a static lib if we build a DLL.
13217 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13218 enable_shared_with_static_runtimes_CXX=yes
13219 # Don't use ranlib
13220 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13221 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13222 lt_tool_outputfile="@TOOL_OUTPUT@"~
13223 case $lt_outputfile in
13224 *.exe|*.EXE) ;;
13225 *)
13226 lt_outputfile="$lt_outputfile.exe"
13227 lt_tool_outputfile="$lt_tool_outputfile.exe"
13228 ;;
13229 esac~
13230 func_to_tool_file "$lt_outputfile"~
13231 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13232 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13233 $RM "$lt_outputfile.manifest";
13234 fi'
13235 ;;
13236 *)
13237 # g++
13238 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13239 # as there is no search path for DLLs.
13240 hardcode_libdir_flag_spec_CXX='-L$libdir'
13241 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13242 allow_undefined_flag_CXX=unsupported
13243 always_export_symbols_CXX=no
13244 enable_shared_with_static_runtimes_CXX=yes
13245
13246 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13247 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13248 # If the export-symbols file already is a .def file (1st line
13249 # is EXPORTS), use it as is; otherwise, prepend...
13250 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13251 cp $export_symbols $output_objdir/$soname.def;
13252 else
13253 echo EXPORTS > $output_objdir/$soname.def;
13254 cat $export_symbols >> $output_objdir/$soname.def;
13255 fi~
13256 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13257 else
13258 ld_shlibs_CXX=no
13259 fi
13260 ;;
13261 esac
13262 ;;
13263 darwin* | rhapsody*)
13264
13265
13266 archive_cmds_need_lc_CXX=no
13267 hardcode_direct_CXX=no
13268 hardcode_automatic_CXX=yes
13269 hardcode_shlibpath_var_CXX=unsupported
13270 if test "$lt_cv_ld_force_load" = "yes"; then
13271 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13272
13273 else
13274 whole_archive_flag_spec_CXX=''
13275 fi
13276 link_all_deplibs_CXX=yes
13277 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13278 case $cc_basename in
13279 ifort*) _lt_dar_can_shared=yes ;;
13280 *) _lt_dar_can_shared=$GCC ;;
13281 esac
13282 if test "$_lt_dar_can_shared" = "yes"; then
13283 output_verbose_link_cmd=func_echo_all
13284 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13285 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13286 archive_expsym_cmds_CXX="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}"
13287 module_expsym_cmds_CXX="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}"
13288 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13289 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13290 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13291 fi
13292
13293 else
13294 ld_shlibs_CXX=no
13295 fi
13296
13297 ;;
13298
13299 dgux*)
13300 case $cc_basename in
13301 ec++*)
13302 # FIXME: insert proper C++ library support
13303 ld_shlibs_CXX=no
13304 ;;
13305 ghcx*)
13306 # Green Hills C++ Compiler
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13309 ;;
13310 *)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13313 ;;
13314 esac
13315 ;;
13316
13317 freebsd2.*)
13318 # C++ shared libraries reported to be fairly broken before
13319 # switch to ELF
13320 ld_shlibs_CXX=no
13321 ;;
13322
13323 freebsd-elf*)
13324 archive_cmds_need_lc_CXX=no
13325 ;;
13326
13327 freebsd* | dragonfly*)
13328 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13329 # conventions
13330 ld_shlibs_CXX=yes
13331 ;;
13332
13333 gnu*)
13334 ;;
13335
13336 haiku*)
13337 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13338 link_all_deplibs_CXX=yes
13339 ;;
13340
13341 hpux9*)
13342 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13343 hardcode_libdir_separator_CXX=:
13344 export_dynamic_flag_spec_CXX='${wl}-E'
13345 hardcode_direct_CXX=yes
13346 hardcode_minus_L_CXX=yes # Not in the search PATH,
13347 # but as the default
13348 # location of the library.
13349
13350 case $cc_basename in
13351 CC*)
13352 # FIXME: insert proper C++ library support
13353 ld_shlibs_CXX=no
13354 ;;
13355 aCC*)
13356 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13357 # Commands to make compiler produce verbose output that lists
13358 # what "hidden" libraries, object files and flags are used when
13359 # linking a shared library.
13360 #
13361 # There doesn't appear to be a way to prevent this compiler from
13362 # explicitly linking system object files so we need to strip them
13363 # from the output so that they don't get included in the library
13364 # dependencies.
13365 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13366 ;;
13367 *)
13368 if test "$GXX" = yes; then
13369 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13370 else
13371 # FIXME: insert proper C++ library support
13372 ld_shlibs_CXX=no
13373 fi
13374 ;;
13375 esac
13376 ;;
13377
13378 hpux10*|hpux11*)
13379 if test $with_gnu_ld = no; then
13380 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13381 hardcode_libdir_separator_CXX=:
13382
13383 case $host_cpu in
13384 hppa*64*|ia64*)
13385 ;;
13386 *)
13387 export_dynamic_flag_spec_CXX='${wl}-E'
13388 ;;
13389 esac
13390 fi
13391 case $host_cpu in
13392 hppa*64*|ia64*)
13393 hardcode_direct_CXX=no
13394 hardcode_shlibpath_var_CXX=no
13395 ;;
13396 *)
13397 hardcode_direct_CXX=yes
13398 hardcode_direct_absolute_CXX=yes
13399 hardcode_minus_L_CXX=yes # Not in the search PATH,
13400 # but as the default
13401 # location of the library.
13402 ;;
13403 esac
13404
13405 case $cc_basename in
13406 CC*)
13407 # FIXME: insert proper C++ library support
13408 ld_shlibs_CXX=no
13409 ;;
13410 aCC*)
13411 case $host_cpu in
13412 hppa*64*)
13413 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13414 ;;
13415 ia64*)
13416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417 ;;
13418 *)
13419 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420 ;;
13421 esac
13422 # Commands to make compiler produce verbose output that lists
13423 # what "hidden" libraries, object files and flags are used when
13424 # linking a shared library.
13425 #
13426 # There doesn't appear to be a way to prevent this compiler from
13427 # explicitly linking system object files so we need to strip them
13428 # from the output so that they don't get included in the library
13429 # dependencies.
13430 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13431 ;;
13432 *)
13433 if test "$GXX" = yes; then
13434 if test $with_gnu_ld = no; then
13435 case $host_cpu in
13436 hppa*64*)
13437 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13438 ;;
13439 ia64*)
13440 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441 ;;
13442 *)
13443 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444 ;;
13445 esac
13446 fi
13447 else
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13450 fi
13451 ;;
13452 esac
13453 ;;
13454
13455 interix[3-9]*)
13456 hardcode_direct_CXX=no
13457 hardcode_shlibpath_var_CXX=no
13458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13459 export_dynamic_flag_spec_CXX='${wl}-E'
13460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13461 # Instead, shared libraries are loaded at an image base (0x10000000 by
13462 # default) and relocated if they conflict, which is a slow very memory
13463 # consuming and fragmenting process. To avoid this, we pick a random,
13464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13466 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13467 archive_expsym_cmds_CXX='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'
13468 ;;
13469 irix5* | irix6*)
13470 case $cc_basename in
13471 CC*)
13472 # SGI C++
13473 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13474
13475 # Archives containing C++ object files must be created using
13476 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13477 # necessary to make sure instantiated templates are included
13478 # in the archive.
13479 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13480 ;;
13481 *)
13482 if test "$GXX" = yes; then
13483 if test "$with_gnu_ld" = no; then
13484 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13485 else
13486 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13487 fi
13488 fi
13489 link_all_deplibs_CXX=yes
13490 ;;
13491 esac
13492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13493 hardcode_libdir_separator_CXX=:
13494 inherit_rpath_CXX=yes
13495 ;;
13496
13497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13498 case $cc_basename in
13499 KCC*)
13500 # Kuck and Associates, Inc. (KAI) C++ Compiler
13501
13502 # KCC will only create a shared library if the output file
13503 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13504 # to its proper name (with version) after linking.
13505 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13506 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13507 # Commands to make compiler produce verbose output that lists
13508 # what "hidden" libraries, object files and flags are used when
13509 # linking a shared library.
13510 #
13511 # There doesn't appear to be a way to prevent this compiler from
13512 # explicitly linking system object files so we need to strip them
13513 # from the output so that they don't get included in the library
13514 # dependencies.
13515 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13516
13517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13519
13520 # Archives containing C++ object files must be created using
13521 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13522 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13523 ;;
13524 icpc* | ecpc* )
13525 # Intel C++
13526 with_gnu_ld=yes
13527 # version 8.0 and above of icpc choke on multiply defined symbols
13528 # if we add $predep_objects and $postdep_objects, however 7.1 and
13529 # earlier do not add the objects themselves.
13530 case `$CC -V 2>&1` in
13531 *"Version 7."*)
13532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534 ;;
13535 *) # Version 8.0 or newer
13536 tmp_idyn=
13537 case $host_cpu in
13538 ia64*) tmp_idyn=' -i_dynamic';;
13539 esac
13540 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13541 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13542 ;;
13543 esac
13544 archive_cmds_need_lc_CXX=no
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13547 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13548 ;;
13549 pgCC* | pgcpp*)
13550 # Portland Group C++ compiler
13551 case `$CC -V` in
13552 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13553 prelink_cmds_CXX='tpldir=Template.dir~
13554 rm -rf $tpldir~
13555 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13556 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13557 old_archive_cmds_CXX='tpldir=Template.dir~
13558 rm -rf $tpldir~
13559 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13560 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13561 $RANLIB $oldlib'
13562 archive_cmds_CXX='tpldir=Template.dir~
13563 rm -rf $tpldir~
13564 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13565 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13566 archive_expsym_cmds_CXX='tpldir=Template.dir~
13567 rm -rf $tpldir~
13568 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13569 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13570 ;;
13571 *) # Version 6 and above use weak symbols
13572 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13573 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13574 ;;
13575 esac
13576
13577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13579 whole_archive_flag_spec_CXX='${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'
13580 ;;
13581 cxx*)
13582 # Compaq C++
13583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13584 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13585
13586 runpath_var=LD_RUN_PATH
13587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13588 hardcode_libdir_separator_CXX=:
13589
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 #
13594 # There doesn't appear to be a way to prevent this compiler from
13595 # explicitly linking system object files so we need to strip them
13596 # from the output so that they don't get included in the library
13597 # dependencies.
13598 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13599 ;;
13600 xl* | mpixl* | bgxl*)
13601 # IBM XL 8.0 on PPC, with GNU ld
13602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13603 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13604 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605 if test "x$supports_anon_versioning" = xyes; then
13606 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13608 echo "local: *; };" >> $output_objdir/$libname.ver~
13609 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13610 fi
13611 ;;
13612 *)
13613 case `$CC -V 2>&1 | sed 5q` in
13614 *Sun\ C*)
13615 # Sun C++ 5.9
13616 no_undefined_flag_CXX=' -zdefs'
13617 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13618 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13619 hardcode_libdir_flag_spec_CXX='-R$libdir'
13620 whole_archive_flag_spec_CXX='${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'
13621 compiler_needs_object_CXX=yes
13622
13623 # Not sure whether something based on
13624 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13625 # would be better.
13626 output_verbose_link_cmd='func_echo_all'
13627
13628 # Archives containing C++ object files must be created using
13629 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13630 # necessary to make sure instantiated templates are included
13631 # in the archive.
13632 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13633 ;;
13634 esac
13635 ;;
13636 esac
13637 ;;
13638
13639 lynxos*)
13640 # FIXME: insert proper C++ library support
13641 ld_shlibs_CXX=no
13642 ;;
13643
13644 m88k*)
13645 # FIXME: insert proper C++ library support
13646 ld_shlibs_CXX=no
13647 ;;
13648
13649 mvs*)
13650 case $cc_basename in
13651 cxx*)
13652 # FIXME: insert proper C++ library support
13653 ld_shlibs_CXX=no
13654 ;;
13655 *)
13656 # FIXME: insert proper C++ library support
13657 ld_shlibs_CXX=no
13658 ;;
13659 esac
13660 ;;
13661
13662 netbsd*)
13663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13664 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13665 wlarc=
13666 hardcode_libdir_flag_spec_CXX='-R$libdir'
13667 hardcode_direct_CXX=yes
13668 hardcode_shlibpath_var_CXX=no
13669 fi
13670 # Workaround some broken pre-1.5 toolchains
13671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13672 ;;
13673
13674 *nto* | *qnx*)
13675 ld_shlibs_CXX=yes
13676 ;;
13677
13678 openbsd2*)
13679 # C++ shared libraries are fairly broken
13680 ld_shlibs_CXX=no
13681 ;;
13682
13683 openbsd*)
13684 if test -f /usr/libexec/ld.so; then
13685 hardcode_direct_CXX=yes
13686 hardcode_shlibpath_var_CXX=no
13687 hardcode_direct_absolute_CXX=yes
13688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13691 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13692 export_dynamic_flag_spec_CXX='${wl}-E'
13693 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13694 fi
13695 output_verbose_link_cmd=func_echo_all
13696 else
13697 ld_shlibs_CXX=no
13698 fi
13699 ;;
13700
13701 osf3* | osf4* | osf5*)
13702 case $cc_basename in
13703 KCC*)
13704 # Kuck and Associates, Inc. (KAI) C++ Compiler
13705
13706 # KCC will only create a shared library if the output file
13707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13708 # to its proper name (with version) after linking.
13709 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13710
13711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13712 hardcode_libdir_separator_CXX=:
13713
13714 # Archives containing C++ object files must be created using
13715 # the KAI C++ compiler.
13716 case $host in
13717 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13718 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13719 esac
13720 ;;
13721 RCC*)
13722 # Rational C++ 2.4.1
13723 # FIXME: insert proper C++ library support
13724 ld_shlibs_CXX=no
13725 ;;
13726 cxx*)
13727 case $host in
13728 osf3*)
13729 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13730 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13732 ;;
13733 *)
13734 allow_undefined_flag_CXX=' -expect_unresolved \*'
13735 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13736 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13737 echo "-hidden">> $lib.exp~
13738 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13739 $RM $lib.exp'
13740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13741 ;;
13742 esac
13743
13744 hardcode_libdir_separator_CXX=:
13745
13746 # Commands to make compiler produce verbose output that lists
13747 # what "hidden" libraries, object files and flags are used when
13748 # linking a shared library.
13749 #
13750 # There doesn't appear to be a way to prevent this compiler from
13751 # explicitly linking system object files so we need to strip them
13752 # from the output so that they don't get included in the library
13753 # dependencies.
13754 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13755 ;;
13756 *)
13757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13759 case $host in
13760 osf3*)
13761 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13762 ;;
13763 *)
13764 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13765 ;;
13766 esac
13767
13768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13769 hardcode_libdir_separator_CXX=:
13770
13771 # Commands to make compiler produce verbose output that lists
13772 # what "hidden" libraries, object files and flags are used when
13773 # linking a shared library.
13774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13775
13776 else
13777 # FIXME: insert proper C++ library support
13778 ld_shlibs_CXX=no
13779 fi
13780 ;;
13781 esac
13782 ;;
13783
13784 psos*)
13785 # FIXME: insert proper C++ library support
13786 ld_shlibs_CXX=no
13787 ;;
13788
13789 sunos4*)
13790 case $cc_basename in
13791 CC*)
13792 # Sun C++ 4.x
13793 # FIXME: insert proper C++ library support
13794 ld_shlibs_CXX=no
13795 ;;
13796 lcc*)
13797 # Lucid
13798 # FIXME: insert proper C++ library support
13799 ld_shlibs_CXX=no
13800 ;;
13801 *)
13802 # FIXME: insert proper C++ library support
13803 ld_shlibs_CXX=no
13804 ;;
13805 esac
13806 ;;
13807
13808 solaris*)
13809 case $cc_basename in
13810 CC* | sunCC*)
13811 # Sun C++ 4.2, 5.x and Centerline C++
13812 archive_cmds_need_lc_CXX=yes
13813 no_undefined_flag_CXX=' -zdefs'
13814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13815 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13816 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13817
13818 hardcode_libdir_flag_spec_CXX='-R$libdir'
13819 hardcode_shlibpath_var_CXX=no
13820 case $host_os in
13821 solaris2.[0-5] | solaris2.[0-5].*) ;;
13822 *)
13823 # The compiler driver will combine and reorder linker options,
13824 # but understands `-z linker_flag'.
13825 # Supported since Solaris 2.6 (maybe 2.5.1?)
13826 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13827 ;;
13828 esac
13829 link_all_deplibs_CXX=yes
13830
13831 output_verbose_link_cmd='func_echo_all'
13832
13833 # Archives containing C++ object files must be created using
13834 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13835 # necessary to make sure instantiated templates are included
13836 # in the archive.
13837 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13838 ;;
13839 gcx*)
13840 # Green Hills C++ Compiler
13841 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13842
13843 # The C++ compiler must be used to create the archive.
13844 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13845 ;;
13846 *)
13847 # GNU C++ compiler with Solaris linker
13848 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13849 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13850 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13851 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13852 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13853 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13854
13855 # Commands to make compiler produce verbose output that lists
13856 # what "hidden" libraries, object files and flags are used when
13857 # linking a shared library.
13858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13859 else
13860 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13861 # platform.
13862 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13863 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13864 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13865
13866 # Commands to make compiler produce verbose output that lists
13867 # what "hidden" libraries, object files and flags are used when
13868 # linking a shared library.
13869 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13870 fi
13871
13872 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13873 case $host_os in
13874 solaris2.[0-5] | solaris2.[0-5].*) ;;
13875 *)
13876 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13877 ;;
13878 esac
13879 fi
13880 ;;
13881 esac
13882 ;;
13883
13884 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13885 no_undefined_flag_CXX='${wl}-z,text'
13886 archive_cmds_need_lc_CXX=no
13887 hardcode_shlibpath_var_CXX=no
13888 runpath_var='LD_RUN_PATH'
13889
13890 case $cc_basename in
13891 CC*)
13892 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894 ;;
13895 *)
13896 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898 ;;
13899 esac
13900 ;;
13901
13902 sysv5* | sco3.2v5* | sco5v6*)
13903 # Note: We can NOT use -z defs as we might desire, because we do not
13904 # link with -lc, and that would cause any symbols used from libc to
13905 # always be unresolved, which means just about no library would
13906 # ever link correctly. If we're not using GNU ld we use -z text
13907 # though, which does catch some bad symbols but isn't as heavy-handed
13908 # as -z defs.
13909 no_undefined_flag_CXX='${wl}-z,text'
13910 allow_undefined_flag_CXX='${wl}-z,nodefs'
13911 archive_cmds_need_lc_CXX=no
13912 hardcode_shlibpath_var_CXX=no
13913 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13914 hardcode_libdir_separator_CXX=':'
13915 link_all_deplibs_CXX=yes
13916 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13917 runpath_var='LD_RUN_PATH'
13918
13919 case $cc_basename in
13920 CC*)
13921 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13924 '"$old_archive_cmds_CXX"
13925 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13926 '"$reload_cmds_CXX"
13927 ;;
13928 *)
13929 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 ;;
13932 esac
13933 ;;
13934
13935 tandem*)
13936 case $cc_basename in
13937 NCC*)
13938 # NonStop-UX NCC 3.20
13939 # FIXME: insert proper C++ library support
13940 ld_shlibs_CXX=no
13941 ;;
13942 *)
13943 # FIXME: insert proper C++ library support
13944 ld_shlibs_CXX=no
13945 ;;
13946 esac
13947 ;;
13948
13949 vxworks*)
13950 # FIXME: insert proper C++ library support
13951 ld_shlibs_CXX=no
13952 ;;
13953
13954 *)
13955 # FIXME: insert proper C++ library support
13956 ld_shlibs_CXX=no
13957 ;;
13958 esac
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13961 $as_echo "$ld_shlibs_CXX" >&6; }
13962 test "$ld_shlibs_CXX" = no && can_build_shared=no
13963
13964 GCC_CXX="$GXX"
13965 LD_CXX="$LD"
13966
13967 ## CAVEAT EMPTOR:
13968 ## There is no encapsulation within the following macros, do not change
13969 ## the running order or otherwise move them around unless you know exactly
13970 ## what you are doing...
13971 # Dependencies to place before and after the object being linked:
13972 predep_objects_CXX=
13973 postdep_objects_CXX=
13974 predeps_CXX=
13975 postdeps_CXX=
13976 compiler_lib_search_path_CXX=
13977
13978 cat > conftest.$ac_ext <<_LT_EOF
13979 class Foo
13980 {
13981 public:
13982 Foo (void) { a = 0; }
13983 private:
13984 int a;
13985 };
13986 _LT_EOF
13987
13988
13989 _lt_libdeps_save_CFLAGS=$CFLAGS
13990 case "$CC $CFLAGS " in #(
13991 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13992 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13993 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13994 esac
13995
13996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13997 (eval $ac_compile) 2>&5
13998 ac_status=$?
13999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000 test $ac_status = 0; }; then
14001 # Parse the compiler output and extract the necessary
14002 # objects, libraries and library flags.
14003
14004 # Sentinel used to keep track of whether or not we are before
14005 # the conftest object file.
14006 pre_test_object_deps_done=no
14007
14008 for p in `eval "$output_verbose_link_cmd"`; do
14009 case ${prev}${p} in
14010
14011 -L* | -R* | -l*)
14012 # Some compilers place space between "-{L,R}" and the path.
14013 # Remove the space.
14014 if test $p = "-L" ||
14015 test $p = "-R"; then
14016 prev=$p
14017 continue
14018 fi
14019
14020 # Expand the sysroot to ease extracting the directories later.
14021 if test -z "$prev"; then
14022 case $p in
14023 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14024 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14025 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14026 esac
14027 fi
14028 case $p in
14029 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14030 esac
14031 if test "$pre_test_object_deps_done" = no; then
14032 case ${prev} in
14033 -L | -R)
14034 # Internal compiler library paths should come after those
14035 # provided the user. The postdeps already come after the
14036 # user supplied libs so there is no need to process them.
14037 if test -z "$compiler_lib_search_path_CXX"; then
14038 compiler_lib_search_path_CXX="${prev}${p}"
14039 else
14040 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14041 fi
14042 ;;
14043 # The "-l" case would never come before the object being
14044 # linked, so don't bother handling this case.
14045 esac
14046 else
14047 if test -z "$postdeps_CXX"; then
14048 postdeps_CXX="${prev}${p}"
14049 else
14050 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14051 fi
14052 fi
14053 prev=
14054 ;;
14055
14056 *.lto.$objext) ;; # Ignore GCC LTO objects
14057 *.$objext)
14058 # This assumes that the test object file only shows up
14059 # once in the compiler output.
14060 if test "$p" = "conftest.$objext"; then
14061 pre_test_object_deps_done=yes
14062 continue
14063 fi
14064
14065 if test "$pre_test_object_deps_done" = no; then
14066 if test -z "$predep_objects_CXX"; then
14067 predep_objects_CXX="$p"
14068 else
14069 predep_objects_CXX="$predep_objects_CXX $p"
14070 fi
14071 else
14072 if test -z "$postdep_objects_CXX"; then
14073 postdep_objects_CXX="$p"
14074 else
14075 postdep_objects_CXX="$postdep_objects_CXX $p"
14076 fi
14077 fi
14078 ;;
14079
14080 *) ;; # Ignore the rest.
14081
14082 esac
14083 done
14084
14085 # Clean up.
14086 rm -f a.out a.exe
14087 else
14088 echo "libtool.m4: error: problem compiling CXX test program"
14089 fi
14090
14091 $RM -f confest.$objext
14092 CFLAGS=$_lt_libdeps_save_CFLAGS
14093
14094 # PORTME: override above test on systems where it is broken
14095 case $host_os in
14096 interix[3-9]*)
14097 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14098 # hack all around it, let's just trust "g++" to DTRT.
14099 predep_objects_CXX=
14100 postdep_objects_CXX=
14101 postdeps_CXX=
14102 ;;
14103
14104 linux*)
14105 case `$CC -V 2>&1 | sed 5q` in
14106 *Sun\ C*)
14107 # Sun C++ 5.9
14108
14109 # The more standards-conforming stlport4 library is
14110 # incompatible with the Cstd library. Avoid specifying
14111 # it if it's in CXXFLAGS. Ignore libCrun as
14112 # -library=stlport4 depends on it.
14113 case " $CXX $CXXFLAGS " in
14114 *" -library=stlport4 "*)
14115 solaris_use_stlport4=yes
14116 ;;
14117 esac
14118
14119 if test "$solaris_use_stlport4" != yes; then
14120 postdeps_CXX='-library=Cstd -library=Crun'
14121 fi
14122 ;;
14123 esac
14124 ;;
14125
14126 solaris*)
14127 case $cc_basename in
14128 CC* | sunCC*)
14129 # The more standards-conforming stlport4 library is
14130 # incompatible with the Cstd library. Avoid specifying
14131 # it if it's in CXXFLAGS. Ignore libCrun as
14132 # -library=stlport4 depends on it.
14133 case " $CXX $CXXFLAGS " in
14134 *" -library=stlport4 "*)
14135 solaris_use_stlport4=yes
14136 ;;
14137 esac
14138
14139 # Adding this requires a known-good setup of shared libraries for
14140 # Sun compiler versions before 5.6, else PIC objects from an old
14141 # archive will be linked into the output, leading to subtle bugs.
14142 if test "$solaris_use_stlport4" != yes; then
14143 postdeps_CXX='-library=Cstd -library=Crun'
14144 fi
14145 ;;
14146 esac
14147 ;;
14148 esac
14149
14150
14151 case " $postdeps_CXX " in
14152 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14153 esac
14154 compiler_lib_search_dirs_CXX=
14155 if test -n "${compiler_lib_search_path_CXX}"; then
14156 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14157 fi
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 lt_prog_compiler_wl_CXX=
14190 lt_prog_compiler_pic_CXX=
14191 lt_prog_compiler_static_CXX=
14192
14193
14194 # C++ specific cases for pic, static, wl, etc.
14195 if test "$GXX" = yes; then
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_static_CXX='-static'
14198
14199 case $host_os in
14200 aix*)
14201 # All AIX code is PIC.
14202 if test "$host_cpu" = ia64; then
14203 # AIX 5 now supports IA64 processor
14204 lt_prog_compiler_static_CXX='-Bstatic'
14205 fi
14206 ;;
14207
14208 amigaos*)
14209 case $host_cpu in
14210 powerpc)
14211 # see comment about AmigaOS4 .so support
14212 lt_prog_compiler_pic_CXX='-fPIC'
14213 ;;
14214 m68k)
14215 # FIXME: we need at least 68020 code to build shared libraries, but
14216 # adding the `-m68020' flag to GCC prevents building anything better,
14217 # like `-m68040'.
14218 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14219 ;;
14220 esac
14221 ;;
14222
14223 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14224 # PIC is the default for these OSes.
14225 ;;
14226 mingw* | cygwin* | os2* | pw32* | cegcc*)
14227 # This hack is so that the source file can tell whether it is being
14228 # built for inclusion in a dll (and should export symbols for example).
14229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14230 # (--disable-auto-import) libraries
14231 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14232 ;;
14233 darwin* | rhapsody*)
14234 # PIC is the default on this platform
14235 # Common symbols not allowed in MH_DYLIB files
14236 lt_prog_compiler_pic_CXX='-fno-common'
14237 ;;
14238 *djgpp*)
14239 # DJGPP does not support shared libraries at all
14240 lt_prog_compiler_pic_CXX=
14241 ;;
14242 haiku*)
14243 # PIC is the default for Haiku.
14244 # The "-static" flag exists, but is broken.
14245 lt_prog_compiler_static_CXX=
14246 ;;
14247 interix[3-9]*)
14248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14249 # Instead, we relocate shared libraries at runtime.
14250 ;;
14251 sysv4*MP*)
14252 if test -d /usr/nec; then
14253 lt_prog_compiler_pic_CXX=-Kconform_pic
14254 fi
14255 ;;
14256 hpux*)
14257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14259 # sets the default TLS model and affects inlining.
14260 case $host_cpu in
14261 hppa*64*)
14262 ;;
14263 *)
14264 lt_prog_compiler_pic_CXX='-fPIC'
14265 ;;
14266 esac
14267 ;;
14268 *qnx* | *nto*)
14269 # QNX uses GNU C++, but need to define -shared option too, otherwise
14270 # it will coredump.
14271 lt_prog_compiler_pic_CXX='-fPIC -shared'
14272 ;;
14273 *)
14274 lt_prog_compiler_pic_CXX='-fPIC'
14275 ;;
14276 esac
14277 else
14278 case $host_os in
14279 aix[4-9]*)
14280 # All AIX code is PIC.
14281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
14283 lt_prog_compiler_static_CXX='-Bstatic'
14284 else
14285 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14286 fi
14287 ;;
14288 chorus*)
14289 case $cc_basename in
14290 cxch68*)
14291 # Green Hills C++ Compiler
14292 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14293 ;;
14294 esac
14295 ;;
14296 mingw* | cygwin* | os2* | pw32* | cegcc*)
14297 # This hack is so that the source file can tell whether it is being
14298 # built for inclusion in a dll (and should export symbols for example).
14299 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14300 ;;
14301 dgux*)
14302 case $cc_basename in
14303 ec++*)
14304 lt_prog_compiler_pic_CXX='-KPIC'
14305 ;;
14306 ghcx*)
14307 # Green Hills C++ Compiler
14308 lt_prog_compiler_pic_CXX='-pic'
14309 ;;
14310 *)
14311 ;;
14312 esac
14313 ;;
14314 freebsd* | dragonfly*)
14315 # FreeBSD uses GNU C++
14316 ;;
14317 hpux9* | hpux10* | hpux11*)
14318 case $cc_basename in
14319 CC*)
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14322 if test "$host_cpu" != ia64; then
14323 lt_prog_compiler_pic_CXX='+Z'
14324 fi
14325 ;;
14326 aCC*)
14327 lt_prog_compiler_wl_CXX='-Wl,'
14328 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14329 case $host_cpu in
14330 hppa*64*|ia64*)
14331 # +Z the default
14332 ;;
14333 *)
14334 lt_prog_compiler_pic_CXX='+Z'
14335 ;;
14336 esac
14337 ;;
14338 *)
14339 ;;
14340 esac
14341 ;;
14342 interix*)
14343 # This is c89, which is MS Visual C++ (no shared libs)
14344 # Anyone wants to do a port?
14345 ;;
14346 irix5* | irix6* | nonstopux*)
14347 case $cc_basename in
14348 CC*)
14349 lt_prog_compiler_wl_CXX='-Wl,'
14350 lt_prog_compiler_static_CXX='-non_shared'
14351 # CC pic flag -KPIC is the default.
14352 ;;
14353 *)
14354 ;;
14355 esac
14356 ;;
14357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14358 case $cc_basename in
14359 KCC*)
14360 # KAI C++ Compiler
14361 lt_prog_compiler_wl_CXX='--backend -Wl,'
14362 lt_prog_compiler_pic_CXX='-fPIC'
14363 ;;
14364 ecpc* )
14365 # old Intel C++ for x86_64 which still supported -KPIC.
14366 lt_prog_compiler_wl_CXX='-Wl,'
14367 lt_prog_compiler_pic_CXX='-KPIC'
14368 lt_prog_compiler_static_CXX='-static'
14369 ;;
14370 icpc* )
14371 # Intel C++, used to be incompatible with GCC.
14372 # ICC 10 doesn't accept -KPIC any more.
14373 lt_prog_compiler_wl_CXX='-Wl,'
14374 lt_prog_compiler_pic_CXX='-fPIC'
14375 lt_prog_compiler_static_CXX='-static'
14376 ;;
14377 pgCC* | pgcpp*)
14378 # Portland Group C++ compiler
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_pic_CXX='-fpic'
14381 lt_prog_compiler_static_CXX='-Bstatic'
14382 ;;
14383 cxx*)
14384 # Compaq C++
14385 # Make sure the PIC flag is empty. It appears that all Alpha
14386 # Linux and Compaq Tru64 Unix objects are PIC.
14387 lt_prog_compiler_pic_CXX=
14388 lt_prog_compiler_static_CXX='-non_shared'
14389 ;;
14390 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14391 # IBM XL 8.0, 9.0 on PPC and BlueGene
14392 lt_prog_compiler_wl_CXX='-Wl,'
14393 lt_prog_compiler_pic_CXX='-qpic'
14394 lt_prog_compiler_static_CXX='-qstaticlink'
14395 ;;
14396 *)
14397 case `$CC -V 2>&1 | sed 5q` in
14398 *Sun\ C*)
14399 # Sun C++ 5.9
14400 lt_prog_compiler_pic_CXX='-KPIC'
14401 lt_prog_compiler_static_CXX='-Bstatic'
14402 lt_prog_compiler_wl_CXX='-Qoption ld '
14403 ;;
14404 esac
14405 ;;
14406 esac
14407 ;;
14408 lynxos*)
14409 ;;
14410 m88k*)
14411 ;;
14412 mvs*)
14413 case $cc_basename in
14414 cxx*)
14415 lt_prog_compiler_pic_CXX='-W c,exportall'
14416 ;;
14417 *)
14418 ;;
14419 esac
14420 ;;
14421 netbsd*)
14422 ;;
14423 *qnx* | *nto*)
14424 # QNX uses GNU C++, but need to define -shared option too, otherwise
14425 # it will coredump.
14426 lt_prog_compiler_pic_CXX='-fPIC -shared'
14427 ;;
14428 osf3* | osf4* | osf5*)
14429 case $cc_basename in
14430 KCC*)
14431 lt_prog_compiler_wl_CXX='--backend -Wl,'
14432 ;;
14433 RCC*)
14434 # Rational C++ 2.4.1
14435 lt_prog_compiler_pic_CXX='-pic'
14436 ;;
14437 cxx*)
14438 # Digital/Compaq C++
14439 lt_prog_compiler_wl_CXX='-Wl,'
14440 # Make sure the PIC flag is empty. It appears that all Alpha
14441 # Linux and Compaq Tru64 Unix objects are PIC.
14442 lt_prog_compiler_pic_CXX=
14443 lt_prog_compiler_static_CXX='-non_shared'
14444 ;;
14445 *)
14446 ;;
14447 esac
14448 ;;
14449 psos*)
14450 ;;
14451 solaris*)
14452 case $cc_basename in
14453 CC* | sunCC*)
14454 # Sun C++ 4.2, 5.x and Centerline C++
14455 lt_prog_compiler_pic_CXX='-KPIC'
14456 lt_prog_compiler_static_CXX='-Bstatic'
14457 lt_prog_compiler_wl_CXX='-Qoption ld '
14458 ;;
14459 gcx*)
14460 # Green Hills C++ Compiler
14461 lt_prog_compiler_pic_CXX='-PIC'
14462 ;;
14463 *)
14464 ;;
14465 esac
14466 ;;
14467 sunos4*)
14468 case $cc_basename in
14469 CC*)
14470 # Sun C++ 4.x
14471 lt_prog_compiler_pic_CXX='-pic'
14472 lt_prog_compiler_static_CXX='-Bstatic'
14473 ;;
14474 lcc*)
14475 # Lucid
14476 lt_prog_compiler_pic_CXX='-pic'
14477 ;;
14478 *)
14479 ;;
14480 esac
14481 ;;
14482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14483 case $cc_basename in
14484 CC*)
14485 lt_prog_compiler_wl_CXX='-Wl,'
14486 lt_prog_compiler_pic_CXX='-KPIC'
14487 lt_prog_compiler_static_CXX='-Bstatic'
14488 ;;
14489 esac
14490 ;;
14491 tandem*)
14492 case $cc_basename in
14493 NCC*)
14494 # NonStop-UX NCC 3.20
14495 lt_prog_compiler_pic_CXX='-KPIC'
14496 ;;
14497 *)
14498 ;;
14499 esac
14500 ;;
14501 vxworks*)
14502 ;;
14503 *)
14504 lt_prog_compiler_can_build_shared_CXX=no
14505 ;;
14506 esac
14507 fi
14508
14509 case $host_os in
14510 # For platforms which do not support PIC, -DPIC is meaningless:
14511 *djgpp*)
14512 lt_prog_compiler_pic_CXX=
14513 ;;
14514 *)
14515 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14516 ;;
14517 esac
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14520 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14521 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14527 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14528 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14529
14530 #
14531 # Check to make sure the PIC flag actually works.
14532 #
14533 if test -n "$lt_prog_compiler_pic_CXX"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14535 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14536 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 lt_cv_prog_compiler_pic_works_CXX=no
14540 ac_outfile=conftest.$ac_objext
14541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14543 # Insert the option either (1) after the last *FLAGS variable, or
14544 # (2) before a word containing "conftest.", or (3) at the end.
14545 # Note that $ac_compile itself does not contain backslashes and begins
14546 # with a dollar sign (not a hyphen), so the echo should work correctly.
14547 # The option is referenced via a variable to avoid confusing sed.
14548 lt_compile=`echo "$ac_compile" | $SED \
14549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551 -e 's:$: $lt_compiler_flag:'`
14552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14553 (eval "$lt_compile" 2>conftest.err)
14554 ac_status=$?
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 if (exit $ac_status) && test -s "$ac_outfile"; then
14558 # The compiler can only warn and ignore the option if not recognized
14559 # So say no if there are warnings other than the usual output.
14560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14563 lt_cv_prog_compiler_pic_works_CXX=yes
14564 fi
14565 fi
14566 $RM conftest*
14567
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14570 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14571
14572 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14573 case $lt_prog_compiler_pic_CXX in
14574 "" | " "*) ;;
14575 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14576 esac
14577 else
14578 lt_prog_compiler_pic_CXX=
14579 lt_prog_compiler_can_build_shared_CXX=no
14580 fi
14581
14582 fi
14583
14584
14585
14586
14587
14588 #
14589 # Check to make sure the static flag actually works.
14590 #
14591 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14593 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14594 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 lt_cv_prog_compiler_static_works_CXX=no
14598 save_LDFLAGS="$LDFLAGS"
14599 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14600 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14602 # The linker can only warn and ignore the option if not recognized
14603 # So say no if there are warnings
14604 if test -s conftest.err; then
14605 # Append any errors to the config.log.
14606 cat conftest.err 1>&5
14607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14609 if diff conftest.exp conftest.er2 >/dev/null; then
14610 lt_cv_prog_compiler_static_works_CXX=yes
14611 fi
14612 else
14613 lt_cv_prog_compiler_static_works_CXX=yes
14614 fi
14615 fi
14616 $RM -r conftest*
14617 LDFLAGS="$save_LDFLAGS"
14618
14619 fi
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14621 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14622
14623 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14624 :
14625 else
14626 lt_prog_compiler_static_CXX=
14627 fi
14628
14629
14630
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14634 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 lt_cv_prog_compiler_c_o_CXX=no
14638 $RM -r conftest 2>/dev/null
14639 mkdir conftest
14640 cd conftest
14641 mkdir out
14642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14643
14644 lt_compiler_flag="-o out/conftest2.$ac_objext"
14645 # Insert the option either (1) after the last *FLAGS variable, or
14646 # (2) before a word containing "conftest.", or (3) at the end.
14647 # Note that $ac_compile itself does not contain backslashes and begins
14648 # with a dollar sign (not a hyphen), so the echo should work correctly.
14649 lt_compile=`echo "$ac_compile" | $SED \
14650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14652 -e 's:$: $lt_compiler_flag:'`
14653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14654 (eval "$lt_compile" 2>out/conftest.err)
14655 ac_status=$?
14656 cat out/conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14659 then
14660 # The compiler can only warn and ignore the option if not recognized
14661 # So say no if there are warnings
14662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14665 lt_cv_prog_compiler_c_o_CXX=yes
14666 fi
14667 fi
14668 chmod u+w . 2>&5
14669 $RM conftest*
14670 # SGI C++ compiler will create directory out/ii_files/ for
14671 # template instantiation
14672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14673 $RM out/* && rmdir out
14674 cd ..
14675 $RM -r conftest
14676 $RM conftest*
14677
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14680 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14681
14682
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14686 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 lt_cv_prog_compiler_c_o_CXX=no
14690 $RM -r conftest 2>/dev/null
14691 mkdir conftest
14692 cd conftest
14693 mkdir out
14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
14696 lt_compiler_flag="-o out/conftest2.$ac_objext"
14697 # Insert the option either (1) after the last *FLAGS variable, or
14698 # (2) before a word containing "conftest.", or (3) at the end.
14699 # Note that $ac_compile itself does not contain backslashes and begins
14700 # with a dollar sign (not a hyphen), so the echo should work correctly.
14701 lt_compile=`echo "$ac_compile" | $SED \
14702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14704 -e 's:$: $lt_compiler_flag:'`
14705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14706 (eval "$lt_compile" 2>out/conftest.err)
14707 ac_status=$?
14708 cat out/conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14711 then
14712 # The compiler can only warn and ignore the option if not recognized
14713 # So say no if there are warnings
14714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14715 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14716 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14717 lt_cv_prog_compiler_c_o_CXX=yes
14718 fi
14719 fi
14720 chmod u+w . 2>&5
14721 $RM conftest*
14722 # SGI C++ compiler will create directory out/ii_files/ for
14723 # template instantiation
14724 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14725 $RM out/* && rmdir out
14726 cd ..
14727 $RM -r conftest
14728 $RM conftest*
14729
14730 fi
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14732 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14733
14734
14735
14736
14737 hard_links="nottested"
14738 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14739 # do not overwrite the value of need_locks provided by the user
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14741 $as_echo_n "checking if we can lock with hard links... " >&6; }
14742 hard_links=yes
14743 $RM conftest*
14744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14745 touch conftest.a
14746 ln conftest.a conftest.b 2>&5 || hard_links=no
14747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14749 $as_echo "$hard_links" >&6; }
14750 if test "$hard_links" = no; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14752 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14753 need_locks=warn
14754 fi
14755 else
14756 need_locks=no
14757 fi
14758
14759
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14762 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14763
14764 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14766 case $host_os in
14767 aix[4-9]*)
14768 # If we're using GNU nm, then we don't want the "-C" option.
14769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14770 # Also, AIX nm treats weak defined symbols like other global defined
14771 # symbols, whereas GNU nm marks them as "W".
14772 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14773 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14774 else
14775 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14776 fi
14777 ;;
14778 pw32*)
14779 export_symbols_cmds_CXX="$ltdll_cmds"
14780 ;;
14781 cygwin* | mingw* | cegcc*)
14782 case $cc_basename in
14783 cl*)
14784 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14785 ;;
14786 *)
14787 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14788 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14789 ;;
14790 esac
14791 ;;
14792 *)
14793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14794 ;;
14795 esac
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14798 $as_echo "$ld_shlibs_CXX" >&6; }
14799 test "$ld_shlibs_CXX" = no && can_build_shared=no
14800
14801 with_gnu_ld_CXX=$with_gnu_ld
14802
14803
14804
14805
14806
14807
14808 #
14809 # Do we need to explicitly link libc?
14810 #
14811 case "x$archive_cmds_need_lc_CXX" in
14812 x|xyes)
14813 # Assume -lc should be added
14814 archive_cmds_need_lc_CXX=yes
14815
14816 if test "$enable_shared" = yes && test "$GCC" = yes; then
14817 case $archive_cmds_CXX in
14818 *'~'*)
14819 # FIXME: we may have to deal with multi-command sequences.
14820 ;;
14821 '$CC '*)
14822 # Test whether the compiler implicitly links with -lc since on some
14823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14824 # to ld, don't add -lc before -lgcc.
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14827 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 $RM conftest*
14831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
14833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14834 (eval $ac_compile) 2>&5
14835 ac_status=$?
14836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14837 test $ac_status = 0; } 2>conftest.err; then
14838 soname=conftest
14839 lib=conftest
14840 libobjs=conftest.$ac_objext
14841 deplibs=
14842 wl=$lt_prog_compiler_wl_CXX
14843 pic_flag=$lt_prog_compiler_pic_CXX
14844 compiler_flags=-v
14845 linker_flags=-v
14846 verstring=
14847 output_objdir=.
14848 libname=conftest
14849 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14850 allow_undefined_flag_CXX=
14851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14852 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14853 ac_status=$?
14854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14855 test $ac_status = 0; }
14856 then
14857 lt_cv_archive_cmds_need_lc_CXX=no
14858 else
14859 lt_cv_archive_cmds_need_lc_CXX=yes
14860 fi
14861 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14862 else
14863 cat conftest.err 1>&5
14864 fi
14865 $RM conftest*
14866
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14869 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14870 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14871 ;;
14872 esac
14873 fi
14874 ;;
14875 esac
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14940
14941 library_names_spec=
14942 libname_spec='lib$name'
14943 soname_spec=
14944 shrext_cmds=".so"
14945 postinstall_cmds=
14946 postuninstall_cmds=
14947 finish_cmds=
14948 finish_eval=
14949 shlibpath_var=
14950 shlibpath_overrides_runpath=unknown
14951 version_type=none
14952 dynamic_linker="$host_os ld.so"
14953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14954 need_lib_prefix=unknown
14955 hardcode_into_libs=no
14956
14957 # when you set need_version to no, make sure it does not cause -set_version
14958 # flags to be left without arguments
14959 need_version=unknown
14960
14961 case $host_os in
14962 aix3*)
14963 version_type=linux # correct to gnu/linux during the next big refactor
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14965 shlibpath_var=LIBPATH
14966
14967 # AIX 3 has no versioning support, so we append a major version to the name.
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 ;;
14970
14971 aix[4-9]*)
14972 version_type=linux # correct to gnu/linux during the next big refactor
14973 need_lib_prefix=no
14974 need_version=no
14975 hardcode_into_libs=yes
14976 if test "$host_cpu" = ia64; then
14977 # AIX 5 supports IA64
14978 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 else
14981 # With GCC up to 2.95.x, collect2 would create an import file
14982 # for dependence libraries. The import file would start with
14983 # the line `#! .'. This would cause the generated library to
14984 # depend on `.', always an invalid library. This was fixed in
14985 # development snapshots of GCC prior to 3.0.
14986 case $host_os in
14987 aix4 | aix4.[01] | aix4.[01].*)
14988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14989 echo ' yes '
14990 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14991 :
14992 else
14993 can_build_shared=no
14994 fi
14995 ;;
14996 esac
14997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14998 # soname into executable. Probably we can add versioning support to
14999 # collect2, so additional links can be useful in future.
15000 if test "$aix_use_runtimelinking" = yes; then
15001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15002 # instead of lib<name>.a to let people know that these are not
15003 # typical AIX shared libraries.
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 else
15006 # We preserve .a as extension for shared libraries through AIX4.2
15007 # and later when we are not doing run time linking.
15008 library_names_spec='${libname}${release}.a $libname.a'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 fi
15011 shlibpath_var=LIBPATH
15012 fi
15013 ;;
15014
15015 amigaos*)
15016 case $host_cpu in
15017 powerpc)
15018 # Since July 2007 AmigaOS4 officially supports .so libraries.
15019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 ;;
15022 m68k)
15023 library_names_spec='$libname.ixlibrary $libname.a'
15024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15025 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'
15026 ;;
15027 esac
15028 ;;
15029
15030 beos*)
15031 library_names_spec='${libname}${shared_ext}'
15032 dynamic_linker="$host_os ld.so"
15033 shlibpath_var=LIBRARY_PATH
15034 ;;
15035
15036 bsdi[45]*)
15037 version_type=linux # correct to gnu/linux during the next big refactor
15038 need_version=no
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15045 # the default ld.so.conf also contains /usr/contrib/lib and
15046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15047 # libtool to hard-code these into programs
15048 ;;
15049
15050 cygwin* | mingw* | pw32* | cegcc*)
15051 version_type=windows
15052 shrext_cmds=".dll"
15053 need_version=no
15054 need_lib_prefix=no
15055
15056 case $GCC,$cc_basename in
15057 yes,*)
15058 # gcc
15059 library_names_spec='$libname.dll.a'
15060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15061 postinstall_cmds='base_file=`basename \${file}`~
15062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15063 dldir=$destdir/`dirname \$dlpath`~
15064 test -d \$dldir || mkdir -p \$dldir~
15065 $install_prog $dir/$dlname \$dldir/$dlname~
15066 chmod a+x \$dldir/$dlname~
15067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15069 fi'
15070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15071 dlpath=$dir/\$dldll~
15072 $RM \$dlpath'
15073 shlibpath_overrides_runpath=yes
15074
15075 case $host_os in
15076 cygwin*)
15077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15079
15080 ;;
15081 mingw* | cegcc*)
15082 # MinGW DLLs use traditional 'lib' prefix
15083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15084 ;;
15085 pw32*)
15086 # pw32 DLLs use 'pw' prefix rather than 'lib'
15087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15088 ;;
15089 esac
15090 dynamic_linker='Win32 ld.exe'
15091 ;;
15092
15093 *,cl*)
15094 # Native MSVC
15095 libname_spec='$name'
15096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097 library_names_spec='${libname}.dll.lib'
15098
15099 case $build_os in
15100 mingw*)
15101 sys_lib_search_path_spec=
15102 lt_save_ifs=$IFS
15103 IFS=';'
15104 for lt_path in $LIB
15105 do
15106 IFS=$lt_save_ifs
15107 # Let DOS variable expansion print the short 8.3 style file name.
15108 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15109 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15110 done
15111 IFS=$lt_save_ifs
15112 # Convert to MSYS style.
15113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15114 ;;
15115 cygwin*)
15116 # Convert to unix form, then to dos form, then back to unix form
15117 # but this time dos style (no spaces!) so that the unix form looks
15118 # like /cygdrive/c/PROGRA~1:/cygdr...
15119 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15120 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15121 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15122 ;;
15123 *)
15124 sys_lib_search_path_spec="$LIB"
15125 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15126 # It is most probably a Windows format PATH.
15127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15128 else
15129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15130 fi
15131 # FIXME: find the short name or the path components, as spaces are
15132 # common. (e.g. "Program Files" -> "PROGRA~1")
15133 ;;
15134 esac
15135
15136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15137 postinstall_cmds='base_file=`basename \${file}`~
15138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15139 dldir=$destdir/`dirname \$dlpath`~
15140 test -d \$dldir || mkdir -p \$dldir~
15141 $install_prog $dir/$dlname \$dldir/$dlname'
15142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15143 dlpath=$dir/\$dldll~
15144 $RM \$dlpath'
15145 shlibpath_overrides_runpath=yes
15146 dynamic_linker='Win32 link.exe'
15147 ;;
15148
15149 *)
15150 # Assume MSVC wrapper
15151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15152 dynamic_linker='Win32 ld.exe'
15153 ;;
15154 esac
15155 # FIXME: first we should search . and the directory the executable is in
15156 shlibpath_var=PATH
15157 ;;
15158
15159 darwin* | rhapsody*)
15160 dynamic_linker="$host_os dyld"
15161 version_type=darwin
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15165 soname_spec='${libname}${release}${major}$shared_ext'
15166 shlibpath_overrides_runpath=yes
15167 shlibpath_var=DYLD_LIBRARY_PATH
15168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15169
15170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15171 ;;
15172
15173 dgux*)
15174 version_type=linux # correct to gnu/linux during the next big refactor
15175 need_lib_prefix=no
15176 need_version=no
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 ;;
15181
15182 freebsd* | dragonfly*)
15183 # DragonFly does not have aout. When/if they implement a new
15184 # versioning mechanism, adjust this.
15185 if test -x /usr/bin/objformat; then
15186 objformat=`/usr/bin/objformat`
15187 else
15188 case $host_os in
15189 freebsd[23].*) objformat=aout ;;
15190 *) objformat=elf ;;
15191 esac
15192 fi
15193 version_type=freebsd-$objformat
15194 case $version_type in
15195 freebsd-elf*)
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15197 need_version=no
15198 need_lib_prefix=no
15199 ;;
15200 freebsd-*)
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15202 need_version=yes
15203 ;;
15204 esac
15205 shlibpath_var=LD_LIBRARY_PATH
15206 case $host_os in
15207 freebsd2.*)
15208 shlibpath_overrides_runpath=yes
15209 ;;
15210 freebsd3.[01]* | freebsdelf3.[01]*)
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15213 ;;
15214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15216 shlibpath_overrides_runpath=no
15217 hardcode_into_libs=yes
15218 ;;
15219 *) # from 4.6 on, and DragonFly
15220 shlibpath_overrides_runpath=yes
15221 hardcode_into_libs=yes
15222 ;;
15223 esac
15224 ;;
15225
15226 gnu*)
15227 version_type=linux # correct to gnu/linux during the next big refactor
15228 need_lib_prefix=no
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=no
15234 hardcode_into_libs=yes
15235 ;;
15236
15237 haiku*)
15238 version_type=linux # correct to gnu/linux during the next big refactor
15239 need_lib_prefix=no
15240 need_version=no
15241 dynamic_linker="$host_os runtime_loader"
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15247 hardcode_into_libs=yes
15248 ;;
15249
15250 hpux9* | hpux10* | hpux11*)
15251 # Give a soname corresponding to the major version so that dld.sl refuses to
15252 # link against other versions.
15253 version_type=sunos
15254 need_lib_prefix=no
15255 need_version=no
15256 case $host_cpu in
15257 ia64*)
15258 shrext_cmds='.so'
15259 hardcode_into_libs=yes
15260 dynamic_linker="$host_os dld.so"
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 if test "X$HPUX_IA64_MODE" = X32; then
15266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15267 else
15268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15269 fi
15270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15271 ;;
15272 hppa*64*)
15273 shrext_cmds='.sl'
15274 hardcode_into_libs=yes
15275 dynamic_linker="$host_os dld.sl"
15276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15282 ;;
15283 *)
15284 shrext_cmds='.sl'
15285 dynamic_linker="$host_os dld.sl"
15286 shlibpath_var=SHLIB_PATH
15287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 ;;
15291 esac
15292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15293 postinstall_cmds='chmod 555 $lib'
15294 # or fails outright, so override atomically:
15295 install_override_mode=555
15296 ;;
15297
15298 interix[3-9]*)
15299 version_type=linux # correct to gnu/linux during the next big refactor
15300 need_lib_prefix=no
15301 need_version=no
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 shlibpath_overrides_runpath=no
15307 hardcode_into_libs=yes
15308 ;;
15309
15310 irix5* | irix6* | nonstopux*)
15311 case $host_os in
15312 nonstopux*) version_type=nonstopux ;;
15313 *)
15314 if test "$lt_cv_prog_gnu_ld" = yes; then
15315 version_type=linux # correct to gnu/linux during the next big refactor
15316 else
15317 version_type=irix
15318 fi ;;
15319 esac
15320 need_lib_prefix=no
15321 need_version=no
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15324 case $host_os in
15325 irix5* | nonstopux*)
15326 libsuff= shlibsuff=
15327 ;;
15328 *)
15329 case $LD in # libtool.m4 will add one of these switches to LD
15330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15331 libsuff= shlibsuff= libmagic=32-bit;;
15332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15333 libsuff=32 shlibsuff=N32 libmagic=N32;;
15334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15336 *) libsuff= shlibsuff= libmagic=never-match;;
15337 esac
15338 ;;
15339 esac
15340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15341 shlibpath_overrides_runpath=no
15342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15344 hardcode_into_libs=yes
15345 ;;
15346
15347 # No shared lib support for Linux oldld, aout, or coff.
15348 linux*oldld* | linux*aout* | linux*coff*)
15349 dynamic_linker=no
15350 ;;
15351
15352 # This must be glibc/ELF.
15353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15354 version_type=linux # correct to gnu/linux during the next big refactor
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362
15363 # Some binutils ld are patched to set DT_RUNPATH
15364 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 lt_cv_shlibpath_overrides_runpath=no
15368 save_LDFLAGS=$LDFLAGS
15369 save_libdir=$libdir
15370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374
15375 int
15376 main ()
15377 {
15378
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15385 lt_cv_shlibpath_overrides_runpath=yes
15386 fi
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 LDFLAGS=$save_LDFLAGS
15391 libdir=$save_libdir
15392
15393 fi
15394
15395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15396
15397 # This implies no fast_install, which is unacceptable.
15398 # Some rework will be needed to allow for fast_install
15399 # before this can be enabled.
15400 hardcode_into_libs=yes
15401
15402 # Add ABI-specific directories to the system library path.
15403 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15404
15405 # Append ld.so.conf contents to the search path
15406 if test -f /etc/ld.so.conf; then
15407 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' ' '`
15408 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15409
15410 fi
15411
15412 # We used to test for /lib/ld.so.1 and disable shared libraries on
15413 # powerpc, because MkLinux only supported shared libraries with the
15414 # GNU dynamic linker. Since this was broken with cross compilers,
15415 # most powerpc-linux boxes support dynamic linking these days and
15416 # people can always --disable-shared, the test was removed, and we
15417 # assume the GNU/Linux dynamic linker is in use.
15418 dynamic_linker='GNU/Linux ld.so'
15419 ;;
15420
15421 netbsd*)
15422 version_type=sunos
15423 need_lib_prefix=no
15424 need_version=no
15425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15428 dynamic_linker='NetBSD (a.out) ld.so'
15429 else
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 dynamic_linker='NetBSD ld.elf_so'
15433 fi
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15436 hardcode_into_libs=yes
15437 ;;
15438
15439 newsos6)
15440 version_type=linux # correct to gnu/linux during the next big refactor
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 ;;
15445
15446 *nto* | *qnx*)
15447 version_type=qnx
15448 need_lib_prefix=no
15449 need_version=no
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=no
15454 hardcode_into_libs=yes
15455 dynamic_linker='ldqnx.so'
15456 ;;
15457
15458 openbsd*)
15459 version_type=sunos
15460 sys_lib_dlsearch_path_spec="/usr/lib"
15461 need_lib_prefix=no
15462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15463 case $host_os in
15464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15465 *) need_version=no ;;
15466 esac
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15471 case $host_os in
15472 openbsd2.[89] | openbsd2.[89].*)
15473 shlibpath_overrides_runpath=no
15474 ;;
15475 *)
15476 shlibpath_overrides_runpath=yes
15477 ;;
15478 esac
15479 else
15480 shlibpath_overrides_runpath=yes
15481 fi
15482 ;;
15483
15484 os2*)
15485 libname_spec='$name'
15486 shrext_cmds=".dll"
15487 need_lib_prefix=no
15488 library_names_spec='$libname${shared_ext} $libname.a'
15489 dynamic_linker='OS/2 ld.exe'
15490 shlibpath_var=LIBPATH
15491 ;;
15492
15493 osf3* | osf4* | osf5*)
15494 version_type=osf
15495 need_lib_prefix=no
15496 need_version=no
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15502 ;;
15503
15504 rdos*)
15505 dynamic_linker=no
15506 ;;
15507
15508 solaris*)
15509 version_type=linux # correct to gnu/linux during the next big refactor
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=yes
15516 hardcode_into_libs=yes
15517 # ldd complains unless libraries are executable
15518 postinstall_cmds='chmod +x $lib'
15519 ;;
15520
15521 sunos4*)
15522 version_type=sunos
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 shlibpath_overrides_runpath=yes
15527 if test "$with_gnu_ld" = yes; then
15528 need_lib_prefix=no
15529 fi
15530 need_version=yes
15531 ;;
15532
15533 sysv4 | sysv4.3*)
15534 version_type=linux # correct to gnu/linux during the next big refactor
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 case $host_vendor in
15539 sni)
15540 shlibpath_overrides_runpath=no
15541 need_lib_prefix=no
15542 runpath_var=LD_RUN_PATH
15543 ;;
15544 siemens)
15545 need_lib_prefix=no
15546 ;;
15547 motorola)
15548 need_lib_prefix=no
15549 need_version=no
15550 shlibpath_overrides_runpath=no
15551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15552 ;;
15553 esac
15554 ;;
15555
15556 sysv4*MP*)
15557 if test -d /usr/nec ;then
15558 version_type=linux # correct to gnu/linux during the next big refactor
15559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15560 soname_spec='$libname${shared_ext}.$major'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 fi
15563 ;;
15564
15565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15566 version_type=freebsd-elf
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15574 if test "$with_gnu_ld" = yes; then
15575 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15576 else
15577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15578 case $host_os in
15579 sco3.2v5*)
15580 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15581 ;;
15582 esac
15583 fi
15584 sys_lib_dlsearch_path_spec='/usr/lib'
15585 ;;
15586
15587 tpf*)
15588 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15589 version_type=linux # correct to gnu/linux during the next big refactor
15590 need_lib_prefix=no
15591 need_version=no
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=no
15595 hardcode_into_libs=yes
15596 ;;
15597
15598 uts4*)
15599 version_type=linux # correct to gnu/linux during the next big refactor
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 ;;
15604
15605 *)
15606 dynamic_linker=no
15607 ;;
15608 esac
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15610 $as_echo "$dynamic_linker" >&6; }
15611 test "$dynamic_linker" = no && can_build_shared=no
15612
15613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15614 if test "$GCC" = yes; then
15615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15616 fi
15617
15618 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15619 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15620 fi
15621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15623 fi
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15663 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15664 hardcode_action_CXX=
15665 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15666 test -n "$runpath_var_CXX" ||
15667 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15668
15669 # We can hardcode non-existent directories.
15670 if test "$hardcode_direct_CXX" != no &&
15671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15672 # have to relink, otherwise we might link with an installed library
15673 # when we should be linking with a yet-to-be-installed one
15674 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15675 test "$hardcode_minus_L_CXX" != no; then
15676 # Linking always hardcodes the temporary library directory.
15677 hardcode_action_CXX=relink
15678 else
15679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15680 hardcode_action_CXX=immediate
15681 fi
15682 else
15683 # We cannot hardcode anything, or else we can only hardcode existing
15684 # directories.
15685 hardcode_action_CXX=unsupported
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15688 $as_echo "$hardcode_action_CXX" >&6; }
15689
15690 if test "$hardcode_action_CXX" = relink ||
15691 test "$inherit_rpath_CXX" = yes; then
15692 # Fast installation is not supported
15693 enable_fast_install=no
15694 elif test "$shlibpath_overrides_runpath" = yes ||
15695 test "$enable_shared" = no; then
15696 # Fast installation is not necessary
15697 enable_fast_install=needless
15698 fi
15699
15700
15701
15702
15703
15704
15705
15706 fi # test -n "$compiler"
15707
15708 CC=$lt_save_CC
15709 CFLAGS=$lt_save_CFLAGS
15710 LDCXX=$LD
15711 LD=$lt_save_LD
15712 GCC=$lt_save_GCC
15713 with_gnu_ld=$lt_save_with_gnu_ld
15714 lt_cv_path_LDCXX=$lt_cv_path_LD
15715 lt_cv_path_LD=$lt_save_path_LD
15716 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15717 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15718 fi # test "$_lt_caught_CXX_error" != yes
15719
15720 ac_ext=c
15721 ac_cpp='$CPP $CPPFLAGS'
15722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15725
15726
15727 ac_ext=cpp
15728 ac_cpp='$CXXCPP $CPPFLAGS'
15729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15732
15733
15734 CPPFLAGS="$SDL_CFLAGS"
15735 LIBS="$SDL_LIBS"
15736
15737
15738
15739
15740 # Check whether --enable-sdl-mixer was given.
15741 if test "${enable_sdl_mixer+set}" = set; then :
15742 enableval=$enable_sdl_mixer;
15743 fi
15744
15745
15746 if test "x$enable_sdl_mixer" = "x"; then
15747
15748 ac_fn_cxx_check_header_mongrel "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default"
15749 if test "x$ac_cv_header_SDL_mixer_h" = xyes; then :
15750 SDL_mixer_h="yes"
15751 else
15752 SDL_mixer_h="no"
15753 fi
15754
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
15757 $as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
15758 if ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+:} false; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lSDL_mixer $LIBS"
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765
15766 /* Override any GCC internal prototype to avoid an error.
15767 Use char because int might match the return type of a GCC
15768 builtin and then its argument prototype would still apply. */
15769 #ifdef __cplusplus
15770 extern "C"
15771 #endif
15772 char Mix_OpenAudio ();
15773 int
15774 main ()
15775 {
15776 return Mix_OpenAudio ();
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_cxx_try_link "$LINENO"; then :
15782 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
15783 else
15784 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15788 LIBS=$ac_check_lib_save_LIBS
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
15791 $as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
15792 if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes; then :
15793 SDL_mixer_lib="yes"
15794 else
15795 SDL_mixer_lib="no"
15796 fi
15797
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_mixer support" >&5
15799 $as_echo_n "checking SDL_mixer support... " >&6; }
15800
15801 if test "x$SDL_mixer_h" = "xyes"; then
15802 if test "x$SDL_mixer_lib" = "xyes"; then
15803 LIBS="$SDL_LIBS -lSDL_mixer"
15804
15805 $as_echo "#define OPENCITY_SDL_MIXER 1" >>confdefs.h
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15808 $as_echo "yes" >&6; }
15809 else
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, found header but not the SDL_mixer library." >&5
15811 $as_echo "no, found header but not the SDL_mixer library." >&6; }
15812 fi
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, audio system disabled." >&5
15815 $as_echo "no, audio system disabled." >&6; }
15816 fi
15817 fi
15818 if test "x$SDL_mixer_h" = "xyes"; then
15819 OPENCITY_SDL_MIXER_TRUE=
15820 OPENCITY_SDL_MIXER_FALSE='#'
15821 else
15822 OPENCITY_SDL_MIXER_TRUE='#'
15823 OPENCITY_SDL_MIXER_FALSE=
15824 fi
15825
15826
15827
15828
15829 # Check whether --with-gl was given.
15830 if test "${with_gl+set}" = set; then :
15831 withval=$with_gl;
15832 fi
15833
15834
15835 if test "x$with_gl_prefix" = "x"; then
15836 with_gl_prefix="/usr/X11R6"
15837 fi
15838
15839
15840 # Check whether --enable-gprof was given.
15841 if test "${enable_gprof+set}" = set; then :
15842 enableval=$enable_gprof;
15843 fi
15844
15845
15846 if test "x$enable_gprof" = "xyes"; then
15847 enable_gprof="-pg"
15848 else
15849 enable_gprof=""
15850 fi
15851
15852
15853 # Check whether --enable-gdb was given.
15854 if test "${enable_gdb+set}" = set; then :
15855 enableval=$enable_gdb;
15856 fi
15857
15858
15859 if test "x$enable_gdb" = "xyes"; then
15860 enable_gdb="-ggdb"
15861 else
15862 enable_gdb=""
15863 fi
15864
15865
15866 # Check whether --enable-debug was given.
15867 if test "${enable_debug+set}" = set; then :
15868 enableval=$enable_debug;
15869 fi
15870
15871
15872 if test "x$enable_debug" = "xyes"; then
15873 enable_debug="$enable_gdb"
15874 else
15875 enable_debug="-DNDEBUG"
15876 fi
15877
15878
15879 # Check whether --enable-mingw was given.
15880 if test "${enable_mingw+set}" = set; then :
15881 enableval=$enable_mingw;
15882 fi
15883
15884
15885
15886 if test "x$enable_mingw" = "xyes"; then
15887 LIBS="-lmingw32 -lSDLmain -mwindows -lglu32 -lopengl32 $LIBS"
15888 else
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
15890 $as_echo_n "checking for glBegin in -lGL... " >&6; }
15891 if ${ac_cv_lib_GL_glBegin+:} false; then :
15892 $as_echo_n "(cached) " >&6
15893 else
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lGL $LIBS"
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898
15899 /* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15902 #ifdef __cplusplus
15903 extern "C"
15904 #endif
15905 char glBegin ();
15906 int
15907 main ()
15908 {
15909 return glBegin ();
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_cxx_try_link "$LINENO"; then :
15915 ac_cv_lib_GL_glBegin=yes
15916 else
15917 ac_cv_lib_GL_glBegin=no
15918 fi
15919 rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921 LIBS=$ac_check_lib_save_LIBS
15922 fi
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
15924 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
15925 if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
15926 cat >>confdefs.h <<_ACEOF
15927 #define HAVE_LIBGL 1
15928 _ACEOF
15929
15930 LIBS="-lGL $LIBS"
15931
15932 else
15933 as_fn_error $? "OpenGL library required. See FAQ for more information" "$LINENO" 5
15934 fi
15935
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
15937 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
15938 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 ac_check_lib_save_LIBS=$LIBS
15942 LIBS="-lGLU $LIBS"
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945
15946 /* Override any GCC internal prototype to avoid an error.
15947 Use char because int might match the return type of a GCC
15948 builtin and then its argument prototype would still apply. */
15949 #ifdef __cplusplus
15950 extern "C"
15951 #endif
15952 char gluLookAt ();
15953 int
15954 main ()
15955 {
15956 return gluLookAt ();
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_cxx_try_link "$LINENO"; then :
15962 ac_cv_lib_GLU_gluLookAt=yes
15963 else
15964 ac_cv_lib_GLU_gluLookAt=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968 LIBS=$ac_check_lib_save_LIBS
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
15971 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
15972 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
15973 cat >>confdefs.h <<_ACEOF
15974 #define HAVE_LIBGLU 1
15975 _ACEOF
15976
15977 LIBS="-lGLU $LIBS"
15978
15979 else
15980 as_fn_error $? "GLU library required. See FAQ for more information" "$LINENO" 5
15981 fi
15982
15983 fi
15984
15985
15986 #AC_CHECK_LIB(SDL_ttf, TTF_Init, ,
15987 # AC_MSG_ERROR([SDL_ttf library required. See FAQ for more information]))
15988
15989
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
15991 $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
15992 if ${ac_cv_lib_SDL_image_IMG_Load+:} false; then :
15993 $as_echo_n "(cached) " >&6
15994 else
15995 ac_check_lib_save_LIBS=$LIBS
15996 LIBS="-lSDL_image $LIBS"
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999
16000 /* Override any GCC internal prototype to avoid an error.
16001 Use char because int might match the return type of a GCC
16002 builtin and then its argument prototype would still apply. */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 char IMG_Load ();
16007 int
16008 main ()
16009 {
16010 return IMG_Load ();
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_cxx_try_link "$LINENO"; then :
16016 ac_cv_lib_SDL_image_IMG_Load=yes
16017 else
16018 ac_cv_lib_SDL_image_IMG_Load=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext \
16021 conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
16025 $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
16026 if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes; then :
16027 cat >>confdefs.h <<_ACEOF
16028 #define HAVE_LIBSDL_IMAGE 1
16029 _ACEOF
16030
16031 LIBS="-lSDL_image $LIBS"
16032
16033 else
16034 as_fn_error $? "SDL_image library required. See FAQ for more information" "$LINENO" 5
16035 fi
16036
16037
16038
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLNet_Init in -lSDL_net" >&5
16040 $as_echo_n "checking for SDLNet_Init in -lSDL_net... " >&6; }
16041 if ${ac_cv_lib_SDL_net_SDLNet_Init+:} false; then :
16042 $as_echo_n "(cached) " >&6
16043 else
16044 ac_check_lib_save_LIBS=$LIBS
16045 LIBS="-lSDL_net $LIBS"
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048
16049 /* Override any GCC internal prototype to avoid an error.
16050 Use char because int might match the return type of a GCC
16051 builtin and then its argument prototype would still apply. */
16052 #ifdef __cplusplus
16053 extern "C"
16054 #endif
16055 char SDLNet_Init ();
16056 int
16057 main ()
16058 {
16059 return SDLNet_Init ();
16060 ;
16061 return 0;
16062 }
16063 _ACEOF
16064 if ac_fn_cxx_try_link "$LINENO"; then :
16065 ac_cv_lib_SDL_net_SDLNet_Init=yes
16066 else
16067 ac_cv_lib_SDL_net_SDLNet_Init=no
16068 fi
16069 rm -f core conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 LIBS=$ac_check_lib_save_LIBS
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
16074 $as_echo "$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
16075 if test "x$ac_cv_lib_SDL_net_SDLNet_Init" = xyes; then :
16076 cat >>confdefs.h <<_ACEOF
16077 #define HAVE_LIBSDL_NET 1
16078 _ACEOF
16079
16080 LIBS="-lSDL_net $LIBS"
16081
16082 else
16083 as_fn_error $? "SDL_net library required. See FAQ for more information" "$LINENO" 5
16084 fi
16085
16086
16087 # Need for viewer, also dependency of SDL_image
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
16089 $as_echo_n "checking for libpng... " >&6; }
16090 for PNG in png png12 png13 dummypng; do
16091 if $PACKAGE_CONFIG --exists lib$PNG > /dev/null 2>&1 ; then
16092 CPPFLAGS="$CPPFLAGS `$PACKAGE_CONFIG --cflags lib$PNG`"
16093 LIBS="$LIBS `$PACKAGE_CONFIG --libs lib$PNG`"
16094 break
16095 fi
16096 done
16097 if test "$PNG" = "dummypng"; then
16098 as_fn_error $? "*** libpng not found" "$LINENO" 5
16099 else
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib$PNG" >&5
16101 $as_echo "lib$PNG" >&6; }
16102 fi
16103
16104
16105 # Check whether --enable-as-needed was given.
16106 if test "${enable_as_needed+set}" = set; then :
16107 enableval=$enable_as_needed;
16108 fi
16109
16110
16111 if test "x$enable_as_needed" = "xyes"; then
16112 enable_as_needed="-Wl,--as-needed"
16113 else
16114 enable_as_needed=""
16115 fi
16116
16117
16118 CPPFLAGS="-Wall -Wmissing-braces -Wparentheses -pedantic-errors $CPPFLAGS"
16119
16120 CPPFLAGS="-I$with_gl_prefix/include $enable_gprof $enable_debug $CPPFLAGS"
16121
16122 CFLAGS="-std=c99 $CFLAGS"
16123
16124 CXXFLAGS="-std=c++98 $CXXFLAGS"
16125
16126 LDFLAGS="-L$with_gl_prefix/lib $enable_gprof $enable_as_needed $LDFLAGS"
16127
16128
16129
16130
16131
16132 ac_config_files="$ac_config_files config/Makefile"
16133
16134 ac_config_files="$ac_config_files docs/Makefile"
16135
16136 ac_config_files="$ac_config_files map/Makefile"
16137
16138 ac_config_files="$ac_config_files map/heightmap/Makefile"
16139
16140 ac_config_files="$ac_config_files sound/Makefile"
16141
16142 ac_config_files="$ac_config_files src/Makefile"
16143
16144 ac_config_files="$ac_config_files src/binreloc/Makefile"
16145
16146 ac_config_files="$ac_config_files src/enum/Makefile"
16147
16148 ac_config_files="$ac_config_files src/framework/Makefile"
16149
16150 ac_config_files="$ac_config_files src/framework/System/Makefile"
16151
16152 ac_config_files="$ac_config_files src/framework/System/Information/Makefile"
16153
16154 ac_config_files="$ac_config_files src/framework/System/Information/Software/Makefile"
16155
16156 ac_config_files="$ac_config_files src/framework/System/Reflection/Makefile"
16157
16158 ac_config_files="$ac_config_files src/mapgen/Makefile"
16159
16160 ac_config_files="$ac_config_files src/mas/Makefile"
16161
16162 ac_config_files="$ac_config_files src/model/Makefile"
16163
16164 ac_config_files="$ac_config_files src/networking/Makefile"
16165
16166 ac_config_files="$ac_config_files src/pngfuncs/Makefile"
16167
16168 ac_config_files="$ac_config_files src/simulator/Makefile"
16169
16170 ac_config_files="$ac_config_files src/structure/Makefile"
16171
16172 ac_config_files="$ac_config_files src/tinyxml/Makefile"
16173
16174 ac_config_files="$ac_config_files src/tinyxpath/Makefile"
16175
16176 ac_config_files="$ac_config_files src/triangulation/Makefile"
16177
16178 ac_config_files="$ac_config_files viewer/Makefile"
16179
16180 ac_config_files="$ac_config_files Makefile"
16181
16182
16183
16184 cat >confcache <<\_ACEOF
16185 # This file is a shell script that caches the results of configure
16186 # tests run on this system so they can be shared between configure
16187 # scripts and configure runs, see configure's option --config-cache.
16188 # It is not useful on other systems. If it contains results you don't
16189 # want to keep, you may remove or edit it.
16190 #
16191 # config.status only pays attention to the cache file if you give it
16192 # the --recheck option to rerun configure.
16193 #
16194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16196 # following values.
16197
16198 _ACEOF
16199
16200 # The following way of writing the cache mishandles newlines in values,
16201 # but we know of no workaround that is simple, portable, and efficient.
16202 # So, we kill variables containing newlines.
16203 # Ultrix sh set writes to stderr and can't be redirected directly,
16204 # and sets the high bit in the cache file unless we assign to the vars.
16205 (
16206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16207 eval ac_val=\$$ac_var
16208 case $ac_val in #(
16209 *${as_nl}*)
16210 case $ac_var in #(
16211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16213 esac
16214 case $ac_var in #(
16215 _ | IFS | as_nl) ;; #(
16216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16217 *) { eval $ac_var=; unset $ac_var;} ;;
16218 esac ;;
16219 esac
16220 done
16221
16222 (set) 2>&1 |
16223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16224 *${as_nl}ac_space=\ *)
16225 # `set' does not quote correctly, so add quotes: double-quote
16226 # substitution turns \\\\ into \\, and sed turns \\ into \.
16227 sed -n \
16228 "s/'/'\\\\''/g;
16229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16230 ;; #(
16231 *)
16232 # `set' quotes correctly as required by POSIX, so do not add quotes.
16233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16234 ;;
16235 esac |
16236 sort
16237 ) |
16238 sed '
16239 /^ac_cv_env_/b end
16240 t clear
16241 :clear
16242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16243 t end
16244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16245 :end' >>confcache
16246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16247 if test -w "$cache_file"; then
16248 if test "x$cache_file" != "x/dev/null"; then
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16250 $as_echo "$as_me: updating cache $cache_file" >&6;}
16251 if test ! -f "$cache_file" || test -h "$cache_file"; then
16252 cat confcache >"$cache_file"
16253 else
16254 case $cache_file in #(
16255 */* | ?:*)
16256 mv -f confcache "$cache_file"$$ &&
16257 mv -f "$cache_file"$$ "$cache_file" ;; #(
16258 *)
16259 mv -f confcache "$cache_file" ;;
16260 esac
16261 fi
16262 fi
16263 else
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16266 fi
16267 fi
16268 rm -f confcache
16269
16270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16271 # Let make expand exec_prefix.
16272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16273
16274 DEFS=-DHAVE_CONFIG_H
16275
16276 ac_libobjs=
16277 ac_ltlibobjs=
16278 U=
16279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16280 # 1. Remove the extension, and $U if already installed.
16281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16284 # will be set to the directory where LIBOBJS objects are built.
16285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16287 done
16288 LIBOBJS=$ac_libobjs
16289
16290 LTLIBOBJS=$ac_ltlibobjs
16291
16292
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16294 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16295 if test -n "$am_sleep_pid"; then
16296 # Hide warnings about reused PIDs.
16297 wait $am_sleep_pid 2>/dev/null
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16300 $as_echo "done" >&6; }
16301 if test -n "$EXEEXT"; then
16302 am__EXEEXT_TRUE=
16303 am__EXEEXT_FALSE='#'
16304 else
16305 am__EXEEXT_TRUE='#'
16306 am__EXEEXT_FALSE=
16307 fi
16308
16309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16310 as_fn_error $? "conditional \"AMDEP\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16312 fi
16313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16316 fi
16317 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16318 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16320 fi
16321 if test -z "${OPENCITY_SDL_MIXER_TRUE}" && test -z "${OPENCITY_SDL_MIXER_FALSE}"; then
16322 as_fn_error $? "conditional \"OPENCITY_SDL_MIXER\" was never defined.
16323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16324 fi
16325
16326 : "${CONFIG_STATUS=./config.status}"
16327 ac_write_fail=0
16328 ac_clean_files_save=$ac_clean_files
16329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16331 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16332 as_write_fail=0
16333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16334 #! $SHELL
16335 # Generated by $as_me.
16336 # Run this file to recreate the current configuration.
16337 # Compiler output produced by configure, useful for debugging
16338 # configure, is in config.log if it exists.
16339
16340 debug=false
16341 ac_cs_recheck=false
16342 ac_cs_silent=false
16343
16344 SHELL=\${CONFIG_SHELL-$SHELL}
16345 export SHELL
16346 _ASEOF
16347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16348 ## -------------------- ##
16349 ## M4sh Initialization. ##
16350 ## -------------------- ##
16351
16352 # Be more Bourne compatible
16353 DUALCASE=1; export DUALCASE # for MKS sh
16354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16355 emulate sh
16356 NULLCMD=:
16357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16358 # is contrary to our usage. Disable this feature.
16359 alias -g '${1+"$@"}'='"$@"'
16360 setopt NO_GLOB_SUBST
16361 else
16362 case `(set -o) 2>/dev/null` in #(
16363 *posix*) :
16364 set -o posix ;; #(
16365 *) :
16366 ;;
16367 esac
16368 fi
16369
16370
16371 as_nl='
16372 '
16373 export as_nl
16374 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16375 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16378 # Prefer a ksh shell builtin over an external printf program on Solaris,
16379 # but without wasting forks for bash or zsh.
16380 if test -z "$BASH_VERSION$ZSH_VERSION" \
16381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16382 as_echo='print -r --'
16383 as_echo_n='print -rn --'
16384 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16385 as_echo='printf %s\n'
16386 as_echo_n='printf %s'
16387 else
16388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16390 as_echo_n='/usr/ucb/echo -n'
16391 else
16392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16393 as_echo_n_body='eval
16394 arg=$1;
16395 case $arg in #(
16396 *"$as_nl"*)
16397 expr "X$arg" : "X\\(.*\\)$as_nl";
16398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16399 esac;
16400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16401 '
16402 export as_echo_n_body
16403 as_echo_n='sh -c $as_echo_n_body as_echo'
16404 fi
16405 export as_echo_body
16406 as_echo='sh -c $as_echo_body as_echo'
16407 fi
16408
16409 # The user is always right.
16410 if test "${PATH_SEPARATOR+set}" != set; then
16411 PATH_SEPARATOR=:
16412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16414 PATH_SEPARATOR=';'
16415 }
16416 fi
16417
16418
16419 # IFS
16420 # We need space, tab and new line, in precisely that order. Quoting is
16421 # there to prevent editors from complaining about space-tab.
16422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16423 # splitting by setting IFS to empty value.)
16424 IFS=" "" $as_nl"
16425
16426 # Find who we are. Look in the path if we contain no directory separator.
16427 as_myself=
16428 case $0 in #((
16429 *[\\/]* ) as_myself=$0 ;;
16430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431 for as_dir in $PATH
16432 do
16433 IFS=$as_save_IFS
16434 test -z "$as_dir" && as_dir=.
16435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16436 done
16437 IFS=$as_save_IFS
16438
16439 ;;
16440 esac
16441 # We did not find ourselves, most probably we were run as `sh COMMAND'
16442 # in which case we are not to be found in the path.
16443 if test "x$as_myself" = x; then
16444 as_myself=$0
16445 fi
16446 if test ! -f "$as_myself"; then
16447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16448 exit 1
16449 fi
16450
16451 # Unset variables that we do not need and which cause bugs (e.g. in
16452 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16453 # suppresses any "Segmentation fault" message there. '((' could
16454 # trigger a bug in pdksh 5.2.14.
16455 for as_var in BASH_ENV ENV MAIL MAILPATH
16456 do eval test x\${$as_var+set} = xset \
16457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16458 done
16459 PS1='$ '
16460 PS2='> '
16461 PS4='+ '
16462
16463 # NLS nuisances.
16464 LC_ALL=C
16465 export LC_ALL
16466 LANGUAGE=C
16467 export LANGUAGE
16468
16469 # CDPATH.
16470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16471
16472
16473 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16474 # ----------------------------------------
16475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16477 # script with STATUS, using 1 if that was 0.
16478 as_fn_error ()
16479 {
16480 as_status=$1; test $as_status -eq 0 && as_status=1
16481 if test "$4"; then
16482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16484 fi
16485 $as_echo "$as_me: error: $2" >&2
16486 as_fn_exit $as_status
16487 } # as_fn_error
16488
16489
16490 # as_fn_set_status STATUS
16491 # -----------------------
16492 # Set $? to STATUS, without forking.
16493 as_fn_set_status ()
16494 {
16495 return $1
16496 } # as_fn_set_status
16497
16498 # as_fn_exit STATUS
16499 # -----------------
16500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16501 as_fn_exit ()
16502 {
16503 set +e
16504 as_fn_set_status $1
16505 exit $1
16506 } # as_fn_exit
16507
16508 # as_fn_unset VAR
16509 # ---------------
16510 # Portably unset VAR.
16511 as_fn_unset ()
16512 {
16513 { eval $1=; unset $1;}
16514 }
16515 as_unset=as_fn_unset
16516 # as_fn_append VAR VALUE
16517 # ----------------------
16518 # Append the text in VALUE to the end of the definition contained in VAR. Take
16519 # advantage of any shell optimizations that allow amortized linear growth over
16520 # repeated appends, instead of the typical quadratic growth present in naive
16521 # implementations.
16522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16523 eval 'as_fn_append ()
16524 {
16525 eval $1+=\$2
16526 }'
16527 else
16528 as_fn_append ()
16529 {
16530 eval $1=\$$1\$2
16531 }
16532 fi # as_fn_append
16533
16534 # as_fn_arith ARG...
16535 # ------------------
16536 # Perform arithmetic evaluation on the ARGs, and store the result in the
16537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16538 # must be portable across $(()) and expr.
16539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16540 eval 'as_fn_arith ()
16541 {
16542 as_val=$(( $* ))
16543 }'
16544 else
16545 as_fn_arith ()
16546 {
16547 as_val=`expr "$@" || test $? -eq 1`
16548 }
16549 fi # as_fn_arith
16550
16551
16552 if expr a : '\(a\)' >/dev/null 2>&1 &&
16553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16554 as_expr=expr
16555 else
16556 as_expr=false
16557 fi
16558
16559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16560 as_basename=basename
16561 else
16562 as_basename=false
16563 fi
16564
16565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16566 as_dirname=dirname
16567 else
16568 as_dirname=false
16569 fi
16570
16571 as_me=`$as_basename -- "$0" ||
16572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16573 X"$0" : 'X\(//\)$' \| \
16574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16575 $as_echo X/"$0" |
16576 sed '/^.*\/\([^/][^/]*\)\/*$/{
16577 s//\1/
16578 q
16579 }
16580 /^X\/\(\/\/\)$/{
16581 s//\1/
16582 q
16583 }
16584 /^X\/\(\/\).*/{
16585 s//\1/
16586 q
16587 }
16588 s/.*/./; q'`
16589
16590 # Avoid depending upon Character Ranges.
16591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16594 as_cr_digits='0123456789'
16595 as_cr_alnum=$as_cr_Letters$as_cr_digits
16596
16597 ECHO_C= ECHO_N= ECHO_T=
16598 case `echo -n x` in #(((((
16599 -n*)
16600 case `echo 'xy\c'` in
16601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16602 xy) ECHO_C='\c';;
16603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16604 ECHO_T=' ';;
16605 esac;;
16606 *)
16607 ECHO_N='-n';;
16608 esac
16609
16610 rm -f conf$$ conf$$.exe conf$$.file
16611 if test -d conf$$.dir; then
16612 rm -f conf$$.dir/conf$$.file
16613 else
16614 rm -f conf$$.dir
16615 mkdir conf$$.dir 2>/dev/null
16616 fi
16617 if (echo >conf$$.file) 2>/dev/null; then
16618 if ln -s conf$$.file conf$$ 2>/dev/null; then
16619 as_ln_s='ln -s'
16620 # ... but there are two gotchas:
16621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16623 # In both cases, we have to default to `cp -pR'.
16624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16625 as_ln_s='cp -pR'
16626 elif ln conf$$.file conf$$ 2>/dev/null; then
16627 as_ln_s=ln
16628 else
16629 as_ln_s='cp -pR'
16630 fi
16631 else
16632 as_ln_s='cp -pR'
16633 fi
16634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16635 rmdir conf$$.dir 2>/dev/null
16636
16637
16638 # as_fn_mkdir_p
16639 # -------------
16640 # Create "$as_dir" as a directory, including parents if necessary.
16641 as_fn_mkdir_p ()
16642 {
16643
16644 case $as_dir in #(
16645 -*) as_dir=./$as_dir;;
16646 esac
16647 test -d "$as_dir" || eval $as_mkdir_p || {
16648 as_dirs=
16649 while :; do
16650 case $as_dir in #(
16651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16652 *) as_qdir=$as_dir;;
16653 esac
16654 as_dirs="'$as_qdir' $as_dirs"
16655 as_dir=`$as_dirname -- "$as_dir" ||
16656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16657 X"$as_dir" : 'X\(//\)[^/]' \| \
16658 X"$as_dir" : 'X\(//\)$' \| \
16659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16660 $as_echo X"$as_dir" |
16661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16662 s//\1/
16663 q
16664 }
16665 /^X\(\/\/\)[^/].*/{
16666 s//\1/
16667 q
16668 }
16669 /^X\(\/\/\)$/{
16670 s//\1/
16671 q
16672 }
16673 /^X\(\/\).*/{
16674 s//\1/
16675 q
16676 }
16677 s/.*/./; q'`
16678 test -d "$as_dir" && break
16679 done
16680 test -z "$as_dirs" || eval "mkdir $as_dirs"
16681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16682
16683
16684 } # as_fn_mkdir_p
16685 if mkdir -p . 2>/dev/null; then
16686 as_mkdir_p='mkdir -p "$as_dir"'
16687 else
16688 test -d ./-p && rmdir ./-p
16689 as_mkdir_p=false
16690 fi
16691
16692
16693 # as_fn_executable_p FILE
16694 # -----------------------
16695 # Test if FILE is an executable regular file.
16696 as_fn_executable_p ()
16697 {
16698 test -f "$1" && test -x "$1"
16699 } # as_fn_executable_p
16700 as_test_x='test -x'
16701 as_executable_p=as_fn_executable_p
16702
16703 # Sed expression to map a string onto a valid CPP name.
16704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16705
16706 # Sed expression to map a string onto a valid variable name.
16707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16708
16709
16710 exec 6>&1
16711 ## ----------------------------------- ##
16712 ## Main body of $CONFIG_STATUS script. ##
16713 ## ----------------------------------- ##
16714 _ASEOF
16715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16716
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16718 # Save the log message, to keep $0 and so on meaningful, and to
16719 # report actual input values of CONFIG_FILES etc. instead of their
16720 # values after options handling.
16721 ac_log="
16722 This file was extended by OpenCity $as_me 0.0.6.5stable, which was
16723 generated by GNU Autoconf 2.69. Invocation command line was
16724
16725 CONFIG_FILES = $CONFIG_FILES
16726 CONFIG_HEADERS = $CONFIG_HEADERS
16727 CONFIG_LINKS = $CONFIG_LINKS
16728 CONFIG_COMMANDS = $CONFIG_COMMANDS
16729 $ $0 $@
16730
16731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16732 "
16733
16734 _ACEOF
16735
16736 case $ac_config_files in *"
16737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16738 esac
16739
16740 case $ac_config_headers in *"
16741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16742 esac
16743
16744
16745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16746 # Files that config.status was made for.
16747 config_files="$ac_config_files"
16748 config_headers="$ac_config_headers"
16749 config_commands="$ac_config_commands"
16750
16751 _ACEOF
16752
16753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754 ac_cs_usage="\
16755 \`$as_me' instantiates files and other configuration actions
16756 from templates according to the current configuration. Unless the files
16757 and actions are specified as TAGs, all are instantiated by default.
16758
16759 Usage: $0 [OPTION]... [TAG]...
16760
16761 -h, --help print this help, then exit
16762 -V, --version print version number and configuration settings, then exit
16763 --config print configuration, then exit
16764 -q, --quiet, --silent
16765 do not print progress messages
16766 -d, --debug don't remove temporary files
16767 --recheck update $as_me by reconfiguring in the same conditions
16768 --file=FILE[:TEMPLATE]
16769 instantiate the configuration file FILE
16770 --header=FILE[:TEMPLATE]
16771 instantiate the configuration header FILE
16772
16773 Configuration files:
16774 $config_files
16775
16776 Configuration headers:
16777 $config_headers
16778
16779 Configuration commands:
16780 $config_commands
16781
16782 Report bugs to the package provider."
16783
16784 _ACEOF
16785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16787 ac_cs_version="\\
16788 OpenCity config.status 0.0.6.5stable
16789 configured by $0, generated by GNU Autoconf 2.69,
16790 with options \\"\$ac_cs_config\\"
16791
16792 Copyright (C) 2012 Free Software Foundation, Inc.
16793 This config.status script is free software; the Free Software Foundation
16794 gives unlimited permission to copy, distribute and modify it."
16795
16796 ac_pwd='$ac_pwd'
16797 srcdir='$srcdir'
16798 INSTALL='$INSTALL'
16799 MKDIR_P='$MKDIR_P'
16800 AWK='$AWK'
16801 test -n "\$AWK" || AWK=awk
16802 _ACEOF
16803
16804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805 # The default lists apply if the user does not specify any file.
16806 ac_need_defaults=:
16807 while test $# != 0
16808 do
16809 case $1 in
16810 --*=?*)
16811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16813 ac_shift=:
16814 ;;
16815 --*=)
16816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16817 ac_optarg=
16818 ac_shift=:
16819 ;;
16820 *)
16821 ac_option=$1
16822 ac_optarg=$2
16823 ac_shift=shift
16824 ;;
16825 esac
16826
16827 case $ac_option in
16828 # Handling of the options.
16829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16830 ac_cs_recheck=: ;;
16831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16832 $as_echo "$ac_cs_version"; exit ;;
16833 --config | --confi | --conf | --con | --co | --c )
16834 $as_echo "$ac_cs_config"; exit ;;
16835 --debug | --debu | --deb | --de | --d | -d )
16836 debug=: ;;
16837 --file | --fil | --fi | --f )
16838 $ac_shift
16839 case $ac_optarg in
16840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16841 '') as_fn_error $? "missing file argument" ;;
16842 esac
16843 as_fn_append CONFIG_FILES " '$ac_optarg'"
16844 ac_need_defaults=false;;
16845 --header | --heade | --head | --hea )
16846 $ac_shift
16847 case $ac_optarg in
16848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16849 esac
16850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16851 ac_need_defaults=false;;
16852 --he | --h)
16853 # Conflict between --help and --header
16854 as_fn_error $? "ambiguous option: \`$1'
16855 Try \`$0 --help' for more information.";;
16856 --help | --hel | -h )
16857 $as_echo "$ac_cs_usage"; exit ;;
16858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16860 ac_cs_silent=: ;;
16861
16862 # This is an error.
16863 -*) as_fn_error $? "unrecognized option: \`$1'
16864 Try \`$0 --help' for more information." ;;
16865
16866 *) as_fn_append ac_config_targets " $1"
16867 ac_need_defaults=false ;;
16868
16869 esac
16870 shift
16871 done
16872
16873 ac_configure_extra_args=
16874
16875 if $ac_cs_silent; then
16876 exec 6>/dev/null
16877 ac_configure_extra_args="$ac_configure_extra_args --silent"
16878 fi
16879
16880 _ACEOF
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 if \$ac_cs_recheck; then
16883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16884 shift
16885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16886 CONFIG_SHELL='$SHELL'
16887 export CONFIG_SHELL
16888 exec "\$@"
16889 fi
16890
16891 _ACEOF
16892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16893 exec 5>>config.log
16894 {
16895 echo
16896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16897 ## Running $as_me. ##
16898 _ASBOX
16899 $as_echo "$ac_log"
16900 } >&5
16901
16902 _ACEOF
16903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16904 #
16905 # INIT-COMMANDS
16906 #
16907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16908
16909
16910 # The HP-UX ksh and POSIX shell print the target directory to stdout
16911 # if CDPATH is set.
16912 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16913
16914 sed_quote_subst='$sed_quote_subst'
16915 double_quote_subst='$double_quote_subst'
16916 delay_variable_subst='$delay_variable_subst'
16917 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16918 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16919 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16920 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16921 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16922 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16923 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16924 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16925 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16926 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16927 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16928 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16929 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16930 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16931 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16932 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16933 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16934 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16935 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16936 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16937 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16938 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16939 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16940 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16941 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16942 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16943 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16944 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16945 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16946 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16947 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16948 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16949 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16950 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16951 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16952 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16953 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16954 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16955 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16956 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16957 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16958 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16959 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16972 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16973 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"`'
16974 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16975 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16976 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16977 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16978 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16979 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16980 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16981 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16982 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16983 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16984 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16985 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16986 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16987 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16988 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16989 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16990 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16991 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16992 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16993 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16994 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16995 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16996 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16997 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16998 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16999 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17000 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17001 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17002 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17003 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17004 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17005 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17006 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17007 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17008 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17009 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17010 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17011 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17012 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17013 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17014 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17015 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17016 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17017 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17018 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17019 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17020 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17021 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17022 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17023 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17024 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17025 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17026 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17027 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17028 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17029 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17030 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17031 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17032 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17033 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17034 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17035 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17036 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17037 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17038 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17039 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17040 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17041 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17042 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17043 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17044 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17045 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17046 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17047 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17048 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17049 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17050 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17051 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17052 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17053 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17054 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17055 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17056 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17057 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17058 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17059 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17060 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17061 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17062 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17063 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17064 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17065 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17066 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17067 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17068 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17069 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17070 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17071 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17072 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17073 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17074 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17075 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17076 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17077 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17078 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17079 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17080 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17081 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17082 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17083 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17084 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17085 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17086 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17087 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17088 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17089 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17090 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17091 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17092 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17093 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17094 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17095 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17096 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17097 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17098 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17099 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17100 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17101
17102 LTCC='$LTCC'
17103 LTCFLAGS='$LTCFLAGS'
17104 compiler='$compiler_DEFAULT'
17105
17106 # A function that is used when there is no print builtin or printf.
17107 func_fallback_echo ()
17108 {
17109 eval 'cat <<_LTECHO_EOF
17110 \$1
17111 _LTECHO_EOF'
17112 }
17113
17114 # Quote evaled strings.
17115 for var in SHELL \
17116 ECHO \
17117 PATH_SEPARATOR \
17118 SED \
17119 GREP \
17120 EGREP \
17121 FGREP \
17122 LD \
17123 NM \
17124 LN_S \
17125 lt_SP2NL \
17126 lt_NL2SP \
17127 reload_flag \
17128 OBJDUMP \
17129 deplibs_check_method \
17130 file_magic_cmd \
17131 file_magic_glob \
17132 want_nocaseglob \
17133 DLLTOOL \
17134 sharedlib_from_linklib_cmd \
17135 AR \
17136 AR_FLAGS \
17137 archiver_list_spec \
17138 STRIP \
17139 RANLIB \
17140 CC \
17141 CFLAGS \
17142 compiler \
17143 lt_cv_sys_global_symbol_pipe \
17144 lt_cv_sys_global_symbol_to_cdecl \
17145 lt_cv_sys_global_symbol_to_c_name_address \
17146 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17147 nm_file_list_spec \
17148 lt_prog_compiler_no_builtin_flag \
17149 lt_prog_compiler_pic \
17150 lt_prog_compiler_wl \
17151 lt_prog_compiler_static \
17152 lt_cv_prog_compiler_c_o \
17153 need_locks \
17154 MANIFEST_TOOL \
17155 DSYMUTIL \
17156 NMEDIT \
17157 LIPO \
17158 OTOOL \
17159 OTOOL64 \
17160 shrext_cmds \
17161 export_dynamic_flag_spec \
17162 whole_archive_flag_spec \
17163 compiler_needs_object \
17164 with_gnu_ld \
17165 allow_undefined_flag \
17166 no_undefined_flag \
17167 hardcode_libdir_flag_spec \
17168 hardcode_libdir_separator \
17169 exclude_expsyms \
17170 include_expsyms \
17171 file_list_spec \
17172 variables_saved_for_relink \
17173 libname_spec \
17174 library_names_spec \
17175 soname_spec \
17176 install_override_mode \
17177 finish_eval \
17178 old_striplib \
17179 striplib \
17180 compiler_lib_search_dirs \
17181 predep_objects \
17182 postdep_objects \
17183 predeps \
17184 postdeps \
17185 compiler_lib_search_path \
17186 LD_CXX \
17187 reload_flag_CXX \
17188 compiler_CXX \
17189 lt_prog_compiler_no_builtin_flag_CXX \
17190 lt_prog_compiler_pic_CXX \
17191 lt_prog_compiler_wl_CXX \
17192 lt_prog_compiler_static_CXX \
17193 lt_cv_prog_compiler_c_o_CXX \
17194 export_dynamic_flag_spec_CXX \
17195 whole_archive_flag_spec_CXX \
17196 compiler_needs_object_CXX \
17197 with_gnu_ld_CXX \
17198 allow_undefined_flag_CXX \
17199 no_undefined_flag_CXX \
17200 hardcode_libdir_flag_spec_CXX \
17201 hardcode_libdir_separator_CXX \
17202 exclude_expsyms_CXX \
17203 include_expsyms_CXX \
17204 file_list_spec_CXX \
17205 compiler_lib_search_dirs_CXX \
17206 predep_objects_CXX \
17207 postdep_objects_CXX \
17208 predeps_CXX \
17209 postdeps_CXX \
17210 compiler_lib_search_path_CXX; do
17211 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17212 *[\\\\\\\`\\"\\\$]*)
17213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17214 ;;
17215 *)
17216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17217 ;;
17218 esac
17219 done
17220
17221 # Double-quote double-evaled strings.
17222 for var in reload_cmds \
17223 old_postinstall_cmds \
17224 old_postuninstall_cmds \
17225 old_archive_cmds \
17226 extract_expsyms_cmds \
17227 old_archive_from_new_cmds \
17228 old_archive_from_expsyms_cmds \
17229 archive_cmds \
17230 archive_expsym_cmds \
17231 module_cmds \
17232 module_expsym_cmds \
17233 export_symbols_cmds \
17234 prelink_cmds \
17235 postlink_cmds \
17236 postinstall_cmds \
17237 postuninstall_cmds \
17238 finish_cmds \
17239 sys_lib_search_path_spec \
17240 sys_lib_dlsearch_path_spec \
17241 reload_cmds_CXX \
17242 old_archive_cmds_CXX \
17243 old_archive_from_new_cmds_CXX \
17244 old_archive_from_expsyms_cmds_CXX \
17245 archive_cmds_CXX \
17246 archive_expsym_cmds_CXX \
17247 module_cmds_CXX \
17248 module_expsym_cmds_CXX \
17249 export_symbols_cmds_CXX \
17250 prelink_cmds_CXX \
17251 postlink_cmds_CXX; do
17252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17253 *[\\\\\\\`\\"\\\$]*)
17254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17255 ;;
17256 *)
17257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17258 ;;
17259 esac
17260 done
17261
17262 ac_aux_dir='$ac_aux_dir'
17263 xsi_shell='$xsi_shell'
17264 lt_shell_append='$lt_shell_append'
17265
17266 # See if we are running on zsh, and set the options which allow our
17267 # commands through without removal of \ escapes INIT.
17268 if test -n "\${ZSH_VERSION+set}" ; then
17269 setopt NO_GLOB_SUBST
17270 fi
17271
17272
17273 PACKAGE='$PACKAGE'
17274 VERSION='$VERSION'
17275 TIMESTAMP='$TIMESTAMP'
17276 RM='$RM'
17277 ofile='$ofile'
17278
17279
17280
17281
17282
17283
17284 _ACEOF
17285
17286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287
17288 # Handling of arguments.
17289 for ac_config_target in $ac_config_targets
17290 do
17291 case $ac_config_target in
17292 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17293 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17294 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17295 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
17296 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17297 "map/Makefile") CONFIG_FILES="$CONFIG_FILES map/Makefile" ;;
17298 "map/heightmap/Makefile") CONFIG_FILES="$CONFIG_FILES map/heightmap/Makefile" ;;
17299 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
17300 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17301 "src/binreloc/Makefile") CONFIG_FILES="$CONFIG_FILES src/binreloc/Makefile" ;;
17302 "src/enum/Makefile") CONFIG_FILES="$CONFIG_FILES src/enum/Makefile" ;;
17303 "src/framework/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/Makefile" ;;
17304 "src/framework/System/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/System/Makefile" ;;
17305 "src/framework/System/Information/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/System/Information/Makefile" ;;
17306 "src/framework/System/Information/Software/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/System/Information/Software/Makefile" ;;
17307 "src/framework/System/Reflection/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/System/Reflection/Makefile" ;;
17308 "src/mapgen/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapgen/Makefile" ;;
17309 "src/mas/Makefile") CONFIG_FILES="$CONFIG_FILES src/mas/Makefile" ;;
17310 "src/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/model/Makefile" ;;
17311 "src/networking/Makefile") CONFIG_FILES="$CONFIG_FILES src/networking/Makefile" ;;
17312 "src/pngfuncs/Makefile") CONFIG_FILES="$CONFIG_FILES src/pngfuncs/Makefile" ;;
17313 "src/simulator/Makefile") CONFIG_FILES="$CONFIG_FILES src/simulator/Makefile" ;;
17314 "src/structure/Makefile") CONFIG_FILES="$CONFIG_FILES src/structure/Makefile" ;;
17315 "src/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES src/tinyxml/Makefile" ;;
17316 "src/tinyxpath/Makefile") CONFIG_FILES="$CONFIG_FILES src/tinyxpath/Makefile" ;;
17317 "src/triangulation/Makefile") CONFIG_FILES="$CONFIG_FILES src/triangulation/Makefile" ;;
17318 "viewer/Makefile") CONFIG_FILES="$CONFIG_FILES viewer/Makefile" ;;
17319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17320
17321 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17322 esac
17323 done
17324
17325
17326 # If the user did not use the arguments to specify the items to instantiate,
17327 # then the envvar interface is used. Set only those that are not.
17328 # We use the long form for the default assignment because of an extremely
17329 # bizarre bug on SunOS 4.1.3.
17330 if $ac_need_defaults; then
17331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17334 fi
17335
17336 # Have a temporary directory for convenience. Make it in the build tree
17337 # simply because there is no reason against having it here, and in addition,
17338 # creating and moving files from /tmp can sometimes cause problems.
17339 # Hook for its removal unless debugging.
17340 # Note that there is a small window in which the directory will not be cleaned:
17341 # after its creation but before its name has been assigned to `$tmp'.
17342 $debug ||
17343 {
17344 tmp= ac_tmp=
17345 trap 'exit_status=$?
17346 : "${ac_tmp:=$tmp}"
17347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17348 ' 0
17349 trap 'as_fn_exit 1' 1 2 13 15
17350 }
17351 # Create a (secure) tmp directory for tmp files.
17352
17353 {
17354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17355 test -d "$tmp"
17356 } ||
17357 {
17358 tmp=./conf$$-$RANDOM
17359 (umask 077 && mkdir "$tmp")
17360 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17361 ac_tmp=$tmp
17362
17363 # Set up the scripts for CONFIG_FILES section.
17364 # No need to generate them if there are no CONFIG_FILES.
17365 # This happens for instance with `./config.status config.h'.
17366 if test -n "$CONFIG_FILES"; then
17367
17368
17369 ac_cr=`echo X | tr X '\015'`
17370 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17371 # But we know of no other shell where ac_cr would be empty at this
17372 # point, so we can use a bashism as a fallback.
17373 if test "x$ac_cr" = x; then
17374 eval ac_cr=\$\'\\r\'
17375 fi
17376 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17377 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17378 ac_cs_awk_cr='\\r'
17379 else
17380 ac_cs_awk_cr=$ac_cr
17381 fi
17382
17383 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17384 _ACEOF
17385
17386
17387 {
17388 echo "cat >conf$$subs.awk <<_ACEOF" &&
17389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17390 echo "_ACEOF"
17391 } >conf$$subs.sh ||
17392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17394 ac_delim='%!_!# '
17395 for ac_last_try in false false false false false :; do
17396 . ./conf$$subs.sh ||
17397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17398
17399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17400 if test $ac_delim_n = $ac_delim_num; then
17401 break
17402 elif $ac_last_try; then
17403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17404 else
17405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17406 fi
17407 done
17408 rm -f conf$$subs.sh
17409
17410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17412 _ACEOF
17413 sed -n '
17414 h
17415 s/^/S["/; s/!.*/"]=/
17416 p
17417 g
17418 s/^[^!]*!//
17419 :repl
17420 t repl
17421 s/'"$ac_delim"'$//
17422 t delim
17423 :nl
17424 h
17425 s/\(.\{148\}\)..*/\1/
17426 t more1
17427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17428 p
17429 n
17430 b repl
17431 :more1
17432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17433 p
17434 g
17435 s/.\{148\}//
17436 t nl
17437 :delim
17438 h
17439 s/\(.\{148\}\)..*/\1/
17440 t more2
17441 s/["\\]/\\&/g; s/^/"/; s/$/"/
17442 p
17443 b
17444 :more2
17445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17446 p
17447 g
17448 s/.\{148\}//
17449 t delim
17450 ' <conf$$subs.awk | sed '
17451 /^[^""]/{
17452 N
17453 s/\n//
17454 }
17455 ' >>$CONFIG_STATUS || ac_write_fail=1
17456 rm -f conf$$subs.awk
17457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17458 _ACAWK
17459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17460 for (key in S) S_is_set[key] = 1
17461 FS = ""
17462
17463 }
17464 {
17465 line = $ 0
17466 nfields = split(line, field, "@")
17467 substed = 0
17468 len = length(field[1])
17469 for (i = 2; i < nfields; i++) {
17470 key = field[i]
17471 keylen = length(key)
17472 if (S_is_set[key]) {
17473 value = S[key]
17474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17475 len += length(value) + length(field[++i])
17476 substed = 1
17477 } else
17478 len += 1 + keylen
17479 }
17480
17481 print line
17482 }
17483
17484 _ACAWK
17485 _ACEOF
17486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17487 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17489 else
17490 cat
17491 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17493 _ACEOF
17494
17495 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17496 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17497 # trailing colons and then remove the whole line if VPATH becomes empty
17498 # (actually we leave an empty line to preserve line numbers).
17499 if test "x$srcdir" = x.; then
17500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17501 h
17502 s///
17503 s/^/:/
17504 s/[ ]*$/:/
17505 s/:\$(srcdir):/:/g
17506 s/:\${srcdir}:/:/g
17507 s/:@srcdir@:/:/g
17508 s/^:*//
17509 s/:*$//
17510 x
17511 s/\(=[ ]*\).*/\1/
17512 G
17513 s/\n//
17514 s/^[^=]*=[ ]*$//
17515 }'
17516 fi
17517
17518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519 fi # test -n "$CONFIG_FILES"
17520
17521 # Set up the scripts for CONFIG_HEADERS section.
17522 # No need to generate them if there are no CONFIG_HEADERS.
17523 # This happens for instance with `./config.status Makefile'.
17524 if test -n "$CONFIG_HEADERS"; then
17525 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17526 BEGIN {
17527 _ACEOF
17528
17529 # Transform confdefs.h into an awk script `defines.awk', embedded as
17530 # here-document in config.status, that substitutes the proper values into
17531 # config.h.in to produce config.h.
17532
17533 # Create a delimiter string that does not exist in confdefs.h, to ease
17534 # handling of long lines.
17535 ac_delim='%!_!# '
17536 for ac_last_try in false false :; do
17537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17538 if test -z "$ac_tt"; then
17539 break
17540 elif $ac_last_try; then
17541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17542 else
17543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17544 fi
17545 done
17546
17547 # For the awk script, D is an array of macro values keyed by name,
17548 # likewise P contains macro parameters if any. Preserve backslash
17549 # newline sequences.
17550
17551 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17552 sed -n '
17553 s/.\{148\}/&'"$ac_delim"'/g
17554 t rset
17555 :rset
17556 s/^[ ]*#[ ]*define[ ][ ]*/ /
17557 t def
17558 d
17559 :def
17560 s/\\$//
17561 t bsnl
17562 s/["\\]/\\&/g
17563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17564 D["\1"]=" \3"/p
17565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17566 d
17567 :bsnl
17568 s/["\\]/\\&/g
17569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17570 D["\1"]=" \3\\\\\\n"\\/p
17571 t cont
17572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17573 t cont
17574 d
17575 :cont
17576 n
17577 s/.\{148\}/&'"$ac_delim"'/g
17578 t clear
17579 :clear
17580 s/\\$//
17581 t bsnlc
17582 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17583 d
17584 :bsnlc
17585 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17586 b cont
17587 ' <confdefs.h | sed '
17588 s/'"$ac_delim"'/"\\\
17589 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17590
17591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17592 for (key in D) D_is_set[key] = 1
17593 FS = ""
17594 }
17595 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17596 line = \$ 0
17597 split(line, arg, " ")
17598 if (arg[1] == "#") {
17599 defundef = arg[2]
17600 mac1 = arg[3]
17601 } else {
17602 defundef = substr(arg[1], 2)
17603 mac1 = arg[2]
17604 }
17605 split(mac1, mac2, "(") #)
17606 macro = mac2[1]
17607 prefix = substr(line, 1, index(line, defundef) - 1)
17608 if (D_is_set[macro]) {
17609 # Preserve the white space surrounding the "#".
17610 print prefix "define", macro P[macro] D[macro]
17611 next
17612 } else {
17613 # Replace #undef with comments. This is necessary, for example,
17614 # in the case of _POSIX_SOURCE, which is predefined and required
17615 # on some systems where configure will not decide to define it.
17616 if (defundef == "undef") {
17617 print "/*", prefix defundef, macro, "*/"
17618 next
17619 }
17620 }
17621 }
17622 { print }
17623 _ACAWK
17624 _ACEOF
17625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17627 fi # test -n "$CONFIG_HEADERS"
17628
17629
17630 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17631 shift
17632 for ac_tag
17633 do
17634 case $ac_tag in
17635 :[FHLC]) ac_mode=$ac_tag; continue;;
17636 esac
17637 case $ac_mode$ac_tag in
17638 :[FHL]*:*);;
17639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17640 :[FH]-) ac_tag=-:-;;
17641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17642 esac
17643 ac_save_IFS=$IFS
17644 IFS=:
17645 set x $ac_tag
17646 IFS=$ac_save_IFS
17647 shift
17648 ac_file=$1
17649 shift
17650
17651 case $ac_mode in
17652 :L) ac_source=$1;;
17653 :[FH])
17654 ac_file_inputs=
17655 for ac_f
17656 do
17657 case $ac_f in
17658 -) ac_f="$ac_tmp/stdin";;
17659 *) # Look for the file first in the build tree, then in the source tree
17660 # (if the path is not absolute). The absolute path cannot be DOS-style,
17661 # because $ac_f cannot contain `:'.
17662 test -f "$ac_f" ||
17663 case $ac_f in
17664 [\\/$]*) false;;
17665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17666 esac ||
17667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17668 esac
17669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17670 as_fn_append ac_file_inputs " '$ac_f'"
17671 done
17672
17673 # Let's still pretend it is `configure' which instantiates (i.e., don't
17674 # use $as_me), people would be surprised to read:
17675 # /* config.h. Generated by config.status. */
17676 configure_input='Generated from '`
17677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17678 `' by configure.'
17679 if test x"$ac_file" != x-; then
17680 configure_input="$ac_file. $configure_input"
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17682 $as_echo "$as_me: creating $ac_file" >&6;}
17683 fi
17684 # Neutralize special characters interpreted by sed in replacement strings.
17685 case $configure_input in #(
17686 *\&* | *\|* | *\\* )
17687 ac_sed_conf_input=`$as_echo "$configure_input" |
17688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17689 *) ac_sed_conf_input=$configure_input;;
17690 esac
17691
17692 case $ac_tag in
17693 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17695 esac
17696 ;;
17697 esac
17698
17699 ac_dir=`$as_dirname -- "$ac_file" ||
17700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17701 X"$ac_file" : 'X\(//\)[^/]' \| \
17702 X"$ac_file" : 'X\(//\)$' \| \
17703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17704 $as_echo X"$ac_file" |
17705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17706 s//\1/
17707 q
17708 }
17709 /^X\(\/\/\)[^/].*/{
17710 s//\1/
17711 q
17712 }
17713 /^X\(\/\/\)$/{
17714 s//\1/
17715 q
17716 }
17717 /^X\(\/\).*/{
17718 s//\1/
17719 q
17720 }
17721 s/.*/./; q'`
17722 as_dir="$ac_dir"; as_fn_mkdir_p
17723 ac_builddir=.
17724
17725 case "$ac_dir" in
17726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17727 *)
17728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17729 # A ".." for each directory in $ac_dir_suffix.
17730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17731 case $ac_top_builddir_sub in
17732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17734 esac ;;
17735 esac
17736 ac_abs_top_builddir=$ac_pwd
17737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17738 # for backward compatibility:
17739 ac_top_builddir=$ac_top_build_prefix
17740
17741 case $srcdir in
17742 .) # We are building in place.
17743 ac_srcdir=.
17744 ac_top_srcdir=$ac_top_builddir_sub
17745 ac_abs_top_srcdir=$ac_pwd ;;
17746 [\\/]* | ?:[\\/]* ) # Absolute name.
17747 ac_srcdir=$srcdir$ac_dir_suffix;
17748 ac_top_srcdir=$srcdir
17749 ac_abs_top_srcdir=$srcdir ;;
17750 *) # Relative name.
17751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17752 ac_top_srcdir=$ac_top_build_prefix$srcdir
17753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17754 esac
17755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17756
17757
17758 case $ac_mode in
17759 :F)
17760 #
17761 # CONFIG_FILE
17762 #
17763
17764 case $INSTALL in
17765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17767 esac
17768 ac_MKDIR_P=$MKDIR_P
17769 case $MKDIR_P in
17770 [\\/$]* | ?:[\\/]* ) ;;
17771 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17772 esac
17773 _ACEOF
17774
17775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17776 # If the template does not know about datarootdir, expand it.
17777 # FIXME: This hack should be removed a few years after 2.60.
17778 ac_datarootdir_hack=; ac_datarootdir_seen=
17779 ac_sed_dataroot='
17780 /datarootdir/ {
17781 p
17782 q
17783 }
17784 /@datadir@/p
17785 /@docdir@/p
17786 /@infodir@/p
17787 /@localedir@/p
17788 /@mandir@/p'
17789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17790 *datarootdir*) ac_datarootdir_seen=yes;;
17791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17794 _ACEOF
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 ac_datarootdir_hack='
17797 s&@datadir@&$datadir&g
17798 s&@docdir@&$docdir&g
17799 s&@infodir@&$infodir&g
17800 s&@localedir@&$localedir&g
17801 s&@mandir@&$mandir&g
17802 s&\\\${datarootdir}&$datarootdir&g' ;;
17803 esac
17804 _ACEOF
17805
17806 # Neutralize VPATH when `$srcdir' = `.'.
17807 # Shell code in configure.ac might set extrasub.
17808 # FIXME: do we really want to maintain this feature?
17809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810 ac_sed_extra="$ac_vpsub
17811 $extrasub
17812 _ACEOF
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 :t
17815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17816 s|@configure_input@|$ac_sed_conf_input|;t t
17817 s&@top_builddir@&$ac_top_builddir_sub&;t t
17818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17819 s&@srcdir@&$ac_srcdir&;t t
17820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17821 s&@top_srcdir@&$ac_top_srcdir&;t t
17822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17823 s&@builddir@&$ac_builddir&;t t
17824 s&@abs_builddir@&$ac_abs_builddir&;t t
17825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17826 s&@INSTALL@&$ac_INSTALL&;t t
17827 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17828 $ac_datarootdir_hack
17829 "
17830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17831 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17832
17833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17834 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17836 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17838 which seems to be undefined. Please make sure it is defined" >&5
17839 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17840 which seems to be undefined. Please make sure it is defined" >&2;}
17841
17842 rm -f "$ac_tmp/stdin"
17843 case $ac_file in
17844 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17845 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17846 esac \
17847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17848 ;;
17849 :H)
17850 #
17851 # CONFIG_HEADER
17852 #
17853 if test x"$ac_file" != x-; then
17854 {
17855 $as_echo "/* $configure_input */" \
17856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17857 } >"$ac_tmp/config.h" \
17858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17859 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17861 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17862 else
17863 rm -f "$ac_file"
17864 mv "$ac_tmp/config.h" "$ac_file" \
17865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17866 fi
17867 else
17868 $as_echo "/* $configure_input */" \
17869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17870 || as_fn_error $? "could not create -" "$LINENO" 5
17871 fi
17872 # Compute "$ac_file"'s index in $config_headers.
17873 _am_arg="$ac_file"
17874 _am_stamp_count=1
17875 for _am_header in $config_headers :; do
17876 case $_am_header in
17877 $_am_arg | $_am_arg:* )
17878 break ;;
17879 * )
17880 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17881 esac
17882 done
17883 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17884 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17885 X"$_am_arg" : 'X\(//\)[^/]' \| \
17886 X"$_am_arg" : 'X\(//\)$' \| \
17887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17888 $as_echo X"$_am_arg" |
17889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17890 s//\1/
17891 q
17892 }
17893 /^X\(\/\/\)[^/].*/{
17894 s//\1/
17895 q
17896 }
17897 /^X\(\/\/\)$/{
17898 s//\1/
17899 q
17900 }
17901 /^X\(\/\).*/{
17902 s//\1/
17903 q
17904 }
17905 s/.*/./; q'`/stamp-h$_am_stamp_count
17906 ;;
17907
17908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17909 $as_echo "$as_me: executing $ac_file commands" >&6;}
17910 ;;
17911 esac
17912
17913
17914 case $ac_file$ac_mode in
17915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17916 # Older Autoconf quotes --file arguments for eval, but not when files
17917 # are listed without --file. Let's play safe and only enable the eval
17918 # if we detect the quoting.
17919 case $CONFIG_FILES in
17920 *\'*) eval set x "$CONFIG_FILES" ;;
17921 *) set x $CONFIG_FILES ;;
17922 esac
17923 shift
17924 for mf
17925 do
17926 # Strip MF so we end up with the name of the file.
17927 mf=`echo "$mf" | sed -e 's/:.*$//'`
17928 # Check whether this is an Automake generated Makefile or not.
17929 # We used to match only the files named 'Makefile.in', but
17930 # some people rename them; so instead we look at the file content.
17931 # Grep'ing the first line is not enough: some people post-process
17932 # each Makefile.in and add a new line on top of each file to say so.
17933 # Grep'ing the whole file is not good either: AIX grep has a line
17934 # limit of 2048, but all sed's we know have understand at least 4000.
17935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17936 dirpart=`$as_dirname -- "$mf" ||
17937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17938 X"$mf" : 'X\(//\)[^/]' \| \
17939 X"$mf" : 'X\(//\)$' \| \
17940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17941 $as_echo X"$mf" |
17942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\/\)[^/].*/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\/\)$/{
17951 s//\1/
17952 q
17953 }
17954 /^X\(\/\).*/{
17955 s//\1/
17956 q
17957 }
17958 s/.*/./; q'`
17959 else
17960 continue
17961 fi
17962 # Extract the definition of DEPDIR, am__include, and am__quote
17963 # from the Makefile without running 'make'.
17964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17965 test -z "$DEPDIR" && continue
17966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17967 test -z "$am__include" && continue
17968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17969 # Find all dependency output files, they are included files with
17970 # $(DEPDIR) in their names. We invoke sed twice because it is the
17971 # simplest approach to changing $(DEPDIR) to its actual value in the
17972 # expansion.
17973 for file in `sed -n "
17974 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17975 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17976 # Make sure the directory exists.
17977 test -f "$dirpart/$file" && continue
17978 fdir=`$as_dirname -- "$file" ||
17979 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17980 X"$file" : 'X\(//\)[^/]' \| \
17981 X"$file" : 'X\(//\)$' \| \
17982 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17983 $as_echo X"$file" |
17984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17985 s//\1/
17986 q
17987 }
17988 /^X\(\/\/\)[^/].*/{
17989 s//\1/
17990 q
17991 }
17992 /^X\(\/\/\)$/{
17993 s//\1/
17994 q
17995 }
17996 /^X\(\/\).*/{
17997 s//\1/
17998 q
17999 }
18000 s/.*/./; q'`
18001 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18002 # echo "creating $dirpart/$file"
18003 echo '# dummy' > "$dirpart/$file"
18004 done
18005 done
18006 }
18007 ;;
18008 "libtool":C)
18009
18010 # See if we are running on zsh, and set the options which allow our
18011 # commands through without removal of \ escapes.
18012 if test -n "${ZSH_VERSION+set}" ; then
18013 setopt NO_GLOB_SUBST
18014 fi
18015
18016 cfgfile="${ofile}T"
18017 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18018 $RM "$cfgfile"
18019
18020 cat <<_LT_EOF >> "$cfgfile"
18021 #! $SHELL
18022
18023 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18024 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18025 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18026 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18027 #
18028 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18029 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18030 # Foundation, Inc.
18031 # Written by Gordon Matzigkeit, 1996
18032 #
18033 # This file is part of GNU Libtool.
18034 #
18035 # GNU Libtool is free software; you can redistribute it and/or
18036 # modify it under the terms of the GNU General Public License as
18037 # published by the Free Software Foundation; either version 2 of
18038 # the License, or (at your option) any later version.
18039 #
18040 # As a special exception to the GNU General Public License,
18041 # if you distribute this file as part of a program or library that
18042 # is built using GNU Libtool, you may include this file under the
18043 # same distribution terms that you use for the rest of that program.
18044 #
18045 # GNU Libtool is distributed in the hope that it will be useful,
18046 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18047 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18048 # GNU General Public License for more details.
18049 #
18050 # You should have received a copy of the GNU General Public License
18051 # along with GNU Libtool; see the file COPYING. If not, a copy
18052 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18053 # obtained by writing to the Free Software Foundation, Inc.,
18054 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18055
18056
18057 # The names of the tagged configurations supported by this script.
18058 available_tags="CXX "
18059
18060 # ### BEGIN LIBTOOL CONFIG
18061
18062 # Which release of libtool.m4 was used?
18063 macro_version=$macro_version
18064 macro_revision=$macro_revision
18065
18066 # Whether or not to build shared libraries.
18067 build_libtool_libs=$enable_shared
18068
18069 # Whether or not to build static libraries.
18070 build_old_libs=$enable_static
18071
18072 # What type of objects to build.
18073 pic_mode=$pic_mode
18074
18075 # Whether or not to optimize for fast installation.
18076 fast_install=$enable_fast_install
18077
18078 # Shell to use when invoking shell scripts.
18079 SHELL=$lt_SHELL
18080
18081 # An echo program that protects backslashes.
18082 ECHO=$lt_ECHO
18083
18084 # The PATH separator for the build system.
18085 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18086
18087 # The host system.
18088 host_alias=$host_alias
18089 host=$host
18090 host_os=$host_os
18091
18092 # The build system.
18093 build_alias=$build_alias
18094 build=$build
18095 build_os=$build_os
18096
18097 # A sed program that does not truncate output.
18098 SED=$lt_SED
18099
18100 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18101 Xsed="\$SED -e 1s/^X//"
18102
18103 # A grep program that handles long lines.
18104 GREP=$lt_GREP
18105
18106 # An ERE matcher.
18107 EGREP=$lt_EGREP
18108
18109 # A literal string matcher.
18110 FGREP=$lt_FGREP
18111
18112 # A BSD- or MS-compatible name lister.
18113 NM=$lt_NM
18114
18115 # Whether we need soft or hard links.
18116 LN_S=$lt_LN_S
18117
18118 # What is the maximum length of a command?
18119 max_cmd_len=$max_cmd_len
18120
18121 # Object file suffix (normally "o").
18122 objext=$ac_objext
18123
18124 # Executable file suffix (normally "").
18125 exeext=$exeext
18126
18127 # whether the shell understands "unset".
18128 lt_unset=$lt_unset
18129
18130 # turn spaces into newlines.
18131 SP2NL=$lt_lt_SP2NL
18132
18133 # turn newlines into spaces.
18134 NL2SP=$lt_lt_NL2SP
18135
18136 # convert \$build file names to \$host format.
18137 to_host_file_cmd=$lt_cv_to_host_file_cmd
18138
18139 # convert \$build files to toolchain format.
18140 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18141
18142 # An object symbol dumper.
18143 OBJDUMP=$lt_OBJDUMP
18144
18145 # Method to check whether dependent libraries are shared objects.
18146 deplibs_check_method=$lt_deplibs_check_method
18147
18148 # Command to use when deplibs_check_method = "file_magic".
18149 file_magic_cmd=$lt_file_magic_cmd
18150
18151 # How to find potential files when deplibs_check_method = "file_magic".
18152 file_magic_glob=$lt_file_magic_glob
18153
18154 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18155 want_nocaseglob=$lt_want_nocaseglob
18156
18157 # DLL creation program.
18158 DLLTOOL=$lt_DLLTOOL
18159
18160 # Command to associate shared and link libraries.
18161 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18162
18163 # The archiver.
18164 AR=$lt_AR
18165
18166 # Flags to create an archive.
18167 AR_FLAGS=$lt_AR_FLAGS
18168
18169 # How to feed a file listing to the archiver.
18170 archiver_list_spec=$lt_archiver_list_spec
18171
18172 # A symbol stripping program.
18173 STRIP=$lt_STRIP
18174
18175 # Commands used to install an old-style archive.
18176 RANLIB=$lt_RANLIB
18177 old_postinstall_cmds=$lt_old_postinstall_cmds
18178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18179
18180 # Whether to use a lock for old archive extraction.
18181 lock_old_archive_extraction=$lock_old_archive_extraction
18182
18183 # A C compiler.
18184 LTCC=$lt_CC
18185
18186 # LTCC compiler flags.
18187 LTCFLAGS=$lt_CFLAGS
18188
18189 # Take the output of nm and produce a listing of raw symbols and C names.
18190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18191
18192 # Transform the output of nm in a proper C declaration.
18193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18194
18195 # Transform the output of nm in a C name address pair.
18196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18197
18198 # Transform the output of nm in a C name address pair when lib prefix is needed.
18199 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18200
18201 # Specify filename containing input files for \$NM.
18202 nm_file_list_spec=$lt_nm_file_list_spec
18203
18204 # The root where to search for dependent libraries,and in which our libraries should be installed.
18205 lt_sysroot=$lt_sysroot
18206
18207 # The name of the directory that contains temporary libtool files.
18208 objdir=$objdir
18209
18210 # Used to examine libraries when file_magic_cmd begins with "file".
18211 MAGIC_CMD=$MAGIC_CMD
18212
18213 # Must we lock files when doing compilation?
18214 need_locks=$lt_need_locks
18215
18216 # Manifest tool.
18217 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18218
18219 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18220 DSYMUTIL=$lt_DSYMUTIL
18221
18222 # Tool to change global to local symbols on Mac OS X.
18223 NMEDIT=$lt_NMEDIT
18224
18225 # Tool to manipulate fat objects and archives on Mac OS X.
18226 LIPO=$lt_LIPO
18227
18228 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18229 OTOOL=$lt_OTOOL
18230
18231 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18232 OTOOL64=$lt_OTOOL64
18233
18234 # Old archive suffix (normally "a").
18235 libext=$libext
18236
18237 # Shared library suffix (normally ".so").
18238 shrext_cmds=$lt_shrext_cmds
18239
18240 # The commands to extract the exported symbol list from a shared archive.
18241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18242
18243 # Variables whose values should be saved in libtool wrapper scripts and
18244 # restored at link time.
18245 variables_saved_for_relink=$lt_variables_saved_for_relink
18246
18247 # Do we need the "lib" prefix for modules?
18248 need_lib_prefix=$need_lib_prefix
18249
18250 # Do we need a version for libraries?
18251 need_version=$need_version
18252
18253 # Library versioning type.
18254 version_type=$version_type
18255
18256 # Shared library runtime path variable.
18257 runpath_var=$runpath_var
18258
18259 # Shared library path variable.
18260 shlibpath_var=$shlibpath_var
18261
18262 # Is shlibpath searched before the hard-coded library search path?
18263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18264
18265 # Format of library name prefix.
18266 libname_spec=$lt_libname_spec
18267
18268 # List of archive names. First name is the real one, the rest are links.
18269 # The last name is the one that the linker finds with -lNAME
18270 library_names_spec=$lt_library_names_spec
18271
18272 # The coded name of the library, if different from the real name.
18273 soname_spec=$lt_soname_spec
18274
18275 # Permission mode override for installation of shared libraries.
18276 install_override_mode=$lt_install_override_mode
18277
18278 # Command to use after installation of a shared archive.
18279 postinstall_cmds=$lt_postinstall_cmds
18280
18281 # Command to use after uninstallation of a shared archive.
18282 postuninstall_cmds=$lt_postuninstall_cmds
18283
18284 # Commands used to finish a libtool library installation in a directory.
18285 finish_cmds=$lt_finish_cmds
18286
18287 # As "finish_cmds", except a single script fragment to be evaled but
18288 # not shown.
18289 finish_eval=$lt_finish_eval
18290
18291 # Whether we should hardcode library paths into libraries.
18292 hardcode_into_libs=$hardcode_into_libs
18293
18294 # Compile-time system search path for libraries.
18295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18296
18297 # Run-time system search path for libraries.
18298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18299
18300 # Whether dlopen is supported.
18301 dlopen_support=$enable_dlopen
18302
18303 # Whether dlopen of programs is supported.
18304 dlopen_self=$enable_dlopen_self
18305
18306 # Whether dlopen of statically linked programs is supported.
18307 dlopen_self_static=$enable_dlopen_self_static
18308
18309 # Commands to strip libraries.
18310 old_striplib=$lt_old_striplib
18311 striplib=$lt_striplib
18312
18313
18314 # The linker used to build libraries.
18315 LD=$lt_LD
18316
18317 # How to create reloadable object files.
18318 reload_flag=$lt_reload_flag
18319 reload_cmds=$lt_reload_cmds
18320
18321 # Commands used to build an old-style archive.
18322 old_archive_cmds=$lt_old_archive_cmds
18323
18324 # A language specific compiler.
18325 CC=$lt_compiler
18326
18327 # Is the compiler the GNU compiler?
18328 with_gcc=$GCC
18329
18330 # Compiler flag to turn off builtin functions.
18331 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18332
18333 # Additional compiler flags for building library objects.
18334 pic_flag=$lt_lt_prog_compiler_pic
18335
18336 # How to pass a linker flag through the compiler.
18337 wl=$lt_lt_prog_compiler_wl
18338
18339 # Compiler flag to prevent dynamic linking.
18340 link_static_flag=$lt_lt_prog_compiler_static
18341
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18344
18345 # Whether or not to add -lc for building shared libraries.
18346 build_libtool_need_lc=$archive_cmds_need_lc
18347
18348 # Whether or not to disallow shared libs when runtime libs are static.
18349 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18350
18351 # Compiler flag to allow reflexive dlopens.
18352 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18353
18354 # Compiler flag to generate shared objects directly from archives.
18355 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18356
18357 # Whether the compiler copes with passing no objects directly.
18358 compiler_needs_object=$lt_compiler_needs_object
18359
18360 # Create an old-style archive from a shared archive.
18361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18362
18363 # Create a temporary old-style archive to link instead of a shared archive.
18364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18365
18366 # Commands used to build a shared archive.
18367 archive_cmds=$lt_archive_cmds
18368 archive_expsym_cmds=$lt_archive_expsym_cmds
18369
18370 # Commands used to build a loadable module if different from building
18371 # a shared archive.
18372 module_cmds=$lt_module_cmds
18373 module_expsym_cmds=$lt_module_expsym_cmds
18374
18375 # Whether we are building with GNU ld or not.
18376 with_gnu_ld=$lt_with_gnu_ld
18377
18378 # Flag that allows shared libraries with undefined symbols to be built.
18379 allow_undefined_flag=$lt_allow_undefined_flag
18380
18381 # Flag that enforces no undefined symbols.
18382 no_undefined_flag=$lt_no_undefined_flag
18383
18384 # Flag to hardcode \$libdir into a binary during linking.
18385 # This must work even if \$libdir does not exist
18386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18387
18388 # Whether we need a single "-rpath" flag with a separated argument.
18389 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18390
18391 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18392 # DIR into the resulting binary.
18393 hardcode_direct=$hardcode_direct
18394
18395 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18396 # DIR into the resulting binary and the resulting library dependency is
18397 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18398 # library is relocated.
18399 hardcode_direct_absolute=$hardcode_direct_absolute
18400
18401 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18402 # into the resulting binary.
18403 hardcode_minus_L=$hardcode_minus_L
18404
18405 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18406 # into the resulting binary.
18407 hardcode_shlibpath_var=$hardcode_shlibpath_var
18408
18409 # Set to "yes" if building a shared library automatically hardcodes DIR
18410 # into the library and all subsequent libraries and executables linked
18411 # against it.
18412 hardcode_automatic=$hardcode_automatic
18413
18414 # Set to yes if linker adds runtime paths of dependent libraries
18415 # to runtime path list.
18416 inherit_rpath=$inherit_rpath
18417
18418 # Whether libtool must link a program against all its dependency libraries.
18419 link_all_deplibs=$link_all_deplibs
18420
18421 # Set to "yes" if exported symbols are required.
18422 always_export_symbols=$always_export_symbols
18423
18424 # The commands to list exported symbols.
18425 export_symbols_cmds=$lt_export_symbols_cmds
18426
18427 # Symbols that should not be listed in the preloaded symbols.
18428 exclude_expsyms=$lt_exclude_expsyms
18429
18430 # Symbols that must always be exported.
18431 include_expsyms=$lt_include_expsyms
18432
18433 # Commands necessary for linking programs (against libraries) with templates.
18434 prelink_cmds=$lt_prelink_cmds
18435
18436 # Commands necessary for finishing linking programs.
18437 postlink_cmds=$lt_postlink_cmds
18438
18439 # Specify filename containing input files.
18440 file_list_spec=$lt_file_list_spec
18441
18442 # How to hardcode a shared library path into an executable.
18443 hardcode_action=$hardcode_action
18444
18445 # The directories searched by this compiler when creating a shared library.
18446 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18447
18448 # Dependencies to place before and after the objects being linked to
18449 # create a shared library.
18450 predep_objects=$lt_predep_objects
18451 postdep_objects=$lt_postdep_objects
18452 predeps=$lt_predeps
18453 postdeps=$lt_postdeps
18454
18455 # The library search path used internally by the compiler when linking
18456 # a shared library.
18457 compiler_lib_search_path=$lt_compiler_lib_search_path
18458
18459 # ### END LIBTOOL CONFIG
18460
18461 _LT_EOF
18462
18463 case $host_os in
18464 aix3*)
18465 cat <<\_LT_EOF >> "$cfgfile"
18466 # AIX sometimes has problems with the GCC collect2 program. For some
18467 # reason, if we set the COLLECT_NAMES environment variable, the problems
18468 # vanish in a puff of smoke.
18469 if test "X${COLLECT_NAMES+set}" != Xset; then
18470 COLLECT_NAMES=
18471 export COLLECT_NAMES
18472 fi
18473 _LT_EOF
18474 ;;
18475 esac
18476
18477
18478 ltmain="$ac_aux_dir/ltmain.sh"
18479
18480
18481 # We use sed instead of cat because bash on DJGPP gets confused if
18482 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18483 # text mode, it properly converts lines to CR/LF. This bash problem
18484 # is reportedly fixed, but why not run on old versions too?
18485 sed '$q' "$ltmain" >> "$cfgfile" \
18486 || (rm -f "$cfgfile"; exit 1)
18487
18488 if test x"$xsi_shell" = xyes; then
18489 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18490 func_dirname ()\
18491 {\
18492 \ case ${1} in\
18493 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18494 \ * ) func_dirname_result="${3}" ;;\
18495 \ esac\
18496 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18497 && mv -f "$cfgfile.tmp" "$cfgfile" \
18498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18499 test 0 -eq $? || _lt_function_replace_fail=:
18500
18501
18502 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18503 func_basename ()\
18504 {\
18505 \ func_basename_result="${1##*/}"\
18506 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18507 && mv -f "$cfgfile.tmp" "$cfgfile" \
18508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18509 test 0 -eq $? || _lt_function_replace_fail=:
18510
18511
18512 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18513 func_dirname_and_basename ()\
18514 {\
18515 \ case ${1} in\
18516 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18517 \ * ) func_dirname_result="${3}" ;;\
18518 \ esac\
18519 \ func_basename_result="${1##*/}"\
18520 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18521 && mv -f "$cfgfile.tmp" "$cfgfile" \
18522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18523 test 0 -eq $? || _lt_function_replace_fail=:
18524
18525
18526 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18527 func_stripname ()\
18528 {\
18529 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18530 \ # positional parameters, so assign one to ordinary parameter first.\
18531 \ func_stripname_result=${3}\
18532 \ func_stripname_result=${func_stripname_result#"${1}"}\
18533 \ func_stripname_result=${func_stripname_result%"${2}"}\
18534 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18535 && mv -f "$cfgfile.tmp" "$cfgfile" \
18536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18537 test 0 -eq $? || _lt_function_replace_fail=:
18538
18539
18540 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18541 func_split_long_opt ()\
18542 {\
18543 \ func_split_long_opt_name=${1%%=*}\
18544 \ func_split_long_opt_arg=${1#*=}\
18545 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18546 && mv -f "$cfgfile.tmp" "$cfgfile" \
18547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18548 test 0 -eq $? || _lt_function_replace_fail=:
18549
18550
18551 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18552 func_split_short_opt ()\
18553 {\
18554 \ func_split_short_opt_arg=${1#??}\
18555 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18556 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18557 && mv -f "$cfgfile.tmp" "$cfgfile" \
18558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18559 test 0 -eq $? || _lt_function_replace_fail=:
18560
18561
18562 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18563 func_lo2o ()\
18564 {\
18565 \ case ${1} in\
18566 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18567 \ *) func_lo2o_result=${1} ;;\
18568 \ esac\
18569 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18570 && mv -f "$cfgfile.tmp" "$cfgfile" \
18571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18572 test 0 -eq $? || _lt_function_replace_fail=:
18573
18574
18575 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18576 func_xform ()\
18577 {\
18578 func_xform_result=${1%.*}.lo\
18579 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18580 && mv -f "$cfgfile.tmp" "$cfgfile" \
18581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18582 test 0 -eq $? || _lt_function_replace_fail=:
18583
18584
18585 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18586 func_arith ()\
18587 {\
18588 func_arith_result=$(( $* ))\
18589 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18590 && mv -f "$cfgfile.tmp" "$cfgfile" \
18591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18592 test 0 -eq $? || _lt_function_replace_fail=:
18593
18594
18595 sed -e '/^func_len ()$/,/^} # func_len /c\
18596 func_len ()\
18597 {\
18598 func_len_result=${#1}\
18599 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18600 && mv -f "$cfgfile.tmp" "$cfgfile" \
18601 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18602 test 0 -eq $? || _lt_function_replace_fail=:
18603
18604 fi
18605
18606 if test x"$lt_shell_append" = xyes; then
18607 sed -e '/^func_append ()$/,/^} # func_append /c\
18608 func_append ()\
18609 {\
18610 eval "${1}+=\\${2}"\
18611 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18612 && mv -f "$cfgfile.tmp" "$cfgfile" \
18613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18614 test 0 -eq $? || _lt_function_replace_fail=:
18615
18616
18617 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18618 func_append_quoted ()\
18619 {\
18620 \ func_quote_for_eval "${2}"\
18621 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18622 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18623 && mv -f "$cfgfile.tmp" "$cfgfile" \
18624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18625 test 0 -eq $? || _lt_function_replace_fail=:
18626
18627
18628 # Save a `func_append' function call where possible by direct use of '+='
18629 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18630 && mv -f "$cfgfile.tmp" "$cfgfile" \
18631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18632 test 0 -eq $? || _lt_function_replace_fail=:
18633 else
18634 # Save a `func_append' function call even when '+=' is not available
18635 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18636 && mv -f "$cfgfile.tmp" "$cfgfile" \
18637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18638 test 0 -eq $? || _lt_function_replace_fail=:
18639 fi
18640
18641 if test x"$_lt_function_replace_fail" = x":"; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18643 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18644 fi
18645
18646
18647 mv -f "$cfgfile" "$ofile" ||
18648 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18649 chmod +x "$ofile"
18650
18651
18652 cat <<_LT_EOF >> "$ofile"
18653
18654 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18655
18656 # The linker used to build libraries.
18657 LD=$lt_LD_CXX
18658
18659 # How to create reloadable object files.
18660 reload_flag=$lt_reload_flag_CXX
18661 reload_cmds=$lt_reload_cmds_CXX
18662
18663 # Commands used to build an old-style archive.
18664 old_archive_cmds=$lt_old_archive_cmds_CXX
18665
18666 # A language specific compiler.
18667 CC=$lt_compiler_CXX
18668
18669 # Is the compiler the GNU compiler?
18670 with_gcc=$GCC_CXX
18671
18672 # Compiler flag to turn off builtin functions.
18673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18674
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_CXX
18677
18678 # How to pass a linker flag through the compiler.
18679 wl=$lt_lt_prog_compiler_wl_CXX
18680
18681 # Compiler flag to prevent dynamic linking.
18682 link_static_flag=$lt_lt_prog_compiler_static_CXX
18683
18684 # Does compiler simultaneously support -c and -o options?
18685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18686
18687 # Whether or not to add -lc for building shared libraries.
18688 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18689
18690 # Whether or not to disallow shared libs when runtime libs are static.
18691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18692
18693 # Compiler flag to allow reflexive dlopens.
18694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18695
18696 # Compiler flag to generate shared objects directly from archives.
18697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18698
18699 # Whether the compiler copes with passing no objects directly.
18700 compiler_needs_object=$lt_compiler_needs_object_CXX
18701
18702 # Create an old-style archive from a shared archive.
18703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18704
18705 # Create a temporary old-style archive to link instead of a shared archive.
18706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18707
18708 # Commands used to build a shared archive.
18709 archive_cmds=$lt_archive_cmds_CXX
18710 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18711
18712 # Commands used to build a loadable module if different from building
18713 # a shared archive.
18714 module_cmds=$lt_module_cmds_CXX
18715 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18716
18717 # Whether we are building with GNU ld or not.
18718 with_gnu_ld=$lt_with_gnu_ld_CXX
18719
18720 # Flag that allows shared libraries with undefined symbols to be built.
18721 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18722
18723 # Flag that enforces no undefined symbols.
18724 no_undefined_flag=$lt_no_undefined_flag_CXX
18725
18726 # Flag to hardcode \$libdir into a binary during linking.
18727 # This must work even if \$libdir does not exist
18728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18729
18730 # Whether we need a single "-rpath" flag with a separated argument.
18731 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18732
18733 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18734 # DIR into the resulting binary.
18735 hardcode_direct=$hardcode_direct_CXX
18736
18737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18738 # DIR into the resulting binary and the resulting library dependency is
18739 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18740 # library is relocated.
18741 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18742
18743 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18744 # into the resulting binary.
18745 hardcode_minus_L=$hardcode_minus_L_CXX
18746
18747 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18748 # into the resulting binary.
18749 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18750
18751 # Set to "yes" if building a shared library automatically hardcodes DIR
18752 # into the library and all subsequent libraries and executables linked
18753 # against it.
18754 hardcode_automatic=$hardcode_automatic_CXX
18755
18756 # Set to yes if linker adds runtime paths of dependent libraries
18757 # to runtime path list.
18758 inherit_rpath=$inherit_rpath_CXX
18759
18760 # Whether libtool must link a program against all its dependency libraries.
18761 link_all_deplibs=$link_all_deplibs_CXX
18762
18763 # Set to "yes" if exported symbols are required.
18764 always_export_symbols=$always_export_symbols_CXX
18765
18766 # The commands to list exported symbols.
18767 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18768
18769 # Symbols that should not be listed in the preloaded symbols.
18770 exclude_expsyms=$lt_exclude_expsyms_CXX
18771
18772 # Symbols that must always be exported.
18773 include_expsyms=$lt_include_expsyms_CXX
18774
18775 # Commands necessary for linking programs (against libraries) with templates.
18776 prelink_cmds=$lt_prelink_cmds_CXX
18777
18778 # Commands necessary for finishing linking programs.
18779 postlink_cmds=$lt_postlink_cmds_CXX
18780
18781 # Specify filename containing input files.
18782 file_list_spec=$lt_file_list_spec_CXX
18783
18784 # How to hardcode a shared library path into an executable.
18785 hardcode_action=$hardcode_action_CXX
18786
18787 # The directories searched by this compiler when creating a shared library.
18788 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18789
18790 # Dependencies to place before and after the objects being linked to
18791 # create a shared library.
18792 predep_objects=$lt_predep_objects_CXX
18793 postdep_objects=$lt_postdep_objects_CXX
18794 predeps=$lt_predeps_CXX
18795 postdeps=$lt_postdeps_CXX
18796
18797 # The library search path used internally by the compiler when linking
18798 # a shared library.
18799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18800
18801 # ### END LIBTOOL TAG CONFIG: CXX
18802 _LT_EOF
18803
18804 ;;
18805
18806 esac
18807 done # for ac_tag
18808
18809
18810 as_fn_exit 0
18811 _ACEOF
18812 ac_clean_files=$ac_clean_files_save
18813
18814 test $ac_write_fail = 0 ||
18815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18816
18817
18818 # configure is writing to config.log, and then calls config.status.
18819 # config.status does its own redirection, appending to config.log.
18820 # Unfortunately, on DOS this fails, as config.log is still kept open
18821 # by configure, so config.status won't be able to write to it; its
18822 # output is simply discarded. So we exec the FD to /dev/null,
18823 # effectively closing config.log, so it can be properly (re)opened and
18824 # appended to by config.status. When coming back to configure, we
18825 # need to make the FD available again.
18826 if test "$no_create" != yes; then
18827 ac_cs_success=:
18828 ac_config_status_args=
18829 test "$silent" = yes &&
18830 ac_config_status_args="$ac_config_status_args --quiet"
18831 exec 5>/dev/null
18832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18833 exec 5>>config.log
18834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18835 # would make configure fail if this is the last instruction.
18836 $ac_cs_success || as_fn_exit 1
18837 fi
18838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18840 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18841 fi
18842
18843
18844 echo "==============================================================================="
18845 echo " Configure has finished."
18846 echo " To compile OpenCity, do 'make'"
18847 echo " To install OpenCity, do 'make install'"
18848 echo " To remove OpenCity, do 'make uninstall'"
18849 echo
18850 echo " After compiling, to run OpenCity from here without installation, do: "
18851 echo " 'src/opencity --data-dir /path/to/share/opencity --conf-dir /path/to/etc/opencity'"
18852 echo "==============================================================================="