ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/libopm/configure
Revision: 5134
Committed: Thu Dec 25 18:50:02 2014 UTC (10 years, 8 months ago) by michael
File size: 445233 byte(s)
Log Message:
- propset svn:keywords "Id"

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libopm 0.1.
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 bug-autoconf@gnu.org 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='libopm'
589 PACKAGE_TARNAME='libopm'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='libopm 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/libopm.h"
596 ac_default_prefix=/usr/local/libopm
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LIBOBJS
636 LTLIBOBJS
637 LIBTOOL_DEPS
638 CPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_maintainer_mode
758 with_extra_fascism
759 enable_dependency_tracking
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 with_aix_soname
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures libopm 0.1 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/libopm]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of libopm 0.1:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-maintainer-mode
1399 enable make rules and dependencies not useful (and
1400 sometimes confusing) to the casual installer
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-extra-fascism add extra gcc3-specific warning flags
1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-aix-soname=aix|svr4|both
1418 shared library versioning (aka "SONAME") variant to
1419 provide on AIX, [default=aix].
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1422 compiler's sysroot if not specified).
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to the package provider.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 libopm configure 0.1
1501 generated by GNU Autoconf 2.69
1502
1503 Copyright (C) 2012 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_link LINENO
1553 # -----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_link ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
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_link") 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_exeext && {
1578 test "$cross_compiling" = yes ||
1579 test -x conftest$ac_exeext
1580 }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_link
1597
1598 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists and can be compiled using the include files in
1601 # INCLUDES, setting the cache variable VAR accordingly.
1602 ac_fn_c_check_header_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 eval "$3=yes"
1617 else
1618 eval "$3=no"
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_header_compile
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
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_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_func LINENO FUNC VAR
1709 # ----------------------------------
1710 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1711 ac_fn_c_check_func ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1729
1730 #ifdef __STDC__
1731 # include <limits.h>
1732 #else
1733 # include <assert.h>
1734 #endif
1735
1736 #undef $2
1737
1738 /* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741 #ifdef __cplusplus
1742 extern "C"
1743 #endif
1744 char $2 ();
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined __stub_$2 || defined __stub___$2
1749 choke me
1750 #endif
1751
1752 int
1753 main ()
1754 {
1755 return $2 ();
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_link "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_header_mongrel ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 else
1793 # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803 else
1804 ac_header_compiler=no
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1809
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819 else
1820 ac_header_preproc=no
1821 fi
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1825
1826 # So? What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846 esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=\$ac_header_compiler"
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_mongrel
1861
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=no"
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $4
1878 int
1879 main ()
1880 {
1881 if (sizeof ($2))
1882 return 0;
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof (($2)))
1895 return 0;
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901
1902 else
1903 eval "$3=yes"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_type
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1918
1919 It was created by libopm $as_me 0.1, which was
1920 generated by GNU Autoconf 2.69. Invocation command line was
1921
1922 $ $0 $@
1923
1924 _ACEOF
1925 exec 5>>config.log
1926 {
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1931
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949 _ASUNAME
1950
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1957 done
1958 IFS=$as_save_IFS
1959
1960 } >&5
1961
1962 cat >&5 <<_ACEOF
1963
1964
1965 ## ----------- ##
1966 ## Core tests. ##
1967 ## ----------- ##
1968
1969 _ACEOF
1970
1971
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_configure_args=
1978 ac_configure_args0=
1979 ac_configure_args1=
1980 ac_must_keep_next=false
1981 for ac_pass in 1 2
1982 do
1983 for ac_arg
1984 do
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
1990 *\'*)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 case $ac_pass in
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1995 2)
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2008 ;;
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2011 fi
2012 as_fn_append ac_configure_args " '$ac_arg'"
2013 ;;
2014 esac
2015 done
2016 done
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2019
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2027 {
2028 echo
2029
2030 $as_echo "## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##"
2033 echo
2034 # The following way of writing the cache mishandles newlines in values,
2035 (
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
2048 esac ;;
2049 esac
2050 done
2051 (set) 2>&1 |
2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
2054 sed -n \
2055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
2058 *)
2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060 ;;
2061 esac |
2062 sort
2063 )
2064 echo
2065
2066 $as_echo "## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##"
2069 echo
2070 for ac_var in $ac_subst_vars
2071 do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 esac
2076 $as_echo "$ac_var='\''$ac_val'\''"
2077 done | sort
2078 echo
2079
2080 if test -n "$ac_subst_files"; then
2081 $as_echo "## ------------------- ##
2082 ## File substitutions. ##
2083 ## ------------------- ##"
2084 echo
2085 for ac_var in $ac_subst_files
2086 do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2094 fi
2095
2096 if test -s confdefs.h; then
2097 $as_echo "## ----------- ##
2098 ## confdefs.h. ##
2099 ## ----------- ##"
2100 echo
2101 cat confdefs.h
2102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2107 } >&5
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status
2111 ' 0
2112 for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114 done
2115 ac_signal=0
2116
2117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2118 rm -f -r conftest* confdefs.h
2119
2120 $as_echo "/* confdefs.h */" > confdefs.h
2121
2122 # Predefined preprocessor variables.
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_NAME "$PACKAGE_NAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_STRING "$PACKAGE_STRING"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_URL "$PACKAGE_URL"
2146 _ACEOF
2147
2148
2149 # Let the site file select an alternate cache file if it wants to.
2150 # Prefer an explicitly selected file to automatically selected ones.
2151 ac_site_file1=NONE
2152 ac_site_file2=NONE
2153 if test -n "$CONFIG_SITE"; then
2154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2159 esac
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163 else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2166 fi
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168 do
2169 test "x$ac_site_file" = xNONE && continue
2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file" \
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177 as_fn_error $? "failed to load site script $ac_site_file
2178 See \`config.log' for more details" "$LINENO" 5; }
2179 fi
2180 done
2181
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2192 fi
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2197 fi
2198
2199 # Check that the precious variables saved in the cache have kept the same
2200 # value.
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2208 set,)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,set)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,);;
2217 *)
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2246 esac
2247 fi
2248 done
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2255 fi
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2259
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265
2266
2267
2268 ac_config_headers="$ac_config_headers src/setup.h"
2269
2270 am__api_version='1.14'
2271
2272 ac_aux_dir=
2273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2274 if test -f "$ac_dir/install-sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install-sh -c"
2277 break
2278 elif test -f "$ac_dir/install.sh"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/install.sh -c"
2281 break
2282 elif test -f "$ac_dir/shtool"; then
2283 ac_aux_dir=$ac_dir
2284 ac_install_sh="$ac_aux_dir/shtool install -c"
2285 break
2286 fi
2287 done
2288 if test -z "$ac_aux_dir"; then
2289 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2290 fi
2291
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
2300
2301 # Find a good install program. We prefer a C program (faster),
2302 # so one script is as good as another. But avoid the broken or
2303 # incompatible versions:
2304 # SysV /etc/install, /usr/sbin/install
2305 # SunOS /usr/etc/install
2306 # IRIX /sbin/install
2307 # AIX /bin/install
2308 # AmigaOS /C/install, which installs bootblocks on floppy discs
2309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2312 # OS/2's system install, which has a completely different semantic
2313 # ./install, which can be erroneously created by make from ./install.sh.
2314 # Reject install programs that cannot install multiple files.
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2316 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2317 if test -z "$INSTALL"; then
2318 if ${ac_cv_path_install+:} false; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 # Account for people who put trailing slashes in PATH elements.
2327 case $as_dir/ in #((
2328 ./ | .// | /[cC]/* | \
2329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2330 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2331 /usr/ucb/* ) ;;
2332 *)
2333 # OSF1 and SCO ODT 3.0 have their own names for install.
2334 # Don't use installbsd from OSF since it installs stuff as root
2335 # by default.
2336 for ac_prog in ginstall scoinst install; do
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2339 if test $ac_prog = install &&
2340 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # AIX install. It has an incompatible calling convention.
2342 :
2343 elif test $ac_prog = install &&
2344 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # program-specific install script used by HP pwplus--don't use.
2346 :
2347 else
2348 rm -rf conftest.one conftest.two conftest.dir
2349 echo one > conftest.one
2350 echo two > conftest.two
2351 mkdir conftest.dir
2352 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2353 test -s conftest.one && test -s conftest.two &&
2354 test -s conftest.dir/conftest.one &&
2355 test -s conftest.dir/conftest.two
2356 then
2357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2358 break 3
2359 fi
2360 fi
2361 fi
2362 done
2363 done
2364 ;;
2365 esac
2366
2367 done
2368 IFS=$as_save_IFS
2369
2370 rm -rf conftest.one conftest.two conftest.dir
2371
2372 fi
2373 if test "${ac_cv_path_install+set}" = set; then
2374 INSTALL=$ac_cv_path_install
2375 else
2376 # As a last resort, use the slow shell script. Don't cache a
2377 # value for INSTALL within a source directory, because that will
2378 # break other packages using the cache if that directory is
2379 # removed, or if the value is a relative name.
2380 INSTALL=$ac_install_sh
2381 fi
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2384 $as_echo "$INSTALL" >&6; }
2385
2386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2387 # It thinks the first close brace ends the variable substitution.
2388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2389
2390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2391
2392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2395 $as_echo_n "checking whether build environment is sane... " >&6; }
2396 # Reject unsafe characters in $srcdir or the absolute working directory
2397 # name. Accept space and tab only in the latter.
2398 am_lf='
2399 '
2400 case `pwd` in
2401 *[\\\"\#\$\&\'\`$am_lf]*)
2402 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2403 esac
2404 case $srcdir in
2405 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2406 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2407 esac
2408
2409 # Do 'set' in a subshell so we don't clobber the current shell's
2410 # arguments. Must try -L first in case configure is actually a
2411 # symlink; some systems play weird games with the mod time of symlinks
2412 # (eg FreeBSD returns the mod time of the symlink's containing
2413 # directory).
2414 if (
2415 am_has_slept=no
2416 for am_try in 1 2; do
2417 echo "timestamp, slept: $am_has_slept" > conftest.file
2418 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2419 if test "$*" = "X"; then
2420 # -L didn't work.
2421 set X `ls -t "$srcdir/configure" conftest.file`
2422 fi
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
2430 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2431 alias in your environment" "$LINENO" 5
2432 fi
2433 if test "$2" = conftest.file || test $am_try -eq 2; then
2434 break
2435 fi
2436 # Just in case.
2437 sleep 1
2438 am_has_slept=yes
2439 done
2440 test "$2" = conftest.file
2441 )
2442 then
2443 # Ok.
2444 :
2445 else
2446 as_fn_error $? "newly created file is older than distributed files!
2447 Check your system clock" "$LINENO" 5
2448 fi
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450 $as_echo "yes" >&6; }
2451 # If we didn't sleep, we still need to ensure time stamps of config.status and
2452 # generated files are strictly newer.
2453 am_sleep_pid=
2454 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2455 ( sleep 1 ) &
2456 am_sleep_pid=$!
2457 fi
2458
2459 rm -f conftest.file
2460
2461 test "$program_prefix" != NONE &&
2462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2463 # Use a double $ so make ignores it.
2464 test "$program_suffix" != NONE &&
2465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2466 # Double any \ or $.
2467 # By default was `s,x,x', remove it if useless.
2468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470
2471 # expand $ac_aux_dir to an absolute path
2472 am_aux_dir=`cd $ac_aux_dir && pwd`
2473
2474 if test x"${MISSING+set}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 *)
2479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2480 esac
2481 fi
2482 # Use eval to expand $SHELL
2483 if eval "$MISSING --is-lightweight"; then
2484 am_missing_run="$MISSING "
2485 else
2486 am_missing_run=
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2488 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2489 fi
2490
2491 if test x"${install_sh}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 *)
2496 install_sh="\${SHELL} $am_aux_dir/install-sh"
2497 esac
2498 fi
2499
2500 # Installed binaries are usually stripped using 'strip' when the user
2501 # run "make install-strip". However 'strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the 'STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_STRIP+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$STRIP"; then
2514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2536 $as_echo "$STRIP" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$ac_cv_prog_STRIP"; then
2545 ac_ct_STRIP=$STRIP
2546 # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$ac_ct_STRIP"; then
2554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_ac_ct_STRIP="strip"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2576 $as_echo "$ac_ct_STRIP" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582 if test "x$ac_ct_STRIP" = x; then
2583 STRIP=":"
2584 else
2585 case $cross_compiling:$ac_tool_warned in
2586 yes:)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591 STRIP=$ac_ct_STRIP
2592 fi
2593 else
2594 STRIP="$ac_cv_prog_STRIP"
2595 fi
2596
2597 fi
2598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2602 if test -z "$MKDIR_P"; then
2603 if ${ac_cv_path_mkdir+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in mkdir gmkdir; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615 'mkdir (GNU coreutils) '* | \
2616 'mkdir (coreutils) '* | \
2617 'mkdir (fileutils) '4.1*)
2618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2619 break 3;;
2620 esac
2621 done
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627
2628 test -d ./--version && rmdir ./--version
2629 if test "${ac_cv_path_mkdir+set}" = set; then
2630 MKDIR_P="$ac_cv_path_mkdir -p"
2631 else
2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for MKDIR_P within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
2636 MKDIR_P="$ac_install_sh -d"
2637 fi
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2640 $as_echo "$MKDIR_P" >&6; }
2641
2642 for ac_prog in gawk mawk nawk awk
2643 do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_AWK+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$AWK"; then
2652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_AWK="$ac_prog"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 AWK=$ac_cv_prog_AWK
2672 if test -n "$AWK"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2674 $as_echo "$AWK" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 test -n "$AWK" && break
2682 done
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2686 set x ${MAKE-make}
2687 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2688 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 cat >conftest.make <<\_ACEOF
2692 SHELL = /bin/sh
2693 all:
2694 @echo '@@@%%%=$(MAKE)=@@@%%%'
2695 _ACEOF
2696 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2698 *@@@%%%=?*=@@@%%%*)
2699 eval ac_cv_prog_make_${ac_make}_set=yes;;
2700 *)
2701 eval ac_cv_prog_make_${ac_make}_set=no;;
2702 esac
2703 rm -f conftest.make
2704 fi
2705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707 $as_echo "yes" >&6; }
2708 SET_MAKE=
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 SET_MAKE="MAKE=${MAKE-make}"
2713 fi
2714
2715 rm -rf .tst 2>/dev/null
2716 mkdir .tst 2>/dev/null
2717 if test -d .tst; then
2718 am__leading_dot=.
2719 else
2720 am__leading_dot=_
2721 fi
2722 rmdir .tst 2>/dev/null
2723
2724 # Check whether --enable-silent-rules was given.
2725 if test "${enable_silent_rules+set}" = set; then :
2726 enableval=$enable_silent_rules;
2727 fi
2728
2729 case $enable_silent_rules in # (((
2730 yes) AM_DEFAULT_VERBOSITY=0;;
2731 no) AM_DEFAULT_VERBOSITY=1;;
2732 *) AM_DEFAULT_VERBOSITY=1;;
2733 esac
2734 am_make=${MAKE-make}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2736 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2737 if ${am_cv_make_support_nested_variables+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if $as_echo 'TRUE=$(BAR$(V))
2741 BAR0=false
2742 BAR1=true
2743 V=1
2744 am__doit:
2745 @$(TRUE)
2746 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2747 am_cv_make_support_nested_variables=yes
2748 else
2749 am_cv_make_support_nested_variables=no
2750 fi
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2753 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2754 if test $am_cv_make_support_nested_variables = yes; then
2755 AM_V='$(V)'
2756 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2757 else
2758 AM_V=$AM_DEFAULT_VERBOSITY
2759 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2760 fi
2761 AM_BACKSLASH='\'
2762
2763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2765 # is not polluted with repeated "-I."
2766 am__isrc=' -I$(srcdir)'
2767 # test to see if srcdir already configured
2768 if test -f $srcdir/config.status; then
2769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2770 fi
2771 fi
2772
2773 # test whether we have cygpath
2774 if test -z "$CYGPATH_W"; then
2775 if (cygpath --version) >/dev/null 2>/dev/null; then
2776 CYGPATH_W='cygpath -w'
2777 else
2778 CYGPATH_W=echo
2779 fi
2780 fi
2781
2782
2783 # Define the identity of the package.
2784 PACKAGE='libopm'
2785 VERSION='0.1'
2786
2787
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE "$PACKAGE"
2790 _ACEOF
2791
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define VERSION "$VERSION"
2795 _ACEOF
2796
2797 # Some tools Automake needs.
2798
2799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2800
2801
2802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2803
2804
2805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2806
2807
2808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2809
2810
2811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2812
2813 # For better backward compatibility. To be removed once Automake 1.9.x
2814 # dies out for good. For more background, see:
2815 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2816 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2817 mkdir_p='$(MKDIR_P)'
2818
2819 # We need awk for the "check" target. The system "awk" is bad on
2820 # some platforms.
2821 # Always define AMTAR for backward compatibility. Yes, it's still used
2822 # in the wild :-( We should find a proper way to deprecate it ...
2823 AMTAR='$${TAR-tar}'
2824
2825
2826 # We'll loop over all known methods to create a tar archive until one works.
2827 _am_tools='gnutar pax cpio none'
2828
2829 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2830
2831
2832
2833
2834
2835
2836 # POSIX will say in a future version that running "rm -f" with no argument
2837 # is OK; and we want to be able to make that assumption in our Makefile
2838 # recipes. So use an aggressive probe to check that the usage we want is
2839 # actually supported "in the wild" to an acceptable degree.
2840 # See automake bug#10828.
2841 # To make any issue more visible, cause the running configure to be aborted
2842 # by default if the 'rm' program in use doesn't match our expectations; the
2843 # user can still override this though.
2844 if rm -f && rm -fr && rm -rf; then : OK; else
2845 cat >&2 <<'END'
2846 Oops!
2847
2848 Your 'rm' program seems unable to run without file operands specified
2849 on the command line, even when the '-f' option is present. This is contrary
2850 to the behaviour of most rm programs out there, and not conforming with
2851 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2852
2853 Please tell bug-automake@gnu.org about your system, including the value
2854 of your $PATH and any error possibly output before this message. This
2855 can help us improve future automake versions.
2856
2857 END
2858 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2859 echo 'Configuration will proceed anyway, since you have set the' >&2
2860 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2861 echo >&2
2862 else
2863 cat >&2 <<'END'
2864 Aborting the configuration process, to ensure you take notice of the issue.
2865
2866 You can download and install GNU coreutils to get an 'rm' implementation
2867 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2868
2869 If you want to complete the configuration process using your problematic
2870 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2871 to "yes", and re-run configure.
2872
2873 END
2874 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2875 fi
2876 fi
2877
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2880 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2881 # Check whether --enable-maintainer-mode was given.
2882 if test "${enable_maintainer_mode+set}" = set; then :
2883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2884 else
2885 USE_MAINTAINER_MODE=no
2886 fi
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2890 if test $USE_MAINTAINER_MODE = yes; then
2891 MAINTAINER_MODE_TRUE=
2892 MAINTAINER_MODE_FALSE='#'
2893 else
2894 MAINTAINER_MODE_TRUE='#'
2895 MAINTAINER_MODE_FALSE=
2896 fi
2897
2898 MAINT=$MAINTAINER_MODE_TRUE
2899
2900
2901
2902
2903 # Check whether --with-extra-fascism was given.
2904 if test "${with_extra_fascism+set}" = set; then :
2905 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
2906 fi
2907
2908
2909
2910 DEPDIR="${am__leading_dot}deps"
2911
2912 ac_config_commands="$ac_config_commands depfiles"
2913
2914
2915 am_make=${MAKE-make}
2916 cat > confinc << 'END'
2917 am__doit:
2918 @echo this is the am__doit target
2919 .PHONY: am__doit
2920 END
2921 # If we don't find an include directive, just comment out the code.
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2923 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2924 am__include="#"
2925 am__quote=
2926 _am_result=none
2927 # First try GNU make style include.
2928 echo "include confinc" > confmf
2929 # Ignore all kinds of additional output from 'make'.
2930 case `$am_make -s -f confmf 2> /dev/null` in #(
2931 *the\ am__doit\ target*)
2932 am__include=include
2933 am__quote=
2934 _am_result=GNU
2935 ;;
2936 esac
2937 # Now try BSD make style include.
2938 if test "$am__include" = "#"; then
2939 echo '.include "confinc"' > confmf
2940 case `$am_make -s -f confmf 2> /dev/null` in #(
2941 *the\ am__doit\ target*)
2942 am__include=.include
2943 am__quote="\""
2944 _am_result=BSD
2945 ;;
2946 esac
2947 fi
2948
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2951 $as_echo "$_am_result" >&6; }
2952 rm -f confinc confmf
2953
2954 # Check whether --enable-dependency-tracking was given.
2955 if test "${enable_dependency_tracking+set}" = set; then :
2956 enableval=$enable_dependency_tracking;
2957 fi
2958
2959 if test "x$enable_dependency_tracking" != xno; then
2960 am_depcomp="$ac_aux_dir/depcomp"
2961 AMDEPBACKSLASH='\'
2962 am__nodep='_no'
2963 fi
2964 if test "x$enable_dependency_tracking" != xno; then
2965 AMDEP_TRUE=
2966 AMDEP_FALSE='#'
2967 else
2968 AMDEP_TRUE='#'
2969 AMDEP_FALSE=
2970 fi
2971
2972
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 fi
3017 if test -z "$ac_cv_prog_CC"; then
3018 ac_ct_CC=$CC
3019 # Extract the first word of "gcc", so it can be a program name with args.
3020 set dummy gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_CC="gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064 CC=$ac_ct_CC
3065 fi
3066 else
3067 CC="$ac_cv_prog_CC"
3068 fi
3069
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_CC="${ac_tool_prefix}cc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 fi
3111 if test -z "$CC"; then
3112 # Extract the first word of "cc", so it can be a program name with args.
3113 set dummy cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 ac_prog_rejected=no
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3131 ac_prog_rejected=yes
3132 continue
3133 fi
3134 ac_cv_prog_CC="cc"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 if test $ac_prog_rejected = yes; then
3143 # We found a bogon in the path, so make sure we never use it.
3144 set dummy $ac_cv_prog_CC
3145 shift
3146 if test $# != 0; then
3147 # We chose a different compiler from the bogus one.
3148 # However, it has the same basename, so the bogon will be chosen
3149 # first if we set CC to just the basename; use the full file name.
3150 shift
3151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3152 fi
3153 fi
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 for ac_prog in cl.exe
3170 do
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 test -n "$CC" && break
3209 done
3210 fi
3211 if test -z "$CC"; then
3212 ac_ct_CC=$CC
3213 for ac_prog in cl.exe
3214 do
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216 set dummy $ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_CC="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243 if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245 $as_echo "$ac_ct_CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 test -n "$ac_ct_CC" && break
3253 done
3254
3255 if test "x$ac_ct_CC" = x; then
3256 CC=""
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259 yes:)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3263 esac
3264 CC=$ac_ct_CC
3265 fi
3266 fi
3267
3268 fi
3269
3270
3271 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "no acceptable C compiler found in \$PATH
3274 See \`config.log' for more details" "$LINENO" 5; }
3275
3276 # Provide some information about the compiler.
3277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3278 set X $ac_compile
3279 ac_compiler=$2
3280 for ac_option in --version -v -V -qversion; do
3281 { { ac_try="$ac_compiler $ac_option >&5"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3289 ac_status=$?
3290 if test -s conftest.err; then
3291 sed '10a\
3292 ... rest of stderr output deleted ...
3293 10q' conftest.err >conftest.er1
3294 cat conftest.er1 >&5
3295 fi
3296 rm -f conftest.er1 conftest.err
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }
3299 done
3300
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 ac_clean_files_save=$ac_clean_files
3313 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3314 # Try to create an executable without -o first, disregard a.out.
3315 # It will help us diagnose broken compilers, and finding out an intuition
3316 # of exeext.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3318 $as_echo_n "checking whether the C compiler works... " >&6; }
3319 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3320
3321 # The possible output files:
3322 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3323
3324 ac_rmfiles=
3325 for ac_file in $ac_files
3326 do
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3330 esac
3331 done
3332 rm -f $ac_rmfiles
3333
3334 if { { ac_try="$ac_link_default"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link_default") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3346 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3347 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3348 # so that the user can short-circuit this test for compilers unknown to
3349 # Autoconf.
3350 for ac_file in $ac_files ''
3351 do
3352 test -f "$ac_file" || continue
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3355 ;;
3356 [ab].out )
3357 # We found the default executable, but exeext='' is most
3358 # certainly right.
3359 break;;
3360 *.* )
3361 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3362 then :; else
3363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 fi
3365 # We set ac_cv_exeext here because the later test for it is not
3366 # safe: cross compilers may not add the suffix if given an `-o'
3367 # argument, so we may need to know it at that point already.
3368 # Even if this section looks crufty: it has the advantage of
3369 # actually working.
3370 break;;
3371 * )
3372 break;;
3373 esac
3374 done
3375 test "$ac_cv_exeext" = no && ac_cv_exeext=
3376
3377 else
3378 ac_file=''
3379 fi
3380 if test -z "$ac_file"; then :
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 $as_echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error 77 "C compiler cannot create executables
3389 See \`config.log' for more details" "$LINENO" 5; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3397 $as_echo "$ac_file" >&6; }
3398 ac_exeext=$ac_cv_exeext
3399
3400 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3403 $as_echo_n "checking for suffix of executables... " >&6; }
3404 if { { ac_try="$ac_link"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }; then :
3415 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3417 # work properly (i.e., refer to `conftest.exe'), while it won't with
3418 # `rm'.
3419 for ac_file in conftest.exe conftest conftest.*; do
3420 test -f "$ac_file" || continue
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424 break;;
3425 * ) break;;
3426 esac
3427 done
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details" "$LINENO" 5; }
3433 fi
3434 rm -f conftest conftest$ac_cv_exeext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436 $as_echo "$ac_cv_exeext" >&6; }
3437
3438 rm -f conftest.$ac_ext
3439 EXEEXT=$ac_cv_exeext
3440 ac_exeext=$EXEEXT
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443 #include <stdio.h>
3444 int
3445 main ()
3446 {
3447 FILE *f = fopen ("conftest.out", "w");
3448 return ferror (f) || fclose (f) != 0;
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 ac_clean_files="$ac_clean_files conftest.out"
3455 # Check that the compiler produces executables we can run. If not, either
3456 # the compiler is broken, or we cross compile.
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3458 $as_echo_n "checking whether we are cross compiling... " >&6; }
3459 if test "$cross_compiling" != yes; then
3460 { { ac_try="$ac_link"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_link") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3471 if { ac_try='./conftest$ac_cv_exeext'
3472 { { case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_try") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; }; then
3482 cross_compiling=no
3483 else
3484 if test "$cross_compiling" = maybe; then
3485 cross_compiling=yes
3486 else
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 fi
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3496 $as_echo "$cross_compiling" >&6; }
3497
3498 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3499 ac_clean_files=$ac_clean_files_save
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501 $as_echo_n "checking for suffix of object files... " >&6; }
3502 if ${ac_cv_objext+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 rm -f conftest.o conftest.obj
3517 if { { ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compile") 2>&5
3525 ac_status=$?
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }; then :
3528 for ac_file in conftest.o conftest.obj conftest.*; do
3529 test -f "$ac_file" || continue;
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3532 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3533 break;;
3534 esac
3535 done
3536 else
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot compute suffix of object files: cannot compile
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 fi
3545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3548 $as_echo "$ac_cv_objext" >&6; }
3549 OBJEXT=$ac_cv_objext
3550 ac_objext=$OBJEXT
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3552 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3553 if ${ac_cv_c_compiler_gnu+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562 #ifndef __GNUC__
3563 choke me
3564 #endif
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571 ac_compiler_gnu=yes
3572 else
3573 ac_compiler_gnu=no
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3580 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3581 if test $ac_compiler_gnu = yes; then
3582 GCC=yes
3583 else
3584 GCC=
3585 fi
3586 ac_test_CFLAGS=${CFLAGS+set}
3587 ac_save_CFLAGS=$CFLAGS
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3589 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3590 if ${ac_cv_prog_cc_g+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 ac_save_c_werror_flag=$ac_c_werror_flag
3594 ac_c_werror_flag=yes
3595 ac_cv_prog_cc_g=no
3596 CFLAGS="-g"
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_cv_prog_cc_g=yes
3610 else
3611 CFLAGS=""
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624
3625 else
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3627 CFLAGS="-g"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main ()
3633 {
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_cv_prog_cc_g=yes
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3650 $as_echo "$ac_cv_prog_cc_g" >&6; }
3651 if test "$ac_test_CFLAGS" = set; then
3652 CFLAGS=$ac_save_CFLAGS
3653 elif test $ac_cv_prog_cc_g = yes; then
3654 if test "$GCC" = yes; then
3655 CFLAGS="-g -O2"
3656 else
3657 CFLAGS="-g"
3658 fi
3659 else
3660 if test "$GCC" = yes; then
3661 CFLAGS="-O2"
3662 else
3663 CFLAGS=
3664 fi
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3667 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3668 if ${ac_cv_prog_cc_c89+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 ac_cv_prog_cc_c89=no
3672 ac_save_CC=$CC
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #include <stdarg.h>
3676 #include <stdio.h>
3677 struct stat;
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3682 char **p;
3683 int i;
3684 {
3685 return p[i];
3686 }
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3688 {
3689 char *s;
3690 va_list v;
3691 va_start (v,p);
3692 s = g (p, va_arg (v,int));
3693 va_end (v);
3694 return s;
3695 }
3696
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
3700 as 'x'. The following induces an error, until -std is added to get
3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3708 #define FOO(x) 'x'
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 int argc;
3716 char **argv;
3717 int
3718 main ()
3719 {
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 do
3728 CC="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_c89=$ac_arg
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3737
3738 fi
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3741 x)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;;
3744 xno)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746 $as_echo "unsupported" >&6; } ;;
3747 *)
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752 if test "x$ac_cv_prog_cc_c89" != xno; then :
3753
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3768 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3769 if ${am_cv_prog_cc_c_o+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 # Make sure it works both with $CC and with simple cc.
3784 # Following AC_PROG_CC_C_O, we do the test twice because some
3785 # compilers refuse to overwrite an existing .o file with -o,
3786 # though they will create one.
3787 am_cv_prog_cc_c_o=yes
3788 for am_i in 1 2; do
3789 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3790 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } \
3794 && test -f conftest2.$ac_objext; then
3795 : OK
3796 else
3797 am_cv_prog_cc_c_o=no
3798 break
3799 fi
3800 done
3801 rm -f core conftest*
3802 unset am_i
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3805 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3806 if test "$am_cv_prog_cc_c_o" != yes; then
3807 # Losing compiler, so override with the script.
3808 # FIXME: It is wrong to rewrite CC.
3809 # But if we don't then we get into trouble of one sort or another.
3810 # A longer-term fix would be to have automake use am__CC in this case,
3811 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3812 CC="$am_aux_dir/compile $CC"
3813 fi
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821 depcc="$CC" am_compiler_list=
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3824 $as_echo_n "checking dependency style of $depcc... " >&6; }
3825 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829 # We make a subdir and do the tests there. Otherwise we can end up
3830 # making bogus files that we don't know about and never remove. For
3831 # instance it was reported that on HP-UX the gcc test will end up
3832 # making a dummy file named 'D' -- because '-MD' means "put the output
3833 # in D".
3834 rm -rf conftest.dir
3835 mkdir conftest.dir
3836 # Copy depcomp to subdir because otherwise we won't find it if we're
3837 # using a relative directory.
3838 cp "$am_depcomp" conftest.dir
3839 cd conftest.dir
3840 # We will build objects and dependencies in a subdirectory because
3841 # it helps to detect inapplicable dependency modes. For instance
3842 # both Tru64's cc and ICC support -MD to output dependencies as a
3843 # side effect of compilation, but ICC will put the dependencies in
3844 # the current directory while Tru64 will put them in the object
3845 # directory.
3846 mkdir sub
3847
3848 am_cv_CC_dependencies_compiler_type=none
3849 if test "$am_compiler_list" = ""; then
3850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851 fi
3852 am__universal=false
3853 case " $depcc " in #(
3854 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3855 esac
3856
3857 for depmode in $am_compiler_list; do
3858 # Setup a source with many dependencies, because some compilers
3859 # like to wrap large dependency lists on column 80 (with \), and
3860 # we should not choose a depcomp mode which is confused by this.
3861 #
3862 # We need to recreate these files for each test, as the compiler may
3863 # overwrite some of them when testing with obscure command lines.
3864 # This happens at least with the AIX C compiler.
3865 : > sub/conftest.c
3866 for i in 1 2 3 4 5 6; do
3867 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3868 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3869 # Solaris 10 /bin/sh.
3870 echo '/* dummy */' > sub/conftst$i.h
3871 done
3872 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3873
3874 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3875 # mode. It turns out that the SunPro C++ compiler does not properly
3876 # handle '-M -o', and we need to detect this. Also, some Intel
3877 # versions had trouble with output in subdirs.
3878 am__obj=sub/conftest.${OBJEXT-o}
3879 am__minus_obj="-o $am__obj"
3880 case $depmode in
3881 gcc)
3882 # This depmode causes a compiler race in universal mode.
3883 test "$am__universal" = false || continue
3884 ;;
3885 nosideeffect)
3886 # After this tag, mechanisms are not by side-effect, so they'll
3887 # only be used when explicitly requested.
3888 if test "x$enable_dependency_tracking" = xyes; then
3889 continue
3890 else
3891 break
3892 fi
3893 ;;
3894 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3895 # This compiler won't grok '-c -o', but also, the minuso test has
3896 # not run yet. These depmodes are late enough in the game, and
3897 # so weak that their functioning should not be impacted.
3898 am__obj=conftest.${OBJEXT-o}
3899 am__minus_obj=
3900 ;;
3901 none) break ;;
3902 esac
3903 if depmode=$depmode \
3904 source=sub/conftest.c object=$am__obj \
3905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3906 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3907 >/dev/null 2>conftest.err &&
3908 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3909 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3910 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3911 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3912 # icc doesn't choke on unknown options, it will just issue warnings
3913 # or remarks (even with -Werror). So we grep stderr for any message
3914 # that says an option was ignored or not supported.
3915 # When given -MP, icc 7.0 and 7.1 complain thusly:
3916 # icc: Command line warning: ignoring option '-M'; no argument required
3917 # The diagnosis changed in icc 8.0:
3918 # icc: Command line remark: option '-MP' not supported
3919 if (grep 'ignoring option' conftest.err ||
3920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3921 am_cv_CC_dependencies_compiler_type=$depmode
3922 break
3923 fi
3924 fi
3925 done
3926
3927 cd ..
3928 rm -rf conftest.dir
3929 else
3930 am_cv_CC_dependencies_compiler_type=none
3931 fi
3932
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3935 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3936 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3937
3938 if
3939 test "x$enable_dependency_tracking" != xno \
3940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941 am__fastdepCC_TRUE=
3942 am__fastdepCC_FALSE='#'
3943 else
3944 am__fastdepCC_TRUE='#'
3945 am__fastdepCC_FALSE=
3946 fi
3947
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3951 if ${ac_cv_prog_cc_c99+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 ac_cv_prog_cc_c99=no
3955 ac_save_CC=$CC
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #include <stdarg.h>
3959 #include <stdbool.h>
3960 #include <stdlib.h>
3961 #include <wchar.h>
3962 #include <stdio.h>
3963
3964 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3965 #define debug(...) fprintf (stderr, __VA_ARGS__)
3966 #define showlist(...) puts (#__VA_ARGS__)
3967 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3968 static void
3969 test_varargs_macros (void)
3970 {
3971 int x = 1234;
3972 int y = 5678;
3973 debug ("Flag");
3974 debug ("X = %d\n", x);
3975 showlist (The first, second, and third items.);
3976 report (x>y, "x is %d but y is %d", x, y);
3977 }
3978
3979 // Check long long types.
3980 #define BIG64 18446744073709551615ull
3981 #define BIG32 4294967295ul
3982 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3983 #if !BIG_OK
3984 your preprocessor is broken;
3985 #endif
3986 #if BIG_OK
3987 #else
3988 your preprocessor is broken;
3989 #endif
3990 static long long int bignum = -9223372036854775807LL;
3991 static unsigned long long int ubignum = BIG64;
3992
3993 struct incomplete_array
3994 {
3995 int datasize;
3996 double data[];
3997 };
3998
3999 struct named_init {
4000 int number;
4001 const wchar_t *name;
4002 double average;
4003 };
4004
4005 typedef const char *ccp;
4006
4007 static inline int
4008 test_restrict (ccp restrict text)
4009 {
4010 // See if C++-style comments work.
4011 // Iterate through items via the restricted pointer.
4012 // Also check for declarations in for loops.
4013 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4014 continue;
4015 return 0;
4016 }
4017
4018 // Check varargs and va_copy.
4019 static void
4020 test_varargs (const char *format, ...)
4021 {
4022 va_list args;
4023 va_start (args, format);
4024 va_list args_copy;
4025 va_copy (args_copy, args);
4026
4027 const char *str;
4028 int number;
4029 float fnumber;
4030
4031 while (*format)
4032 {
4033 switch (*format++)
4034 {
4035 case 's': // string
4036 str = va_arg (args_copy, const char *);
4037 break;
4038 case 'd': // int
4039 number = va_arg (args_copy, int);
4040 break;
4041 case 'f': // float
4042 fnumber = va_arg (args_copy, double);
4043 break;
4044 default:
4045 break;
4046 }
4047 }
4048 va_end (args_copy);
4049 va_end (args);
4050 }
4051
4052 int
4053 main ()
4054 {
4055
4056 // Check bool.
4057 _Bool success = false;
4058
4059 // Check restrict.
4060 if (test_restrict ("String literal") == 0)
4061 success = true;
4062 char *restrict newvar = "Another string";
4063
4064 // Check varargs.
4065 test_varargs ("s, d' f .", "string", 65, 34.234);
4066 test_varargs_macros ();
4067
4068 // Check flexible array members.
4069 struct incomplete_array *ia =
4070 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4071 ia->datasize = 10;
4072 for (int i = 0; i < ia->datasize; ++i)
4073 ia->data[i] = i * 1.234;
4074
4075 // Check named initializers.
4076 struct named_init ni = {
4077 .number = 34,
4078 .name = L"Test wide string",
4079 .average = 543.34343,
4080 };
4081
4082 ni.number = 58;
4083
4084 int dynamic_array[ni.number];
4085 dynamic_array[ni.number - 1] = 543;
4086
4087 // work around unused variable warnings
4088 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4089 || dynamic_array[ni.number - 1] != 543);
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4096 do
4097 CC="$ac_save_CC $ac_arg"
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_c99=$ac_arg
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext
4102 test "x$ac_cv_prog_cc_c99" != "xno" && break
4103 done
4104 rm -f conftest.$ac_ext
4105 CC=$ac_save_CC
4106
4107 fi
4108 # AC_CACHE_VAL
4109 case "x$ac_cv_prog_cc_c99" in
4110 x)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4112 $as_echo "none needed" >&6; } ;;
4113 xno)
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4115 $as_echo "unsupported" >&6; } ;;
4116 *)
4117 CC="$CC $ac_cv_prog_cc_c99"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4119 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4120 esac
4121 if test "x$ac_cv_prog_cc_c99" != xno; then :
4122
4123 fi
4124
4125
4126 if test "$ac_cv_prog_cc_c99" = "no"; then :
4127 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4128 fi
4129 case `pwd` in
4130 *\ * | *\ *)
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4132 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4133 esac
4134
4135
4136
4137 macro_version='2.4.4'
4138 macro_revision='2.4.4'
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152 ltmain=$ac_aux_dir/ltmain.sh
4153
4154 # Make sure we can run config.sub.
4155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4159 $as_echo_n "checking build system type... " >&6; }
4160 if ${ac_cv_build+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 ac_build_alias=$build_alias
4164 test "x$ac_build_alias" = x &&
4165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4166 test "x$ac_build_alias" = x &&
4167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4173 $as_echo "$ac_cv_build" >&6; }
4174 case $ac_cv_build in
4175 *-*-*) ;;
4176 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4177 esac
4178 build=$ac_cv_build
4179 ac_save_IFS=$IFS; IFS='-'
4180 set x $ac_cv_build
4181 shift
4182 build_cpu=$1
4183 build_vendor=$2
4184 shift; shift
4185 # Remember, the first character of IFS is used to create $*,
4186 # except with old shells:
4187 build_os=$*
4188 IFS=$ac_save_IFS
4189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4193 $as_echo_n "checking host system type... " >&6; }
4194 if ${ac_cv_host+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test "x$host_alias" = x; then
4198 ac_cv_host=$ac_cv_build
4199 else
4200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4206 $as_echo "$ac_cv_host" >&6; }
4207 case $ac_cv_host in
4208 *-*-*) ;;
4209 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4210 esac
4211 host=$ac_cv_host
4212 ac_save_IFS=$IFS; IFS='-'
4213 set x $ac_cv_host
4214 shift
4215 host_cpu=$1
4216 host_vendor=$2
4217 shift; shift
4218 # Remember, the first character of IFS is used to create $*,
4219 # except with old shells:
4220 host_os=$*
4221 IFS=$ac_save_IFS
4222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4223
4224
4225 # Backslashify metacharacters that are still active within
4226 # double-quoted strings.
4227 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4228
4229 # Same as above, but do not quote variable references.
4230 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4231
4232 # Sed substitution to delay expansion of an escaped shell variable in a
4233 # double_quote_subst'ed string.
4234 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4235
4236 # Sed substitution to delay expansion of an escaped single quote.
4237 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4238
4239 # Sed substitution to avoid accidental globbing in evaled expressions
4240 no_glob_subst='s/\*/\\\*/g'
4241
4242 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4243 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4244 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4247 $as_echo_n "checking how to print strings... " >&6; }
4248 # Test print first, because it will be a builtin if present.
4249 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4250 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4251 ECHO='print -r --'
4252 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4253 ECHO='printf %s\n'
4254 else
4255 # Use this function as a fallback that always works.
4256 func_fallback_echo ()
4257 {
4258 eval 'cat <<_LTECHO_EOF
4259 $1
4260 _LTECHO_EOF'
4261 }
4262 ECHO='func_fallback_echo'
4263 fi
4264
4265 # func_echo_all arg...
4266 # Invoke $ECHO with all args, space-separated.
4267 func_echo_all ()
4268 {
4269 $ECHO ""
4270 }
4271
4272 case $ECHO in
4273 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4274 $as_echo "printf" >&6; } ;;
4275 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4276 $as_echo "print -r" >&6; } ;;
4277 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4278 $as_echo "cat" >&6; } ;;
4279 esac
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4295 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4296 if ${ac_cv_path_SED+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4300 for ac_i in 1 2 3 4 5 6 7; do
4301 ac_script="$ac_script$as_nl$ac_script"
4302 done
4303 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4304 { ac_script=; unset ac_script;}
4305 if test -z "$SED"; then
4306 ac_path_SED_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in sed gsed; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4316 as_fn_executable_p "$ac_path_SED" || continue
4317 # Check for GNU ac_path_SED and select it if it is found.
4318 # Check for GNU $ac_path_SED
4319 case `"$ac_path_SED" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4322 *)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo '' >> "conftest.nl"
4331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_SED_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_SED="$ac_path_SED"
4337 ac_path_SED_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345 $ac_path_SED_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_SED"; then
4351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4352 fi
4353 else
4354 ac_cv_path_SED=$SED
4355 fi
4356
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4359 $as_echo "$ac_cv_path_SED" >&6; }
4360 SED="$ac_cv_path_SED"
4361 rm -f conftest.sed
4362
4363 test -z "$SED" && SED=sed
4364 Xsed="$SED -e 1s/^X//"
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4377 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4378 if ${ac_cv_path_GREP+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -z "$GREP"; then
4382 ac_path_GREP_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in grep ggrep; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4392 as_fn_executable_p "$ac_path_GREP" || continue
4393 # Check for GNU ac_path_GREP and select it if it is found.
4394 # Check for GNU $ac_path_GREP
4395 case `"$ac_path_GREP" --version 2>&1` in
4396 *GNU*)
4397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398 *)
4399 ac_count=0
4400 $as_echo_n 0123456789 >"conftest.in"
4401 while :
4402 do
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo 'GREP' >> "conftest.nl"
4407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_GREP="$ac_path_GREP"
4413 ac_path_GREP_max=$ac_count
4414 fi
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419 esac
4420
4421 $ac_path_GREP_found && break 3
4422 done
4423 done
4424 done
4425 IFS=$as_save_IFS
4426 if test -z "$ac_cv_path_GREP"; then
4427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428 fi
4429 else
4430 ac_cv_path_GREP=$GREP
4431 fi
4432
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4435 $as_echo "$ac_cv_path_GREP" >&6; }
4436 GREP="$ac_cv_path_GREP"
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4440 $as_echo_n "checking for egrep... " >&6; }
4441 if ${ac_cv_path_EGREP+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4445 then ac_cv_path_EGREP="$GREP -E"
4446 else
4447 if test -z "$EGREP"; then
4448 ac_path_EGREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in egrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_EGREP" || continue
4459 # Check for GNU ac_path_EGREP and select it if it is found.
4460 # Check for GNU $ac_path_EGREP
4461 case `"$ac_path_EGREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464 *)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'EGREP' >> "conftest.nl"
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP="$ac_path_EGREP"
4479 ac_path_EGREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487 $ac_path_EGREP_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_EGREP"; then
4493 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 fi
4495 else
4496 ac_cv_path_EGREP=$EGREP
4497 fi
4498
4499 fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4502 $as_echo "$ac_cv_path_EGREP" >&6; }
4503 EGREP="$ac_cv_path_EGREP"
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4507 $as_echo_n "checking for fgrep... " >&6; }
4508 if ${ac_cv_path_FGREP+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4512 then ac_cv_path_FGREP="$GREP -F"
4513 else
4514 if test -z "$FGREP"; then
4515 ac_path_FGREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in fgrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4525 as_fn_executable_p "$ac_path_FGREP" || continue
4526 # Check for GNU ac_path_FGREP and select it if it is found.
4527 # Check for GNU $ac_path_FGREP
4528 case `"$ac_path_FGREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4531 *)
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'FGREP' >> "conftest.nl"
4540 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_FGREP="$ac_path_FGREP"
4546 ac_path_FGREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4553
4554 $ac_path_FGREP_found && break 3
4555 done
4556 done
4557 done
4558 IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_FGREP"; then
4560 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 fi
4562 else
4563 ac_cv_path_FGREP=$FGREP
4564 fi
4565
4566 fi
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4569 $as_echo "$ac_cv_path_FGREP" >&6; }
4570 FGREP="$ac_cv_path_FGREP"
4571
4572
4573 test -z "$GREP" && GREP=grep
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593 # Check whether --with-gnu-ld was given.
4594 if test "${with_gnu_ld+set}" = set; then :
4595 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4596 else
4597 with_gnu_ld=no
4598 fi
4599
4600 ac_prog=ld
4601 if test yes = "$GCC"; then
4602 # Check if gcc -print-prog-name=ld gives a path.
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4604 $as_echo_n "checking for ld used by $CC... " >&6; }
4605 case $host in
4606 *-*-mingw*)
4607 # gcc leaves a trailing carriage return, which upsets mingw
4608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4609 *)
4610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4611 esac
4612 case $ac_prog in
4613 # Accept absolute paths.
4614 [\\/]* | ?:[\\/]*)
4615 re_direlt='/[^/][^/]*/\.\./'
4616 # Canonicalize the pathname of ld
4617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4620 done
4621 test -z "$LD" && LD=$ac_prog
4622 ;;
4623 "")
4624 # If it fails, then pretend we aren't using GCC.
4625 ac_prog=ld
4626 ;;
4627 *)
4628 # If it is relative, then search for the first ld in PATH.
4629 with_gnu_ld=unknown
4630 ;;
4631 esac
4632 elif test yes = "$with_gnu_ld"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4634 $as_echo_n "checking for GNU ld... " >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4637 $as_echo_n "checking for non-GNU ld... " >&6; }
4638 fi
4639 if ${lt_cv_path_LD+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -z "$LD"; then
4643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4644 for ac_dir in $PATH; do
4645 IFS=$lt_save_ifs
4646 test -z "$ac_dir" && ac_dir=.
4647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4648 lt_cv_path_LD=$ac_dir/$ac_prog
4649 # Check to see if the program is GNU ld. I'd rather use --version,
4650 # but apparently some variants of GNU ld only accept -v.
4651 # Break only if it was the GNU/non-GNU ld that we prefer.
4652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4653 *GNU* | *'with BFD'*)
4654 test no != "$with_gnu_ld" && break
4655 ;;
4656 *)
4657 test yes != "$with_gnu_ld" && break
4658 ;;
4659 esac
4660 fi
4661 done
4662 IFS=$lt_save_ifs
4663 else
4664 lt_cv_path_LD=$LD # Let the user override the test with a path.
4665 fi
4666 fi
4667
4668 LD=$lt_cv_path_LD
4669 if test -n "$LD"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4671 $as_echo "$LD" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4675 fi
4676 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4679 if ${lt_cv_prog_gnu_ld+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683 case `$LD -v 2>&1 </dev/null` in
4684 *GNU* | *'with BFD'*)
4685 lt_cv_prog_gnu_ld=yes
4686 ;;
4687 *)
4688 lt_cv_prog_gnu_ld=no
4689 ;;
4690 esac
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4693 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694 with_gnu_ld=$lt_cv_prog_gnu_ld
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4705 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4706 if ${lt_cv_path_NM+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test -n "$NM"; then
4710 # Let the user override the test.
4711 lt_cv_path_NM=$NM
4712 else
4713 lt_nm_to_check=${ac_tool_prefix}nm
4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715 lt_nm_to_check="$lt_nm_to_check nm"
4716 fi
4717 for lt_tmp_nm in $lt_nm_to_check; do
4718 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4720 IFS=$lt_save_ifs
4721 test -z "$ac_dir" && ac_dir=.
4722 tmp_nm=$ac_dir/$lt_tmp_nm
4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4724 # Check to see if the nm accepts a BSD-compat flag.
4725 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
4728 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4729 case $build_os in
4730 mingw*) lt_bad_file=conftest.nm/nofile ;;
4731 *) lt_bad_file=/dev/null ;;
4732 esac
4733 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4734 *$lt_bad_file* | *'Invalid file or object type'*)
4735 lt_cv_path_NM="$tmp_nm -B"
4736 break 2
4737 ;;
4738 *)
4739 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4740 */dev/null*)
4741 lt_cv_path_NM="$tmp_nm -p"
4742 break 2
4743 ;;
4744 *)
4745 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4746 continue # so that we can try to find one that supports BSD flags
4747 ;;
4748 esac
4749 ;;
4750 esac
4751 fi
4752 done
4753 IFS=$lt_save_ifs
4754 done
4755 : ${lt_cv_path_NM=no}
4756 fi
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4759 $as_echo "$lt_cv_path_NM" >&6; }
4760 if test no != "$lt_cv_path_NM"; then
4761 NM=$lt_cv_path_NM
4762 else
4763 # Didn't find any BSD compatible name lister, look for dumpbin.
4764 if test -n "$DUMPBIN"; then :
4765 # Let the user override the test.
4766 else
4767 if test -n "$ac_tool_prefix"; then
4768 for ac_prog in dumpbin "link -dump"
4769 do
4770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_DUMPBIN+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$DUMPBIN"; then
4778 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 DUMPBIN=$ac_cv_prog_DUMPBIN
4798 if test -n "$DUMPBIN"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4800 $as_echo "$DUMPBIN" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 test -n "$DUMPBIN" && break
4808 done
4809 fi
4810 if test -z "$DUMPBIN"; then
4811 ac_ct_DUMPBIN=$DUMPBIN
4812 for ac_prog in dumpbin "link -dump"
4813 do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_DUMPBIN"; then
4822 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4842 if test -n "$ac_ct_DUMPBIN"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4844 $as_echo "$ac_ct_DUMPBIN" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 test -n "$ac_ct_DUMPBIN" && break
4852 done
4853
4854 if test "x$ac_ct_DUMPBIN" = x; then
4855 DUMPBIN=":"
4856 else
4857 case $cross_compiling:$ac_tool_warned in
4858 yes:)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863 DUMPBIN=$ac_ct_DUMPBIN
4864 fi
4865 fi
4866
4867 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4868 *COFF*)
4869 DUMPBIN="$DUMPBIN -symbols -headers"
4870 ;;
4871 *)
4872 DUMPBIN=:
4873 ;;
4874 esac
4875 fi
4876
4877 if test : != "$DUMPBIN"; then
4878 NM=$DUMPBIN
4879 fi
4880 fi
4881 test -z "$NM" && NM=nm
4882
4883
4884
4885
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4889 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4890 if ${lt_cv_nm_interface+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 lt_cv_nm_interface="BSD nm"
4894 echo "int some_variable = 0;" > conftest.$ac_ext
4895 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4896 (eval "$ac_compile" 2>conftest.err)
4897 cat conftest.err >&5
4898 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4899 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4900 cat conftest.err >&5
4901 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4902 cat conftest.out >&5
4903 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4904 lt_cv_nm_interface="MS dumpbin"
4905 fi
4906 rm -f conftest*
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4909 $as_echo "$lt_cv_nm_interface" >&6; }
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4912 $as_echo_n "checking whether ln -s works... " >&6; }
4913 LN_S=$as_ln_s
4914 if test "$LN_S" = "ln -s"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916 $as_echo "yes" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4919 $as_echo "no, using $LN_S" >&6; }
4920 fi
4921
4922 # find the maximum length of command line arguments
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4924 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4925 if ${lt_cv_sys_max_cmd_len+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 i=0
4929 teststring=ABCD
4930
4931 case $build_os in
4932 msdosdjgpp*)
4933 # On DJGPP, this test can blow up pretty badly due to problems in libc
4934 # (any single argument exceeding 2000 bytes causes a buffer overrun
4935 # during glob expansion). Even if it were fixed, the result of this
4936 # check would be larger than it should be.
4937 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4938 ;;
4939
4940 gnu*)
4941 # Under GNU Hurd, this test is not required because there is
4942 # no limit to the length of command line arguments.
4943 # Libtool will interpret -1 as no limit whatsoever
4944 lt_cv_sys_max_cmd_len=-1;
4945 ;;
4946
4947 cygwin* | mingw* | cegcc*)
4948 # On Win9x/ME, this test blows up -- it succeeds, but takes
4949 # about 5 minutes as the teststring grows exponentially.
4950 # Worse, since 9x/ME are not pre-emptively multitasking,
4951 # you end up with a "frozen" computer, even though with patience
4952 # the test eventually succeeds (with a max line length of 256k).
4953 # Instead, let's just punt: use the minimum linelength reported by
4954 # all of the supported platforms: 8192 (on NT/2K/XP).
4955 lt_cv_sys_max_cmd_len=8192;
4956 ;;
4957
4958 mint*)
4959 # On MiNT this can take a long time and run out of memory.
4960 lt_cv_sys_max_cmd_len=8192;
4961 ;;
4962
4963 amigaos*)
4964 # On AmigaOS with pdksh, this test takes hours, literally.
4965 # So we just punt and use a minimum line length of 8192.
4966 lt_cv_sys_max_cmd_len=8192;
4967 ;;
4968
4969 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4970 # This has been around since 386BSD, at least. Likely further.
4971 if test -x /sbin/sysctl; then
4972 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4973 elif test -x /usr/sbin/sysctl; then
4974 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4975 else
4976 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4977 fi
4978 # And add a safety zone
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4981 ;;
4982
4983 interix*)
4984 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4985 lt_cv_sys_max_cmd_len=196608
4986 ;;
4987
4988 os2*)
4989 # The test takes a long time on OS/2.
4990 lt_cv_sys_max_cmd_len=8192
4991 ;;
4992
4993 osf*)
4994 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4995 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4996 # nice to cause kernel panics so lets avoid the loop below.
4997 # First set a reasonable default.
4998 lt_cv_sys_max_cmd_len=16384
4999 #
5000 if test -x /sbin/sysconfig; then
5001 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5002 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5003 esac
5004 fi
5005 ;;
5006 sco3.2v5*)
5007 lt_cv_sys_max_cmd_len=102400
5008 ;;
5009 sysv5* | sco5v6* | sysv4.2uw2*)
5010 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5011 if test -n "$kargmax"; then
5012 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5013 else
5014 lt_cv_sys_max_cmd_len=32768
5015 fi
5016 ;;
5017 *)
5018 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5019 if test -n "$lt_cv_sys_max_cmd_len" && \
5020 test undefined != "$lt_cv_sys_max_cmd_len"; then
5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5023 else
5024 # Make teststring a little bigger before we do anything with it.
5025 # a 1K string should be a reasonable start.
5026 for i in 1 2 3 4 5 6 7 8; do
5027 teststring=$teststring$teststring
5028 done
5029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5030 # If test is not a shell built-in, we'll probably end up computing a
5031 # maximum length that is only half of the actual maximum length, but
5032 # we can't tell.
5033 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5034 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5035 test 17 != "$i" # 1/2 MB should be enough
5036 do
5037 i=`expr $i + 1`
5038 teststring=$teststring$teststring
5039 done
5040 # Only check the string length outside the loop.
5041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5042 teststring=
5043 # Add a significant safety factor because C++ compilers can tack on
5044 # massive amounts of additional arguments before passing them to the
5045 # linker. It appears as though 1/2 is a usable value.
5046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5047 fi
5048 ;;
5049 esac
5050
5051 fi
5052
5053 if test -n "$lt_cv_sys_max_cmd_len"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5055 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5058 $as_echo "none" >&6; }
5059 fi
5060 max_cmd_len=$lt_cv_sys_max_cmd_len
5061
5062
5063
5064
5065
5066
5067 : ${CP="cp -f"}
5068 : ${MV="mv -f"}
5069 : ${RM="rm -f"}
5070
5071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5072 lt_unset=unset
5073 else
5074 lt_unset=false
5075 fi
5076
5077
5078
5079
5080
5081 # test EBCDIC or ASCII
5082 case `echo X|tr X '\101'` in
5083 A) # ASCII based system
5084 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5085 lt_SP2NL='tr \040 \012'
5086 lt_NL2SP='tr \015\012 \040\040'
5087 ;;
5088 *) # EBCDIC based system
5089 lt_SP2NL='tr \100 \n'
5090 lt_NL2SP='tr \r\n \100\100'
5091 ;;
5092 esac
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5103 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5104 if ${lt_cv_to_host_file_cmd+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 case $host in
5108 *-*-mingw* )
5109 case $build in
5110 *-*-mingw* ) # actually msys
5111 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5112 ;;
5113 *-*-cygwin* )
5114 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5115 ;;
5116 * ) # otherwise, assume *nix
5117 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5118 ;;
5119 esac
5120 ;;
5121 *-*-cygwin* )
5122 case $build in
5123 *-*-mingw* ) # actually msys
5124 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5125 ;;
5126 *-*-cygwin* )
5127 lt_cv_to_host_file_cmd=func_convert_file_noop
5128 ;;
5129 * ) # otherwise, assume *nix
5130 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5131 ;;
5132 esac
5133 ;;
5134 * ) # unhandled hosts (and "normal" native builds)
5135 lt_cv_to_host_file_cmd=func_convert_file_noop
5136 ;;
5137 esac
5138
5139 fi
5140
5141 to_host_file_cmd=$lt_cv_to_host_file_cmd
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5143 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5144
5145
5146
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5150 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5151 if ${lt_cv_to_tool_file_cmd+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 #assume ordinary cross tools, or native build.
5155 lt_cv_to_tool_file_cmd=func_convert_file_noop
5156 case $host in
5157 *-*-mingw* )
5158 case $build in
5159 *-*-mingw* ) # actually msys
5160 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5161 ;;
5162 esac
5163 ;;
5164 esac
5165
5166 fi
5167
5168 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5170 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5171
5172
5173
5174
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5177 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5178 if ${lt_cv_ld_reload_flag+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 lt_cv_ld_reload_flag='-r'
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5184 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5185 reload_flag=$lt_cv_ld_reload_flag
5186 case $reload_flag in
5187 "" | " "*) ;;
5188 *) reload_flag=" $reload_flag" ;;
5189 esac
5190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5191 case $host_os in
5192 cygwin* | mingw* | pw32* | cegcc*)
5193 if test yes != "$GCC"; then
5194 reload_cmds=false
5195 fi
5196 ;;
5197 darwin*)
5198 if test yes = "$GCC"; then
5199 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5200 else
5201 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5202 fi
5203 ;;
5204 esac
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_OBJDUMP+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$OBJDUMP"; then
5223 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 OBJDUMP=$ac_cv_prog_OBJDUMP
5243 if test -n "$OBJDUMP"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5245 $as_echo "$OBJDUMP" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252 fi
5253 if test -z "$ac_cv_prog_OBJDUMP"; then
5254 ac_ct_OBJDUMP=$OBJDUMP
5255 # Extract the first word of "objdump", so it can be a program name with args.
5256 set dummy objdump; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$ac_ct_OBJDUMP"; then
5263 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5283 if test -n "$ac_ct_OBJDUMP"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5285 $as_echo "$ac_ct_OBJDUMP" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291 if test "x$ac_ct_OBJDUMP" = x; then
5292 OBJDUMP="false"
5293 else
5294 case $cross_compiling:$ac_tool_warned in
5295 yes:)
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300 OBJDUMP=$ac_ct_OBJDUMP
5301 fi
5302 else
5303 OBJDUMP="$ac_cv_prog_OBJDUMP"
5304 fi
5305
5306 test -z "$OBJDUMP" && OBJDUMP=objdump
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5317 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5318 if ${lt_cv_deplibs_check_method+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 lt_cv_file_magic_cmd='$MAGIC_CMD'
5322 lt_cv_file_magic_test_file=
5323 lt_cv_deplibs_check_method='unknown'
5324 # Need to set the preceding variable on all platforms that support
5325 # interlibrary dependencies.
5326 # 'none' -- dependencies not supported.
5327 # 'unknown' -- same as none, but documents that we really don't know.
5328 # 'pass_all' -- all dependencies passed with no checks.
5329 # 'test_compile' -- check by making test program.
5330 # 'file_magic [[regex]]' -- check by looking for files in library path
5331 # that responds to the $file_magic_cmd with a given extended regex.
5332 # If you have 'file' or equivalent on your system and you're not sure
5333 # whether 'pass_all' will *always* work, you probably want this one.
5334
5335 case $host_os in
5336 aix[4-9]*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340 beos*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 bsdi[45]*)
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5346 lt_cv_file_magic_cmd='/usr/bin/file -L'
5347 lt_cv_file_magic_test_file=/shlib/libc.so
5348 ;;
5349
5350 cygwin*)
5351 # func_win32_libid is a shell function defined in ltmain.sh
5352 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5353 lt_cv_file_magic_cmd='func_win32_libid'
5354 ;;
5355
5356 mingw* | pw32*)
5357 # Base MSYS/MinGW do not provide the 'file' command needed by
5358 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5359 # unless we find 'file', for example because we are cross-compiling.
5360 if ( file / ) >/dev/null 2>&1; then
5361 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5362 lt_cv_file_magic_cmd='func_win32_libid'
5363 else
5364 # Keep this pattern in sync with the one in func_win32_libid.
5365 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5366 lt_cv_file_magic_cmd='$OBJDUMP -f'
5367 fi
5368 ;;
5369
5370 cegcc*)
5371 # use the weaker test based on 'objdump'. See mingw*.
5372 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5373 lt_cv_file_magic_cmd='$OBJDUMP -f'
5374 ;;
5375
5376 darwin* | rhapsody*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379
5380 freebsd* | dragonfly*)
5381 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5382 case $host_cpu in
5383 i*86 )
5384 # Not sure whether the presence of OpenBSD here was a mistake.
5385 # Let's accept both of them until this is cleared up.
5386 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5387 lt_cv_file_magic_cmd=/usr/bin/file
5388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5389 ;;
5390 esac
5391 else
5392 lt_cv_deplibs_check_method=pass_all
5393 fi
5394 ;;
5395
5396 haiku*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399
5400 hpux10.20* | hpux11*)
5401 lt_cv_file_magic_cmd=/usr/bin/file
5402 case $host_cpu in
5403 ia64*)
5404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5405 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5406 ;;
5407 hppa*64*)
5408 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]'
5409 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5410 ;;
5411 *)
5412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5413 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5414 ;;
5415 esac
5416 ;;
5417
5418 interix[3-9]*)
5419 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5421 ;;
5422
5423 irix5* | irix6* | nonstopux*)
5424 case $LD in
5425 *-32|*"-32 ") libmagic=32-bit;;
5426 *-n32|*"-n32 ") libmagic=N32;;
5427 *-64|*"-64 ") libmagic=64-bit;;
5428 *) libmagic=never-match;;
5429 esac
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 # This must be glibc/ELF.
5434 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437
5438 netbsd*)
5439 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5441 else
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5443 fi
5444 ;;
5445
5446 newos6*)
5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5448 lt_cv_file_magic_cmd=/usr/bin/file
5449 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5450 ;;
5451
5452 *nto* | *qnx*)
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
5456 openbsd* | bitrig*)
5457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5459 else
5460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461 fi
5462 ;;
5463
5464 osf3* | osf4* | osf5*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467
5468 rdos*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472 solaris*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5477 lt_cv_deplibs_check_method=pass_all
5478 ;;
5479
5480 sysv4 | sysv4.3*)
5481 case $host_vendor in
5482 motorola)
5483 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]'
5484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5485 ;;
5486 ncr)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489 sequent)
5490 lt_cv_file_magic_cmd='/bin/file'
5491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5492 ;;
5493 sni)
5494 lt_cv_file_magic_cmd='/bin/file'
5495 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5496 lt_cv_file_magic_test_file=/lib/libc.so
5497 ;;
5498 siemens)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501 pc)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504 esac
5505 ;;
5506
5507 tpf*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510 os2*)
5511 lt_cv_deplibs_check_method=pass_all
5512 ;;
5513 esac
5514
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5517 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5518
5519 file_magic_glob=
5520 want_nocaseglob=no
5521 if test "$build" = "$host"; then
5522 case $host_os in
5523 mingw* | pw32*)
5524 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5525 want_nocaseglob=yes
5526 else
5527 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5528 fi
5529 ;;
5530 esac
5531 fi
5532
5533 file_magic_cmd=$lt_cv_file_magic_cmd
5534 deplibs_check_method=$lt_cv_deplibs_check_method
5535 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_DLLTOOL+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$DLLTOOL"; then
5567 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 DLLTOOL=$ac_cv_prog_DLLTOOL
5587 if test -n "$DLLTOOL"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5589 $as_echo "$DLLTOOL" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 fi
5597 if test -z "$ac_cv_prog_DLLTOOL"; then
5598 ac_ct_DLLTOOL=$DLLTOOL
5599 # Extract the first word of "dlltool", so it can be a program name with args.
5600 set dummy dlltool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$ac_ct_DLLTOOL"; then
5607 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5627 if test -n "$ac_ct_DLLTOOL"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5629 $as_echo "$ac_ct_DLLTOOL" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635 if test "x$ac_ct_DLLTOOL" = x; then
5636 DLLTOOL="false"
5637 else
5638 case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644 DLLTOOL=$ac_ct_DLLTOOL
5645 fi
5646 else
5647 DLLTOOL="$ac_cv_prog_DLLTOOL"
5648 fi
5649
5650 test -z "$DLLTOOL" && DLLTOOL=dlltool
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5662 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5663 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 lt_cv_sharedlib_from_linklib_cmd='unknown'
5667
5668 case $host_os in
5669 cygwin* | mingw* | pw32* | cegcc*)
5670 # two different shell functions defined in ltmain.sh;
5671 # decide which one to use based on capabilities of $DLLTOOL
5672 case `$DLLTOOL --help 2>&1` in
5673 *--identify-strict*)
5674 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5675 ;;
5676 *)
5677 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5678 ;;
5679 esac
5680 ;;
5681 *)
5682 # fallback: assume linklib IS sharedlib
5683 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5684 ;;
5685 esac
5686
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5689 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5690 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5691 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5692
5693
5694
5695
5696
5697
5698
5699
5700 if test -n "$ac_tool_prefix"; then
5701 for ac_prog in ar
5702 do
5703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_AR+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$AR"; then
5711 ac_cv_prog_AR="$AR" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 AR=$ac_cv_prog_AR
5731 if test -n "$AR"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5733 $as_echo "$AR" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 test -n "$AR" && break
5741 done
5742 fi
5743 if test -z "$AR"; then
5744 ac_ct_AR=$AR
5745 for ac_prog in ar
5746 do
5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$ac_ct_AR"; then
5755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_AR="$ac_prog"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5775 if test -n "$ac_ct_AR"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5777 $as_echo "$ac_ct_AR" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783
5784 test -n "$ac_ct_AR" && break
5785 done
5786
5787 if test "x$ac_ct_AR" = x; then
5788 AR="false"
5789 else
5790 case $cross_compiling:$ac_tool_warned in
5791 yes:)
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796 AR=$ac_ct_AR
5797 fi
5798 fi
5799
5800 : ${AR=ar}
5801 : ${AR_FLAGS=cru}
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5814 $as_echo_n "checking for archiver @FILE support... " >&6; }
5815 if ${lt_cv_ar_at_file+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 lt_cv_ar_at_file=no
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821
5822 int
5823 main ()
5824 {
5825
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 if ac_fn_c_try_compile "$LINENO"; then :
5831 echo conftest.$ac_objext > conftest.lst
5832 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5834 (eval $lt_ar_try) 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; }
5838 if test 0 -eq "$ac_status"; then
5839 # Ensure the archiver fails upon bogus file names.
5840 rm -f conftest.$ac_objext libconftest.a
5841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5842 (eval $lt_ar_try) 2>&5
5843 ac_status=$?
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; }
5846 if test 0 -ne "$ac_status"; then
5847 lt_cv_ar_at_file=@
5848 fi
5849 fi
5850 rm -f conftest.* libconftest.a
5851
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5857 $as_echo "$lt_cv_ar_at_file" >&6; }
5858
5859 if test no = "$lt_cv_ar_at_file"; then
5860 archiver_list_spec=
5861 else
5862 archiver_list_spec=$lt_cv_ar_at_file
5863 fi
5864
5865
5866
5867
5868
5869
5870
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}strip; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_STRIP+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$STRIP"; then
5880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 STRIP=$ac_cv_prog_STRIP
5900 if test -n "$STRIP"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5902 $as_echo "$STRIP" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 fi
5910 if test -z "$ac_cv_prog_STRIP"; then
5911 ac_ct_STRIP=$STRIP
5912 # Extract the first word of "strip", so it can be a program name with args.
5913 set dummy strip; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_STRIP"; then
5920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_STRIP="strip"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5940 if test -n "$ac_ct_STRIP"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5942 $as_echo "$ac_ct_STRIP" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948 if test "x$ac_ct_STRIP" = x; then
5949 STRIP=":"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957 STRIP=$ac_ct_STRIP
5958 fi
5959 else
5960 STRIP="$ac_cv_prog_STRIP"
5961 fi
5962
5963 test -z "$STRIP" && STRIP=:
5964
5965
5966
5967
5968
5969
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_RANLIB+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$RANLIB"; then
5979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992 done
5993 done
5994 IFS=$as_save_IFS
5995
5996 fi
5997 fi
5998 RANLIB=$ac_cv_prog_RANLIB
5999 if test -n "$RANLIB"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6001 $as_echo "$RANLIB" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006
6007
6008 fi
6009 if test -z "$ac_cv_prog_RANLIB"; then
6010 ac_ct_RANLIB=$RANLIB
6011 # Extract the first word of "ranlib", so it can be a program name with args.
6012 set dummy ranlib; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_RANLIB"; then
6019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_RANLIB="ranlib"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6039 if test -n "$ac_ct_RANLIB"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6041 $as_echo "$ac_ct_RANLIB" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047 if test "x$ac_ct_RANLIB" = x; then
6048 RANLIB=":"
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 RANLIB=$ac_ct_RANLIB
6057 fi
6058 else
6059 RANLIB="$ac_cv_prog_RANLIB"
6060 fi
6061
6062 test -z "$RANLIB" && RANLIB=:
6063
6064
6065
6066
6067
6068
6069 # Determine commands to create old-style static archives.
6070 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6071 old_postinstall_cmds='chmod 644 $oldlib'
6072 old_postuninstall_cmds=
6073
6074 if test -n "$RANLIB"; then
6075 case $host_os in
6076 bitrig* | openbsd*)
6077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6078 ;;
6079 *)
6080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6081 ;;
6082 esac
6083 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6084 fi
6085
6086 case $host_os in
6087 darwin*)
6088 lock_old_archive_extraction=yes ;;
6089 *)
6090 lock_old_archive_extraction=no ;;
6091 esac
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 # If no C compiler was specified, use CC.
6132 LTCC=${LTCC-"$CC"}
6133
6134 # If no C compiler flags were specified, use CFLAGS.
6135 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6136
6137 # Allow CC to be a program name with arguments.
6138 compiler=$CC
6139
6140
6141 # Check for command to grab the raw symbol name followed by C symbol from nm.
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6143 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6144 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147
6148 # These are sane defaults that work on at least a few old systems.
6149 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6150
6151 # Character class describing NM global symbol codes.
6152 symcode='[BCDEGRST]'
6153
6154 # Regexp to match symbols that can be accessed directly from C.
6155 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6156
6157 # Define system-specific variables.
6158 case $host_os in
6159 aix*)
6160 symcode='[BCDT]'
6161 ;;
6162 cygwin* | mingw* | pw32* | cegcc*)
6163 symcode='[ABCDGISTW]'
6164 ;;
6165 hpux*)
6166 if test ia64 = "$host_cpu"; then
6167 symcode='[ABCDEGRST]'
6168 fi
6169 ;;
6170 irix* | nonstopux*)
6171 symcode='[BCDEGRST]'
6172 ;;
6173 osf*)
6174 symcode='[BCDEGQRST]'
6175 ;;
6176 solaris*)
6177 symcode='[BDRT]'
6178 ;;
6179 sco3.2v5*)
6180 symcode='[DT]'
6181 ;;
6182 sysv4.2uw2*)
6183 symcode='[DT]'
6184 ;;
6185 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6186 symcode='[ABDT]'
6187 ;;
6188 sysv4)
6189 symcode='[DFNSTU]'
6190 ;;
6191 esac
6192
6193 # If we're using GNU nm, then use its standard symbol codes.
6194 case `$NM -V 2>&1` in
6195 *GNU* | *'with BFD'*)
6196 symcode='[ABCDGIRSTW]' ;;
6197 esac
6198
6199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200 # Gets list of data symbols to import.
6201 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6202 # Adjust the below global symbol transforms to fixup imported variables.
6203 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6204 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6205 lt_c_name_lib_hook="\
6206 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6207 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6208 else
6209 # Disable hooks by default.
6210 lt_cv_sys_global_symbol_to_import=
6211 lt_cdecl_hook=
6212 lt_c_name_hook=
6213 lt_c_name_lib_hook=
6214 fi
6215
6216 # Transform an extracted symbol line into a proper C declaration.
6217 # Some systems (esp. on ia64) link data and code symbols differently,
6218 # so use this general approach.
6219 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6220 $lt_cdecl_hook\
6221 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6222 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6223
6224 # Transform an extracted symbol line into symbol name and symbol address
6225 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6226 $lt_c_name_hook\
6227 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6228 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6229
6230 # Transform an extracted symbol line into symbol name with lib prefix and
6231 # symbol address.
6232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6233 $lt_c_name_lib_hook\
6234 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6235 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6236 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6237
6238 # Handle CRLF in mingw tool chain
6239 opt_cr=
6240 case $build_os in
6241 mingw*)
6242 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6243 ;;
6244 esac
6245
6246 # Try without a prefix underscore, then with it.
6247 for ac_symprfx in "" "_"; do
6248
6249 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6250 symxfrm="\\1 $ac_symprfx\\2 \\2"
6251
6252 # Write the raw and C identifiers.
6253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6254 # Fake it for dumpbin and say T for any non-static function,
6255 # D for any global variable and I for any imported variable.
6256 # Also find C++ and __fastcall symbols from MSVC++,
6257 # which start with @ or ?.
6258 lt_cv_sys_global_symbol_pipe="$AWK '"\
6259 " {last_section=section; section=\$ 3};"\
6260 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6261 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6262 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6263 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6264 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6265 " \$ 0!~/External *\|/{next};"\
6266 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6267 " {if(hide[section]) next};"\
6268 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6269 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6270 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6271 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6272 " ' prfx=^$ac_symprfx"
6273 else
6274 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6275 fi
6276 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6277
6278 # Check to see that the pipe works correctly.
6279 pipe_works=no
6280
6281 rm -f conftest*
6282 cat > conftest.$ac_ext <<_LT_EOF
6283 #ifdef __cplusplus
6284 extern "C" {
6285 #endif
6286 char nm_test_var;
6287 void nm_test_func(void);
6288 void nm_test_func(void){}
6289 #ifdef __cplusplus
6290 }
6291 #endif
6292 int main(){nm_test_var='a';nm_test_func();return(0);}
6293 _LT_EOF
6294
6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }; then
6300 # Now try to grab the symbols.
6301 nlist=conftest.nm
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6303 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6304 ac_status=$?
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; } && test -s "$nlist"; then
6307 # Try sorting and uniquifying the output.
6308 if sort "$nlist" | uniq > "$nlist"T; then
6309 mv -f "$nlist"T "$nlist"
6310 else
6311 rm -f "$nlist"T
6312 fi
6313
6314 # Make sure that we snagged all the symbols we need.
6315 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6316 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6317 cat <<_LT_EOF > conftest.$ac_ext
6318 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6319 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6320 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6321 relocations are performed -- see ld's documentation on pseudo-relocs. */
6322 # define LT_DLSYM_CONST
6323 #elif defined __osf__
6324 /* This system does not cope well with relocations in const data. */
6325 # define LT_DLSYM_CONST
6326 #else
6327 # define LT_DLSYM_CONST const
6328 #endif
6329
6330 #ifdef __cplusplus
6331 extern "C" {
6332 #endif
6333
6334 _LT_EOF
6335 # Now generate the symbol file.
6336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6337
6338 cat <<_LT_EOF >> conftest.$ac_ext
6339
6340 /* The mapping between symbol names and symbols. */
6341 LT_DLSYM_CONST struct {
6342 const char *name;
6343 void *address;
6344 }
6345 lt__PROGRAM__LTX_preloaded_symbols[] =
6346 {
6347 { "@PROGRAM@", (void *) 0 },
6348 _LT_EOF
6349 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350 cat <<\_LT_EOF >> conftest.$ac_ext
6351 {0, (void *) 0}
6352 };
6353
6354 /* This works around a problem in FreeBSD linker */
6355 #ifdef FREEBSD_WORKAROUND
6356 static const void *lt_preloaded_setup() {
6357 return lt__PROGRAM__LTX_preloaded_symbols;
6358 }
6359 #endif
6360
6361 #ifdef __cplusplus
6362 }
6363 #endif
6364 _LT_EOF
6365 # Now try linking the two files.
6366 mv conftest.$ac_objext conftstm.$ac_objext
6367 lt_globsym_save_LIBS=$LIBS
6368 lt_globsym_save_CFLAGS=$CFLAGS
6369 LIBS=conftstm.$ac_objext
6370 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6376 pipe_works=yes
6377 fi
6378 LIBS=$lt_globsym_save_LIBS
6379 CFLAGS=$lt_globsym_save_CFLAGS
6380 else
6381 echo "cannot find nm_test_func in $nlist" >&5
6382 fi
6383 else
6384 echo "cannot find nm_test_var in $nlist" >&5
6385 fi
6386 else
6387 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6388 fi
6389 else
6390 echo "$progname: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 fi
6393 rm -rf conftest* conftst*
6394
6395 # Do not use the global_symbol_pipe unless it works.
6396 if test yes = "$pipe_works"; then
6397 break
6398 else
6399 lt_cv_sys_global_symbol_pipe=
6400 fi
6401 done
6402
6403 fi
6404
6405 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406 lt_cv_sys_global_symbol_to_cdecl=
6407 fi
6408 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410 $as_echo "failed" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413 $as_echo "ok" >&6; }
6414 fi
6415
6416 # Response file support.
6417 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6418 nm_file_list_spec='@'
6419 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6420 nm_file_list_spec='@'
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6460 $as_echo_n "checking for sysroot... " >&6; }
6461
6462 # Check whether --with-sysroot was given.
6463 if test "${with_sysroot+set}" = set; then :
6464 withval=$with_sysroot;
6465 else
6466 with_sysroot=no
6467 fi
6468
6469
6470 lt_sysroot=
6471 case $with_sysroot in #(
6472 yes)
6473 if test yes = "$GCC"; then
6474 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6475 fi
6476 ;; #(
6477 /*)
6478 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6479 ;; #(
6480 no|'')
6481 ;; #(
6482 *)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6484 $as_echo "$with_sysroot" >&6; }
6485 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6486 ;;
6487 esac
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6490 $as_echo "${lt_sysroot:-no}" >&6; }
6491
6492
6493
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6497 $as_echo_n "checking for a working dd... " >&6; }
6498 if ${ac_cv_path_lt_DD+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 printf 0123456789abcdef0123456789abcdef >conftest.i
6502 cat conftest.i conftest.i >conftest2.i
6503 : ${lt_DD:=$DD}
6504 if test -z "$lt_DD"; then
6505 ac_path_lt_DD_found=false
6506 # Loop through the user's path and test for each of PROGNAME-LIST
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_prog in dd; do
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6515 as_fn_executable_p "$ac_path_lt_DD" || continue
6516 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6517 cmp -s conftest.i conftest.out \
6518 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6519 fi
6520 $ac_path_lt_DD_found && break 3
6521 done
6522 done
6523 done
6524 IFS=$as_save_IFS
6525 if test -z "$ac_cv_path_lt_DD"; then
6526 :
6527 fi
6528 else
6529 ac_cv_path_lt_DD=$lt_DD
6530 fi
6531
6532 rm -f conftest.i conftest2.i conftest.out
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6535 $as_echo "$ac_cv_path_lt_DD" >&6; }
6536
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6539 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6540 if ${lt_cv_truncate_bin+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 printf 0123456789abcdef0123456789abcdef >conftest.i
6544 cat conftest.i conftest.i >conftest2.i
6545 lt_cv_truncate_bin=
6546 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6547 cmp -s conftest.i conftest.out \
6548 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6549 fi
6550 rm -f conftest.i conftest2.i conftest.out
6551 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6554 $as_echo "$lt_cv_truncate_bin" >&6; }
6555
6556
6557
6558
6559
6560
6561 # Check whether --enable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then :
6563 enableval=$enable_libtool_lock;
6564 fi
6565
6566 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6567
6568 # Some flags need to be propagated to the compiler or linker for good
6569 # libtool support.
6570 case $host in
6571 ia64-*-hpux*)
6572 # Find out what ABI is being produced by ac_compile, and set mode
6573 # options accordingly.
6574 echo 'int i;' > conftest.$ac_ext
6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }; then
6580 case `/usr/bin/file conftest.$ac_objext` in
6581 *ELF-32*)
6582 HPUX_IA64_MODE=32
6583 ;;
6584 *ELF-64*)
6585 HPUX_IA64_MODE=64
6586 ;;
6587 esac
6588 fi
6589 rm -rf conftest*
6590 ;;
6591 *-*-irix6*)
6592 # Find out what ABI is being produced by ac_compile, and set linker
6593 # options accordingly.
6594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6596 (eval $ac_compile) 2>&5
6597 ac_status=$?
6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599 test $ac_status = 0; }; then
6600 if test yes = "$lt_cv_prog_gnu_ld"; then
6601 case `/usr/bin/file conftest.$ac_objext` in
6602 *32-bit*)
6603 LD="${LD-ld} -melf32bsmip"
6604 ;;
6605 *N32*)
6606 LD="${LD-ld} -melf32bmipn32"
6607 ;;
6608 *64-bit*)
6609 LD="${LD-ld} -melf64bmip"
6610 ;;
6611 esac
6612 else
6613 case `/usr/bin/file conftest.$ac_objext` in
6614 *32-bit*)
6615 LD="${LD-ld} -32"
6616 ;;
6617 *N32*)
6618 LD="${LD-ld} -n32"
6619 ;;
6620 *64-bit*)
6621 LD="${LD-ld} -64"
6622 ;;
6623 esac
6624 fi
6625 fi
6626 rm -rf conftest*
6627 ;;
6628
6629 mips64*-*linux*)
6630 # Find out what ABI is being produced by ac_compile, and set linker
6631 # options accordingly.
6632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634 (eval $ac_compile) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6638 emul=elf
6639 case `/usr/bin/file conftest.$ac_objext` in
6640 *32-bit*)
6641 emul="${emul}32"
6642 ;;
6643 *64-bit*)
6644 emul="${emul}64"
6645 ;;
6646 esac
6647 case `/usr/bin/file conftest.$ac_objext` in
6648 *MSB*)
6649 emul="${emul}btsmip"
6650 ;;
6651 *LSB*)
6652 emul="${emul}ltsmip"
6653 ;;
6654 esac
6655 case `/usr/bin/file conftest.$ac_objext` in
6656 *N32*)
6657 emul="${emul}n32"
6658 ;;
6659 esac
6660 LD="${LD-ld} -m $emul"
6661 fi
6662 rm -rf conftest*
6663 ;;
6664
6665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6667 # Find out what ABI is being produced by ac_compile, and set linker
6668 # options accordingly. Note that the listed cases only cover the
6669 # situations where additional linker options are needed (such as when
6670 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6671 # vice versa); the common cases where no linker options are needed do
6672 # not appear in the list.
6673 echo 'int i;' > conftest.$ac_ext
6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6675 (eval $ac_compile) 2>&5
6676 ac_status=$?
6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; }; then
6679 case `/usr/bin/file conftest.o` in
6680 *32-bit*)
6681 case $host in
6682 x86_64-*kfreebsd*-gnu)
6683 LD="${LD-ld} -m elf_i386_fbsd"
6684 ;;
6685 x86_64-*linux*)
6686 case `/usr/bin/file conftest.o` in
6687 *x86-64*)
6688 LD="${LD-ld} -m elf32_x86_64"
6689 ;;
6690 *)
6691 LD="${LD-ld} -m elf_i386"
6692 ;;
6693 esac
6694 ;;
6695 powerpc64le-*linux*)
6696 LD="${LD-ld} -m elf32lppclinux"
6697 ;;
6698 powerpc64-*linux*)
6699 LD="${LD-ld} -m elf32ppclinux"
6700 ;;
6701 s390x-*linux*)
6702 LD="${LD-ld} -m elf_s390"
6703 ;;
6704 sparc64-*linux*)
6705 LD="${LD-ld} -m elf32_sparc"
6706 ;;
6707 esac
6708 ;;
6709 *64-bit*)
6710 case $host in
6711 x86_64-*kfreebsd*-gnu)
6712 LD="${LD-ld} -m elf_x86_64_fbsd"
6713 ;;
6714 x86_64-*linux*)
6715 LD="${LD-ld} -m elf_x86_64"
6716 ;;
6717 powerpcle-*linux*)
6718 LD="${LD-ld} -m elf64lppc"
6719 ;;
6720 powerpc-*linux*)
6721 LD="${LD-ld} -m elf64ppc"
6722 ;;
6723 s390*-*linux*|s390*-*tpf*)
6724 LD="${LD-ld} -m elf64_s390"
6725 ;;
6726 sparc*-*linux*)
6727 LD="${LD-ld} -m elf64_sparc"
6728 ;;
6729 esac
6730 ;;
6731 esac
6732 fi
6733 rm -rf conftest*
6734 ;;
6735
6736 *-*-sco3.2v5*)
6737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6738 SAVE_CFLAGS=$CFLAGS
6739 CFLAGS="$CFLAGS -belf"
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6741 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6742 if ${lt_cv_cc_needs_belf+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753
6754 int
6755 main ()
6756 {
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_link "$LINENO"; then :
6763 lt_cv_cc_needs_belf=yes
6764 else
6765 lt_cv_cc_needs_belf=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769 ac_ext=c
6770 ac_cpp='$CPP $CPPFLAGS'
6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6777 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6778 if test yes != "$lt_cv_cc_needs_belf"; then
6779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6780 CFLAGS=$SAVE_CFLAGS
6781 fi
6782 ;;
6783 *-*solaris*)
6784 # Find out what ABI is being produced by ac_compile, and set linker
6785 # options accordingly.
6786 echo 'int i;' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 case `/usr/bin/file conftest.o` in
6793 *64-bit*)
6794 case $lt_cv_prog_gnu_ld in
6795 yes*)
6796 case $host in
6797 i?86-*-solaris*|x86_64-*-solaris*)
6798 LD="${LD-ld} -m elf_x86_64"
6799 ;;
6800 sparc*-*-solaris*)
6801 LD="${LD-ld} -m elf64_sparc"
6802 ;;
6803 esac
6804 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6805 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6806 LD=${LD-ld}_sol2
6807 fi
6808 ;;
6809 *)
6810 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6811 LD="${LD-ld} -64"
6812 fi
6813 ;;
6814 esac
6815 ;;
6816 esac
6817 fi
6818 rm -rf conftest*
6819 ;;
6820 esac
6821
6822 need_locks=$enable_libtool_lock
6823
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}mt; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$MANIFEST_TOOL"; then
6833 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6853 if test -n "$MANIFEST_TOOL"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6855 $as_echo "$MANIFEST_TOOL" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6864 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6865 # Extract the first word of "mt", so it can be a program name with args.
6866 set dummy mt; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$ac_ct_MANIFEST_TOOL"; then
6873 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6893 if test -n "$ac_ct_MANIFEST_TOOL"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6895 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6902 MANIFEST_TOOL=":"
6903 else
6904 case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6911 fi
6912 else
6913 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6914 fi
6915
6916 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6918 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6919 if ${lt_cv_path_mainfest_tool+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 lt_cv_path_mainfest_tool=no
6923 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6924 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6925 cat conftest.err >&5
6926 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6927 lt_cv_path_mainfest_tool=yes
6928 fi
6929 rm -f conftest*
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6932 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6933 if test yes != "$lt_cv_path_mainfest_tool"; then
6934 MANIFEST_TOOL=:
6935 fi
6936
6937
6938
6939
6940
6941
6942 case $host_os in
6943 rhapsody* | darwin*)
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$DSYMUTIL"; then
6953 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6973 if test -n "$DSYMUTIL"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6975 $as_echo "$DSYMUTIL" >&6; }
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981
6982 fi
6983 if test -z "$ac_cv_prog_DSYMUTIL"; then
6984 ac_ct_DSYMUTIL=$DSYMUTIL
6985 # Extract the first word of "dsymutil", so it can be a program name with args.
6986 set dummy dsymutil; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$ac_ct_DSYMUTIL"; then
6993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7013 if test -n "$ac_ct_DSYMUTIL"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7015 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021 if test "x$ac_ct_DSYMUTIL" = x; then
7022 DSYMUTIL=":"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7028 ac_tool_warned=yes ;;
7029 esac
7030 DSYMUTIL=$ac_ct_DSYMUTIL
7031 fi
7032 else
7033 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7034 fi
7035
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_NMEDIT+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$NMEDIT"; then
7045 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 NMEDIT=$ac_cv_prog_NMEDIT
7065 if test -n "$NMEDIT"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7067 $as_echo "$NMEDIT" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073
7074 fi
7075 if test -z "$ac_cv_prog_NMEDIT"; then
7076 ac_ct_NMEDIT=$NMEDIT
7077 # Extract the first word of "nmedit", so it can be a program name with args.
7078 set dummy nmedit; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_NMEDIT"; then
7085 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7105 if test -n "$ac_ct_NMEDIT"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7107 $as_echo "$ac_ct_NMEDIT" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113 if test "x$ac_ct_NMEDIT" = x; then
7114 NMEDIT=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 NMEDIT=$ac_ct_NMEDIT
7123 fi
7124 else
7125 NMEDIT="$ac_cv_prog_NMEDIT"
7126 fi
7127
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_LIPO+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$LIPO"; then
7137 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 LIPO=$ac_cv_prog_LIPO
7157 if test -n "$LIPO"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7159 $as_echo "$LIPO" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_LIPO"; then
7168 ac_ct_LIPO=$LIPO
7169 # Extract the first word of "lipo", so it can be a program name with args.
7170 set dummy lipo; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_LIPO"; then
7177 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_LIPO="lipo"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7197 if test -n "$ac_ct_LIPO"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7199 $as_echo "$ac_ct_LIPO" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205 if test "x$ac_ct_LIPO" = x; then
7206 LIPO=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 LIPO=$ac_ct_LIPO
7215 fi
7216 else
7217 LIPO="$ac_cv_prog_LIPO"
7218 fi
7219
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}otool; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_OTOOL+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$OTOOL"; then
7229 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 OTOOL=$ac_cv_prog_OTOOL
7249 if test -n "$OTOOL"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7251 $as_echo "$OTOOL" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257
7258 fi
7259 if test -z "$ac_cv_prog_OTOOL"; then
7260 ac_ct_OTOOL=$OTOOL
7261 # Extract the first word of "otool", so it can be a program name with args.
7262 set dummy otool; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$ac_ct_OTOOL"; then
7269 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_ac_ct_OTOOL="otool"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7289 if test -n "$ac_ct_OTOOL"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7291 $as_echo "$ac_ct_OTOOL" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297 if test "x$ac_ct_OTOOL" = x; then
7298 OTOOL=":"
7299 else
7300 case $cross_compiling:$ac_tool_warned in
7301 yes:)
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7305 esac
7306 OTOOL=$ac_ct_OTOOL
7307 fi
7308 else
7309 OTOOL="$ac_cv_prog_OTOOL"
7310 fi
7311
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7314 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_OTOOL64+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$OTOOL64"; then
7321 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 fi
7339 fi
7340 OTOOL64=$ac_cv_prog_OTOOL64
7341 if test -n "$OTOOL64"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7343 $as_echo "$OTOOL64" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7348
7349
7350 fi
7351 if test -z "$ac_cv_prog_OTOOL64"; then
7352 ac_ct_OTOOL64=$OTOOL64
7353 # Extract the first word of "otool64", so it can be a program name with args.
7354 set dummy otool64; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$ac_ct_OTOOL64"; then
7361 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_ac_ct_OTOOL64="otool64"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7381 if test -n "$ac_ct_OTOOL64"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7383 $as_echo "$ac_ct_OTOOL64" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389 if test "x$ac_ct_OTOOL64" = x; then
7390 OTOOL64=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398 OTOOL64=$ac_ct_OTOOL64
7399 fi
7400 else
7401 OTOOL64="$ac_cv_prog_OTOOL64"
7402 fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7431 $as_echo_n "checking for -single_module linker flag... " >&6; }
7432 if ${lt_cv_apple_cc_single_mod+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 lt_cv_apple_cc_single_mod=no
7436 if test -z "$LT_MULTI_MODULE"; then
7437 # By default we will add the -single_module flag. You can override
7438 # by either setting the environment variable LT_MULTI_MODULE
7439 # non-empty at configure time, or by adding -multi_module to the
7440 # link flags.
7441 rm -rf libconftest.dylib*
7442 echo "int foo(void){return 1;}" > conftest.c
7443 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7444 -dynamiclib -Wl,-single_module conftest.c" >&5
7445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7446 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7447 _lt_result=$?
7448 # If there is a non-empty error log, and "single_module"
7449 # appears in it, assume the flag caused a linker warning
7450 if test -s conftest.err && $GREP single_module conftest.err; then
7451 cat conftest.err >&5
7452 # Otherwise, if the output was created with a 0 exit code from
7453 # the compiler, it worked.
7454 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7455 lt_cv_apple_cc_single_mod=yes
7456 else
7457 cat conftest.err >&5
7458 fi
7459 rm -rf libconftest.dylib*
7460 rm -f conftest.*
7461 fi
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7464 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7468 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 lt_cv_ld_exported_symbols_list=no
7472 save_LDFLAGS=$LDFLAGS
7473 echo "_main" > conftest.sym
7474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477
7478 int
7479 main ()
7480 {
7481
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 lt_cv_ld_exported_symbols_list=yes
7488 else
7489 lt_cv_ld_exported_symbols_list=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 LDFLAGS=$save_LDFLAGS
7494
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7500 $as_echo_n "checking for -force_load linker flag... " >&6; }
7501 if ${lt_cv_ld_force_load+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 lt_cv_ld_force_load=no
7505 cat > conftest.c << _LT_EOF
7506 int forced_loaded() { return 2;}
7507 _LT_EOF
7508 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7509 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7510 echo "$AR cru libconftest.a conftest.o" >&5
7511 $AR cru libconftest.a conftest.o 2>&5
7512 echo "$RANLIB libconftest.a" >&5
7513 $RANLIB libconftest.a 2>&5
7514 cat > conftest.c << _LT_EOF
7515 int main() { return 0;}
7516 _LT_EOF
7517 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7518 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7519 _lt_result=$?
7520 if test -s conftest.err && $GREP force_load conftest.err; then
7521 cat conftest.err >&5
7522 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7523 lt_cv_ld_force_load=yes
7524 else
7525 cat conftest.err >&5
7526 fi
7527 rm -f conftest.err libconftest.a conftest conftest.c
7528 rm -rf conftest.dSYM
7529
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7532 $as_echo "$lt_cv_ld_force_load" >&6; }
7533 case $host_os in
7534 rhapsody* | darwin1.[012])
7535 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7536 darwin1.*)
7537 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7538 darwin*) # darwin 5.x on
7539 # if running on 10.5 or later, the deployment target defaults
7540 # to the OS version, if on x86, and 10.4, the deployment
7541 # target defaults to 10.4. Don't you love it?
7542 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7543 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7544 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7545 10.[012][,.]*)
7546 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7547 10.*)
7548 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7549 esac
7550 ;;
7551 esac
7552 if test yes = "$lt_cv_apple_cc_single_mod"; then
7553 _lt_dar_single_mod='$single_module'
7554 fi
7555 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7556 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7557 else
7558 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7559 fi
7560 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7561 _lt_dsymutil='~$DSYMUTIL $lib || :'
7562 else
7563 _lt_dsymutil=
7564 fi
7565 ;;
7566 esac
7567
7568 ac_ext=c
7569 ac_cpp='$CPP $CPPFLAGS'
7570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7575 # On Suns, sometimes $CPP names a directory.
7576 if test -n "$CPP" && test -d "$CPP"; then
7577 CPP=
7578 fi
7579 if test -z "$CPP"; then
7580 if ${ac_cv_prog_CPP+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 # Double quotes because CPP needs to be expanded
7584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7585 do
7586 ac_preproc_ok=false
7587 for ac_c_preproc_warn_flag in '' yes
7588 do
7589 # Use a header file that comes with gcc, so configuring glibc
7590 # with a fresh cross-compiler works.
7591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7592 # <limits.h> exists even on freestanding compilers.
7593 # On the NeXT, cc -E runs the code through the compiler's parser,
7594 # not just through cpp. "Syntax error" is here to catch this case.
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #ifdef __STDC__
7598 # include <limits.h>
7599 #else
7600 # include <assert.h>
7601 #endif
7602 Syntax error
7603 _ACEOF
7604 if ac_fn_c_try_cpp "$LINENO"; then :
7605
7606 else
7607 # Broken: fails on valid input.
7608 continue
7609 fi
7610 rm -f conftest.err conftest.i conftest.$ac_ext
7611
7612 # OK, works on sane cases. Now check whether nonexistent headers
7613 # can be detected and how.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <ac_nonexistent.h>
7617 _ACEOF
7618 if ac_fn_c_try_cpp "$LINENO"; then :
7619 # Broken: success on invalid input.
7620 continue
7621 else
7622 # Passes both tests.
7623 ac_preproc_ok=:
7624 break
7625 fi
7626 rm -f conftest.err conftest.i conftest.$ac_ext
7627
7628 done
7629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7630 rm -f conftest.i conftest.err conftest.$ac_ext
7631 if $ac_preproc_ok; then :
7632 break
7633 fi
7634
7635 done
7636 ac_cv_prog_CPP=$CPP
7637
7638 fi
7639 CPP=$ac_cv_prog_CPP
7640 else
7641 ac_cv_prog_CPP=$CPP
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7644 $as_echo "$CPP" >&6; }
7645 ac_preproc_ok=false
7646 for ac_c_preproc_warn_flag in '' yes
7647 do
7648 # Use a header file that comes with gcc, so configuring glibc
7649 # with a fresh cross-compiler works.
7650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651 # <limits.h> exists even on freestanding compilers.
7652 # On the NeXT, cc -E runs the code through the compiler's parser,
7653 # not just through cpp. "Syntax error" is here to catch this case.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #ifdef __STDC__
7657 # include <limits.h>
7658 #else
7659 # include <assert.h>
7660 #endif
7661 Syntax error
7662 _ACEOF
7663 if ac_fn_c_try_cpp "$LINENO"; then :
7664
7665 else
7666 # Broken: fails on valid input.
7667 continue
7668 fi
7669 rm -f conftest.err conftest.i conftest.$ac_ext
7670
7671 # OK, works on sane cases. Now check whether nonexistent headers
7672 # can be detected and how.
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675 #include <ac_nonexistent.h>
7676 _ACEOF
7677 if ac_fn_c_try_cpp "$LINENO"; then :
7678 # Broken: success on invalid input.
7679 continue
7680 else
7681 # Passes both tests.
7682 ac_preproc_ok=:
7683 break
7684 fi
7685 rm -f conftest.err conftest.i conftest.$ac_ext
7686
7687 done
7688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7689 rm -f conftest.i conftest.err conftest.$ac_ext
7690 if $ac_preproc_ok; then :
7691
7692 else
7693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7695 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7696 See \`config.log' for more details" "$LINENO" 5; }
7697 fi
7698
7699 ac_ext=c
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7707 $as_echo_n "checking for ANSI C header files... " >&6; }
7708 if ${ac_cv_header_stdc+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <stdlib.h>
7714 #include <stdarg.h>
7715 #include <string.h>
7716 #include <float.h>
7717
7718 int
7719 main ()
7720 {
7721
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ac_cv_header_stdc=yes
7728 else
7729 ac_cv_header_stdc=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732
7733 if test $ac_cv_header_stdc = yes; then
7734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <string.h>
7738
7739 _ACEOF
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "memchr" >/dev/null 2>&1; then :
7742
7743 else
7744 ac_cv_header_stdc=no
7745 fi
7746 rm -f conftest*
7747
7748 fi
7749
7750 if test $ac_cv_header_stdc = yes; then
7751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 #include <stdlib.h>
7755
7756 _ACEOF
7757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7758 $EGREP "free" >/dev/null 2>&1; then :
7759
7760 else
7761 ac_cv_header_stdc=no
7762 fi
7763 rm -f conftest*
7764
7765 fi
7766
7767 if test $ac_cv_header_stdc = yes; then
7768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7769 if test "$cross_compiling" = yes; then :
7770 :
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <ctype.h>
7775 #include <stdlib.h>
7776 #if ((' ' & 0x0FF) == 0x020)
7777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7779 #else
7780 # define ISLOWER(c) \
7781 (('a' <= (c) && (c) <= 'i') \
7782 || ('j' <= (c) && (c) <= 'r') \
7783 || ('s' <= (c) && (c) <= 'z'))
7784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7785 #endif
7786
7787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7788 int
7789 main ()
7790 {
7791 int i;
7792 for (i = 0; i < 256; i++)
7793 if (XOR (islower (i), ISLOWER (i))
7794 || toupper (i) != TOUPPER (i))
7795 return 2;
7796 return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_run "$LINENO"; then :
7800
7801 else
7802 ac_cv_header_stdc=no
7803 fi
7804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7805 conftest.$ac_objext conftest.beam conftest.$ac_ext
7806 fi
7807
7808 fi
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7811 $as_echo "$ac_cv_header_stdc" >&6; }
7812 if test $ac_cv_header_stdc = yes; then
7813
7814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7815
7816 fi
7817
7818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7820 inttypes.h stdint.h unistd.h
7821 do :
7822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7824 "
7825 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7826 cat >>confdefs.h <<_ACEOF
7827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7828 _ACEOF
7829
7830 fi
7831
7832 done
7833
7834
7835 for ac_header in dlfcn.h
7836 do :
7837 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7838 "
7839 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7840 cat >>confdefs.h <<_ACEOF
7841 #define HAVE_DLFCN_H 1
7842 _ACEOF
7843
7844 fi
7845
7846 done
7847
7848
7849
7850
7851
7852 # Set options
7853
7854
7855
7856 enable_dlopen=no
7857
7858
7859 enable_win32_dll=no
7860
7861
7862 # Check whether --enable-shared was given.
7863 if test "${enable_shared+set}" = set; then :
7864 enableval=$enable_shared; p=${PACKAGE-default}
7865 case $enableval in
7866 yes) enable_shared=yes ;;
7867 no) enable_shared=no ;;
7868 *)
7869 enable_shared=no
7870 # Look at the argument we got. We use all the common list separators.
7871 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7872 for pkg in $enableval; do
7873 IFS=$lt_save_ifs
7874 if test "X$pkg" = "X$p"; then
7875 enable_shared=yes
7876 fi
7877 done
7878 IFS=$lt_save_ifs
7879 ;;
7880 esac
7881 else
7882 enable_shared=yes
7883 fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 # Check whether --enable-static was given.
7894 if test "${enable_static+set}" = set; then :
7895 enableval=$enable_static; p=${PACKAGE-default}
7896 case $enableval in
7897 yes) enable_static=yes ;;
7898 no) enable_static=no ;;
7899 *)
7900 enable_static=no
7901 # Look at the argument we got. We use all the common list separators.
7902 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7903 for pkg in $enableval; do
7904 IFS=$lt_save_ifs
7905 if test "X$pkg" = "X$p"; then
7906 enable_static=yes
7907 fi
7908 done
7909 IFS=$lt_save_ifs
7910 ;;
7911 esac
7912 else
7913 enable_static=yes
7914 fi
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925 # Check whether --with-pic was given.
7926 if test "${with_pic+set}" = set; then :
7927 withval=$with_pic; lt_p=${PACKAGE-default}
7928 case $withval in
7929 yes|no) pic_mode=$withval ;;
7930 *)
7931 pic_mode=default
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 lt_pkg in $withval; do
7935 IFS=$lt_save_ifs
7936 if test "X$lt_pkg" = "X$lt_p"; then
7937 pic_mode=yes
7938 fi
7939 done
7940 IFS=$lt_save_ifs
7941 ;;
7942 esac
7943 else
7944 pic_mode=default
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953
7954 # Check whether --enable-fast-install was given.
7955 if test "${enable_fast_install+set}" = set; then :
7956 enableval=$enable_fast_install; p=${PACKAGE-default}
7957 case $enableval in
7958 yes) enable_fast_install=yes ;;
7959 no) enable_fast_install=no ;;
7960 *)
7961 enable_fast_install=no
7962 # Look at the argument we got. We use all the common list separators.
7963 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7964 for pkg in $enableval; do
7965 IFS=$lt_save_ifs
7966 if test "X$pkg" = "X$p"; then
7967 enable_fast_install=yes
7968 fi
7969 done
7970 IFS=$lt_save_ifs
7971 ;;
7972 esac
7973 else
7974 enable_fast_install=yes
7975 fi
7976
7977
7978
7979
7980
7981
7982
7983
7984 shared_archive_member_spec=
7985 case $host,$enable_shared in
7986 power*-*-aix[5-9]*,yes)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7988 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7989
7990 # Check whether --with-aix-soname was given.
7991 if test "${with_aix_soname+set}" = set; then :
7992 withval=$with_aix_soname; case $withval in
7993 aix|svr4|both)
7994 ;;
7995 *)
7996 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7997 ;;
7998 esac
7999 lt_cv_with_aix_soname=$with_aix_soname
8000 else
8001 if ${lt_cv_with_aix_soname+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 lt_cv_with_aix_soname=aix
8005 fi
8006
8007 with_aix_soname=$lt_cv_with_aix_soname
8008 fi
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8011 $as_echo "$with_aix_soname" >&6; }
8012 if test aix != "$with_aix_soname"; then
8013 # For the AIX way of multilib, we name the shared archive member
8014 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8015 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8016 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8017 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8018 if test 64 = "${OBJECT_MODE-32}"; then
8019 shared_archive_member_spec=shr_64
8020 else
8021 shared_archive_member_spec=shr
8022 fi
8023 fi
8024 ;;
8025 *)
8026 with_aix_soname=aix
8027 ;;
8028 esac
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # This can be used to rebuild libtool when needed
8040 LIBTOOL_DEPS=$ltmain
8041
8042 # Always use our own libtool.
8043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 if test -n "${ZSH_VERSION+set}"; then
8090 setopt NO_GLOB_SUBST
8091 fi
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094 $as_echo_n "checking for objdir... " >&6; }
8095 if ${lt_cv_objdir+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 rm -f .libs 2>/dev/null
8099 mkdir .libs 2>/dev/null
8100 if test -d .libs; then
8101 lt_cv_objdir=.libs
8102 else
8103 # MS-DOS does not allow filenames that begin with a dot.
8104 lt_cv_objdir=_libs
8105 fi
8106 rmdir .libs 2>/dev/null
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109 $as_echo "$lt_cv_objdir" >&6; }
8110 objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116 cat >>confdefs.h <<_ACEOF
8117 #define LT_OBJDIR "$lt_cv_objdir/"
8118 _ACEOF
8119
8120
8121
8122
8123 case $host_os in
8124 aix3*)
8125 # AIX sometimes has problems with the GCC collect2 program. For some
8126 # reason, if we set the COLLECT_NAMES environment variable, the problems
8127 # vanish in a puff of smoke.
8128 if test set != "${COLLECT_NAMES+set}"; then
8129 COLLECT_NAMES=
8130 export COLLECT_NAMES
8131 fi
8132 ;;
8133 esac
8134
8135 # Global variables:
8136 ofile=libtool
8137 can_build_shared=yes
8138
8139 # All known linkers require a '.a' archive for static linking (except MSVC,
8140 # which needs '.lib').
8141 libext=a
8142
8143 with_gnu_ld=$lt_cv_prog_gnu_ld
8144
8145 old_CC=$CC
8146 old_CFLAGS=$CFLAGS
8147
8148 # Set sane defaults for various variables
8149 test -z "$CC" && CC=cc
8150 test -z "$LTCC" && LTCC=$CC
8151 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152 test -z "$LD" && LD=ld
8153 test -z "$ac_objext" && ac_objext=o
8154
8155 for cc_temp in $compiler""; do
8156 case $cc_temp in
8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159 \-*) ;;
8160 *) break;;
8161 esac
8162 done
8163 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8164
8165
8166 # Only perform the check for file, if the check method requires it
8167 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168 case $deplibs_check_method in
8169 file_magic*)
8170 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8173 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 case $MAGIC_CMD in
8177 [\\/*] | ?:[\\/]*)
8178 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8179 ;;
8180 *)
8181 lt_save_MAGIC_CMD=$MAGIC_CMD
8182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184 for ac_dir in $ac_dummy; do
8185 IFS=$lt_save_ifs
8186 test -z "$ac_dir" && ac_dir=.
8187 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8188 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8189 if test -n "$file_magic_test_file"; then
8190 case $deplibs_check_method in
8191 "file_magic "*)
8192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195 $EGREP "$file_magic_regex" > /dev/null; then
8196 :
8197 else
8198 cat <<_LT_EOF 1>&2
8199
8200 *** Warning: the command libtool uses to detect shared libraries,
8201 *** $file_magic_cmd, produces output that libtool cannot recognize.
8202 *** The result is that libtool may fail to recognize shared libraries
8203 *** as such. This will affect the creation of libtool libraries that
8204 *** depend on shared libraries, but programs linked with such libtool
8205 *** libraries will work regardless of this problem. Nevertheless, you
8206 *** may want to report the problem to your system manager and/or to
8207 *** bug-libtool@gnu.org
8208
8209 _LT_EOF
8210 fi ;;
8211 esac
8212 fi
8213 break
8214 fi
8215 done
8216 IFS=$lt_save_ifs
8217 MAGIC_CMD=$lt_save_MAGIC_CMD
8218 ;;
8219 esac
8220 fi
8221
8222 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8223 if test -n "$MAGIC_CMD"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225 $as_echo "$MAGIC_CMD" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232
8233
8234
8235 if test -z "$lt_cv_path_MAGIC_CMD"; then
8236 if test -n "$ac_tool_prefix"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238 $as_echo_n "checking for file... " >&6; }
8239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $MAGIC_CMD in
8243 [\\/*] | ?:[\\/]*)
8244 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8245 ;;
8246 *)
8247 lt_save_MAGIC_CMD=$MAGIC_CMD
8248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250 for ac_dir in $ac_dummy; do
8251 IFS=$lt_save_ifs
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f "$ac_dir/file"; then
8254 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8255 if test -n "$file_magic_test_file"; then
8256 case $deplibs_check_method in
8257 "file_magic "*)
8258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261 $EGREP "$file_magic_regex" > /dev/null; then
8262 :
8263 else
8264 cat <<_LT_EOF 1>&2
8265
8266 *** Warning: the command libtool uses to detect shared libraries,
8267 *** $file_magic_cmd, produces output that libtool cannot recognize.
8268 *** The result is that libtool may fail to recognize shared libraries
8269 *** as such. This will affect the creation of libtool libraries that
8270 *** depend on shared libraries, but programs linked with such libtool
8271 *** libraries will work regardless of this problem. Nevertheless, you
8272 *** may want to report the problem to your system manager and/or to
8273 *** bug-libtool@gnu.org
8274
8275 _LT_EOF
8276 fi ;;
8277 esac
8278 fi
8279 break
8280 fi
8281 done
8282 IFS=$lt_save_ifs
8283 MAGIC_CMD=$lt_save_MAGIC_CMD
8284 ;;
8285 esac
8286 fi
8287
8288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8289 if test -n "$MAGIC_CMD"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291 $as_echo "$MAGIC_CMD" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 else
8299 MAGIC_CMD=:
8300 fi
8301 fi
8302
8303 fi
8304 ;;
8305 esac
8306
8307 # Use C for the default configuration in the libtool script
8308
8309 lt_save_CC=$CC
8310 ac_ext=c
8311 ac_cpp='$CPP $CPPFLAGS'
8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317 # Source file extension for C test sources.
8318 ac_ext=c
8319
8320 # Object file extension for compiled C test sources.
8321 objext=o
8322 objext=$objext
8323
8324 # Code to be used in simple compile tests
8325 lt_simple_compile_test_code="int some_variable = 0;"
8326
8327 # Code to be used in simple link tests
8328 lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336 # If no C compiler was specified, use CC.
8337 LTCC=${LTCC-"$CC"}
8338
8339 # If no C compiler flags were specified, use CFLAGS.
8340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342 # Allow CC to be a program name with arguments.
8343 compiler=$CC
8344
8345 # Save the default compiler, since it gets overwritten when the other
8346 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347 compiler_DEFAULT=$CC
8348
8349 # save warnings/boilerplate of simple test code
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_compiler_boilerplate=`cat conftest.err`
8354 $RM conftest*
8355
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359 _lt_linker_boilerplate=`cat conftest.err`
8360 $RM -r conftest*
8361
8362
8363 if test -n "$compiler"; then
8364
8365 lt_prog_compiler_no_builtin_flag=
8366
8367 if test yes = "$GCC"; then
8368 case $cc_basename in
8369 nvcc*)
8370 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8371 *)
8372 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8373 esac
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8376 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8377 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 lt_cv_prog_compiler_rtti_exceptions=no
8381 ac_outfile=conftest.$ac_objext
8382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8384 # Insert the option either (1) after the last *FLAGS variable, or
8385 # (2) before a word containing "conftest.", or (3) at the end.
8386 # Note that $ac_compile itself does not contain backslashes and begins
8387 # with a dollar sign (not a hyphen), so the echo should work correctly.
8388 # The option is referenced via a variable to avoid confusing sed.
8389 lt_compile=`echo "$ac_compile" | $SED \
8390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392 -e 's:$: $lt_compiler_flag:'`
8393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8394 (eval "$lt_compile" 2>conftest.err)
8395 ac_status=$?
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 if (exit $ac_status) && test -s "$ac_outfile"; then
8399 # The compiler can only warn and ignore the option if not recognized
8400 # So say no if there are warnings other than the usual output.
8401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8403 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8404 lt_cv_prog_compiler_rtti_exceptions=yes
8405 fi
8406 fi
8407 $RM conftest*
8408
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8411 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8412
8413 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8414 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8415 else
8416 :
8417 fi
8418
8419 fi
8420
8421
8422
8423
8424
8425
8426 lt_prog_compiler_wl=
8427 lt_prog_compiler_pic=
8428 lt_prog_compiler_static=
8429
8430
8431 if test yes = "$GCC"; then
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_static='-static'
8434
8435 case $host_os in
8436 aix*)
8437 # All AIX code is PIC.
8438 if test ia64 = "$host_cpu"; then
8439 # AIX 5 now supports IA64 processor
8440 lt_prog_compiler_static='-Bstatic'
8441 fi
8442 lt_prog_compiler_pic='-fPIC'
8443 ;;
8444
8445 amigaos*)
8446 case $host_cpu in
8447 powerpc)
8448 # see comment about AmigaOS4 .so support
8449 lt_prog_compiler_pic='-fPIC'
8450 ;;
8451 m68k)
8452 # FIXME: we need at least 68020 code to build shared libraries, but
8453 # adding the '-m68020' flag to GCC prevents building anything better,
8454 # like '-m68040'.
8455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8456 ;;
8457 esac
8458 ;;
8459
8460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8461 # PIC is the default for these OSes.
8462 ;;
8463
8464 mingw* | cygwin* | pw32* | os2* | cegcc*)
8465 # This hack is so that the source file can tell whether it is being
8466 # built for inclusion in a dll (and should export symbols for example).
8467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8468 # (--disable-auto-import) libraries
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8470 case $host_os in
8471 os2*)
8472 lt_prog_compiler_static='$wl-static'
8473 ;;
8474 esac
8475 ;;
8476
8477 darwin* | rhapsody*)
8478 # PIC is the default on this platform
8479 # Common symbols not allowed in MH_DYLIB files
8480 lt_prog_compiler_pic='-fno-common'
8481 ;;
8482
8483 haiku*)
8484 # PIC is the default for Haiku.
8485 # The "-static" flag exists, but is broken.
8486 lt_prog_compiler_static=
8487 ;;
8488
8489 hpux*)
8490 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8491 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8492 # sets the default TLS model and affects inlining.
8493 case $host_cpu in
8494 hppa*64*)
8495 # +Z the default
8496 ;;
8497 *)
8498 lt_prog_compiler_pic='-fPIC'
8499 ;;
8500 esac
8501 ;;
8502
8503 interix[3-9]*)
8504 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8505 # Instead, we relocate shared libraries at runtime.
8506 ;;
8507
8508 msdosdjgpp*)
8509 # Just because we use GCC doesn't mean we suddenly get shared libraries
8510 # on systems that don't support them.
8511 lt_prog_compiler_can_build_shared=no
8512 enable_shared=no
8513 ;;
8514
8515 *nto* | *qnx*)
8516 # QNX uses GNU C++, but need to define -shared option too, otherwise
8517 # it will coredump.
8518 lt_prog_compiler_pic='-fPIC -shared'
8519 ;;
8520
8521 sysv4*MP*)
8522 if test -d /usr/nec; then
8523 lt_prog_compiler_pic=-Kconform_pic
8524 fi
8525 ;;
8526
8527 *)
8528 lt_prog_compiler_pic='-fPIC'
8529 ;;
8530 esac
8531
8532 case $cc_basename in
8533 nvcc*) # Cuda Compiler Driver 2.2
8534 lt_prog_compiler_wl='-Xlinker '
8535 if test -n "$lt_prog_compiler_pic"; then
8536 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8537 fi
8538 ;;
8539 esac
8540 else
8541 # PORTME Check for flag to pass linker flags through the system compiler.
8542 case $host_os in
8543 aix*)
8544 lt_prog_compiler_wl='-Wl,'
8545 if test ia64 = "$host_cpu"; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static='-Bstatic'
8548 else
8549 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8550 fi
8551 ;;
8552
8553 darwin* | rhapsody*)
8554 # PIC is the default on this platform
8555 # Common symbols not allowed in MH_DYLIB files
8556 lt_prog_compiler_pic='-fno-common'
8557 case $cc_basename in
8558 nagfor*)
8559 # NAG Fortran compiler
8560 lt_prog_compiler_wl='-Wl,-Wl,,'
8561 lt_prog_compiler_pic='-PIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 ;;
8564 esac
8565 ;;
8566
8567 mingw* | cygwin* | pw32* | os2* | cegcc*)
8568 # This hack is so that the source file can tell whether it is being
8569 # built for inclusion in a dll (and should export symbols for example).
8570 lt_prog_compiler_pic='-DDLL_EXPORT'
8571 case $host_os in
8572 os2*)
8573 lt_prog_compiler_static='$wl-static'
8574 ;;
8575 esac
8576 ;;
8577
8578 hpux9* | hpux10* | hpux11*)
8579 lt_prog_compiler_wl='-Wl,'
8580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8581 # not for PA HP-UX.
8582 case $host_cpu in
8583 hppa*64*|ia64*)
8584 # +Z the default
8585 ;;
8586 *)
8587 lt_prog_compiler_pic='+Z'
8588 ;;
8589 esac
8590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8591 lt_prog_compiler_static='$wl-a ${wl}archive'
8592 ;;
8593
8594 irix5* | irix6* | nonstopux*)
8595 lt_prog_compiler_wl='-Wl,'
8596 # PIC (with -KPIC) is the default.
8597 lt_prog_compiler_static='-non_shared'
8598 ;;
8599
8600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8601 case $cc_basename in
8602 # old Intel for x86_64, which still supported -KPIC.
8603 ecc*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-KPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
8608 # icc used to be incompatible with GCC.
8609 # ICC 10 doesn't accept -KPIC any more.
8610 icc* | ifort*)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fPIC'
8613 lt_prog_compiler_static='-static'
8614 ;;
8615 # Lahey Fortran 8.1.
8616 lf95*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='--shared'
8619 lt_prog_compiler_static='--static'
8620 ;;
8621 nagfor*)
8622 # NAG Fortran compiler
8623 lt_prog_compiler_wl='-Wl,-Wl,,'
8624 lt_prog_compiler_pic='-PIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627 tcc*)
8628 # Fabrice Bellard et al's Tiny C Compiler
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fPIC'
8631 lt_prog_compiler_static='-static'
8632 ;;
8633 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8634 # Portland Group compilers (*not* the Pentium gcc compiler,
8635 # which looks to be a dead project)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-fpic'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640 ccc*)
8641 lt_prog_compiler_wl='-Wl,'
8642 # All Alpha code is PIC.
8643 lt_prog_compiler_static='-non_shared'
8644 ;;
8645 xl* | bgxl* | bgf* | mpixl*)
8646 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-qpic'
8649 lt_prog_compiler_static='-qstaticlink'
8650 ;;
8651 *)
8652 case `$CC -V 2>&1 | sed 5q` in
8653 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 lt_prog_compiler_wl=''
8658 ;;
8659 *Sun\ F* | *Sun*Fortran*)
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 lt_prog_compiler_wl='-Qoption ld '
8663 ;;
8664 *Sun\ C*)
8665 # Sun C 5.9
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 lt_prog_compiler_wl='-Wl,'
8669 ;;
8670 *Intel*\ [CF]*Compiler*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-fPIC'
8673 lt_prog_compiler_static='-static'
8674 ;;
8675 *Portland\ Group*)
8676 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_pic='-fpic'
8678 lt_prog_compiler_static='-Bstatic'
8679 ;;
8680 esac
8681 ;;
8682 esac
8683 ;;
8684
8685 newsos6)
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-Bstatic'
8688 ;;
8689
8690 *nto* | *qnx*)
8691 # QNX uses GNU C++, but need to define -shared option too, otherwise
8692 # it will coredump.
8693 lt_prog_compiler_pic='-fPIC -shared'
8694 ;;
8695
8696 osf3* | osf4* | osf5*)
8697 lt_prog_compiler_wl='-Wl,'
8698 # All OSF/1 code is PIC.
8699 lt_prog_compiler_static='-non_shared'
8700 ;;
8701
8702 rdos*)
8703 lt_prog_compiler_static='-non_shared'
8704 ;;
8705
8706 solaris*)
8707 lt_prog_compiler_pic='-KPIC'
8708 lt_prog_compiler_static='-Bstatic'
8709 case $cc_basename in
8710 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8711 lt_prog_compiler_wl='-Qoption ld ';;
8712 *)
8713 lt_prog_compiler_wl='-Wl,';;
8714 esac
8715 ;;
8716
8717 sunos4*)
8718 lt_prog_compiler_wl='-Qoption ld '
8719 lt_prog_compiler_pic='-PIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 ;;
8722
8723 sysv4 | sysv4.2uw2* | sysv4.3*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728
8729 sysv4*MP*)
8730 if test -d /usr/nec; then
8731 lt_prog_compiler_pic='-Kconform_pic'
8732 lt_prog_compiler_static='-Bstatic'
8733 fi
8734 ;;
8735
8736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='-KPIC'
8739 lt_prog_compiler_static='-Bstatic'
8740 ;;
8741
8742 unicos*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_can_build_shared=no
8745 ;;
8746
8747 uts4*)
8748 lt_prog_compiler_pic='-pic'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8751
8752 *)
8753 lt_prog_compiler_can_build_shared=no
8754 ;;
8755 esac
8756 fi
8757
8758 case $host_os in
8759 # For platforms that do not support PIC, -DPIC is meaningless:
8760 *djgpp*)
8761 lt_prog_compiler_pic=
8762 ;;
8763 *)
8764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8765 ;;
8766 esac
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8770 if ${lt_cv_prog_compiler_pic+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8776 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8777 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8778
8779 #
8780 # Check to make sure the PIC flag actually works.
8781 #
8782 if test -n "$lt_prog_compiler_pic"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8784 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8785 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_pic_works=no
8789 ac_outfile=conftest.$ac_objext
8790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8791 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8792 # Insert the option either (1) after the last *FLAGS variable, or
8793 # (2) before a word containing "conftest.", or (3) at the end.
8794 # Note that $ac_compile itself does not contain backslashes and begins
8795 # with a dollar sign (not a hyphen), so the echo should work correctly.
8796 # The option is referenced via a variable to avoid confusing sed.
8797 lt_compile=`echo "$ac_compile" | $SED \
8798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800 -e 's:$: $lt_compiler_flag:'`
8801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8802 (eval "$lt_compile" 2>conftest.err)
8803 ac_status=$?
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 if (exit $ac_status) && test -s "$ac_outfile"; then
8807 # The compiler can only warn and ignore the option if not recognized
8808 # So say no if there are warnings other than the usual output.
8809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_pic_works=yes
8813 fi
8814 fi
8815 $RM conftest*
8816
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8819 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8820
8821 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8822 case $lt_prog_compiler_pic in
8823 "" | " "*) ;;
8824 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8825 esac
8826 else
8827 lt_prog_compiler_pic=
8828 lt_prog_compiler_can_build_shared=no
8829 fi
8830
8831 fi
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 #
8844 # Check to make sure the static flag actually works.
8845 #
8846 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8848 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8849 if ${lt_cv_prog_compiler_static_works+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 lt_cv_prog_compiler_static_works=no
8853 save_LDFLAGS=$LDFLAGS
8854 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8857 # The linker can only warn and ignore the option if not recognized
8858 # So say no if there are warnings
8859 if test -s conftest.err; then
8860 # Append any errors to the config.log.
8861 cat conftest.err 1>&5
8862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8864 if diff conftest.exp conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_static_works=yes
8866 fi
8867 else
8868 lt_cv_prog_compiler_static_works=yes
8869 fi
8870 fi
8871 $RM -r conftest*
8872 LDFLAGS=$save_LDFLAGS
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8876 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8877
8878 if test yes = "$lt_cv_prog_compiler_static_works"; then
8879 :
8880 else
8881 lt_prog_compiler_static=
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8892 if ${lt_cv_prog_compiler_c_o+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_prog_compiler_c_o=no
8896 $RM -r conftest 2>/dev/null
8897 mkdir conftest
8898 cd conftest
8899 mkdir out
8900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8901
8902 lt_compiler_flag="-o out/conftest2.$ac_objext"
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 lt_compile=`echo "$ac_compile" | $SED \
8908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8910 -e 's:$: $lt_compiler_flag:'`
8911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8912 (eval "$lt_compile" 2>out/conftest.err)
8913 ac_status=$?
8914 cat out/conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8917 then
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings
8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_c_o=yes
8924 fi
8925 fi
8926 chmod u+w . 2>&5
8927 $RM conftest*
8928 # SGI C++ compiler will create directory out/ii_files/ for
8929 # template instantiation
8930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8931 $RM out/* && rmdir out
8932 cd ..
8933 $RM -r conftest
8934 $RM conftest*
8935
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8938 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8939
8940
8941
8942
8943
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8946 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8947 if ${lt_cv_prog_compiler_c_o+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 lt_cv_prog_compiler_c_o=no
8951 $RM -r conftest 2>/dev/null
8952 mkdir conftest
8953 cd conftest
8954 mkdir out
8955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8956
8957 lt_compiler_flag="-o out/conftest2.$ac_objext"
8958 # Insert the option either (1) after the last *FLAGS variable, or
8959 # (2) before a word containing "conftest.", or (3) at the end.
8960 # Note that $ac_compile itself does not contain backslashes and begins
8961 # with a dollar sign (not a hyphen), so the echo should work correctly.
8962 lt_compile=`echo "$ac_compile" | $SED \
8963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8965 -e 's:$: $lt_compiler_flag:'`
8966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8967 (eval "$lt_compile" 2>out/conftest.err)
8968 ac_status=$?
8969 cat out/conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8972 then
8973 # The compiler can only warn and ignore the option if not recognized
8974 # So say no if there are warnings
8975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8978 lt_cv_prog_compiler_c_o=yes
8979 fi
8980 fi
8981 chmod u+w . 2>&5
8982 $RM conftest*
8983 # SGI C++ compiler will create directory out/ii_files/ for
8984 # template instantiation
8985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8986 $RM out/* && rmdir out
8987 cd ..
8988 $RM -r conftest
8989 $RM conftest*
8990
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8993 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8994
8995
8996
8997
8998 hard_links=nottested
8999 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9000 # do not overwrite the value of need_locks provided by the user
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9002 $as_echo_n "checking if we can lock with hard links... " >&6; }
9003 hard_links=yes
9004 $RM conftest*
9005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9006 touch conftest.a
9007 ln conftest.a conftest.b 2>&5 || hard_links=no
9008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9010 $as_echo "$hard_links" >&6; }
9011 if test no = "$hard_links"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9013 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9014 need_locks=warn
9015 fi
9016 else
9017 need_locks=no
9018 fi
9019
9020
9021
9022
9023
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9026 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9027
9028 runpath_var=
9029 allow_undefined_flag=
9030 always_export_symbols=no
9031 archive_cmds=
9032 archive_expsym_cmds=
9033 compiler_needs_object=no
9034 enable_shared_with_static_runtimes=no
9035 export_dynamic_flag_spec=
9036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9037 hardcode_automatic=no
9038 hardcode_direct=no
9039 hardcode_direct_absolute=no
9040 hardcode_libdir_flag_spec=
9041 hardcode_libdir_separator=
9042 hardcode_minus_L=no
9043 hardcode_shlibpath_var=unsupported
9044 inherit_rpath=no
9045 link_all_deplibs=unknown
9046 module_cmds=
9047 module_expsym_cmds=
9048 old_archive_from_new_cmds=
9049 old_archive_from_expsyms_cmds=
9050 thread_safe_flag_spec=
9051 whole_archive_flag_spec=
9052 # include_expsyms should be a list of space-separated symbols to be *always*
9053 # included in the symbol list
9054 include_expsyms=
9055 # exclude_expsyms can be an extended regexp of symbols to exclude
9056 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9057 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9058 # as well as any symbol that contains 'd'.
9059 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9061 # platforms (ab)use it in PIC code, but their linkers get confused if
9062 # the symbol is explicitly referenced. Since portable code cannot
9063 # rely on this symbol name, it's probably fine to never include it in
9064 # preloaded symbol tables.
9065 # Exclude shared library initialization/finalization symbols.
9066 extract_expsyms_cmds=
9067
9068 case $host_os in
9069 cygwin* | mingw* | pw32* | cegcc*)
9070 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9071 # When not using gcc, we currently assume that we are using
9072 # Microsoft Visual C++.
9073 if test yes != "$GCC"; then
9074 with_gnu_ld=no
9075 fi
9076 ;;
9077 interix*)
9078 # we just hope/assume this is gcc and not c89 (= MSVC++)
9079 with_gnu_ld=yes
9080 ;;
9081 openbsd* | bitrig*)
9082 with_gnu_ld=no
9083 ;;
9084 esac
9085
9086 ld_shlibs=yes
9087
9088 # On some targets, GNU ld is compatible enough with the native linker
9089 # that we're better off using the native interface for both.
9090 lt_use_gnu_ld_interface=no
9091 if test yes = "$with_gnu_ld"; then
9092 case $host_os in
9093 aix*)
9094 # The AIX port of GNU ld has always aspired to compatibility
9095 # with the native linker. However, as the warning in the GNU ld
9096 # block says, versions before 2.19.5* couldn't really create working
9097 # shared libraries, regardless of the interface used.
9098 case `$LD -v 2>&1` in
9099 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9100 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9101 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9102 *)
9103 lt_use_gnu_ld_interface=yes
9104 ;;
9105 esac
9106 ;;
9107 *)
9108 lt_use_gnu_ld_interface=yes
9109 ;;
9110 esac
9111 fi
9112
9113 if test yes = "$lt_use_gnu_ld_interface"; then
9114 # If archive_cmds runs LD, not CC, wlarc should be empty
9115 wlarc='$wl'
9116
9117 # Set some defaults for GNU ld with shared library support. These
9118 # are reset later if shared libraries are not supported. Putting them
9119 # here allows them to be overridden if necessary.
9120 runpath_var=LD_RUN_PATH
9121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9122 export_dynamic_flag_spec='$wl--export-dynamic'
9123 # ancient GNU ld didn't support --whole-archive et. al.
9124 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9125 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9126 else
9127 whole_archive_flag_spec=
9128 fi
9129 supports_anon_versioning=no
9130 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9131 *GNU\ gold*) supports_anon_versioning=yes ;;
9132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9135 *\ 2.11.*) ;; # other 2.11 versions
9136 *) supports_anon_versioning=yes ;;
9137 esac
9138
9139 # See if GNU ld supports shared libraries.
9140 case $host_os in
9141 aix[3-9]*)
9142 # On AIX/PPC, the GNU linker is very broken
9143 if test ia64 != "$host_cpu"; then
9144 ld_shlibs=no
9145 cat <<_LT_EOF 1>&2
9146
9147 *** Warning: the GNU linker, at least up to release 2.19, is reported
9148 *** to be unable to reliably create shared libraries on AIX.
9149 *** Therefore, libtool is disabling shared libraries support. If you
9150 *** really care for shared libraries, you may want to install binutils
9151 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9152 *** You will then need to restart the configuration process.
9153
9154 _LT_EOF
9155 fi
9156 ;;
9157
9158 amigaos*)
9159 case $host_cpu in
9160 powerpc)
9161 # see comment about AmigaOS4 .so support
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163 archive_expsym_cmds=''
9164 ;;
9165 m68k)
9166 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)'
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_minus_L=yes
9169 ;;
9170 esac
9171 ;;
9172
9173 beos*)
9174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9175 allow_undefined_flag=unsupported
9176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9177 # support --undefined. This deserves some investigation. FIXME
9178 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9179 else
9180 ld_shlibs=no
9181 fi
9182 ;;
9183
9184 cygwin* | mingw* | pw32* | cegcc*)
9185 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9186 # as there is no search path for DLLs.
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 export_dynamic_flag_spec='$wl--export-all-symbols'
9189 allow_undefined_flag=unsupported
9190 always_export_symbols=no
9191 enable_shared_with_static_runtimes=yes
9192 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'
9193 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9194
9195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9197 # If the export-symbols file already is a .def file, use it as
9198 # is; otherwise, prepend EXPORTS...
9199 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9200 cp $export_symbols $output_objdir/$soname.def;
9201 else
9202 echo EXPORTS > $output_objdir/$soname.def;
9203 cat $export_symbols >> $output_objdir/$soname.def;
9204 fi~
9205 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9206 else
9207 ld_shlibs=no
9208 fi
9209 ;;
9210
9211 haiku*)
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9213 link_all_deplibs=yes
9214 ;;
9215
9216 os2*)
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_minus_L=yes
9219 allow_undefined_flag=unsupported
9220 shrext_cmds=.dll
9221 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9224 $ECHO EXPORTS >> $output_objdir/$libname.def~
9225 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9227 emximp -o $lib $output_objdir/$libname.def'
9228 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9229 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9230 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9231 $ECHO EXPORTS >> $output_objdir/$libname.def~
9232 prefix_cmds="$SED"~
9233 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9234 prefix_cmds="$prefix_cmds -e 1d";
9235 fi~
9236 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9237 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9239 emximp -o $lib $output_objdir/$libname.def'
9240 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9241 enable_shared_with_static_runtimes=yes
9242 ;;
9243
9244 interix[3-9]*)
9245 hardcode_direct=no
9246 hardcode_shlibpath_var=no
9247 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9248 export_dynamic_flag_spec='$wl-E'
9249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9250 # Instead, shared libraries are loaded at an image base (0x10000000 by
9251 # default) and relocated if they conflict, which is a slow very memory
9252 # consuming and fragmenting process. To avoid this, we pick a random,
9253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9256 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'
9257 ;;
9258
9259 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9260 tmp_diet=no
9261 if test linux-dietlibc = "$host_os"; then
9262 case $cc_basename in
9263 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9264 esac
9265 fi
9266 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9267 && test no = "$tmp_diet"
9268 then
9269 tmp_addflag=' $pic_flag'
9270 tmp_sharedflag='-shared'
9271 case $cc_basename,$host_cpu in
9272 pgcc*) # Portland Group C compiler
9273 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'
9274 tmp_addflag=' $pic_flag'
9275 ;;
9276 pgf77* | pgf90* | pgf95* | pgfortran*)
9277 # Portland Group f77 and f90 compilers
9278 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'
9279 tmp_addflag=' $pic_flag -Mnomain' ;;
9280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9281 tmp_addflag=' -i_dynamic' ;;
9282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9283 tmp_addflag=' -i_dynamic -nofor_main' ;;
9284 ifc* | ifort*) # Intel Fortran compiler
9285 tmp_addflag=' -nofor_main' ;;
9286 lf95*) # Lahey Fortran 8.1
9287 whole_archive_flag_spec=
9288 tmp_sharedflag='--shared' ;;
9289 nagfor*) # NAGFOR 5.3
9290 tmp_sharedflag='-Wl,-shared' ;;
9291 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9292 tmp_sharedflag='-qmkshrobj'
9293 tmp_addflag= ;;
9294 nvcc*) # Cuda Compiler Driver 2.2
9295 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'
9296 compiler_needs_object=yes
9297 ;;
9298 esac
9299 case `$CC -V 2>&1 | sed 5q` in
9300 *Sun\ C*) # Sun C 5.9
9301 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'
9302 compiler_needs_object=yes
9303 tmp_sharedflag='-G' ;;
9304 *Sun\ F*) # Sun Fortran 8.3
9305 tmp_sharedflag='-G' ;;
9306 esac
9307 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9308
9309 if test yes = "$supports_anon_versioning"; then
9310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9312 echo "local: *; };" >> $output_objdir/$libname.ver~
9313 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9314 fi
9315
9316 case $cc_basename in
9317 tcc*)
9318 export_dynamic_flag_spec='-rdynamic'
9319 ;;
9320 xlf* | bgf* | bgxlf* | mpixlf*)
9321 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9322 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9324 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9325 if test yes = "$supports_anon_versioning"; then
9326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9330 fi
9331 ;;
9332 esac
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337
9338 netbsd*)
9339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9341 wlarc=
9342 else
9343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9345 fi
9346 ;;
9347
9348 solaris*)
9349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9350 ld_shlibs=no
9351 cat <<_LT_EOF 1>&2
9352
9353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9354 *** create shared libraries on Solaris systems. Therefore, libtool
9355 *** is disabling shared libraries support. We urge you to upgrade GNU
9356 *** binutils to release 2.9.1 or newer. Another option is to modify
9357 *** your PATH or compiler configuration so that the native linker is
9358 *** used, and then restart.
9359
9360 _LT_EOF
9361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9364 else
9365 ld_shlibs=no
9366 fi
9367 ;;
9368
9369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9370 case `$LD -v 2>&1` in
9371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9372 ld_shlibs=no
9373 cat <<_LT_EOF 1>&2
9374
9375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9376 *** reliably create shared libraries on SCO systems. Therefore, libtool
9377 *** is disabling shared libraries support. We urge you to upgrade GNU
9378 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9379 *** your PATH or compiler configuration so that the native linker is
9380 *** used, and then restart.
9381
9382 _LT_EOF
9383 ;;
9384 *)
9385 # For security reasons, it is highly recommended that you always
9386 # use absolute paths for naming shared libraries, and exclude the
9387 # DT_RUNPATH tag from executables and libraries. But doing so
9388 # requires that you compile everything twice, which is a pain.
9389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9393 else
9394 ld_shlibs=no
9395 fi
9396 ;;
9397 esac
9398 ;;
9399
9400 sunos4*)
9401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9402 wlarc=
9403 hardcode_direct=yes
9404 hardcode_shlibpath_var=no
9405 ;;
9406
9407 *)
9408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9410 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9411 else
9412 ld_shlibs=no
9413 fi
9414 ;;
9415 esac
9416
9417 if test no = "$ld_shlibs"; then
9418 runpath_var=
9419 hardcode_libdir_flag_spec=
9420 export_dynamic_flag_spec=
9421 whole_archive_flag_spec=
9422 fi
9423 else
9424 # PORTME fill in a description of your system's linker (not GNU ld)
9425 case $host_os in
9426 aix3*)
9427 allow_undefined_flag=unsupported
9428 always_export_symbols=yes
9429 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'
9430 # Note: this linker hardcodes the directories in LIBPATH if there
9431 # are no directories specified by -L.
9432 hardcode_minus_L=yes
9433 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9434 # Neither direct hardcoding nor static linking is supported with a
9435 # broken collect2.
9436 hardcode_direct=unsupported
9437 fi
9438 ;;
9439
9440 aix[4-9]*)
9441 if test ia64 = "$host_cpu"; then
9442 # On IA64, the linker does run time linking by default, so we don't
9443 # have to do anything special.
9444 aix_use_runtimelinking=no
9445 exp_sym_flag='-Bexport'
9446 no_entry_flag=
9447 else
9448 # If we're using GNU nm, then we don't want the "-C" option.
9449 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9450 # Without the "-l" option, or with the "-B" option, AIX nm treats
9451 # weak defined symbols like other global defined symbols, whereas
9452 # GNU nm marks them as "W".
9453 # While the 'weak' keyword is ignored in the Export File, we need
9454 # it in the Import File for the 'aix-soname' feature, so we have
9455 # to replace the "-B" option with "-P" for AIX nm.
9456 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9457 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9458 else
9459 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9460 fi
9461 aix_use_runtimelinking=no
9462
9463 # Test if we are trying to use run time linking or normal
9464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9465 # have runtime linking enabled, and use it for executables.
9466 # For shared libraries, we enable/disable runtime linking
9467 # depending on the kind of the shared library created -
9468 # when "with_aix_soname,aix_use_runtimelinking" is:
9469 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9470 # "aix,yes" lib.so shared, rtl:yes, for executables
9471 # lib.a static archive
9472 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9473 # lib.a(lib.so.V) shared, rtl:no, for executables
9474 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9475 # lib.a(lib.so.V) shared, rtl:no
9476 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9477 # lib.a static archive
9478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9479 for ld_flag in $LDFLAGS; do
9480 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9481 aix_use_runtimelinking=yes
9482 break
9483 fi
9484 done
9485 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9486 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9487 # so we don't have lib.a shared libs to link our executables.
9488 # We have to force runtime linking in this case.
9489 aix_use_runtimelinking=yes
9490 LDFLAGS="$LDFLAGS -Wl,-brtl"
9491 fi
9492 ;;
9493 esac
9494
9495 exp_sym_flag='-bexport'
9496 no_entry_flag='-bnoentry'
9497 fi
9498
9499 # When large executables or shared objects are built, AIX ld can
9500 # have problems creating the table of contents. If linking a library
9501 # or program results in "error TOC overflow" add -mminimal-toc to
9502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9504
9505 archive_cmds=''
9506 hardcode_direct=yes
9507 hardcode_direct_absolute=yes
9508 hardcode_libdir_separator=':'
9509 link_all_deplibs=yes
9510 file_list_spec='$wl-f,'
9511 case $with_aix_soname,$aix_use_runtimelinking in
9512 aix,*) ;; # traditional, no import file
9513 svr4,* | *,yes) # use import file
9514 # The Import File defines what to hardcode.
9515 hardcode_direct=no
9516 hardcode_direct_absolute=no
9517 ;;
9518 esac
9519
9520 if test yes = "$GCC"; then
9521 case $host_os in aix4.[012]|aix4.[012].*)
9522 # We only want to do this on AIX 4.2 and lower, the check
9523 # below for broken collect2 doesn't work under 4.3+
9524 collect2name=`$CC -print-prog-name=collect2`
9525 if test -f "$collect2name" &&
9526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9527 then
9528 # We have reworked collect2
9529 :
9530 else
9531 # We have old collect2
9532 hardcode_direct=unsupported
9533 # It fails to find uninstalled libraries when the uninstalled
9534 # path is not listed in the libpath. Setting hardcode_minus_L
9535 # to unsupported forces relinking
9536 hardcode_minus_L=yes
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_libdir_separator=
9539 fi
9540 ;;
9541 esac
9542 shared_flag='-shared'
9543 if test yes = "$aix_use_runtimelinking"; then
9544 shared_flag="$shared_flag "'$wl-G'
9545 fi
9546 # Need to ensure runtime linking is disabled for the traditional
9547 # shared library, or the linker may eventually find shared libraries
9548 # /with/ Import File - we do not want to mix them.
9549 shared_flag_aix='-shared'
9550 shared_flag_svr4='-shared $wl-G'
9551 else
9552 # not using gcc
9553 if test ia64 = "$host_cpu"; then
9554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9555 # chokes on -Wl,-G. The following line is correct:
9556 shared_flag='-G'
9557 else
9558 if test yes = "$aix_use_runtimelinking"; then
9559 shared_flag='$wl-G'
9560 else
9561 shared_flag='$wl-bM:SRE'
9562 fi
9563 shared_flag_aix='$wl-bM:SRE'
9564 shared_flag_svr4='$wl-G'
9565 fi
9566 fi
9567
9568 export_dynamic_flag_spec='$wl-bexpall'
9569 # It seems that -bexpall does not export symbols beginning with
9570 # underscore (_), so it is better to generate a list of symbols to export.
9571 always_export_symbols=yes
9572 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9573 # Warning - without using the other runtime loading flags (-brtl),
9574 # -berok will link without error, but may produce a broken library.
9575 allow_undefined_flag='-berok'
9576 # Determine the default libpath from the value encoded in an
9577 # empty executable.
9578 if test set = "${lt_cv_aix_libpath+set}"; then
9579 aix_libpath=$lt_cv_aix_libpath
9580 else
9581 if ${lt_cv_aix_libpath_+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586
9587 int
9588 main ()
9589 {
9590
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596
9597 lt_aix_libpath_sed='
9598 /Import File Strings/,/^$/ {
9599 /^0/ {
9600 s/^0 *\([^ ]*\) *$/\1/
9601 p
9602 }
9603 }'
9604 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9605 # Check for a 64-bit object if we didn't find anything.
9606 if test -z "$lt_cv_aix_libpath_"; then
9607 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 fi
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 if test -z "$lt_cv_aix_libpath_"; then
9613 lt_cv_aix_libpath_=/usr/lib:/lib
9614 fi
9615
9616 fi
9617
9618 aix_libpath=$lt_cv_aix_libpath_
9619 fi
9620
9621 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9622 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9623 else
9624 if test ia64 = "$host_cpu"; then
9625 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9626 allow_undefined_flag="-z nodefs"
9627 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"
9628 else
9629 # Determine the default libpath from the value encoded in an
9630 # empty executable.
9631 if test set = "${lt_cv_aix_libpath+set}"; then
9632 aix_libpath=$lt_cv_aix_libpath
9633 else
9634 if ${lt_cv_aix_libpath_+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639
9640 int
9641 main ()
9642 {
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649
9650 lt_aix_libpath_sed='
9651 /Import File Strings/,/^$/ {
9652 /^0/ {
9653 s/^0 *\([^ ]*\) *$/\1/
9654 p
9655 }
9656 }'
9657 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$lt_cv_aix_libpath_"; then
9660 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9661 fi
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 if test -z "$lt_cv_aix_libpath_"; then
9666 lt_cv_aix_libpath_=/usr/lib:/lib
9667 fi
9668
9669 fi
9670
9671 aix_libpath=$lt_cv_aix_libpath_
9672 fi
9673
9674 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9675 # Warning - without using the other run time loading flags,
9676 # -berok will link without error, but may produce a broken library.
9677 no_undefined_flag=' $wl-bernotok'
9678 allow_undefined_flag=' $wl-berok'
9679 if test yes = "$with_gnu_ld"; then
9680 # We only use this code for GNU lds that support --whole-archive.
9681 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9682 else
9683 # Exported symbols can be pulled into shared objects from archives
9684 whole_archive_flag_spec='$convenience'
9685 fi
9686 archive_cmds_need_lc=yes
9687 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9688 # -brtl affects multiple linker settings, -berok does not and is overridden later
9689 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9690 if test svr4 != "$with_aix_soname"; then
9691 # This is similar to how AIX traditionally builds its shared libraries.
9692 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9693 fi
9694 if test aix != "$with_aix_soname"; then
9695 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9696 else
9697 # used by -dlpreopen to get the symbols
9698 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9699 fi
9700 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9701 fi
9702 fi
9703 ;;
9704
9705 amigaos*)
9706 case $host_cpu in
9707 powerpc)
9708 # see comment about AmigaOS4 .so support
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9710 archive_expsym_cmds=''
9711 ;;
9712 m68k)
9713 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)'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_minus_L=yes
9716 ;;
9717 esac
9718 ;;
9719
9720 bsdi[45]*)
9721 export_dynamic_flag_spec=-rdynamic
9722 ;;
9723
9724 cygwin* | mingw* | pw32* | cegcc*)
9725 # When not using gcc, we currently assume that we are using
9726 # Microsoft Visual C++.
9727 # hardcode_libdir_flag_spec is actually meaningless, as there is
9728 # no search path for DLLs.
9729 case $cc_basename in
9730 cl*)
9731 # Native MSVC
9732 hardcode_libdir_flag_spec=' '
9733 allow_undefined_flag=unsupported
9734 always_export_symbols=yes
9735 file_list_spec='@'
9736 # Tell ltmain to make .lib files, not .a files.
9737 libext=lib
9738 # Tell ltmain to make .dll files, not .so files.
9739 shrext_cmds=.dll
9740 # FIXME: Setting linknames here is a bad hack.
9741 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9742 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9743 cp "$export_symbols" "$output_objdir/$soname.def";
9744 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9745 else
9746 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9747 fi~
9748 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9749 linknames='
9750 # The linker will not automatically build a static lib if we build a DLL.
9751 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9752 enable_shared_with_static_runtimes=yes
9753 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9755 # Don't use ranlib
9756 old_postinstall_cmds='chmod 644 $oldlib'
9757 postlink_cmds='lt_outputfile="@OUTPUT@"~
9758 lt_tool_outputfile="@TOOL_OUTPUT@"~
9759 case $lt_outputfile in
9760 *.exe|*.EXE) ;;
9761 *)
9762 lt_outputfile=$lt_outputfile.exe
9763 lt_tool_outputfile=$lt_tool_outputfile.exe
9764 ;;
9765 esac~
9766 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9767 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9768 $RM "$lt_outputfile.manifest";
9769 fi'
9770 ;;
9771 *)
9772 # Assume MSVC wrapper
9773 hardcode_libdir_flag_spec=' '
9774 allow_undefined_flag=unsupported
9775 # Tell ltmain to make .lib files, not .a files.
9776 libext=lib
9777 # Tell ltmain to make .dll files, not .so files.
9778 shrext_cmds=.dll
9779 # FIXME: Setting linknames here is a bad hack.
9780 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9781 # The linker will automatically build a .lib file if we build a DLL.
9782 old_archive_from_new_cmds='true'
9783 # FIXME: Should let the user specify the lib program.
9784 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9785 enable_shared_with_static_runtimes=yes
9786 ;;
9787 esac
9788 ;;
9789
9790 darwin* | rhapsody*)
9791
9792
9793 archive_cmds_need_lc=no
9794 hardcode_direct=no
9795 hardcode_automatic=yes
9796 hardcode_shlibpath_var=unsupported
9797 if test yes = "$lt_cv_ld_force_load"; then
9798 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\"`'
9799
9800 else
9801 whole_archive_flag_spec=''
9802 fi
9803 link_all_deplibs=yes
9804 allow_undefined_flag=$_lt_dar_allow_undefined
9805 case $cc_basename in
9806 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9807 *) _lt_dar_can_shared=$GCC ;;
9808 esac
9809 if test yes = "$_lt_dar_can_shared"; then
9810 output_verbose_link_cmd=func_echo_all
9811 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9812 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9813 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"
9814 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"
9815
9816 else
9817 ld_shlibs=no
9818 fi
9819
9820 ;;
9821
9822 dgux*)
9823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9829 # support. Future versions do this automatically, but an explicit c++rt0.o
9830 # does not break anything, and helps significantly (at the cost of a little
9831 # extra space).
9832 freebsd2.2*)
9833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 ;;
9838
9839 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9840 freebsd2.*)
9841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=yes
9843 hardcode_minus_L=yes
9844 hardcode_shlibpath_var=no
9845 ;;
9846
9847 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9848 freebsd* | dragonfly*)
9849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9850 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_direct=yes
9852 hardcode_shlibpath_var=no
9853 ;;
9854
9855 hpux9*)
9856 if test yes = "$GCC"; then
9857 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9858 else
9859 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9860 fi
9861 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9862 hardcode_libdir_separator=:
9863 hardcode_direct=yes
9864
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9868 export_dynamic_flag_spec='$wl-E'
9869 ;;
9870
9871 hpux10*)
9872 if test yes,no = "$GCC,$with_gnu_ld"; then
9873 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9874 else
9875 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9876 fi
9877 if test no = "$with_gnu_ld"; then
9878 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9879 hardcode_libdir_separator=:
9880 hardcode_direct=yes
9881 hardcode_direct_absolute=yes
9882 export_dynamic_flag_spec='$wl-E'
9883 # hardcode_minus_L: Not really in the search PATH,
9884 # but as the default location of the library.
9885 hardcode_minus_L=yes
9886 fi
9887 ;;
9888
9889 hpux11*)
9890 if test yes,no = "$GCC,$with_gnu_ld"; then
9891 case $host_cpu in
9892 hppa*64*)
9893 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 ;;
9895 ia64*)
9896 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9897 ;;
9898 *)
9899 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 esac
9902 else
9903 case $host_cpu in
9904 hppa*64*)
9905 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9906 ;;
9907 ia64*)
9908 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9909 ;;
9910 *)
9911
9912 # Older versions of the 11.00 compiler do not understand -b yet
9913 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9915 $as_echo_n "checking if $CC understands -b... " >&6; }
9916 if ${lt_cv_prog_compiler__b+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 lt_cv_prog_compiler__b=no
9920 save_LDFLAGS=$LDFLAGS
9921 LDFLAGS="$LDFLAGS -b"
9922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9924 # The linker can only warn and ignore the option if not recognized
9925 # So say no if there are warnings
9926 if test -s conftest.err; then
9927 # Append any errors to the config.log.
9928 cat conftest.err 1>&5
9929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9931 if diff conftest.exp conftest.er2 >/dev/null; then
9932 lt_cv_prog_compiler__b=yes
9933 fi
9934 else
9935 lt_cv_prog_compiler__b=yes
9936 fi
9937 fi
9938 $RM -r conftest*
9939 LDFLAGS=$save_LDFLAGS
9940
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9943 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9944
9945 if test yes = "$lt_cv_prog_compiler__b"; then
9946 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947 else
9948 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9949 fi
9950
9951 ;;
9952 esac
9953 fi
9954 if test no = "$with_gnu_ld"; then
9955 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9956 hardcode_libdir_separator=:
9957
9958 case $host_cpu in
9959 hppa*64*|ia64*)
9960 hardcode_direct=no
9961 hardcode_shlibpath_var=no
9962 ;;
9963 *)
9964 hardcode_direct=yes
9965 hardcode_direct_absolute=yes
9966 export_dynamic_flag_spec='$wl-E'
9967
9968 # hardcode_minus_L: Not really in the search PATH,
9969 # but as the default location of the library.
9970 hardcode_minus_L=yes
9971 ;;
9972 esac
9973 fi
9974 ;;
9975
9976 irix5* | irix6* | nonstopux*)
9977 if test yes = "$GCC"; then
9978 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'
9979 # Try to use the -exported_symbol ld option, if it does not
9980 # work, assume that -exports_file does not work either and
9981 # implicitly export all symbols.
9982 # This should be the same for all languages, so no per-tag cache variable.
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9984 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9985 if ${lt_cv_irix_exported_symbol+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 save_LDFLAGS=$LDFLAGS
9989 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 int foo (void) { return 0; }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995 lt_cv_irix_exported_symbol=yes
9996 else
9997 lt_cv_irix_exported_symbol=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LDFLAGS=$save_LDFLAGS
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10004 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10005 if test yes = "$lt_cv_irix_exported_symbol"; then
10006 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'
10007 fi
10008 else
10009 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'
10010 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'
10011 fi
10012 archive_cmds_need_lc='no'
10013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10014 hardcode_libdir_separator=:
10015 inherit_rpath=yes
10016 link_all_deplibs=yes
10017 ;;
10018
10019 linux*)
10020 case $cc_basename in
10021 tcc*)
10022 # Fabrice Bellard et al's Tiny C Compiler
10023 ld_shlibs=yes
10024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 esac
10027 ;;
10028
10029 netbsd*)
10030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10032 else
10033 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10034 fi
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 hardcode_direct=yes
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 newsos6)
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_direct=yes
10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_shlibpath_var=no
10046 ;;
10047
10048 *nto* | *qnx*)
10049 ;;
10050
10051 openbsd* | bitrig*)
10052 if test -f /usr/libexec/ld.so; then
10053 hardcode_direct=yes
10054 hardcode_shlibpath_var=no
10055 hardcode_direct_absolute=yes
10056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10060 export_dynamic_flag_spec='$wl-E'
10061 else
10062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10063 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10064 fi
10065 else
10066 ld_shlibs=no
10067 fi
10068 ;;
10069
10070 os2*)
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 hardcode_minus_L=yes
10073 allow_undefined_flag=unsupported
10074 shrext_cmds=.dll
10075 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10076 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10077 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10078 $ECHO EXPORTS >> $output_objdir/$libname.def~
10079 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10080 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10081 emximp -o $lib $output_objdir/$libname.def'
10082 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10083 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10084 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10085 $ECHO EXPORTS >> $output_objdir/$libname.def~
10086 prefix_cmds="$SED"~
10087 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10088 prefix_cmds="$prefix_cmds -e 1d";
10089 fi~
10090 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10091 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10093 emximp -o $lib $output_objdir/$libname.def'
10094 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10095 enable_shared_with_static_runtimes=yes
10096 ;;
10097
10098 osf3*)
10099 if test yes = "$GCC"; then
10100 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10101 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'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10105 fi
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10108 hardcode_libdir_separator=:
10109 ;;
10110
10111 osf4* | osf5*) # as osf3* with the addition of -msym flag
10112 if test yes = "$GCC"; then
10113 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10114 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'
10115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116 else
10117 allow_undefined_flag=' -expect_unresolved \*'
10118 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'
10119 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~
10120 $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'
10121
10122 # Both c and cxx compiler support -rpath directly
10123 hardcode_libdir_flag_spec='-rpath $libdir'
10124 fi
10125 archive_cmds_need_lc='no'
10126 hardcode_libdir_separator=:
10127 ;;
10128
10129 solaris*)
10130 no_undefined_flag=' -z defs'
10131 if test yes = "$GCC"; then
10132 wlarc='$wl'
10133 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $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'
10136 else
10137 case `$CC -V 2>&1` in
10138 *"Compilers 5.0"*)
10139 wlarc=''
10140 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10143 ;;
10144 *)
10145 wlarc='$wl'
10146 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10149 ;;
10150 esac
10151 fi
10152 hardcode_libdir_flag_spec='-R$libdir'
10153 hardcode_shlibpath_var=no
10154 case $host_os in
10155 solaris2.[0-5] | solaris2.[0-5].*) ;;
10156 *)
10157 # The compiler driver will combine and reorder linker options,
10158 # but understands '-z linker_flag'. GCC discards it without '$wl',
10159 # but is careful enough not to reorder.
10160 # Supported since Solaris 2.6 (maybe 2.5.1?)
10161 if test yes = "$GCC"; then
10162 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10163 else
10164 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10165 fi
10166 ;;
10167 esac
10168 link_all_deplibs=yes
10169 ;;
10170
10171 sunos4*)
10172 if test sequent = "$host_vendor"; then
10173 # Use $CC to link under sequent, because it throws in some extra .o
10174 # files that make .init and .fini sections work.
10175 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176 else
10177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178 fi
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_direct=yes
10181 hardcode_minus_L=yes
10182 hardcode_shlibpath_var=no
10183 ;;
10184
10185 sysv4)
10186 case $host_vendor in
10187 sni)
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_direct=yes # is this really true???
10190 ;;
10191 siemens)
10192 ## LD is ld it makes a PLAMLIB
10193 ## CC just makes a GrossModule.
10194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10195 reload_cmds='$CC -r -o $output$reload_objs'
10196 hardcode_direct=no
10197 ;;
10198 motorola)
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10201 ;;
10202 esac
10203 runpath_var='LD_RUN_PATH'
10204 hardcode_shlibpath_var=no
10205 ;;
10206
10207 sysv4.3*)
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_shlibpath_var=no
10210 export_dynamic_flag_spec='-Bexport'
10211 ;;
10212
10213 sysv4*MP*)
10214 if test -d /usr/nec; then
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_shlibpath_var=no
10217 runpath_var=LD_RUN_PATH
10218 hardcode_runpath_var=yes
10219 ld_shlibs=yes
10220 fi
10221 ;;
10222
10223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10224 no_undefined_flag='$wl-z,text'
10225 archive_cmds_need_lc=no
10226 hardcode_shlibpath_var=no
10227 runpath_var='LD_RUN_PATH'
10228
10229 if test yes = "$GCC"; then
10230 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 else
10233 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 fi
10236 ;;
10237
10238 sysv5* | sco3.2v5* | sco5v6*)
10239 # Note: We CANNOT use -z defs as we might desire, because we do not
10240 # link with -lc, and that would cause any symbols used from libc to
10241 # always be unresolved, which means just about no library would
10242 # ever link correctly. If we're not using GNU ld we use -z text
10243 # though, which does catch some bad symbols but isn't as heavy-handed
10244 # as -z defs.
10245 no_undefined_flag='$wl-z,text'
10246 allow_undefined_flag='$wl-z,nodefs'
10247 archive_cmds_need_lc=no
10248 hardcode_shlibpath_var=no
10249 hardcode_libdir_flag_spec='$wl-R,$libdir'
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 export_dynamic_flag_spec='$wl-Bexport'
10253 runpath_var='LD_RUN_PATH'
10254
10255 if test yes = "$GCC"; then
10256 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 else
10259 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 fi
10262 ;;
10263
10264 uts4*)
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_shlibpath_var=no
10268 ;;
10269
10270 *)
10271 ld_shlibs=no
10272 ;;
10273 esac
10274
10275 if test sni = "$host_vendor"; then
10276 case $host in
10277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10278 export_dynamic_flag_spec='$wl-Blargedynsym'
10279 ;;
10280 esac
10281 fi
10282 fi
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10285 $as_echo "$ld_shlibs" >&6; }
10286 test no = "$ld_shlibs" && can_build_shared=no
10287
10288 with_gnu_ld=$with_gnu_ld
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304 #
10305 # Do we need to explicitly link libc?
10306 #
10307 case "x$archive_cmds_need_lc" in
10308 x|xyes)
10309 # Assume -lc should be added
10310 archive_cmds_need_lc=yes
10311
10312 if test yes,yes = "$GCC,$enable_shared"; then
10313 case $archive_cmds in
10314 *'~'*)
10315 # FIXME: we may have to deal with multi-command sequences.
10316 ;;
10317 '$CC '*)
10318 # Test whether the compiler implicitly links with -lc since on some
10319 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10320 # to ld, don't add -lc before -lgcc.
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10322 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10323 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 $RM conftest*
10327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10328
10329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10330 (eval $ac_compile) 2>&5
10331 ac_status=$?
10332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10333 test $ac_status = 0; } 2>conftest.err; then
10334 soname=conftest
10335 lib=conftest
10336 libobjs=conftest.$ac_objext
10337 deplibs=
10338 wl=$lt_prog_compiler_wl
10339 pic_flag=$lt_prog_compiler_pic
10340 compiler_flags=-v
10341 linker_flags=-v
10342 verstring=
10343 output_objdir=.
10344 libname=conftest
10345 lt_save_allow_undefined_flag=$allow_undefined_flag
10346 allow_undefined_flag=
10347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10348 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10349 ac_status=$?
10350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10351 test $ac_status = 0; }
10352 then
10353 lt_cv_archive_cmds_need_lc=no
10354 else
10355 lt_cv_archive_cmds_need_lc=yes
10356 fi
10357 allow_undefined_flag=$lt_save_allow_undefined_flag
10358 else
10359 cat conftest.err 1>&5
10360 fi
10361 $RM conftest*
10362
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10365 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10366 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10367 ;;
10368 esac
10369 fi
10370 ;;
10371 esac
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10525 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10526
10527 if test yes = "$GCC"; then
10528 case $host_os in
10529 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10530 *) lt_awk_arg='/^libraries:/' ;;
10531 esac
10532 case $host_os in
10533 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10534 *) lt_sed_strip_eq='s|=/|/|g' ;;
10535 esac
10536 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10537 case $lt_search_path_spec in
10538 *\;*)
10539 # if the path contains ";" then we assume it to be the separator
10540 # otherwise default to the standard path separator (i.e. ":") - it is
10541 # assumed that no part of a normal pathname contains ";" but that should
10542 # okay in the real world where ";" in dirpaths is itself problematic.
10543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10544 ;;
10545 *)
10546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10547 ;;
10548 esac
10549 # Ok, now we have the path, separated by spaces, we can step through it
10550 # and add multilib dir if necessary...
10551 lt_tmp_lt_search_path_spec=
10552 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10553 # ...but if some path component already ends with the multilib dir we assume
10554 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10555 case "$lt_multi_os_dir; $lt_search_path_spec " in
10556 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10557 lt_multi_os_dir=
10558 ;;
10559 esac
10560 for lt_sys_path in $lt_search_path_spec; do
10561 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10563 elif test -n "$lt_multi_os_dir"; then
10564 test -d "$lt_sys_path" && \
10565 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10566 fi
10567 done
10568 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10569 BEGIN {RS = " "; FS = "/|\n";} {
10570 lt_foo = "";
10571 lt_count = 0;
10572 for (lt_i = NF; lt_i > 0; lt_i--) {
10573 if ($lt_i != "" && $lt_i != ".") {
10574 if ($lt_i == "..") {
10575 lt_count++;
10576 } else {
10577 if (lt_count == 0) {
10578 lt_foo = "/" $lt_i lt_foo;
10579 } else {
10580 lt_count--;
10581 }
10582 }
10583 }
10584 }
10585 if (lt_foo != "") { lt_freq[lt_foo]++; }
10586 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10587 }'`
10588 # AWK program above erroneously prepends '/' to C:/dos/paths
10589 # for these hosts.
10590 case $host_os in
10591 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10592 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10593 esac
10594 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10595 else
10596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10597 fi
10598 library_names_spec=
10599 libname_spec='lib$name'
10600 soname_spec=
10601 shrext_cmds=.so
10602 postinstall_cmds=
10603 postuninstall_cmds=
10604 finish_cmds=
10605 finish_eval=
10606 shlibpath_var=
10607 shlibpath_overrides_runpath=unknown
10608 version_type=none
10609 dynamic_linker="$host_os ld.so"
10610 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10611 need_lib_prefix=unknown
10612 hardcode_into_libs=no
10613
10614 # when you set need_version to no, make sure it does not cause -set_version
10615 # flags to be left without arguments
10616 need_version=unknown
10617
10618 case $host_os in
10619 aix3*)
10620 version_type=linux # correct to gnu/linux during the next big refactor
10621 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10622 shlibpath_var=LIBPATH
10623
10624 # AIX 3 has no versioning support, so we append a major version to the name.
10625 soname_spec='$libname$release$shared_ext$major'
10626 ;;
10627
10628 aix[4-9]*)
10629 version_type=linux # correct to gnu/linux during the next big refactor
10630 need_lib_prefix=no
10631 need_version=no
10632 hardcode_into_libs=yes
10633 if test ia64 = "$host_cpu"; then
10634 # AIX 5 supports IA64
10635 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 else
10638 # With GCC up to 2.95.x, collect2 would create an import file
10639 # for dependence libraries. The import file would start with
10640 # the line '#! .'. This would cause the generated library to
10641 # depend on '.', always an invalid library. This was fixed in
10642 # development snapshots of GCC prior to 3.0.
10643 case $host_os in
10644 aix4 | aix4.[01] | aix4.[01].*)
10645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10646 echo ' yes '
10647 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10648 :
10649 else
10650 can_build_shared=no
10651 fi
10652 ;;
10653 esac
10654 # Using Import Files as archive members, it is possible to support
10655 # filename-based versioning of shared library archives on AIX. While
10656 # this would work for both with and without runtime linking, it will
10657 # prevent static linking of such archives. So we do filename-based
10658 # shared library versioning with .so extension only, which is used
10659 # when both runtime linking and shared linking is enabled.
10660 # Unfortunately, runtime linking may impact performance, so we do
10661 # not want this to be the default eventually. Also, we use the
10662 # versioned .so libs for executables only if there is the -brtl
10663 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10664 # To allow for filename-based versioning support, we need to create
10665 # libNAME.so.V as an archive file, containing:
10666 # *) an Import File, referring to the versioned filename of the
10667 # archive as well as the shared archive member, telling the
10668 # bitwidth (32 or 64) of that shared object, and providing the
10669 # list of exported symbols of that shared object, eventually
10670 # decorated with the 'weak' keyword
10671 # *) the shared object with the F_LOADONLY flag set, to really avoid
10672 # it being seen by the linker.
10673 # At run time we better use the real file rather than another symlink,
10674 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10675
10676 case $with_aix_soname,$aix_use_runtimelinking in
10677 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10678 # soname into executable. Probably we can add versioning support to
10679 # collect2, so additional links can be useful in future.
10680 aix,yes) # traditional libtool
10681 dynamic_linker='AIX unversionable lib.so'
10682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10683 # instead of lib<name>.a to let people know that these are not
10684 # typical AIX shared libraries.
10685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10686 ;;
10687 aix,no) # traditional AIX only
10688 dynamic_linker='AIX lib.a(lib.so.V)'
10689 # We preserve .a as extension for shared libraries through AIX4.2
10690 # and later when we are not doing run time linking.
10691 library_names_spec='$libname$release.a $libname.a'
10692 soname_spec='$libname$release$shared_ext$major'
10693 ;;
10694 svr4,*) # full svr4 only
10695 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10696 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10697 # We do not specify a path in Import Files, so LIBPATH fires.
10698 shlibpath_overrides_runpath=yes
10699 ;;
10700 *,yes) # both, prefer svr4
10701 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10702 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10703 # unpreferred sharedlib libNAME.a needs extra handling
10704 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10705 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10706 # We do not specify a path in Import Files, so LIBPATH fires.
10707 shlibpath_overrides_runpath=yes
10708 ;;
10709 *,no) # both, prefer aix
10710 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10711 library_names_spec='$libname$release.a $libname.a'
10712 soname_spec='$libname$release$shared_ext$major'
10713 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10714 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10715 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10716 ;;
10717 esac
10718 shlibpath_var=LIBPATH
10719 fi
10720 ;;
10721
10722 amigaos*)
10723 case $host_cpu in
10724 powerpc)
10725 # Since July 2007 AmigaOS4 officially supports .so libraries.
10726 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10728 ;;
10729 m68k)
10730 library_names_spec='$libname.ixlibrary $libname.a'
10731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10733 ;;
10734 esac
10735 ;;
10736
10737 beos*)
10738 library_names_spec='$libname$shared_ext'
10739 dynamic_linker="$host_os ld.so"
10740 shlibpath_var=LIBRARY_PATH
10741 ;;
10742
10743 bsdi[45]*)
10744 version_type=linux # correct to gnu/linux during the next big refactor
10745 need_version=no
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10752 # the default ld.so.conf also contains /usr/contrib/lib and
10753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10754 # libtool to hard-code these into programs
10755 ;;
10756
10757 cygwin* | mingw* | pw32* | cegcc*)
10758 version_type=windows
10759 shrext_cmds=.dll
10760 need_version=no
10761 need_lib_prefix=no
10762
10763 case $GCC,$cc_basename in
10764 yes,*)
10765 # gcc
10766 library_names_spec='$libname.dll.a'
10767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768 postinstall_cmds='base_file=`basename \$file`~
10769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10770 dldir=$destdir/`dirname \$dlpath`~
10771 test -d \$dldir || mkdir -p \$dldir~
10772 $install_prog $dir/$dlname \$dldir/$dlname~
10773 chmod a+x \$dldir/$dlname~
10774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10776 fi'
10777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778 dlpath=$dir/\$dldll~
10779 $RM \$dlpath'
10780 shlibpath_overrides_runpath=yes
10781
10782 case $host_os in
10783 cygwin*)
10784 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10786
10787 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10788 ;;
10789 mingw* | cegcc*)
10790 # MinGW DLLs use traditional 'lib' prefix
10791 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10792 ;;
10793 pw32*)
10794 # pw32 DLLs use 'pw' prefix rather than 'lib'
10795 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10796 ;;
10797 esac
10798 dynamic_linker='Win32 ld.exe'
10799 ;;
10800
10801 *,cl*)
10802 # Native MSVC
10803 libname_spec='$name'
10804 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10805 library_names_spec='$libname.dll.lib'
10806
10807 case $build_os in
10808 mingw*)
10809 sys_lib_search_path_spec=
10810 lt_save_ifs=$IFS
10811 IFS=';'
10812 for lt_path in $LIB
10813 do
10814 IFS=$lt_save_ifs
10815 # Let DOS variable expansion print the short 8.3 style file name.
10816 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10817 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10818 done
10819 IFS=$lt_save_ifs
10820 # Convert to MSYS style.
10821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10822 ;;
10823 cygwin*)
10824 # Convert to unix form, then to dos form, then back to unix form
10825 # but this time dos style (no spaces!) so that the unix form looks
10826 # like /cygdrive/c/PROGRA~1:/cygdr...
10827 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10828 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10829 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10830 ;;
10831 *)
10832 sys_lib_search_path_spec=$LIB
10833 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10834 # It is most probably a Windows format PATH.
10835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10836 else
10837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838 fi
10839 # FIXME: find the short name or the path components, as spaces are
10840 # common. (e.g. "Program Files" -> "PROGRA~1")
10841 ;;
10842 esac
10843
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \$file`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname'
10850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10851 dlpath=$dir/\$dldll~
10852 $RM \$dlpath'
10853 shlibpath_overrides_runpath=yes
10854 dynamic_linker='Win32 link.exe'
10855 ;;
10856
10857 *)
10858 # Assume MSVC wrapper
10859 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10860 dynamic_linker='Win32 ld.exe'
10861 ;;
10862 esac
10863 # FIXME: first we should search . and the directory the executable is in
10864 shlibpath_var=PATH
10865 ;;
10866
10867 darwin* | rhapsody*)
10868 dynamic_linker="$host_os dyld"
10869 version_type=darwin
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10873 soname_spec='$libname$release$major$shared_ext'
10874 shlibpath_overrides_runpath=yes
10875 shlibpath_var=DYLD_LIBRARY_PATH
10876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10877
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10880 ;;
10881
10882 dgux*)
10883 version_type=linux # correct to gnu/linux during the next big refactor
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 soname_spec='$libname$release$shared_ext$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 ;;
10890
10891 freebsd* | dragonfly*)
10892 # DragonFly does not have aout. When/if they implement a new
10893 # versioning mechanism, adjust this.
10894 if test -x /usr/bin/objformat; then
10895 objformat=`/usr/bin/objformat`
10896 else
10897 case $host_os in
10898 freebsd[23].*) objformat=aout ;;
10899 *) objformat=elf ;;
10900 esac
10901 fi
10902 version_type=freebsd-$objformat
10903 case $version_type in
10904 freebsd-elf*)
10905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10906 need_version=no
10907 need_lib_prefix=no
10908 ;;
10909 freebsd-*)
10910 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10911 need_version=yes
10912 ;;
10913 esac
10914 shlibpath_var=LD_LIBRARY_PATH
10915 case $host_os in
10916 freebsd2.*)
10917 shlibpath_overrides_runpath=yes
10918 ;;
10919 freebsd3.[01]* | freebsdelf3.[01]*)
10920 shlibpath_overrides_runpath=yes
10921 hardcode_into_libs=yes
10922 ;;
10923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10927 ;;
10928 *) # from 4.6 on, and DragonFly
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10931 ;;
10932 esac
10933 ;;
10934
10935 haiku*)
10936 version_type=linux # correct to gnu/linux during the next big refactor
10937 need_lib_prefix=no
10938 need_version=no
10939 dynamic_linker="$host_os runtime_loader"
10940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941 soname_spec='$libname$release$shared_ext$major'
10942 shlibpath_var=LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10945 hardcode_into_libs=yes
10946 ;;
10947
10948 hpux9* | hpux10* | hpux11*)
10949 # Give a soname corresponding to the major version so that dld.sl refuses to
10950 # link against other versions.
10951 version_type=sunos
10952 need_lib_prefix=no
10953 need_version=no
10954 case $host_cpu in
10955 ia64*)
10956 shrext_cmds='.so'
10957 hardcode_into_libs=yes
10958 dynamic_linker="$host_os dld.so"
10959 shlibpath_var=LD_LIBRARY_PATH
10960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962 soname_spec='$libname$release$shared_ext$major'
10963 if test 32 = "$HPUX_IA64_MODE"; then
10964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10965 else
10966 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10967 fi
10968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 ;;
10970 hppa*64*)
10971 shrext_cmds='.sl'
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.sl"
10974 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10977 soname_spec='$libname$release$shared_ext$major'
10978 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980 ;;
10981 *)
10982 shrext_cmds='.sl'
10983 dynamic_linker="$host_os dld.sl"
10984 shlibpath_var=SHLIB_PATH
10985 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10987 soname_spec='$libname$release$shared_ext$major'
10988 ;;
10989 esac
10990 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10991 postinstall_cmds='chmod 555 $lib'
10992 # or fails outright, so override atomically:
10993 install_override_mode=555
10994 ;;
10995
10996 interix[3-9]*)
10997 version_type=linux # correct to gnu/linux during the next big refactor
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11001 soname_spec='$libname$release$shared_ext$major'
11002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=no
11005 hardcode_into_libs=yes
11006 ;;
11007
11008 irix5* | irix6* | nonstopux*)
11009 case $host_os in
11010 nonstopux*) version_type=nonstopux ;;
11011 *)
11012 if test yes = "$lt_cv_prog_gnu_ld"; then
11013 version_type=linux # correct to gnu/linux during the next big refactor
11014 else
11015 version_type=irix
11016 fi ;;
11017 esac
11018 need_lib_prefix=no
11019 need_version=no
11020 soname_spec='$libname$release$shared_ext$major'
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11022 case $host_os in
11023 irix5* | nonstopux*)
11024 libsuff= shlibsuff=
11025 ;;
11026 *)
11027 case $LD in # libtool.m4 will add one of these switches to LD
11028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11029 libsuff= shlibsuff= libmagic=32-bit;;
11030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11031 libsuff=32 shlibsuff=N32 libmagic=N32;;
11032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11034 *) libsuff= shlibsuff= libmagic=never-match;;
11035 esac
11036 ;;
11037 esac
11038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11039 shlibpath_overrides_runpath=no
11040 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11041 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11042 hardcode_into_libs=yes
11043 ;;
11044
11045 # No shared lib support for Linux oldld, aout, or coff.
11046 linux*oldld* | linux*aout* | linux*coff*)
11047 dynamic_linker=no
11048 ;;
11049
11050 linux*android*)
11051 version_type=none # Android doesn't support versioned libraries.
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='$libname$release$shared_ext'
11055 soname_spec='$libname$release$shared_ext'
11056 finish_cmds=
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059
11060 # This implies no fast_install, which is unacceptable.
11061 # Some rework will be needed to allow for fast_install
11062 # before this can be enabled.
11063 hardcode_into_libs=yes
11064
11065 dynamic_linker='Android linker'
11066 # Don't embed -rpath directories since the linker doesn't support them.
11067 hardcode_libdir_flag_spec='-L$libdir'
11068 ;;
11069
11070 # This must be glibc/ELF.
11071 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11072 version_type=linux # correct to gnu/linux during the next big refactor
11073 need_lib_prefix=no
11074 need_version=no
11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11076 soname_spec='$libname$release$shared_ext$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080
11081 # Some binutils ld are patched to set DT_RUNPATH
11082 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 lt_cv_shlibpath_overrides_runpath=no
11086 save_LDFLAGS=$LDFLAGS
11087 save_libdir=$libdir
11088 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11089 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092
11093 int
11094 main ()
11095 {
11096
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11103 lt_cv_shlibpath_overrides_runpath=yes
11104 fi
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LDFLAGS=$save_LDFLAGS
11109 libdir=$save_libdir
11110
11111 fi
11112
11113 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11114
11115 # This implies no fast_install, which is unacceptable.
11116 # Some rework will be needed to allow for fast_install
11117 # before this can be enabled.
11118 hardcode_into_libs=yes
11119
11120 # Append ld.so.conf contents to the search path
11121 if test -f /etc/ld.so.conf; then
11122 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' ' '`
11123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11124 fi
11125
11126 # We used to test for /lib/ld.so.1 and disable shared libraries on
11127 # powerpc, because MkLinux only supported shared libraries with the
11128 # GNU dynamic linker. Since this was broken with cross compilers,
11129 # most powerpc-linux boxes support dynamic linking these days and
11130 # people can always --disable-shared, the test was removed, and we
11131 # assume the GNU/Linux dynamic linker is in use.
11132 dynamic_linker='GNU/Linux ld.so'
11133 ;;
11134
11135 netbsd*)
11136 version_type=sunos
11137 need_lib_prefix=no
11138 need_version=no
11139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 dynamic_linker='NetBSD (a.out) ld.so'
11143 else
11144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145 soname_spec='$libname$release$shared_ext$major'
11146 dynamic_linker='NetBSD ld.elf_so'
11147 fi
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11151 ;;
11152
11153 newsos6)
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 ;;
11159
11160 *nto* | *qnx*)
11161 version_type=qnx
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165 soname_spec='$libname$release$shared_ext$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168 hardcode_into_libs=yes
11169 dynamic_linker='ldqnx.so'
11170 ;;
11171
11172 openbsd* | bitrig*)
11173 version_type=sunos
11174 sys_lib_dlsearch_path_spec=/usr/lib
11175 need_lib_prefix=no
11176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11177 need_version=no
11178 else
11179 need_version=yes
11180 fi
11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 ;;
11186
11187 os2*)
11188 libname_spec='$name'
11189 version_type=windows
11190 shrext_cmds=.dll
11191 need_version=no
11192 need_lib_prefix=no
11193 # OS/2 can only load a DLL with a base name of 8 characters or less.
11194 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11195 v=$($ECHO $release$versuffix | tr -d .-);
11196 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11197 $ECHO $n$v`$shared_ext'
11198 library_names_spec='${libname}_dll.$libext'
11199 dynamic_linker='OS/2 ld.exe'
11200 shlibpath_var=BEGINLIBPATH
11201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203 postinstall_cmds='base_file=`basename \$file`~
11204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11205 dldir=$destdir/`dirname \$dlpath`~
11206 test -d \$dldir || mkdir -p \$dldir~
11207 $install_prog $dir/$dlname \$dldir/$dlname~
11208 chmod a+x \$dldir/$dlname~
11209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11211 fi'
11212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11213 dlpath=$dir/\$dldll~
11214 $RM \$dlpath'
11215 ;;
11216
11217 osf3* | osf4* | osf5*)
11218 version_type=osf
11219 need_lib_prefix=no
11220 need_version=no
11221 soname_spec='$libname$release$shared_ext$major'
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11226 ;;
11227
11228 rdos*)
11229 dynamic_linker=no
11230 ;;
11231
11232 solaris*)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 need_lib_prefix=no
11235 need_version=no
11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237 soname_spec='$libname$release$shared_ext$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath=yes
11240 hardcode_into_libs=yes
11241 # ldd complains unless libraries are executable
11242 postinstall_cmds='chmod +x $lib'
11243 ;;
11244
11245 sunos4*)
11246 version_type=sunos
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=yes
11251 if test yes = "$with_gnu_ld"; then
11252 need_lib_prefix=no
11253 fi
11254 need_version=yes
11255 ;;
11256
11257 sysv4 | sysv4.3*)
11258 version_type=linux # correct to gnu/linux during the next big refactor
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260 soname_spec='$libname$release$shared_ext$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 case $host_vendor in
11263 sni)
11264 shlibpath_overrides_runpath=no
11265 need_lib_prefix=no
11266 runpath_var=LD_RUN_PATH
11267 ;;
11268 siemens)
11269 need_lib_prefix=no
11270 ;;
11271 motorola)
11272 need_lib_prefix=no
11273 need_version=no
11274 shlibpath_overrides_runpath=no
11275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11276 ;;
11277 esac
11278 ;;
11279
11280 sysv4*MP*)
11281 if test -d /usr/nec; then
11282 version_type=linux # correct to gnu/linux during the next big refactor
11283 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11284 soname_spec='$libname$shared_ext.$major'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 fi
11287 ;;
11288
11289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11290 version_type=sco
11291 need_lib_prefix=no
11292 need_version=no
11293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11294 soname_spec='$libname$release$shared_ext$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11297 hardcode_into_libs=yes
11298 if test yes = "$with_gnu_ld"; then
11299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11300 else
11301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11302 case $host_os in
11303 sco3.2v5*)
11304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11305 ;;
11306 esac
11307 fi
11308 sys_lib_dlsearch_path_spec='/usr/lib'
11309 ;;
11310
11311 tpf*)
11312 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=no
11319 hardcode_into_libs=yes
11320 ;;
11321
11322 uts4*)
11323 version_type=linux # correct to gnu/linux during the next big refactor
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 soname_spec='$libname$release$shared_ext$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 ;;
11328
11329 *)
11330 dynamic_linker=no
11331 ;;
11332 esac
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11334 $as_echo "$dynamic_linker" >&6; }
11335 test no = "$dynamic_linker" && can_build_shared=no
11336
11337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11338 if test yes = "$GCC"; then
11339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11340 fi
11341
11342 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11343 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11344 fi
11345 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11346 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11347 fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11441 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11442 hardcode_action=
11443 if test -n "$hardcode_libdir_flag_spec" ||
11444 test -n "$runpath_var" ||
11445 test yes = "$hardcode_automatic"; then
11446
11447 # We can hardcode non-existent directories.
11448 if test no != "$hardcode_direct" &&
11449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11450 # have to relink, otherwise we might link with an installed library
11451 # when we should be linking with a yet-to-be-installed one
11452 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11453 test no != "$hardcode_minus_L"; then
11454 # Linking always hardcodes the temporary library directory.
11455 hardcode_action=relink
11456 else
11457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11458 hardcode_action=immediate
11459 fi
11460 else
11461 # We cannot hardcode anything, or else we can only hardcode existing
11462 # directories.
11463 hardcode_action=unsupported
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11466 $as_echo "$hardcode_action" >&6; }
11467
11468 if test relink = "$hardcode_action" ||
11469 test yes = "$inherit_rpath"; then
11470 # Fast installation is not supported
11471 enable_fast_install=no
11472 elif test yes = "$shlibpath_overrides_runpath" ||
11473 test no = "$enable_shared"; then
11474 # Fast installation is not necessary
11475 enable_fast_install=needless
11476 fi
11477
11478
11479
11480
11481
11482
11483 if test yes != "$enable_dlopen"; then
11484 enable_dlopen=unknown
11485 enable_dlopen_self=unknown
11486 enable_dlopen_self_static=unknown
11487 else
11488 lt_cv_dlopen=no
11489 lt_cv_dlopen_libs=
11490
11491 case $host_os in
11492 beos*)
11493 lt_cv_dlopen=load_add_on
11494 lt_cv_dlopen_libs=
11495 lt_cv_dlopen_self=yes
11496 ;;
11497
11498 mingw* | pw32* | cegcc*)
11499 lt_cv_dlopen=LoadLibrary
11500 lt_cv_dlopen_libs=
11501 ;;
11502
11503 cygwin*)
11504 lt_cv_dlopen=dlopen
11505 lt_cv_dlopen_libs=
11506 ;;
11507
11508 darwin*)
11509 # if libdl is installed we need to link against it
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11511 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11512 if ${ac_cv_lib_dl_dlopen+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldl $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dlopen ();
11527 int
11528 main ()
11529 {
11530 return dlopen ();
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dl_dlopen=yes
11537 else
11538 ac_cv_lib_dl_dlopen=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11546 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11547 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11548 else
11549
11550 lt_cv_dlopen=dyld
11551 lt_cv_dlopen_libs=
11552 lt_cv_dlopen_self=yes
11553
11554 fi
11555
11556 ;;
11557
11558 tpf*)
11559 # Don't try to run any link tests for TPF. We know it's impossible
11560 # because TPF is a cross-compiler, and we know how we open DSOs.
11561 lt_cv_dlopen=dlopen
11562 lt_cv_dlopen_libs=
11563 lt_cv_dlopen_self=no
11564 ;;
11565
11566 *)
11567 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11568 if test "x$ac_cv_func_shl_load" = xyes; then :
11569 lt_cv_dlopen=shl_load
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11572 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11573 if ${ac_cv_lib_dld_shl_load+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-ldld $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char shl_load ();
11588 int
11589 main ()
11590 {
11591 return shl_load ();
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597 ac_cv_lib_dld_shl_load=yes
11598 else
11599 ac_cv_lib_dld_shl_load=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11606 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11607 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11608 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11609 else
11610 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11611 if test "x$ac_cv_func_dlopen" = xyes; then :
11612 lt_cv_dlopen=dlopen
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11616 if ${ac_cv_lib_dl_dlopen+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-ldl $LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char dlopen ();
11631 int
11632 main ()
11633 {
11634 return dlopen ();
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640 ac_cv_lib_dl_dlopen=yes
11641 else
11642 ac_cv_lib_dl_dlopen=no
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11650 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11651 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11654 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11655 if ${ac_cv_lib_svld_dlopen+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 ac_check_lib_save_LIBS=$LIBS
11659 LIBS="-lsvld $LIBS"
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char dlopen ();
11670 int
11671 main ()
11672 {
11673 return dlopen ();
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 ac_cv_lib_svld_dlopen=yes
11680 else
11681 ac_cv_lib_svld_dlopen=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11688 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11689 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11690 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11691 else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11693 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11694 if ${ac_cv_lib_dld_dld_link+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-ldld $LIBS"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 char dld_link ();
11709 int
11710 main ()
11711 {
11712 return dld_link ();
11713 ;
11714 return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_c_try_link "$LINENO"; then :
11718 ac_cv_lib_dld_dld_link=yes
11719 else
11720 ac_cv_lib_dld_dld_link=no
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724 LIBS=$ac_check_lib_save_LIBS
11725 fi
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11727 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11728 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11729 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11730 fi
11731
11732
11733 fi
11734
11735
11736 fi
11737
11738
11739 fi
11740
11741
11742 fi
11743
11744
11745 fi
11746
11747 ;;
11748 esac
11749
11750 if test no = "$lt_cv_dlopen"; then
11751 enable_dlopen=no
11752 else
11753 enable_dlopen=yes
11754 fi
11755
11756 case $lt_cv_dlopen in
11757 dlopen)
11758 save_CPPFLAGS=$CPPFLAGS
11759 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11760
11761 save_LDFLAGS=$LDFLAGS
11762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11763
11764 save_LIBS=$LIBS
11765 LIBS="$lt_cv_dlopen_libs $LIBS"
11766
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11768 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11769 if ${lt_cv_dlopen_self+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 if test yes = "$cross_compiling"; then :
11773 lt_cv_dlopen_self=cross
11774 else
11775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11776 lt_status=$lt_dlunknown
11777 cat > conftest.$ac_ext <<_LT_EOF
11778 #line $LINENO "configure"
11779 #include "confdefs.h"
11780
11781 #if HAVE_DLFCN_H
11782 #include <dlfcn.h>
11783 #endif
11784
11785 #include <stdio.h>
11786
11787 #ifdef RTLD_GLOBAL
11788 # define LT_DLGLOBAL RTLD_GLOBAL
11789 #else
11790 # ifdef DL_GLOBAL
11791 # define LT_DLGLOBAL DL_GLOBAL
11792 # else
11793 # define LT_DLGLOBAL 0
11794 # endif
11795 #endif
11796
11797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11798 find out it does not work in some platform. */
11799 #ifndef LT_DLLAZY_OR_NOW
11800 # ifdef RTLD_LAZY
11801 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11802 # else
11803 # ifdef DL_LAZY
11804 # define LT_DLLAZY_OR_NOW DL_LAZY
11805 # else
11806 # ifdef RTLD_NOW
11807 # define LT_DLLAZY_OR_NOW RTLD_NOW
11808 # else
11809 # ifdef DL_NOW
11810 # define LT_DLLAZY_OR_NOW DL_NOW
11811 # else
11812 # define LT_DLLAZY_OR_NOW 0
11813 # endif
11814 # endif
11815 # endif
11816 # endif
11817 #endif
11818
11819 /* When -fvisibility=hidden is used, assume the code has been annotated
11820 correspondingly for the symbols needed. */
11821 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11822 int fnord () __attribute__((visibility("default")));
11823 #endif
11824
11825 int fnord () { return 42; }
11826 int main ()
11827 {
11828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829 int status = $lt_dlunknown;
11830
11831 if (self)
11832 {
11833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11834 else
11835 {
11836 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11837 else puts (dlerror ());
11838 }
11839 /* dlclose (self); */
11840 }
11841 else
11842 puts (dlerror ());
11843
11844 return status;
11845 }
11846 _LT_EOF
11847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11848 (eval $ac_link) 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11852 (./conftest; exit; ) >&5 2>/dev/null
11853 lt_status=$?
11854 case x$lt_status in
11855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11858 esac
11859 else :
11860 # compilation failed
11861 lt_cv_dlopen_self=no
11862 fi
11863 fi
11864 rm -fr conftest*
11865
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11869 $as_echo "$lt_cv_dlopen_self" >&6; }
11870
11871 if test yes = "$lt_cv_dlopen_self"; then
11872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11875 if ${lt_cv_dlopen_self_static+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 if test yes = "$cross_compiling"; then :
11879 lt_cv_dlopen_self_static=cross
11880 else
11881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11882 lt_status=$lt_dlunknown
11883 cat > conftest.$ac_ext <<_LT_EOF
11884 #line $LINENO "configure"
11885 #include "confdefs.h"
11886
11887 #if HAVE_DLFCN_H
11888 #include <dlfcn.h>
11889 #endif
11890
11891 #include <stdio.h>
11892
11893 #ifdef RTLD_GLOBAL
11894 # define LT_DLGLOBAL RTLD_GLOBAL
11895 #else
11896 # ifdef DL_GLOBAL
11897 # define LT_DLGLOBAL DL_GLOBAL
11898 # else
11899 # define LT_DLGLOBAL 0
11900 # endif
11901 #endif
11902
11903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11904 find out it does not work in some platform. */
11905 #ifndef LT_DLLAZY_OR_NOW
11906 # ifdef RTLD_LAZY
11907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11908 # else
11909 # ifdef DL_LAZY
11910 # define LT_DLLAZY_OR_NOW DL_LAZY
11911 # else
11912 # ifdef RTLD_NOW
11913 # define LT_DLLAZY_OR_NOW RTLD_NOW
11914 # else
11915 # ifdef DL_NOW
11916 # define LT_DLLAZY_OR_NOW DL_NOW
11917 # else
11918 # define LT_DLLAZY_OR_NOW 0
11919 # endif
11920 # endif
11921 # endif
11922 # endif
11923 #endif
11924
11925 /* When -fvisibility=hidden is used, assume the code has been annotated
11926 correspondingly for the symbols needed. */
11927 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11928 int fnord () __attribute__((visibility("default")));
11929 #endif
11930
11931 int fnord () { return 42; }
11932 int main ()
11933 {
11934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11935 int status = $lt_dlunknown;
11936
11937 if (self)
11938 {
11939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11940 else
11941 {
11942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11943 else puts (dlerror ());
11944 }
11945 /* dlclose (self); */
11946 }
11947 else
11948 puts (dlerror ());
11949
11950 return status;
11951 }
11952 _LT_EOF
11953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11954 (eval $ac_link) 2>&5
11955 ac_status=$?
11956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11958 (./conftest; exit; ) >&5 2>/dev/null
11959 lt_status=$?
11960 case x$lt_status in
11961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11963 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11964 esac
11965 else :
11966 # compilation failed
11967 lt_cv_dlopen_self_static=no
11968 fi
11969 fi
11970 rm -fr conftest*
11971
11972
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11975 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11976 fi
11977
11978 CPPFLAGS=$save_CPPFLAGS
11979 LDFLAGS=$save_LDFLAGS
11980 LIBS=$save_LIBS
11981 ;;
11982 esac
11983
11984 case $lt_cv_dlopen_self in
11985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11986 *) enable_dlopen_self=unknown ;;
11987 esac
11988
11989 case $lt_cv_dlopen_self_static in
11990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11991 *) enable_dlopen_self_static=unknown ;;
11992 esac
11993 fi
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011 striplib=
12012 old_striplib=
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12014 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12015 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019 $as_echo "yes" >&6; }
12020 else
12021 # FIXME - insert some real tests, host_os isn't really good enough
12022 case $host_os in
12023 darwin*)
12024 if test -n "$STRIP"; then
12025 striplib="$STRIP -x"
12026 old_striplib="$STRIP -S"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028 $as_echo "yes" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033 ;;
12034 *)
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 ;;
12038 esac
12039 fi
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052 # Report what library types will actually be built
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12054 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12056 $as_echo "$can_build_shared" >&6; }
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12059 $as_echo_n "checking whether to build shared libraries... " >&6; }
12060 test no = "$can_build_shared" && enable_shared=no
12061
12062 # On AIX, shared libraries and static libraries use the same namespace, and
12063 # are all built from PIC.
12064 case $host_os in
12065 aix3*)
12066 test yes = "$enable_shared" && enable_static=no
12067 if test -n "$RANLIB"; then
12068 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12069 postinstall_cmds='$RANLIB $lib'
12070 fi
12071 ;;
12072
12073 aix[4-9]*)
12074 if test ia64 != "$host_cpu"; then
12075 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12076 yes,aix,yes) ;; # shared object as lib.so file only
12077 yes,svr4,*) ;; # shared object as lib.so archive member only
12078 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12079 esac
12080 fi
12081 ;;
12082 esac
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12084 $as_echo "$enable_shared" >&6; }
12085
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12087 $as_echo_n "checking whether to build static libraries... " >&6; }
12088 # Make sure either enable_shared or enable_static is yes.
12089 test yes = "$enable_shared" || enable_static=yes
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12091 $as_echo "$enable_static" >&6; }
12092
12093
12094
12095
12096 fi
12097 ac_ext=c
12098 ac_cpp='$CPP $CPPFLAGS'
12099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12102
12103 CC=$lt_save_CC
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119 ac_config_commands="$ac_config_commands libtool"
12120
12121
12122
12123
12124 # Only expand once:
12125
12126
12127
12128
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12130 $as_echo_n "checking for ANSI C header files... " >&6; }
12131 if ${ac_cv_header_stdc+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <stdlib.h>
12137 #include <stdarg.h>
12138 #include <string.h>
12139 #include <float.h>
12140
12141 int
12142 main ()
12143 {
12144
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 if ac_fn_c_try_compile "$LINENO"; then :
12150 ac_cv_header_stdc=yes
12151 else
12152 ac_cv_header_stdc=no
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155
12156 if test $ac_cv_header_stdc = yes; then
12157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160 #include <string.h>
12161
12162 _ACEOF
12163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12164 $EGREP "memchr" >/dev/null 2>&1; then :
12165
12166 else
12167 ac_cv_header_stdc=no
12168 fi
12169 rm -f conftest*
12170
12171 fi
12172
12173 if test $ac_cv_header_stdc = yes; then
12174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 #include <stdlib.h>
12178
12179 _ACEOF
12180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12181 $EGREP "free" >/dev/null 2>&1; then :
12182
12183 else
12184 ac_cv_header_stdc=no
12185 fi
12186 rm -f conftest*
12187
12188 fi
12189
12190 if test $ac_cv_header_stdc = yes; then
12191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12192 if test "$cross_compiling" = yes; then :
12193 :
12194 else
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <ctype.h>
12198 #include <stdlib.h>
12199 #if ((' ' & 0x0FF) == 0x020)
12200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12202 #else
12203 # define ISLOWER(c) \
12204 (('a' <= (c) && (c) <= 'i') \
12205 || ('j' <= (c) && (c) <= 'r') \
12206 || ('s' <= (c) && (c) <= 'z'))
12207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12208 #endif
12209
12210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12211 int
12212 main ()
12213 {
12214 int i;
12215 for (i = 0; i < 256; i++)
12216 if (XOR (islower (i), ISLOWER (i))
12217 || toupper (i) != TOUPPER (i))
12218 return 2;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_run "$LINENO"; then :
12223
12224 else
12225 ac_cv_header_stdc=no
12226 fi
12227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12228 conftest.$ac_objext conftest.beam conftest.$ac_ext
12229 fi
12230
12231 fi
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12234 $as_echo "$ac_cv_header_stdc" >&6; }
12235 if test $ac_cv_header_stdc = yes; then
12236
12237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12238
12239 fi
12240
12241
12242 for ac_header in sys/poll.h
12243 do :
12244 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12245 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12246 cat >>confdefs.h <<_ACEOF
12247 #define HAVE_SYS_POLL_H 1
12248 _ACEOF
12249 have_poll_sys_h=yes
12250 else
12251 have_sys_poll_h=no
12252 fi
12253
12254 done
12255
12256
12257 for ac_header in fcntl.h sys/time.h unistd.h strings.h
12258 do :
12259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12261 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12262 cat >>confdefs.h <<_ACEOF
12263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12264 _ACEOF
12265
12266 fi
12267
12268 done
12269
12270
12271 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12272 if test "x$ac_cv_type_size_t" = xyes; then :
12273
12274 else
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define size_t unsigned int
12278 _ACEOF
12279
12280 fi
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12284 if ${ac_cv_header_time+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #include <sys/types.h>
12290 #include <sys/time.h>
12291 #include <time.h>
12292
12293 int
12294 main ()
12295 {
12296 if ((struct tm *) 0)
12297 return 0;
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"; then :
12303 ac_cv_header_time=yes
12304 else
12305 ac_cv_header_time=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12310 $as_echo "$ac_cv_header_time" >&6; }
12311 if test $ac_cv_header_time = yes; then
12312
12313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12314
12315 fi
12316
12317
12318 if test "$have_sys_poll_h" = "no"; then
12319 for ac_func in select
12320 do :
12321 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
12322 if test "x$ac_cv_func_select" = xyes; then :
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_SELECT 1
12325 _ACEOF
12326 have_select=yes
12327 else
12328 have_select=no
12329 fi
12330 done
12331
12332 if test "$have_select" = "no"; then
12333 as_fn_error $? "No select() implementation found" "$LINENO" 5
12334 fi
12335 fi
12336
12337 for ac_func in inet_aton inet_pton
12338 do :
12339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12344 _ACEOF
12345
12346 fi
12347 done
12348
12349
12350 for ac_func in gethostbyname
12351 do :
12352 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12353 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12354 cat >>confdefs.h <<_ACEOF
12355 #define HAVE_GETHOSTBYNAME 1
12356 _ACEOF
12357
12358 fi
12359 done
12360
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12363 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12364 if ${ac_cv_c_bigendian+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 ac_cv_c_bigendian=unknown
12368 # See if we're dealing with a universal compiler.
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #ifndef __APPLE_CC__
12372 not a universal capable compiler
12373 #endif
12374 typedef int dummy;
12375
12376 _ACEOF
12377 if ac_fn_c_try_compile "$LINENO"; then :
12378
12379 # Check for potential -arch flags. It is not universal unless
12380 # there are at least two -arch flags with different values.
12381 ac_arch=
12382 ac_prev=
12383 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12384 if test -n "$ac_prev"; then
12385 case $ac_word in
12386 i?86 | x86_64 | ppc | ppc64)
12387 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12388 ac_arch=$ac_word
12389 else
12390 ac_cv_c_bigendian=universal
12391 break
12392 fi
12393 ;;
12394 esac
12395 ac_prev=
12396 elif test "x$ac_word" = "x-arch"; then
12397 ac_prev=arch
12398 fi
12399 done
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 if test $ac_cv_c_bigendian = unknown; then
12403 # See if sys/param.h defines the BYTE_ORDER macro.
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406 #include <sys/types.h>
12407 #include <sys/param.h>
12408
12409 int
12410 main ()
12411 {
12412 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12413 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12414 && LITTLE_ENDIAN)
12415 bogus endian macros
12416 #endif
12417
12418 ;
12419 return 0;
12420 }
12421 _ACEOF
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423 # It does; now see whether it defined to BIG_ENDIAN or not.
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <sys/types.h>
12427 #include <sys/param.h>
12428
12429 int
12430 main ()
12431 {
12432 #if BYTE_ORDER != BIG_ENDIAN
12433 not big endian
12434 #endif
12435
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441 ac_cv_c_bigendian=yes
12442 else
12443 ac_cv_c_bigendian=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 fi
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 fi
12449 if test $ac_cv_c_bigendian = unknown; then
12450 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 #include <limits.h>
12454
12455 int
12456 main ()
12457 {
12458 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12459 bogus endian macros
12460 #endif
12461
12462 ;
12463 return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_compile "$LINENO"; then :
12467 # It does; now see whether it defined to _BIG_ENDIAN or not.
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 #include <limits.h>
12471
12472 int
12473 main ()
12474 {
12475 #ifndef _BIG_ENDIAN
12476 not big endian
12477 #endif
12478
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_compile "$LINENO"; then :
12484 ac_cv_c_bigendian=yes
12485 else
12486 ac_cv_c_bigendian=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 if test $ac_cv_c_bigendian = unknown; then
12493 # Compile a test program.
12494 if test "$cross_compiling" = yes; then :
12495 # Try to guess by grepping values from an object file.
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498 short int ascii_mm[] =
12499 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12500 short int ascii_ii[] =
12501 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12502 int use_ascii (int i) {
12503 return ascii_mm[i] + ascii_ii[i];
12504 }
12505 short int ebcdic_ii[] =
12506 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12507 short int ebcdic_mm[] =
12508 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12509 int use_ebcdic (int i) {
12510 return ebcdic_mm[i] + ebcdic_ii[i];
12511 }
12512 extern int foo;
12513
12514 int
12515 main ()
12516 {
12517 return use_ascii (foo) == use_ebcdic (foo);
12518 ;
12519 return 0;
12520 }
12521 _ACEOF
12522 if ac_fn_c_try_compile "$LINENO"; then :
12523 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12524 ac_cv_c_bigendian=yes
12525 fi
12526 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12527 if test "$ac_cv_c_bigendian" = unknown; then
12528 ac_cv_c_bigendian=no
12529 else
12530 # finding both strings is unlikely to happen, but who knows?
12531 ac_cv_c_bigendian=unknown
12532 fi
12533 fi
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 else
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539 $ac_includes_default
12540 int
12541 main ()
12542 {
12543
12544 /* Are we little or big endian? From Harbison&Steele. */
12545 union
12546 {
12547 long int l;
12548 char c[sizeof (long int)];
12549 } u;
12550 u.l = 1;
12551 return u.c[sizeof (long int) - 1] == 1;
12552
12553 ;
12554 return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_run "$LINENO"; then :
12558 ac_cv_c_bigendian=no
12559 else
12560 ac_cv_c_bigendian=yes
12561 fi
12562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12563 conftest.$ac_objext conftest.beam conftest.$ac_ext
12564 fi
12565
12566 fi
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12569 $as_echo "$ac_cv_c_bigendian" >&6; }
12570 case $ac_cv_c_bigendian in #(
12571 yes)
12572 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12573 ;; #(
12574 no)
12575 ;; #(
12576 universal)
12577
12578 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12579
12580 ;; #(
12581 *)
12582 as_fn_error $? "unknown endianness
12583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12584 esac
12585
12586
12587 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12588 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12589
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12592 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12593 if ${ac_cv_search_getaddrinfo+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 ac_func_search_save_LIBS=$LIBS
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char getaddrinfo ();
12607 int
12608 main ()
12609 {
12610 return getaddrinfo ();
12611 ;
12612 return 0;
12613 }
12614 _ACEOF
12615 for ac_lib in '' nsl; do
12616 if test -z "$ac_lib"; then
12617 ac_res="none required"
12618 else
12619 ac_res=-l$ac_lib
12620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 fi
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_search_getaddrinfo=$ac_res
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext
12627 if ${ac_cv_search_getaddrinfo+:} false; then :
12628 break
12629 fi
12630 done
12631 if ${ac_cv_search_getaddrinfo+:} false; then :
12632
12633 else
12634 ac_cv_search_getaddrinfo=no
12635 fi
12636 rm conftest.$ac_ext
12637 LIBS=$ac_func_search_save_LIBS
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12640 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12641 ac_res=$ac_cv_search_getaddrinfo
12642 if test "$ac_res" != no; then :
12643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12644
12645 fi
12646
12647 fi
12648
12649 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12650 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12651
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12654 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12655 if ${ac_cv_search_getnameinfo+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 ac_func_search_save_LIBS=$LIBS
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char getnameinfo ();
12669 int
12670 main ()
12671 {
12672 return getnameinfo ();
12673 ;
12674 return 0;
12675 }
12676 _ACEOF
12677 for ac_lib in '' nsl; do
12678 if test -z "$ac_lib"; then
12679 ac_res="none required"
12680 else
12681 ac_res=-l$ac_lib
12682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12683 fi
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 ac_cv_search_getnameinfo=$ac_res
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext
12689 if ${ac_cv_search_getnameinfo+:} false; then :
12690 break
12691 fi
12692 done
12693 if ${ac_cv_search_getnameinfo+:} false; then :
12694
12695 else
12696 ac_cv_search_getnameinfo=no
12697 fi
12698 rm conftest.$ac_ext
12699 LIBS=$ac_func_search_save_LIBS
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12702 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12703 ac_res=$ac_cv_search_getnameinfo
12704 if test "$ac_res" != no; then :
12705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12706
12707 fi
12708
12709 fi
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12712 $as_echo_n "checking for library containing socket... " >&6; }
12713 if ${ac_cv_search_socket+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 ac_func_search_save_LIBS=$LIBS
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char socket ();
12727 int
12728 main ()
12729 {
12730 return socket ();
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 for ac_lib in '' socket; do
12736 if test -z "$ac_lib"; then
12737 ac_res="none required"
12738 else
12739 ac_res=-l$ac_lib
12740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12741 fi
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_search_socket=$ac_res
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext \
12746 conftest$ac_exeext
12747 if ${ac_cv_search_socket+:} false; then :
12748 break
12749 fi
12750 done
12751 if ${ac_cv_search_socket+:} false; then :
12752
12753 else
12754 ac_cv_search_socket=no
12755 fi
12756 rm conftest.$ac_ext
12757 LIBS=$ac_func_search_save_LIBS
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12760 $as_echo "$ac_cv_search_socket" >&6; }
12761 ac_res=$ac_cv_search_socket
12762 if test "$ac_res" != no; then :
12763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764
12765 else
12766 as_fn_error $? "socket library not found" "$LINENO" 5
12767 fi
12768
12769
12770 LTLIBOBJS=`echo "$LIBOBJS" |
12771 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
12772
12773
12774 ac_config_files="$ac_config_files Makefile src/Makefile"
12775
12776 cat >confcache <<\_ACEOF
12777 # This file is a shell script that caches the results of configure
12778 # tests run on this system so they can be shared between configure
12779 # scripts and configure runs, see configure's option --config-cache.
12780 # It is not useful on other systems. If it contains results you don't
12781 # want to keep, you may remove or edit it.
12782 #
12783 # config.status only pays attention to the cache file if you give it
12784 # the --recheck option to rerun configure.
12785 #
12786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12788 # following values.
12789
12790 _ACEOF
12791
12792 # The following way of writing the cache mishandles newlines in values,
12793 # but we know of no workaround that is simple, portable, and efficient.
12794 # So, we kill variables containing newlines.
12795 # Ultrix sh set writes to stderr and can't be redirected directly,
12796 # and sets the high bit in the cache file unless we assign to the vars.
12797 (
12798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12799 eval ac_val=\$$ac_var
12800 case $ac_val in #(
12801 *${as_nl}*)
12802 case $ac_var in #(
12803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12805 esac
12806 case $ac_var in #(
12807 _ | IFS | as_nl) ;; #(
12808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12809 *) { eval $ac_var=; unset $ac_var;} ;;
12810 esac ;;
12811 esac
12812 done
12813
12814 (set) 2>&1 |
12815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12816 *${as_nl}ac_space=\ *)
12817 # `set' does not quote correctly, so add quotes: double-quote
12818 # substitution turns \\\\ into \\, and sed turns \\ into \.
12819 sed -n \
12820 "s/'/'\\\\''/g;
12821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12822 ;; #(
12823 *)
12824 # `set' quotes correctly as required by POSIX, so do not add quotes.
12825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12826 ;;
12827 esac |
12828 sort
12829 ) |
12830 sed '
12831 /^ac_cv_env_/b end
12832 t clear
12833 :clear
12834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12835 t end
12836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12837 :end' >>confcache
12838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12839 if test -w "$cache_file"; then
12840 if test "x$cache_file" != "x/dev/null"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12842 $as_echo "$as_me: updating cache $cache_file" >&6;}
12843 if test ! -f "$cache_file" || test -h "$cache_file"; then
12844 cat confcache >"$cache_file"
12845 else
12846 case $cache_file in #(
12847 */* | ?:*)
12848 mv -f confcache "$cache_file"$$ &&
12849 mv -f "$cache_file"$$ "$cache_file" ;; #(
12850 *)
12851 mv -f confcache "$cache_file" ;;
12852 esac
12853 fi
12854 fi
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12858 fi
12859 fi
12860 rm -f confcache
12861
12862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12863 # Let make expand exec_prefix.
12864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12865
12866 DEFS=-DHAVE_CONFIG_H
12867
12868 ac_libobjs=
12869 ac_ltlibobjs=
12870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12871 # 1. Remove the extension, and $U if already installed.
12872 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12873 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12875 # will be set to the directory where LIBOBJS objects are built.
12876 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12877 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12878 done
12879 LIBOBJS=$ac_libobjs
12880
12881 LTLIBOBJS=$ac_ltlibobjs
12882
12883
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12885 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12886 if test -n "$am_sleep_pid"; then
12887 # Hide warnings about reused PIDs.
12888 wait $am_sleep_pid 2>/dev/null
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12891 $as_echo "done" >&6; }
12892 if test -n "$EXEEXT"; then
12893 am__EXEEXT_TRUE=
12894 am__EXEEXT_FALSE='#'
12895 else
12896 am__EXEEXT_TRUE='#'
12897 am__EXEEXT_FALSE=
12898 fi
12899
12900 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12901 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12903 fi
12904 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12905 as_fn_error $? "conditional \"AMDEP\" was never defined.
12906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12907 fi
12908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12909 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12911 fi
12912
12913
12914 : "${CONFIG_STATUS=./config.status}"
12915 ac_write_fail=0
12916 ac_clean_files_save=$ac_clean_files
12917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12919 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12920 as_write_fail=0
12921 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12922 #! $SHELL
12923 # Generated by $as_me.
12924 # Run this file to recreate the current configuration.
12925 # Compiler output produced by configure, useful for debugging
12926 # configure, is in config.log if it exists.
12927
12928 debug=false
12929 ac_cs_recheck=false
12930 ac_cs_silent=false
12931
12932 SHELL=\${CONFIG_SHELL-$SHELL}
12933 export SHELL
12934 _ASEOF
12935 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12936 ## -------------------- ##
12937 ## M4sh Initialization. ##
12938 ## -------------------- ##
12939
12940 # Be more Bourne compatible
12941 DUALCASE=1; export DUALCASE # for MKS sh
12942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12943 emulate sh
12944 NULLCMD=:
12945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12946 # is contrary to our usage. Disable this feature.
12947 alias -g '${1+"$@"}'='"$@"'
12948 setopt NO_GLOB_SUBST
12949 else
12950 case `(set -o) 2>/dev/null` in #(
12951 *posix*) :
12952 set -o posix ;; #(
12953 *) :
12954 ;;
12955 esac
12956 fi
12957
12958
12959 as_nl='
12960 '
12961 export as_nl
12962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12966 # Prefer a ksh shell builtin over an external printf program on Solaris,
12967 # but without wasting forks for bash or zsh.
12968 if test -z "$BASH_VERSION$ZSH_VERSION" \
12969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12970 as_echo='print -r --'
12971 as_echo_n='print -rn --'
12972 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12973 as_echo='printf %s\n'
12974 as_echo_n='printf %s'
12975 else
12976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12977 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12978 as_echo_n='/usr/ucb/echo -n'
12979 else
12980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12981 as_echo_n_body='eval
12982 arg=$1;
12983 case $arg in #(
12984 *"$as_nl"*)
12985 expr "X$arg" : "X\\(.*\\)$as_nl";
12986 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12987 esac;
12988 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12989 '
12990 export as_echo_n_body
12991 as_echo_n='sh -c $as_echo_n_body as_echo'
12992 fi
12993 export as_echo_body
12994 as_echo='sh -c $as_echo_body as_echo'
12995 fi
12996
12997 # The user is always right.
12998 if test "${PATH_SEPARATOR+set}" != set; then
12999 PATH_SEPARATOR=:
13000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13002 PATH_SEPARATOR=';'
13003 }
13004 fi
13005
13006
13007 # IFS
13008 # We need space, tab and new line, in precisely that order. Quoting is
13009 # there to prevent editors from complaining about space-tab.
13010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13011 # splitting by setting IFS to empty value.)
13012 IFS=" "" $as_nl"
13013
13014 # Find who we are. Look in the path if we contain no directory separator.
13015 as_myself=
13016 case $0 in #((
13017 *[\\/]* ) as_myself=$0 ;;
13018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13024 done
13025 IFS=$as_save_IFS
13026
13027 ;;
13028 esac
13029 # We did not find ourselves, most probably we were run as `sh COMMAND'
13030 # in which case we are not to be found in the path.
13031 if test "x$as_myself" = x; then
13032 as_myself=$0
13033 fi
13034 if test ! -f "$as_myself"; then
13035 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13036 exit 1
13037 fi
13038
13039 # Unset variables that we do not need and which cause bugs (e.g. in
13040 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13041 # suppresses any "Segmentation fault" message there. '((' could
13042 # trigger a bug in pdksh 5.2.14.
13043 for as_var in BASH_ENV ENV MAIL MAILPATH
13044 do eval test x\${$as_var+set} = xset \
13045 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13046 done
13047 PS1='$ '
13048 PS2='> '
13049 PS4='+ '
13050
13051 # NLS nuisances.
13052 LC_ALL=C
13053 export LC_ALL
13054 LANGUAGE=C
13055 export LANGUAGE
13056
13057 # CDPATH.
13058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13059
13060
13061 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13062 # ----------------------------------------
13063 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13064 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13065 # script with STATUS, using 1 if that was 0.
13066 as_fn_error ()
13067 {
13068 as_status=$1; test $as_status -eq 0 && as_status=1
13069 if test "$4"; then
13070 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13071 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13072 fi
13073 $as_echo "$as_me: error: $2" >&2
13074 as_fn_exit $as_status
13075 } # as_fn_error
13076
13077
13078 # as_fn_set_status STATUS
13079 # -----------------------
13080 # Set $? to STATUS, without forking.
13081 as_fn_set_status ()
13082 {
13083 return $1
13084 } # as_fn_set_status
13085
13086 # as_fn_exit STATUS
13087 # -----------------
13088 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13089 as_fn_exit ()
13090 {
13091 set +e
13092 as_fn_set_status $1
13093 exit $1
13094 } # as_fn_exit
13095
13096 # as_fn_unset VAR
13097 # ---------------
13098 # Portably unset VAR.
13099 as_fn_unset ()
13100 {
13101 { eval $1=; unset $1;}
13102 }
13103 as_unset=as_fn_unset
13104 # as_fn_append VAR VALUE
13105 # ----------------------
13106 # Append the text in VALUE to the end of the definition contained in VAR. Take
13107 # advantage of any shell optimizations that allow amortized linear growth over
13108 # repeated appends, instead of the typical quadratic growth present in naive
13109 # implementations.
13110 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13111 eval 'as_fn_append ()
13112 {
13113 eval $1+=\$2
13114 }'
13115 else
13116 as_fn_append ()
13117 {
13118 eval $1=\$$1\$2
13119 }
13120 fi # as_fn_append
13121
13122 # as_fn_arith ARG...
13123 # ------------------
13124 # Perform arithmetic evaluation on the ARGs, and store the result in the
13125 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13126 # must be portable across $(()) and expr.
13127 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13128 eval 'as_fn_arith ()
13129 {
13130 as_val=$(( $* ))
13131 }'
13132 else
13133 as_fn_arith ()
13134 {
13135 as_val=`expr "$@" || test $? -eq 1`
13136 }
13137 fi # as_fn_arith
13138
13139
13140 if expr a : '\(a\)' >/dev/null 2>&1 &&
13141 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13142 as_expr=expr
13143 else
13144 as_expr=false
13145 fi
13146
13147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13148 as_basename=basename
13149 else
13150 as_basename=false
13151 fi
13152
13153 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13154 as_dirname=dirname
13155 else
13156 as_dirname=false
13157 fi
13158
13159 as_me=`$as_basename -- "$0" ||
13160 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13161 X"$0" : 'X\(//\)$' \| \
13162 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13163 $as_echo X/"$0" |
13164 sed '/^.*\/\([^/][^/]*\)\/*$/{
13165 s//\1/
13166 q
13167 }
13168 /^X\/\(\/\/\)$/{
13169 s//\1/
13170 q
13171 }
13172 /^X\/\(\/\).*/{
13173 s//\1/
13174 q
13175 }
13176 s/.*/./; q'`
13177
13178 # Avoid depending upon Character Ranges.
13179 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13180 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13181 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13182 as_cr_digits='0123456789'
13183 as_cr_alnum=$as_cr_Letters$as_cr_digits
13184
13185 ECHO_C= ECHO_N= ECHO_T=
13186 case `echo -n x` in #(((((
13187 -n*)
13188 case `echo 'xy\c'` in
13189 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13190 xy) ECHO_C='\c';;
13191 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13192 ECHO_T=' ';;
13193 esac;;
13194 *)
13195 ECHO_N='-n';;
13196 esac
13197
13198 rm -f conf$$ conf$$.exe conf$$.file
13199 if test -d conf$$.dir; then
13200 rm -f conf$$.dir/conf$$.file
13201 else
13202 rm -f conf$$.dir
13203 mkdir conf$$.dir 2>/dev/null
13204 fi
13205 if (echo >conf$$.file) 2>/dev/null; then
13206 if ln -s conf$$.file conf$$ 2>/dev/null; then
13207 as_ln_s='ln -s'
13208 # ... but there are two gotchas:
13209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13211 # In both cases, we have to default to `cp -pR'.
13212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13213 as_ln_s='cp -pR'
13214 elif ln conf$$.file conf$$ 2>/dev/null; then
13215 as_ln_s=ln
13216 else
13217 as_ln_s='cp -pR'
13218 fi
13219 else
13220 as_ln_s='cp -pR'
13221 fi
13222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13223 rmdir conf$$.dir 2>/dev/null
13224
13225
13226 # as_fn_mkdir_p
13227 # -------------
13228 # Create "$as_dir" as a directory, including parents if necessary.
13229 as_fn_mkdir_p ()
13230 {
13231
13232 case $as_dir in #(
13233 -*) as_dir=./$as_dir;;
13234 esac
13235 test -d "$as_dir" || eval $as_mkdir_p || {
13236 as_dirs=
13237 while :; do
13238 case $as_dir in #(
13239 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13240 *) as_qdir=$as_dir;;
13241 esac
13242 as_dirs="'$as_qdir' $as_dirs"
13243 as_dir=`$as_dirname -- "$as_dir" ||
13244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13245 X"$as_dir" : 'X\(//\)[^/]' \| \
13246 X"$as_dir" : 'X\(//\)$' \| \
13247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13248 $as_echo X"$as_dir" |
13249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13250 s//\1/
13251 q
13252 }
13253 /^X\(\/\/\)[^/].*/{
13254 s//\1/
13255 q
13256 }
13257 /^X\(\/\/\)$/{
13258 s//\1/
13259 q
13260 }
13261 /^X\(\/\).*/{
13262 s//\1/
13263 q
13264 }
13265 s/.*/./; q'`
13266 test -d "$as_dir" && break
13267 done
13268 test -z "$as_dirs" || eval "mkdir $as_dirs"
13269 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13270
13271
13272 } # as_fn_mkdir_p
13273 if mkdir -p . 2>/dev/null; then
13274 as_mkdir_p='mkdir -p "$as_dir"'
13275 else
13276 test -d ./-p && rmdir ./-p
13277 as_mkdir_p=false
13278 fi
13279
13280
13281 # as_fn_executable_p FILE
13282 # -----------------------
13283 # Test if FILE is an executable regular file.
13284 as_fn_executable_p ()
13285 {
13286 test -f "$1" && test -x "$1"
13287 } # as_fn_executable_p
13288 as_test_x='test -x'
13289 as_executable_p=as_fn_executable_p
13290
13291 # Sed expression to map a string onto a valid CPP name.
13292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13293
13294 # Sed expression to map a string onto a valid variable name.
13295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13296
13297
13298 exec 6>&1
13299 ## ----------------------------------- ##
13300 ## Main body of $CONFIG_STATUS script. ##
13301 ## ----------------------------------- ##
13302 _ASEOF
13303 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13304
13305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13306 # Save the log message, to keep $0 and so on meaningful, and to
13307 # report actual input values of CONFIG_FILES etc. instead of their
13308 # values after options handling.
13309 ac_log="
13310 This file was extended by libopm $as_me 0.1, which was
13311 generated by GNU Autoconf 2.69. Invocation command line was
13312
13313 CONFIG_FILES = $CONFIG_FILES
13314 CONFIG_HEADERS = $CONFIG_HEADERS
13315 CONFIG_LINKS = $CONFIG_LINKS
13316 CONFIG_COMMANDS = $CONFIG_COMMANDS
13317 $ $0 $@
13318
13319 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13320 "
13321
13322 _ACEOF
13323
13324 case $ac_config_files in *"
13325 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13326 esac
13327
13328 case $ac_config_headers in *"
13329 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13330 esac
13331
13332
13333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334 # Files that config.status was made for.
13335 config_files="$ac_config_files"
13336 config_headers="$ac_config_headers"
13337 config_commands="$ac_config_commands"
13338
13339 _ACEOF
13340
13341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13342 ac_cs_usage="\
13343 \`$as_me' instantiates files and other configuration actions
13344 from templates according to the current configuration. Unless the files
13345 and actions are specified as TAGs, all are instantiated by default.
13346
13347 Usage: $0 [OPTION]... [TAG]...
13348
13349 -h, --help print this help, then exit
13350 -V, --version print version number and configuration settings, then exit
13351 --config print configuration, then exit
13352 -q, --quiet, --silent
13353 do not print progress messages
13354 -d, --debug don't remove temporary files
13355 --recheck update $as_me by reconfiguring in the same conditions
13356 --file=FILE[:TEMPLATE]
13357 instantiate the configuration file FILE
13358 --header=FILE[:TEMPLATE]
13359 instantiate the configuration header FILE
13360
13361 Configuration files:
13362 $config_files
13363
13364 Configuration headers:
13365 $config_headers
13366
13367 Configuration commands:
13368 $config_commands
13369
13370 Report bugs to the package provider."
13371
13372 _ACEOF
13373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13374 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13375 ac_cs_version="\\
13376 libopm config.status 0.1
13377 configured by $0, generated by GNU Autoconf 2.69,
13378 with options \\"\$ac_cs_config\\"
13379
13380 Copyright (C) 2012 Free Software Foundation, Inc.
13381 This config.status script is free software; the Free Software Foundation
13382 gives unlimited permission to copy, distribute and modify it."
13383
13384 ac_pwd='$ac_pwd'
13385 srcdir='$srcdir'
13386 INSTALL='$INSTALL'
13387 MKDIR_P='$MKDIR_P'
13388 AWK='$AWK'
13389 test -n "\$AWK" || AWK=awk
13390 _ACEOF
13391
13392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13393 # The default lists apply if the user does not specify any file.
13394 ac_need_defaults=:
13395 while test $# != 0
13396 do
13397 case $1 in
13398 --*=?*)
13399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13401 ac_shift=:
13402 ;;
13403 --*=)
13404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13405 ac_optarg=
13406 ac_shift=:
13407 ;;
13408 *)
13409 ac_option=$1
13410 ac_optarg=$2
13411 ac_shift=shift
13412 ;;
13413 esac
13414
13415 case $ac_option in
13416 # Handling of the options.
13417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13418 ac_cs_recheck=: ;;
13419 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13420 $as_echo "$ac_cs_version"; exit ;;
13421 --config | --confi | --conf | --con | --co | --c )
13422 $as_echo "$ac_cs_config"; exit ;;
13423 --debug | --debu | --deb | --de | --d | -d )
13424 debug=: ;;
13425 --file | --fil | --fi | --f )
13426 $ac_shift
13427 case $ac_optarg in
13428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13429 '') as_fn_error $? "missing file argument" ;;
13430 esac
13431 as_fn_append CONFIG_FILES " '$ac_optarg'"
13432 ac_need_defaults=false;;
13433 --header | --heade | --head | --hea )
13434 $ac_shift
13435 case $ac_optarg in
13436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13437 esac
13438 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13439 ac_need_defaults=false;;
13440 --he | --h)
13441 # Conflict between --help and --header
13442 as_fn_error $? "ambiguous option: \`$1'
13443 Try \`$0 --help' for more information.";;
13444 --help | --hel | -h )
13445 $as_echo "$ac_cs_usage"; exit ;;
13446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13448 ac_cs_silent=: ;;
13449
13450 # This is an error.
13451 -*) as_fn_error $? "unrecognized option: \`$1'
13452 Try \`$0 --help' for more information." ;;
13453
13454 *) as_fn_append ac_config_targets " $1"
13455 ac_need_defaults=false ;;
13456
13457 esac
13458 shift
13459 done
13460
13461 ac_configure_extra_args=
13462
13463 if $ac_cs_silent; then
13464 exec 6>/dev/null
13465 ac_configure_extra_args="$ac_configure_extra_args --silent"
13466 fi
13467
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13470 if \$ac_cs_recheck; then
13471 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13472 shift
13473 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13474 CONFIG_SHELL='$SHELL'
13475 export CONFIG_SHELL
13476 exec "\$@"
13477 fi
13478
13479 _ACEOF
13480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481 exec 5>>config.log
13482 {
13483 echo
13484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13485 ## Running $as_me. ##
13486 _ASBOX
13487 $as_echo "$ac_log"
13488 } >&5
13489
13490 _ACEOF
13491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13492 #
13493 # INIT-COMMANDS
13494 #
13495 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13496
13497
13498 # The HP-UX ksh and POSIX shell print the target directory to stdout
13499 # if CDPATH is set.
13500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13501
13502 sed_quote_subst='$sed_quote_subst'
13503 double_quote_subst='$double_quote_subst'
13504 delay_variable_subst='$delay_variable_subst'
13505 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13506 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13507 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13508 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13509 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13510 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13511 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13512 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13513 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13514 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13515 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13516 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13517 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13518 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13519 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13520 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13521 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13522 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13523 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13524 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13525 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13526 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13527 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13528 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13529 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13530 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13531 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13532 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13533 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13534 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13535 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13536 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13537 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13538 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13539 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13540 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13541 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13542 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13543 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13544 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13545 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13546 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13547 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13548 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13549 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13550 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13551 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13552 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13553 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13554 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13555 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13556 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13557 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13558 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13559 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13560 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13561 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13562 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13563 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"`'
13564 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13565 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13566 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13567 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13568 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13569 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13570 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13571 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13572 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13573 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13574 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13575 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13576 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13577 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13578 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13579 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13580 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13581 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13582 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13583 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13584 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13585 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13586 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13587 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13588 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13589 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13590 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13591 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13592 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13593 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13594 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13595 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13596 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13597 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13598 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13599 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13600 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13601 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13602 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13603 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13604 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13605 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13606 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13607 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13608 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13609 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13610 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13611 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13612 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13613 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13614 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13615 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13616 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13617 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13618 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13619 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13620 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13621 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13622 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13623 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13624 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13625 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13626 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13627 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13628 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13629 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13630 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13631 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13632 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13633 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13634 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13635 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13636 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13637 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13638 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13639
13640 LTCC='$LTCC'
13641 LTCFLAGS='$LTCFLAGS'
13642 compiler='$compiler_DEFAULT'
13643
13644 # A function that is used when there is no print builtin or printf.
13645 func_fallback_echo ()
13646 {
13647 eval 'cat <<_LTECHO_EOF
13648 \$1
13649 _LTECHO_EOF'
13650 }
13651
13652 # Quote evaled strings.
13653 for var in SHELL \
13654 ECHO \
13655 PATH_SEPARATOR \
13656 SED \
13657 GREP \
13658 EGREP \
13659 FGREP \
13660 LD \
13661 NM \
13662 LN_S \
13663 lt_SP2NL \
13664 lt_NL2SP \
13665 reload_flag \
13666 OBJDUMP \
13667 deplibs_check_method \
13668 file_magic_cmd \
13669 file_magic_glob \
13670 want_nocaseglob \
13671 DLLTOOL \
13672 sharedlib_from_linklib_cmd \
13673 AR \
13674 AR_FLAGS \
13675 archiver_list_spec \
13676 STRIP \
13677 RANLIB \
13678 CC \
13679 CFLAGS \
13680 compiler \
13681 lt_cv_sys_global_symbol_pipe \
13682 lt_cv_sys_global_symbol_to_cdecl \
13683 lt_cv_sys_global_symbol_to_import \
13684 lt_cv_sys_global_symbol_to_c_name_address \
13685 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13686 lt_cv_nm_interface \
13687 nm_file_list_spec \
13688 lt_cv_truncate_bin \
13689 lt_prog_compiler_no_builtin_flag \
13690 lt_prog_compiler_pic \
13691 lt_prog_compiler_wl \
13692 lt_prog_compiler_static \
13693 lt_cv_prog_compiler_c_o \
13694 need_locks \
13695 MANIFEST_TOOL \
13696 DSYMUTIL \
13697 NMEDIT \
13698 LIPO \
13699 OTOOL \
13700 OTOOL64 \
13701 shrext_cmds \
13702 export_dynamic_flag_spec \
13703 whole_archive_flag_spec \
13704 compiler_needs_object \
13705 with_gnu_ld \
13706 allow_undefined_flag \
13707 no_undefined_flag \
13708 hardcode_libdir_flag_spec \
13709 hardcode_libdir_separator \
13710 exclude_expsyms \
13711 include_expsyms \
13712 file_list_spec \
13713 variables_saved_for_relink \
13714 libname_spec \
13715 library_names_spec \
13716 soname_spec \
13717 install_override_mode \
13718 finish_eval \
13719 old_striplib \
13720 striplib; do
13721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13722 *[\\\\\\\`\\"\\\$]*)
13723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13724 ;;
13725 *)
13726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13727 ;;
13728 esac
13729 done
13730
13731 # Double-quote double-evaled strings.
13732 for var in reload_cmds \
13733 old_postinstall_cmds \
13734 old_postuninstall_cmds \
13735 old_archive_cmds \
13736 extract_expsyms_cmds \
13737 old_archive_from_new_cmds \
13738 old_archive_from_expsyms_cmds \
13739 archive_cmds \
13740 archive_expsym_cmds \
13741 module_cmds \
13742 module_expsym_cmds \
13743 export_symbols_cmds \
13744 prelink_cmds \
13745 postlink_cmds \
13746 postinstall_cmds \
13747 postuninstall_cmds \
13748 finish_cmds \
13749 sys_lib_search_path_spec \
13750 sys_lib_dlsearch_path_spec; do
13751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13752 *[\\\\\\\`\\"\\\$]*)
13753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13754 ;;
13755 *)
13756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13757 ;;
13758 esac
13759 done
13760
13761 ac_aux_dir='$ac_aux_dir'
13762
13763 # See if we are running on zsh, and set the options that allow our
13764 # commands through without removal of \ escapes INIT.
13765 if test -n "\${ZSH_VERSION+set}"; then
13766 setopt NO_GLOB_SUBST
13767 fi
13768
13769
13770 PACKAGE='$PACKAGE'
13771 VERSION='$VERSION'
13772 RM='$RM'
13773 ofile='$ofile'
13774
13775
13776
13777
13778 _ACEOF
13779
13780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13781
13782 # Handling of arguments.
13783 for ac_config_target in $ac_config_targets
13784 do
13785 case $ac_config_target in
13786 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13788 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13790 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13791
13792 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13793 esac
13794 done
13795
13796
13797 # If the user did not use the arguments to specify the items to instantiate,
13798 # then the envvar interface is used. Set only those that are not.
13799 # We use the long form for the default assignment because of an extremely
13800 # bizarre bug on SunOS 4.1.3.
13801 if $ac_need_defaults; then
13802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13805 fi
13806
13807 # Have a temporary directory for convenience. Make it in the build tree
13808 # simply because there is no reason against having it here, and in addition,
13809 # creating and moving files from /tmp can sometimes cause problems.
13810 # Hook for its removal unless debugging.
13811 # Note that there is a small window in which the directory will not be cleaned:
13812 # after its creation but before its name has been assigned to `$tmp'.
13813 $debug ||
13814 {
13815 tmp= ac_tmp=
13816 trap 'exit_status=$?
13817 : "${ac_tmp:=$tmp}"
13818 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13819 ' 0
13820 trap 'as_fn_exit 1' 1 2 13 15
13821 }
13822 # Create a (secure) tmp directory for tmp files.
13823
13824 {
13825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13826 test -d "$tmp"
13827 } ||
13828 {
13829 tmp=./conf$$-$RANDOM
13830 (umask 077 && mkdir "$tmp")
13831 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13832 ac_tmp=$tmp
13833
13834 # Set up the scripts for CONFIG_FILES section.
13835 # No need to generate them if there are no CONFIG_FILES.
13836 # This happens for instance with `./config.status config.h'.
13837 if test -n "$CONFIG_FILES"; then
13838
13839
13840 ac_cr=`echo X | tr X '\015'`
13841 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13842 # But we know of no other shell where ac_cr would be empty at this
13843 # point, so we can use a bashism as a fallback.
13844 if test "x$ac_cr" = x; then
13845 eval ac_cr=\$\'\\r\'
13846 fi
13847 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13848 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13849 ac_cs_awk_cr='\\r'
13850 else
13851 ac_cs_awk_cr=$ac_cr
13852 fi
13853
13854 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13855 _ACEOF
13856
13857
13858 {
13859 echo "cat >conf$$subs.awk <<_ACEOF" &&
13860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13861 echo "_ACEOF"
13862 } >conf$$subs.sh ||
13863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13864 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13865 ac_delim='%!_!# '
13866 for ac_last_try in false false false false false :; do
13867 . ./conf$$subs.sh ||
13868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13869
13870 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13871 if test $ac_delim_n = $ac_delim_num; then
13872 break
13873 elif $ac_last_try; then
13874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13875 else
13876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13877 fi
13878 done
13879 rm -f conf$$subs.sh
13880
13881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13882 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13883 _ACEOF
13884 sed -n '
13885 h
13886 s/^/S["/; s/!.*/"]=/
13887 p
13888 g
13889 s/^[^!]*!//
13890 :repl
13891 t repl
13892 s/'"$ac_delim"'$//
13893 t delim
13894 :nl
13895 h
13896 s/\(.\{148\}\)..*/\1/
13897 t more1
13898 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13899 p
13900 n
13901 b repl
13902 :more1
13903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13904 p
13905 g
13906 s/.\{148\}//
13907 t nl
13908 :delim
13909 h
13910 s/\(.\{148\}\)..*/\1/
13911 t more2
13912 s/["\\]/\\&/g; s/^/"/; s/$/"/
13913 p
13914 b
13915 :more2
13916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13917 p
13918 g
13919 s/.\{148\}//
13920 t delim
13921 ' <conf$$subs.awk | sed '
13922 /^[^""]/{
13923 N
13924 s/\n//
13925 }
13926 ' >>$CONFIG_STATUS || ac_write_fail=1
13927 rm -f conf$$subs.awk
13928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929 _ACAWK
13930 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13931 for (key in S) S_is_set[key] = 1
13932 FS = ""
13933
13934 }
13935 {
13936 line = $ 0
13937 nfields = split(line, field, "@")
13938 substed = 0
13939 len = length(field[1])
13940 for (i = 2; i < nfields; i++) {
13941 key = field[i]
13942 keylen = length(key)
13943 if (S_is_set[key]) {
13944 value = S[key]
13945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13946 len += length(value) + length(field[++i])
13947 substed = 1
13948 } else
13949 len += 1 + keylen
13950 }
13951
13952 print line
13953 }
13954
13955 _ACAWK
13956 _ACEOF
13957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13960 else
13961 cat
13962 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13963 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13964 _ACEOF
13965
13966 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13967 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13968 # trailing colons and then remove the whole line if VPATH becomes empty
13969 # (actually we leave an empty line to preserve line numbers).
13970 if test "x$srcdir" = x.; then
13971 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13972 h
13973 s///
13974 s/^/:/
13975 s/[ ]*$/:/
13976 s/:\$(srcdir):/:/g
13977 s/:\${srcdir}:/:/g
13978 s/:@srcdir@:/:/g
13979 s/^:*//
13980 s/:*$//
13981 x
13982 s/\(=[ ]*\).*/\1/
13983 G
13984 s/\n//
13985 s/^[^=]*=[ ]*$//
13986 }'
13987 fi
13988
13989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13990 fi # test -n "$CONFIG_FILES"
13991
13992 # Set up the scripts for CONFIG_HEADERS section.
13993 # No need to generate them if there are no CONFIG_HEADERS.
13994 # This happens for instance with `./config.status Makefile'.
13995 if test -n "$CONFIG_HEADERS"; then
13996 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13997 BEGIN {
13998 _ACEOF
13999
14000 # Transform confdefs.h into an awk script `defines.awk', embedded as
14001 # here-document in config.status, that substitutes the proper values into
14002 # config.h.in to produce config.h.
14003
14004 # Create a delimiter string that does not exist in confdefs.h, to ease
14005 # handling of long lines.
14006 ac_delim='%!_!# '
14007 for ac_last_try in false false :; do
14008 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14009 if test -z "$ac_tt"; then
14010 break
14011 elif $ac_last_try; then
14012 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14013 else
14014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14015 fi
14016 done
14017
14018 # For the awk script, D is an array of macro values keyed by name,
14019 # likewise P contains macro parameters if any. Preserve backslash
14020 # newline sequences.
14021
14022 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14023 sed -n '
14024 s/.\{148\}/&'"$ac_delim"'/g
14025 t rset
14026 :rset
14027 s/^[ ]*#[ ]*define[ ][ ]*/ /
14028 t def
14029 d
14030 :def
14031 s/\\$//
14032 t bsnl
14033 s/["\\]/\\&/g
14034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14035 D["\1"]=" \3"/p
14036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14037 d
14038 :bsnl
14039 s/["\\]/\\&/g
14040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14041 D["\1"]=" \3\\\\\\n"\\/p
14042 t cont
14043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14044 t cont
14045 d
14046 :cont
14047 n
14048 s/.\{148\}/&'"$ac_delim"'/g
14049 t clear
14050 :clear
14051 s/\\$//
14052 t bsnlc
14053 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14054 d
14055 :bsnlc
14056 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14057 b cont
14058 ' <confdefs.h | sed '
14059 s/'"$ac_delim"'/"\\\
14060 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14061
14062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14063 for (key in D) D_is_set[key] = 1
14064 FS = ""
14065 }
14066 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14067 line = \$ 0
14068 split(line, arg, " ")
14069 if (arg[1] == "#") {
14070 defundef = arg[2]
14071 mac1 = arg[3]
14072 } else {
14073 defundef = substr(arg[1], 2)
14074 mac1 = arg[2]
14075 }
14076 split(mac1, mac2, "(") #)
14077 macro = mac2[1]
14078 prefix = substr(line, 1, index(line, defundef) - 1)
14079 if (D_is_set[macro]) {
14080 # Preserve the white space surrounding the "#".
14081 print prefix "define", macro P[macro] D[macro]
14082 next
14083 } else {
14084 # Replace #undef with comments. This is necessary, for example,
14085 # in the case of _POSIX_SOURCE, which is predefined and required
14086 # on some systems where configure will not decide to define it.
14087 if (defundef == "undef") {
14088 print "/*", prefix defundef, macro, "*/"
14089 next
14090 }
14091 }
14092 }
14093 { print }
14094 _ACAWK
14095 _ACEOF
14096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14098 fi # test -n "$CONFIG_HEADERS"
14099
14100
14101 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14102 shift
14103 for ac_tag
14104 do
14105 case $ac_tag in
14106 :[FHLC]) ac_mode=$ac_tag; continue;;
14107 esac
14108 case $ac_mode$ac_tag in
14109 :[FHL]*:*);;
14110 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14111 :[FH]-) ac_tag=-:-;;
14112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14113 esac
14114 ac_save_IFS=$IFS
14115 IFS=:
14116 set x $ac_tag
14117 IFS=$ac_save_IFS
14118 shift
14119 ac_file=$1
14120 shift
14121
14122 case $ac_mode in
14123 :L) ac_source=$1;;
14124 :[FH])
14125 ac_file_inputs=
14126 for ac_f
14127 do
14128 case $ac_f in
14129 -) ac_f="$ac_tmp/stdin";;
14130 *) # Look for the file first in the build tree, then in the source tree
14131 # (if the path is not absolute). The absolute path cannot be DOS-style,
14132 # because $ac_f cannot contain `:'.
14133 test -f "$ac_f" ||
14134 case $ac_f in
14135 [\\/$]*) false;;
14136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14137 esac ||
14138 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14139 esac
14140 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14141 as_fn_append ac_file_inputs " '$ac_f'"
14142 done
14143
14144 # Let's still pretend it is `configure' which instantiates (i.e., don't
14145 # use $as_me), people would be surprised to read:
14146 # /* config.h. Generated by config.status. */
14147 configure_input='Generated from '`
14148 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14149 `' by configure.'
14150 if test x"$ac_file" != x-; then
14151 configure_input="$ac_file. $configure_input"
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14153 $as_echo "$as_me: creating $ac_file" >&6;}
14154 fi
14155 # Neutralize special characters interpreted by sed in replacement strings.
14156 case $configure_input in #(
14157 *\&* | *\|* | *\\* )
14158 ac_sed_conf_input=`$as_echo "$configure_input" |
14159 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14160 *) ac_sed_conf_input=$configure_input;;
14161 esac
14162
14163 case $ac_tag in
14164 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14166 esac
14167 ;;
14168 esac
14169
14170 ac_dir=`$as_dirname -- "$ac_file" ||
14171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14172 X"$ac_file" : 'X\(//\)[^/]' \| \
14173 X"$ac_file" : 'X\(//\)$' \| \
14174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14175 $as_echo X"$ac_file" |
14176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14177 s//\1/
14178 q
14179 }
14180 /^X\(\/\/\)[^/].*/{
14181 s//\1/
14182 q
14183 }
14184 /^X\(\/\/\)$/{
14185 s//\1/
14186 q
14187 }
14188 /^X\(\/\).*/{
14189 s//\1/
14190 q
14191 }
14192 s/.*/./; q'`
14193 as_dir="$ac_dir"; as_fn_mkdir_p
14194 ac_builddir=.
14195
14196 case "$ac_dir" in
14197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14198 *)
14199 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14200 # A ".." for each directory in $ac_dir_suffix.
14201 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14202 case $ac_top_builddir_sub in
14203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14205 esac ;;
14206 esac
14207 ac_abs_top_builddir=$ac_pwd
14208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14209 # for backward compatibility:
14210 ac_top_builddir=$ac_top_build_prefix
14211
14212 case $srcdir in
14213 .) # We are building in place.
14214 ac_srcdir=.
14215 ac_top_srcdir=$ac_top_builddir_sub
14216 ac_abs_top_srcdir=$ac_pwd ;;
14217 [\\/]* | ?:[\\/]* ) # Absolute name.
14218 ac_srcdir=$srcdir$ac_dir_suffix;
14219 ac_top_srcdir=$srcdir
14220 ac_abs_top_srcdir=$srcdir ;;
14221 *) # Relative name.
14222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14223 ac_top_srcdir=$ac_top_build_prefix$srcdir
14224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14225 esac
14226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14227
14228
14229 case $ac_mode in
14230 :F)
14231 #
14232 # CONFIG_FILE
14233 #
14234
14235 case $INSTALL in
14236 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14237 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14238 esac
14239 ac_MKDIR_P=$MKDIR_P
14240 case $MKDIR_P in
14241 [\\/$]* | ?:[\\/]* ) ;;
14242 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14243 esac
14244 _ACEOF
14245
14246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14247 # If the template does not know about datarootdir, expand it.
14248 # FIXME: This hack should be removed a few years after 2.60.
14249 ac_datarootdir_hack=; ac_datarootdir_seen=
14250 ac_sed_dataroot='
14251 /datarootdir/ {
14252 p
14253 q
14254 }
14255 /@datadir@/p
14256 /@docdir@/p
14257 /@infodir@/p
14258 /@localedir@/p
14259 /@mandir@/p'
14260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14261 *datarootdir*) ac_datarootdir_seen=yes;;
14262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14265 _ACEOF
14266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14267 ac_datarootdir_hack='
14268 s&@datadir@&$datadir&g
14269 s&@docdir@&$docdir&g
14270 s&@infodir@&$infodir&g
14271 s&@localedir@&$localedir&g
14272 s&@mandir@&$mandir&g
14273 s&\\\${datarootdir}&$datarootdir&g' ;;
14274 esac
14275 _ACEOF
14276
14277 # Neutralize VPATH when `$srcdir' = `.'.
14278 # Shell code in configure.ac might set extrasub.
14279 # FIXME: do we really want to maintain this feature?
14280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14281 ac_sed_extra="$ac_vpsub
14282 $extrasub
14283 _ACEOF
14284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14285 :t
14286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14287 s|@configure_input@|$ac_sed_conf_input|;t t
14288 s&@top_builddir@&$ac_top_builddir_sub&;t t
14289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14290 s&@srcdir@&$ac_srcdir&;t t
14291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14292 s&@top_srcdir@&$ac_top_srcdir&;t t
14293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14294 s&@builddir@&$ac_builddir&;t t
14295 s&@abs_builddir@&$ac_abs_builddir&;t t
14296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14297 s&@INSTALL@&$ac_INSTALL&;t t
14298 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14299 $ac_datarootdir_hack
14300 "
14301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14302 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14303
14304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14305 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14307 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14309 which seems to be undefined. Please make sure it is defined" >&5
14310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14311 which seems to be undefined. Please make sure it is defined" >&2;}
14312
14313 rm -f "$ac_tmp/stdin"
14314 case $ac_file in
14315 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14316 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14317 esac \
14318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14319 ;;
14320 :H)
14321 #
14322 # CONFIG_HEADER
14323 #
14324 if test x"$ac_file" != x-; then
14325 {
14326 $as_echo "/* $configure_input */" \
14327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14328 } >"$ac_tmp/config.h" \
14329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14330 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14333 else
14334 rm -f "$ac_file"
14335 mv "$ac_tmp/config.h" "$ac_file" \
14336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14337 fi
14338 else
14339 $as_echo "/* $configure_input */" \
14340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14341 || as_fn_error $? "could not create -" "$LINENO" 5
14342 fi
14343 # Compute "$ac_file"'s index in $config_headers.
14344 _am_arg="$ac_file"
14345 _am_stamp_count=1
14346 for _am_header in $config_headers :; do
14347 case $_am_header in
14348 $_am_arg | $_am_arg:* )
14349 break ;;
14350 * )
14351 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14352 esac
14353 done
14354 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14355 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356 X"$_am_arg" : 'X\(//\)[^/]' \| \
14357 X"$_am_arg" : 'X\(//\)$' \| \
14358 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14359 $as_echo X"$_am_arg" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361 s//\1/
14362 q
14363 }
14364 /^X\(\/\/\)[^/].*/{
14365 s//\1/
14366 q
14367 }
14368 /^X\(\/\/\)$/{
14369 s//\1/
14370 q
14371 }
14372 /^X\(\/\).*/{
14373 s//\1/
14374 q
14375 }
14376 s/.*/./; q'`/stamp-h$_am_stamp_count
14377 ;;
14378
14379 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14380 $as_echo "$as_me: executing $ac_file commands" >&6;}
14381 ;;
14382 esac
14383
14384
14385 case $ac_file$ac_mode in
14386 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14387 # Older Autoconf quotes --file arguments for eval, but not when files
14388 # are listed without --file. Let's play safe and only enable the eval
14389 # if we detect the quoting.
14390 case $CONFIG_FILES in
14391 *\'*) eval set x "$CONFIG_FILES" ;;
14392 *) set x $CONFIG_FILES ;;
14393 esac
14394 shift
14395 for mf
14396 do
14397 # Strip MF so we end up with the name of the file.
14398 mf=`echo "$mf" | sed -e 's/:.*$//'`
14399 # Check whether this is an Automake generated Makefile or not.
14400 # We used to match only the files named 'Makefile.in', but
14401 # some people rename them; so instead we look at the file content.
14402 # Grep'ing the first line is not enough: some people post-process
14403 # each Makefile.in and add a new line on top of each file to say so.
14404 # Grep'ing the whole file is not good either: AIX grep has a line
14405 # limit of 2048, but all sed's we know have understand at least 4000.
14406 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14407 dirpart=`$as_dirname -- "$mf" ||
14408 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409 X"$mf" : 'X\(//\)[^/]' \| \
14410 X"$mf" : 'X\(//\)$' \| \
14411 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14412 $as_echo X"$mf" |
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14414 s//\1/
14415 q
14416 }
14417 /^X\(\/\/\)[^/].*/{
14418 s//\1/
14419 q
14420 }
14421 /^X\(\/\/\)$/{
14422 s//\1/
14423 q
14424 }
14425 /^X\(\/\).*/{
14426 s//\1/
14427 q
14428 }
14429 s/.*/./; q'`
14430 else
14431 continue
14432 fi
14433 # Extract the definition of DEPDIR, am__include, and am__quote
14434 # from the Makefile without running 'make'.
14435 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14436 test -z "$DEPDIR" && continue
14437 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14438 test -z "$am__include" && continue
14439 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14440 # Find all dependency output files, they are included files with
14441 # $(DEPDIR) in their names. We invoke sed twice because it is the
14442 # simplest approach to changing $(DEPDIR) to its actual value in the
14443 # expansion.
14444 for file in `sed -n "
14445 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14446 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14447 # Make sure the directory exists.
14448 test -f "$dirpart/$file" && continue
14449 fdir=`$as_dirname -- "$file" ||
14450 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$file" : 'X\(//\)[^/]' \| \
14452 X"$file" : 'X\(//\)$' \| \
14453 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14454 $as_echo X"$file" |
14455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456 s//\1/
14457 q
14458 }
14459 /^X\(\/\/\)[^/].*/{
14460 s//\1/
14461 q
14462 }
14463 /^X\(\/\/\)$/{
14464 s//\1/
14465 q
14466 }
14467 /^X\(\/\).*/{
14468 s//\1/
14469 q
14470 }
14471 s/.*/./; q'`
14472 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14473 # echo "creating $dirpart/$file"
14474 echo '# dummy' > "$dirpart/$file"
14475 done
14476 done
14477 }
14478 ;;
14479 "libtool":C)
14480
14481 # See if we are running on zsh, and set the options that allow our
14482 # commands through without removal of \ escapes.
14483 if test -n "${ZSH_VERSION+set}"; then
14484 setopt NO_GLOB_SUBST
14485 fi
14486
14487 cfgfile=${ofile}T
14488 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14489 $RM "$cfgfile"
14490
14491 cat <<_LT_EOF >> "$cfgfile"
14492 #! $SHELL
14493 # Generated automatically by $as_me ($PACKAGE) $VERSION
14494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14495 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14496
14497 # Provide generalized library-building support services.
14498 # Written by Gordon Matzigkeit, 1996
14499
14500 # Copyright (C) 2014 Free Software Foundation, Inc.
14501 # This is free software; see the source for copying conditions. There is NO
14502 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14503
14504 # GNU Libtool is free software; you can redistribute it and/or modify
14505 # it under the terms of the GNU General Public License as published by
14506 # the Free Software Foundation; either version 2 of of the License, or
14507 # (at your option) any later version.
14508 #
14509 # As a special exception to the GNU General Public License, if you
14510 # distribute this file as part of a program or library that is built
14511 # using GNU Libtool, you may include this file under the same
14512 # distribution terms that you use for the rest of that program.
14513 #
14514 # GNU Libtool is distributed in the hope that it will be useful, but
14515 # WITHOUT ANY WARRANTY; without even the implied warranty of
14516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14517 # GNU General Public License for more details.
14518 #
14519 # You should have received a copy of the GNU General Public License
14520 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14521
14522
14523 # The names of the tagged configurations supported by this script.
14524 available_tags=''
14525
14526 # ### BEGIN LIBTOOL CONFIG
14527
14528 # Which release of libtool.m4 was used?
14529 macro_version=$macro_version
14530 macro_revision=$macro_revision
14531
14532 # Whether or not to build shared libraries.
14533 build_libtool_libs=$enable_shared
14534
14535 # Whether or not to build static libraries.
14536 build_old_libs=$enable_static
14537
14538 # What type of objects to build.
14539 pic_mode=$pic_mode
14540
14541 # Whether or not to optimize for fast installation.
14542 fast_install=$enable_fast_install
14543
14544 # Shared archive member basename,for filename based shared library versioning on AIX.
14545 shared_archive_member_spec=$shared_archive_member_spec
14546
14547 # Shell to use when invoking shell scripts.
14548 SHELL=$lt_SHELL
14549
14550 # An echo program that protects backslashes.
14551 ECHO=$lt_ECHO
14552
14553 # The PATH separator for the build system.
14554 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14555
14556 # The host system.
14557 host_alias=$host_alias
14558 host=$host
14559 host_os=$host_os
14560
14561 # The build system.
14562 build_alias=$build_alias
14563 build=$build
14564 build_os=$build_os
14565
14566 # A sed program that does not truncate output.
14567 SED=$lt_SED
14568
14569 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14570 Xsed="\$SED -e 1s/^X//"
14571
14572 # A grep program that handles long lines.
14573 GREP=$lt_GREP
14574
14575 # An ERE matcher.
14576 EGREP=$lt_EGREP
14577
14578 # A literal string matcher.
14579 FGREP=$lt_FGREP
14580
14581 # A BSD- or MS-compatible name lister.
14582 NM=$lt_NM
14583
14584 # Whether we need soft or hard links.
14585 LN_S=$lt_LN_S
14586
14587 # What is the maximum length of a command?
14588 max_cmd_len=$max_cmd_len
14589
14590 # Object file suffix (normally "o").
14591 objext=$ac_objext
14592
14593 # Executable file suffix (normally "").
14594 exeext=$exeext
14595
14596 # whether the shell understands "unset".
14597 lt_unset=$lt_unset
14598
14599 # turn spaces into newlines.
14600 SP2NL=$lt_lt_SP2NL
14601
14602 # turn newlines into spaces.
14603 NL2SP=$lt_lt_NL2SP
14604
14605 # convert \$build file names to \$host format.
14606 to_host_file_cmd=$lt_cv_to_host_file_cmd
14607
14608 # convert \$build files to toolchain format.
14609 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14610
14611 # An object symbol dumper.
14612 OBJDUMP=$lt_OBJDUMP
14613
14614 # Method to check whether dependent libraries are shared objects.
14615 deplibs_check_method=$lt_deplibs_check_method
14616
14617 # Command to use when deplibs_check_method = "file_magic".
14618 file_magic_cmd=$lt_file_magic_cmd
14619
14620 # How to find potential files when deplibs_check_method = "file_magic".
14621 file_magic_glob=$lt_file_magic_glob
14622
14623 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14624 want_nocaseglob=$lt_want_nocaseglob
14625
14626 # DLL creation program.
14627 DLLTOOL=$lt_DLLTOOL
14628
14629 # Command to associate shared and link libraries.
14630 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14631
14632 # The archiver.
14633 AR=$lt_AR
14634
14635 # Flags to create an archive.
14636 AR_FLAGS=$lt_AR_FLAGS
14637
14638 # How to feed a file listing to the archiver.
14639 archiver_list_spec=$lt_archiver_list_spec
14640
14641 # A symbol stripping program.
14642 STRIP=$lt_STRIP
14643
14644 # Commands used to install an old-style archive.
14645 RANLIB=$lt_RANLIB
14646 old_postinstall_cmds=$lt_old_postinstall_cmds
14647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14648
14649 # Whether to use a lock for old archive extraction.
14650 lock_old_archive_extraction=$lock_old_archive_extraction
14651
14652 # A C compiler.
14653 LTCC=$lt_CC
14654
14655 # LTCC compiler flags.
14656 LTCFLAGS=$lt_CFLAGS
14657
14658 # Take the output of nm and produce a listing of raw symbols and C names.
14659 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14660
14661 # Transform the output of nm in a proper C declaration.
14662 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14663
14664 # Transform the output of nm into a list of symbols to manually relocate.
14665 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14666
14667 # Transform the output of nm in a C name address pair.
14668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14669
14670 # Transform the output of nm in a C name address pair when lib prefix is needed.
14671 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14672
14673 # The name lister interface.
14674 nm_interface=$lt_lt_cv_nm_interface
14675
14676 # Specify filename containing input files for \$NM.
14677 nm_file_list_spec=$lt_nm_file_list_spec
14678
14679 # The root where to search for dependent libraries,and where our libraries should be installed.
14680 lt_sysroot=$lt_sysroot
14681
14682 # Command to truncate a binary pipe.
14683 lt_truncate_bin=$lt_lt_cv_truncate_bin
14684
14685 # The name of the directory that contains temporary libtool files.
14686 objdir=$objdir
14687
14688 # Used to examine libraries when file_magic_cmd begins with "file".
14689 MAGIC_CMD=$MAGIC_CMD
14690
14691 # Must we lock files when doing compilation?
14692 need_locks=$lt_need_locks
14693
14694 # Manifest tool.
14695 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14696
14697 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14698 DSYMUTIL=$lt_DSYMUTIL
14699
14700 # Tool to change global to local symbols on Mac OS X.
14701 NMEDIT=$lt_NMEDIT
14702
14703 # Tool to manipulate fat objects and archives on Mac OS X.
14704 LIPO=$lt_LIPO
14705
14706 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14707 OTOOL=$lt_OTOOL
14708
14709 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14710 OTOOL64=$lt_OTOOL64
14711
14712 # Old archive suffix (normally "a").
14713 libext=$libext
14714
14715 # Shared library suffix (normally ".so").
14716 shrext_cmds=$lt_shrext_cmds
14717
14718 # The commands to extract the exported symbol list from a shared archive.
14719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14720
14721 # Variables whose values should be saved in libtool wrapper scripts and
14722 # restored at link time.
14723 variables_saved_for_relink=$lt_variables_saved_for_relink
14724
14725 # Do we need the "lib" prefix for modules?
14726 need_lib_prefix=$need_lib_prefix
14727
14728 # Do we need a version for libraries?
14729 need_version=$need_version
14730
14731 # Library versioning type.
14732 version_type=$version_type
14733
14734 # Shared library runtime path variable.
14735 runpath_var=$runpath_var
14736
14737 # Shared library path variable.
14738 shlibpath_var=$shlibpath_var
14739
14740 # Is shlibpath searched before the hard-coded library search path?
14741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14742
14743 # Format of library name prefix.
14744 libname_spec=$lt_libname_spec
14745
14746 # List of archive names. First name is the real one, the rest are links.
14747 # The last name is the one that the linker finds with -lNAME
14748 library_names_spec=$lt_library_names_spec
14749
14750 # The coded name of the library, if different from the real name.
14751 soname_spec=$lt_soname_spec
14752
14753 # Permission mode override for installation of shared libraries.
14754 install_override_mode=$lt_install_override_mode
14755
14756 # Command to use after installation of a shared archive.
14757 postinstall_cmds=$lt_postinstall_cmds
14758
14759 # Command to use after uninstallation of a shared archive.
14760 postuninstall_cmds=$lt_postuninstall_cmds
14761
14762 # Commands used to finish a libtool library installation in a directory.
14763 finish_cmds=$lt_finish_cmds
14764
14765 # As "finish_cmds", except a single script fragment to be evaled but
14766 # not shown.
14767 finish_eval=$lt_finish_eval
14768
14769 # Whether we should hardcode library paths into libraries.
14770 hardcode_into_libs=$hardcode_into_libs
14771
14772 # Compile-time system search path for libraries.
14773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14774
14775 # Run-time system search path for libraries.
14776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14777
14778 # Whether dlopen is supported.
14779 dlopen_support=$enable_dlopen
14780
14781 # Whether dlopen of programs is supported.
14782 dlopen_self=$enable_dlopen_self
14783
14784 # Whether dlopen of statically linked programs is supported.
14785 dlopen_self_static=$enable_dlopen_self_static
14786
14787 # Commands to strip libraries.
14788 old_striplib=$lt_old_striplib
14789 striplib=$lt_striplib
14790
14791
14792 # The linker used to build libraries.
14793 LD=$lt_LD
14794
14795 # How to create reloadable object files.
14796 reload_flag=$lt_reload_flag
14797 reload_cmds=$lt_reload_cmds
14798
14799 # Commands used to build an old-style archive.
14800 old_archive_cmds=$lt_old_archive_cmds
14801
14802 # A language specific compiler.
14803 CC=$lt_compiler
14804
14805 # Is the compiler the GNU compiler?
14806 with_gcc=$GCC
14807
14808 # Compiler flag to turn off builtin functions.
14809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14810
14811 # Additional compiler flags for building library objects.
14812 pic_flag=$lt_lt_prog_compiler_pic
14813
14814 # How to pass a linker flag through the compiler.
14815 wl=$lt_lt_prog_compiler_wl
14816
14817 # Compiler flag to prevent dynamic linking.
14818 link_static_flag=$lt_lt_prog_compiler_static
14819
14820 # Does compiler simultaneously support -c and -o options?
14821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14822
14823 # Whether or not to add -lc for building shared libraries.
14824 build_libtool_need_lc=$archive_cmds_need_lc
14825
14826 # Whether or not to disallow shared libs when runtime libs are static.
14827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14828
14829 # Compiler flag to allow reflexive dlopens.
14830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14831
14832 # Compiler flag to generate shared objects directly from archives.
14833 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14834
14835 # Whether the compiler copes with passing no objects directly.
14836 compiler_needs_object=$lt_compiler_needs_object
14837
14838 # Create an old-style archive from a shared archive.
14839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14840
14841 # Create a temporary old-style archive to link instead of a shared archive.
14842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14843
14844 # Commands used to build a shared archive.
14845 archive_cmds=$lt_archive_cmds
14846 archive_expsym_cmds=$lt_archive_expsym_cmds
14847
14848 # Commands used to build a loadable module if different from building
14849 # a shared archive.
14850 module_cmds=$lt_module_cmds
14851 module_expsym_cmds=$lt_module_expsym_cmds
14852
14853 # Whether we are building with GNU ld or not.
14854 with_gnu_ld=$lt_with_gnu_ld
14855
14856 # Flag that allows shared libraries with undefined symbols to be built.
14857 allow_undefined_flag=$lt_allow_undefined_flag
14858
14859 # Flag that enforces no undefined symbols.
14860 no_undefined_flag=$lt_no_undefined_flag
14861
14862 # Flag to hardcode \$libdir into a binary during linking.
14863 # This must work even if \$libdir does not exist
14864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14865
14866 # Whether we need a single "-rpath" flag with a separated argument.
14867 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14868
14869 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14870 # DIR into the resulting binary.
14871 hardcode_direct=$hardcode_direct
14872
14873 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14874 # DIR into the resulting binary and the resulting library dependency is
14875 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14876 # library is relocated.
14877 hardcode_direct_absolute=$hardcode_direct_absolute
14878
14879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14880 # into the resulting binary.
14881 hardcode_minus_L=$hardcode_minus_L
14882
14883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14884 # into the resulting binary.
14885 hardcode_shlibpath_var=$hardcode_shlibpath_var
14886
14887 # Set to "yes" if building a shared library automatically hardcodes DIR
14888 # into the library and all subsequent libraries and executables linked
14889 # against it.
14890 hardcode_automatic=$hardcode_automatic
14891
14892 # Set to yes if linker adds runtime paths of dependent libraries
14893 # to runtime path list.
14894 inherit_rpath=$inherit_rpath
14895
14896 # Whether libtool must link a program against all its dependency libraries.
14897 link_all_deplibs=$link_all_deplibs
14898
14899 # Set to "yes" if exported symbols are required.
14900 always_export_symbols=$always_export_symbols
14901
14902 # The commands to list exported symbols.
14903 export_symbols_cmds=$lt_export_symbols_cmds
14904
14905 # Symbols that should not be listed in the preloaded symbols.
14906 exclude_expsyms=$lt_exclude_expsyms
14907
14908 # Symbols that must always be exported.
14909 include_expsyms=$lt_include_expsyms
14910
14911 # Commands necessary for linking programs (against libraries) with templates.
14912 prelink_cmds=$lt_prelink_cmds
14913
14914 # Commands necessary for finishing linking programs.
14915 postlink_cmds=$lt_postlink_cmds
14916
14917 # Specify filename containing input files.
14918 file_list_spec=$lt_file_list_spec
14919
14920 # How to hardcode a shared library path into an executable.
14921 hardcode_action=$hardcode_action
14922
14923 # ### END LIBTOOL CONFIG
14924
14925 _LT_EOF
14926
14927 case $host_os in
14928 aix3*)
14929 cat <<\_LT_EOF >> "$cfgfile"
14930 # AIX sometimes has problems with the GCC collect2 program. For some
14931 # reason, if we set the COLLECT_NAMES environment variable, the problems
14932 # vanish in a puff of smoke.
14933 if test set != "${COLLECT_NAMES+set}"; then
14934 COLLECT_NAMES=
14935 export COLLECT_NAMES
14936 fi
14937 _LT_EOF
14938 ;;
14939 esac
14940
14941
14942 ltmain=$ac_aux_dir/ltmain.sh
14943
14944
14945 # We use sed instead of cat because bash on DJGPP gets confused if
14946 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14947 # text mode, it properly converts lines to CR/LF. This bash problem
14948 # is reportedly fixed, but why not run on old versions too?
14949 sed '$q' "$ltmain" >> "$cfgfile" \
14950 || (rm -f "$cfgfile"; exit 1)
14951
14952 mv -f "$cfgfile" "$ofile" ||
14953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14954 chmod +x "$ofile"
14955
14956 ;;
14957
14958 esac
14959 done # for ac_tag
14960
14961
14962 as_fn_exit 0
14963 _ACEOF
14964 ac_clean_files=$ac_clean_files_save
14965
14966 test $ac_write_fail = 0 ||
14967 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14968
14969
14970 # configure is writing to config.log, and then calls config.status.
14971 # config.status does its own redirection, appending to config.log.
14972 # Unfortunately, on DOS this fails, as config.log is still kept open
14973 # by configure, so config.status won't be able to write to it; its
14974 # output is simply discarded. So we exec the FD to /dev/null,
14975 # effectively closing config.log, so it can be properly (re)opened and
14976 # appended to by config.status. When coming back to configure, we
14977 # need to make the FD available again.
14978 if test "$no_create" != yes; then
14979 ac_cs_success=:
14980 ac_config_status_args=
14981 test "$silent" = yes &&
14982 ac_config_status_args="$ac_config_status_args --quiet"
14983 exec 5>/dev/null
14984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14985 exec 5>>config.log
14986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14987 # would make configure fail if this is the last instruction.
14988 $ac_cs_success || as_fn_exit 1
14989 fi
14990 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14992 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14993 fi
14994

Properties

Name Value
svn:executable
svn:keywords Id