ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 8559
Committed: Sun Sep 23 09:25:41 2018 UTC (7 years, 9 months ago) by michael
File size: 495962 byte(s)
Log Message:
- Add --enable-efence switch to allow easy linking with the electric fence memory debugger library

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 8550 2018-09-22 20:55:46Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='hopm'
593 PACKAGE_TARNAME='hopm'
594 PACKAGE_VERSION='TRUNK'
595 PACKAGE_STRING='hopm TRUNK'
596 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/opercmd.h"
600 ac_default_prefix=\${HOME}/hopm
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 ENABLE_SSL_FALSE
642 ENABLE_SSL_TRUE
643 LEXLIB
644 LEX_OUTPUT_ROOT
645 LEX
646 YFLAGS
647 YACC
648 CPP
649 LT_SYS_LIBRARY_PATH
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 LIBTOOL
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 MAINT
697 MAINTAINER_MODE_FALSE
698 MAINTAINER_MODE_TRUE
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_maintainer_mode
769 enable_dependency_tracking
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_aix_soname
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 enable_openssl
779 enable_assert
780 enable_warnings
781 enable_efence
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 LT_SYS_LIBRARY_PATH
792 CPP
793 YACC
794 YFLAGS'
795
796
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
818
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
854 fi
855
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1145
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information"
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 ;;
1201
1202 esac
1203 done
1204
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $? "missing argument to $ac_option"
1208 fi
1209
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1216 fi
1217
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1223 do
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1238
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1245
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1252 fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\).*/{
1292 s//\1/
1293 q
1294 }
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1299 fi
1300 else
1301 ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388 _ACEOF
1389
1390 cat <<\_ACEOF
1391
1392 Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of hopm TRUNK:";;
1406 esac
1407 cat <<\_ACEOF
1408
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-maintainer-mode
1416 enable make rules and dependencies not useful (and
1417 sometimes confusing) to the casual installer
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1428 --disable-openssl Disable LibreSSL/OpenSSL support.
1429 --enable-assert Enable assert() statements
1430 --enable-warnings Enable compiler warnings.
1431 --enable-efence Enable linking with Electric Fence 'efence' memory
1432 debugger library.
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-aix-soname=aix|svr4|both
1440 shared library versioning (aka "SONAME") variant to
1441 provide on AIX, [default=aix].
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1444 compiler's sysroot if not specified).
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 LT_SYS_LIBRARY_PATH
1455 User-defined run-time library search path.
1456 CPP C preprocessor
1457 YACC The `Yet Another Compiler Compiler' implementation to use.
1458 Defaults to the first program found out of: `bison -y', `byacc',
1459 `yacc'.
1460 YFLAGS The list of arguments that will be passed by default to $YACC.
1461 This script will default YFLAGS to the empty string to avoid a
1462 default value of `-d' given by some make applications.
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <bugs@ircd-hybrid.org>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 hopm configure TRUNK
1531 generated by GNU Autoconf 2.69
1532
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 test -x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1807
1808 It was created by hopm $as_me TRUNK, which was
1809 generated by GNU Autoconf 2.69. Invocation command line was
1810
1811 $ $0 $@
1812
1813 _ACEOF
1814 exec 5>>config.log
1815 {
1816 cat <<_ASUNAME
1817 ## --------- ##
1818 ## Platform. ##
1819 ## --------- ##
1820
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829
1830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837
1838 _ASUNAME
1839
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 $as_echo "PATH: $as_dir"
1846 done
1847 IFS=$as_save_IFS
1848
1849 } >&5
1850
1851 cat >&5 <<_ACEOF
1852
1853
1854 ## ----------- ##
1855 ## Core tests. ##
1856 ## ----------- ##
1857
1858 _ACEOF
1859
1860
1861 # Keep a trace of the command line.
1862 # Strip out --no-create and --no-recursion so they do not pile up.
1863 # Strip out --silent because we don't want to record it for future runs.
1864 # Also quote any args containing shell meta-characters.
1865 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_configure_args=
1867 ac_configure_args0=
1868 ac_configure_args1=
1869 ac_must_keep_next=false
1870 for ac_pass in 1 2
1871 do
1872 for ac_arg
1873 do
1874 case $ac_arg in
1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877 | -silent | --silent | --silen | --sile | --sil)
1878 continue ;;
1879 *\'*)
1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 esac
1882 case $ac_pass in
1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 2)
1885 as_fn_append ac_configure_args1 " '$ac_arg'"
1886 if test $ac_must_keep_next = true; then
1887 ac_must_keep_next=false # Got value, back to normal.
1888 else
1889 case $ac_arg in
1890 *=* | --config-cache | -C | -disable-* | --disable-* \
1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893 | -with-* | --with-* | -without-* | --without-* | --x)
1894 case "$ac_configure_args0 " in
1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1896 esac
1897 ;;
1898 -* ) ac_must_keep_next=true ;;
1899 esac
1900 fi
1901 as_fn_append ac_configure_args " '$ac_arg'"
1902 ;;
1903 esac
1904 done
1905 done
1906 { ac_configure_args0=; unset ac_configure_args0;}
1907 { ac_configure_args1=; unset ac_configure_args1;}
1908
1909 # When interrupted or exit'd, cleanup temporary files, and complete
1910 # config.log. We remove comments because anyway the quotes in there
1911 # would cause problems or look ugly.
1912 # WARNING: Use '\'' to represent an apostrophe within the trap.
1913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914 trap 'exit_status=$?
1915 # Save into config.log some information that might help in debugging.
1916 {
1917 echo
1918
1919 $as_echo "## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##"
1922 echo
1923 # The following way of writing the cache mishandles newlines in values,
1924 (
1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in #(
1928 *${as_nl}*)
1929 case $ac_var in #(
1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932 esac
1933 case $ac_var in #(
1934 _ | IFS | as_nl) ;; #(
1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936 *) { eval $ac_var=; unset $ac_var;} ;;
1937 esac ;;
1938 esac
1939 done
1940 (set) 2>&1 |
1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942 *${as_nl}ac_space=\ *)
1943 sed -n \
1944 "s/'\''/'\''\\\\'\'''\''/g;
1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946 ;; #(
1947 *)
1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1949 ;;
1950 esac |
1951 sort
1952 )
1953 echo
1954
1955 $as_echo "## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##"
1958 echo
1959 for ac_var in $ac_subst_vars
1960 do
1961 eval ac_val=\$$ac_var
1962 case $ac_val in
1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 esac
1965 $as_echo "$ac_var='\''$ac_val'\''"
1966 done | sort
1967 echo
1968
1969 if test -n "$ac_subst_files"; then
1970 $as_echo "## ------------------- ##
1971 ## File substitutions. ##
1972 ## ------------------- ##"
1973 echo
1974 for ac_var in $ac_subst_files
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 $as_echo "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983 fi
1984
1985 if test -s confdefs.h; then
1986 $as_echo "## ----------- ##
1987 ## confdefs.h. ##
1988 ## ----------- ##"
1989 echo
1990 cat confdefs.h
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1996 } >&5
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999 exit $exit_status
2000 ' 0
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2005
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2008
2009 $as_echo "/* confdefs.h */" > confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2035 _ACEOF
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043 # We do not want a PATH search for config.site.
2044 case $CONFIG_SITE in #((
2045 -*) ac_site_file1=./$CONFIG_SITE;;
2046 */*) ac_site_file1=$CONFIG_SITE;;
2047 *) ac_site_file1=./$CONFIG_SITE;;
2048 esac
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_file1=$prefix/share/config.site
2051 ac_site_file2=$prefix/etc/config.site
2052 else
2053 ac_site_file1=$ac_default_prefix/share/config.site
2054 ac_site_file2=$ac_default_prefix/etc/config.site
2055 fi
2056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 do
2058 test "x$ac_site_file" = xNONE && continue
2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2063 . "$ac_site_file" \
2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2068 fi
2069 done
2070
2071 if test -r "$cache_file"; then
2072 # Some versions of bash will fail to source /dev/null (special files
2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077 case $cache_file in
2078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079 *) . "./$cache_file";;
2080 esac
2081 fi
2082 else
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085 >$cache_file
2086 fi
2087
2088 # Check that the precious variables saved in the cache have kept the same
2089 # value.
2090 ac_cache_corrupted=false
2091 for ac_var in $ac_precious_vars; do
2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2093 eval ac_new_set=\$ac_env_${ac_var}_set
2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2095 eval ac_new_val=\$ac_env_${ac_var}_value
2096 case $ac_old_set,$ac_new_set in
2097 set,)
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2101 ,set)
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2104 ac_cache_corrupted=: ;;
2105 ,);;
2106 *)
2107 if test "x$ac_old_val" != "x$ac_new_val"; then
2108 # differences in whitespace do not lead to failure.
2109 ac_old_val_w=`echo x $ac_old_val`
2110 ac_new_val_w=`echo x $ac_new_val`
2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2114 ac_cache_corrupted=:
2115 else
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2118 eval $ac_var=\$ac_old_val
2119 fi
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2121 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2123 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2124 fi;;
2125 esac
2126 # Pass precious variables to config.status.
2127 if test "$ac_new_set" = set; then
2128 case $ac_new_val in
2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 *) ac_arg=$ac_var=$ac_new_val ;;
2131 esac
2132 case " $ac_configure_args " in
2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135 esac
2136 fi
2137 done
2138 if $ac_cache_corrupted; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 fi
2145 ## -------------------- ##
2146 ## Main body of script. ##
2147 ## -------------------- ##
2148
2149 ac_ext=c
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154
2155
2156 am__api_version='1.15'
2157
2158 ac_aux_dir=
2159 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2160 if test -f "$ac_dir/install-sh"; then
2161 ac_aux_dir=$ac_dir
2162 ac_install_sh="$ac_aux_dir/install-sh -c"
2163 break
2164 elif test -f "$ac_dir/install.sh"; then
2165 ac_aux_dir=$ac_dir
2166 ac_install_sh="$ac_aux_dir/install.sh -c"
2167 break
2168 elif test -f "$ac_dir/shtool"; then
2169 ac_aux_dir=$ac_dir
2170 ac_install_sh="$ac_aux_dir/shtool install -c"
2171 break
2172 fi
2173 done
2174 if test -z "$ac_aux_dir"; then
2175 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2176 fi
2177
2178 # These three variables are undocumented and unsupported,
2179 # and are intended to be withdrawn in a future Autoconf release.
2180 # They can cause serious problems if a builder's source tree is in a directory
2181 # whose full name contains unusual characters.
2182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2185
2186
2187 # Find a good install program. We prefer a C program (faster),
2188 # so one script is as good as another. But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2193 # AIX /bin/install
2194 # AmigaOS /C/install, which installs bootblocks on floppy discs
2195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2198 # OS/2's system install, which has a completely different semantic
2199 # ./install, which can be erroneously created by make from ./install.sh.
2200 # Reject install programs that cannot install multiple files.
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2202 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2203 if test -z "$INSTALL"; then
2204 if ${ac_cv_path_install+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 # Account for people who put trailing slashes in PATH elements.
2213 case $as_dir/ in #((
2214 ./ | .// | /[cC]/* | \
2215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2216 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2217 /usr/ucb/* ) ;;
2218 *)
2219 # OSF1 and SCO ODT 3.0 have their own names for install.
2220 # Don't use installbsd from OSF since it installs stuff as root
2221 # by default.
2222 for ac_prog in ginstall scoinst install; do
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2225 if test $ac_prog = install &&
2226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227 # AIX install. It has an incompatible calling convention.
2228 :
2229 elif test $ac_prog = install &&
2230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231 # program-specific install script used by HP pwplus--don't use.
2232 :
2233 else
2234 rm -rf conftest.one conftest.two conftest.dir
2235 echo one > conftest.one
2236 echo two > conftest.two
2237 mkdir conftest.dir
2238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2239 test -s conftest.one && test -s conftest.two &&
2240 test -s conftest.dir/conftest.one &&
2241 test -s conftest.dir/conftest.two
2242 then
2243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2244 break 3
2245 fi
2246 fi
2247 fi
2248 done
2249 done
2250 ;;
2251 esac
2252
2253 done
2254 IFS=$as_save_IFS
2255
2256 rm -rf conftest.one conftest.two conftest.dir
2257
2258 fi
2259 if test "${ac_cv_path_install+set}" = set; then
2260 INSTALL=$ac_cv_path_install
2261 else
2262 # As a last resort, use the slow shell script. Don't cache a
2263 # value for INSTALL within a source directory, because that will
2264 # break other packages using the cache if that directory is
2265 # removed, or if the value is a relative name.
2266 INSTALL=$ac_install_sh
2267 fi
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2270 $as_echo "$INSTALL" >&6; }
2271
2272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2273 # It thinks the first close brace ends the variable substitution.
2274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2275
2276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2277
2278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2279
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2281 $as_echo_n "checking whether build environment is sane... " >&6; }
2282 # Reject unsafe characters in $srcdir or the absolute working directory
2283 # name. Accept space and tab only in the latter.
2284 am_lf='
2285 '
2286 case `pwd` in
2287 *[\\\"\#\$\&\'\`$am_lf]*)
2288 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2289 esac
2290 case $srcdir in
2291 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2292 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2293 esac
2294
2295 # Do 'set' in a subshell so we don't clobber the current shell's
2296 # arguments. Must try -L first in case configure is actually a
2297 # symlink; some systems play weird games with the mod time of symlinks
2298 # (eg FreeBSD returns the mod time of the symlink's containing
2299 # directory).
2300 if (
2301 am_has_slept=no
2302 for am_try in 1 2; do
2303 echo "timestamp, slept: $am_has_slept" > conftest.file
2304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2305 if test "$*" = "X"; then
2306 # -L didn't work.
2307 set X `ls -t "$srcdir/configure" conftest.file`
2308 fi
2309 if test "$*" != "X $srcdir/configure conftest.file" \
2310 && test "$*" != "X conftest.file $srcdir/configure"; then
2311
2312 # If neither matched, then we have a broken ls. This can happen
2313 # if, for instance, CONFIG_SHELL is bash and it inherits a
2314 # broken ls alias from the environment. This has actually
2315 # happened. Such a system could not be considered "sane".
2316 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2317 alias in your environment" "$LINENO" 5
2318 fi
2319 if test "$2" = conftest.file || test $am_try -eq 2; then
2320 break
2321 fi
2322 # Just in case.
2323 sleep 1
2324 am_has_slept=yes
2325 done
2326 test "$2" = conftest.file
2327 )
2328 then
2329 # Ok.
2330 :
2331 else
2332 as_fn_error $? "newly created file is older than distributed files!
2333 Check your system clock" "$LINENO" 5
2334 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2336 $as_echo "yes" >&6; }
2337 # If we didn't sleep, we still need to ensure time stamps of config.status and
2338 # generated files are strictly newer.
2339 am_sleep_pid=
2340 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2341 ( sleep 1 ) &
2342 am_sleep_pid=$!
2343 fi
2344
2345 rm -f conftest.file
2346
2347 test "$program_prefix" != NONE &&
2348 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.
2353 # By default was `s,x,x', remove it if useless.
2354 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2355 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356
2357 # Expand $ac_aux_dir to an absolute path.
2358 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2359
2360 if test x"${MISSING+set}" != xset; then
2361 case $am_aux_dir in
2362 *\ * | *\ *)
2363 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2364 *)
2365 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2366 esac
2367 fi
2368 # Use eval to expand $SHELL
2369 if eval "$MISSING --is-lightweight"; then
2370 am_missing_run="$MISSING "
2371 else
2372 am_missing_run=
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2374 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2375 fi
2376
2377 if test x"${install_sh+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2381 *)
2382 install_sh="\${SHELL} $am_aux_dir/install-sh"
2383 esac
2384 fi
2385
2386 # Installed binaries are usually stripped using 'strip' when the user
2387 # run "make install-strip". However 'strip' might not be the right
2388 # tool to use in cross-compilation environments, therefore Automake
2389 # will honor the 'STRIP' environment variable to overrule this program.
2390 if test "$cross_compiling" != no; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}strip; ac_word=$2
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if ${ac_cv_prog_STRIP+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test -n "$STRIP"; then
2400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 STRIP=$ac_cv_prog_STRIP
2420 if test -n "$STRIP"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2422 $as_echo "$STRIP" >&6; }
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 $as_echo "no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_STRIP"; then
2431 ac_ct_STRIP=$STRIP
2432 # Extract the first word of "strip", so it can be a program name with args.
2433 set dummy strip; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$ac_ct_STRIP"; then
2440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_ac_ct_STRIP="strip"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2460 if test -n "$ac_ct_STRIP"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2462 $as_echo "$ac_ct_STRIP" >&6; }
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
2468 if test "x$ac_ct_STRIP" = x; then
2469 STRIP=":"
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477 STRIP=$ac_ct_STRIP
2478 fi
2479 else
2480 STRIP="$ac_cv_prog_STRIP"
2481 fi
2482
2483 fi
2484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2487 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488 if test -z "$MKDIR_P"; then
2489 if ${ac_cv_path_mkdir+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_prog in mkdir gmkdir; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2500 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501 'mkdir (GNU coreutils) '* | \
2502 'mkdir (coreutils) '* | \
2503 'mkdir (fileutils) '4.1*)
2504 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2505 break 3;;
2506 esac
2507 done
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513
2514 test -d ./--version && rmdir ./--version
2515 if test "${ac_cv_path_mkdir+set}" = set; then
2516 MKDIR_P="$ac_cv_path_mkdir -p"
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for MKDIR_P within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 MKDIR_P="$ac_install_sh -d"
2523 fi
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2526 $as_echo "$MKDIR_P" >&6; }
2527
2528 for ac_prog in gawk mawk nawk awk
2529 do
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_AWK+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$AWK"; then
2538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_AWK="$ac_prog"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 AWK=$ac_cv_prog_AWK
2558 if test -n "$AWK"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2560 $as_echo "$AWK" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 test -n "$AWK" && break
2568 done
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2571 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2572 set x ${MAKE-make}
2573 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2574 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 cat >conftest.make <<\_ACEOF
2578 SHELL = /bin/sh
2579 all:
2580 @echo '@@@%%%=$(MAKE)=@@@%%%'
2581 _ACEOF
2582 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2583 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2584 *@@@%%%=?*=@@@%%%*)
2585 eval ac_cv_prog_make_${ac_make}_set=yes;;
2586 *)
2587 eval ac_cv_prog_make_${ac_make}_set=no;;
2588 esac
2589 rm -f conftest.make
2590 fi
2591 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 SET_MAKE=
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 SET_MAKE="MAKE=${MAKE-make}"
2599 fi
2600
2601 rm -rf .tst 2>/dev/null
2602 mkdir .tst 2>/dev/null
2603 if test -d .tst; then
2604 am__leading_dot=.
2605 else
2606 am__leading_dot=_
2607 fi
2608 rmdir .tst 2>/dev/null
2609
2610 # Check whether --enable-silent-rules was given.
2611 if test "${enable_silent_rules+set}" = set; then :
2612 enableval=$enable_silent_rules;
2613 fi
2614
2615 case $enable_silent_rules in # (((
2616 yes) AM_DEFAULT_VERBOSITY=0;;
2617 no) AM_DEFAULT_VERBOSITY=1;;
2618 *) AM_DEFAULT_VERBOSITY=1;;
2619 esac
2620 am_make=${MAKE-make}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2622 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2623 if ${am_cv_make_support_nested_variables+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if $as_echo 'TRUE=$(BAR$(V))
2627 BAR0=false
2628 BAR1=true
2629 V=1
2630 am__doit:
2631 @$(TRUE)
2632 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2633 am_cv_make_support_nested_variables=yes
2634 else
2635 am_cv_make_support_nested_variables=no
2636 fi
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2639 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2640 if test $am_cv_make_support_nested_variables = yes; then
2641 AM_V='$(V)'
2642 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2643 else
2644 AM_V=$AM_DEFAULT_VERBOSITY
2645 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2646 fi
2647 AM_BACKSLASH='\'
2648
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656 fi
2657 fi
2658
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2663 else
2664 CYGPATH_W=echo
2665 fi
2666 fi
2667
2668
2669 # Define the identity of the package.
2670 PACKAGE='hopm'
2671 VERSION='TRUNK'
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2676 _ACEOF
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2681 _ACEOF
2682
2683 # Some tools Automake needs.
2684
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699 # For better backward compatibility. To be removed once Automake 1.9.x
2700 # dies out for good. For more background, see:
2701 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2702 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2703 mkdir_p='$(MKDIR_P)'
2704
2705 # We need awk for the "check" target (and possibly the TAP driver). The
2706 # system "awk" is bad on some platforms.
2707 # Always define AMTAR for backward compatibility. Yes, it's still used
2708 # in the wild :-( We should find a proper way to deprecate it ...
2709 AMTAR='$${TAR-tar}'
2710
2711
2712 # We'll loop over all known methods to create a tar archive until one works.
2713 _am_tools='gnutar pax cpio none'
2714
2715 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2716
2717
2718
2719
2720
2721
2722 # POSIX will say in a future version that running "rm -f" with no argument
2723 # is OK; and we want to be able to make that assumption in our Makefile
2724 # recipes. So use an aggressive probe to check that the usage we want is
2725 # actually supported "in the wild" to an acceptable degree.
2726 # See automake bug#10828.
2727 # To make any issue more visible, cause the running configure to be aborted
2728 # by default if the 'rm' program in use doesn't match our expectations; the
2729 # user can still override this though.
2730 if rm -f && rm -fr && rm -rf; then : OK; else
2731 cat >&2 <<'END'
2732 Oops!
2733
2734 Your 'rm' program seems unable to run without file operands specified
2735 on the command line, even when the '-f' option is present. This is contrary
2736 to the behaviour of most rm programs out there, and not conforming with
2737 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2738
2739 Please tell bug-automake@gnu.org about your system, including the value
2740 of your $PATH and any error possibly output before this message. This
2741 can help us improve future automake versions.
2742
2743 END
2744 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2745 echo 'Configuration will proceed anyway, since you have set the' >&2
2746 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2747 echo >&2
2748 else
2749 cat >&2 <<'END'
2750 Aborting the configuration process, to ensure you take notice of the issue.
2751
2752 You can download and install GNU coreutils to get an 'rm' implementation
2753 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2754
2755 If you want to complete the configuration process using your problematic
2756 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2757 to "yes", and re-run configure.
2758
2759 END
2760 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2761 fi
2762 fi
2763
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2766 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2767 # Check whether --enable-maintainer-mode was given.
2768 if test "${enable_maintainer_mode+set}" = set; then :
2769 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2770 else
2771 USE_MAINTAINER_MODE=no
2772 fi
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2775 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2776 if test $USE_MAINTAINER_MODE = yes; then
2777 MAINTAINER_MODE_TRUE=
2778 MAINTAINER_MODE_FALSE='#'
2779 else
2780 MAINTAINER_MODE_TRUE='#'
2781 MAINTAINER_MODE_FALSE=
2782 fi
2783
2784 MAINT=$MAINTAINER_MODE_TRUE
2785
2786
2787
2788 ac_config_headers="$ac_config_headers src/setup.h"
2789
2790
2791
2792
2793 DEPDIR="${am__leading_dot}deps"
2794
2795 ac_config_commands="$ac_config_commands depfiles"
2796
2797
2798 am_make=${MAKE-make}
2799 cat > confinc << 'END'
2800 am__doit:
2801 @echo this is the am__doit target
2802 .PHONY: am__doit
2803 END
2804 # If we don't find an include directive, just comment out the code.
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2806 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2807 am__include="#"
2808 am__quote=
2809 _am_result=none
2810 # First try GNU make style include.
2811 echo "include confinc" > confmf
2812 # Ignore all kinds of additional output from 'make'.
2813 case `$am_make -s -f confmf 2> /dev/null` in #(
2814 *the\ am__doit\ target*)
2815 am__include=include
2816 am__quote=
2817 _am_result=GNU
2818 ;;
2819 esac
2820 # Now try BSD make style include.
2821 if test "$am__include" = "#"; then
2822 echo '.include "confinc"' > confmf
2823 case `$am_make -s -f confmf 2> /dev/null` in #(
2824 *the\ am__doit\ target*)
2825 am__include=.include
2826 am__quote="\""
2827 _am_result=BSD
2828 ;;
2829 esac
2830 fi
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2834 $as_echo "$_am_result" >&6; }
2835 rm -f confinc confmf
2836
2837 # Check whether --enable-dependency-tracking was given.
2838 if test "${enable_dependency_tracking+set}" = set; then :
2839 enableval=$enable_dependency_tracking;
2840 fi
2841
2842 if test "x$enable_dependency_tracking" != xno; then
2843 am_depcomp="$ac_aux_dir/depcomp"
2844 AMDEPBACKSLASH='\'
2845 am__nodep='_no'
2846 fi
2847 if test "x$enable_dependency_tracking" != xno; then
2848 AMDEP_TRUE=
2849 AMDEP_FALSE='#'
2850 else
2851 AMDEP_TRUE='#'
2852 AMDEP_FALSE=
2853 fi
2854
2855
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_CC"; then
2901 ac_ct_CC=$CC
2902 # Extract the first word of "gcc", so it can be a program name with args.
2903 set dummy gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_CC"; then
2910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_ac_ct_CC="gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930 if test -n "$ac_ct_CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2932 $as_echo "$ac_ct_CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938 if test "x$ac_ct_CC" = x; then
2939 CC=""
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 CC=$ac_ct_CC
2948 fi
2949 else
2950 CC="$ac_cv_prog_CC"
2951 fi
2952
2953 if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}cc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_CC+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_CC="${ac_tool_prefix}cc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 fi
2994 if test -z "$CC"; then
2995 # Extract the first word of "cc", so it can be a program name with args.
2996 set dummy cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 ac_prog_rejected=no
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014 ac_prog_rejected=yes
3015 continue
3016 fi
3017 ac_cv_prog_CC="cc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 if test $ac_prog_rejected = yes; then
3026 # We found a bogon in the path, so make sure we never use it.
3027 set dummy $ac_cv_prog_CC
3028 shift
3029 if test $# != 0; then
3030 # We chose a different compiler from the bogus one.
3031 # However, it has the same basename, so the bogon will be chosen
3032 # first if we set CC to just the basename; use the full file name.
3033 shift
3034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3035 fi
3036 fi
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$CC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 for ac_prog in cl.exe
3053 do
3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 test -n "$CC" && break
3092 done
3093 fi
3094 if test -z "$CC"; then
3095 ac_ct_CC=$CC
3096 for ac_prog in cl.exe
3097 do
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$ac_ct_CC"; then
3106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_CC="$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3126 if test -n "$ac_ct_CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3128 $as_echo "$ac_ct_CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 test -n "$ac_ct_CC" && break
3136 done
3137
3138 if test "x$ac_ct_CC" = x; then
3139 CC=""
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 CC=$ac_ct_CC
3148 fi
3149 fi
3150
3151 fi
3152
3153
3154 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "no acceptable C compiler found in \$PATH
3157 See \`config.log' for more details" "$LINENO" 5; }
3158
3159 # Provide some information about the compiler.
3160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3161 set X $ac_compile
3162 ac_compiler=$2
3163 for ac_option in --version -v -V -qversion; do
3164 { { ac_try="$ac_compiler $ac_option >&5"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3172 ac_status=$?
3173 if test -s conftest.err; then
3174 sed '10a\
3175 ... rest of stderr output deleted ...
3176 10q' conftest.err >conftest.er1
3177 cat conftest.er1 >&5
3178 fi
3179 rm -f conftest.er1 conftest.err
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }
3182 done
3183
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 ac_clean_files_save=$ac_clean_files
3196 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3197 # Try to create an executable without -o first, disregard a.out.
3198 # It will help us diagnose broken compilers, and finding out an intuition
3199 # of exeext.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3201 $as_echo_n "checking whether the C compiler works... " >&6; }
3202 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3203
3204 # The possible output files:
3205 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3206
3207 ac_rmfiles=
3208 for ac_file in $ac_files
3209 do
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3213 esac
3214 done
3215 rm -f $ac_rmfiles
3216
3217 if { { ac_try="$ac_link_default"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link_default") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3230 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3231 # so that the user can short-circuit this test for compilers unknown to
3232 # Autoconf.
3233 for ac_file in $ac_files ''
3234 do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3238 ;;
3239 [ab].out )
3240 # We found the default executable, but exeext='' is most
3241 # certainly right.
3242 break;;
3243 *.* )
3244 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245 then :; else
3246 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 fi
3248 # We set ac_cv_exeext here because the later test for it is not
3249 # safe: cross compilers may not add the suffix if given an `-o'
3250 # argument, so we may need to know it at that point already.
3251 # Even if this section looks crufty: it has the advantage of
3252 # actually working.
3253 break;;
3254 * )
3255 break;;
3256 esac
3257 done
3258 test "$ac_cv_exeext" = no && ac_cv_exeext=
3259
3260 else
3261 ac_file=''
3262 fi
3263 if test -z "$ac_file"; then :
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error 77 "C compiler cannot create executables
3272 See \`config.log' for more details" "$LINENO" 5; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3278 $as_echo_n "checking for C compiler default output file name... " >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3280 $as_echo "$ac_file" >&6; }
3281 ac_exeext=$ac_cv_exeext
3282
3283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3286 $as_echo_n "checking for suffix of executables... " >&6; }
3287 if { { ac_try="$ac_link"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3300 # work properly (i.e., refer to `conftest.exe'), while it won't with
3301 # `rm'.
3302 for ac_file in conftest.exe conftest conftest.*; do
3303 test -f "$ac_file" || continue
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 break;;
3308 * ) break;;
3309 esac
3310 done
3311 else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details" "$LINENO" 5; }
3316 fi
3317 rm -f conftest conftest$ac_cv_exeext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3319 $as_echo "$ac_cv_exeext" >&6; }
3320
3321 rm -f conftest.$ac_ext
3322 EXEEXT=$ac_cv_exeext
3323 ac_exeext=$EXEEXT
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326 #include <stdio.h>
3327 int
3328 main ()
3329 {
3330 FILE *f = fopen ("conftest.out", "w");
3331 return ferror (f) || fclose (f) != 0;
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 ac_clean_files="$ac_clean_files conftest.out"
3338 # Check that the compiler produces executables we can run. If not, either
3339 # the compiler is broken, or we cross compile.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3341 $as_echo_n "checking whether we are cross compiling... " >&6; }
3342 if test "$cross_compiling" != yes; then
3343 { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }
3354 if { ac_try='./conftest$ac_cv_exeext'
3355 { { case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_try") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }; }; then
3365 cross_compiling=no
3366 else
3367 if test "$cross_compiling" = maybe; then
3368 cross_compiling=yes
3369 else
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot run C compiled programs.
3373 If you meant to cross compile, use \`--host'.
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 fi
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3379 $as_echo "$cross_compiling" >&6; }
3380
3381 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3384 $as_echo_n "checking for suffix of object files... " >&6; }
3385 if ${ac_cv_objext+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.o conftest.obj
3400 if { { ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_compile") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 for ac_file in conftest.o conftest.obj conftest.*; do
3412 test -f "$ac_file" || continue;
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3416 break;;
3417 esac
3418 done
3419 else
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of object files: cannot compile
3426 See \`config.log' for more details" "$LINENO" 5; }
3427 fi
3428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3431 $as_echo "$ac_cv_objext" >&6; }
3432 OBJEXT=$ac_cv_objext
3433 ac_objext=$OBJEXT
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3435 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3436 if ${ac_cv_c_compiler_gnu+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445 #ifndef __GNUC__
3446 choke me
3447 #endif
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_compiler_gnu=yes
3455 else
3456 ac_compiler_gnu=no
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3460
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3463 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3464 if test $ac_compiler_gnu = yes; then
3465 GCC=yes
3466 else
3467 GCC=
3468 fi
3469 ac_test_CFLAGS=${CFLAGS+set}
3470 ac_save_CFLAGS=$CFLAGS
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3472 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3473 if ${ac_cv_prog_cc_g+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_save_c_werror_flag=$ac_c_werror_flag
3477 ac_c_werror_flag=yes
3478 ac_cv_prog_cc_g=no
3479 CFLAGS="-g"
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_cv_prog_cc_g=yes
3493 else
3494 CFLAGS=""
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507
3508 else
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3510 CFLAGS="-g"
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_cv_prog_cc_g=yes
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3533 $as_echo "$ac_cv_prog_cc_g" >&6; }
3534 if test "$ac_test_CFLAGS" = set; then
3535 CFLAGS=$ac_save_CFLAGS
3536 elif test $ac_cv_prog_cc_g = yes; then
3537 if test "$GCC" = yes; then
3538 CFLAGS="-g -O2"
3539 else
3540 CFLAGS="-g"
3541 fi
3542 else
3543 if test "$GCC" = yes; then
3544 CFLAGS="-O2"
3545 else
3546 CFLAGS=
3547 fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3550 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3551 if ${ac_cv_prog_cc_c89+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 ac_cv_prog_cc_c89=no
3555 ac_save_CC=$CC
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <stdarg.h>
3559 #include <stdio.h>
3560 struct stat;
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3565 char **p;
3566 int i;
3567 {
3568 return p[i];
3569 }
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3571 {
3572 char *s;
3573 va_list v;
3574 va_start (v,p);
3575 s = g (p, va_arg (v,int));
3576 va_end (v);
3577 return s;
3578 }
3579
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3581 function prototypes and stuff, but not '\xHH' hex character constants.
3582 These don't provoke an error unfortunately, instead are silently treated
3583 as 'x'. The following induces an error, until -std is added to get
3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3585 array size at least. It's necessary to write '\x00'==0 to get something
3586 that's true only with -std. */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3588
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590 inside strings and character constants. */
3591 #define FOO(x) 'x'
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3593
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598 int argc;
3599 char **argv;
3600 int
3601 main ()
3602 {
3603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3610 do
3611 CC="$ac_save_CC $ac_arg"
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_c89=$ac_arg
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext
3616 test "x$ac_cv_prog_cc_c89" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC
3620
3621 fi
3622 # AC_CACHE_VAL
3623 case "x$ac_cv_prog_cc_c89" in
3624 x)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626 $as_echo "none needed" >&6; } ;;
3627 xno)
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629 $as_echo "unsupported" >&6; } ;;
3630 *)
3631 CC="$CC $ac_cv_prog_cc_c89"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3633 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3634 esac
3635 if test "x$ac_cv_prog_cc_c89" != xno; then :
3636
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3651 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3652 if ${am_cv_prog_cc_c_o+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657
3658 int
3659 main ()
3660 {
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 # Make sure it works both with $CC and with simple cc.
3667 # Following AC_PROG_CC_C_O, we do the test twice because some
3668 # compilers refuse to overwrite an existing .o file with -o,
3669 # though they will create one.
3670 am_cv_prog_cc_c_o=yes
3671 for am_i in 1 2; do
3672 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3673 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } \
3677 && test -f conftest2.$ac_objext; then
3678 : OK
3679 else
3680 am_cv_prog_cc_c_o=no
3681 break
3682 fi
3683 done
3684 rm -f core conftest*
3685 unset am_i
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3688 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3689 if test "$am_cv_prog_cc_c_o" != yes; then
3690 # Losing compiler, so override with the script.
3691 # FIXME: It is wrong to rewrite CC.
3692 # But if we don't then we get into trouble of one sort or another.
3693 # A longer-term fix would be to have automake use am__CC in this case,
3694 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3695 CC="$am_aux_dir/compile $CC"
3696 fi
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
3703
3704 depcc="$CC" am_compiler_list=
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707 $as_echo_n "checking dependency style of $depcc... " >&6; }
3708 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712 # We make a subdir and do the tests there. Otherwise we can end up
3713 # making bogus files that we don't know about and never remove. For
3714 # instance it was reported that on HP-UX the gcc test will end up
3715 # making a dummy file named 'D' -- because '-MD' means "put the output
3716 # in D".
3717 rm -rf conftest.dir
3718 mkdir conftest.dir
3719 # Copy depcomp to subdir because otherwise we won't find it if we're
3720 # using a relative directory.
3721 cp "$am_depcomp" conftest.dir
3722 cd conftest.dir
3723 # We will build objects and dependencies in a subdirectory because
3724 # it helps to detect inapplicable dependency modes. For instance
3725 # both Tru64's cc and ICC support -MD to output dependencies as a
3726 # side effect of compilation, but ICC will put the dependencies in
3727 # the current directory while Tru64 will put them in the object
3728 # directory.
3729 mkdir sub
3730
3731 am_cv_CC_dependencies_compiler_type=none
3732 if test "$am_compiler_list" = ""; then
3733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3734 fi
3735 am__universal=false
3736 case " $depcc " in #(
3737 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3738 esac
3739
3740 for depmode in $am_compiler_list; do
3741 # Setup a source with many dependencies, because some compilers
3742 # like to wrap large dependency lists on column 80 (with \), and
3743 # we should not choose a depcomp mode which is confused by this.
3744 #
3745 # We need to recreate these files for each test, as the compiler may
3746 # overwrite some of them when testing with obscure command lines.
3747 # This happens at least with the AIX C compiler.
3748 : > sub/conftest.c
3749 for i in 1 2 3 4 5 6; do
3750 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3751 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3752 # Solaris 10 /bin/sh.
3753 echo '/* dummy */' > sub/conftst$i.h
3754 done
3755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
3757 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3758 # mode. It turns out that the SunPro C++ compiler does not properly
3759 # handle '-M -o', and we need to detect this. Also, some Intel
3760 # versions had trouble with output in subdirs.
3761 am__obj=sub/conftest.${OBJEXT-o}
3762 am__minus_obj="-o $am__obj"
3763 case $depmode in
3764 gcc)
3765 # This depmode causes a compiler race in universal mode.
3766 test "$am__universal" = false || continue
3767 ;;
3768 nosideeffect)
3769 # After this tag, mechanisms are not by side-effect, so they'll
3770 # only be used when explicitly requested.
3771 if test "x$enable_dependency_tracking" = xyes; then
3772 continue
3773 else
3774 break
3775 fi
3776 ;;
3777 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3778 # This compiler won't grok '-c -o', but also, the minuso test has
3779 # not run yet. These depmodes are late enough in the game, and
3780 # so weak that their functioning should not be impacted.
3781 am__obj=conftest.${OBJEXT-o}
3782 am__minus_obj=
3783 ;;
3784 none) break ;;
3785 esac
3786 if depmode=$depmode \
3787 source=sub/conftest.c object=$am__obj \
3788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3789 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3790 >/dev/null 2>conftest.err &&
3791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3793 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3795 # icc doesn't choke on unknown options, it will just issue warnings
3796 # or remarks (even with -Werror). So we grep stderr for any message
3797 # that says an option was ignored or not supported.
3798 # When given -MP, icc 7.0 and 7.1 complain thusly:
3799 # icc: Command line warning: ignoring option '-M'; no argument required
3800 # The diagnosis changed in icc 8.0:
3801 # icc: Command line remark: option '-MP' not supported
3802 if (grep 'ignoring option' conftest.err ||
3803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3804 am_cv_CC_dependencies_compiler_type=$depmode
3805 break
3806 fi
3807 fi
3808 done
3809
3810 cd ..
3811 rm -rf conftest.dir
3812 else
3813 am_cv_CC_dependencies_compiler_type=none
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3818 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3819 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3820
3821 if
3822 test "x$enable_dependency_tracking" != xno \
3823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824 am__fastdepCC_TRUE=
3825 am__fastdepCC_FALSE='#'
3826 else
3827 am__fastdepCC_TRUE='#'
3828 am__fastdepCC_FALSE=
3829 fi
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3834 if ${ac_cv_prog_cc_c99+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c99=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdbool.h>
3843 #include <stdlib.h>
3844 #include <wchar.h>
3845 #include <stdio.h>
3846
3847 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3848 #define debug(...) fprintf (stderr, __VA_ARGS__)
3849 #define showlist(...) puts (#__VA_ARGS__)
3850 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3851 static void
3852 test_varargs_macros (void)
3853 {
3854 int x = 1234;
3855 int y = 5678;
3856 debug ("Flag");
3857 debug ("X = %d\n", x);
3858 showlist (The first, second, and third items.);
3859 report (x>y, "x is %d but y is %d", x, y);
3860 }
3861
3862 // Check long long types.
3863 #define BIG64 18446744073709551615ull
3864 #define BIG32 4294967295ul
3865 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3866 #if !BIG_OK
3867 your preprocessor is broken;
3868 #endif
3869 #if BIG_OK
3870 #else
3871 your preprocessor is broken;
3872 #endif
3873 static long long int bignum = -9223372036854775807LL;
3874 static unsigned long long int ubignum = BIG64;
3875
3876 struct incomplete_array
3877 {
3878 int datasize;
3879 double data[];
3880 };
3881
3882 struct named_init {
3883 int number;
3884 const wchar_t *name;
3885 double average;
3886 };
3887
3888 typedef const char *ccp;
3889
3890 static inline int
3891 test_restrict (ccp restrict text)
3892 {
3893 // See if C++-style comments work.
3894 // Iterate through items via the restricted pointer.
3895 // Also check for declarations in for loops.
3896 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3897 continue;
3898 return 0;
3899 }
3900
3901 // Check varargs and va_copy.
3902 static void
3903 test_varargs (const char *format, ...)
3904 {
3905 va_list args;
3906 va_start (args, format);
3907 va_list args_copy;
3908 va_copy (args_copy, args);
3909
3910 const char *str;
3911 int number;
3912 float fnumber;
3913
3914 while (*format)
3915 {
3916 switch (*format++)
3917 {
3918 case 's': // string
3919 str = va_arg (args_copy, const char *);
3920 break;
3921 case 'd': // int
3922 number = va_arg (args_copy, int);
3923 break;
3924 case 'f': // float
3925 fnumber = va_arg (args_copy, double);
3926 break;
3927 default:
3928 break;
3929 }
3930 }
3931 va_end (args_copy);
3932 va_end (args);
3933 }
3934
3935 int
3936 main ()
3937 {
3938
3939 // Check bool.
3940 _Bool success = false;
3941
3942 // Check restrict.
3943 if (test_restrict ("String literal") == 0)
3944 success = true;
3945 char *restrict newvar = "Another string";
3946
3947 // Check varargs.
3948 test_varargs ("s, d' f .", "string", 65, 34.234);
3949 test_varargs_macros ();
3950
3951 // Check flexible array members.
3952 struct incomplete_array *ia =
3953 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3954 ia->datasize = 10;
3955 for (int i = 0; i < ia->datasize; ++i)
3956 ia->data[i] = i * 1.234;
3957
3958 // Check named initializers.
3959 struct named_init ni = {
3960 .number = 34,
3961 .name = L"Test wide string",
3962 .average = 543.34343,
3963 };
3964
3965 ni.number = 58;
3966
3967 int dynamic_array[ni.number];
3968 dynamic_array[ni.number - 1] = 543;
3969
3970 // work around unused variable warnings
3971 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3972 || dynamic_array[ni.number - 1] != 543);
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3979 do
3980 CC="$ac_save_CC $ac_arg"
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_cv_prog_cc_c99=$ac_arg
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext
3985 test "x$ac_cv_prog_cc_c99" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3989
3990 fi
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c99" in
3993 x)
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996 xno)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
3999 *)
4000 CC="$CC $ac_cv_prog_cc_c99"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4002 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4003 esac
4004 if test "x$ac_cv_prog_cc_c99" != xno; then :
4005
4006 fi
4007
4008
4009 if test "$ac_cv_prog_cc_c99" = "no"; then :
4010 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4011 fi
4012 case `pwd` in
4013 *\ * | *\ *)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4015 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4016 esac
4017
4018
4019
4020 macro_version='2.4.6'
4021 macro_revision='2.4.6'
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035 ltmain=$ac_aux_dir/ltmain.sh
4036
4037 # Make sure we can run config.sub.
4038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4039 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4042 $as_echo_n "checking build system type... " >&6; }
4043 if ${ac_cv_build+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_build_alias=$build_alias
4047 test "x$ac_build_alias" = x &&
4048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4049 test "x$ac_build_alias" = x &&
4050 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4052 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4053
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4056 $as_echo "$ac_cv_build" >&6; }
4057 case $ac_cv_build in
4058 *-*-*) ;;
4059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4060 esac
4061 build=$ac_cv_build
4062 ac_save_IFS=$IFS; IFS='-'
4063 set x $ac_cv_build
4064 shift
4065 build_cpu=$1
4066 build_vendor=$2
4067 shift; shift
4068 # Remember, the first character of IFS is used to create $*,
4069 # except with old shells:
4070 build_os=$*
4071 IFS=$ac_save_IFS
4072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4076 $as_echo_n "checking host system type... " >&6; }
4077 if ${ac_cv_host+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test "x$host_alias" = x; then
4081 ac_cv_host=$ac_cv_build
4082 else
4083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4084 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4085 fi
4086
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4089 $as_echo "$ac_cv_host" >&6; }
4090 case $ac_cv_host in
4091 *-*-*) ;;
4092 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4093 esac
4094 host=$ac_cv_host
4095 ac_save_IFS=$IFS; IFS='-'
4096 set x $ac_cv_host
4097 shift
4098 host_cpu=$1
4099 host_vendor=$2
4100 shift; shift
4101 # Remember, the first character of IFS is used to create $*,
4102 # except with old shells:
4103 host_os=$*
4104 IFS=$ac_save_IFS
4105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4106
4107
4108 # Backslashify metacharacters that are still active within
4109 # double-quoted strings.
4110 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4111
4112 # Same as above, but do not quote variable references.
4113 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4114
4115 # Sed substitution to delay expansion of an escaped shell variable in a
4116 # double_quote_subst'ed string.
4117 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4118
4119 # Sed substitution to delay expansion of an escaped single quote.
4120 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4121
4122 # Sed substitution to avoid accidental globbing in evaled expressions
4123 no_glob_subst='s/\*/\\\*/g'
4124
4125 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4126 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4127 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4130 $as_echo_n "checking how to print strings... " >&6; }
4131 # Test print first, because it will be a builtin if present.
4132 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4133 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4134 ECHO='print -r --'
4135 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4136 ECHO='printf %s\n'
4137 else
4138 # Use this function as a fallback that always works.
4139 func_fallback_echo ()
4140 {
4141 eval 'cat <<_LTECHO_EOF
4142 $1
4143 _LTECHO_EOF'
4144 }
4145 ECHO='func_fallback_echo'
4146 fi
4147
4148 # func_echo_all arg...
4149 # Invoke $ECHO with all args, space-separated.
4150 func_echo_all ()
4151 {
4152 $ECHO ""
4153 }
4154
4155 case $ECHO in
4156 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4157 $as_echo "printf" >&6; } ;;
4158 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4159 $as_echo "print -r" >&6; } ;;
4160 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4161 $as_echo "cat" >&6; } ;;
4162 esac
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4178 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4179 if ${ac_cv_path_SED+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4183 for ac_i in 1 2 3 4 5 6 7; do
4184 ac_script="$ac_script$as_nl$ac_script"
4185 done
4186 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4187 { ac_script=; unset ac_script;}
4188 if test -z "$SED"; then
4189 ac_path_SED_found=false
4190 # Loop through the user's path and test for each of PROGNAME-LIST
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_prog in sed gsed; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4199 as_fn_executable_p "$ac_path_SED" || continue
4200 # Check for GNU ac_path_SED and select it if it is found.
4201 # Check for GNU $ac_path_SED
4202 case `"$ac_path_SED" --version 2>&1` in
4203 *GNU*)
4204 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4205 *)
4206 ac_count=0
4207 $as_echo_n 0123456789 >"conftest.in"
4208 while :
4209 do
4210 cat "conftest.in" "conftest.in" >"conftest.tmp"
4211 mv "conftest.tmp" "conftest.in"
4212 cp "conftest.in" "conftest.nl"
4213 $as_echo '' >> "conftest.nl"
4214 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4216 as_fn_arith $ac_count + 1 && ac_count=$as_val
4217 if test $ac_count -gt ${ac_path_SED_max-0}; then
4218 # Best one so far, save it but keep looking for a better one
4219 ac_cv_path_SED="$ac_path_SED"
4220 ac_path_SED_max=$ac_count
4221 fi
4222 # 10*(2^10) chars as input seems more than enough
4223 test $ac_count -gt 10 && break
4224 done
4225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4226 esac
4227
4228 $ac_path_SED_found && break 3
4229 done
4230 done
4231 done
4232 IFS=$as_save_IFS
4233 if test -z "$ac_cv_path_SED"; then
4234 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4235 fi
4236 else
4237 ac_cv_path_SED=$SED
4238 fi
4239
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4242 $as_echo "$ac_cv_path_SED" >&6; }
4243 SED="$ac_cv_path_SED"
4244 rm -f conftest.sed
4245
4246 test -z "$SED" && SED=sed
4247 Xsed="$SED -e 1s/^X//"
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4260 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4261 if ${ac_cv_path_GREP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -z "$GREP"; then
4265 ac_path_GREP_found=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in grep ggrep; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4275 as_fn_executable_p "$ac_path_GREP" || continue
4276 # Check for GNU ac_path_GREP and select it if it is found.
4277 # Check for GNU $ac_path_GREP
4278 case `"$ac_path_GREP" --version 2>&1` in
4279 *GNU*)
4280 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4281 *)
4282 ac_count=0
4283 $as_echo_n 0123456789 >"conftest.in"
4284 while :
4285 do
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo 'GREP' >> "conftest.nl"
4290 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292 as_fn_arith $ac_count + 1 && ac_count=$as_val
4293 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_GREP="$ac_path_GREP"
4296 ac_path_GREP_max=$ac_count
4297 fi
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4300 done
4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4303
4304 $ac_path_GREP_found && break 3
4305 done
4306 done
4307 done
4308 IFS=$as_save_IFS
4309 if test -z "$ac_cv_path_GREP"; then
4310 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311 fi
4312 else
4313 ac_cv_path_GREP=$GREP
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4318 $as_echo "$ac_cv_path_GREP" >&6; }
4319 GREP="$ac_cv_path_GREP"
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4323 $as_echo_n "checking for egrep... " >&6; }
4324 if ${ac_cv_path_EGREP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4328 then ac_cv_path_EGREP="$GREP -E"
4329 else
4330 if test -z "$EGREP"; then
4331 ac_path_EGREP_found=false
4332 # Loop through the user's path and test for each of PROGNAME-LIST
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_prog in egrep; do
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4341 as_fn_executable_p "$ac_path_EGREP" || continue
4342 # Check for GNU ac_path_EGREP and select it if it is found.
4343 # Check for GNU $ac_path_EGREP
4344 case `"$ac_path_EGREP" --version 2>&1` in
4345 *GNU*)
4346 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4347 *)
4348 ac_count=0
4349 $as_echo_n 0123456789 >"conftest.in"
4350 while :
4351 do
4352 cat "conftest.in" "conftest.in" >"conftest.tmp"
4353 mv "conftest.tmp" "conftest.in"
4354 cp "conftest.in" "conftest.nl"
4355 $as_echo 'EGREP' >> "conftest.nl"
4356 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358 as_fn_arith $ac_count + 1 && ac_count=$as_val
4359 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4360 # Best one so far, save it but keep looking for a better one
4361 ac_cv_path_EGREP="$ac_path_EGREP"
4362 ac_path_EGREP_max=$ac_count
4363 fi
4364 # 10*(2^10) chars as input seems more than enough
4365 test $ac_count -gt 10 && break
4366 done
4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 esac
4369
4370 $ac_path_EGREP_found && break 3
4371 done
4372 done
4373 done
4374 IFS=$as_save_IFS
4375 if test -z "$ac_cv_path_EGREP"; then
4376 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377 fi
4378 else
4379 ac_cv_path_EGREP=$EGREP
4380 fi
4381
4382 fi
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4385 $as_echo "$ac_cv_path_EGREP" >&6; }
4386 EGREP="$ac_cv_path_EGREP"
4387
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4390 $as_echo_n "checking for fgrep... " >&6; }
4391 if ${ac_cv_path_FGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4395 then ac_cv_path_FGREP="$GREP -F"
4396 else
4397 if test -z "$FGREP"; then
4398 ac_path_FGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in fgrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 as_fn_executable_p "$ac_path_FGREP" || continue
4409 # Check for GNU ac_path_FGREP and select it if it is found.
4410 # Check for GNU $ac_path_FGREP
4411 case `"$ac_path_FGREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4414 *)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'FGREP' >> "conftest.nl"
4423 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_FGREP="$ac_path_FGREP"
4429 ac_path_FGREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437 $ac_path_FGREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_FGREP"; then
4443 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445 else
4446 ac_cv_path_FGREP=$FGREP
4447 fi
4448
4449 fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4452 $as_echo "$ac_cv_path_FGREP" >&6; }
4453 FGREP="$ac_cv_path_FGREP"
4454
4455
4456 test -z "$GREP" && GREP=grep
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 # Check whether --with-gnu-ld was given.
4477 if test "${with_gnu_ld+set}" = set; then :
4478 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4479 else
4480 with_gnu_ld=no
4481 fi
4482
4483 ac_prog=ld
4484 if test yes = "$GCC"; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4487 $as_echo_n "checking for ld used by $CC... " >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return, which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 *)
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD=$ac_prog
4505 ;;
4506 "")
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4509 ;;
4510 *)
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4513 ;;
4514 esac
4515 elif test yes = "$with_gnu_ld"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4517 $as_echo_n "checking for GNU ld... " >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4520 $as_echo_n "checking for non-GNU ld... " >&6; }
4521 fi
4522 if ${lt_cv_path_LD+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -z "$LD"; then
4526 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS=$lt_save_ifs
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD=$ac_dir/$ac_prog
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test no != "$with_gnu_ld" && break
4538 ;;
4539 *)
4540 test yes != "$with_gnu_ld" && break
4541 ;;
4542 esac
4543 fi
4544 done
4545 IFS=$lt_save_ifs
4546 else
4547 lt_cv_path_LD=$LD # Let the user override the test with a path.
4548 fi
4549 fi
4550
4551 LD=$lt_cv_path_LD
4552 if test -n "$LD"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4554 $as_echo "$LD" >&6; }
4555 else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4558 fi
4559 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4561 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4562 if ${lt_cv_prog_gnu_ld+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4566 case `$LD -v 2>&1 </dev/null` in
4567 *GNU* | *'with BFD'*)
4568 lt_cv_prog_gnu_ld=yes
4569 ;;
4570 *)
4571 lt_cv_prog_gnu_ld=no
4572 ;;
4573 esac
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4576 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4577 with_gnu_ld=$lt_cv_prog_gnu_ld
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4588 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4589 if ${lt_cv_path_NM+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$NM"; then
4593 # Let the user override the test.
4594 lt_cv_path_NM=$NM
4595 else
4596 lt_nm_to_check=${ac_tool_prefix}nm
4597 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4598 lt_nm_to_check="$lt_nm_to_check nm"
4599 fi
4600 for lt_tmp_nm in $lt_nm_to_check; do
4601 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4602 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4603 IFS=$lt_save_ifs
4604 test -z "$ac_dir" && ac_dir=.
4605 tmp_nm=$ac_dir/$lt_tmp_nm
4606 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4607 # Check to see if the nm accepts a BSD-compat flag.
4608 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4609 # nm: unknown option "B" ignored
4610 # Tru64's nm complains that /dev/null is an invalid object file
4611 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4612 case $build_os in
4613 mingw*) lt_bad_file=conftest.nm/nofile ;;
4614 *) lt_bad_file=/dev/null ;;
4615 esac
4616 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4617 *$lt_bad_file* | *'Invalid file or object type'*)
4618 lt_cv_path_NM="$tmp_nm -B"
4619 break 2
4620 ;;
4621 *)
4622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4623 */dev/null*)
4624 lt_cv_path_NM="$tmp_nm -p"
4625 break 2
4626 ;;
4627 *)
4628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4629 continue # so that we can try to find one that supports BSD flags
4630 ;;
4631 esac
4632 ;;
4633 esac
4634 fi
4635 done
4636 IFS=$lt_save_ifs
4637 done
4638 : ${lt_cv_path_NM=no}
4639 fi
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4642 $as_echo "$lt_cv_path_NM" >&6; }
4643 if test no != "$lt_cv_path_NM"; then
4644 NM=$lt_cv_path_NM
4645 else
4646 # Didn't find any BSD compatible name lister, look for dumpbin.
4647 if test -n "$DUMPBIN"; then :
4648 # Let the user override the test.
4649 else
4650 if test -n "$ac_tool_prefix"; then
4651 for ac_prog in dumpbin "link -dump"
4652 do
4653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_DUMPBIN+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$DUMPBIN"; then
4661 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 DUMPBIN=$ac_cv_prog_DUMPBIN
4681 if test -n "$DUMPBIN"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4683 $as_echo "$DUMPBIN" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 test -n "$DUMPBIN" && break
4691 done
4692 fi
4693 if test -z "$DUMPBIN"; then
4694 ac_ct_DUMPBIN=$DUMPBIN
4695 for ac_prog in dumpbin "link -dump"
4696 do
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_DUMPBIN"; then
4705 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4725 if test -n "$ac_ct_DUMPBIN"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4727 $as_echo "$ac_ct_DUMPBIN" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 test -n "$ac_ct_DUMPBIN" && break
4735 done
4736
4737 if test "x$ac_ct_DUMPBIN" = x; then
4738 DUMPBIN=":"
4739 else
4740 case $cross_compiling:$ac_tool_warned in
4741 yes:)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744 ac_tool_warned=yes ;;
4745 esac
4746 DUMPBIN=$ac_ct_DUMPBIN
4747 fi
4748 fi
4749
4750 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4751 *COFF*)
4752 DUMPBIN="$DUMPBIN -symbols -headers"
4753 ;;
4754 *)
4755 DUMPBIN=:
4756 ;;
4757 esac
4758 fi
4759
4760 if test : != "$DUMPBIN"; then
4761 NM=$DUMPBIN
4762 fi
4763 fi
4764 test -z "$NM" && NM=nm
4765
4766
4767
4768
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4772 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4773 if ${lt_cv_nm_interface+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 lt_cv_nm_interface="BSD nm"
4777 echo "int some_variable = 0;" > conftest.$ac_ext
4778 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4779 (eval "$ac_compile" 2>conftest.err)
4780 cat conftest.err >&5
4781 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4782 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4783 cat conftest.err >&5
4784 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4785 cat conftest.out >&5
4786 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4787 lt_cv_nm_interface="MS dumpbin"
4788 fi
4789 rm -f conftest*
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4792 $as_echo "$lt_cv_nm_interface" >&6; }
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4795 $as_echo_n "checking whether ln -s works... " >&6; }
4796 LN_S=$as_ln_s
4797 if test "$LN_S" = "ln -s"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799 $as_echo "yes" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4802 $as_echo "no, using $LN_S" >&6; }
4803 fi
4804
4805 # find the maximum length of command line arguments
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4807 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4808 if ${lt_cv_sys_max_cmd_len+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 i=0
4812 teststring=ABCD
4813
4814 case $build_os in
4815 msdosdjgpp*)
4816 # On DJGPP, this test can blow up pretty badly due to problems in libc
4817 # (any single argument exceeding 2000 bytes causes a buffer overrun
4818 # during glob expansion). Even if it were fixed, the result of this
4819 # check would be larger than it should be.
4820 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4821 ;;
4822
4823 gnu*)
4824 # Under GNU Hurd, this test is not required because there is
4825 # no limit to the length of command line arguments.
4826 # Libtool will interpret -1 as no limit whatsoever
4827 lt_cv_sys_max_cmd_len=-1;
4828 ;;
4829
4830 cygwin* | mingw* | cegcc*)
4831 # On Win9x/ME, this test blows up -- it succeeds, but takes
4832 # about 5 minutes as the teststring grows exponentially.
4833 # Worse, since 9x/ME are not pre-emptively multitasking,
4834 # you end up with a "frozen" computer, even though with patience
4835 # the test eventually succeeds (with a max line length of 256k).
4836 # Instead, let's just punt: use the minimum linelength reported by
4837 # all of the supported platforms: 8192 (on NT/2K/XP).
4838 lt_cv_sys_max_cmd_len=8192;
4839 ;;
4840
4841 mint*)
4842 # On MiNT this can take a long time and run out of memory.
4843 lt_cv_sys_max_cmd_len=8192;
4844 ;;
4845
4846 amigaos*)
4847 # On AmigaOS with pdksh, this test takes hours, literally.
4848 # So we just punt and use a minimum line length of 8192.
4849 lt_cv_sys_max_cmd_len=8192;
4850 ;;
4851
4852 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4853 # This has been around since 386BSD, at least. Likely further.
4854 if test -x /sbin/sysctl; then
4855 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4856 elif test -x /usr/sbin/sysctl; then
4857 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4858 else
4859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4860 fi
4861 # And add a safety zone
4862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4864 ;;
4865
4866 interix*)
4867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4868 lt_cv_sys_max_cmd_len=196608
4869 ;;
4870
4871 os2*)
4872 # The test takes a long time on OS/2.
4873 lt_cv_sys_max_cmd_len=8192
4874 ;;
4875
4876 osf*)
4877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4879 # nice to cause kernel panics so lets avoid the loop below.
4880 # First set a reasonable default.
4881 lt_cv_sys_max_cmd_len=16384
4882 #
4883 if test -x /sbin/sysconfig; then
4884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4886 esac
4887 fi
4888 ;;
4889 sco3.2v5*)
4890 lt_cv_sys_max_cmd_len=102400
4891 ;;
4892 sysv5* | sco5v6* | sysv4.2uw2*)
4893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4894 if test -n "$kargmax"; then
4895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4896 else
4897 lt_cv_sys_max_cmd_len=32768
4898 fi
4899 ;;
4900 *)
4901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4902 if test -n "$lt_cv_sys_max_cmd_len" && \
4903 test undefined != "$lt_cv_sys_max_cmd_len"; then
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906 else
4907 # Make teststring a little bigger before we do anything with it.
4908 # a 1K string should be a reasonable start.
4909 for i in 1 2 3 4 5 6 7 8; do
4910 teststring=$teststring$teststring
4911 done
4912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4913 # If test is not a shell built-in, we'll probably end up computing a
4914 # maximum length that is only half of the actual maximum length, but
4915 # we can't tell.
4916 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4917 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4918 test 17 != "$i" # 1/2 MB should be enough
4919 do
4920 i=`expr $i + 1`
4921 teststring=$teststring$teststring
4922 done
4923 # Only check the string length outside the loop.
4924 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4925 teststring=
4926 # Add a significant safety factor because C++ compilers can tack on
4927 # massive amounts of additional arguments before passing them to the
4928 # linker. It appears as though 1/2 is a usable value.
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4930 fi
4931 ;;
4932 esac
4933
4934 fi
4935
4936 if test -n "$lt_cv_sys_max_cmd_len"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4941 $as_echo "none" >&6; }
4942 fi
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4944
4945
4946
4947
4948
4949
4950 : ${CP="cp -f"}
4951 : ${MV="mv -f"}
4952 : ${RM="rm -f"}
4953
4954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4955 lt_unset=unset
4956 else
4957 lt_unset=false
4958 fi
4959
4960
4961
4962
4963
4964 # test EBCDIC or ASCII
4965 case `echo X|tr X '\101'` in
4966 A) # ASCII based system
4967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4968 lt_SP2NL='tr \040 \012'
4969 lt_NL2SP='tr \015\012 \040\040'
4970 ;;
4971 *) # EBCDIC based system
4972 lt_SP2NL='tr \100 \n'
4973 lt_NL2SP='tr \r\n \100\100'
4974 ;;
4975 esac
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4986 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4987 if ${lt_cv_to_host_file_cmd+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 case $host in
4991 *-*-mingw* )
4992 case $build in
4993 *-*-mingw* ) # actually msys
4994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4995 ;;
4996 *-*-cygwin* )
4997 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4998 ;;
4999 * ) # otherwise, assume *nix
5000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5001 ;;
5002 esac
5003 ;;
5004 *-*-cygwin* )
5005 case $build in
5006 *-*-mingw* ) # actually msys
5007 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5008 ;;
5009 *-*-cygwin* )
5010 lt_cv_to_host_file_cmd=func_convert_file_noop
5011 ;;
5012 * ) # otherwise, assume *nix
5013 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5014 ;;
5015 esac
5016 ;;
5017 * ) # unhandled hosts (and "normal" native builds)
5018 lt_cv_to_host_file_cmd=func_convert_file_noop
5019 ;;
5020 esac
5021
5022 fi
5023
5024 to_host_file_cmd=$lt_cv_to_host_file_cmd
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5026 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5027
5028
5029
5030
5031
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5033 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5034 if ${lt_cv_to_tool_file_cmd+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 #assume ordinary cross tools, or native build.
5038 lt_cv_to_tool_file_cmd=func_convert_file_noop
5039 case $host in
5040 *-*-mingw* )
5041 case $build in
5042 *-*-mingw* ) # actually msys
5043 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5044 ;;
5045 esac
5046 ;;
5047 esac
5048
5049 fi
5050
5051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5053 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5054
5055
5056
5057
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5061 if ${lt_cv_ld_reload_flag+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 lt_cv_ld_reload_flag='-r'
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5068 reload_flag=$lt_cv_ld_reload_flag
5069 case $reload_flag in
5070 "" | " "*) ;;
5071 *) reload_flag=" $reload_flag" ;;
5072 esac
5073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074 case $host_os in
5075 cygwin* | mingw* | pw32* | cegcc*)
5076 if test yes != "$GCC"; then
5077 reload_cmds=false
5078 fi
5079 ;;
5080 darwin*)
5081 if test yes = "$GCC"; then
5082 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5083 else
5084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5085 fi
5086 ;;
5087 esac
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_OBJDUMP+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$OBJDUMP"; then
5106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 OBJDUMP=$ac_cv_prog_OBJDUMP
5126 if test -n "$OBJDUMP"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5128 $as_echo "$OBJDUMP" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135 fi
5136 if test -z "$ac_cv_prog_OBJDUMP"; then
5137 ac_ct_OBJDUMP=$OBJDUMP
5138 # Extract the first word of "objdump", so it can be a program name with args.
5139 set dummy objdump; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$ac_ct_OBJDUMP"; then
5146 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5166 if test -n "$ac_ct_OBJDUMP"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5168 $as_echo "$ac_ct_OBJDUMP" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174 if test "x$ac_ct_OBJDUMP" = x; then
5175 OBJDUMP="false"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183 OBJDUMP=$ac_ct_OBJDUMP
5184 fi
5185 else
5186 OBJDUMP="$ac_cv_prog_OBJDUMP"
5187 fi
5188
5189 test -z "$OBJDUMP" && OBJDUMP=objdump
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5200 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5201 if ${lt_cv_deplibs_check_method+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 lt_cv_file_magic_cmd='$MAGIC_CMD'
5205 lt_cv_file_magic_test_file=
5206 lt_cv_deplibs_check_method='unknown'
5207 # Need to set the preceding variable on all platforms that support
5208 # interlibrary dependencies.
5209 # 'none' -- dependencies not supported.
5210 # 'unknown' -- same as none, but documents that we really don't know.
5211 # 'pass_all' -- all dependencies passed with no checks.
5212 # 'test_compile' -- check by making test program.
5213 # 'file_magic [[regex]]' -- check by looking for files in library path
5214 # that responds to the $file_magic_cmd with a given extended regex.
5215 # If you have 'file' or equivalent on your system and you're not sure
5216 # whether 'pass_all' will *always* work, you probably want this one.
5217
5218 case $host_os in
5219 aix[4-9]*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 beos*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 bsdi[45]*)
5228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5229 lt_cv_file_magic_cmd='/usr/bin/file -L'
5230 lt_cv_file_magic_test_file=/shlib/libc.so
5231 ;;
5232
5233 cygwin*)
5234 # func_win32_libid is a shell function defined in ltmain.sh
5235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5236 lt_cv_file_magic_cmd='func_win32_libid'
5237 ;;
5238
5239 mingw* | pw32*)
5240 # Base MSYS/MinGW do not provide the 'file' command needed by
5241 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5242 # unless we find 'file', for example because we are cross-compiling.
5243 if ( file / ) >/dev/null 2>&1; then
5244 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5245 lt_cv_file_magic_cmd='func_win32_libid'
5246 else
5247 # Keep this pattern in sync with the one in func_win32_libid.
5248 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5249 lt_cv_file_magic_cmd='$OBJDUMP -f'
5250 fi
5251 ;;
5252
5253 cegcc*)
5254 # use the weaker test based on 'objdump'. See mingw*.
5255 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5256 lt_cv_file_magic_cmd='$OBJDUMP -f'
5257 ;;
5258
5259 darwin* | rhapsody*)
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5262
5263 freebsd* | dragonfly*)
5264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5265 case $host_cpu in
5266 i*86 )
5267 # Not sure whether the presence of OpenBSD here was a mistake.
5268 # Let's accept both of them until this is cleared up.
5269 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5270 lt_cv_file_magic_cmd=/usr/bin/file
5271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5272 ;;
5273 esac
5274 else
5275 lt_cv_deplibs_check_method=pass_all
5276 fi
5277 ;;
5278
5279 haiku*)
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282
5283 hpux10.20* | hpux11*)
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 case $host_cpu in
5286 ia64*)
5287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5288 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5289 ;;
5290 hppa*64*)
5291 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]'
5292 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5293 ;;
5294 *)
5295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5296 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5297 ;;
5298 esac
5299 ;;
5300
5301 interix[3-9]*)
5302 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5304 ;;
5305
5306 irix5* | irix6* | nonstopux*)
5307 case $LD in
5308 *-32|*"-32 ") libmagic=32-bit;;
5309 *-n32|*"-n32 ") libmagic=N32;;
5310 *-64|*"-64 ") libmagic=64-bit;;
5311 *) libmagic=never-match;;
5312 esac
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 # This must be glibc/ELF.
5317 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320
5321 netbsd*)
5322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5324 else
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5326 fi
5327 ;;
5328
5329 newos6*)
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5331 lt_cv_file_magic_cmd=/usr/bin/file
5332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5333 ;;
5334
5335 *nto* | *qnx*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338
5339 openbsd* | bitrig*)
5340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5342 else
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5344 fi
5345 ;;
5346
5347 osf3* | osf4* | osf5*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351 rdos*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355 solaris*)
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358
5359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362
5363 sysv4 | sysv4.3*)
5364 case $host_vendor in
5365 motorola)
5366 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]'
5367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5368 ;;
5369 ncr)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372 sequent)
5373 lt_cv_file_magic_cmd='/bin/file'
5374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5375 ;;
5376 sni)
5377 lt_cv_file_magic_cmd='/bin/file'
5378 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5379 lt_cv_file_magic_test_file=/lib/libc.so
5380 ;;
5381 siemens)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384 pc)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387 esac
5388 ;;
5389
5390 tpf*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393 os2*)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396 esac
5397
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5400 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5401
5402 file_magic_glob=
5403 want_nocaseglob=no
5404 if test "$build" = "$host"; then
5405 case $host_os in
5406 mingw* | pw32*)
5407 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5408 want_nocaseglob=yes
5409 else
5410 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5411 fi
5412 ;;
5413 esac
5414 fi
5415
5416 file_magic_cmd=$lt_cv_file_magic_cmd
5417 deplibs_check_method=$lt_cv_deplibs_check_method
5418 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_DLLTOOL+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$DLLTOOL"; then
5450 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 DLLTOOL=$ac_cv_prog_DLLTOOL
5470 if test -n "$DLLTOOL"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5472 $as_echo "$DLLTOOL" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_prog_DLLTOOL"; then
5481 ac_ct_DLLTOOL=$DLLTOOL
5482 # Extract the first word of "dlltool", so it can be a program name with args.
5483 set dummy dlltool; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$ac_ct_DLLTOOL"; then
5490 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5510 if test -n "$ac_ct_DLLTOOL"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5512 $as_echo "$ac_ct_DLLTOOL" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518 if test "x$ac_ct_DLLTOOL" = x; then
5519 DLLTOOL="false"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned=yes ;;
5526 esac
5527 DLLTOOL=$ac_ct_DLLTOOL
5528 fi
5529 else
5530 DLLTOOL="$ac_cv_prog_DLLTOOL"
5531 fi
5532
5533 test -z "$DLLTOOL" && DLLTOOL=dlltool
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5545 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5546 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 lt_cv_sharedlib_from_linklib_cmd='unknown'
5550
5551 case $host_os in
5552 cygwin* | mingw* | pw32* | cegcc*)
5553 # two different shell functions defined in ltmain.sh;
5554 # decide which one to use based on capabilities of $DLLTOOL
5555 case `$DLLTOOL --help 2>&1` in
5556 *--identify-strict*)
5557 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5558 ;;
5559 *)
5560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5561 ;;
5562 esac
5563 ;;
5564 *)
5565 # fallback: assume linklib IS sharedlib
5566 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5567 ;;
5568 esac
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5572 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5573 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5574 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5575
5576
5577
5578
5579
5580
5581
5582
5583 if test -n "$ac_tool_prefix"; then
5584 for ac_prog in ar
5585 do
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_prog_AR+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$AR"; then
5594 ac_cv_prog_AR="$AR" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607 done
5608 done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 AR=$ac_cv_prog_AR
5614 if test -n "$AR"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5616 $as_echo "$AR" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622
5623 test -n "$AR" && break
5624 done
5625 fi
5626 if test -z "$AR"; then
5627 ac_ct_AR=$AR
5628 for ac_prog in ar
5629 do
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy $ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_AR"; then
5638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_AR="$ac_prog"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5658 if test -n "$ac_ct_AR"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5660 $as_echo "$ac_ct_AR" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 test -n "$ac_ct_AR" && break
5668 done
5669
5670 if test "x$ac_ct_AR" = x; then
5671 AR="false"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674 yes:)
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned=yes ;;
5678 esac
5679 AR=$ac_ct_AR
5680 fi
5681 fi
5682
5683 : ${AR=ar}
5684 : ${AR_FLAGS=cru}
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5697 $as_echo_n "checking for archiver @FILE support... " >&6; }
5698 if ${lt_cv_ar_at_file+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 lt_cv_ar_at_file=no
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704
5705 int
5706 main ()
5707 {
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 echo conftest.$ac_objext > conftest.lst
5715 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5717 (eval $lt_ar_try) 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }
5721 if test 0 -eq "$ac_status"; then
5722 # Ensure the archiver fails upon bogus file names.
5723 rm -f conftest.$ac_objext libconftest.a
5724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5725 (eval $lt_ar_try) 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; }
5729 if test 0 -ne "$ac_status"; then
5730 lt_cv_ar_at_file=@
5731 fi
5732 fi
5733 rm -f conftest.* libconftest.a
5734
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5740 $as_echo "$lt_cv_ar_at_file" >&6; }
5741
5742 if test no = "$lt_cv_ar_at_file"; then
5743 archiver_list_spec=
5744 else
5745 archiver_list_spec=$lt_cv_ar_at_file
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}strip; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_STRIP+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$STRIP"; then
5763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 STRIP=$ac_cv_prog_STRIP
5783 if test -n "$STRIP"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5785 $as_echo "$STRIP" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792 fi
5793 if test -z "$ac_cv_prog_STRIP"; then
5794 ac_ct_STRIP=$STRIP
5795 # Extract the first word of "strip", so it can be a program name with args.
5796 set dummy strip; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$ac_ct_STRIP"; then
5803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_ac_ct_STRIP="strip"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5823 if test -n "$ac_ct_STRIP"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5825 $as_echo "$ac_ct_STRIP" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831 if test "x$ac_ct_STRIP" = x; then
5832 STRIP=":"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 STRIP=$ac_ct_STRIP
5841 fi
5842 else
5843 STRIP="$ac_cv_prog_STRIP"
5844 fi
5845
5846 test -z "$STRIP" && STRIP=:
5847
5848
5849
5850
5851
5852
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if ${ac_cv_prog_RANLIB+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$RANLIB"; then
5862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 RANLIB=$ac_cv_prog_RANLIB
5882 if test -n "$RANLIB"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5884 $as_echo "$RANLIB" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890
5891 fi
5892 if test -z "$ac_cv_prog_RANLIB"; then
5893 ac_ct_RANLIB=$RANLIB
5894 # Extract the first word of "ranlib", so it can be a program name with args.
5895 set dummy ranlib; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$ac_ct_RANLIB"; then
5902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_ac_ct_RANLIB="ranlib"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5922 if test -n "$ac_ct_RANLIB"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5924 $as_echo "$ac_ct_RANLIB" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930 if test "x$ac_ct_RANLIB" = x; then
5931 RANLIB=":"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 RANLIB=$ac_ct_RANLIB
5940 fi
5941 else
5942 RANLIB="$ac_cv_prog_RANLIB"
5943 fi
5944
5945 test -z "$RANLIB" && RANLIB=:
5946
5947
5948
5949
5950
5951
5952 # Determine commands to create old-style static archives.
5953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5954 old_postinstall_cmds='chmod 644 $oldlib'
5955 old_postuninstall_cmds=
5956
5957 if test -n "$RANLIB"; then
5958 case $host_os in
5959 bitrig* | openbsd*)
5960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5961 ;;
5962 *)
5963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5964 ;;
5965 esac
5966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5967 fi
5968
5969 case $host_os in
5970 darwin*)
5971 lock_old_archive_extraction=yes ;;
5972 *)
5973 lock_old_archive_extraction=no ;;
5974 esac
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 # If no C compiler was specified, use CC.
6015 LTCC=${LTCC-"$CC"}
6016
6017 # If no C compiler flags were specified, use CFLAGS.
6018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6019
6020 # Allow CC to be a program name with arguments.
6021 compiler=$CC
6022
6023
6024 # Check for command to grab the raw symbol name followed by C symbol from nm.
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6026 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6027 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030
6031 # These are sane defaults that work on at least a few old systems.
6032 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6033
6034 # Character class describing NM global symbol codes.
6035 symcode='[BCDEGRST]'
6036
6037 # Regexp to match symbols that can be accessed directly from C.
6038 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6039
6040 # Define system-specific variables.
6041 case $host_os in
6042 aix*)
6043 symcode='[BCDT]'
6044 ;;
6045 cygwin* | mingw* | pw32* | cegcc*)
6046 symcode='[ABCDGISTW]'
6047 ;;
6048 hpux*)
6049 if test ia64 = "$host_cpu"; then
6050 symcode='[ABCDEGRST]'
6051 fi
6052 ;;
6053 irix* | nonstopux*)
6054 symcode='[BCDEGRST]'
6055 ;;
6056 osf*)
6057 symcode='[BCDEGQRST]'
6058 ;;
6059 solaris*)
6060 symcode='[BDRT]'
6061 ;;
6062 sco3.2v5*)
6063 symcode='[DT]'
6064 ;;
6065 sysv4.2uw2*)
6066 symcode='[DT]'
6067 ;;
6068 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6069 symcode='[ABDT]'
6070 ;;
6071 sysv4)
6072 symcode='[DFNSTU]'
6073 ;;
6074 esac
6075
6076 # If we're using GNU nm, then use its standard symbol codes.
6077 case `$NM -V 2>&1` in
6078 *GNU* | *'with BFD'*)
6079 symcode='[ABCDGIRSTW]' ;;
6080 esac
6081
6082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6083 # Gets list of data symbols to import.
6084 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6085 # Adjust the below global symbol transforms to fixup imported variables.
6086 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6087 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6088 lt_c_name_lib_hook="\
6089 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6090 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6091 else
6092 # Disable hooks by default.
6093 lt_cv_sys_global_symbol_to_import=
6094 lt_cdecl_hook=
6095 lt_c_name_hook=
6096 lt_c_name_lib_hook=
6097 fi
6098
6099 # Transform an extracted symbol line into a proper C declaration.
6100 # Some systems (esp. on ia64) link data and code symbols differently,
6101 # so use this general approach.
6102 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6103 $lt_cdecl_hook\
6104 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6105 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6106
6107 # Transform an extracted symbol line into symbol name and symbol address
6108 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6109 $lt_c_name_hook\
6110 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6111 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6112
6113 # Transform an extracted symbol line into symbol name with lib prefix and
6114 # symbol address.
6115 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6116 $lt_c_name_lib_hook\
6117 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6118 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6119 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6120
6121 # Handle CRLF in mingw tool chain
6122 opt_cr=
6123 case $build_os in
6124 mingw*)
6125 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6126 ;;
6127 esac
6128
6129 # Try without a prefix underscore, then with it.
6130 for ac_symprfx in "" "_"; do
6131
6132 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6133 symxfrm="\\1 $ac_symprfx\\2 \\2"
6134
6135 # Write the raw and C identifiers.
6136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6137 # Fake it for dumpbin and say T for any non-static function,
6138 # D for any global variable and I for any imported variable.
6139 # Also find C++ and __fastcall symbols from MSVC++,
6140 # which start with @ or ?.
6141 lt_cv_sys_global_symbol_pipe="$AWK '"\
6142 " {last_section=section; section=\$ 3};"\
6143 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6144 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6145 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6146 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6147 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6148 " \$ 0!~/External *\|/{next};"\
6149 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6150 " {if(hide[section]) next};"\
6151 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6152 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6153 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6154 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6155 " ' prfx=^$ac_symprfx"
6156 else
6157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6158 fi
6159 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6160
6161 # Check to see that the pipe works correctly.
6162 pipe_works=no
6163
6164 rm -f conftest*
6165 cat > conftest.$ac_ext <<_LT_EOF
6166 #ifdef __cplusplus
6167 extern "C" {
6168 #endif
6169 char nm_test_var;
6170 void nm_test_func(void);
6171 void nm_test_func(void){}
6172 #ifdef __cplusplus
6173 }
6174 #endif
6175 int main(){nm_test_var='a';nm_test_func();return(0);}
6176 _LT_EOF
6177
6178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 test $ac_status = 0; }; then
6183 # Now try to grab the symbols.
6184 nlist=conftest.nm
6185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6186 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; } && test -s "$nlist"; then
6190 # Try sorting and uniquifying the output.
6191 if sort "$nlist" | uniq > "$nlist"T; then
6192 mv -f "$nlist"T "$nlist"
6193 else
6194 rm -f "$nlist"T
6195 fi
6196
6197 # Make sure that we snagged all the symbols we need.
6198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6200 cat <<_LT_EOF > conftest.$ac_ext
6201 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6202 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6203 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6204 relocations are performed -- see ld's documentation on pseudo-relocs. */
6205 # define LT_DLSYM_CONST
6206 #elif defined __osf__
6207 /* This system does not cope well with relocations in const data. */
6208 # define LT_DLSYM_CONST
6209 #else
6210 # define LT_DLSYM_CONST const
6211 #endif
6212
6213 #ifdef __cplusplus
6214 extern "C" {
6215 #endif
6216
6217 _LT_EOF
6218 # Now generate the symbol file.
6219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6220
6221 cat <<_LT_EOF >> conftest.$ac_ext
6222
6223 /* The mapping between symbol names and symbols. */
6224 LT_DLSYM_CONST struct {
6225 const char *name;
6226 void *address;
6227 }
6228 lt__PROGRAM__LTX_preloaded_symbols[] =
6229 {
6230 { "@PROGRAM@", (void *) 0 },
6231 _LT_EOF
6232 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6233 cat <<\_LT_EOF >> conftest.$ac_ext
6234 {0, (void *) 0}
6235 };
6236
6237 /* This works around a problem in FreeBSD linker */
6238 #ifdef FREEBSD_WORKAROUND
6239 static const void *lt_preloaded_setup() {
6240 return lt__PROGRAM__LTX_preloaded_symbols;
6241 }
6242 #endif
6243
6244 #ifdef __cplusplus
6245 }
6246 #endif
6247 _LT_EOF
6248 # Now try linking the two files.
6249 mv conftest.$ac_objext conftstm.$ac_objext
6250 lt_globsym_save_LIBS=$LIBS
6251 lt_globsym_save_CFLAGS=$CFLAGS
6252 LIBS=conftstm.$ac_objext
6253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6255 (eval $ac_link) 2>&5
6256 ac_status=$?
6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6259 pipe_works=yes
6260 fi
6261 LIBS=$lt_globsym_save_LIBS
6262 CFLAGS=$lt_globsym_save_CFLAGS
6263 else
6264 echo "cannot find nm_test_func in $nlist" >&5
6265 fi
6266 else
6267 echo "cannot find nm_test_var in $nlist" >&5
6268 fi
6269 else
6270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6271 fi
6272 else
6273 echo "$progname: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6275 fi
6276 rm -rf conftest* conftst*
6277
6278 # Do not use the global_symbol_pipe unless it works.
6279 if test yes = "$pipe_works"; then
6280 break
6281 else
6282 lt_cv_sys_global_symbol_pipe=
6283 fi
6284 done
6285
6286 fi
6287
6288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6289 lt_cv_sys_global_symbol_to_cdecl=
6290 fi
6291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6293 $as_echo "failed" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6296 $as_echo "ok" >&6; }
6297 fi
6298
6299 # Response file support.
6300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6301 nm_file_list_spec='@'
6302 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6303 nm_file_list_spec='@'
6304 fi
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6343 $as_echo_n "checking for sysroot... " >&6; }
6344
6345 # Check whether --with-sysroot was given.
6346 if test "${with_sysroot+set}" = set; then :
6347 withval=$with_sysroot;
6348 else
6349 with_sysroot=no
6350 fi
6351
6352
6353 lt_sysroot=
6354 case $with_sysroot in #(
6355 yes)
6356 if test yes = "$GCC"; then
6357 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6358 fi
6359 ;; #(
6360 /*)
6361 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6362 ;; #(
6363 no|'')
6364 ;; #(
6365 *)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6367 $as_echo "$with_sysroot" >&6; }
6368 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6369 ;;
6370 esac
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6373 $as_echo "${lt_sysroot:-no}" >&6; }
6374
6375
6376
6377
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6380 $as_echo_n "checking for a working dd... " >&6; }
6381 if ${ac_cv_path_lt_DD+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 printf 0123456789abcdef0123456789abcdef >conftest.i
6385 cat conftest.i conftest.i >conftest2.i
6386 : ${lt_DD:=$DD}
6387 if test -z "$lt_DD"; then
6388 ac_path_lt_DD_found=false
6389 # Loop through the user's path and test for each of PROGNAME-LIST
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_prog in dd; do
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6398 as_fn_executable_p "$ac_path_lt_DD" || continue
6399 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6400 cmp -s conftest.i conftest.out \
6401 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6402 fi
6403 $ac_path_lt_DD_found && break 3
6404 done
6405 done
6406 done
6407 IFS=$as_save_IFS
6408 if test -z "$ac_cv_path_lt_DD"; then
6409 :
6410 fi
6411 else
6412 ac_cv_path_lt_DD=$lt_DD
6413 fi
6414
6415 rm -f conftest.i conftest2.i conftest.out
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6418 $as_echo "$ac_cv_path_lt_DD" >&6; }
6419
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6422 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6423 if ${lt_cv_truncate_bin+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 printf 0123456789abcdef0123456789abcdef >conftest.i
6427 cat conftest.i conftest.i >conftest2.i
6428 lt_cv_truncate_bin=
6429 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6430 cmp -s conftest.i conftest.out \
6431 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6432 fi
6433 rm -f conftest.i conftest2.i conftest.out
6434 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6437 $as_echo "$lt_cv_truncate_bin" >&6; }
6438
6439
6440
6441
6442
6443
6444
6445 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6446 func_cc_basename ()
6447 {
6448 for cc_temp in $*""; do
6449 case $cc_temp in
6450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6452 \-*) ;;
6453 *) break;;
6454 esac
6455 done
6456 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6457 }
6458
6459 # Check whether --enable-libtool-lock was given.
6460 if test "${enable_libtool_lock+set}" = set; then :
6461 enableval=$enable_libtool_lock;
6462 fi
6463
6464 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6465
6466 # Some flags need to be propagated to the compiler or linker for good
6467 # libtool support.
6468 case $host in
6469 ia64-*-hpux*)
6470 # Find out what ABI is being produced by ac_compile, and set mode
6471 # options accordingly.
6472 echo 'int i;' > conftest.$ac_ext
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 case `/usr/bin/file conftest.$ac_objext` in
6479 *ELF-32*)
6480 HPUX_IA64_MODE=32
6481 ;;
6482 *ELF-64*)
6483 HPUX_IA64_MODE=64
6484 ;;
6485 esac
6486 fi
6487 rm -rf conftest*
6488 ;;
6489 *-*-irix6*)
6490 # Find out what ABI is being produced by ac_compile, and set linker
6491 # options accordingly.
6492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497 test $ac_status = 0; }; then
6498 if test yes = "$lt_cv_prog_gnu_ld"; then
6499 case `/usr/bin/file conftest.$ac_objext` in
6500 *32-bit*)
6501 LD="${LD-ld} -melf32bsmip"
6502 ;;
6503 *N32*)
6504 LD="${LD-ld} -melf32bmipn32"
6505 ;;
6506 *64-bit*)
6507 LD="${LD-ld} -melf64bmip"
6508 ;;
6509 esac
6510 else
6511 case `/usr/bin/file conftest.$ac_objext` in
6512 *32-bit*)
6513 LD="${LD-ld} -32"
6514 ;;
6515 *N32*)
6516 LD="${LD-ld} -n32"
6517 ;;
6518 *64-bit*)
6519 LD="${LD-ld} -64"
6520 ;;
6521 esac
6522 fi
6523 fi
6524 rm -rf conftest*
6525 ;;
6526
6527 mips64*-*linux*)
6528 # Find out what ABI is being produced by ac_compile, and set linker
6529 # options accordingly.
6530 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 emul=elf
6537 case `/usr/bin/file conftest.$ac_objext` in
6538 *32-bit*)
6539 emul="${emul}32"
6540 ;;
6541 *64-bit*)
6542 emul="${emul}64"
6543 ;;
6544 esac
6545 case `/usr/bin/file conftest.$ac_objext` in
6546 *MSB*)
6547 emul="${emul}btsmip"
6548 ;;
6549 *LSB*)
6550 emul="${emul}ltsmip"
6551 ;;
6552 esac
6553 case `/usr/bin/file conftest.$ac_objext` in
6554 *N32*)
6555 emul="${emul}n32"
6556 ;;
6557 esac
6558 LD="${LD-ld} -m $emul"
6559 fi
6560 rm -rf conftest*
6561 ;;
6562
6563 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6564 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6565 # Find out what ABI is being produced by ac_compile, and set linker
6566 # options accordingly. Note that the listed cases only cover the
6567 # situations where additional linker options are needed (such as when
6568 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6569 # vice versa); the common cases where no linker options are needed do
6570 # not appear in the list.
6571 echo 'int i;' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 case `/usr/bin/file conftest.o` in
6578 *32-bit*)
6579 case $host in
6580 x86_64-*kfreebsd*-gnu)
6581 LD="${LD-ld} -m elf_i386_fbsd"
6582 ;;
6583 x86_64-*linux*)
6584 case `/usr/bin/file conftest.o` in
6585 *x86-64*)
6586 LD="${LD-ld} -m elf32_x86_64"
6587 ;;
6588 *)
6589 LD="${LD-ld} -m elf_i386"
6590 ;;
6591 esac
6592 ;;
6593 powerpc64le-*linux*)
6594 LD="${LD-ld} -m elf32lppclinux"
6595 ;;
6596 powerpc64-*linux*)
6597 LD="${LD-ld} -m elf32ppclinux"
6598 ;;
6599 s390x-*linux*)
6600 LD="${LD-ld} -m elf_s390"
6601 ;;
6602 sparc64-*linux*)
6603 LD="${LD-ld} -m elf32_sparc"
6604 ;;
6605 esac
6606 ;;
6607 *64-bit*)
6608 case $host in
6609 x86_64-*kfreebsd*-gnu)
6610 LD="${LD-ld} -m elf_x86_64_fbsd"
6611 ;;
6612 x86_64-*linux*)
6613 LD="${LD-ld} -m elf_x86_64"
6614 ;;
6615 powerpcle-*linux*)
6616 LD="${LD-ld} -m elf64lppc"
6617 ;;
6618 powerpc-*linux*)
6619 LD="${LD-ld} -m elf64ppc"
6620 ;;
6621 s390*-*linux*|s390*-*tpf*)
6622 LD="${LD-ld} -m elf64_s390"
6623 ;;
6624 sparc*-*linux*)
6625 LD="${LD-ld} -m elf64_sparc"
6626 ;;
6627 esac
6628 ;;
6629 esac
6630 fi
6631 rm -rf conftest*
6632 ;;
6633
6634 *-*-sco3.2v5*)
6635 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6636 SAVE_CFLAGS=$CFLAGS
6637 CFLAGS="$CFLAGS -belf"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6639 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6640 if ${lt_cv_cc_needs_belf+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 ac_ext=c
6644 ac_cpp='$CPP $CPPFLAGS'
6645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 lt_cv_cc_needs_belf=yes
6662 else
6663 lt_cv_cc_needs_belf=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 ac_ext=c
6668 ac_cpp='$CPP $CPPFLAGS'
6669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6675 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6676 if test yes != "$lt_cv_cc_needs_belf"; then
6677 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6678 CFLAGS=$SAVE_CFLAGS
6679 fi
6680 ;;
6681 *-*solaris*)
6682 # Find out what ABI is being produced by ac_compile, and set linker
6683 # options accordingly.
6684 echo 'int i;' > conftest.$ac_ext
6685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
6690 case `/usr/bin/file conftest.o` in
6691 *64-bit*)
6692 case $lt_cv_prog_gnu_ld in
6693 yes*)
6694 case $host in
6695 i?86-*-solaris*|x86_64-*-solaris*)
6696 LD="${LD-ld} -m elf_x86_64"
6697 ;;
6698 sparc*-*-solaris*)
6699 LD="${LD-ld} -m elf64_sparc"
6700 ;;
6701 esac
6702 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6703 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6704 LD=${LD-ld}_sol2
6705 fi
6706 ;;
6707 *)
6708 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6709 LD="${LD-ld} -64"
6710 fi
6711 ;;
6712 esac
6713 ;;
6714 esac
6715 fi
6716 rm -rf conftest*
6717 ;;
6718 esac
6719
6720 need_locks=$enable_libtool_lock
6721
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}mt; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$MANIFEST_TOOL"; then
6731 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6751 if test -n "$MANIFEST_TOOL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6753 $as_echo "$MANIFEST_TOOL" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6762 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6763 # Extract the first word of "mt", so it can be a program name with args.
6764 set dummy mt; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_MANIFEST_TOOL"; then
6771 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6791 if test -n "$ac_ct_MANIFEST_TOOL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6793 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6800 MANIFEST_TOOL=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6809 fi
6810 else
6811 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6812 fi
6813
6814 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6816 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6817 if ${lt_cv_path_mainfest_tool+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 lt_cv_path_mainfest_tool=no
6821 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6822 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6823 cat conftest.err >&5
6824 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6825 lt_cv_path_mainfest_tool=yes
6826 fi
6827 rm -f conftest*
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6830 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6831 if test yes != "$lt_cv_path_mainfest_tool"; then
6832 MANIFEST_TOOL=:
6833 fi
6834
6835
6836
6837
6838
6839
6840 case $host_os in
6841 rhapsody* | darwin*)
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$DSYMUTIL"; then
6851 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6871 if test -n "$DSYMUTIL"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6873 $as_echo "$DSYMUTIL" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879
6880 fi
6881 if test -z "$ac_cv_prog_DSYMUTIL"; then
6882 ac_ct_DSYMUTIL=$DSYMUTIL
6883 # Extract the first word of "dsymutil", so it can be a program name with args.
6884 set dummy dsymutil; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$ac_ct_DSYMUTIL"; then
6891 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6911 if test -n "$ac_ct_DSYMUTIL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6913 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919 if test "x$ac_ct_DSYMUTIL" = x; then
6920 DSYMUTIL=":"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 DSYMUTIL=$ac_ct_DSYMUTIL
6929 fi
6930 else
6931 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6932 fi
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_NMEDIT+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$NMEDIT"; then
6943 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 NMEDIT=$ac_cv_prog_NMEDIT
6963 if test -n "$NMEDIT"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6965 $as_echo "$NMEDIT" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_NMEDIT"; then
6974 ac_ct_NMEDIT=$NMEDIT
6975 # Extract the first word of "nmedit", so it can be a program name with args.
6976 set dummy nmedit; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$ac_ct_NMEDIT"; then
6983 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7003 if test -n "$ac_ct_NMEDIT"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7005 $as_echo "$ac_ct_NMEDIT" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011 if test "x$ac_ct_NMEDIT" = x; then
7012 NMEDIT=":"
7013 else
7014 case $cross_compiling:$ac_tool_warned in
7015 yes:)
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018 ac_tool_warned=yes ;;
7019 esac
7020 NMEDIT=$ac_ct_NMEDIT
7021 fi
7022 else
7023 NMEDIT="$ac_cv_prog_NMEDIT"
7024 fi
7025
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_LIPO+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$LIPO"; then
7035 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 LIPO=$ac_cv_prog_LIPO
7055 if test -n "$LIPO"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7057 $as_echo "$LIPO" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063
7064 fi
7065 if test -z "$ac_cv_prog_LIPO"; then
7066 ac_ct_LIPO=$LIPO
7067 # Extract the first word of "lipo", so it can be a program name with args.
7068 set dummy lipo; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_LIPO"; then
7075 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_LIPO="lipo"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7095 if test -n "$ac_ct_LIPO"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7097 $as_echo "$ac_ct_LIPO" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103 if test "x$ac_ct_LIPO" = x; then
7104 LIPO=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 LIPO=$ac_ct_LIPO
7113 fi
7114 else
7115 LIPO="$ac_cv_prog_LIPO"
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}otool; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_OTOOL+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$OTOOL"; then
7127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 OTOOL=$ac_cv_prog_OTOOL
7147 if test -n "$OTOOL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7149 $as_echo "$OTOOL" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_OTOOL"; then
7158 ac_ct_OTOOL=$OTOOL
7159 # Extract the first word of "otool", so it can be a program name with args.
7160 set dummy otool; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$ac_ct_OTOOL"; then
7167 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_OTOOL="otool"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7187 if test -n "$ac_ct_OTOOL"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7189 $as_echo "$ac_ct_OTOOL" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195 if test "x$ac_ct_OTOOL" = x; then
7196 OTOOL=":"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 OTOOL=$ac_ct_OTOOL
7205 fi
7206 else
7207 OTOOL="$ac_cv_prog_OTOOL"
7208 fi
7209
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_OTOOL64+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$OTOOL64"; then
7219 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 OTOOL64=$ac_cv_prog_OTOOL64
7239 if test -n "$OTOOL64"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7241 $as_echo "$OTOOL64" >&6; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247
7248 fi
7249 if test -z "$ac_cv_prog_OTOOL64"; then
7250 ac_ct_OTOOL64=$OTOOL64
7251 # Extract the first word of "otool64", so it can be a program name with args.
7252 set dummy otool64; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$ac_ct_OTOOL64"; then
7259 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_OTOOL64="otool64"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7279 if test -n "$ac_ct_OTOOL64"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7281 $as_echo "$ac_ct_OTOOL64" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287 if test "x$ac_ct_OTOOL64" = x; then
7288 OTOOL64=":"
7289 else
7290 case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296 OTOOL64=$ac_ct_OTOOL64
7297 fi
7298 else
7299 OTOOL64="$ac_cv_prog_OTOOL64"
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7329 $as_echo_n "checking for -single_module linker flag... " >&6; }
7330 if ${lt_cv_apple_cc_single_mod+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 lt_cv_apple_cc_single_mod=no
7334 if test -z "$LT_MULTI_MODULE"; then
7335 # By default we will add the -single_module flag. You can override
7336 # by either setting the environment variable LT_MULTI_MODULE
7337 # non-empty at configure time, or by adding -multi_module to the
7338 # link flags.
7339 rm -rf libconftest.dylib*
7340 echo "int foo(void){return 1;}" > conftest.c
7341 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7342 -dynamiclib -Wl,-single_module conftest.c" >&5
7343 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7344 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7345 _lt_result=$?
7346 # If there is a non-empty error log, and "single_module"
7347 # appears in it, assume the flag caused a linker warning
7348 if test -s conftest.err && $GREP single_module conftest.err; then
7349 cat conftest.err >&5
7350 # Otherwise, if the output was created with a 0 exit code from
7351 # the compiler, it worked.
7352 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7353 lt_cv_apple_cc_single_mod=yes
7354 else
7355 cat conftest.err >&5
7356 fi
7357 rm -rf libconftest.dylib*
7358 rm -f conftest.*
7359 fi
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7362 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7365 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7366 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 lt_cv_ld_exported_symbols_list=no
7370 save_LDFLAGS=$LDFLAGS
7371 echo "_main" > conftest.sym
7372 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 int
7377 main ()
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"; then :
7385 lt_cv_ld_exported_symbols_list=yes
7386 else
7387 lt_cv_ld_exported_symbols_list=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 LDFLAGS=$save_LDFLAGS
7392
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7395 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7396
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7398 $as_echo_n "checking for -force_load linker flag... " >&6; }
7399 if ${lt_cv_ld_force_load+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 lt_cv_ld_force_load=no
7403 cat > conftest.c << _LT_EOF
7404 int forced_loaded() { return 2;}
7405 _LT_EOF
7406 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7407 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7408 echo "$AR cru libconftest.a conftest.o" >&5
7409 $AR cru libconftest.a conftest.o 2>&5
7410 echo "$RANLIB libconftest.a" >&5
7411 $RANLIB libconftest.a 2>&5
7412 cat > conftest.c << _LT_EOF
7413 int main() { return 0;}
7414 _LT_EOF
7415 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7416 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7417 _lt_result=$?
7418 if test -s conftest.err && $GREP force_load conftest.err; then
7419 cat conftest.err >&5
7420 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7421 lt_cv_ld_force_load=yes
7422 else
7423 cat conftest.err >&5
7424 fi
7425 rm -f conftest.err libconftest.a conftest conftest.c
7426 rm -rf conftest.dSYM
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7430 $as_echo "$lt_cv_ld_force_load" >&6; }
7431 case $host_os in
7432 rhapsody* | darwin1.[012])
7433 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7434 darwin1.*)
7435 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7436 darwin*) # darwin 5.x on
7437 # if running on 10.5 or later, the deployment target defaults
7438 # to the OS version, if on x86, and 10.4, the deployment
7439 # target defaults to 10.4. Don't you love it?
7440 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7441 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7442 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7443 10.[012][,.]*)
7444 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7445 10.*)
7446 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7447 esac
7448 ;;
7449 esac
7450 if test yes = "$lt_cv_apple_cc_single_mod"; then
7451 _lt_dar_single_mod='$single_module'
7452 fi
7453 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7454 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7455 else
7456 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7457 fi
7458 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7459 _lt_dsymutil='~$DSYMUTIL $lib || :'
7460 else
7461 _lt_dsymutil=
7462 fi
7463 ;;
7464 esac
7465
7466 # func_munge_path_list VARIABLE PATH
7467 # -----------------------------------
7468 # VARIABLE is name of variable containing _space_ separated list of
7469 # directories to be munged by the contents of PATH, which is string
7470 # having a format:
7471 # "DIR[:DIR]:"
7472 # string "DIR[ DIR]" will be prepended to VARIABLE
7473 # ":DIR[:DIR]"
7474 # string "DIR[ DIR]" will be appended to VARIABLE
7475 # "DIRP[:DIRP]::[DIRA:]DIRA"
7476 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7477 # "DIRA[ DIRA]" will be appended to VARIABLE
7478 # "DIR[:DIR]"
7479 # VARIABLE will be replaced by "DIR[ DIR]"
7480 func_munge_path_list ()
7481 {
7482 case x$2 in
7483 x)
7484 ;;
7485 *:)
7486 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7487 ;;
7488 x:*)
7489 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7490 ;;
7491 *::*)
7492 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7493 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7494 ;;
7495 *)
7496 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7497 ;;
7498 esac
7499 }
7500
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7508 # On Suns, sometimes $CPP names a directory.
7509 if test -n "$CPP" && test -d "$CPP"; then
7510 CPP=
7511 fi
7512 if test -z "$CPP"; then
7513 if ${ac_cv_prog_CPP+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 # Double quotes because CPP needs to be expanded
7517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7518 do
7519 ac_preproc_ok=false
7520 for ac_c_preproc_warn_flag in '' yes
7521 do
7522 # Use a header file that comes with gcc, so configuring glibc
7523 # with a fresh cross-compiler works.
7524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525 # <limits.h> exists even on freestanding compilers.
7526 # On the NeXT, cc -E runs the code through the compiler's parser,
7527 # not just through cpp. "Syntax error" is here to catch this case.
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 #ifdef __STDC__
7531 # include <limits.h>
7532 #else
7533 # include <assert.h>
7534 #endif
7535 Syntax error
7536 _ACEOF
7537 if ac_fn_c_try_cpp "$LINENO"; then :
7538
7539 else
7540 # Broken: fails on valid input.
7541 continue
7542 fi
7543 rm -f conftest.err conftest.i conftest.$ac_ext
7544
7545 # OK, works on sane cases. Now check whether nonexistent headers
7546 # can be detected and how.
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 #include <ac_nonexistent.h>
7550 _ACEOF
7551 if ac_fn_c_try_cpp "$LINENO"; then :
7552 # Broken: success on invalid input.
7553 continue
7554 else
7555 # Passes both tests.
7556 ac_preproc_ok=:
7557 break
7558 fi
7559 rm -f conftest.err conftest.i conftest.$ac_ext
7560
7561 done
7562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7563 rm -f conftest.i conftest.err conftest.$ac_ext
7564 if $ac_preproc_ok; then :
7565 break
7566 fi
7567
7568 done
7569 ac_cv_prog_CPP=$CPP
7570
7571 fi
7572 CPP=$ac_cv_prog_CPP
7573 else
7574 ac_cv_prog_CPP=$CPP
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7577 $as_echo "$CPP" >&6; }
7578 ac_preproc_ok=false
7579 for ac_c_preproc_warn_flag in '' yes
7580 do
7581 # Use a header file that comes with gcc, so configuring glibc
7582 # with a fresh cross-compiler works.
7583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7584 # <limits.h> exists even on freestanding compilers.
7585 # On the NeXT, cc -E runs the code through the compiler's parser,
7586 # not just through cpp. "Syntax error" is here to catch this case.
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 #ifdef __STDC__
7590 # include <limits.h>
7591 #else
7592 # include <assert.h>
7593 #endif
7594 Syntax error
7595 _ACEOF
7596 if ac_fn_c_try_cpp "$LINENO"; then :
7597
7598 else
7599 # Broken: fails on valid input.
7600 continue
7601 fi
7602 rm -f conftest.err conftest.i conftest.$ac_ext
7603
7604 # OK, works on sane cases. Now check whether nonexistent headers
7605 # can be detected and how.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #include <ac_nonexistent.h>
7609 _ACEOF
7610 if ac_fn_c_try_cpp "$LINENO"; then :
7611 # Broken: success on invalid input.
7612 continue
7613 else
7614 # Passes both tests.
7615 ac_preproc_ok=:
7616 break
7617 fi
7618 rm -f conftest.err conftest.i conftest.$ac_ext
7619
7620 done
7621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7622 rm -f conftest.i conftest.err conftest.$ac_ext
7623 if $ac_preproc_ok; then :
7624
7625 else
7626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7628 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7629 See \`config.log' for more details" "$LINENO" 5; }
7630 fi
7631
7632 ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7640 $as_echo_n "checking for ANSI C header files... " >&6; }
7641 if ${ac_cv_header_stdc+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <stdlib.h>
7647 #include <stdarg.h>
7648 #include <string.h>
7649 #include <float.h>
7650
7651 int
7652 main ()
7653 {
7654
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 ac_cv_header_stdc=yes
7661 else
7662 ac_cv_header_stdc=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665
7666 if test $ac_cv_header_stdc = yes; then
7667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 #include <string.h>
7671
7672 _ACEOF
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674 $EGREP "memchr" >/dev/null 2>&1; then :
7675
7676 else
7677 ac_cv_header_stdc=no
7678 fi
7679 rm -f conftest*
7680
7681 fi
7682
7683 if test $ac_cv_header_stdc = yes; then
7684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <stdlib.h>
7688
7689 _ACEOF
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691 $EGREP "free" >/dev/null 2>&1; then :
7692
7693 else
7694 ac_cv_header_stdc=no
7695 fi
7696 rm -f conftest*
7697
7698 fi
7699
7700 if test $ac_cv_header_stdc = yes; then
7701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7702 if test "$cross_compiling" = yes; then :
7703 :
7704 else
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <ctype.h>
7708 #include <stdlib.h>
7709 #if ((' ' & 0x0FF) == 0x020)
7710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7712 #else
7713 # define ISLOWER(c) \
7714 (('a' <= (c) && (c) <= 'i') \
7715 || ('j' <= (c) && (c) <= 'r') \
7716 || ('s' <= (c) && (c) <= 'z'))
7717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7718 #endif
7719
7720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7721 int
7722 main ()
7723 {
7724 int i;
7725 for (i = 0; i < 256; i++)
7726 if (XOR (islower (i), ISLOWER (i))
7727 || toupper (i) != TOUPPER (i))
7728 return 2;
7729 return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_run "$LINENO"; then :
7733
7734 else
7735 ac_cv_header_stdc=no
7736 fi
7737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7738 conftest.$ac_objext conftest.beam conftest.$ac_ext
7739 fi
7740
7741 fi
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7744 $as_echo "$ac_cv_header_stdc" >&6; }
7745 if test $ac_cv_header_stdc = yes; then
7746
7747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7748
7749 fi
7750
7751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7753 inttypes.h stdint.h unistd.h
7754 do :
7755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7757 "
7758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768 for ac_header in dlfcn.h
7769 do :
7770 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7771 "
7772 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7773 cat >>confdefs.h <<_ACEOF
7774 #define HAVE_DLFCN_H 1
7775 _ACEOF
7776
7777 fi
7778
7779 done
7780
7781
7782
7783
7784
7785 # Set options
7786
7787
7788
7789 enable_dlopen=no
7790
7791
7792 enable_win32_dll=no
7793
7794
7795 # Check whether --enable-shared was given.
7796 if test "${enable_shared+set}" = set; then :
7797 enableval=$enable_shared; p=${PACKAGE-default}
7798 case $enableval in
7799 yes) enable_shared=yes ;;
7800 no) enable_shared=no ;;
7801 *)
7802 enable_shared=no
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7805 for pkg in $enableval; do
7806 IFS=$lt_save_ifs
7807 if test "X$pkg" = "X$p"; then
7808 enable_shared=yes
7809 fi
7810 done
7811 IFS=$lt_save_ifs
7812 ;;
7813 esac
7814 else
7815 enable_shared=yes
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 # Check whether --enable-static was given.
7827 if test "${enable_static+set}" = set; then :
7828 enableval=$enable_static; p=${PACKAGE-default}
7829 case $enableval in
7830 yes) enable_static=yes ;;
7831 no) enable_static=no ;;
7832 *)
7833 enable_static=no
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836 for pkg in $enableval; do
7837 IFS=$lt_save_ifs
7838 if test "X$pkg" = "X$p"; then
7839 enable_static=yes
7840 fi
7841 done
7842 IFS=$lt_save_ifs
7843 ;;
7844 esac
7845 else
7846 enable_static=yes
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858 # Check whether --with-pic was given.
7859 if test "${with_pic+set}" = set; then :
7860 withval=$with_pic; lt_p=${PACKAGE-default}
7861 case $withval in
7862 yes|no) pic_mode=$withval ;;
7863 *)
7864 pic_mode=default
7865 # Look at the argument we got. We use all the common list separators.
7866 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7867 for lt_pkg in $withval; do
7868 IFS=$lt_save_ifs
7869 if test "X$lt_pkg" = "X$lt_p"; then
7870 pic_mode=yes
7871 fi
7872 done
7873 IFS=$lt_save_ifs
7874 ;;
7875 esac
7876 else
7877 pic_mode=default
7878 fi
7879
7880
7881
7882
7883
7884
7885
7886
7887 # Check whether --enable-fast-install was given.
7888 if test "${enable_fast_install+set}" = set; then :
7889 enableval=$enable_fast_install; p=${PACKAGE-default}
7890 case $enableval in
7891 yes) enable_fast_install=yes ;;
7892 no) enable_fast_install=no ;;
7893 *)
7894 enable_fast_install=no
7895 # Look at the argument we got. We use all the common list separators.
7896 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7897 for pkg in $enableval; do
7898 IFS=$lt_save_ifs
7899 if test "X$pkg" = "X$p"; then
7900 enable_fast_install=yes
7901 fi
7902 done
7903 IFS=$lt_save_ifs
7904 ;;
7905 esac
7906 else
7907 enable_fast_install=yes
7908 fi
7909
7910
7911
7912
7913
7914
7915
7916
7917 shared_archive_member_spec=
7918 case $host,$enable_shared in
7919 power*-*-aix[5-9]*,yes)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7921 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7922
7923 # Check whether --with-aix-soname was given.
7924 if test "${with_aix_soname+set}" = set; then :
7925 withval=$with_aix_soname; case $withval in
7926 aix|svr4|both)
7927 ;;
7928 *)
7929 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7930 ;;
7931 esac
7932 lt_cv_with_aix_soname=$with_aix_soname
7933 else
7934 if ${lt_cv_with_aix_soname+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 lt_cv_with_aix_soname=aix
7938 fi
7939
7940 with_aix_soname=$lt_cv_with_aix_soname
7941 fi
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7944 $as_echo "$with_aix_soname" >&6; }
7945 if test aix != "$with_aix_soname"; then
7946 # For the AIX way of multilib, we name the shared archive member
7947 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7948 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7949 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7950 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7951 if test 64 = "${OBJECT_MODE-32}"; then
7952 shared_archive_member_spec=shr_64
7953 else
7954 shared_archive_member_spec=shr
7955 fi
7956 fi
7957 ;;
7958 *)
7959 with_aix_soname=aix
7960 ;;
7961 esac
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 # This can be used to rebuild libtool when needed
7973 LIBTOOL_DEPS=$ltmain
7974
7975 # Always use our own libtool.
7976 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 test -z "$LN_S" && LN_S="ln -s"
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 if test -n "${ZSH_VERSION+set}"; then
8023 setopt NO_GLOB_SUBST
8024 fi
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8027 $as_echo_n "checking for objdir... " >&6; }
8028 if ${lt_cv_objdir+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 rm -f .libs 2>/dev/null
8032 mkdir .libs 2>/dev/null
8033 if test -d .libs; then
8034 lt_cv_objdir=.libs
8035 else
8036 # MS-DOS does not allow filenames that begin with a dot.
8037 lt_cv_objdir=_libs
8038 fi
8039 rmdir .libs 2>/dev/null
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8042 $as_echo "$lt_cv_objdir" >&6; }
8043 objdir=$lt_cv_objdir
8044
8045
8046
8047
8048
8049 cat >>confdefs.h <<_ACEOF
8050 #define LT_OBJDIR "$lt_cv_objdir/"
8051 _ACEOF
8052
8053
8054
8055
8056 case $host_os in
8057 aix3*)
8058 # AIX sometimes has problems with the GCC collect2 program. For some
8059 # reason, if we set the COLLECT_NAMES environment variable, the problems
8060 # vanish in a puff of smoke.
8061 if test set != "${COLLECT_NAMES+set}"; then
8062 COLLECT_NAMES=
8063 export COLLECT_NAMES
8064 fi
8065 ;;
8066 esac
8067
8068 # Global variables:
8069 ofile=libtool
8070 can_build_shared=yes
8071
8072 # All known linkers require a '.a' archive for static linking (except MSVC,
8073 # which needs '.lib').
8074 libext=a
8075
8076 with_gnu_ld=$lt_cv_prog_gnu_ld
8077
8078 old_CC=$CC
8079 old_CFLAGS=$CFLAGS
8080
8081 # Set sane defaults for various variables
8082 test -z "$CC" && CC=cc
8083 test -z "$LTCC" && LTCC=$CC
8084 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8085 test -z "$LD" && LD=ld
8086 test -z "$ac_objext" && ac_objext=o
8087
8088 func_cc_basename $compiler
8089 cc_basename=$func_cc_basename_result
8090
8091
8092 # Only perform the check for file, if the check method requires it
8093 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8094 case $deplibs_check_method in
8095 file_magic*)
8096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8098 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 case $MAGIC_CMD in
8103 [\\/*] | ?:[\\/]*)
8104 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8105 ;;
8106 *)
8107 lt_save_MAGIC_CMD=$MAGIC_CMD
8108 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110 for ac_dir in $ac_dummy; do
8111 IFS=$lt_save_ifs
8112 test -z "$ac_dir" && ac_dir=.
8113 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8114 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8115 if test -n "$file_magic_test_file"; then
8116 case $deplibs_check_method in
8117 "file_magic "*)
8118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8119 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121 $EGREP "$file_magic_regex" > /dev/null; then
8122 :
8123 else
8124 cat <<_LT_EOF 1>&2
8125
8126 *** Warning: the command libtool uses to detect shared libraries,
8127 *** $file_magic_cmd, produces output that libtool cannot recognize.
8128 *** The result is that libtool may fail to recognize shared libraries
8129 *** as such. This will affect the creation of libtool libraries that
8130 *** depend on shared libraries, but programs linked with such libtool
8131 *** libraries will work regardless of this problem. Nevertheless, you
8132 *** may want to report the problem to your system manager and/or to
8133 *** bug-libtool@gnu.org
8134
8135 _LT_EOF
8136 fi ;;
8137 esac
8138 fi
8139 break
8140 fi
8141 done
8142 IFS=$lt_save_ifs
8143 MAGIC_CMD=$lt_save_MAGIC_CMD
8144 ;;
8145 esac
8146 fi
8147
8148 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8149 if test -n "$MAGIC_CMD"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151 $as_echo "$MAGIC_CMD" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158
8159
8160
8161 if test -z "$lt_cv_path_MAGIC_CMD"; then
8162 if test -n "$ac_tool_prefix"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8164 $as_echo_n "checking for file... " >&6; }
8165 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 case $MAGIC_CMD in
8169 [\\/*] | ?:[\\/]*)
8170 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8171 ;;
8172 *)
8173 lt_save_MAGIC_CMD=$MAGIC_CMD
8174 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176 for ac_dir in $ac_dummy; do
8177 IFS=$lt_save_ifs
8178 test -z "$ac_dir" && ac_dir=.
8179 if test -f "$ac_dir/file"; then
8180 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8181 if test -n "$file_magic_test_file"; then
8182 case $deplibs_check_method in
8183 "file_magic "*)
8184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187 $EGREP "$file_magic_regex" > /dev/null; then
8188 :
8189 else
8190 cat <<_LT_EOF 1>&2
8191
8192 *** Warning: the command libtool uses to detect shared libraries,
8193 *** $file_magic_cmd, produces output that libtool cannot recognize.
8194 *** The result is that libtool may fail to recognize shared libraries
8195 *** as such. This will affect the creation of libtool libraries that
8196 *** depend on shared libraries, but programs linked with such libtool
8197 *** libraries will work regardless of this problem. Nevertheless, you
8198 *** may want to report the problem to your system manager and/or to
8199 *** bug-libtool@gnu.org
8200
8201 _LT_EOF
8202 fi ;;
8203 esac
8204 fi
8205 break
8206 fi
8207 done
8208 IFS=$lt_save_ifs
8209 MAGIC_CMD=$lt_save_MAGIC_CMD
8210 ;;
8211 esac
8212 fi
8213
8214 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8215 if test -n "$MAGIC_CMD"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217 $as_echo "$MAGIC_CMD" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 fi
8222
8223
8224 else
8225 MAGIC_CMD=:
8226 fi
8227 fi
8228
8229 fi
8230 ;;
8231 esac
8232
8233 # Use C for the default configuration in the libtool script
8234
8235 lt_save_CC=$CC
8236 ac_ext=c
8237 ac_cpp='$CPP $CPPFLAGS'
8238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242
8243 # Source file extension for C test sources.
8244 ac_ext=c
8245
8246 # Object file extension for compiled C test sources.
8247 objext=o
8248 objext=$objext
8249
8250 # Code to be used in simple compile tests
8251 lt_simple_compile_test_code="int some_variable = 0;"
8252
8253 # Code to be used in simple link tests
8254 lt_simple_link_test_code='int main(){return(0);}'
8255
8256
8257
8258
8259
8260
8261
8262 # If no C compiler was specified, use CC.
8263 LTCC=${LTCC-"$CC"}
8264
8265 # If no C compiler flags were specified, use CFLAGS.
8266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8267
8268 # Allow CC to be a program name with arguments.
8269 compiler=$CC
8270
8271 # Save the default compiler, since it gets overwritten when the other
8272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8273 compiler_DEFAULT=$CC
8274
8275 # save warnings/boilerplate of simple test code
8276 ac_outfile=conftest.$ac_objext
8277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279 _lt_compiler_boilerplate=`cat conftest.err`
8280 $RM conftest*
8281
8282 ac_outfile=conftest.$ac_objext
8283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285 _lt_linker_boilerplate=`cat conftest.err`
8286 $RM -r conftest*
8287
8288
8289 ## CAVEAT EMPTOR:
8290 ## There is no encapsulation within the following macros, do not change
8291 ## the running order or otherwise move them around unless you know exactly
8292 ## what you are doing...
8293 if test -n "$compiler"; then
8294
8295 lt_prog_compiler_no_builtin_flag=
8296
8297 if test yes = "$GCC"; then
8298 case $cc_basename in
8299 nvcc*)
8300 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8301 *)
8302 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8303 esac
8304
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8306 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8307 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 lt_cv_prog_compiler_rtti_exceptions=no
8311 ac_outfile=conftest.$ac_objext
8312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8313 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8314 # Insert the option either (1) after the last *FLAGS variable, or
8315 # (2) before a word containing "conftest.", or (3) at the end.
8316 # Note that $ac_compile itself does not contain backslashes and begins
8317 # with a dollar sign (not a hyphen), so the echo should work correctly.
8318 # The option is referenced via a variable to avoid confusing sed.
8319 lt_compile=`echo "$ac_compile" | $SED \
8320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8322 -e 's:$: $lt_compiler_flag:'`
8323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8324 (eval "$lt_compile" 2>conftest.err)
8325 ac_status=$?
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 if (exit $ac_status) && test -s "$ac_outfile"; then
8329 # The compiler can only warn and ignore the option if not recognized
8330 # So say no if there are warnings other than the usual output.
8331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8334 lt_cv_prog_compiler_rtti_exceptions=yes
8335 fi
8336 fi
8337 $RM conftest*
8338
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8341 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8342
8343 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8345 else
8346 :
8347 fi
8348
8349 fi
8350
8351
8352
8353
8354
8355
8356 lt_prog_compiler_wl=
8357 lt_prog_compiler_pic=
8358 lt_prog_compiler_static=
8359
8360
8361 if test yes = "$GCC"; then
8362 lt_prog_compiler_wl='-Wl,'
8363 lt_prog_compiler_static='-static'
8364
8365 case $host_os in
8366 aix*)
8367 # All AIX code is PIC.
8368 if test ia64 = "$host_cpu"; then
8369 # AIX 5 now supports IA64 processor
8370 lt_prog_compiler_static='-Bstatic'
8371 fi
8372 lt_prog_compiler_pic='-fPIC'
8373 ;;
8374
8375 amigaos*)
8376 case $host_cpu in
8377 powerpc)
8378 # see comment about AmigaOS4 .so support
8379 lt_prog_compiler_pic='-fPIC'
8380 ;;
8381 m68k)
8382 # FIXME: we need at least 68020 code to build shared libraries, but
8383 # adding the '-m68020' flag to GCC prevents building anything better,
8384 # like '-m68040'.
8385 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8386 ;;
8387 esac
8388 ;;
8389
8390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8391 # PIC is the default for these OSes.
8392 ;;
8393
8394 mingw* | cygwin* | pw32* | os2* | cegcc*)
8395 # This hack is so that the source file can tell whether it is being
8396 # built for inclusion in a dll (and should export symbols for example).
8397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8398 # (--disable-auto-import) libraries
8399 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 case $host_os in
8401 os2*)
8402 lt_prog_compiler_static='$wl-static'
8403 ;;
8404 esac
8405 ;;
8406
8407 darwin* | rhapsody*)
8408 # PIC is the default on this platform
8409 # Common symbols not allowed in MH_DYLIB files
8410 lt_prog_compiler_pic='-fno-common'
8411 ;;
8412
8413 haiku*)
8414 # PIC is the default for Haiku.
8415 # The "-static" flag exists, but is broken.
8416 lt_prog_compiler_static=
8417 ;;
8418
8419 hpux*)
8420 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8421 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8422 # sets the default TLS model and affects inlining.
8423 case $host_cpu in
8424 hppa*64*)
8425 # +Z the default
8426 ;;
8427 *)
8428 lt_prog_compiler_pic='-fPIC'
8429 ;;
8430 esac
8431 ;;
8432
8433 interix[3-9]*)
8434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8435 # Instead, we relocate shared libraries at runtime.
8436 ;;
8437
8438 msdosdjgpp*)
8439 # Just because we use GCC doesn't mean we suddenly get shared libraries
8440 # on systems that don't support them.
8441 lt_prog_compiler_can_build_shared=no
8442 enable_shared=no
8443 ;;
8444
8445 *nto* | *qnx*)
8446 # QNX uses GNU C++, but need to define -shared option too, otherwise
8447 # it will coredump.
8448 lt_prog_compiler_pic='-fPIC -shared'
8449 ;;
8450
8451 sysv4*MP*)
8452 if test -d /usr/nec; then
8453 lt_prog_compiler_pic=-Kconform_pic
8454 fi
8455 ;;
8456
8457 *)
8458 lt_prog_compiler_pic='-fPIC'
8459 ;;
8460 esac
8461
8462 case $cc_basename in
8463 nvcc*) # Cuda Compiler Driver 2.2
8464 lt_prog_compiler_wl='-Xlinker '
8465 if test -n "$lt_prog_compiler_pic"; then
8466 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8467 fi
8468 ;;
8469 esac
8470 else
8471 # PORTME Check for flag to pass linker flags through the system compiler.
8472 case $host_os in
8473 aix*)
8474 lt_prog_compiler_wl='-Wl,'
8475 if test ia64 = "$host_cpu"; then
8476 # AIX 5 now supports IA64 processor
8477 lt_prog_compiler_static='-Bstatic'
8478 else
8479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8480 fi
8481 ;;
8482
8483 darwin* | rhapsody*)
8484 # PIC is the default on this platform
8485 # Common symbols not allowed in MH_DYLIB files
8486 lt_prog_compiler_pic='-fno-common'
8487 case $cc_basename in
8488 nagfor*)
8489 # NAG Fortran compiler
8490 lt_prog_compiler_wl='-Wl,-Wl,,'
8491 lt_prog_compiler_pic='-PIC'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494 esac
8495 ;;
8496
8497 mingw* | cygwin* | pw32* | os2* | cegcc*)
8498 # This hack is so that the source file can tell whether it is being
8499 # built for inclusion in a dll (and should export symbols for example).
8500 lt_prog_compiler_pic='-DDLL_EXPORT'
8501 case $host_os in
8502 os2*)
8503 lt_prog_compiler_static='$wl-static'
8504 ;;
8505 esac
8506 ;;
8507
8508 hpux9* | hpux10* | hpux11*)
8509 lt_prog_compiler_wl='-Wl,'
8510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8511 # not for PA HP-UX.
8512 case $host_cpu in
8513 hppa*64*|ia64*)
8514 # +Z the default
8515 ;;
8516 *)
8517 lt_prog_compiler_pic='+Z'
8518 ;;
8519 esac
8520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8521 lt_prog_compiler_static='$wl-a ${wl}archive'
8522 ;;
8523
8524 irix5* | irix6* | nonstopux*)
8525 lt_prog_compiler_wl='-Wl,'
8526 # PIC (with -KPIC) is the default.
8527 lt_prog_compiler_static='-non_shared'
8528 ;;
8529
8530 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8531 case $cc_basename in
8532 # old Intel for x86_64, which still supported -KPIC.
8533 ecc*)
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-KPIC'
8536 lt_prog_compiler_static='-static'
8537 ;;
8538 # icc used to be incompatible with GCC.
8539 # ICC 10 doesn't accept -KPIC any more.
8540 icc* | ifort*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-fPIC'
8543 lt_prog_compiler_static='-static'
8544 ;;
8545 # Lahey Fortran 8.1.
8546 lf95*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='--shared'
8549 lt_prog_compiler_static='--static'
8550 ;;
8551 nagfor*)
8552 # NAG Fortran compiler
8553 lt_prog_compiler_wl='-Wl,-Wl,,'
8554 lt_prog_compiler_pic='-PIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557 tcc*)
8558 # Fabrice Bellard et al's Tiny C Compiler
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-fPIC'
8561 lt_prog_compiler_static='-static'
8562 ;;
8563 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8564 # Portland Group compilers (*not* the Pentium gcc compiler,
8565 # which looks to be a dead project)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-fpic'
8568 lt_prog_compiler_static='-Bstatic'
8569 ;;
8570 ccc*)
8571 lt_prog_compiler_wl='-Wl,'
8572 # All Alpha code is PIC.
8573 lt_prog_compiler_static='-non_shared'
8574 ;;
8575 xl* | bgxl* | bgf* | mpixl*)
8576 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_pic='-qpic'
8579 lt_prog_compiler_static='-qstaticlink'
8580 ;;
8581 *)
8582 case `$CC -V 2>&1 | sed 5q` in
8583 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8584 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 lt_prog_compiler_wl=''
8588 ;;
8589 *Sun\ F* | *Sun*Fortran*)
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 lt_prog_compiler_wl='-Qoption ld '
8593 ;;
8594 *Sun\ C*)
8595 # Sun C 5.9
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 lt_prog_compiler_wl='-Wl,'
8599 ;;
8600 *Intel*\ [CF]*Compiler*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-fPIC'
8603 lt_prog_compiler_static='-static'
8604 ;;
8605 *Portland\ Group*)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 esac
8611 ;;
8612 esac
8613 ;;
8614
8615 newsos6)
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 ;;
8619
8620 *nto* | *qnx*)
8621 # QNX uses GNU C++, but need to define -shared option too, otherwise
8622 # it will coredump.
8623 lt_prog_compiler_pic='-fPIC -shared'
8624 ;;
8625
8626 osf3* | osf4* | osf5*)
8627 lt_prog_compiler_wl='-Wl,'
8628 # All OSF/1 code is PIC.
8629 lt_prog_compiler_static='-non_shared'
8630 ;;
8631
8632 rdos*)
8633 lt_prog_compiler_static='-non_shared'
8634 ;;
8635
8636 solaris*)
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 case $cc_basename in
8640 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8641 lt_prog_compiler_wl='-Qoption ld ';;
8642 *)
8643 lt_prog_compiler_wl='-Wl,';;
8644 esac
8645 ;;
8646
8647 sunos4*)
8648 lt_prog_compiler_wl='-Qoption ld '
8649 lt_prog_compiler_pic='-PIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 sysv4 | sysv4.2uw2* | sysv4.3*)
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 ;;
8658
8659 sysv4*MP*)
8660 if test -d /usr/nec; then
8661 lt_prog_compiler_pic='-Kconform_pic'
8662 lt_prog_compiler_static='-Bstatic'
8663 fi
8664 ;;
8665
8666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 ;;
8671
8672 unicos*)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_can_build_shared=no
8675 ;;
8676
8677 uts4*)
8678 lt_prog_compiler_pic='-pic'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681
8682 *)
8683 lt_prog_compiler_can_build_shared=no
8684 ;;
8685 esac
8686 fi
8687
8688 case $host_os in
8689 # For platforms that do not support PIC, -DPIC is meaningless:
8690 *djgpp*)
8691 lt_prog_compiler_pic=
8692 ;;
8693 *)
8694 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8695 ;;
8696 esac
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8699 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8700 if ${lt_cv_prog_compiler_pic+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8706 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8707 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8708
8709 #
8710 # Check to make sure the PIC flag actually works.
8711 #
8712 if test -n "$lt_prog_compiler_pic"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8714 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8715 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 lt_cv_prog_compiler_pic_works=no
8719 ac_outfile=conftest.$ac_objext
8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8722 # Insert the option either (1) after the last *FLAGS variable, or
8723 # (2) before a word containing "conftest.", or (3) at the end.
8724 # Note that $ac_compile itself does not contain backslashes and begins
8725 # with a dollar sign (not a hyphen), so the echo should work correctly.
8726 # The option is referenced via a variable to avoid confusing sed.
8727 lt_compile=`echo "$ac_compile" | $SED \
8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730 -e 's:$: $lt_compiler_flag:'`
8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732 (eval "$lt_compile" 2>conftest.err)
8733 ac_status=$?
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 if (exit $ac_status) && test -s "$ac_outfile"; then
8737 # The compiler can only warn and ignore the option if not recognized
8738 # So say no if there are warnings other than the usual output.
8739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8742 lt_cv_prog_compiler_pic_works=yes
8743 fi
8744 fi
8745 $RM conftest*
8746
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8749 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8750
8751 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8752 case $lt_prog_compiler_pic in
8753 "" | " "*) ;;
8754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8755 esac
8756 else
8757 lt_prog_compiler_pic=
8758 lt_prog_compiler_can_build_shared=no
8759 fi
8760
8761 fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 #
8774 # Check to make sure the static flag actually works.
8775 #
8776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8779 if ${lt_cv_prog_compiler_static_works+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_prog_compiler_static_works=no
8783 save_LDFLAGS=$LDFLAGS
8784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8787 # The linker can only warn and ignore the option if not recognized
8788 # So say no if there are warnings
8789 if test -s conftest.err; then
8790 # Append any errors to the config.log.
8791 cat conftest.err 1>&5
8792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794 if diff conftest.exp conftest.er2 >/dev/null; then
8795 lt_cv_prog_compiler_static_works=yes
8796 fi
8797 else
8798 lt_cv_prog_compiler_static_works=yes
8799 fi
8800 fi
8801 $RM -r conftest*
8802 LDFLAGS=$save_LDFLAGS
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8806 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8807
8808 if test yes = "$lt_cv_prog_compiler_static_works"; then
8809 :
8810 else
8811 lt_prog_compiler_static=
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8822 if ${lt_cv_prog_compiler_c_o+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 lt_cv_prog_compiler_c_o=no
8826 $RM -r conftest 2>/dev/null
8827 mkdir conftest
8828 cd conftest
8829 mkdir out
8830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8831
8832 lt_compiler_flag="-o out/conftest2.$ac_objext"
8833 # Insert the option either (1) after the last *FLAGS variable, or
8834 # (2) before a word containing "conftest.", or (3) at the end.
8835 # Note that $ac_compile itself does not contain backslashes and begins
8836 # with a dollar sign (not a hyphen), so the echo should work correctly.
8837 lt_compile=`echo "$ac_compile" | $SED \
8838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8840 -e 's:$: $lt_compiler_flag:'`
8841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8842 (eval "$lt_compile" 2>out/conftest.err)
8843 ac_status=$?
8844 cat out/conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8847 then
8848 # The compiler can only warn and ignore the option if not recognized
8849 # So say no if there are warnings
8850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8853 lt_cv_prog_compiler_c_o=yes
8854 fi
8855 fi
8856 chmod u+w . 2>&5
8857 $RM conftest*
8858 # SGI C++ compiler will create directory out/ii_files/ for
8859 # template instantiation
8860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8861 $RM out/* && rmdir out
8862 cd ..
8863 $RM -r conftest
8864 $RM conftest*
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8869
8870
8871
8872
8873
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8877 if ${lt_cv_prog_compiler_c_o+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 lt_cv_prog_compiler_c_o=no
8881 $RM -r conftest 2>/dev/null
8882 mkdir conftest
8883 cd conftest
8884 mkdir out
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886
8887 lt_compiler_flag="-o out/conftest2.$ac_objext"
8888 # Insert the option either (1) after the last *FLAGS variable, or
8889 # (2) before a word containing "conftest.", or (3) at the end.
8890 # Note that $ac_compile itself does not contain backslashes and begins
8891 # with a dollar sign (not a hyphen), so the echo should work correctly.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>out/conftest.err)
8898 ac_status=$?
8899 cat out/conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8902 then
8903 # The compiler can only warn and ignore the option if not recognized
8904 # So say no if there are warnings
8905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8908 lt_cv_prog_compiler_c_o=yes
8909 fi
8910 fi
8911 chmod u+w . 2>&5
8912 $RM conftest*
8913 # SGI C++ compiler will create directory out/ii_files/ for
8914 # template instantiation
8915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8916 $RM out/* && rmdir out
8917 cd ..
8918 $RM -r conftest
8919 $RM conftest*
8920
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8924
8925
8926
8927
8928 hard_links=nottested
8929 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8930 # do not overwrite the value of need_locks provided by the user
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8932 $as_echo_n "checking if we can lock with hard links... " >&6; }
8933 hard_links=yes
8934 $RM conftest*
8935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8936 touch conftest.a
8937 ln conftest.a conftest.b 2>&5 || hard_links=no
8938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8940 $as_echo "$hard_links" >&6; }
8941 if test no = "$hard_links"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8943 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8944 need_locks=warn
8945 fi
8946 else
8947 need_locks=no
8948 fi
8949
8950
8951
8952
8953
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8957
8958 runpath_var=
8959 allow_undefined_flag=
8960 always_export_symbols=no
8961 archive_cmds=
8962 archive_expsym_cmds=
8963 compiler_needs_object=no
8964 enable_shared_with_static_runtimes=no
8965 export_dynamic_flag_spec=
8966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8967 hardcode_automatic=no
8968 hardcode_direct=no
8969 hardcode_direct_absolute=no
8970 hardcode_libdir_flag_spec=
8971 hardcode_libdir_separator=
8972 hardcode_minus_L=no
8973 hardcode_shlibpath_var=unsupported
8974 inherit_rpath=no
8975 link_all_deplibs=unknown
8976 module_cmds=
8977 module_expsym_cmds=
8978 old_archive_from_new_cmds=
8979 old_archive_from_expsyms_cmds=
8980 thread_safe_flag_spec=
8981 whole_archive_flag_spec=
8982 # include_expsyms should be a list of space-separated symbols to be *always*
8983 # included in the symbol list
8984 include_expsyms=
8985 # exclude_expsyms can be an extended regexp of symbols to exclude
8986 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8987 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8988 # as well as any symbol that contains 'd'.
8989 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8991 # platforms (ab)use it in PIC code, but their linkers get confused if
8992 # the symbol is explicitly referenced. Since portable code cannot
8993 # rely on this symbol name, it's probably fine to never include it in
8994 # preloaded symbol tables.
8995 # Exclude shared library initialization/finalization symbols.
8996 extract_expsyms_cmds=
8997
8998 case $host_os in
8999 cygwin* | mingw* | pw32* | cegcc*)
9000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9001 # When not using gcc, we currently assume that we are using
9002 # Microsoft Visual C++.
9003 if test yes != "$GCC"; then
9004 with_gnu_ld=no
9005 fi
9006 ;;
9007 interix*)
9008 # we just hope/assume this is gcc and not c89 (= MSVC++)
9009 with_gnu_ld=yes
9010 ;;
9011 openbsd* | bitrig*)
9012 with_gnu_ld=no
9013 ;;
9014 esac
9015
9016 ld_shlibs=yes
9017
9018 # On some targets, GNU ld is compatible enough with the native linker
9019 # that we're better off using the native interface for both.
9020 lt_use_gnu_ld_interface=no
9021 if test yes = "$with_gnu_ld"; then
9022 case $host_os in
9023 aix*)
9024 # The AIX port of GNU ld has always aspired to compatibility
9025 # with the native linker. However, as the warning in the GNU ld
9026 # block says, versions before 2.19.5* couldn't really create working
9027 # shared libraries, regardless of the interface used.
9028 case `$LD -v 2>&1` in
9029 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9030 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9031 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9032 *)
9033 lt_use_gnu_ld_interface=yes
9034 ;;
9035 esac
9036 ;;
9037 *)
9038 lt_use_gnu_ld_interface=yes
9039 ;;
9040 esac
9041 fi
9042
9043 if test yes = "$lt_use_gnu_ld_interface"; then
9044 # If archive_cmds runs LD, not CC, wlarc should be empty
9045 wlarc='$wl'
9046
9047 # Set some defaults for GNU ld with shared library support. These
9048 # are reset later if shared libraries are not supported. Putting them
9049 # here allows them to be overridden if necessary.
9050 runpath_var=LD_RUN_PATH
9051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9052 export_dynamic_flag_spec='$wl--export-dynamic'
9053 # ancient GNU ld didn't support --whole-archive et. al.
9054 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9055 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9056 else
9057 whole_archive_flag_spec=
9058 fi
9059 supports_anon_versioning=no
9060 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9061 *GNU\ gold*) supports_anon_versioning=yes ;;
9062 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9065 *\ 2.11.*) ;; # other 2.11 versions
9066 *) supports_anon_versioning=yes ;;
9067 esac
9068
9069 # See if GNU ld supports shared libraries.
9070 case $host_os in
9071 aix[3-9]*)
9072 # On AIX/PPC, the GNU linker is very broken
9073 if test ia64 != "$host_cpu"; then
9074 ld_shlibs=no
9075 cat <<_LT_EOF 1>&2
9076
9077 *** Warning: the GNU linker, at least up to release 2.19, is reported
9078 *** to be unable to reliably create shared libraries on AIX.
9079 *** Therefore, libtool is disabling shared libraries support. If you
9080 *** really care for shared libraries, you may want to install binutils
9081 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9082 *** You will then need to restart the configuration process.
9083
9084 _LT_EOF
9085 fi
9086 ;;
9087
9088 amigaos*)
9089 case $host_cpu in
9090 powerpc)
9091 # see comment about AmigaOS4 .so support
9092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9093 archive_expsym_cmds=''
9094 ;;
9095 m68k)
9096 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)'
9097 hardcode_libdir_flag_spec='-L$libdir'
9098 hardcode_minus_L=yes
9099 ;;
9100 esac
9101 ;;
9102
9103 beos*)
9104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9105 allow_undefined_flag=unsupported
9106 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9107 # support --undefined. This deserves some investigation. FIXME
9108 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9109 else
9110 ld_shlibs=no
9111 fi
9112 ;;
9113
9114 cygwin* | mingw* | pw32* | cegcc*)
9115 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9116 # as there is no search path for DLLs.
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 export_dynamic_flag_spec='$wl--export-all-symbols'
9119 allow_undefined_flag=unsupported
9120 always_export_symbols=no
9121 enable_shared_with_static_runtimes=yes
9122 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'
9123 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9124
9125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9127 # If the export-symbols file already is a .def file, use it as
9128 # is; otherwise, prepend EXPORTS...
9129 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9130 cp $export_symbols $output_objdir/$soname.def;
9131 else
9132 echo EXPORTS > $output_objdir/$soname.def;
9133 cat $export_symbols >> $output_objdir/$soname.def;
9134 fi~
9135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9136 else
9137 ld_shlibs=no
9138 fi
9139 ;;
9140
9141 haiku*)
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143 link_all_deplibs=yes
9144 ;;
9145
9146 os2*)
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_minus_L=yes
9149 allow_undefined_flag=unsupported
9150 shrext_cmds=.dll
9151 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9154 $ECHO EXPORTS >> $output_objdir/$libname.def~
9155 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9156 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9157 emximp -o $lib $output_objdir/$libname.def'
9158 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9161 $ECHO EXPORTS >> $output_objdir/$libname.def~
9162 prefix_cmds="$SED"~
9163 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9164 prefix_cmds="$prefix_cmds -e 1d";
9165 fi~
9166 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9167 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9169 emximp -o $lib $output_objdir/$libname.def'
9170 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9171 enable_shared_with_static_runtimes=yes
9172 ;;
9173
9174 interix[3-9]*)
9175 hardcode_direct=no
9176 hardcode_shlibpath_var=no
9177 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9178 export_dynamic_flag_spec='$wl-E'
9179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9180 # Instead, shared libraries are loaded at an image base (0x10000000 by
9181 # default) and relocated if they conflict, which is a slow very memory
9182 # consuming and fragmenting process. To avoid this, we pick a random,
9183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9186 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'
9187 ;;
9188
9189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9190 tmp_diet=no
9191 if test linux-dietlibc = "$host_os"; then
9192 case $cc_basename in
9193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9194 esac
9195 fi
9196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9197 && test no = "$tmp_diet"
9198 then
9199 tmp_addflag=' $pic_flag'
9200 tmp_sharedflag='-shared'
9201 case $cc_basename,$host_cpu in
9202 pgcc*) # Portland Group C compiler
9203 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'
9204 tmp_addflag=' $pic_flag'
9205 ;;
9206 pgf77* | pgf90* | pgf95* | pgfortran*)
9207 # Portland Group f77 and f90 compilers
9208 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'
9209 tmp_addflag=' $pic_flag -Mnomain' ;;
9210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9211 tmp_addflag=' -i_dynamic' ;;
9212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9213 tmp_addflag=' -i_dynamic -nofor_main' ;;
9214 ifc* | ifort*) # Intel Fortran compiler
9215 tmp_addflag=' -nofor_main' ;;
9216 lf95*) # Lahey Fortran 8.1
9217 whole_archive_flag_spec=
9218 tmp_sharedflag='--shared' ;;
9219 nagfor*) # NAGFOR 5.3
9220 tmp_sharedflag='-Wl,-shared' ;;
9221 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9222 tmp_sharedflag='-qmkshrobj'
9223 tmp_addflag= ;;
9224 nvcc*) # Cuda Compiler Driver 2.2
9225 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'
9226 compiler_needs_object=yes
9227 ;;
9228 esac
9229 case `$CC -V 2>&1 | sed 5q` in
9230 *Sun\ C*) # Sun C 5.9
9231 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'
9232 compiler_needs_object=yes
9233 tmp_sharedflag='-G' ;;
9234 *Sun\ F*) # Sun Fortran 8.3
9235 tmp_sharedflag='-G' ;;
9236 esac
9237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9238
9239 if test yes = "$supports_anon_versioning"; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9244 fi
9245
9246 case $cc_basename in
9247 tcc*)
9248 export_dynamic_flag_spec='-rdynamic'
9249 ;;
9250 xlf* | bgf* | bgxlf* | mpixlf*)
9251 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9252 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9254 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9255 if test yes = "$supports_anon_versioning"; then
9256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258 echo "local: *; };" >> $output_objdir/$libname.ver~
9259 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9260 fi
9261 ;;
9262 esac
9263 else
9264 ld_shlibs=no
9265 fi
9266 ;;
9267
9268 netbsd*)
9269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9270 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9271 wlarc=
9272 else
9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9275 fi
9276 ;;
9277
9278 solaris*)
9279 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9280 ld_shlibs=no
9281 cat <<_LT_EOF 1>&2
9282
9283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9284 *** create shared libraries on Solaris systems. Therefore, libtool
9285 *** is disabling shared libraries support. We urge you to upgrade GNU
9286 *** binutils to release 2.9.1 or newer. Another option is to modify
9287 *** your PATH or compiler configuration so that the native linker is
9288 *** used, and then restart.
9289
9290 _LT_EOF
9291 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298
9299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9300 case `$LD -v 2>&1` in
9301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9302 ld_shlibs=no
9303 cat <<_LT_EOF 1>&2
9304
9305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9306 *** reliably create shared libraries on SCO systems. Therefore, libtool
9307 *** is disabling shared libraries support. We urge you to upgrade GNU
9308 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9309 *** your PATH or compiler configuration so that the native linker is
9310 *** used, and then restart.
9311
9312 _LT_EOF
9313 ;;
9314 *)
9315 # For security reasons, it is highly recommended that you always
9316 # use absolute paths for naming shared libraries, and exclude the
9317 # DT_RUNPATH tag from executables and libraries. But doing so
9318 # requires that you compile everything twice, which is a pain.
9319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327 esac
9328 ;;
9329
9330 sunos4*)
9331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9332 wlarc=
9333 hardcode_direct=yes
9334 hardcode_shlibpath_var=no
9335 ;;
9336
9337 *)
9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9340 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9341 else
9342 ld_shlibs=no
9343 fi
9344 ;;
9345 esac
9346
9347 if test no = "$ld_shlibs"; then
9348 runpath_var=
9349 hardcode_libdir_flag_spec=
9350 export_dynamic_flag_spec=
9351 whole_archive_flag_spec=
9352 fi
9353 else
9354 # PORTME fill in a description of your system's linker (not GNU ld)
9355 case $host_os in
9356 aix3*)
9357 allow_undefined_flag=unsupported
9358 always_export_symbols=yes
9359 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'
9360 # Note: this linker hardcodes the directories in LIBPATH if there
9361 # are no directories specified by -L.
9362 hardcode_minus_L=yes
9363 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9364 # Neither direct hardcoding nor static linking is supported with a
9365 # broken collect2.
9366 hardcode_direct=unsupported
9367 fi
9368 ;;
9369
9370 aix[4-9]*)
9371 if test ia64 = "$host_cpu"; then
9372 # On IA64, the linker does run time linking by default, so we don't
9373 # have to do anything special.
9374 aix_use_runtimelinking=no
9375 exp_sym_flag='-Bexport'
9376 no_entry_flag=
9377 else
9378 # If we're using GNU nm, then we don't want the "-C" option.
9379 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9380 # Without the "-l" option, or with the "-B" option, AIX nm treats
9381 # weak defined symbols like other global defined symbols, whereas
9382 # GNU nm marks them as "W".
9383 # While the 'weak' keyword is ignored in the Export File, we need
9384 # it in the Import File for the 'aix-soname' feature, so we have
9385 # to replace the "-B" option with "-P" for AIX nm.
9386 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9387 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'
9388 else
9389 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'
9390 fi
9391 aix_use_runtimelinking=no
9392
9393 # Test if we are trying to use run time linking or normal
9394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9395 # have runtime linking enabled, and use it for executables.
9396 # For shared libraries, we enable/disable runtime linking
9397 # depending on the kind of the shared library created -
9398 # when "with_aix_soname,aix_use_runtimelinking" is:
9399 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9400 # "aix,yes" lib.so shared, rtl:yes, for executables
9401 # lib.a static archive
9402 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9403 # lib.a(lib.so.V) shared, rtl:no, for executables
9404 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9405 # lib.a(lib.so.V) shared, rtl:no
9406 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9407 # lib.a static archive
9408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9409 for ld_flag in $LDFLAGS; do
9410 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9411 aix_use_runtimelinking=yes
9412 break
9413 fi
9414 done
9415 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9416 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9417 # so we don't have lib.a shared libs to link our executables.
9418 # We have to force runtime linking in this case.
9419 aix_use_runtimelinking=yes
9420 LDFLAGS="$LDFLAGS -Wl,-brtl"
9421 fi
9422 ;;
9423 esac
9424
9425 exp_sym_flag='-bexport'
9426 no_entry_flag='-bnoentry'
9427 fi
9428
9429 # When large executables or shared objects are built, AIX ld can
9430 # have problems creating the table of contents. If linking a library
9431 # or program results in "error TOC overflow" add -mminimal-toc to
9432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9434
9435 archive_cmds=''
9436 hardcode_direct=yes
9437 hardcode_direct_absolute=yes
9438 hardcode_libdir_separator=':'
9439 link_all_deplibs=yes
9440 file_list_spec='$wl-f,'
9441 case $with_aix_soname,$aix_use_runtimelinking in
9442 aix,*) ;; # traditional, no import file
9443 svr4,* | *,yes) # use import file
9444 # The Import File defines what to hardcode.
9445 hardcode_direct=no
9446 hardcode_direct_absolute=no
9447 ;;
9448 esac
9449
9450 if test yes = "$GCC"; then
9451 case $host_os in aix4.[012]|aix4.[012].*)
9452 # We only want to do this on AIX 4.2 and lower, the check
9453 # below for broken collect2 doesn't work under 4.3+
9454 collect2name=`$CC -print-prog-name=collect2`
9455 if test -f "$collect2name" &&
9456 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9457 then
9458 # We have reworked collect2
9459 :
9460 else
9461 # We have old collect2
9462 hardcode_direct=unsupported
9463 # It fails to find uninstalled libraries when the uninstalled
9464 # path is not listed in the libpath. Setting hardcode_minus_L
9465 # to unsupported forces relinking
9466 hardcode_minus_L=yes
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_libdir_separator=
9469 fi
9470 ;;
9471 esac
9472 shared_flag='-shared'
9473 if test yes = "$aix_use_runtimelinking"; then
9474 shared_flag="$shared_flag "'$wl-G'
9475 fi
9476 # Need to ensure runtime linking is disabled for the traditional
9477 # shared library, or the linker may eventually find shared libraries
9478 # /with/ Import File - we do not want to mix them.
9479 shared_flag_aix='-shared'
9480 shared_flag_svr4='-shared $wl-G'
9481 else
9482 # not using gcc
9483 if test ia64 = "$host_cpu"; then
9484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9485 # chokes on -Wl,-G. The following line is correct:
9486 shared_flag='-G'
9487 else
9488 if test yes = "$aix_use_runtimelinking"; then
9489 shared_flag='$wl-G'
9490 else
9491 shared_flag='$wl-bM:SRE'
9492 fi
9493 shared_flag_aix='$wl-bM:SRE'
9494 shared_flag_svr4='$wl-G'
9495 fi
9496 fi
9497
9498 export_dynamic_flag_spec='$wl-bexpall'
9499 # It seems that -bexpall does not export symbols beginning with
9500 # underscore (_), so it is better to generate a list of symbols to export.
9501 always_export_symbols=yes
9502 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9503 # Warning - without using the other runtime loading flags (-brtl),
9504 # -berok will link without error, but may produce a broken library.
9505 allow_undefined_flag='-berok'
9506 # Determine the default libpath from the value encoded in an
9507 # empty executable.
9508 if test set = "${lt_cv_aix_libpath+set}"; then
9509 aix_libpath=$lt_cv_aix_libpath
9510 else
9511 if ${lt_cv_aix_libpath_+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516
9517 int
9518 main ()
9519 {
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 if ac_fn_c_try_link "$LINENO"; then :
9526
9527 lt_aix_libpath_sed='
9528 /Import File Strings/,/^$/ {
9529 /^0/ {
9530 s/^0 *\([^ ]*\) *$/\1/
9531 p
9532 }
9533 }'
9534 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535 # Check for a 64-bit object if we didn't find anything.
9536 if test -z "$lt_cv_aix_libpath_"; then
9537 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9538 fi
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 if test -z "$lt_cv_aix_libpath_"; then
9543 lt_cv_aix_libpath_=/usr/lib:/lib
9544 fi
9545
9546 fi
9547
9548 aix_libpath=$lt_cv_aix_libpath_
9549 fi
9550
9551 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9552 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
9553 else
9554 if test ia64 = "$host_cpu"; then
9555 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9556 allow_undefined_flag="-z nodefs"
9557 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"
9558 else
9559 # Determine the default libpath from the value encoded in an
9560 # empty executable.
9561 if test set = "${lt_cv_aix_libpath+set}"; then
9562 aix_libpath=$lt_cv_aix_libpath
9563 else
9564 if ${lt_cv_aix_libpath_+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569
9570 int
9571 main ()
9572 {
9573
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579
9580 lt_aix_libpath_sed='
9581 /Import File Strings/,/^$/ {
9582 /^0/ {
9583 s/^0 *\([^ ]*\) *$/\1/
9584 p
9585 }
9586 }'
9587 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9588 # Check for a 64-bit object if we didn't find anything.
9589 if test -z "$lt_cv_aix_libpath_"; then
9590 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9591 fi
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 if test -z "$lt_cv_aix_libpath_"; then
9596 lt_cv_aix_libpath_=/usr/lib:/lib
9597 fi
9598
9599 fi
9600
9601 aix_libpath=$lt_cv_aix_libpath_
9602 fi
9603
9604 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9605 # Warning - without using the other run time loading flags,
9606 # -berok will link without error, but may produce a broken library.
9607 no_undefined_flag=' $wl-bernotok'
9608 allow_undefined_flag=' $wl-berok'
9609 if test yes = "$with_gnu_ld"; then
9610 # We only use this code for GNU lds that support --whole-archive.
9611 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9612 else
9613 # Exported symbols can be pulled into shared objects from archives
9614 whole_archive_flag_spec='$convenience'
9615 fi
9616 archive_cmds_need_lc=yes
9617 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9618 # -brtl affects multiple linker settings, -berok does not and is overridden later
9619 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9620 if test svr4 != "$with_aix_soname"; then
9621 # This is similar to how AIX traditionally builds its shared libraries.
9622 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'
9623 fi
9624 if test aix != "$with_aix_soname"; then
9625 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'
9626 else
9627 # used by -dlpreopen to get the symbols
9628 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9629 fi
9630 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9631 fi
9632 fi
9633 ;;
9634
9635 amigaos*)
9636 case $host_cpu in
9637 powerpc)
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9640 archive_expsym_cmds=''
9641 ;;
9642 m68k)
9643 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)'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_minus_L=yes
9646 ;;
9647 esac
9648 ;;
9649
9650 bsdi[45]*)
9651 export_dynamic_flag_spec=-rdynamic
9652 ;;
9653
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 case $cc_basename in
9660 cl*)
9661 # Native MSVC
9662 hardcode_libdir_flag_spec=' '
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=yes
9665 file_list_spec='@'
9666 # Tell ltmain to make .lib files, not .a files.
9667 libext=lib
9668 # Tell ltmain to make .dll files, not .so files.
9669 shrext_cmds=.dll
9670 # FIXME: Setting linknames here is a bad hack.
9671 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9672 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9673 cp "$export_symbols" "$output_objdir/$soname.def";
9674 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9675 else
9676 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9677 fi~
9678 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9679 linknames='
9680 # The linker will not automatically build a static lib if we build a DLL.
9681 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9682 enable_shared_with_static_runtimes=yes
9683 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9685 # Don't use ranlib
9686 old_postinstall_cmds='chmod 644 $oldlib'
9687 postlink_cmds='lt_outputfile="@OUTPUT@"~
9688 lt_tool_outputfile="@TOOL_OUTPUT@"~
9689 case $lt_outputfile in
9690 *.exe|*.EXE) ;;
9691 *)
9692 lt_outputfile=$lt_outputfile.exe
9693 lt_tool_outputfile=$lt_tool_outputfile.exe
9694 ;;
9695 esac~
9696 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9697 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9698 $RM "$lt_outputfile.manifest";
9699 fi'
9700 ;;
9701 *)
9702 # Assume MSVC wrapper
9703 hardcode_libdir_flag_spec=' '
9704 allow_undefined_flag=unsupported
9705 # Tell ltmain to make .lib files, not .a files.
9706 libext=lib
9707 # Tell ltmain to make .dll files, not .so files.
9708 shrext_cmds=.dll
9709 # FIXME: Setting linknames here is a bad hack.
9710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9711 # The linker will automatically build a .lib file if we build a DLL.
9712 old_archive_from_new_cmds='true'
9713 # FIXME: Should let the user specify the lib program.
9714 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9715 enable_shared_with_static_runtimes=yes
9716 ;;
9717 esac
9718 ;;
9719
9720 darwin* | rhapsody*)
9721
9722
9723 archive_cmds_need_lc=no
9724 hardcode_direct=no
9725 hardcode_automatic=yes
9726 hardcode_shlibpath_var=unsupported
9727 if test yes = "$lt_cv_ld_force_load"; then
9728 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\"`'
9729
9730 else
9731 whole_archive_flag_spec=''
9732 fi
9733 link_all_deplibs=yes
9734 allow_undefined_flag=$_lt_dar_allow_undefined
9735 case $cc_basename in
9736 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9737 *) _lt_dar_can_shared=$GCC ;;
9738 esac
9739 if test yes = "$_lt_dar_can_shared"; then
9740 output_verbose_link_cmd=func_echo_all
9741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9743 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"
9744 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"
9745
9746 else
9747 ld_shlibs=no
9748 fi
9749
9750 ;;
9751
9752 dgux*)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_shlibpath_var=no
9756 ;;
9757
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9761 # extra space).
9762 freebsd2.2*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9770 freebsd2.*)
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_minus_L=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd* | dragonfly*)
9779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 hpux9*)
9786 if test yes = "$GCC"; then
9787 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'
9788 else
9789 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'
9790 fi
9791 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9794
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L=yes
9798 export_dynamic_flag_spec='$wl-E'
9799 ;;
9800
9801 hpux10*)
9802 if test yes,no = "$GCC,$with_gnu_ld"; then
9803 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 else
9805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9806 fi
9807 if test no = "$with_gnu_ld"; then
9808 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9809 hardcode_libdir_separator=:
9810 hardcode_direct=yes
9811 hardcode_direct_absolute=yes
9812 export_dynamic_flag_spec='$wl-E'
9813 # hardcode_minus_L: Not really in the search PATH,
9814 # but as the default location of the library.
9815 hardcode_minus_L=yes
9816 fi
9817 ;;
9818
9819 hpux11*)
9820 if test yes,no = "$GCC,$with_gnu_ld"; then
9821 case $host_cpu in
9822 hppa*64*)
9823 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 ;;
9825 ia64*)
9826 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827 ;;
9828 *)
9829 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 ;;
9831 esac
9832 else
9833 case $host_cpu in
9834 hppa*64*)
9835 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 ;;
9837 ia64*)
9838 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9839 ;;
9840 *)
9841
9842 # Older versions of the 11.00 compiler do not understand -b yet
9843 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9845 $as_echo_n "checking if $CC understands -b... " >&6; }
9846 if ${lt_cv_prog_compiler__b+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 lt_cv_prog_compiler__b=no
9850 save_LDFLAGS=$LDFLAGS
9851 LDFLAGS="$LDFLAGS -b"
9852 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9854 # The linker can only warn and ignore the option if not recognized
9855 # So say no if there are warnings
9856 if test -s conftest.err; then
9857 # Append any errors to the config.log.
9858 cat conftest.err 1>&5
9859 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9861 if diff conftest.exp conftest.er2 >/dev/null; then
9862 lt_cv_prog_compiler__b=yes
9863 fi
9864 else
9865 lt_cv_prog_compiler__b=yes
9866 fi
9867 fi
9868 $RM -r conftest*
9869 LDFLAGS=$save_LDFLAGS
9870
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9873 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9874
9875 if test yes = "$lt_cv_prog_compiler__b"; then
9876 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 fi
9880
9881 ;;
9882 esac
9883 fi
9884 if test no = "$with_gnu_ld"; then
9885 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9886 hardcode_libdir_separator=:
9887
9888 case $host_cpu in
9889 hppa*64*|ia64*)
9890 hardcode_direct=no
9891 hardcode_shlibpath_var=no
9892 ;;
9893 *)
9894 hardcode_direct=yes
9895 hardcode_direct_absolute=yes
9896 export_dynamic_flag_spec='$wl-E'
9897
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 ;;
9902 esac
9903 fi
9904 ;;
9905
9906 irix5* | irix6* | nonstopux*)
9907 if test yes = "$GCC"; then
9908 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'
9909 # Try to use the -exported_symbol ld option, if it does not
9910 # work, assume that -exports_file does not work either and
9911 # implicitly export all symbols.
9912 # This should be the same for all languages, so no per-tag cache variable.
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9914 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9915 if ${lt_cv_irix_exported_symbol+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 save_LDFLAGS=$LDFLAGS
9919 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int foo (void) { return 0; }
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"; then :
9925 lt_cv_irix_exported_symbol=yes
9926 else
9927 lt_cv_irix_exported_symbol=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LDFLAGS=$save_LDFLAGS
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9934 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9935 if test yes = "$lt_cv_irix_exported_symbol"; then
9936 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'
9937 fi
9938 else
9939 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'
9940 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'
9941 fi
9942 archive_cmds_need_lc='no'
9943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9944 hardcode_libdir_separator=:
9945 inherit_rpath=yes
9946 link_all_deplibs=yes
9947 ;;
9948
9949 linux*)
9950 case $cc_basename in
9951 tcc*)
9952 # Fabrice Bellard et al's Tiny C Compiler
9953 ld_shlibs=yes
9954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9955 ;;
9956 esac
9957 ;;
9958
9959 netbsd*)
9960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9962 else
9963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9964 fi
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 newsos6)
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes
9973 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9974 hardcode_libdir_separator=:
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 *nto* | *qnx*)
9979 ;;
9980
9981 openbsd* | bitrig*)
9982 if test -f /usr/libexec/ld.so; then
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 hardcode_direct_absolute=yes
9986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9989 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9990 export_dynamic_flag_spec='$wl-E'
9991 else
9992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9993 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9994 fi
9995 else
9996 ld_shlibs=no
9997 fi
9998 ;;
9999
10000 os2*)
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_minus_L=yes
10003 allow_undefined_flag=unsupported
10004 shrext_cmds=.dll
10005 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10008 $ECHO EXPORTS >> $output_objdir/$libname.def~
10009 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011 emximp -o $lib $output_objdir/$libname.def'
10012 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10015 $ECHO EXPORTS >> $output_objdir/$libname.def~
10016 prefix_cmds="$SED"~
10017 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10018 prefix_cmds="$prefix_cmds -e 1d";
10019 fi~
10020 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10021 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10022 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10023 emximp -o $lib $output_objdir/$libname.def'
10024 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10025 enable_shared_with_static_runtimes=yes
10026 ;;
10027
10028 osf3*)
10029 if test yes = "$GCC"; then
10030 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10031 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'
10032 else
10033 allow_undefined_flag=' -expect_unresolved \*'
10034 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'
10035 fi
10036 archive_cmds_need_lc='no'
10037 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10038 hardcode_libdir_separator=:
10039 ;;
10040
10041 osf4* | osf5*) # as osf3* with the addition of -msym flag
10042 if test yes = "$GCC"; then
10043 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10044 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'
10045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10046 else
10047 allow_undefined_flag=' -expect_unresolved \*'
10048 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'
10049 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~
10050 $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'
10051
10052 # Both c and cxx compiler support -rpath directly
10053 hardcode_libdir_flag_spec='-rpath $libdir'
10054 fi
10055 archive_cmds_need_lc='no'
10056 hardcode_libdir_separator=:
10057 ;;
10058
10059 solaris*)
10060 no_undefined_flag=' -z defs'
10061 if test yes = "$GCC"; then
10062 wlarc='$wl'
10063 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065 $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'
10066 else
10067 case `$CC -V 2>&1` in
10068 *"Compilers 5.0"*)
10069 wlarc=''
10070 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10073 ;;
10074 *)
10075 wlarc='$wl'
10076 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10078 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10079 ;;
10080 esac
10081 fi
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 hardcode_shlibpath_var=no
10084 case $host_os in
10085 solaris2.[0-5] | solaris2.[0-5].*) ;;
10086 *)
10087 # The compiler driver will combine and reorder linker options,
10088 # but understands '-z linker_flag'. GCC discards it without '$wl',
10089 # but is careful enough not to reorder.
10090 # Supported since Solaris 2.6 (maybe 2.5.1?)
10091 if test yes = "$GCC"; then
10092 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10093 else
10094 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10095 fi
10096 ;;
10097 esac
10098 link_all_deplibs=yes
10099 ;;
10100
10101 sunos4*)
10102 if test sequent = "$host_vendor"; then
10103 # Use $CC to link under sequent, because it throws in some extra .o
10104 # files that make .init and .fini sections work.
10105 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10106 else
10107 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10108 fi
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 hardcode_direct=yes
10111 hardcode_minus_L=yes
10112 hardcode_shlibpath_var=no
10113 ;;
10114
10115 sysv4)
10116 case $host_vendor in
10117 sni)
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_direct=yes # is this really true???
10120 ;;
10121 siemens)
10122 ## LD is ld it makes a PLAMLIB
10123 ## CC just makes a GrossModule.
10124 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10125 reload_cmds='$CC -r -o $output$reload_objs'
10126 hardcode_direct=no
10127 ;;
10128 motorola)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10131 ;;
10132 esac
10133 runpath_var='LD_RUN_PATH'
10134 hardcode_shlibpath_var=no
10135 ;;
10136
10137 sysv4.3*)
10138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139 hardcode_shlibpath_var=no
10140 export_dynamic_flag_spec='-Bexport'
10141 ;;
10142
10143 sysv4*MP*)
10144 if test -d /usr/nec; then
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_shlibpath_var=no
10147 runpath_var=LD_RUN_PATH
10148 hardcode_runpath_var=yes
10149 ld_shlibs=yes
10150 fi
10151 ;;
10152
10153 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10154 no_undefined_flag='$wl-z,text'
10155 archive_cmds_need_lc=no
10156 hardcode_shlibpath_var=no
10157 runpath_var='LD_RUN_PATH'
10158
10159 if test yes = "$GCC"; then
10160 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 fi
10166 ;;
10167
10168 sysv5* | sco3.2v5* | sco5v6*)
10169 # Note: We CANNOT use -z defs as we might desire, because we do not
10170 # link with -lc, and that would cause any symbols used from libc to
10171 # always be unresolved, which means just about no library would
10172 # ever link correctly. If we're not using GNU ld we use -z text
10173 # though, which does catch some bad symbols but isn't as heavy-handed
10174 # as -z defs.
10175 no_undefined_flag='$wl-z,text'
10176 allow_undefined_flag='$wl-z,nodefs'
10177 archive_cmds_need_lc=no
10178 hardcode_shlibpath_var=no
10179 hardcode_libdir_flag_spec='$wl-R,$libdir'
10180 hardcode_libdir_separator=':'
10181 link_all_deplibs=yes
10182 export_dynamic_flag_spec='$wl-Bexport'
10183 runpath_var='LD_RUN_PATH'
10184
10185 if test yes = "$GCC"; then
10186 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 else
10189 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 fi
10192 ;;
10193
10194 uts4*)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 hardcode_shlibpath_var=no
10198 ;;
10199
10200 *)
10201 ld_shlibs=no
10202 ;;
10203 esac
10204
10205 if test sni = "$host_vendor"; then
10206 case $host in
10207 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10208 export_dynamic_flag_spec='$wl-Blargedynsym'
10209 ;;
10210 esac
10211 fi
10212 fi
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10215 $as_echo "$ld_shlibs" >&6; }
10216 test no = "$ld_shlibs" && can_build_shared=no
10217
10218 with_gnu_ld=$with_gnu_ld
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 #
10235 # Do we need to explicitly link libc?
10236 #
10237 case "x$archive_cmds_need_lc" in
10238 x|xyes)
10239 # Assume -lc should be added
10240 archive_cmds_need_lc=yes
10241
10242 if test yes,yes = "$GCC,$enable_shared"; then
10243 case $archive_cmds in
10244 *'~'*)
10245 # FIXME: we may have to deal with multi-command sequences.
10246 ;;
10247 '$CC '*)
10248 # Test whether the compiler implicitly links with -lc since on some
10249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10250 # to ld, don't add -lc before -lgcc.
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10252 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10253 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 $RM conftest*
10257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10258
10259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10260 (eval $ac_compile) 2>&5
10261 ac_status=$?
10262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263 test $ac_status = 0; } 2>conftest.err; then
10264 soname=conftest
10265 lib=conftest
10266 libobjs=conftest.$ac_objext
10267 deplibs=
10268 wl=$lt_prog_compiler_wl
10269 pic_flag=$lt_prog_compiler_pic
10270 compiler_flags=-v
10271 linker_flags=-v
10272 verstring=
10273 output_objdir=.
10274 libname=conftest
10275 lt_save_allow_undefined_flag=$allow_undefined_flag
10276 allow_undefined_flag=
10277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10278 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10279 ac_status=$?
10280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281 test $ac_status = 0; }
10282 then
10283 lt_cv_archive_cmds_need_lc=no
10284 else
10285 lt_cv_archive_cmds_need_lc=yes
10286 fi
10287 allow_undefined_flag=$lt_save_allow_undefined_flag
10288 else
10289 cat conftest.err 1>&5
10290 fi
10291 $RM conftest*
10292
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10295 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10296 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10297 ;;
10298 esac
10299 fi
10300 ;;
10301 esac
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10456
10457 if test yes = "$GCC"; then
10458 case $host_os in
10459 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10460 *) lt_awk_arg='/^libraries:/' ;;
10461 esac
10462 case $host_os in
10463 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10464 *) lt_sed_strip_eq='s|=/|/|g' ;;
10465 esac
10466 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10467 case $lt_search_path_spec in
10468 *\;*)
10469 # if the path contains ";" then we assume it to be the separator
10470 # otherwise default to the standard path separator (i.e. ":") - it is
10471 # assumed that no part of a normal pathname contains ";" but that should
10472 # okay in the real world where ";" in dirpaths is itself problematic.
10473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10474 ;;
10475 *)
10476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10477 ;;
10478 esac
10479 # Ok, now we have the path, separated by spaces, we can step through it
10480 # and add multilib dir if necessary...
10481 lt_tmp_lt_search_path_spec=
10482 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10483 # ...but if some path component already ends with the multilib dir we assume
10484 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10485 case "$lt_multi_os_dir; $lt_search_path_spec " in
10486 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10487 lt_multi_os_dir=
10488 ;;
10489 esac
10490 for lt_sys_path in $lt_search_path_spec; do
10491 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10493 elif test -n "$lt_multi_os_dir"; then
10494 test -d "$lt_sys_path" && \
10495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10496 fi
10497 done
10498 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10499 BEGIN {RS = " "; FS = "/|\n";} {
10500 lt_foo = "";
10501 lt_count = 0;
10502 for (lt_i = NF; lt_i > 0; lt_i--) {
10503 if ($lt_i != "" && $lt_i != ".") {
10504 if ($lt_i == "..") {
10505 lt_count++;
10506 } else {
10507 if (lt_count == 0) {
10508 lt_foo = "/" $lt_i lt_foo;
10509 } else {
10510 lt_count--;
10511 }
10512 }
10513 }
10514 }
10515 if (lt_foo != "") { lt_freq[lt_foo]++; }
10516 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10517 }'`
10518 # AWK program above erroneously prepends '/' to C:/dos/paths
10519 # for these hosts.
10520 case $host_os in
10521 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10522 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10523 esac
10524 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10525 else
10526 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10527 fi
10528 library_names_spec=
10529 libname_spec='lib$name'
10530 soname_spec=
10531 shrext_cmds=.so
10532 postinstall_cmds=
10533 postuninstall_cmds=
10534 finish_cmds=
10535 finish_eval=
10536 shlibpath_var=
10537 shlibpath_overrides_runpath=unknown
10538 version_type=none
10539 dynamic_linker="$host_os ld.so"
10540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10541 need_lib_prefix=unknown
10542 hardcode_into_libs=no
10543
10544 # when you set need_version to no, make sure it does not cause -set_version
10545 # flags to be left without arguments
10546 need_version=unknown
10547
10548
10549
10550 case $host_os in
10551 aix3*)
10552 version_type=linux # correct to gnu/linux during the next big refactor
10553 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10554 shlibpath_var=LIBPATH
10555
10556 # AIX 3 has no versioning support, so we append a major version to the name.
10557 soname_spec='$libname$release$shared_ext$major'
10558 ;;
10559
10560 aix[4-9]*)
10561 version_type=linux # correct to gnu/linux during the next big refactor
10562 need_lib_prefix=no
10563 need_version=no
10564 hardcode_into_libs=yes
10565 if test ia64 = "$host_cpu"; then
10566 # AIX 5 supports IA64
10567 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 else
10570 # With GCC up to 2.95.x, collect2 would create an import file
10571 # for dependence libraries. The import file would start with
10572 # the line '#! .'. This would cause the generated library to
10573 # depend on '.', always an invalid library. This was fixed in
10574 # development snapshots of GCC prior to 3.0.
10575 case $host_os in
10576 aix4 | aix4.[01] | aix4.[01].*)
10577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10578 echo ' yes '
10579 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10580 :
10581 else
10582 can_build_shared=no
10583 fi
10584 ;;
10585 esac
10586 # Using Import Files as archive members, it is possible to support
10587 # filename-based versioning of shared library archives on AIX. While
10588 # this would work for both with and without runtime linking, it will
10589 # prevent static linking of such archives. So we do filename-based
10590 # shared library versioning with .so extension only, which is used
10591 # when both runtime linking and shared linking is enabled.
10592 # Unfortunately, runtime linking may impact performance, so we do
10593 # not want this to be the default eventually. Also, we use the
10594 # versioned .so libs for executables only if there is the -brtl
10595 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10596 # To allow for filename-based versioning support, we need to create
10597 # libNAME.so.V as an archive file, containing:
10598 # *) an Import File, referring to the versioned filename of the
10599 # archive as well as the shared archive member, telling the
10600 # bitwidth (32 or 64) of that shared object, and providing the
10601 # list of exported symbols of that shared object, eventually
10602 # decorated with the 'weak' keyword
10603 # *) the shared object with the F_LOADONLY flag set, to really avoid
10604 # it being seen by the linker.
10605 # At run time we better use the real file rather than another symlink,
10606 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10607
10608 case $with_aix_soname,$aix_use_runtimelinking in
10609 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10610 # soname into executable. Probably we can add versioning support to
10611 # collect2, so additional links can be useful in future.
10612 aix,yes) # traditional libtool
10613 dynamic_linker='AIX unversionable lib.so'
10614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10615 # instead of lib<name>.a to let people know that these are not
10616 # typical AIX shared libraries.
10617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10618 ;;
10619 aix,no) # traditional AIX only
10620 dynamic_linker='AIX lib.a(lib.so.V)'
10621 # We preserve .a as extension for shared libraries through AIX4.2
10622 # and later when we are not doing run time linking.
10623 library_names_spec='$libname$release.a $libname.a'
10624 soname_spec='$libname$release$shared_ext$major'
10625 ;;
10626 svr4,*) # full svr4 only
10627 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10628 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10629 # We do not specify a path in Import Files, so LIBPATH fires.
10630 shlibpath_overrides_runpath=yes
10631 ;;
10632 *,yes) # both, prefer svr4
10633 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10634 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10635 # unpreferred sharedlib libNAME.a needs extra handling
10636 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"'
10637 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"'
10638 # We do not specify a path in Import Files, so LIBPATH fires.
10639 shlibpath_overrides_runpath=yes
10640 ;;
10641 *,no) # both, prefer aix
10642 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10643 library_names_spec='$libname$release.a $libname.a'
10644 soname_spec='$libname$release$shared_ext$major'
10645 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10646 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)'
10647 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"'
10648 ;;
10649 esac
10650 shlibpath_var=LIBPATH
10651 fi
10652 ;;
10653
10654 amigaos*)
10655 case $host_cpu in
10656 powerpc)
10657 # Since July 2007 AmigaOS4 officially supports .so libraries.
10658 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10660 ;;
10661 m68k)
10662 library_names_spec='$libname.ixlibrary $libname.a'
10663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10664 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'
10665 ;;
10666 esac
10667 ;;
10668
10669 beos*)
10670 library_names_spec='$libname$shared_ext'
10671 dynamic_linker="$host_os ld.so"
10672 shlibpath_var=LIBRARY_PATH
10673 ;;
10674
10675 bsdi[45]*)
10676 version_type=linux # correct to gnu/linux during the next big refactor
10677 need_version=no
10678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10679 soname_spec='$libname$release$shared_ext$major'
10680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10684 # the default ld.so.conf also contains /usr/contrib/lib and
10685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10686 # libtool to hard-code these into programs
10687 ;;
10688
10689 cygwin* | mingw* | pw32* | cegcc*)
10690 version_type=windows
10691 shrext_cmds=.dll
10692 need_version=no
10693 need_lib_prefix=no
10694
10695 case $GCC,$cc_basename in
10696 yes,*)
10697 # gcc
10698 library_names_spec='$libname.dll.a'
10699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10700 postinstall_cmds='base_file=`basename \$file`~
10701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10702 dldir=$destdir/`dirname \$dlpath`~
10703 test -d \$dldir || mkdir -p \$dldir~
10704 $install_prog $dir/$dlname \$dldir/$dlname~
10705 chmod a+x \$dldir/$dlname~
10706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10708 fi'
10709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10710 dlpath=$dir/\$dldll~
10711 $RM \$dlpath'
10712 shlibpath_overrides_runpath=yes
10713
10714 case $host_os in
10715 cygwin*)
10716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10717 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10718
10719 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10720 ;;
10721 mingw* | cegcc*)
10722 # MinGW DLLs use traditional 'lib' prefix
10723 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10724 ;;
10725 pw32*)
10726 # pw32 DLLs use 'pw' prefix rather than 'lib'
10727 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10728 ;;
10729 esac
10730 dynamic_linker='Win32 ld.exe'
10731 ;;
10732
10733 *,cl*)
10734 # Native MSVC
10735 libname_spec='$name'
10736 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10737 library_names_spec='$libname.dll.lib'
10738
10739 case $build_os in
10740 mingw*)
10741 sys_lib_search_path_spec=
10742 lt_save_ifs=$IFS
10743 IFS=';'
10744 for lt_path in $LIB
10745 do
10746 IFS=$lt_save_ifs
10747 # Let DOS variable expansion print the short 8.3 style file name.
10748 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10749 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10750 done
10751 IFS=$lt_save_ifs
10752 # Convert to MSYS style.
10753 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10754 ;;
10755 cygwin*)
10756 # Convert to unix form, then to dos form, then back to unix form
10757 # but this time dos style (no spaces!) so that the unix form looks
10758 # like /cygdrive/c/PROGRA~1:/cygdr...
10759 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10760 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10761 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10762 ;;
10763 *)
10764 sys_lib_search_path_spec=$LIB
10765 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10766 # It is most probably a Windows format PATH.
10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10768 else
10769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10770 fi
10771 # FIXME: find the short name or the path components, as spaces are
10772 # common. (e.g. "Program Files" -> "PROGRA~1")
10773 ;;
10774 esac
10775
10776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10777 postinstall_cmds='base_file=`basename \$file`~
10778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10779 dldir=$destdir/`dirname \$dlpath`~
10780 test -d \$dldir || mkdir -p \$dldir~
10781 $install_prog $dir/$dlname \$dldir/$dlname'
10782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10783 dlpath=$dir/\$dldll~
10784 $RM \$dlpath'
10785 shlibpath_overrides_runpath=yes
10786 dynamic_linker='Win32 link.exe'
10787 ;;
10788
10789 *)
10790 # Assume MSVC wrapper
10791 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10792 dynamic_linker='Win32 ld.exe'
10793 ;;
10794 esac
10795 # FIXME: first we should search . and the directory the executable is in
10796 shlibpath_var=PATH
10797 ;;
10798
10799 darwin* | rhapsody*)
10800 dynamic_linker="$host_os dyld"
10801 version_type=darwin
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10805 soname_spec='$libname$release$major$shared_ext'
10806 shlibpath_overrides_runpath=yes
10807 shlibpath_var=DYLD_LIBRARY_PATH
10808 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10809
10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10812 ;;
10813
10814 dgux*)
10815 version_type=linux # correct to gnu/linux during the next big refactor
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 ;;
10822
10823 freebsd* | dragonfly*)
10824 # DragonFly does not have aout. When/if they implement a new
10825 # versioning mechanism, adjust this.
10826 if test -x /usr/bin/objformat; then
10827 objformat=`/usr/bin/objformat`
10828 else
10829 case $host_os in
10830 freebsd[23].*) objformat=aout ;;
10831 *) objformat=elf ;;
10832 esac
10833 fi
10834 version_type=freebsd-$objformat
10835 case $version_type in
10836 freebsd-elf*)
10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10838 soname_spec='$libname$release$shared_ext$major'
10839 need_version=no
10840 need_lib_prefix=no
10841 ;;
10842 freebsd-*)
10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10844 need_version=yes
10845 ;;
10846 esac
10847 shlibpath_var=LD_LIBRARY_PATH
10848 case $host_os in
10849 freebsd2.*)
10850 shlibpath_overrides_runpath=yes
10851 ;;
10852 freebsd3.[01]* | freebsdelf3.[01]*)
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 ;;
10856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10858 shlibpath_overrides_runpath=no
10859 hardcode_into_libs=yes
10860 ;;
10861 *) # from 4.6 on, and DragonFly
10862 shlibpath_overrides_runpath=yes
10863 hardcode_into_libs=yes
10864 ;;
10865 esac
10866 ;;
10867
10868 haiku*)
10869 version_type=linux # correct to gnu/linux during the next big refactor
10870 need_lib_prefix=no
10871 need_version=no
10872 dynamic_linker="$host_os runtime_loader"
10873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10874 soname_spec='$libname$release$shared_ext$major'
10875 shlibpath_var=LIBRARY_PATH
10876 shlibpath_overrides_runpath=no
10877 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10878 hardcode_into_libs=yes
10879 ;;
10880
10881 hpux9* | hpux10* | hpux11*)
10882 # Give a soname corresponding to the major version so that dld.sl refuses to
10883 # link against other versions.
10884 version_type=sunos
10885 need_lib_prefix=no
10886 need_version=no
10887 case $host_cpu in
10888 ia64*)
10889 shrext_cmds='.so'
10890 hardcode_into_libs=yes
10891 dynamic_linker="$host_os dld.so"
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895 soname_spec='$libname$release$shared_ext$major'
10896 if test 32 = "$HPUX_IA64_MODE"; then
10897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10898 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10899 else
10900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10901 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10902 fi
10903 ;;
10904 hppa*64*)
10905 shrext_cmds='.sl'
10906 hardcode_into_libs=yes
10907 dynamic_linker="$host_os dld.sl"
10908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10911 soname_spec='$libname$release$shared_ext$major'
10912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10914 ;;
10915 *)
10916 shrext_cmds='.sl'
10917 dynamic_linker="$host_os dld.sl"
10918 shlibpath_var=SHLIB_PATH
10919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921 soname_spec='$libname$release$shared_ext$major'
10922 ;;
10923 esac
10924 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10925 postinstall_cmds='chmod 555 $lib'
10926 # or fails outright, so override atomically:
10927 install_override_mode=555
10928 ;;
10929
10930 interix[3-9]*)
10931 version_type=linux # correct to gnu/linux during the next big refactor
10932 need_lib_prefix=no
10933 need_version=no
10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935 soname_spec='$libname$release$shared_ext$major'
10936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10940 ;;
10941
10942 irix5* | irix6* | nonstopux*)
10943 case $host_os in
10944 nonstopux*) version_type=nonstopux ;;
10945 *)
10946 if test yes = "$lt_cv_prog_gnu_ld"; then
10947 version_type=linux # correct to gnu/linux during the next big refactor
10948 else
10949 version_type=irix
10950 fi ;;
10951 esac
10952 need_lib_prefix=no
10953 need_version=no
10954 soname_spec='$libname$release$shared_ext$major'
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10956 case $host_os in
10957 irix5* | nonstopux*)
10958 libsuff= shlibsuff=
10959 ;;
10960 *)
10961 case $LD in # libtool.m4 will add one of these switches to LD
10962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10963 libsuff= shlibsuff= libmagic=32-bit;;
10964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10965 libsuff=32 shlibsuff=N32 libmagic=N32;;
10966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10968 *) libsuff= shlibsuff= libmagic=never-match;;
10969 esac
10970 ;;
10971 esac
10972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10973 shlibpath_overrides_runpath=no
10974 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10975 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10976 hardcode_into_libs=yes
10977 ;;
10978
10979 # No shared lib support for Linux oldld, aout, or coff.
10980 linux*oldld* | linux*aout* | linux*coff*)
10981 dynamic_linker=no
10982 ;;
10983
10984 linux*android*)
10985 version_type=none # Android doesn't support versioned libraries.
10986 need_lib_prefix=no
10987 need_version=no
10988 library_names_spec='$libname$release$shared_ext'
10989 soname_spec='$libname$release$shared_ext'
10990 finish_cmds=
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993
10994 # This implies no fast_install, which is unacceptable.
10995 # Some rework will be needed to allow for fast_install
10996 # before this can be enabled.
10997 hardcode_into_libs=yes
10998
10999 dynamic_linker='Android linker'
11000 # Don't embed -rpath directories since the linker doesn't support them.
11001 hardcode_libdir_flag_spec='-L$libdir'
11002 ;;
11003
11004 # This must be glibc/ELF.
11005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11006 version_type=linux # correct to gnu/linux during the next big refactor
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 soname_spec='$libname$release$shared_ext$major'
11011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=no
11014
11015 # Some binutils ld are patched to set DT_RUNPATH
11016 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 lt_cv_shlibpath_overrides_runpath=no
11020 save_LDFLAGS=$LDFLAGS
11021 save_libdir=$libdir
11022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 int
11028 main ()
11029 {
11030
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 if ac_fn_c_try_link "$LINENO"; then :
11036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11037 lt_cv_shlibpath_overrides_runpath=yes
11038 fi
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042 LDFLAGS=$save_LDFLAGS
11043 libdir=$save_libdir
11044
11045 fi
11046
11047 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11048
11049 # This implies no fast_install, which is unacceptable.
11050 # Some rework will be needed to allow for fast_install
11051 # before this can be enabled.
11052 hardcode_into_libs=yes
11053
11054 # Ideally, we could use ldconfig to report *all* directores which are
11055 # searched for libraries, however this is still not possible. Aside from not
11056 # being certain /sbin/ldconfig is available, command
11057 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11058 # even though it is searched at run-time. Try to do the best guess by
11059 # appending ld.so.conf contents (and includes) to the search path.
11060 if test -f /etc/ld.so.conf; then
11061 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' ' '`
11062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11063 fi
11064
11065 # We used to test for /lib/ld.so.1 and disable shared libraries on
11066 # powerpc, because MkLinux only supported shared libraries with the
11067 # GNU dynamic linker. Since this was broken with cross compilers,
11068 # most powerpc-linux boxes support dynamic linking these days and
11069 # people can always --disable-shared, the test was removed, and we
11070 # assume the GNU/Linux dynamic linker is in use.
11071 dynamic_linker='GNU/Linux ld.so'
11072 ;;
11073
11074 netbsd*)
11075 version_type=sunos
11076 need_lib_prefix=no
11077 need_version=no
11078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 dynamic_linker='NetBSD (a.out) ld.so'
11082 else
11083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11084 soname_spec='$libname$release$shared_ext$major'
11085 dynamic_linker='NetBSD ld.elf_so'
11086 fi
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 hardcode_into_libs=yes
11090 ;;
11091
11092 newsos6)
11093 version_type=linux # correct to gnu/linux during the next big refactor
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=yes
11097 ;;
11098
11099 *nto* | *qnx*)
11100 version_type=qnx
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 soname_spec='$libname$release$shared_ext$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=no
11107 hardcode_into_libs=yes
11108 dynamic_linker='ldqnx.so'
11109 ;;
11110
11111 openbsd* | bitrig*)
11112 version_type=sunos
11113 sys_lib_dlsearch_path_spec=/usr/lib
11114 need_lib_prefix=no
11115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11116 need_version=no
11117 else
11118 need_version=yes
11119 fi
11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11124 ;;
11125
11126 os2*)
11127 libname_spec='$name'
11128 version_type=windows
11129 shrext_cmds=.dll
11130 need_version=no
11131 need_lib_prefix=no
11132 # OS/2 can only load a DLL with a base name of 8 characters or less.
11133 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11134 v=$($ECHO $release$versuffix | tr -d .-);
11135 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11136 $ECHO $n$v`$shared_ext'
11137 library_names_spec='${libname}_dll.$libext'
11138 dynamic_linker='OS/2 ld.exe'
11139 shlibpath_var=BEGINLIBPATH
11140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11142 postinstall_cmds='base_file=`basename \$file`~
11143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11144 dldir=$destdir/`dirname \$dlpath`~
11145 test -d \$dldir || mkdir -p \$dldir~
11146 $install_prog $dir/$dlname \$dldir/$dlname~
11147 chmod a+x \$dldir/$dlname~
11148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11150 fi'
11151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11152 dlpath=$dir/\$dldll~
11153 $RM \$dlpath'
11154 ;;
11155
11156 osf3* | osf4* | osf5*)
11157 version_type=osf
11158 need_lib_prefix=no
11159 need_version=no
11160 soname_spec='$libname$release$shared_ext$major'
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11165 ;;
11166
11167 rdos*)
11168 dynamic_linker=no
11169 ;;
11170
11171 solaris*)
11172 version_type=linux # correct to gnu/linux during the next big refactor
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176 soname_spec='$libname$release$shared_ext$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 hardcode_into_libs=yes
11180 # ldd complains unless libraries are executable
11181 postinstall_cmds='chmod +x $lib'
11182 ;;
11183
11184 sunos4*)
11185 version_type=sunos
11186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 if test yes = "$with_gnu_ld"; then
11191 need_lib_prefix=no
11192 fi
11193 need_version=yes
11194 ;;
11195
11196 sysv4 | sysv4.3*)
11197 version_type=linux # correct to gnu/linux during the next big refactor
11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11199 soname_spec='$libname$release$shared_ext$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 case $host_vendor in
11202 sni)
11203 shlibpath_overrides_runpath=no
11204 need_lib_prefix=no
11205 runpath_var=LD_RUN_PATH
11206 ;;
11207 siemens)
11208 need_lib_prefix=no
11209 ;;
11210 motorola)
11211 need_lib_prefix=no
11212 need_version=no
11213 shlibpath_overrides_runpath=no
11214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11215 ;;
11216 esac
11217 ;;
11218
11219 sysv4*MP*)
11220 if test -d /usr/nec; then
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11223 soname_spec='$libname$shared_ext.$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 fi
11226 ;;
11227
11228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11229 version_type=sco
11230 need_lib_prefix=no
11231 need_version=no
11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11233 soname_spec='$libname$release$shared_ext$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11236 hardcode_into_libs=yes
11237 if test yes = "$with_gnu_ld"; then
11238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11239 else
11240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11241 case $host_os in
11242 sco3.2v5*)
11243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11244 ;;
11245 esac
11246 fi
11247 sys_lib_dlsearch_path_spec='/usr/lib'
11248 ;;
11249
11250 tpf*)
11251 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11252 version_type=linux # correct to gnu/linux during the next big refactor
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=no
11258 hardcode_into_libs=yes
11259 ;;
11260
11261 uts4*)
11262 version_type=linux # correct to gnu/linux during the next big refactor
11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264 soname_spec='$libname$release$shared_ext$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 ;;
11267
11268 *)
11269 dynamic_linker=no
11270 ;;
11271 esac
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11273 $as_echo "$dynamic_linker" >&6; }
11274 test no = "$dynamic_linker" && can_build_shared=no
11275
11276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11277 if test yes = "$GCC"; then
11278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11279 fi
11280
11281 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11282 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11283 fi
11284
11285 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11286 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11287 fi
11288
11289 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11290 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11291
11292 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11293 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11294
11295 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11296 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11395 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11396 hardcode_action=
11397 if test -n "$hardcode_libdir_flag_spec" ||
11398 test -n "$runpath_var" ||
11399 test yes = "$hardcode_automatic"; then
11400
11401 # We can hardcode non-existent directories.
11402 if test no != "$hardcode_direct" &&
11403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11404 # have to relink, otherwise we might link with an installed library
11405 # when we should be linking with a yet-to-be-installed one
11406 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11407 test no != "$hardcode_minus_L"; then
11408 # Linking always hardcodes the temporary library directory.
11409 hardcode_action=relink
11410 else
11411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11412 hardcode_action=immediate
11413 fi
11414 else
11415 # We cannot hardcode anything, or else we can only hardcode existing
11416 # directories.
11417 hardcode_action=unsupported
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11420 $as_echo "$hardcode_action" >&6; }
11421
11422 if test relink = "$hardcode_action" ||
11423 test yes = "$inherit_rpath"; then
11424 # Fast installation is not supported
11425 enable_fast_install=no
11426 elif test yes = "$shlibpath_overrides_runpath" ||
11427 test no = "$enable_shared"; then
11428 # Fast installation is not necessary
11429 enable_fast_install=needless
11430 fi
11431
11432
11433
11434
11435
11436
11437 if test yes != "$enable_dlopen"; then
11438 enable_dlopen=unknown
11439 enable_dlopen_self=unknown
11440 enable_dlopen_self_static=unknown
11441 else
11442 lt_cv_dlopen=no
11443 lt_cv_dlopen_libs=
11444
11445 case $host_os in
11446 beos*)
11447 lt_cv_dlopen=load_add_on
11448 lt_cv_dlopen_libs=
11449 lt_cv_dlopen_self=yes
11450 ;;
11451
11452 mingw* | pw32* | cegcc*)
11453 lt_cv_dlopen=LoadLibrary
11454 lt_cv_dlopen_libs=
11455 ;;
11456
11457 cygwin*)
11458 lt_cv_dlopen=dlopen
11459 lt_cv_dlopen_libs=
11460 ;;
11461
11462 darwin*)
11463 # if libdl is installed we need to link against it
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11466 if ${ac_cv_lib_dl_dlopen+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-ldl $LIBS"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char dlopen ();
11481 int
11482 main ()
11483 {
11484 return dlopen ();
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_dl_dlopen=yes
11491 else
11492 ac_cv_lib_dl_dlopen=no
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11500 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11501 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11502 else
11503
11504 lt_cv_dlopen=dyld
11505 lt_cv_dlopen_libs=
11506 lt_cv_dlopen_self=yes
11507
11508 fi
11509
11510 ;;
11511
11512 tpf*)
11513 # Don't try to run any link tests for TPF. We know it's impossible
11514 # because TPF is a cross-compiler, and we know how we open DSOs.
11515 lt_cv_dlopen=dlopen
11516 lt_cv_dlopen_libs=
11517 lt_cv_dlopen_self=no
11518 ;;
11519
11520 *)
11521 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11522 if test "x$ac_cv_func_shl_load" = xyes; then :
11523 lt_cv_dlopen=shl_load
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11526 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11527 if ${ac_cv_lib_dld_shl_load+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldld $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char shl_load ();
11542 int
11543 main ()
11544 {
11545 return shl_load ();
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_dld_shl_load=yes
11552 else
11553 ac_cv_lib_dld_shl_load=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11560 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11561 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11562 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11563 else
11564 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11565 if test "x$ac_cv_func_dlopen" = xyes; then :
11566 lt_cv_dlopen=dlopen
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11570 if ${ac_cv_lib_dl_dlopen+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-ldl $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char dlopen ();
11585 int
11586 main ()
11587 {
11588 return dlopen ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_dl_dlopen=yes
11595 else
11596 ac_cv_lib_dl_dlopen=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11608 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11609 if ${ac_cv_lib_svld_dlopen+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lsvld $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_svld_dlopen=yes
11634 else
11635 ac_cv_lib_svld_dlopen=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11642 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11643 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11647 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11648 if ${ac_cv_lib_dld_dld_link+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-ldld $LIBS"
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655
11656 /* Override any GCC internal prototype to avoid an error.
11657 Use char because int might match the return type of a GCC
11658 builtin and then its argument prototype would still apply. */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 char dld_link ();
11663 int
11664 main ()
11665 {
11666 return dld_link ();
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"; then :
11672 ac_cv_lib_dld_dld_link=yes
11673 else
11674 ac_cv_lib_dld_dld_link=no
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11681 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11682 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11683 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701 ;;
11702 esac
11703
11704 if test no = "$lt_cv_dlopen"; then
11705 enable_dlopen=no
11706 else
11707 enable_dlopen=yes
11708 fi
11709
11710 case $lt_cv_dlopen in
11711 dlopen)
11712 save_CPPFLAGS=$CPPFLAGS
11713 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11714
11715 save_LDFLAGS=$LDFLAGS
11716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11717
11718 save_LIBS=$LIBS
11719 LIBS="$lt_cv_dlopen_libs $LIBS"
11720
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11722 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11723 if ${lt_cv_dlopen_self+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 if test yes = "$cross_compiling"; then :
11727 lt_cv_dlopen_self=cross
11728 else
11729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730 lt_status=$lt_dlunknown
11731 cat > conftest.$ac_ext <<_LT_EOF
11732 #line $LINENO "configure"
11733 #include "confdefs.h"
11734
11735 #if HAVE_DLFCN_H
11736 #include <dlfcn.h>
11737 #endif
11738
11739 #include <stdio.h>
11740
11741 #ifdef RTLD_GLOBAL
11742 # define LT_DLGLOBAL RTLD_GLOBAL
11743 #else
11744 # ifdef DL_GLOBAL
11745 # define LT_DLGLOBAL DL_GLOBAL
11746 # else
11747 # define LT_DLGLOBAL 0
11748 # endif
11749 #endif
11750
11751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752 find out it does not work in some platform. */
11753 #ifndef LT_DLLAZY_OR_NOW
11754 # ifdef RTLD_LAZY
11755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11756 # else
11757 # ifdef DL_LAZY
11758 # define LT_DLLAZY_OR_NOW DL_LAZY
11759 # else
11760 # ifdef RTLD_NOW
11761 # define LT_DLLAZY_OR_NOW RTLD_NOW
11762 # else
11763 # ifdef DL_NOW
11764 # define LT_DLLAZY_OR_NOW DL_NOW
11765 # else
11766 # define LT_DLLAZY_OR_NOW 0
11767 # endif
11768 # endif
11769 # endif
11770 # endif
11771 #endif
11772
11773 /* When -fvisibility=hidden is used, assume the code has been annotated
11774 correspondingly for the symbols needed. */
11775 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11776 int fnord () __attribute__((visibility("default")));
11777 #endif
11778
11779 int fnord () { return 42; }
11780 int main ()
11781 {
11782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11783 int status = $lt_dlunknown;
11784
11785 if (self)
11786 {
11787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11788 else
11789 {
11790 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 else puts (dlerror ());
11792 }
11793 /* dlclose (self); */
11794 }
11795 else
11796 puts (dlerror ());
11797
11798 return status;
11799 }
11800 _LT_EOF
11801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11806 (./conftest; exit; ) >&5 2>/dev/null
11807 lt_status=$?
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11812 esac
11813 else :
11814 # compilation failed
11815 lt_cv_dlopen_self=no
11816 fi
11817 fi
11818 rm -fr conftest*
11819
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11823 $as_echo "$lt_cv_dlopen_self" >&6; }
11824
11825 if test yes = "$lt_cv_dlopen_self"; then
11826 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11828 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11829 if ${lt_cv_dlopen_self_static+:} false; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 if test yes = "$cross_compiling"; then :
11833 lt_cv_dlopen_self_static=cross
11834 else
11835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836 lt_status=$lt_dlunknown
11837 cat > conftest.$ac_ext <<_LT_EOF
11838 #line $LINENO "configure"
11839 #include "confdefs.h"
11840
11841 #if HAVE_DLFCN_H
11842 #include <dlfcn.h>
11843 #endif
11844
11845 #include <stdio.h>
11846
11847 #ifdef RTLD_GLOBAL
11848 # define LT_DLGLOBAL RTLD_GLOBAL
11849 #else
11850 # ifdef DL_GLOBAL
11851 # define LT_DLGLOBAL DL_GLOBAL
11852 # else
11853 # define LT_DLGLOBAL 0
11854 # endif
11855 #endif
11856
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858 find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11860 # ifdef RTLD_LAZY
11861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11862 # else
11863 # ifdef DL_LAZY
11864 # define LT_DLLAZY_OR_NOW DL_LAZY
11865 # else
11866 # ifdef RTLD_NOW
11867 # define LT_DLLAZY_OR_NOW RTLD_NOW
11868 # else
11869 # ifdef DL_NOW
11870 # define LT_DLLAZY_OR_NOW DL_NOW
11871 # else
11872 # define LT_DLLAZY_OR_NOW 0
11873 # endif
11874 # endif
11875 # endif
11876 # endif
11877 #endif
11878
11879 /* When -fvisibility=hidden is used, assume the code has been annotated
11880 correspondingly for the symbols needed. */
11881 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11882 int fnord () __attribute__((visibility("default")));
11883 #endif
11884
11885 int fnord () { return 42; }
11886 int main ()
11887 {
11888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889 int status = $lt_dlunknown;
11890
11891 if (self)
11892 {
11893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11894 else
11895 {
11896 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897 else puts (dlerror ());
11898 }
11899 /* dlclose (self); */
11900 }
11901 else
11902 puts (dlerror ());
11903
11904 return status;
11905 }
11906 _LT_EOF
11907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11908 (eval $ac_link) 2>&5
11909 ac_status=$?
11910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11912 (./conftest; exit; ) >&5 2>/dev/null
11913 lt_status=$?
11914 case x$lt_status in
11915 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11918 esac
11919 else :
11920 # compilation failed
11921 lt_cv_dlopen_self_static=no
11922 fi
11923 fi
11924 rm -fr conftest*
11925
11926
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11929 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11930 fi
11931
11932 CPPFLAGS=$save_CPPFLAGS
11933 LDFLAGS=$save_LDFLAGS
11934 LIBS=$save_LIBS
11935 ;;
11936 esac
11937
11938 case $lt_cv_dlopen_self in
11939 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940 *) enable_dlopen_self=unknown ;;
11941 esac
11942
11943 case $lt_cv_dlopen_self_static in
11944 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945 *) enable_dlopen_self_static=unknown ;;
11946 esac
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 striplib=
11966 old_striplib=
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11968 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11969 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11970 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11971 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975 # FIXME - insert some real tests, host_os isn't really good enough
11976 case $host_os in
11977 darwin*)
11978 if test -n "$STRIP"; then
11979 striplib="$STRIP -x"
11980 old_striplib="$STRIP -S"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 $as_echo "yes" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987 ;;
11988 *)
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 ;;
11992 esac
11993 fi
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006 # Report what library types will actually be built
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12008 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12010 $as_echo "$can_build_shared" >&6; }
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12013 $as_echo_n "checking whether to build shared libraries... " >&6; }
12014 test no = "$can_build_shared" && enable_shared=no
12015
12016 # On AIX, shared libraries and static libraries use the same namespace, and
12017 # are all built from PIC.
12018 case $host_os in
12019 aix3*)
12020 test yes = "$enable_shared" && enable_static=no
12021 if test -n "$RANLIB"; then
12022 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12023 postinstall_cmds='$RANLIB $lib'
12024 fi
12025 ;;
12026
12027 aix[4-9]*)
12028 if test ia64 != "$host_cpu"; then
12029 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12030 yes,aix,yes) ;; # shared object as lib.so file only
12031 yes,svr4,*) ;; # shared object as lib.so archive member only
12032 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12033 esac
12034 fi
12035 ;;
12036 esac
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12038 $as_echo "$enable_shared" >&6; }
12039
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12041 $as_echo_n "checking whether to build static libraries... " >&6; }
12042 # Make sure either enable_shared or enable_static is yes.
12043 test yes = "$enable_shared" || enable_static=yes
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12045 $as_echo "$enable_static" >&6; }
12046
12047
12048
12049
12050 fi
12051 ac_ext=c
12052 ac_cpp='$CPP $CPPFLAGS'
12053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12056
12057 CC=$lt_save_CC
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 ac_config_commands="$ac_config_commands libtool"
12074
12075
12076
12077
12078 # Only expand once:
12079
12080
12081
12082
12083 for ac_prog in 'bison -y' byacc
12084 do
12085 # Extract the first word of "$ac_prog", so it can be a program name with args.
12086 set dummy $ac_prog; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_YACC+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if test -n "$YACC"; then
12093 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_YACC="$ac_prog"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 YACC=$ac_cv_prog_YACC
12113 if test -n "$YACC"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12115 $as_echo "$YACC" >&6; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121
12122 test -n "$YACC" && break
12123 done
12124 test -n "$YACC" || YACC="yacc"
12125
12126
12127 for ac_prog in flex lex
12128 do
12129 # Extract the first word of "$ac_prog", so it can be a program name with args.
12130 set dummy $ac_prog; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_LEX+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 if test -n "$LEX"; then
12137 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12138 else
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_LEX="$ac_prog"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12149 fi
12150 done
12151 done
12152 IFS=$as_save_IFS
12153
12154 fi
12155 fi
12156 LEX=$ac_cv_prog_LEX
12157 if test -n "$LEX"; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12159 $as_echo "$LEX" >&6; }
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 fi
12164
12165
12166 test -n "$LEX" && break
12167 done
12168 test -n "$LEX" || LEX=":"
12169
12170 if test "x$LEX" != "x:"; then
12171 cat >conftest.l <<_ACEOF
12172 %%
12173 a { ECHO; }
12174 b { REJECT; }
12175 c { yymore (); }
12176 d { yyless (1); }
12177 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12178 yyless ((input () != 0)); }
12179 f { unput (yytext[0]); }
12180 . { BEGIN INITIAL; }
12181 %%
12182 #ifdef YYTEXT_POINTER
12183 extern char *yytext;
12184 #endif
12185 int
12186 main (void)
12187 {
12188 return ! yylex () + ! yywrap ();
12189 }
12190 _ACEOF
12191 { { ac_try="$LEX conftest.l"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12197 $as_echo "$ac_try_echo"; } >&5
12198 (eval "$LEX conftest.l") 2>&5
12199 ac_status=$?
12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201 test $ac_status = 0; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12203 $as_echo_n "checking lex output file root... " >&6; }
12204 if ${ac_cv_prog_lex_root+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207
12208 if test -f lex.yy.c; then
12209 ac_cv_prog_lex_root=lex.yy
12210 elif test -f lexyy.c; then
12211 ac_cv_prog_lex_root=lexyy
12212 else
12213 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12214 fi
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12217 $as_echo "$ac_cv_prog_lex_root" >&6; }
12218 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12219
12220 if test -z "${LEXLIB+set}"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12222 $as_echo_n "checking lex library... " >&6; }
12223 if ${ac_cv_lib_lex+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226
12227 ac_save_LIBS=$LIBS
12228 ac_cv_lib_lex='none needed'
12229 for ac_lib in '' -lfl -ll; do
12230 LIBS="$ac_lib $ac_save_LIBS"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 `cat $LEX_OUTPUT_ROOT.c`
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_lex=$ac_lib
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 test "$ac_cv_lib_lex" != 'none needed' && break
12241 done
12242 LIBS=$ac_save_LIBS
12243
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12246 $as_echo "$ac_cv_lib_lex" >&6; }
12247 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12248 fi
12249
12250
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12252 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12253 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 # POSIX says lex can declare yytext either as a pointer or an array; the
12257 # default is implementation-dependent. Figure out which it is, since
12258 # not all implementations provide the %pointer and %array declarations.
12259 ac_cv_prog_lex_yytext_pointer=no
12260 ac_save_LIBS=$LIBS
12261 LIBS="$LEXLIB $ac_save_LIBS"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 #define YYTEXT_POINTER 1
12266 `cat $LEX_OUTPUT_ROOT.c`
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_prog_lex_yytext_pointer=yes
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_save_LIBS
12274
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12277 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12278 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12279
12280 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12281
12282 fi
12283 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12284
12285 fi
12286 if test "$LEX" = :; then
12287 LEX=${am_missing_run}flex
12288 fi
12289
12290
12291
12292 if test "X$CC" != "X"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12294 $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12295 if ${ssp_cv_cc+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 ssp_old_cflags="$CFLAGS"
12299 CFLAGS="$CFLAGS -fstack-protector-strong"
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302
12303 int
12304 main ()
12305 {
12306
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312 ssp_cv_cc=yes
12313 else
12314 ssp_cv_cc=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 CFLAGS="$ssp_old_cflags"
12318
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12321 $as_echo "$ssp_cv_cc" >&6; }
12322 if test $ssp_cv_cc = yes; then
12323 CFLAGS="$CFLAGS -fstack-protector-strong"
12324
12325 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12326
12327 else
12328 unset ssp_cv_cc
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12330 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12331 if ${ssp_cv_cc+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 ssp_old_cflags="$CFLAGS"
12335 CFLAGS="$CFLAGS -fstack-protector"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338
12339 int
12340 main ()
12341 {
12342
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348 ssp_cv_cc=yes
12349 else
12350 ssp_cv_cc=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 CFLAGS="$ssp_old_cflags"
12354
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12357 $as_echo "$ssp_cv_cc" >&6; }
12358 if test $ssp_cv_cc = yes; then
12359 CFLAGS="$CFLAGS -fstack-protector"
12360
12361 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12362
12363 fi
12364 fi
12365 fi
12366
12367
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12369 $as_echo_n "checking whether libssp exists... " >&6; }
12370 if ${ssp_cv_lib+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ssp_old_libs="$LIBS"
12374 LIBS="$LIBS -lssp"
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377
12378 int
12379 main ()
12380 {
12381
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"; then :
12387 ssp_cv_lib=yes
12388 else
12389 ssp_cv_lib=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS="$ssp_old_libs"
12394
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12397 $as_echo "$ssp_cv_lib" >&6; }
12398 if test $ssp_cv_lib = yes; then
12399 LIBS="$LIBS -lssp"
12400 fi
12401
12402
12403
12404 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12405 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12406
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12409 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12410 if ${ac_cv_search_getaddrinfo+:} false; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 ac_func_search_save_LIBS=$LIBS
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char getaddrinfo ();
12424 int
12425 main ()
12426 {
12427 return getaddrinfo ();
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 for ac_lib in '' nsl; do
12433 if test -z "$ac_lib"; then
12434 ac_res="none required"
12435 else
12436 ac_res=-l$ac_lib
12437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12438 fi
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_search_getaddrinfo=$ac_res
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext
12444 if ${ac_cv_search_getaddrinfo+:} false; then :
12445 break
12446 fi
12447 done
12448 if ${ac_cv_search_getaddrinfo+:} false; then :
12449
12450 else
12451 ac_cv_search_getaddrinfo=no
12452 fi
12453 rm conftest.$ac_ext
12454 LIBS=$ac_func_search_save_LIBS
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12457 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12458 ac_res=$ac_cv_search_getaddrinfo
12459 if test "$ac_res" != no; then :
12460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12461
12462 fi
12463
12464 fi
12465
12466 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12467 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12468
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12471 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12472 if ${ac_cv_search_getnameinfo+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_func_search_save_LIBS=$LIBS
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char getnameinfo ();
12486 int
12487 main ()
12488 {
12489 return getnameinfo ();
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 for ac_lib in '' nsl; do
12495 if test -z "$ac_lib"; then
12496 ac_res="none required"
12497 else
12498 ac_res=-l$ac_lib
12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12500 fi
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_search_getnameinfo=$ac_res
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext
12506 if ${ac_cv_search_getnameinfo+:} false; then :
12507 break
12508 fi
12509 done
12510 if ${ac_cv_search_getnameinfo+:} false; then :
12511
12512 else
12513 ac_cv_search_getnameinfo=no
12514 fi
12515 rm conftest.$ac_ext
12516 LIBS=$ac_func_search_save_LIBS
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12519 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12520 ac_res=$ac_cv_search_getnameinfo
12521 if test "$ac_res" != no; then :
12522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12523
12524 fi
12525
12526 fi
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12529 $as_echo_n "checking for library containing socket... " >&6; }
12530 if ${ac_cv_search_socket+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_func_search_save_LIBS=$LIBS
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char socket ();
12544 int
12545 main ()
12546 {
12547 return socket ();
12548 ;
12549 return 0;
12550 }
12551 _ACEOF
12552 for ac_lib in '' socket; do
12553 if test -z "$ac_lib"; then
12554 ac_res="none required"
12555 else
12556 ac_res=-l$ac_lib
12557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12558 fi
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_search_socket=$ac_res
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext
12564 if ${ac_cv_search_socket+:} false; then :
12565 break
12566 fi
12567 done
12568 if ${ac_cv_search_socket+:} false; then :
12569
12570 else
12571 ac_cv_search_socket=no
12572 fi
12573 rm conftest.$ac_ext
12574 LIBS=$ac_func_search_save_LIBS
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12577 $as_echo "$ac_cv_search_socket" >&6; }
12578 ac_res=$ac_cv_search_socket
12579 if test "$ac_res" != no; then :
12580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581
12582 else
12583 as_fn_error $? "socket library not found" "$LINENO" 5
12584 fi
12585
12586
12587
12588 # Check whether --enable-openssl was given.
12589 if test "${enable_openssl+set}" = set; then :
12590 enableval=$enable_openssl; cf_enable_openssl=$enableval
12591 else
12592 cf_enable_openssl="auto"
12593 fi
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12596 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12597 if test "$cf_enable_openssl" != "no"; then
12598 cf_openssl_basedir=""
12599 if test "$cf_enable_openssl" != "auto" &&
12600 test "$cf_enable_openssl" != "yes"; then
12601 cf_openssl_basedir="${cf_enable_openssl}"
12602 else
12603 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12604 /opt /opt/openssl /usr/local/openssl; do
12605 if test -f "${dirs}/include/openssl/opensslv.h"; then
12606 cf_openssl_basedir="${dirs}"
12607 break
12608 fi
12609 done
12610 unset dirs
12611 fi
12612
12613 if test ! -z "$cf_openssl_basedir"; then
12614 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12615 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12616 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12617 else
12618 cf_openssl_basedir=""
12619 fi
12620 else
12621 if test -f "/usr/include/openssl/opensslv.h"; then
12622 cf_openssl_basedir="/usr"
12623 fi
12624 fi
12625
12626 if test ! -z "$cf_openssl_basedir"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12628 $as_echo "$cf_openssl_basedir" >&6; }
12629 cf_enable_openssl="yes"
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12632 $as_echo "not found. Please check your path." >&6; }
12633 cf_enable_openssl="no"
12634 fi
12635 unset cf_openssl_basedir
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12638 $as_echo "disabled" >&6; }
12639 fi
12640
12641 if test "$cf_enable_openssl" != "no"; then :
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
12643 $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
12644 if test "$cross_compiling" = yes; then :
12645 cf_openssl_version_ok=no
12646 else
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649
12650
12651 #include <openssl/opensslv.h>
12652 #include <stdlib.h>
12653 int
12654 main ()
12655 {
12656 exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_run "$LINENO"; then :
12662 cf_openssl_version_ok=yes
12663 else
12664 cf_openssl_version_ok=no
12665 fi
12666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12667 conftest.$ac_objext conftest.beam conftest.$ac_ext
12668 fi
12669
12670
12671 if test "$cf_openssl_version_ok" = "yes"; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12673 $as_echo "found" >&6; }
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12676 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12677 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lcrypto $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char RSA_free ();
12692 int
12693 main ()
12694 {
12695 return RSA_free ();
12696 ;
12697 return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_crypto_RSA_free=yes
12702 else
12703 ac_cv_lib_crypto_RSA_free=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12710 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12711 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12712 cat >>confdefs.h <<_ACEOF
12713 #define HAVE_LIBCRYPTO 1
12714 _ACEOF
12715
12716 LIBS="-lcrypto $LIBS"
12717
12718 fi
12719
12720 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12722 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12723 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-lssl $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char SSL_connect ();
12738 int
12739 main ()
12740 {
12741 return SSL_connect ();
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"; then :
12747 ac_cv_lib_ssl_SSL_connect=yes
12748 else
12749 ac_cv_lib_ssl_SSL_connect=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12756 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12757 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_LIBSSL 1
12760 _ACEOF
12761
12762 LIBS="-lssl $LIBS"
12763
12764 fi
12765
12766 fi
12767
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12770 $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12771 cf_enable_openssl="no"
12772 fi
12773 fi
12774
12775 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
12776 ENABLE_SSL_TRUE=
12777 ENABLE_SSL_FALSE='#'
12778 else
12779 ENABLE_SSL_TRUE='#'
12780 ENABLE_SSL_FALSE=
12781 fi
12782
12783
12784
12785 # Check whether --enable-assert was given.
12786 if test "${enable_assert+set}" = set; then :
12787 enableval=$enable_assert; assert=$enableval
12788 else
12789 assert=no
12790 fi
12791
12792
12793 if test "$assert" = "no"; then :
12794
12795 $as_echo "#define NDEBUG 1" >>confdefs.h
12796
12797 fi
12798
12799
12800 # Check whether --enable-warnings was given.
12801 if test "${enable_warnings+set}" = set; then :
12802 enableval=$enable_warnings; warnings="$enableval"
12803 else
12804 warnings="no"
12805 fi
12806
12807
12808 if test "$warnings" = "yes"; then :
12809
12810
12811
12812
12813
12814 for flag in -Wall; do
12815 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12817 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12818 if eval \${$as_CACHEVAR+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821
12822 ax_check_save_flags=$CFLAGS
12823 CFLAGS="$CFLAGS $flag"
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826
12827 int
12828 main ()
12829 {
12830
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 if ac_fn_c_try_compile "$LINENO"; then :
12836 eval "$as_CACHEVAR=yes"
12837 else
12838 eval "$as_CACHEVAR=no"
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 CFLAGS=$ax_check_save_flags
12842 fi
12843 eval ac_res=\$$as_CACHEVAR
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12845 $as_echo "$ac_res" >&6; }
12846 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12847
12848 if ${CFLAGS+:} false; then :
12849
12850 case " $CFLAGS " in #(
12851 *" $flag "*) :
12852 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12853 (: CFLAGS already contains $flag) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; } ;; #(
12857 *) :
12858
12859 as_fn_append CFLAGS " $flag"
12860 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12861 (: CFLAGS="$CFLAGS") 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }
12865 ;;
12866 esac
12867
12868 else
12869
12870 CFLAGS=$flag
12871 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12872 (: CFLAGS="$CFLAGS") 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }
12876
12877 fi
12878
12879 else
12880 :
12881 fi
12882
12883 done
12884
12885
12886
12887
12888
12889 for flag in -Wbad-function-cast; do
12890 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12892 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12893 if eval \${$as_CACHEVAR+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896
12897 ax_check_save_flags=$CFLAGS
12898 CFLAGS="$CFLAGS $flag"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901
12902 int
12903 main ()
12904 {
12905
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_compile "$LINENO"; then :
12911 eval "$as_CACHEVAR=yes"
12912 else
12913 eval "$as_CACHEVAR=no"
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 CFLAGS=$ax_check_save_flags
12917 fi
12918 eval ac_res=\$$as_CACHEVAR
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12920 $as_echo "$ac_res" >&6; }
12921 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12922
12923 if ${CFLAGS+:} false; then :
12924
12925 case " $CFLAGS " in #(
12926 *" $flag "*) :
12927 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12928 (: CFLAGS already contains $flag) 2>&5
12929 ac_status=$?
12930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931 test $ac_status = 0; } ;; #(
12932 *) :
12933
12934 as_fn_append CFLAGS " $flag"
12935 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12936 (: CFLAGS="$CFLAGS") 2>&5
12937 ac_status=$?
12938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12939 test $ac_status = 0; }
12940 ;;
12941 esac
12942
12943 else
12944
12945 CFLAGS=$flag
12946 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12947 (: CFLAGS="$CFLAGS") 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }
12951
12952 fi
12953
12954 else
12955 :
12956 fi
12957
12958 done
12959
12960
12961
12962
12963
12964 for flag in -Wcast-align; do
12965 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12967 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12968 if eval \${$as_CACHEVAR+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971
12972 ax_check_save_flags=$CFLAGS
12973 CFLAGS="$CFLAGS $flag"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976
12977 int
12978 main ()
12979 {
12980
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 eval "$as_CACHEVAR=yes"
12987 else
12988 eval "$as_CACHEVAR=no"
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 CFLAGS=$ax_check_save_flags
12992 fi
12993 eval ac_res=\$$as_CACHEVAR
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12995 $as_echo "$ac_res" >&6; }
12996 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12997
12998 if ${CFLAGS+:} false; then :
12999
13000 case " $CFLAGS " in #(
13001 *" $flag "*) :
13002 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13003 (: CFLAGS already contains $flag) 2>&5
13004 ac_status=$?
13005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13006 test $ac_status = 0; } ;; #(
13007 *) :
13008
13009 as_fn_append CFLAGS " $flag"
13010 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13011 (: CFLAGS="$CFLAGS") 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }
13015 ;;
13016 esac
13017
13018 else
13019
13020 CFLAGS=$flag
13021 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13022 (: CFLAGS="$CFLAGS") 2>&5
13023 ac_status=$?
13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13025 test $ac_status = 0; }
13026
13027 fi
13028
13029 else
13030 :
13031 fi
13032
13033 done
13034
13035
13036
13037
13038
13039 for flag in -Wcast-qual; do
13040 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13042 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13043 if eval \${$as_CACHEVAR+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046
13047 ax_check_save_flags=$CFLAGS
13048 CFLAGS="$CFLAGS $flag"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051
13052 int
13053 main ()
13054 {
13055
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"; then :
13061 eval "$as_CACHEVAR=yes"
13062 else
13063 eval "$as_CACHEVAR=no"
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 CFLAGS=$ax_check_save_flags
13067 fi
13068 eval ac_res=\$$as_CACHEVAR
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13070 $as_echo "$ac_res" >&6; }
13071 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13072
13073 if ${CFLAGS+:} false; then :
13074
13075 case " $CFLAGS " in #(
13076 *" $flag "*) :
13077 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13078 (: CFLAGS already contains $flag) 2>&5
13079 ac_status=$?
13080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13081 test $ac_status = 0; } ;; #(
13082 *) :
13083
13084 as_fn_append CFLAGS " $flag"
13085 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13086 (: CFLAGS="$CFLAGS") 2>&5
13087 ac_status=$?
13088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089 test $ac_status = 0; }
13090 ;;
13091 esac
13092
13093 else
13094
13095 CFLAGS=$flag
13096 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13097 (: CFLAGS="$CFLAGS") 2>&5
13098 ac_status=$?
13099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13100 test $ac_status = 0; }
13101
13102 fi
13103
13104 else
13105 :
13106 fi
13107
13108 done
13109
13110
13111
13112
13113
13114 for flag in -Wclobbered; do
13115 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13117 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13118 if eval \${$as_CACHEVAR+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121
13122 ax_check_save_flags=$CFLAGS
13123 CFLAGS="$CFLAGS $flag"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126
13127 int
13128 main ()
13129 {
13130
13131 ;
13132 return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_compile "$LINENO"; then :
13136 eval "$as_CACHEVAR=yes"
13137 else
13138 eval "$as_CACHEVAR=no"
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 CFLAGS=$ax_check_save_flags
13142 fi
13143 eval ac_res=\$$as_CACHEVAR
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13145 $as_echo "$ac_res" >&6; }
13146 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13147
13148 if ${CFLAGS+:} false; then :
13149
13150 case " $CFLAGS " in #(
13151 *" $flag "*) :
13152 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13153 (: CFLAGS already contains $flag) 2>&5
13154 ac_status=$?
13155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13156 test $ac_status = 0; } ;; #(
13157 *) :
13158
13159 as_fn_append CFLAGS " $flag"
13160 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13161 (: CFLAGS="$CFLAGS") 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; }
13165 ;;
13166 esac
13167
13168 else
13169
13170 CFLAGS=$flag
13171 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13172 (: CFLAGS="$CFLAGS") 2>&5
13173 ac_status=$?
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }
13176
13177 fi
13178
13179 else
13180 :
13181 fi
13182
13183 done
13184
13185
13186
13187
13188
13189 for flag in -Wduplicated-cond; do
13190 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13192 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13193 if eval \${$as_CACHEVAR+:} false; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196
13197 ax_check_save_flags=$CFLAGS
13198 CFLAGS="$CFLAGS $flag"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201
13202 int
13203 main ()
13204 {
13205
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 eval "$as_CACHEVAR=yes"
13212 else
13213 eval "$as_CACHEVAR=no"
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 CFLAGS=$ax_check_save_flags
13217 fi
13218 eval ac_res=\$$as_CACHEVAR
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13220 $as_echo "$ac_res" >&6; }
13221 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13222
13223 if ${CFLAGS+:} false; then :
13224
13225 case " $CFLAGS " in #(
13226 *" $flag "*) :
13227 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13228 (: CFLAGS already contains $flag) 2>&5
13229 ac_status=$?
13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 test $ac_status = 0; } ;; #(
13232 *) :
13233
13234 as_fn_append CFLAGS " $flag"
13235 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13236 (: CFLAGS="$CFLAGS") 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }
13240 ;;
13241 esac
13242
13243 else
13244
13245 CFLAGS=$flag
13246 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13247 (: CFLAGS="$CFLAGS") 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }
13251
13252 fi
13253
13254 else
13255 :
13256 fi
13257
13258 done
13259
13260
13261
13262
13263
13264 for flag in -Wempty-body; do
13265 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13267 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13268 if eval \${$as_CACHEVAR+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271
13272 ax_check_save_flags=$CFLAGS
13273 CFLAGS="$CFLAGS $flag"
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276
13277 int
13278 main ()
13279 {
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 eval "$as_CACHEVAR=yes"
13287 else
13288 eval "$as_CACHEVAR=no"
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 CFLAGS=$ax_check_save_flags
13292 fi
13293 eval ac_res=\$$as_CACHEVAR
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13295 $as_echo "$ac_res" >&6; }
13296 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13297
13298 if ${CFLAGS+:} false; then :
13299
13300 case " $CFLAGS " in #(
13301 *" $flag "*) :
13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13303 (: CFLAGS already contains $flag) 2>&5
13304 ac_status=$?
13305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306 test $ac_status = 0; } ;; #(
13307 *) :
13308
13309 as_fn_append CFLAGS " $flag"
13310 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13311 (: CFLAGS="$CFLAGS") 2>&5
13312 ac_status=$?
13313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13314 test $ac_status = 0; }
13315 ;;
13316 esac
13317
13318 else
13319
13320 CFLAGS=$flag
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13322 (: CFLAGS="$CFLAGS") 2>&5
13323 ac_status=$?
13324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13325 test $ac_status = 0; }
13326
13327 fi
13328
13329 else
13330 :
13331 fi
13332
13333 done
13334
13335
13336
13337
13338
13339 for flag in -Wignored-qualifiers; do
13340 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13342 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13343 if eval \${$as_CACHEVAR+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346
13347 ax_check_save_flags=$CFLAGS
13348 CFLAGS="$CFLAGS $flag"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 int
13353 main ()
13354 {
13355
13356 ;
13357 return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361 eval "$as_CACHEVAR=yes"
13362 else
13363 eval "$as_CACHEVAR=no"
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 CFLAGS=$ax_check_save_flags
13367 fi
13368 eval ac_res=\$$as_CACHEVAR
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13370 $as_echo "$ac_res" >&6; }
13371 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13372
13373 if ${CFLAGS+:} false; then :
13374
13375 case " $CFLAGS " in #(
13376 *" $flag "*) :
13377 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13378 (: CFLAGS already contains $flag) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; } ;; #(
13382 *) :
13383
13384 as_fn_append CFLAGS " $flag"
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13386 (: CFLAGS="$CFLAGS") 2>&5
13387 ac_status=$?
13388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389 test $ac_status = 0; }
13390 ;;
13391 esac
13392
13393 else
13394
13395 CFLAGS=$flag
13396 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13397 (: CFLAGS="$CFLAGS") 2>&5
13398 ac_status=$?
13399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13400 test $ac_status = 0; }
13401
13402 fi
13403
13404 else
13405 :
13406 fi
13407
13408 done
13409
13410
13411
13412
13413
13414 for flag in -Wlogical-op; do
13415 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13417 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13418 if eval \${$as_CACHEVAR+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421
13422 ax_check_save_flags=$CFLAGS
13423 CFLAGS="$CFLAGS $flag"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426
13427 int
13428 main ()
13429 {
13430
13431 ;
13432 return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_compile "$LINENO"; then :
13436 eval "$as_CACHEVAR=yes"
13437 else
13438 eval "$as_CACHEVAR=no"
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 CFLAGS=$ax_check_save_flags
13442 fi
13443 eval ac_res=\$$as_CACHEVAR
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13445 $as_echo "$ac_res" >&6; }
13446 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13447
13448 if ${CFLAGS+:} false; then :
13449
13450 case " $CFLAGS " in #(
13451 *" $flag "*) :
13452 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13453 (: CFLAGS already contains $flag) 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456 test $ac_status = 0; } ;; #(
13457 *) :
13458
13459 as_fn_append CFLAGS " $flag"
13460 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13461 (: CFLAGS="$CFLAGS") 2>&5
13462 ac_status=$?
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464 test $ac_status = 0; }
13465 ;;
13466 esac
13467
13468 else
13469
13470 CFLAGS=$flag
13471 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13472 (: CFLAGS="$CFLAGS") 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }
13476
13477 fi
13478
13479 else
13480 :
13481 fi
13482
13483 done
13484
13485
13486
13487
13488
13489 for flag in -Wmissing-declarations; do
13490 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13492 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13493 if eval \${$as_CACHEVAR+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496
13497 ax_check_save_flags=$CFLAGS
13498 CFLAGS="$CFLAGS $flag"
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501
13502 int
13503 main ()
13504 {
13505
13506 ;
13507 return 0;
13508 }
13509 _ACEOF
13510 if ac_fn_c_try_compile "$LINENO"; then :
13511 eval "$as_CACHEVAR=yes"
13512 else
13513 eval "$as_CACHEVAR=no"
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 CFLAGS=$ax_check_save_flags
13517 fi
13518 eval ac_res=\$$as_CACHEVAR
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13520 $as_echo "$ac_res" >&6; }
13521 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13522
13523 if ${CFLAGS+:} false; then :
13524
13525 case " $CFLAGS " in #(
13526 *" $flag "*) :
13527 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13528 (: CFLAGS already contains $flag) 2>&5
13529 ac_status=$?
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531 test $ac_status = 0; } ;; #(
13532 *) :
13533
13534 as_fn_append CFLAGS " $flag"
13535 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13536 (: CFLAGS="$CFLAGS") 2>&5
13537 ac_status=$?
13538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539 test $ac_status = 0; }
13540 ;;
13541 esac
13542
13543 else
13544
13545 CFLAGS=$flag
13546 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13547 (: CFLAGS="$CFLAGS") 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }
13551
13552 fi
13553
13554 else
13555 :
13556 fi
13557
13558 done
13559
13560
13561
13562
13563
13564 for flag in -Wmissing-field-initializers; do
13565 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13567 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13568 if eval \${$as_CACHEVAR+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571
13572 ax_check_save_flags=$CFLAGS
13573 CFLAGS="$CFLAGS $flag"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576
13577 int
13578 main ()
13579 {
13580
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 if ac_fn_c_try_compile "$LINENO"; then :
13586 eval "$as_CACHEVAR=yes"
13587 else
13588 eval "$as_CACHEVAR=no"
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 CFLAGS=$ax_check_save_flags
13592 fi
13593 eval ac_res=\$$as_CACHEVAR
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13595 $as_echo "$ac_res" >&6; }
13596 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13597
13598 if ${CFLAGS+:} false; then :
13599
13600 case " $CFLAGS " in #(
13601 *" $flag "*) :
13602 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13603 (: CFLAGS already contains $flag) 2>&5
13604 ac_status=$?
13605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13606 test $ac_status = 0; } ;; #(
13607 *) :
13608
13609 as_fn_append CFLAGS " $flag"
13610 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13611 (: CFLAGS="$CFLAGS") 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13615 ;;
13616 esac
13617
13618 else
13619
13620 CFLAGS=$flag
13621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13622 (: CFLAGS="$CFLAGS") 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }
13626
13627 fi
13628
13629 else
13630 :
13631 fi
13632
13633 done
13634
13635
13636
13637
13638
13639 for flag in -Wmissing-include-dirs; do
13640 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13642 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13643 if eval \${$as_CACHEVAR+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646
13647 ax_check_save_flags=$CFLAGS
13648 CFLAGS="$CFLAGS $flag"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 int
13653 main ()
13654 {
13655
13656 ;
13657 return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661 eval "$as_CACHEVAR=yes"
13662 else
13663 eval "$as_CACHEVAR=no"
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 CFLAGS=$ax_check_save_flags
13667 fi
13668 eval ac_res=\$$as_CACHEVAR
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13670 $as_echo "$ac_res" >&6; }
13671 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13672
13673 if ${CFLAGS+:} false; then :
13674
13675 case " $CFLAGS " in #(
13676 *" $flag "*) :
13677 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13678 (: CFLAGS already contains $flag) 2>&5
13679 ac_status=$?
13680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13681 test $ac_status = 0; } ;; #(
13682 *) :
13683
13684 as_fn_append CFLAGS " $flag"
13685 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13686 (: CFLAGS="$CFLAGS") 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }
13690 ;;
13691 esac
13692
13693 else
13694
13695 CFLAGS=$flag
13696 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13697 (: CFLAGS="$CFLAGS") 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; }
13701
13702 fi
13703
13704 else
13705 :
13706 fi
13707
13708 done
13709
13710
13711
13712
13713
13714 for flag in -Wmissing-parameter-type; do
13715 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13717 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13718 if eval \${$as_CACHEVAR+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721
13722 ax_check_save_flags=$CFLAGS
13723 CFLAGS="$CFLAGS $flag"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726
13727 int
13728 main ()
13729 {
13730
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 eval "$as_CACHEVAR=yes"
13737 else
13738 eval "$as_CACHEVAR=no"
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 CFLAGS=$ax_check_save_flags
13742 fi
13743 eval ac_res=\$$as_CACHEVAR
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13745 $as_echo "$ac_res" >&6; }
13746 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13747
13748 if ${CFLAGS+:} false; then :
13749
13750 case " $CFLAGS " in #(
13751 *" $flag "*) :
13752 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13753 (: CFLAGS already contains $flag) 2>&5
13754 ac_status=$?
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; } ;; #(
13757 *) :
13758
13759 as_fn_append CFLAGS " $flag"
13760 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13761 (: CFLAGS="$CFLAGS") 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }
13765 ;;
13766 esac
13767
13768 else
13769
13770 CFLAGS=$flag
13771 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13772 (: CFLAGS="$CFLAGS") 2>&5
13773 ac_status=$?
13774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13775 test $ac_status = 0; }
13776
13777 fi
13778
13779 else
13780 :
13781 fi
13782
13783 done
13784
13785
13786
13787
13788
13789 for flag in -Wmissing-prototypes; do
13790 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13792 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13793 if eval \${$as_CACHEVAR+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796
13797 ax_check_save_flags=$CFLAGS
13798 CFLAGS="$CFLAGS $flag"
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801
13802 int
13803 main ()
13804 {
13805
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 eval "$as_CACHEVAR=yes"
13812 else
13813 eval "$as_CACHEVAR=no"
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 CFLAGS=$ax_check_save_flags
13817 fi
13818 eval ac_res=\$$as_CACHEVAR
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13820 $as_echo "$ac_res" >&6; }
13821 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13822
13823 if ${CFLAGS+:} false; then :
13824
13825 case " $CFLAGS " in #(
13826 *" $flag "*) :
13827 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13828 (: CFLAGS already contains $flag) 2>&5
13829 ac_status=$?
13830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831 test $ac_status = 0; } ;; #(
13832 *) :
13833
13834 as_fn_append CFLAGS " $flag"
13835 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13836 (: CFLAGS="$CFLAGS") 2>&5
13837 ac_status=$?
13838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13839 test $ac_status = 0; }
13840 ;;
13841 esac
13842
13843 else
13844
13845 CFLAGS=$flag
13846 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13847 (: CFLAGS="$CFLAGS") 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13850 test $ac_status = 0; }
13851
13852 fi
13853
13854 else
13855 :
13856 fi
13857
13858 done
13859
13860
13861
13862
13863
13864 for flag in -Wnested-externs; do
13865 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13867 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13868 if eval \${$as_CACHEVAR+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871
13872 ax_check_save_flags=$CFLAGS
13873 CFLAGS="$CFLAGS $flag"
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876
13877 int
13878 main ()
13879 {
13880
13881 ;
13882 return 0;
13883 }
13884 _ACEOF
13885 if ac_fn_c_try_compile "$LINENO"; then :
13886 eval "$as_CACHEVAR=yes"
13887 else
13888 eval "$as_CACHEVAR=no"
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 CFLAGS=$ax_check_save_flags
13892 fi
13893 eval ac_res=\$$as_CACHEVAR
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13895 $as_echo "$ac_res" >&6; }
13896 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13897
13898 if ${CFLAGS+:} false; then :
13899
13900 case " $CFLAGS " in #(
13901 *" $flag "*) :
13902 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13903 (: CFLAGS already contains $flag) 2>&5
13904 ac_status=$?
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; } ;; #(
13907 *) :
13908
13909 as_fn_append CFLAGS " $flag"
13910 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13911 (: CFLAGS="$CFLAGS") 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; }
13915 ;;
13916 esac
13917
13918 else
13919
13920 CFLAGS=$flag
13921 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13922 (: CFLAGS="$CFLAGS") 2>&5
13923 ac_status=$?
13924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925 test $ac_status = 0; }
13926
13927 fi
13928
13929 else
13930 :
13931 fi
13932
13933 done
13934
13935
13936
13937
13938
13939 for flag in -Wold-style-declaration; do
13940 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13942 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13943 if eval \${$as_CACHEVAR+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946
13947 ax_check_save_flags=$CFLAGS
13948 CFLAGS="$CFLAGS $flag"
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951
13952 int
13953 main ()
13954 {
13955
13956 ;
13957 return 0;
13958 }
13959 _ACEOF
13960 if ac_fn_c_try_compile "$LINENO"; then :
13961 eval "$as_CACHEVAR=yes"
13962 else
13963 eval "$as_CACHEVAR=no"
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 CFLAGS=$ax_check_save_flags
13967 fi
13968 eval ac_res=\$$as_CACHEVAR
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13970 $as_echo "$ac_res" >&6; }
13971 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13972
13973 if ${CFLAGS+:} false; then :
13974
13975 case " $CFLAGS " in #(
13976 *" $flag "*) :
13977 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13978 (: CFLAGS already contains $flag) 2>&5
13979 ac_status=$?
13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; } ;; #(
13982 *) :
13983
13984 as_fn_append CFLAGS " $flag"
13985 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13986 (: CFLAGS="$CFLAGS") 2>&5
13987 ac_status=$?
13988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13989 test $ac_status = 0; }
13990 ;;
13991 esac
13992
13993 else
13994
13995 CFLAGS=$flag
13996 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13997 (: CFLAGS="$CFLAGS") 2>&5
13998 ac_status=$?
13999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000 test $ac_status = 0; }
14001
14002 fi
14003
14004 else
14005 :
14006 fi
14007
14008 done
14009
14010
14011
14012
14013
14014 for flag in -Woverride-init; do
14015 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14017 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14018 if eval \${$as_CACHEVAR+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021
14022 ax_check_save_flags=$CFLAGS
14023 CFLAGS="$CFLAGS $flag"
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026
14027 int
14028 main ()
14029 {
14030
14031 ;
14032 return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036 eval "$as_CACHEVAR=yes"
14037 else
14038 eval "$as_CACHEVAR=no"
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041 CFLAGS=$ax_check_save_flags
14042 fi
14043 eval ac_res=\$$as_CACHEVAR
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14045 $as_echo "$ac_res" >&6; }
14046 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14047
14048 if ${CFLAGS+:} false; then :
14049
14050 case " $CFLAGS " in #(
14051 *" $flag "*) :
14052 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14053 (: CFLAGS already contains $flag) 2>&5
14054 ac_status=$?
14055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056 test $ac_status = 0; } ;; #(
14057 *) :
14058
14059 as_fn_append CFLAGS " $flag"
14060 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14061 (: CFLAGS="$CFLAGS") 2>&5
14062 ac_status=$?
14063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14064 test $ac_status = 0; }
14065 ;;
14066 esac
14067
14068 else
14069
14070 CFLAGS=$flag
14071 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14072 (: CFLAGS="$CFLAGS") 2>&5
14073 ac_status=$?
14074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14075 test $ac_status = 0; }
14076
14077 fi
14078
14079 else
14080 :
14081 fi
14082
14083 done
14084
14085
14086
14087
14088
14089 for flag in -Wpointer-arith; do
14090 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14092 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14093 if eval \${$as_CACHEVAR+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096
14097 ax_check_save_flags=$CFLAGS
14098 CFLAGS="$CFLAGS $flag"
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101
14102 int
14103 main ()
14104 {
14105
14106 ;
14107 return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 eval "$as_CACHEVAR=yes"
14112 else
14113 eval "$as_CACHEVAR=no"
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 CFLAGS=$ax_check_save_flags
14117 fi
14118 eval ac_res=\$$as_CACHEVAR
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14120 $as_echo "$ac_res" >&6; }
14121 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14122
14123 if ${CFLAGS+:} false; then :
14124
14125 case " $CFLAGS " in #(
14126 *" $flag "*) :
14127 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14128 (: CFLAGS already contains $flag) 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; } ;; #(
14132 *) :
14133
14134 as_fn_append CFLAGS " $flag"
14135 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14136 (: CFLAGS="$CFLAGS") 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }
14140 ;;
14141 esac
14142
14143 else
14144
14145 CFLAGS=$flag
14146 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14147 (: CFLAGS="$CFLAGS") 2>&5
14148 ac_status=$?
14149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150 test $ac_status = 0; }
14151
14152 fi
14153
14154 else
14155 :
14156 fi
14157
14158 done
14159
14160
14161
14162
14163
14164 for flag in -Wredundant-decls; do
14165 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14167 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14168 if eval \${$as_CACHEVAR+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171
14172 ax_check_save_flags=$CFLAGS
14173 CFLAGS="$CFLAGS $flag"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176
14177 int
14178 main ()
14179 {
14180
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_compile "$LINENO"; then :
14186 eval "$as_CACHEVAR=yes"
14187 else
14188 eval "$as_CACHEVAR=no"
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 CFLAGS=$ax_check_save_flags
14192 fi
14193 eval ac_res=\$$as_CACHEVAR
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14195 $as_echo "$ac_res" >&6; }
14196 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14197
14198 if ${CFLAGS+:} false; then :
14199
14200 case " $CFLAGS " in #(
14201 *" $flag "*) :
14202 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14203 (: CFLAGS already contains $flag) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206 test $ac_status = 0; } ;; #(
14207 *) :
14208
14209 as_fn_append CFLAGS " $flag"
14210 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14211 (: CFLAGS="$CFLAGS") 2>&5
14212 ac_status=$?
14213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14214 test $ac_status = 0; }
14215 ;;
14216 esac
14217
14218 else
14219
14220 CFLAGS=$flag
14221 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14222 (: CFLAGS="$CFLAGS") 2>&5
14223 ac_status=$?
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }
14226
14227 fi
14228
14229 else
14230 :
14231 fi
14232
14233 done
14234
14235
14236
14237
14238
14239 for flag in -Wshadow; do
14240 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14242 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14243 if eval \${$as_CACHEVAR+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246
14247 ax_check_save_flags=$CFLAGS
14248 CFLAGS="$CFLAGS $flag"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251
14252 int
14253 main ()
14254 {
14255
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_compile "$LINENO"; then :
14261 eval "$as_CACHEVAR=yes"
14262 else
14263 eval "$as_CACHEVAR=no"
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 CFLAGS=$ax_check_save_flags
14267 fi
14268 eval ac_res=\$$as_CACHEVAR
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14270 $as_echo "$ac_res" >&6; }
14271 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14272
14273 if ${CFLAGS+:} false; then :
14274
14275 case " $CFLAGS " in #(
14276 *" $flag "*) :
14277 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14278 (: CFLAGS already contains $flag) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; } ;; #(
14282 *) :
14283
14284 as_fn_append CFLAGS " $flag"
14285 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14286 (: CFLAGS="$CFLAGS") 2>&5
14287 ac_status=$?
14288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289 test $ac_status = 0; }
14290 ;;
14291 esac
14292
14293 else
14294
14295 CFLAGS=$flag
14296 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14297 (: CFLAGS="$CFLAGS") 2>&5
14298 ac_status=$?
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }
14301
14302 fi
14303
14304 else
14305 :
14306 fi
14307
14308 done
14309
14310
14311
14312
14313
14314 for flag in -Wshift-negative-value; do
14315 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14317 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14318 if eval \${$as_CACHEVAR+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321
14322 ax_check_save_flags=$CFLAGS
14323 CFLAGS="$CFLAGS $flag"
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326
14327 int
14328 main ()
14329 {
14330
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 eval "$as_CACHEVAR=yes"
14337 else
14338 eval "$as_CACHEVAR=no"
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 CFLAGS=$ax_check_save_flags
14342 fi
14343 eval ac_res=\$$as_CACHEVAR
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14345 $as_echo "$ac_res" >&6; }
14346 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14347
14348 if ${CFLAGS+:} false; then :
14349
14350 case " $CFLAGS " in #(
14351 *" $flag "*) :
14352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14353 (: CFLAGS already contains $flag) 2>&5
14354 ac_status=$?
14355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356 test $ac_status = 0; } ;; #(
14357 *) :
14358
14359 as_fn_append CFLAGS " $flag"
14360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14361 (: CFLAGS="$CFLAGS") 2>&5
14362 ac_status=$?
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }
14365 ;;
14366 esac
14367
14368 else
14369
14370 CFLAGS=$flag
14371 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14372 (: CFLAGS="$CFLAGS") 2>&5
14373 ac_status=$?
14374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14375 test $ac_status = 0; }
14376
14377 fi
14378
14379 else
14380 :
14381 fi
14382
14383 done
14384
14385
14386
14387
14388
14389 for flag in -Wsign-compare; do
14390 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14392 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14393 if eval \${$as_CACHEVAR+:} false; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396
14397 ax_check_save_flags=$CFLAGS
14398 CFLAGS="$CFLAGS $flag"
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401
14402 int
14403 main ()
14404 {
14405
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_compile "$LINENO"; then :
14411 eval "$as_CACHEVAR=yes"
14412 else
14413 eval "$as_CACHEVAR=no"
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416 CFLAGS=$ax_check_save_flags
14417 fi
14418 eval ac_res=\$$as_CACHEVAR
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14420 $as_echo "$ac_res" >&6; }
14421 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14422
14423 if ${CFLAGS+:} false; then :
14424
14425 case " $CFLAGS " in #(
14426 *" $flag "*) :
14427 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14428 (: CFLAGS already contains $flag) 2>&5
14429 ac_status=$?
14430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431 test $ac_status = 0; } ;; #(
14432 *) :
14433
14434 as_fn_append CFLAGS " $flag"
14435 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14436 (: CFLAGS="$CFLAGS") 2>&5
14437 ac_status=$?
14438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14439 test $ac_status = 0; }
14440 ;;
14441 esac
14442
14443 else
14444
14445 CFLAGS=$flag
14446 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14447 (: CFLAGS="$CFLAGS") 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14450 test $ac_status = 0; }
14451
14452 fi
14453
14454 else
14455 :
14456 fi
14457
14458 done
14459
14460
14461
14462
14463
14464 for flag in -Wtype-limits; do
14465 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14467 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14468 if eval \${$as_CACHEVAR+:} false; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471
14472 ax_check_save_flags=$CFLAGS
14473 CFLAGS="$CFLAGS $flag"
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476
14477 int
14478 main ()
14479 {
14480
14481 ;
14482 return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 eval "$as_CACHEVAR=yes"
14487 else
14488 eval "$as_CACHEVAR=no"
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 CFLAGS=$ax_check_save_flags
14492 fi
14493 eval ac_res=\$$as_CACHEVAR
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14495 $as_echo "$ac_res" >&6; }
14496 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14497
14498 if ${CFLAGS+:} false; then :
14499
14500 case " $CFLAGS " in #(
14501 *" $flag "*) :
14502 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14503 (: CFLAGS already contains $flag) 2>&5
14504 ac_status=$?
14505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14506 test $ac_status = 0; } ;; #(
14507 *) :
14508
14509 as_fn_append CFLAGS " $flag"
14510 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14511 (: CFLAGS="$CFLAGS") 2>&5
14512 ac_status=$?
14513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514 test $ac_status = 0; }
14515 ;;
14516 esac
14517
14518 else
14519
14520 CFLAGS=$flag
14521 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14522 (: CFLAGS="$CFLAGS") 2>&5
14523 ac_status=$?
14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525 test $ac_status = 0; }
14526
14527 fi
14528
14529 else
14530 :
14531 fi
14532
14533 done
14534
14535
14536
14537
14538
14539 for flag in -Wundef; do
14540 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14542 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14543 if eval \${$as_CACHEVAR+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546
14547 ax_check_save_flags=$CFLAGS
14548 CFLAGS="$CFLAGS $flag"
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551
14552 int
14553 main ()
14554 {
14555
14556 ;
14557 return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561 eval "$as_CACHEVAR=yes"
14562 else
14563 eval "$as_CACHEVAR=no"
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 CFLAGS=$ax_check_save_flags
14567 fi
14568 eval ac_res=\$$as_CACHEVAR
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14570 $as_echo "$ac_res" >&6; }
14571 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14572
14573 if ${CFLAGS+:} false; then :
14574
14575 case " $CFLAGS " in #(
14576 *" $flag "*) :
14577 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14578 (: CFLAGS already contains $flag) 2>&5
14579 ac_status=$?
14580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14581 test $ac_status = 0; } ;; #(
14582 *) :
14583
14584 as_fn_append CFLAGS " $flag"
14585 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14586 (: CFLAGS="$CFLAGS") 2>&5
14587 ac_status=$?
14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589 test $ac_status = 0; }
14590 ;;
14591 esac
14592
14593 else
14594
14595 CFLAGS=$flag
14596 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14597 (: CFLAGS="$CFLAGS") 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }
14601
14602 fi
14603
14604 else
14605 :
14606 fi
14607
14608 done
14609
14610
14611
14612
14613
14614 for flag in -Wuninitialized; do
14615 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14617 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14618 if eval \${$as_CACHEVAR+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621
14622 ax_check_save_flags=$CFLAGS
14623 CFLAGS="$CFLAGS $flag"
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626
14627 int
14628 main ()
14629 {
14630
14631 ;
14632 return 0;
14633 }
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 eval "$as_CACHEVAR=yes"
14637 else
14638 eval "$as_CACHEVAR=no"
14639 fi
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 CFLAGS=$ax_check_save_flags
14642 fi
14643 eval ac_res=\$$as_CACHEVAR
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14645 $as_echo "$ac_res" >&6; }
14646 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14647
14648 if ${CFLAGS+:} false; then :
14649
14650 case " $CFLAGS " in #(
14651 *" $flag "*) :
14652 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14653 (: CFLAGS already contains $flag) 2>&5
14654 ac_status=$?
14655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14656 test $ac_status = 0; } ;; #(
14657 *) :
14658
14659 as_fn_append CFLAGS " $flag"
14660 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14661 (: CFLAGS="$CFLAGS") 2>&5
14662 ac_status=$?
14663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14664 test $ac_status = 0; }
14665 ;;
14666 esac
14667
14668 else
14669
14670 CFLAGS=$flag
14671 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14672 (: CFLAGS="$CFLAGS") 2>&5
14673 ac_status=$?
14674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14675 test $ac_status = 0; }
14676
14677 fi
14678
14679 else
14680 :
14681 fi
14682
14683 done
14684
14685
14686
14687
14688
14689 for flag in -Wwrite-strings; do
14690 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14692 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14693 if eval \${$as_CACHEVAR+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696
14697 ax_check_save_flags=$CFLAGS
14698 CFLAGS="$CFLAGS $flag"
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701
14702 int
14703 main ()
14704 {
14705
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_compile "$LINENO"; then :
14711 eval "$as_CACHEVAR=yes"
14712 else
14713 eval "$as_CACHEVAR=no"
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 CFLAGS=$ax_check_save_flags
14717 fi
14718 eval ac_res=\$$as_CACHEVAR
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14720 $as_echo "$ac_res" >&6; }
14721 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14722
14723 if ${CFLAGS+:} false; then :
14724
14725 case " $CFLAGS " in #(
14726 *" $flag "*) :
14727 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14728 (: CFLAGS already contains $flag) 2>&5
14729 ac_status=$?
14730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731 test $ac_status = 0; } ;; #(
14732 *) :
14733
14734 as_fn_append CFLAGS " $flag"
14735 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14736 (: CFLAGS="$CFLAGS") 2>&5
14737 ac_status=$?
14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739 test $ac_status = 0; }
14740 ;;
14741 esac
14742
14743 else
14744
14745 CFLAGS=$flag
14746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14747 (: CFLAGS="$CFLAGS") 2>&5
14748 ac_status=$?
14749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14750 test $ac_status = 0; }
14751
14752 fi
14753
14754 else
14755 :
14756 fi
14757
14758 done
14759
14760
14761 fi
14762
14763
14764 # Check whether --enable-efence was given.
14765 if test "${enable_efence+set}" = set; then :
14766 enableval=$enable_efence; efence="$enableval"
14767 else
14768 efence="no"
14769 fi
14770
14771
14772 if test "$efence" = "yes"; then :
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
14775 $as_echo_n "checking for library containing EF_Print... " >&6; }
14776 if ${ac_cv_search_EF_Print+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 ac_func_search_save_LIBS=$LIBS
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 char EF_Print ();
14790 int
14791 main ()
14792 {
14793 return EF_Print ();
14794 ;
14795 return 0;
14796 }
14797 _ACEOF
14798 for ac_lib in '' efence; do
14799 if test -z "$ac_lib"; then
14800 ac_res="none required"
14801 else
14802 ac_res=-l$ac_lib
14803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14804 fi
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 ac_cv_search_EF_Print=$ac_res
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext
14810 if ${ac_cv_search_EF_Print+:} false; then :
14811 break
14812 fi
14813 done
14814 if ${ac_cv_search_EF_Print+:} false; then :
14815
14816 else
14817 ac_cv_search_EF_Print=no
14818 fi
14819 rm conftest.$ac_ext
14820 LIBS=$ac_func_search_save_LIBS
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
14823 $as_echo "$ac_cv_search_EF_Print" >&6; }
14824 ac_res=$ac_cv_search_EF_Print
14825 if test "$ac_res" != no; then :
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14827
14828 else
14829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14831 as_fn_error $? "Electric Fence 'efence' library not found
14832 See \`config.log' for more details" "$LINENO" 5; }
14833 fi
14834
14835
14836 fi
14837
14838
14839 for ac_func in strlcpy strlcat
14840 do :
14841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 _ACEOF
14847
14848 fi
14849 done
14850
14851
14852 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
14853
14854 cat >confcache <<\_ACEOF
14855 # This file is a shell script that caches the results of configure
14856 # tests run on this system so they can be shared between configure
14857 # scripts and configure runs, see configure's option --config-cache.
14858 # It is not useful on other systems. If it contains results you don't
14859 # want to keep, you may remove or edit it.
14860 #
14861 # config.status only pays attention to the cache file if you give it
14862 # the --recheck option to rerun configure.
14863 #
14864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14866 # following values.
14867
14868 _ACEOF
14869
14870 # The following way of writing the cache mishandles newlines in values,
14871 # but we know of no workaround that is simple, portable, and efficient.
14872 # So, we kill variables containing newlines.
14873 # Ultrix sh set writes to stderr and can't be redirected directly,
14874 # and sets the high bit in the cache file unless we assign to the vars.
14875 (
14876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14877 eval ac_val=\$$ac_var
14878 case $ac_val in #(
14879 *${as_nl}*)
14880 case $ac_var in #(
14881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14883 esac
14884 case $ac_var in #(
14885 _ | IFS | as_nl) ;; #(
14886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14887 *) { eval $ac_var=; unset $ac_var;} ;;
14888 esac ;;
14889 esac
14890 done
14891
14892 (set) 2>&1 |
14893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14894 *${as_nl}ac_space=\ *)
14895 # `set' does not quote correctly, so add quotes: double-quote
14896 # substitution turns \\\\ into \\, and sed turns \\ into \.
14897 sed -n \
14898 "s/'/'\\\\''/g;
14899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14900 ;; #(
14901 *)
14902 # `set' quotes correctly as required by POSIX, so do not add quotes.
14903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14904 ;;
14905 esac |
14906 sort
14907 ) |
14908 sed '
14909 /^ac_cv_env_/b end
14910 t clear
14911 :clear
14912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14913 t end
14914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14915 :end' >>confcache
14916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14917 if test -w "$cache_file"; then
14918 if test "x$cache_file" != "x/dev/null"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14920 $as_echo "$as_me: updating cache $cache_file" >&6;}
14921 if test ! -f "$cache_file" || test -h "$cache_file"; then
14922 cat confcache >"$cache_file"
14923 else
14924 case $cache_file in #(
14925 */* | ?:*)
14926 mv -f confcache "$cache_file"$$ &&
14927 mv -f "$cache_file"$$ "$cache_file" ;; #(
14928 *)
14929 mv -f confcache "$cache_file" ;;
14930 esac
14931 fi
14932 fi
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14935 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14936 fi
14937 fi
14938 rm -f confcache
14939
14940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14941 # Let make expand exec_prefix.
14942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14943
14944 DEFS=-DHAVE_CONFIG_H
14945
14946 ac_libobjs=
14947 ac_ltlibobjs=
14948 U=
14949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14950 # 1. Remove the extension, and $U if already installed.
14951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14954 # will be set to the directory where LIBOBJS objects are built.
14955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14957 done
14958 LIBOBJS=$ac_libobjs
14959
14960 LTLIBOBJS=$ac_ltlibobjs
14961
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14964 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14965 if test -n "$am_sleep_pid"; then
14966 # Hide warnings about reused PIDs.
14967 wait $am_sleep_pid 2>/dev/null
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14970 $as_echo "done" >&6; }
14971 if test -n "$EXEEXT"; then
14972 am__EXEEXT_TRUE=
14973 am__EXEEXT_FALSE='#'
14974 else
14975 am__EXEEXT_TRUE='#'
14976 am__EXEEXT_FALSE=
14977 fi
14978
14979 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14980 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 fi
14983 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14984 as_fn_error $? "conditional \"AMDEP\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 fi
14987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14988 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 fi
14991 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14992 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 fi
14995
14996 : "${CONFIG_STATUS=./config.status}"
14997 ac_write_fail=0
14998 ac_clean_files_save=$ac_clean_files
14999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15002 as_write_fail=0
15003 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15004 #! $SHELL
15005 # Generated by $as_me.
15006 # Run this file to recreate the current configuration.
15007 # Compiler output produced by configure, useful for debugging
15008 # configure, is in config.log if it exists.
15009
15010 debug=false
15011 ac_cs_recheck=false
15012 ac_cs_silent=false
15013
15014 SHELL=\${CONFIG_SHELL-$SHELL}
15015 export SHELL
15016 _ASEOF
15017 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15018 ## -------------------- ##
15019 ## M4sh Initialization. ##
15020 ## -------------------- ##
15021
15022 # Be more Bourne compatible
15023 DUALCASE=1; export DUALCASE # for MKS sh
15024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15025 emulate sh
15026 NULLCMD=:
15027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15028 # is contrary to our usage. Disable this feature.
15029 alias -g '${1+"$@"}'='"$@"'
15030 setopt NO_GLOB_SUBST
15031 else
15032 case `(set -o) 2>/dev/null` in #(
15033 *posix*) :
15034 set -o posix ;; #(
15035 *) :
15036 ;;
15037 esac
15038 fi
15039
15040
15041 as_nl='
15042 '
15043 export as_nl
15044 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15045 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15048 # Prefer a ksh shell builtin over an external printf program on Solaris,
15049 # but without wasting forks for bash or zsh.
15050 if test -z "$BASH_VERSION$ZSH_VERSION" \
15051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15052 as_echo='print -r --'
15053 as_echo_n='print -rn --'
15054 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15055 as_echo='printf %s\n'
15056 as_echo_n='printf %s'
15057 else
15058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15060 as_echo_n='/usr/ucb/echo -n'
15061 else
15062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15063 as_echo_n_body='eval
15064 arg=$1;
15065 case $arg in #(
15066 *"$as_nl"*)
15067 expr "X$arg" : "X\\(.*\\)$as_nl";
15068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15069 esac;
15070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15071 '
15072 export as_echo_n_body
15073 as_echo_n='sh -c $as_echo_n_body as_echo'
15074 fi
15075 export as_echo_body
15076 as_echo='sh -c $as_echo_body as_echo'
15077 fi
15078
15079 # The user is always right.
15080 if test "${PATH_SEPARATOR+set}" != set; then
15081 PATH_SEPARATOR=:
15082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15084 PATH_SEPARATOR=';'
15085 }
15086 fi
15087
15088
15089 # IFS
15090 # We need space, tab and new line, in precisely that order. Quoting is
15091 # there to prevent editors from complaining about space-tab.
15092 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15093 # splitting by setting IFS to empty value.)
15094 IFS=" "" $as_nl"
15095
15096 # Find who we are. Look in the path if we contain no directory separator.
15097 as_myself=
15098 case $0 in #((
15099 *[\\/]* ) as_myself=$0 ;;
15100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $PATH
15102 do
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15106 done
15107 IFS=$as_save_IFS
15108
15109 ;;
15110 esac
15111 # We did not find ourselves, most probably we were run as `sh COMMAND'
15112 # in which case we are not to be found in the path.
15113 if test "x$as_myself" = x; then
15114 as_myself=$0
15115 fi
15116 if test ! -f "$as_myself"; then
15117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15118 exit 1
15119 fi
15120
15121 # Unset variables that we do not need and which cause bugs (e.g. in
15122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15123 # suppresses any "Segmentation fault" message there. '((' could
15124 # trigger a bug in pdksh 5.2.14.
15125 for as_var in BASH_ENV ENV MAIL MAILPATH
15126 do eval test x\${$as_var+set} = xset \
15127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15128 done
15129 PS1='$ '
15130 PS2='> '
15131 PS4='+ '
15132
15133 # NLS nuisances.
15134 LC_ALL=C
15135 export LC_ALL
15136 LANGUAGE=C
15137 export LANGUAGE
15138
15139 # CDPATH.
15140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15141
15142
15143 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15144 # ----------------------------------------
15145 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15146 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15147 # script with STATUS, using 1 if that was 0.
15148 as_fn_error ()
15149 {
15150 as_status=$1; test $as_status -eq 0 && as_status=1
15151 if test "$4"; then
15152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15154 fi
15155 $as_echo "$as_me: error: $2" >&2
15156 as_fn_exit $as_status
15157 } # as_fn_error
15158
15159
15160 # as_fn_set_status STATUS
15161 # -----------------------
15162 # Set $? to STATUS, without forking.
15163 as_fn_set_status ()
15164 {
15165 return $1
15166 } # as_fn_set_status
15167
15168 # as_fn_exit STATUS
15169 # -----------------
15170 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15171 as_fn_exit ()
15172 {
15173 set +e
15174 as_fn_set_status $1
15175 exit $1
15176 } # as_fn_exit
15177
15178 # as_fn_unset VAR
15179 # ---------------
15180 # Portably unset VAR.
15181 as_fn_unset ()
15182 {
15183 { eval $1=; unset $1;}
15184 }
15185 as_unset=as_fn_unset
15186 # as_fn_append VAR VALUE
15187 # ----------------------
15188 # Append the text in VALUE to the end of the definition contained in VAR. Take
15189 # advantage of any shell optimizations that allow amortized linear growth over
15190 # repeated appends, instead of the typical quadratic growth present in naive
15191 # implementations.
15192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15193 eval 'as_fn_append ()
15194 {
15195 eval $1+=\$2
15196 }'
15197 else
15198 as_fn_append ()
15199 {
15200 eval $1=\$$1\$2
15201 }
15202 fi # as_fn_append
15203
15204 # as_fn_arith ARG...
15205 # ------------------
15206 # Perform arithmetic evaluation on the ARGs, and store the result in the
15207 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15208 # must be portable across $(()) and expr.
15209 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15210 eval 'as_fn_arith ()
15211 {
15212 as_val=$(( $* ))
15213 }'
15214 else
15215 as_fn_arith ()
15216 {
15217 as_val=`expr "$@" || test $? -eq 1`
15218 }
15219 fi # as_fn_arith
15220
15221
15222 if expr a : '\(a\)' >/dev/null 2>&1 &&
15223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15224 as_expr=expr
15225 else
15226 as_expr=false
15227 fi
15228
15229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15230 as_basename=basename
15231 else
15232 as_basename=false
15233 fi
15234
15235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15236 as_dirname=dirname
15237 else
15238 as_dirname=false
15239 fi
15240
15241 as_me=`$as_basename -- "$0" ||
15242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15243 X"$0" : 'X\(//\)$' \| \
15244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15245 $as_echo X/"$0" |
15246 sed '/^.*\/\([^/][^/]*\)\/*$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\/\(\/\/\)$/{
15251 s//\1/
15252 q
15253 }
15254 /^X\/\(\/\).*/{
15255 s//\1/
15256 q
15257 }
15258 s/.*/./; q'`
15259
15260 # Avoid depending upon Character Ranges.
15261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15264 as_cr_digits='0123456789'
15265 as_cr_alnum=$as_cr_Letters$as_cr_digits
15266
15267 ECHO_C= ECHO_N= ECHO_T=
15268 case `echo -n x` in #(((((
15269 -n*)
15270 case `echo 'xy\c'` in
15271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15272 xy) ECHO_C='\c';;
15273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15274 ECHO_T=' ';;
15275 esac;;
15276 *)
15277 ECHO_N='-n';;
15278 esac
15279
15280 rm -f conf$$ conf$$.exe conf$$.file
15281 if test -d conf$$.dir; then
15282 rm -f conf$$.dir/conf$$.file
15283 else
15284 rm -f conf$$.dir
15285 mkdir conf$$.dir 2>/dev/null
15286 fi
15287 if (echo >conf$$.file) 2>/dev/null; then
15288 if ln -s conf$$.file conf$$ 2>/dev/null; then
15289 as_ln_s='ln -s'
15290 # ... but there are two gotchas:
15291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15293 # In both cases, we have to default to `cp -pR'.
15294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15295 as_ln_s='cp -pR'
15296 elif ln conf$$.file conf$$ 2>/dev/null; then
15297 as_ln_s=ln
15298 else
15299 as_ln_s='cp -pR'
15300 fi
15301 else
15302 as_ln_s='cp -pR'
15303 fi
15304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15305 rmdir conf$$.dir 2>/dev/null
15306
15307
15308 # as_fn_mkdir_p
15309 # -------------
15310 # Create "$as_dir" as a directory, including parents if necessary.
15311 as_fn_mkdir_p ()
15312 {
15313
15314 case $as_dir in #(
15315 -*) as_dir=./$as_dir;;
15316 esac
15317 test -d "$as_dir" || eval $as_mkdir_p || {
15318 as_dirs=
15319 while :; do
15320 case $as_dir in #(
15321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15322 *) as_qdir=$as_dir;;
15323 esac
15324 as_dirs="'$as_qdir' $as_dirs"
15325 as_dir=`$as_dirname -- "$as_dir" ||
15326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15327 X"$as_dir" : 'X\(//\)[^/]' \| \
15328 X"$as_dir" : 'X\(//\)$' \| \
15329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15330 $as_echo X"$as_dir" |
15331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15332 s//\1/
15333 q
15334 }
15335 /^X\(\/\/\)[^/].*/{
15336 s//\1/
15337 q
15338 }
15339 /^X\(\/\/\)$/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\).*/{
15344 s//\1/
15345 q
15346 }
15347 s/.*/./; q'`
15348 test -d "$as_dir" && break
15349 done
15350 test -z "$as_dirs" || eval "mkdir $as_dirs"
15351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15352
15353
15354 } # as_fn_mkdir_p
15355 if mkdir -p . 2>/dev/null; then
15356 as_mkdir_p='mkdir -p "$as_dir"'
15357 else
15358 test -d ./-p && rmdir ./-p
15359 as_mkdir_p=false
15360 fi
15361
15362
15363 # as_fn_executable_p FILE
15364 # -----------------------
15365 # Test if FILE is an executable regular file.
15366 as_fn_executable_p ()
15367 {
15368 test -f "$1" && test -x "$1"
15369 } # as_fn_executable_p
15370 as_test_x='test -x'
15371 as_executable_p=as_fn_executable_p
15372
15373 # Sed expression to map a string onto a valid CPP name.
15374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15375
15376 # Sed expression to map a string onto a valid variable name.
15377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15378
15379
15380 exec 6>&1
15381 ## ----------------------------------- ##
15382 ## Main body of $CONFIG_STATUS script. ##
15383 ## ----------------------------------- ##
15384 _ASEOF
15385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15386
15387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15388 # Save the log message, to keep $0 and so on meaningful, and to
15389 # report actual input values of CONFIG_FILES etc. instead of their
15390 # values after options handling.
15391 ac_log="
15392 This file was extended by hopm $as_me TRUNK, which was
15393 generated by GNU Autoconf 2.69. Invocation command line was
15394
15395 CONFIG_FILES = $CONFIG_FILES
15396 CONFIG_HEADERS = $CONFIG_HEADERS
15397 CONFIG_LINKS = $CONFIG_LINKS
15398 CONFIG_COMMANDS = $CONFIG_COMMANDS
15399 $ $0 $@
15400
15401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15402 "
15403
15404 _ACEOF
15405
15406 case $ac_config_files in *"
15407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15408 esac
15409
15410 case $ac_config_headers in *"
15411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15412 esac
15413
15414
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 # Files that config.status was made for.
15417 config_files="$ac_config_files"
15418 config_headers="$ac_config_headers"
15419 config_commands="$ac_config_commands"
15420
15421 _ACEOF
15422
15423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424 ac_cs_usage="\
15425 \`$as_me' instantiates files and other configuration actions
15426 from templates according to the current configuration. Unless the files
15427 and actions are specified as TAGs, all are instantiated by default.
15428
15429 Usage: $0 [OPTION]... [TAG]...
15430
15431 -h, --help print this help, then exit
15432 -V, --version print version number and configuration settings, then exit
15433 --config print configuration, then exit
15434 -q, --quiet, --silent
15435 do not print progress messages
15436 -d, --debug don't remove temporary files
15437 --recheck update $as_me by reconfiguring in the same conditions
15438 --file=FILE[:TEMPLATE]
15439 instantiate the configuration file FILE
15440 --header=FILE[:TEMPLATE]
15441 instantiate the configuration header FILE
15442
15443 Configuration files:
15444 $config_files
15445
15446 Configuration headers:
15447 $config_headers
15448
15449 Configuration commands:
15450 $config_commands
15451
15452 Report bugs to <bugs@ircd-hybrid.org>."
15453
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15457 ac_cs_version="\\
15458 hopm config.status TRUNK
15459 configured by $0, generated by GNU Autoconf 2.69,
15460 with options \\"\$ac_cs_config\\"
15461
15462 Copyright (C) 2012 Free Software Foundation, Inc.
15463 This config.status script is free software; the Free Software Foundation
15464 gives unlimited permission to copy, distribute and modify it."
15465
15466 ac_pwd='$ac_pwd'
15467 srcdir='$srcdir'
15468 INSTALL='$INSTALL'
15469 MKDIR_P='$MKDIR_P'
15470 AWK='$AWK'
15471 test -n "\$AWK" || AWK=awk
15472 _ACEOF
15473
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 # The default lists apply if the user does not specify any file.
15476 ac_need_defaults=:
15477 while test $# != 0
15478 do
15479 case $1 in
15480 --*=?*)
15481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15483 ac_shift=:
15484 ;;
15485 --*=)
15486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15487 ac_optarg=
15488 ac_shift=:
15489 ;;
15490 *)
15491 ac_option=$1
15492 ac_optarg=$2
15493 ac_shift=shift
15494 ;;
15495 esac
15496
15497 case $ac_option in
15498 # Handling of the options.
15499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15500 ac_cs_recheck=: ;;
15501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15502 $as_echo "$ac_cs_version"; exit ;;
15503 --config | --confi | --conf | --con | --co | --c )
15504 $as_echo "$ac_cs_config"; exit ;;
15505 --debug | --debu | --deb | --de | --d | -d )
15506 debug=: ;;
15507 --file | --fil | --fi | --f )
15508 $ac_shift
15509 case $ac_optarg in
15510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15511 '') as_fn_error $? "missing file argument" ;;
15512 esac
15513 as_fn_append CONFIG_FILES " '$ac_optarg'"
15514 ac_need_defaults=false;;
15515 --header | --heade | --head | --hea )
15516 $ac_shift
15517 case $ac_optarg in
15518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15519 esac
15520 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15521 ac_need_defaults=false;;
15522 --he | --h)
15523 # Conflict between --help and --header
15524 as_fn_error $? "ambiguous option: \`$1'
15525 Try \`$0 --help' for more information.";;
15526 --help | --hel | -h )
15527 $as_echo "$ac_cs_usage"; exit ;;
15528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15529 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15530 ac_cs_silent=: ;;
15531
15532 # This is an error.
15533 -*) as_fn_error $? "unrecognized option: \`$1'
15534 Try \`$0 --help' for more information." ;;
15535
15536 *) as_fn_append ac_config_targets " $1"
15537 ac_need_defaults=false ;;
15538
15539 esac
15540 shift
15541 done
15542
15543 ac_configure_extra_args=
15544
15545 if $ac_cs_silent; then
15546 exec 6>/dev/null
15547 ac_configure_extra_args="$ac_configure_extra_args --silent"
15548 fi
15549
15550 _ACEOF
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552 if \$ac_cs_recheck; then
15553 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15554 shift
15555 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15556 CONFIG_SHELL='$SHELL'
15557 export CONFIG_SHELL
15558 exec "\$@"
15559 fi
15560
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563 exec 5>>config.log
15564 {
15565 echo
15566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15567 ## Running $as_me. ##
15568 _ASBOX
15569 $as_echo "$ac_log"
15570 } >&5
15571
15572 _ACEOF
15573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15574 #
15575 # INIT-COMMANDS
15576 #
15577 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15578
15579
15580 # The HP-UX ksh and POSIX shell print the target directory to stdout
15581 # if CDPATH is set.
15582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15583
15584 sed_quote_subst='$sed_quote_subst'
15585 double_quote_subst='$double_quote_subst'
15586 delay_variable_subst='$delay_variable_subst'
15587 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15588 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15589 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15590 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15591 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15592 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15593 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15594 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15595 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15596 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15597 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15598 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15599 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15600 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15601 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15602 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15603 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15604 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15605 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15606 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15607 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15608 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15609 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15610 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15611 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15612 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15613 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15614 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15615 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15616 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15617 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15618 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15624 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15625 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15626 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15627 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15628 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15629 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15630 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15631 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15632 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15633 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15634 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15635 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15636 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15637 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15638 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15639 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15640 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15641 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15642 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15643 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15644 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15645 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"`'
15646 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15647 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15648 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15649 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15650 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15651 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15652 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15653 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15654 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15655 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15656 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15657 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15658 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15659 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15660 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15661 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15662 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15663 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15664 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15665 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15666 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15667 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15668 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15669 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15670 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15671 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15672 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15673 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15674 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15675 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15676 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15677 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15678 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15679 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15680 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15681 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15682 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15683 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15684 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15685 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15686 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15687 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15688 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15689 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15690 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15691 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15692 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15693 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15694 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15695 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15696 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15697 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15698 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15699 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15700 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15701 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15702 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15703 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15704 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15705 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15706 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15707 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15708 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15709 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15710 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15711 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15712 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15713 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15714 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15715 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15716 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15717 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15718 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15719 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15720 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15721 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15722
15723 LTCC='$LTCC'
15724 LTCFLAGS='$LTCFLAGS'
15725 compiler='$compiler_DEFAULT'
15726
15727 # A function that is used when there is no print builtin or printf.
15728 func_fallback_echo ()
15729 {
15730 eval 'cat <<_LTECHO_EOF
15731 \$1
15732 _LTECHO_EOF'
15733 }
15734
15735 # Quote evaled strings.
15736 for var in SHELL \
15737 ECHO \
15738 PATH_SEPARATOR \
15739 SED \
15740 GREP \
15741 EGREP \
15742 FGREP \
15743 LD \
15744 NM \
15745 LN_S \
15746 lt_SP2NL \
15747 lt_NL2SP \
15748 reload_flag \
15749 OBJDUMP \
15750 deplibs_check_method \
15751 file_magic_cmd \
15752 file_magic_glob \
15753 want_nocaseglob \
15754 DLLTOOL \
15755 sharedlib_from_linklib_cmd \
15756 AR \
15757 AR_FLAGS \
15758 archiver_list_spec \
15759 STRIP \
15760 RANLIB \
15761 CC \
15762 CFLAGS \
15763 compiler \
15764 lt_cv_sys_global_symbol_pipe \
15765 lt_cv_sys_global_symbol_to_cdecl \
15766 lt_cv_sys_global_symbol_to_import \
15767 lt_cv_sys_global_symbol_to_c_name_address \
15768 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15769 lt_cv_nm_interface \
15770 nm_file_list_spec \
15771 lt_cv_truncate_bin \
15772 lt_prog_compiler_no_builtin_flag \
15773 lt_prog_compiler_pic \
15774 lt_prog_compiler_wl \
15775 lt_prog_compiler_static \
15776 lt_cv_prog_compiler_c_o \
15777 need_locks \
15778 MANIFEST_TOOL \
15779 DSYMUTIL \
15780 NMEDIT \
15781 LIPO \
15782 OTOOL \
15783 OTOOL64 \
15784 shrext_cmds \
15785 export_dynamic_flag_spec \
15786 whole_archive_flag_spec \
15787 compiler_needs_object \
15788 with_gnu_ld \
15789 allow_undefined_flag \
15790 no_undefined_flag \
15791 hardcode_libdir_flag_spec \
15792 hardcode_libdir_separator \
15793 exclude_expsyms \
15794 include_expsyms \
15795 file_list_spec \
15796 variables_saved_for_relink \
15797 libname_spec \
15798 library_names_spec \
15799 soname_spec \
15800 install_override_mode \
15801 finish_eval \
15802 old_striplib \
15803 striplib; do
15804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15805 *[\\\\\\\`\\"\\\$]*)
15806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15807 ;;
15808 *)
15809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15810 ;;
15811 esac
15812 done
15813
15814 # Double-quote double-evaled strings.
15815 for var in reload_cmds \
15816 old_postinstall_cmds \
15817 old_postuninstall_cmds \
15818 old_archive_cmds \
15819 extract_expsyms_cmds \
15820 old_archive_from_new_cmds \
15821 old_archive_from_expsyms_cmds \
15822 archive_cmds \
15823 archive_expsym_cmds \
15824 module_cmds \
15825 module_expsym_cmds \
15826 export_symbols_cmds \
15827 prelink_cmds \
15828 postlink_cmds \
15829 postinstall_cmds \
15830 postuninstall_cmds \
15831 finish_cmds \
15832 sys_lib_search_path_spec \
15833 configure_time_dlsearch_path \
15834 configure_time_lt_sys_library_path; do
15835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15836 *[\\\\\\\`\\"\\\$]*)
15837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15838 ;;
15839 *)
15840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15841 ;;
15842 esac
15843 done
15844
15845 ac_aux_dir='$ac_aux_dir'
15846
15847 # See if we are running on zsh, and set the options that allow our
15848 # commands through without removal of \ escapes INIT.
15849 if test -n "\${ZSH_VERSION+set}"; then
15850 setopt NO_GLOB_SUBST
15851 fi
15852
15853
15854 PACKAGE='$PACKAGE'
15855 VERSION='$VERSION'
15856 RM='$RM'
15857 ofile='$ofile'
15858
15859
15860
15861
15862 _ACEOF
15863
15864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865
15866 # Handling of arguments.
15867 for ac_config_target in $ac_config_targets
15868 do
15869 case $ac_config_target in
15870 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
15871 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15872 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15874 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15875 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15876 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
15877 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
15878
15879 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15880 esac
15881 done
15882
15883
15884 # If the user did not use the arguments to specify the items to instantiate,
15885 # then the envvar interface is used. Set only those that are not.
15886 # We use the long form for the default assignment because of an extremely
15887 # bizarre bug on SunOS 4.1.3.
15888 if $ac_need_defaults; then
15889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15892 fi
15893
15894 # Have a temporary directory for convenience. Make it in the build tree
15895 # simply because there is no reason against having it here, and in addition,
15896 # creating and moving files from /tmp can sometimes cause problems.
15897 # Hook for its removal unless debugging.
15898 # Note that there is a small window in which the directory will not be cleaned:
15899 # after its creation but before its name has been assigned to `$tmp'.
15900 $debug ||
15901 {
15902 tmp= ac_tmp=
15903 trap 'exit_status=$?
15904 : "${ac_tmp:=$tmp}"
15905 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15906 ' 0
15907 trap 'as_fn_exit 1' 1 2 13 15
15908 }
15909 # Create a (secure) tmp directory for tmp files.
15910
15911 {
15912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15913 test -d "$tmp"
15914 } ||
15915 {
15916 tmp=./conf$$-$RANDOM
15917 (umask 077 && mkdir "$tmp")
15918 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15919 ac_tmp=$tmp
15920
15921 # Set up the scripts for CONFIG_FILES section.
15922 # No need to generate them if there are no CONFIG_FILES.
15923 # This happens for instance with `./config.status config.h'.
15924 if test -n "$CONFIG_FILES"; then
15925
15926
15927 ac_cr=`echo X | tr X '\015'`
15928 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15929 # But we know of no other shell where ac_cr would be empty at this
15930 # point, so we can use a bashism as a fallback.
15931 if test "x$ac_cr" = x; then
15932 eval ac_cr=\$\'\\r\'
15933 fi
15934 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15936 ac_cs_awk_cr='\\r'
15937 else
15938 ac_cs_awk_cr=$ac_cr
15939 fi
15940
15941 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15942 _ACEOF
15943
15944
15945 {
15946 echo "cat >conf$$subs.awk <<_ACEOF" &&
15947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15948 echo "_ACEOF"
15949 } >conf$$subs.sh ||
15950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15952 ac_delim='%!_!# '
15953 for ac_last_try in false false false false false :; do
15954 . ./conf$$subs.sh ||
15955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15956
15957 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15958 if test $ac_delim_n = $ac_delim_num; then
15959 break
15960 elif $ac_last_try; then
15961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15962 else
15963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15964 fi
15965 done
15966 rm -f conf$$subs.sh
15967
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15970 _ACEOF
15971 sed -n '
15972 h
15973 s/^/S["/; s/!.*/"]=/
15974 p
15975 g
15976 s/^[^!]*!//
15977 :repl
15978 t repl
15979 s/'"$ac_delim"'$//
15980 t delim
15981 :nl
15982 h
15983 s/\(.\{148\}\)..*/\1/
15984 t more1
15985 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15986 p
15987 n
15988 b repl
15989 :more1
15990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15991 p
15992 g
15993 s/.\{148\}//
15994 t nl
15995 :delim
15996 h
15997 s/\(.\{148\}\)..*/\1/
15998 t more2
15999 s/["\\]/\\&/g; s/^/"/; s/$/"/
16000 p
16001 b
16002 :more2
16003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16004 p
16005 g
16006 s/.\{148\}//
16007 t delim
16008 ' <conf$$subs.awk | sed '
16009 /^[^""]/{
16010 N
16011 s/\n//
16012 }
16013 ' >>$CONFIG_STATUS || ac_write_fail=1
16014 rm -f conf$$subs.awk
16015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16016 _ACAWK
16017 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16018 for (key in S) S_is_set[key] = 1
16019 FS = ""
16020
16021 }
16022 {
16023 line = $ 0
16024 nfields = split(line, field, "@")
16025 substed = 0
16026 len = length(field[1])
16027 for (i = 2; i < nfields; i++) {
16028 key = field[i]
16029 keylen = length(key)
16030 if (S_is_set[key]) {
16031 value = S[key]
16032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16033 len += length(value) + length(field[++i])
16034 substed = 1
16035 } else
16036 len += 1 + keylen
16037 }
16038
16039 print line
16040 }
16041
16042 _ACAWK
16043 _ACEOF
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16047 else
16048 cat
16049 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16050 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16051 _ACEOF
16052
16053 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16054 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16055 # trailing colons and then remove the whole line if VPATH becomes empty
16056 # (actually we leave an empty line to preserve line numbers).
16057 if test "x$srcdir" = x.; then
16058 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16059 h
16060 s///
16061 s/^/:/
16062 s/[ ]*$/:/
16063 s/:\$(srcdir):/:/g
16064 s/:\${srcdir}:/:/g
16065 s/:@srcdir@:/:/g
16066 s/^:*//
16067 s/:*$//
16068 x
16069 s/\(=[ ]*\).*/\1/
16070 G
16071 s/\n//
16072 s/^[^=]*=[ ]*$//
16073 }'
16074 fi
16075
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077 fi # test -n "$CONFIG_FILES"
16078
16079 # Set up the scripts for CONFIG_HEADERS section.
16080 # No need to generate them if there are no CONFIG_HEADERS.
16081 # This happens for instance with `./config.status Makefile'.
16082 if test -n "$CONFIG_HEADERS"; then
16083 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16084 BEGIN {
16085 _ACEOF
16086
16087 # Transform confdefs.h into an awk script `defines.awk', embedded as
16088 # here-document in config.status, that substitutes the proper values into
16089 # config.h.in to produce config.h.
16090
16091 # Create a delimiter string that does not exist in confdefs.h, to ease
16092 # handling of long lines.
16093 ac_delim='%!_!# '
16094 for ac_last_try in false false :; do
16095 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16096 if test -z "$ac_tt"; then
16097 break
16098 elif $ac_last_try; then
16099 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16100 else
16101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16102 fi
16103 done
16104
16105 # For the awk script, D is an array of macro values keyed by name,
16106 # likewise P contains macro parameters if any. Preserve backslash
16107 # newline sequences.
16108
16109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16110 sed -n '
16111 s/.\{148\}/&'"$ac_delim"'/g
16112 t rset
16113 :rset
16114 s/^[ ]*#[ ]*define[ ][ ]*/ /
16115 t def
16116 d
16117 :def
16118 s/\\$//
16119 t bsnl
16120 s/["\\]/\\&/g
16121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16122 D["\1"]=" \3"/p
16123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16124 d
16125 :bsnl
16126 s/["\\]/\\&/g
16127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16128 D["\1"]=" \3\\\\\\n"\\/p
16129 t cont
16130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16131 t cont
16132 d
16133 :cont
16134 n
16135 s/.\{148\}/&'"$ac_delim"'/g
16136 t clear
16137 :clear
16138 s/\\$//
16139 t bsnlc
16140 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16141 d
16142 :bsnlc
16143 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16144 b cont
16145 ' <confdefs.h | sed '
16146 s/'"$ac_delim"'/"\\\
16147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16148
16149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150 for (key in D) D_is_set[key] = 1
16151 FS = ""
16152 }
16153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16154 line = \$ 0
16155 split(line, arg, " ")
16156 if (arg[1] == "#") {
16157 defundef = arg[2]
16158 mac1 = arg[3]
16159 } else {
16160 defundef = substr(arg[1], 2)
16161 mac1 = arg[2]
16162 }
16163 split(mac1, mac2, "(") #)
16164 macro = mac2[1]
16165 prefix = substr(line, 1, index(line, defundef) - 1)
16166 if (D_is_set[macro]) {
16167 # Preserve the white space surrounding the "#".
16168 print prefix "define", macro P[macro] D[macro]
16169 next
16170 } else {
16171 # Replace #undef with comments. This is necessary, for example,
16172 # in the case of _POSIX_SOURCE, which is predefined and required
16173 # on some systems where configure will not decide to define it.
16174 if (defundef == "undef") {
16175 print "/*", prefix defundef, macro, "*/"
16176 next
16177 }
16178 }
16179 }
16180 { print }
16181 _ACAWK
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16185 fi # test -n "$CONFIG_HEADERS"
16186
16187
16188 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16189 shift
16190 for ac_tag
16191 do
16192 case $ac_tag in
16193 :[FHLC]) ac_mode=$ac_tag; continue;;
16194 esac
16195 case $ac_mode$ac_tag in
16196 :[FHL]*:*);;
16197 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16198 :[FH]-) ac_tag=-:-;;
16199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16200 esac
16201 ac_save_IFS=$IFS
16202 IFS=:
16203 set x $ac_tag
16204 IFS=$ac_save_IFS
16205 shift
16206 ac_file=$1
16207 shift
16208
16209 case $ac_mode in
16210 :L) ac_source=$1;;
16211 :[FH])
16212 ac_file_inputs=
16213 for ac_f
16214 do
16215 case $ac_f in
16216 -) ac_f="$ac_tmp/stdin";;
16217 *) # Look for the file first in the build tree, then in the source tree
16218 # (if the path is not absolute). The absolute path cannot be DOS-style,
16219 # because $ac_f cannot contain `:'.
16220 test -f "$ac_f" ||
16221 case $ac_f in
16222 [\\/$]*) false;;
16223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16224 esac ||
16225 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16226 esac
16227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16228 as_fn_append ac_file_inputs " '$ac_f'"
16229 done
16230
16231 # Let's still pretend it is `configure' which instantiates (i.e., don't
16232 # use $as_me), people would be surprised to read:
16233 # /* config.h. Generated by config.status. */
16234 configure_input='Generated from '`
16235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16236 `' by configure.'
16237 if test x"$ac_file" != x-; then
16238 configure_input="$ac_file. $configure_input"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16240 $as_echo "$as_me: creating $ac_file" >&6;}
16241 fi
16242 # Neutralize special characters interpreted by sed in replacement strings.
16243 case $configure_input in #(
16244 *\&* | *\|* | *\\* )
16245 ac_sed_conf_input=`$as_echo "$configure_input" |
16246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16247 *) ac_sed_conf_input=$configure_input;;
16248 esac
16249
16250 case $ac_tag in
16251 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16253 esac
16254 ;;
16255 esac
16256
16257 ac_dir=`$as_dirname -- "$ac_file" ||
16258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16259 X"$ac_file" : 'X\(//\)[^/]' \| \
16260 X"$ac_file" : 'X\(//\)$' \| \
16261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16262 $as_echo X"$ac_file" |
16263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16264 s//\1/
16265 q
16266 }
16267 /^X\(\/\/\)[^/].*/{
16268 s//\1/
16269 q
16270 }
16271 /^X\(\/\/\)$/{
16272 s//\1/
16273 q
16274 }
16275 /^X\(\/\).*/{
16276 s//\1/
16277 q
16278 }
16279 s/.*/./; q'`
16280 as_dir="$ac_dir"; as_fn_mkdir_p
16281 ac_builddir=.
16282
16283 case "$ac_dir" in
16284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16285 *)
16286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16287 # A ".." for each directory in $ac_dir_suffix.
16288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16289 case $ac_top_builddir_sub in
16290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16292 esac ;;
16293 esac
16294 ac_abs_top_builddir=$ac_pwd
16295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16296 # for backward compatibility:
16297 ac_top_builddir=$ac_top_build_prefix
16298
16299 case $srcdir in
16300 .) # We are building in place.
16301 ac_srcdir=.
16302 ac_top_srcdir=$ac_top_builddir_sub
16303 ac_abs_top_srcdir=$ac_pwd ;;
16304 [\\/]* | ?:[\\/]* ) # Absolute name.
16305 ac_srcdir=$srcdir$ac_dir_suffix;
16306 ac_top_srcdir=$srcdir
16307 ac_abs_top_srcdir=$srcdir ;;
16308 *) # Relative name.
16309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16310 ac_top_srcdir=$ac_top_build_prefix$srcdir
16311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16312 esac
16313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16314
16315
16316 case $ac_mode in
16317 :F)
16318 #
16319 # CONFIG_FILE
16320 #
16321
16322 case $INSTALL in
16323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16325 esac
16326 ac_MKDIR_P=$MKDIR_P
16327 case $MKDIR_P in
16328 [\\/$]* | ?:[\\/]* ) ;;
16329 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16330 esac
16331 _ACEOF
16332
16333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16334 # If the template does not know about datarootdir, expand it.
16335 # FIXME: This hack should be removed a few years after 2.60.
16336 ac_datarootdir_hack=; ac_datarootdir_seen=
16337 ac_sed_dataroot='
16338 /datarootdir/ {
16339 p
16340 q
16341 }
16342 /@datadir@/p
16343 /@docdir@/p
16344 /@infodir@/p
16345 /@localedir@/p
16346 /@mandir@/p'
16347 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16348 *datarootdir*) ac_datarootdir_seen=yes;;
16349 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16351 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16354 ac_datarootdir_hack='
16355 s&@datadir@&$datadir&g
16356 s&@docdir@&$docdir&g
16357 s&@infodir@&$infodir&g
16358 s&@localedir@&$localedir&g
16359 s&@mandir@&$mandir&g
16360 s&\\\${datarootdir}&$datarootdir&g' ;;
16361 esac
16362 _ACEOF
16363
16364 # Neutralize VPATH when `$srcdir' = `.'.
16365 # Shell code in configure.ac might set extrasub.
16366 # FIXME: do we really want to maintain this feature?
16367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16368 ac_sed_extra="$ac_vpsub
16369 $extrasub
16370 _ACEOF
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 :t
16373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16374 s|@configure_input@|$ac_sed_conf_input|;t t
16375 s&@top_builddir@&$ac_top_builddir_sub&;t t
16376 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16377 s&@srcdir@&$ac_srcdir&;t t
16378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16379 s&@top_srcdir@&$ac_top_srcdir&;t t
16380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16381 s&@builddir@&$ac_builddir&;t t
16382 s&@abs_builddir@&$ac_abs_builddir&;t t
16383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16384 s&@INSTALL@&$ac_INSTALL&;t t
16385 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16386 $ac_datarootdir_hack
16387 "
16388 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16389 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16390
16391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16392 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16393 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16394 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16396 which seems to be undefined. Please make sure it is defined" >&5
16397 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16398 which seems to be undefined. Please make sure it is defined" >&2;}
16399
16400 rm -f "$ac_tmp/stdin"
16401 case $ac_file in
16402 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16403 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16404 esac \
16405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16406 ;;
16407 :H)
16408 #
16409 # CONFIG_HEADER
16410 #
16411 if test x"$ac_file" != x-; then
16412 {
16413 $as_echo "/* $configure_input */" \
16414 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16415 } >"$ac_tmp/config.h" \
16416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16417 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16419 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16420 else
16421 rm -f "$ac_file"
16422 mv "$ac_tmp/config.h" "$ac_file" \
16423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16424 fi
16425 else
16426 $as_echo "/* $configure_input */" \
16427 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16428 || as_fn_error $? "could not create -" "$LINENO" 5
16429 fi
16430 # Compute "$ac_file"'s index in $config_headers.
16431 _am_arg="$ac_file"
16432 _am_stamp_count=1
16433 for _am_header in $config_headers :; do
16434 case $_am_header in
16435 $_am_arg | $_am_arg:* )
16436 break ;;
16437 * )
16438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16439 esac
16440 done
16441 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16442 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16443 X"$_am_arg" : 'X\(//\)[^/]' \| \
16444 X"$_am_arg" : 'X\(//\)$' \| \
16445 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16446 $as_echo X"$_am_arg" |
16447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16448 s//\1/
16449 q
16450 }
16451 /^X\(\/\/\)[^/].*/{
16452 s//\1/
16453 q
16454 }
16455 /^X\(\/\/\)$/{
16456 s//\1/
16457 q
16458 }
16459 /^X\(\/\).*/{
16460 s//\1/
16461 q
16462 }
16463 s/.*/./; q'`/stamp-h$_am_stamp_count
16464 ;;
16465
16466 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16467 $as_echo "$as_me: executing $ac_file commands" >&6;}
16468 ;;
16469 esac
16470
16471
16472 case $ac_file$ac_mode in
16473 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16474 # Older Autoconf quotes --file arguments for eval, but not when files
16475 # are listed without --file. Let's play safe and only enable the eval
16476 # if we detect the quoting.
16477 case $CONFIG_FILES in
16478 *\'*) eval set x "$CONFIG_FILES" ;;
16479 *) set x $CONFIG_FILES ;;
16480 esac
16481 shift
16482 for mf
16483 do
16484 # Strip MF so we end up with the name of the file.
16485 mf=`echo "$mf" | sed -e 's/:.*$//'`
16486 # Check whether this is an Automake generated Makefile or not.
16487 # We used to match only the files named 'Makefile.in', but
16488 # some people rename them; so instead we look at the file content.
16489 # Grep'ing the first line is not enough: some people post-process
16490 # each Makefile.in and add a new line on top of each file to say so.
16491 # Grep'ing the whole file is not good either: AIX grep has a line
16492 # limit of 2048, but all sed's we know have understand at least 4000.
16493 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16494 dirpart=`$as_dirname -- "$mf" ||
16495 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16496 X"$mf" : 'X\(//\)[^/]' \| \
16497 X"$mf" : 'X\(//\)$' \| \
16498 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16499 $as_echo X"$mf" |
16500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16501 s//\1/
16502 q
16503 }
16504 /^X\(\/\/\)[^/].*/{
16505 s//\1/
16506 q
16507 }
16508 /^X\(\/\/\)$/{
16509 s//\1/
16510 q
16511 }
16512 /^X\(\/\).*/{
16513 s//\1/
16514 q
16515 }
16516 s/.*/./; q'`
16517 else
16518 continue
16519 fi
16520 # Extract the definition of DEPDIR, am__include, and am__quote
16521 # from the Makefile without running 'make'.
16522 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16523 test -z "$DEPDIR" && continue
16524 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16525 test -z "$am__include" && continue
16526 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16527 # Find all dependency output files, they are included files with
16528 # $(DEPDIR) in their names. We invoke sed twice because it is the
16529 # simplest approach to changing $(DEPDIR) to its actual value in the
16530 # expansion.
16531 for file in `sed -n "
16532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16534 # Make sure the directory exists.
16535 test -f "$dirpart/$file" && continue
16536 fdir=`$as_dirname -- "$file" ||
16537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16538 X"$file" : 'X\(//\)[^/]' \| \
16539 X"$file" : 'X\(//\)$' \| \
16540 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16541 $as_echo X"$file" |
16542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16543 s//\1/
16544 q
16545 }
16546 /^X\(\/\/\)[^/].*/{
16547 s//\1/
16548 q
16549 }
16550 /^X\(\/\/\)$/{
16551 s//\1/
16552 q
16553 }
16554 /^X\(\/\).*/{
16555 s//\1/
16556 q
16557 }
16558 s/.*/./; q'`
16559 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16560 # echo "creating $dirpart/$file"
16561 echo '# dummy' > "$dirpart/$file"
16562 done
16563 done
16564 }
16565 ;;
16566 "libtool":C)
16567
16568 # See if we are running on zsh, and set the options that allow our
16569 # commands through without removal of \ escapes.
16570 if test -n "${ZSH_VERSION+set}"; then
16571 setopt NO_GLOB_SUBST
16572 fi
16573
16574 cfgfile=${ofile}T
16575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16576 $RM "$cfgfile"
16577
16578 cat <<_LT_EOF >> "$cfgfile"
16579 #! $SHELL
16580 # Generated automatically by $as_me ($PACKAGE) $VERSION
16581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16582 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16583
16584 # Provide generalized library-building support services.
16585 # Written by Gordon Matzigkeit, 1996
16586
16587 # Copyright (C) 2014 Free Software Foundation, Inc.
16588 # This is free software; see the source for copying conditions. There is NO
16589 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16590
16591 # GNU Libtool is free software; you can redistribute it and/or modify
16592 # it under the terms of the GNU General Public License as published by
16593 # the Free Software Foundation; either version 2 of of the License, or
16594 # (at your option) any later version.
16595 #
16596 # As a special exception to the GNU General Public License, if you
16597 # distribute this file as part of a program or library that is built
16598 # using GNU Libtool, you may include this file under the same
16599 # distribution terms that you use for the rest of that program.
16600 #
16601 # GNU Libtool is distributed in the hope that it will be useful, but
16602 # WITHOUT ANY WARRANTY; without even the implied warranty of
16603 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16604 # GNU General Public License for more details.
16605 #
16606 # You should have received a copy of the GNU General Public License
16607 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16608
16609
16610 # The names of the tagged configurations supported by this script.
16611 available_tags=''
16612
16613 # Configured defaults for sys_lib_dlsearch_path munging.
16614 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16615
16616 # ### BEGIN LIBTOOL CONFIG
16617
16618 # Which release of libtool.m4 was used?
16619 macro_version=$macro_version
16620 macro_revision=$macro_revision
16621
16622 # Whether or not to build shared libraries.
16623 build_libtool_libs=$enable_shared
16624
16625 # Whether or not to build static libraries.
16626 build_old_libs=$enable_static
16627
16628 # What type of objects to build.
16629 pic_mode=$pic_mode
16630
16631 # Whether or not to optimize for fast installation.
16632 fast_install=$enable_fast_install
16633
16634 # Shared archive member basename,for filename based shared library versioning on AIX.
16635 shared_archive_member_spec=$shared_archive_member_spec
16636
16637 # Shell to use when invoking shell scripts.
16638 SHELL=$lt_SHELL
16639
16640 # An echo program that protects backslashes.
16641 ECHO=$lt_ECHO
16642
16643 # The PATH separator for the build system.
16644 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16645
16646 # The host system.
16647 host_alias=$host_alias
16648 host=$host
16649 host_os=$host_os
16650
16651 # The build system.
16652 build_alias=$build_alias
16653 build=$build
16654 build_os=$build_os
16655
16656 # A sed program that does not truncate output.
16657 SED=$lt_SED
16658
16659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16660 Xsed="\$SED -e 1s/^X//"
16661
16662 # A grep program that handles long lines.
16663 GREP=$lt_GREP
16664
16665 # An ERE matcher.
16666 EGREP=$lt_EGREP
16667
16668 # A literal string matcher.
16669 FGREP=$lt_FGREP
16670
16671 # A BSD- or MS-compatible name lister.
16672 NM=$lt_NM
16673
16674 # Whether we need soft or hard links.
16675 LN_S=$lt_LN_S
16676
16677 # What is the maximum length of a command?
16678 max_cmd_len=$max_cmd_len
16679
16680 # Object file suffix (normally "o").
16681 objext=$ac_objext
16682
16683 # Executable file suffix (normally "").
16684 exeext=$exeext
16685
16686 # whether the shell understands "unset".
16687 lt_unset=$lt_unset
16688
16689 # turn spaces into newlines.
16690 SP2NL=$lt_lt_SP2NL
16691
16692 # turn newlines into spaces.
16693 NL2SP=$lt_lt_NL2SP
16694
16695 # convert \$build file names to \$host format.
16696 to_host_file_cmd=$lt_cv_to_host_file_cmd
16697
16698 # convert \$build files to toolchain format.
16699 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16700
16701 # An object symbol dumper.
16702 OBJDUMP=$lt_OBJDUMP
16703
16704 # Method to check whether dependent libraries are shared objects.
16705 deplibs_check_method=$lt_deplibs_check_method
16706
16707 # Command to use when deplibs_check_method = "file_magic".
16708 file_magic_cmd=$lt_file_magic_cmd
16709
16710 # How to find potential files when deplibs_check_method = "file_magic".
16711 file_magic_glob=$lt_file_magic_glob
16712
16713 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16714 want_nocaseglob=$lt_want_nocaseglob
16715
16716 # DLL creation program.
16717 DLLTOOL=$lt_DLLTOOL
16718
16719 # Command to associate shared and link libraries.
16720 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16721
16722 # The archiver.
16723 AR=$lt_AR
16724
16725 # Flags to create an archive.
16726 AR_FLAGS=$lt_AR_FLAGS
16727
16728 # How to feed a file listing to the archiver.
16729 archiver_list_spec=$lt_archiver_list_spec
16730
16731 # A symbol stripping program.
16732 STRIP=$lt_STRIP
16733
16734 # Commands used to install an old-style archive.
16735 RANLIB=$lt_RANLIB
16736 old_postinstall_cmds=$lt_old_postinstall_cmds
16737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16738
16739 # Whether to use a lock for old archive extraction.
16740 lock_old_archive_extraction=$lock_old_archive_extraction
16741
16742 # A C compiler.
16743 LTCC=$lt_CC
16744
16745 # LTCC compiler flags.
16746 LTCFLAGS=$lt_CFLAGS
16747
16748 # Take the output of nm and produce a listing of raw symbols and C names.
16749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16750
16751 # Transform the output of nm in a proper C declaration.
16752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16753
16754 # Transform the output of nm into a list of symbols to manually relocate.
16755 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16756
16757 # Transform the output of nm in a C name address pair.
16758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16759
16760 # Transform the output of nm in a C name address pair when lib prefix is needed.
16761 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16762
16763 # The name lister interface.
16764 nm_interface=$lt_lt_cv_nm_interface
16765
16766 # Specify filename containing input files for \$NM.
16767 nm_file_list_spec=$lt_nm_file_list_spec
16768
16769 # The root where to search for dependent libraries,and where our libraries should be installed.
16770 lt_sysroot=$lt_sysroot
16771
16772 # Command to truncate a binary pipe.
16773 lt_truncate_bin=$lt_lt_cv_truncate_bin
16774
16775 # The name of the directory that contains temporary libtool files.
16776 objdir=$objdir
16777
16778 # Used to examine libraries when file_magic_cmd begins with "file".
16779 MAGIC_CMD=$MAGIC_CMD
16780
16781 # Must we lock files when doing compilation?
16782 need_locks=$lt_need_locks
16783
16784 # Manifest tool.
16785 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16786
16787 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16788 DSYMUTIL=$lt_DSYMUTIL
16789
16790 # Tool to change global to local symbols on Mac OS X.
16791 NMEDIT=$lt_NMEDIT
16792
16793 # Tool to manipulate fat objects and archives on Mac OS X.
16794 LIPO=$lt_LIPO
16795
16796 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16797 OTOOL=$lt_OTOOL
16798
16799 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16800 OTOOL64=$lt_OTOOL64
16801
16802 # Old archive suffix (normally "a").
16803 libext=$libext
16804
16805 # Shared library suffix (normally ".so").
16806 shrext_cmds=$lt_shrext_cmds
16807
16808 # The commands to extract the exported symbol list from a shared archive.
16809 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16810
16811 # Variables whose values should be saved in libtool wrapper scripts and
16812 # restored at link time.
16813 variables_saved_for_relink=$lt_variables_saved_for_relink
16814
16815 # Do we need the "lib" prefix for modules?
16816 need_lib_prefix=$need_lib_prefix
16817
16818 # Do we need a version for libraries?
16819 need_version=$need_version
16820
16821 # Library versioning type.
16822 version_type=$version_type
16823
16824 # Shared library runtime path variable.
16825 runpath_var=$runpath_var
16826
16827 # Shared library path variable.
16828 shlibpath_var=$shlibpath_var
16829
16830 # Is shlibpath searched before the hard-coded library search path?
16831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16832
16833 # Format of library name prefix.
16834 libname_spec=$lt_libname_spec
16835
16836 # List of archive names. First name is the real one, the rest are links.
16837 # The last name is the one that the linker finds with -lNAME
16838 library_names_spec=$lt_library_names_spec
16839
16840 # The coded name of the library, if different from the real name.
16841 soname_spec=$lt_soname_spec
16842
16843 # Permission mode override for installation of shared libraries.
16844 install_override_mode=$lt_install_override_mode
16845
16846 # Command to use after installation of a shared archive.
16847 postinstall_cmds=$lt_postinstall_cmds
16848
16849 # Command to use after uninstallation of a shared archive.
16850 postuninstall_cmds=$lt_postuninstall_cmds
16851
16852 # Commands used to finish a libtool library installation in a directory.
16853 finish_cmds=$lt_finish_cmds
16854
16855 # As "finish_cmds", except a single script fragment to be evaled but
16856 # not shown.
16857 finish_eval=$lt_finish_eval
16858
16859 # Whether we should hardcode library paths into libraries.
16860 hardcode_into_libs=$hardcode_into_libs
16861
16862 # Compile-time system search path for libraries.
16863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16864
16865 # Detected run-time system search path for libraries.
16866 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16867
16868 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16869 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16870
16871 # Whether dlopen is supported.
16872 dlopen_support=$enable_dlopen
16873
16874 # Whether dlopen of programs is supported.
16875 dlopen_self=$enable_dlopen_self
16876
16877 # Whether dlopen of statically linked programs is supported.
16878 dlopen_self_static=$enable_dlopen_self_static
16879
16880 # Commands to strip libraries.
16881 old_striplib=$lt_old_striplib
16882 striplib=$lt_striplib
16883
16884
16885 # The linker used to build libraries.
16886 LD=$lt_LD
16887
16888 # How to create reloadable object files.
16889 reload_flag=$lt_reload_flag
16890 reload_cmds=$lt_reload_cmds
16891
16892 # Commands used to build an old-style archive.
16893 old_archive_cmds=$lt_old_archive_cmds
16894
16895 # A language specific compiler.
16896 CC=$lt_compiler
16897
16898 # Is the compiler the GNU compiler?
16899 with_gcc=$GCC
16900
16901 # Compiler flag to turn off builtin functions.
16902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16903
16904 # Additional compiler flags for building library objects.
16905 pic_flag=$lt_lt_prog_compiler_pic
16906
16907 # How to pass a linker flag through the compiler.
16908 wl=$lt_lt_prog_compiler_wl
16909
16910 # Compiler flag to prevent dynamic linking.
16911 link_static_flag=$lt_lt_prog_compiler_static
16912
16913 # Does compiler simultaneously support -c and -o options?
16914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16915
16916 # Whether or not to add -lc for building shared libraries.
16917 build_libtool_need_lc=$archive_cmds_need_lc
16918
16919 # Whether or not to disallow shared libs when runtime libs are static.
16920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16921
16922 # Compiler flag to allow reflexive dlopens.
16923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16924
16925 # Compiler flag to generate shared objects directly from archives.
16926 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16927
16928 # Whether the compiler copes with passing no objects directly.
16929 compiler_needs_object=$lt_compiler_needs_object
16930
16931 # Create an old-style archive from a shared archive.
16932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16933
16934 # Create a temporary old-style archive to link instead of a shared archive.
16935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16936
16937 # Commands used to build a shared archive.
16938 archive_cmds=$lt_archive_cmds
16939 archive_expsym_cmds=$lt_archive_expsym_cmds
16940
16941 # Commands used to build a loadable module if different from building
16942 # a shared archive.
16943 module_cmds=$lt_module_cmds
16944 module_expsym_cmds=$lt_module_expsym_cmds
16945
16946 # Whether we are building with GNU ld or not.
16947 with_gnu_ld=$lt_with_gnu_ld
16948
16949 # Flag that allows shared libraries with undefined symbols to be built.
16950 allow_undefined_flag=$lt_allow_undefined_flag
16951
16952 # Flag that enforces no undefined symbols.
16953 no_undefined_flag=$lt_no_undefined_flag
16954
16955 # Flag to hardcode \$libdir into a binary during linking.
16956 # This must work even if \$libdir does not exist
16957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16958
16959 # Whether we need a single "-rpath" flag with a separated argument.
16960 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16961
16962 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16963 # DIR into the resulting binary.
16964 hardcode_direct=$hardcode_direct
16965
16966 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16967 # DIR into the resulting binary and the resulting library dependency is
16968 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16969 # library is relocated.
16970 hardcode_direct_absolute=$hardcode_direct_absolute
16971
16972 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16973 # into the resulting binary.
16974 hardcode_minus_L=$hardcode_minus_L
16975
16976 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16977 # into the resulting binary.
16978 hardcode_shlibpath_var=$hardcode_shlibpath_var
16979
16980 # Set to "yes" if building a shared library automatically hardcodes DIR
16981 # into the library and all subsequent libraries and executables linked
16982 # against it.
16983 hardcode_automatic=$hardcode_automatic
16984
16985 # Set to yes if linker adds runtime paths of dependent libraries
16986 # to runtime path list.
16987 inherit_rpath=$inherit_rpath
16988
16989 # Whether libtool must link a program against all its dependency libraries.
16990 link_all_deplibs=$link_all_deplibs
16991
16992 # Set to "yes" if exported symbols are required.
16993 always_export_symbols=$always_export_symbols
16994
16995 # The commands to list exported symbols.
16996 export_symbols_cmds=$lt_export_symbols_cmds
16997
16998 # Symbols that should not be listed in the preloaded symbols.
16999 exclude_expsyms=$lt_exclude_expsyms
17000
17001 # Symbols that must always be exported.
17002 include_expsyms=$lt_include_expsyms
17003
17004 # Commands necessary for linking programs (against libraries) with templates.
17005 prelink_cmds=$lt_prelink_cmds
17006
17007 # Commands necessary for finishing linking programs.
17008 postlink_cmds=$lt_postlink_cmds
17009
17010 # Specify filename containing input files.
17011 file_list_spec=$lt_file_list_spec
17012
17013 # How to hardcode a shared library path into an executable.
17014 hardcode_action=$hardcode_action
17015
17016 # ### END LIBTOOL CONFIG
17017
17018 _LT_EOF
17019
17020 cat <<'_LT_EOF' >> "$cfgfile"
17021
17022 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17023
17024 # func_munge_path_list VARIABLE PATH
17025 # -----------------------------------
17026 # VARIABLE is name of variable containing _space_ separated list of
17027 # directories to be munged by the contents of PATH, which is string
17028 # having a format:
17029 # "DIR[:DIR]:"
17030 # string "DIR[ DIR]" will be prepended to VARIABLE
17031 # ":DIR[:DIR]"
17032 # string "DIR[ DIR]" will be appended to VARIABLE
17033 # "DIRP[:DIRP]::[DIRA:]DIRA"
17034 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17035 # "DIRA[ DIRA]" will be appended to VARIABLE
17036 # "DIR[:DIR]"
17037 # VARIABLE will be replaced by "DIR[ DIR]"
17038 func_munge_path_list ()
17039 {
17040 case x$2 in
17041 x)
17042 ;;
17043 *:)
17044 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17045 ;;
17046 x:*)
17047 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17048 ;;
17049 *::*)
17050 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17051 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17052 ;;
17053 *)
17054 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17055 ;;
17056 esac
17057 }
17058
17059
17060 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17061 func_cc_basename ()
17062 {
17063 for cc_temp in $*""; do
17064 case $cc_temp in
17065 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17066 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17067 \-*) ;;
17068 *) break;;
17069 esac
17070 done
17071 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17072 }
17073
17074
17075 # ### END FUNCTIONS SHARED WITH CONFIGURE
17076
17077 _LT_EOF
17078
17079 case $host_os in
17080 aix3*)
17081 cat <<\_LT_EOF >> "$cfgfile"
17082 # AIX sometimes has problems with the GCC collect2 program. For some
17083 # reason, if we set the COLLECT_NAMES environment variable, the problems
17084 # vanish in a puff of smoke.
17085 if test set != "${COLLECT_NAMES+set}"; then
17086 COLLECT_NAMES=
17087 export COLLECT_NAMES
17088 fi
17089 _LT_EOF
17090 ;;
17091 esac
17092
17093
17094 ltmain=$ac_aux_dir/ltmain.sh
17095
17096
17097 # We use sed instead of cat because bash on DJGPP gets confused if
17098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17099 # text mode, it properly converts lines to CR/LF. This bash problem
17100 # is reportedly fixed, but why not run on old versions too?
17101 sed '$q' "$ltmain" >> "$cfgfile" \
17102 || (rm -f "$cfgfile"; exit 1)
17103
17104 mv -f "$cfgfile" "$ofile" ||
17105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17106 chmod +x "$ofile"
17107
17108 ;;
17109
17110 esac
17111 done # for ac_tag
17112
17113
17114 as_fn_exit 0
17115 _ACEOF
17116 ac_clean_files=$ac_clean_files_save
17117
17118 test $ac_write_fail = 0 ||
17119 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17120
17121
17122 # configure is writing to config.log, and then calls config.status.
17123 # config.status does its own redirection, appending to config.log.
17124 # Unfortunately, on DOS this fails, as config.log is still kept open
17125 # by configure, so config.status won't be able to write to it; its
17126 # output is simply discarded. So we exec the FD to /dev/null,
17127 # effectively closing config.log, so it can be properly (re)opened and
17128 # appended to by config.status. When coming back to configure, we
17129 # need to make the FD available again.
17130 if test "$no_create" != yes; then
17131 ac_cs_success=:
17132 ac_config_status_args=
17133 test "$silent" = yes &&
17134 ac_config_status_args="$ac_config_status_args --quiet"
17135 exec 5>/dev/null
17136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17137 exec 5>>config.log
17138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17139 # would make configure fail if this is the last instruction.
17140 $ac_cs_success || as_fn_exit 1
17141 fi
17142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17145 fi
17146
17147
17148
17149 echo "###############################################################################"
17150 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
17151 echo
17152 echo "HOPM will be installed in ${prefix}. To change this, run:"
17153 echo " ./configure --prefix=DIRECTORY"
17154 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id