ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1028
Committed: Sun Nov 8 13:03:38 2009 UTC (14 years, 4 months ago) by michael
Original Path: ircd-hybrid/configure
File size: 467791 byte(s)
Log Message:
- move ircd-hybrid-7.2 to trunk

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1015 2009-10-25 00:08:06Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 fi
370 $as_echo "$as_me: error: $1" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528
529 # Check that we are running under the correct shell.
530 SHELL=${CONFIG_SHELL-/bin/sh}
531
532 case X$lt_ECHO in
533 X*--fallback-echo)
534 # Remove one level of quotation (which was required for Make).
535 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541 # Discard the --no-reexec flag, and continue.
542 shift
543 elif test "X$1" = X--fallback-echo; then
544 # Avoid inline document here, it may be left over
545 :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547 # Yippee, $ECHO works!
548 :
549 else
550 # Restart under the correct shell.
551 exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555 # used as fallback echo
556 shift
557 cat <<_LT_EOF
558 $*
559 _LT_EOF
560 exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568 if test "X${echo_test_string+set}" != Xset; then
569 # find a string as large as possible, as long as the shell can cope with it
570 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574 then
575 break
576 fi
577 done
578 fi
579
580 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582 test "X$echo_testing_string" = "X$echo_test_string"; then
583 :
584 else
585 # The Solaris, AIX, and Digital Unix default echo programs unquote
586 # backslashes. This makes it impossible to quote backslashes using
587 # echo "$something" | sed 's/\\/\\\\/g'
588 #
589 # So, first we look for a working echo in the user's PATH.
590
591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592 for dir in $PATH /usr/ucb; do
593 IFS="$lt_save_ifs"
594 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
598 ECHO="$dir/echo"
599 break
600 fi
601 done
602 IFS="$lt_save_ifs"
603
604 if test "X$ECHO" = Xecho; then
605 # We didn't find a better echo, so look for alternatives.
606 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # This shell has a builtin print -r that does the trick.
610 ECHO='print -r'
611 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612 test "X$CONFIG_SHELL" != X/bin/ksh; then
613 # If we have ksh, try running configure again with it.
614 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615 export ORIGINAL_CONFIG_SHELL
616 CONFIG_SHELL=/bin/ksh
617 export CONFIG_SHELL
618 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619 else
620 # Try using printf.
621 ECHO='printf %s\n'
622 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # Cool, printf works
626 :
627 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628 test "X$echo_testing_string" = 'X\t' &&
629 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 export CONFIG_SHELL
633 SHELL="$CONFIG_SHELL"
634 export SHELL
635 ECHO="$CONFIG_SHELL $0 --fallback-echo"
636 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 else
642 # maybe with a smaller string...
643 prev=:
644
645 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647 then
648 break
649 fi
650 prev="$cmd"
651 done
652
653 if test "$prev" != 'sed 50q "$0"'; then
654 echo_test_string=`eval $prev`
655 export echo_test_string
656 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 else
658 # Oops. We lost completely, so just stick with echo.
659 ECHO=echo
660 fi
661 fi
662 fi
663 fi
664 fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
673
674
675
676
677 lt_ltdl_dir='libltdl'
678
679 lt_dlopen_dir="$lt_ltdl_dir"
680
681 exec 7<&0 </dev/null 6>&1
682
683 # Name of the host.
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685 # so uname gets run too.
686 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688 #
689 # Initializations.
690 #
691 ac_default_prefix=/usr/local
692 ac_clean_files=
693 ac_config_libobj_dir=.
694 LIBOBJS=
695 cross_compiling=no
696 subdirs=
697 MFLAGS=
698 MAKEFLAGS=
699
700 # Identity of this package.
701 PACKAGE_NAME='ircd-hybrid'
702 PACKAGE_TARNAME='ircd-hybrid'
703 PACKAGE_VERSION='7.2.4'
704 PACKAGE_STRING='ircd-hybrid 7.2.4'
705 PACKAGE_BUGREPORT=''
706 PACKAGE_URL=''
707
708 ac_unique_file="src/ircd.c"
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 # include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 # include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 enable_option_checking=no
746 ac_func_list=
747 ac_header_list=
748 ac_subst_vars='ltdl_LTLIBOBJS
749 ltdl_LIBOBJS
750 am__EXEEXT_FALSE
751 am__EXEEXT_TRUE
752 LTLIBOBJS
753 LIBOBJS
754 LOCALSTATEDIR
755 DATADIR
756 LIBDIR
757 SYSCONFDIR
758 PREFIX
759 EFNET_FALSE
760 EFNET_TRUE
761 ENABLE_SSL_FALSE
762 ENABLE_SSL_TRUE
763 ENABLE_PCRE_FALSE
764 ENABLE_PCRE_TRUE
765 LTDLOPEN
766 LT_CONFIG_H
767 subdirs
768 CONVENIENCE_LTDL_FALSE
769 CONVENIENCE_LTDL_TRUE
770 INSTALL_LTDL_FALSE
771 INSTALL_LTDL_TRUE
772 ARGZ_H
773 sys_symbol_underscore
774 LIBADD_DL
775 LT_DLPREOPEN
776 LIBADD_DLD_LINK
777 LIBADD_SHL_LOAD
778 LIBADD_DLOPEN
779 LT_DLLOADERS
780 INCLTDL
781 LTDLINCL
782 LTDLDEPS
783 LIBLTDL
784 CPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 lt_ECHO
791 RANLIB
792 AR
793 OBJDUMP
794 LN_S
795 NM
796 ac_ct_DUMPBIN
797 DUMPBIN
798 LD
799 FGREP
800 EGREP
801 GREP
802 SED
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 LIBTOOL
812 LEXLIB
813 LEX_OUTPUT_ROOT
814 LEX
815 YFLAGS
816 YACC
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 AMDEPBACKSLASH
821 AMDEP_FALSE
822 AMDEP_TRUE
823 am__quote
824 am__include
825 DEPDIR
826 OBJEXT
827 EXEEXT
828 ac_ct_CC
829 CPPFLAGS
830 LDFLAGS
831 CFLAGS
832 CC
833 MAINT
834 MAINTAINER_MODE_FALSE
835 MAINTAINER_MODE_TRUE
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_maintainer_mode
901 enable_dependency_tracking
902 enable_static
903 enable_shared
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_included_ltdl
909 with_ltdl_include
910 with_ltdl_lib
911 enable_ltdl_install
912 with_zlib_path
913 enable_zlib
914 with_libpcre_path
915 enable_libpcre
916 enable_openssl
917 enable_assert
918 enable_small_net
919 enable_kqueue
920 enable_epoll
921 enable_devpoll
922 enable_rtsigio
923 enable_poll
924 enable_select
925 with_nicklen
926 with_topiclen
927 with_syslog_facility
928 enable_efnet
929 enable_halfops
930 enable_debugging
931 enable_warnings
932 enable_syslog
933 '
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 YACC
943 YFLAGS
944 CPP'
945 ac_subdirs_all='libltdl'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
1016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1041
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1074
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372 do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451 else
1452 ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-maintainer-mode enable make rules and dependencies not useful
1565 (and sometimes confusing) to the casual installer
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-static[=PKGS] build static libraries [default=no]
1569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --enable-ltdl-install install libltdl
1574 --disable-zlib Disable ziplinks support
1575 --disable-libpcre Disable PCRE support
1576 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1577 --disable-openssl Disable OpenSSL support.
1578 --enable-assert Enable assert() statements
1579 --enable-small-net Enable small network support.
1580 --enable-kqueue Force kqueue usage.
1581 --enable-epoll Force epoll usage.
1582 --enable-devpoll Force devpoll usage.
1583 --enable-rtsigio Force rtsigio usage.
1584 --enable-poll Force poll usage.
1585 --enable-select Force select usage.
1586 --enable-efnet For IRCDs running on EFnet.
1587 --enable-halfops Enable halfops support.
1588 --enable-debugging Enable debugging.
1589 --enable-warnings Enable compiler warnings.
1590 --enable-syslog="EVENTS"
1591 Enable syslog for events: users oper (space
1592 separated in quotes; default: disabled).
1593
1594 Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-included-ltdl use the GNU ltdl sources included here
1601 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1602 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1603 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1604 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1605 --with-nicklen=<value> Set nickname length (default 9).
1606 --with-topiclen=<value> Set topic length (default 160).
1607 --with-syslog-facility=LOG
1608 Define the syslog facility to use (default:
1609 LOG_LOCAL4)
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1620 the first program found out of: `bison -y', `byacc', `yacc'.
1621 YFLAGS The list of arguments that will be passed by default to $YACC.
1622 This script will default YFLAGS to the empty string to avoid a
1623 default value of `-d' given by some make applications.
1624 CPP C preprocessor
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to the package provider.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 ircd-hybrid configure 7.2.4
1693 generated by GNU Autoconf 2.64
1694
1695 Copyright (C) 2009 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699 exit
1700 fi
1701
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1705
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 return $ac_retval
1741
1742 } # ac_fn_c_try_compile
1743
1744 # ac_fn_c_try_link LINENO
1745 # -----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_link ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788 } # ac_fn_c_try_link
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_header_compile
1820
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1855
1856 } # ac_fn_c_try_cpp
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status
1893 fi
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1897
1898 } # ac_fn_c_try_run
1899
1900 # ac_fn_c_check_func LINENO FUNC VAR
1901 # ----------------------------------
1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903 ac_fn_c_check_func ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915 #define $2 innocuous_$2
1916
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922 #ifdef __STDC__
1923 # include <limits.h>
1924 #else
1925 # include <assert.h>
1926 #endif
1927
1928 #undef $2
1929
1930 /* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 char $2 ();
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined __stub_$2 || defined __stub___$2
1941 choke me
1942 #endif
1943
1944 int
1945 main ()
1946 {
1947 return $2 ();
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954 else
1955 eval "$3=no"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965 } # ac_fn_c_check_func
1966
1967 # ac_fn_c_check_decl LINENO SYMBOL VAR
1968 # ------------------------------------
1969 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1970 ac_fn_c_check_decl ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1974 $as_echo_n "checking whether $2 is declared... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 #ifndef $2
1985 (void) $2;
1986 #endif
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_decl
2005
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=no"
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 if (sizeof ($2))
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 if (sizeof (($2)))
2039 return 0;
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045
2046 else
2047 eval "$3=yes"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058 } # ac_fn_c_check_type
2059
2060 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2061 # ----------------------------------------------------
2062 # Tries to find if the field MEMBER exists in type AGGR, after including
2063 # INCLUDES, setting cache variable VAR accordingly.
2064 ac_fn_c_check_member ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2068 $as_echo_n "checking for $2.$3... " >&6; }
2069 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $5
2075 int
2076 main ()
2077 {
2078 static $2 ac_aggr;
2079 if (ac_aggr.$3)
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$4=yes"
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $5
2091 int
2092 main ()
2093 {
2094 static $2 ac_aggr;
2095 if (sizeof ac_aggr.$3)
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$4=yes"
2103 else
2104 eval "$4=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$4
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_member
2116
2117 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118 # -------------------------------------------------------
2119 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120 # the include files in INCLUDES and setting the cache variable VAR
2121 # accordingly.
2122 ac_fn_c_check_header_mongrel ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2130 fi
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 else
2135 # Is the header compilable?
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137 $as_echo_n "checking $2 usability... " >&6; }
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_header_compiler=yes
2145 else
2146 ac_header_compiler=no
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150 $as_echo "$ac_header_compiler" >&6; }
2151
2152 # Is the header present?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154 $as_echo_n "checking $2 presence... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_c_try_cpp "$LINENO"; then :
2160 ac_header_preproc=yes
2161 else
2162 ac_header_preproc=no
2163 fi
2164 rm -f conftest.err conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166 $as_echo "$ac_header_preproc" >&6; }
2167
2168 # So? What about this header?
2169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2170 yes:no: )
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 ;;
2176 no:yes:* )
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 ;;
2188 esac
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 eval "$3=\$ac_header_compiler"
2195 fi
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 fi
2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201
2202 } # ac_fn_c_check_header_mongrel
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by ircd-hybrid $as_me 7.2.4, which was
2208 generated by GNU Autoconf 2.64. Invocation command line was
2209
2210 $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228
2229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2245 done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2315 {
2316 echo
2317
2318 cat <<\_ASBOX
2319 ## ---------------- ##
2320 ## Cache variables. ##
2321 ## ---------------- ##
2322 _ASBOX
2323 echo
2324 # The following way of writing the cache mishandles newlines in values,
2325 (
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in #(
2329 *${as_nl}*)
2330 case $ac_var in #(
2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 esac
2334 case $ac_var in #(
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2338 esac ;;
2339 esac
2340 done
2341 (set) 2>&1 |
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2344 sed -n \
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 ;; #(
2348 *)
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350 ;;
2351 esac |
2352 sort
2353 )
2354 echo
2355
2356 cat <<\_ASBOX
2357 ## ----------------- ##
2358 ## Output variables. ##
2359 ## ----------------- ##
2360 _ASBOX
2361 echo
2362 for ac_var in $ac_subst_vars
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371
2372 if test -n "$ac_subst_files"; then
2373 cat <<\_ASBOX
2374 ## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##
2377 _ASBOX
2378 echo
2379 for ac_var in $ac_subst_files
2380 do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in
2383 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 esac
2385 $as_echo "$ac_var='\''$ac_val'\''"
2386 done | sort
2387 echo
2388 fi
2389
2390 if test -s confdefs.h; then
2391 cat <<\_ASBOX
2392 ## ----------- ##
2393 ## confdefs.h. ##
2394 ## ----------- ##
2395 _ASBOX
2396 echo
2397 cat confdefs.h
2398 echo
2399 fi
2400 test "$ac_signal" != 0 &&
2401 $as_echo "$as_me: caught signal $ac_signal"
2402 $as_echo "$as_me: exit $exit_status"
2403 } >&5
2404 rm -f core *.core core.conftest.* &&
2405 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 exit $exit_status
2407 ' 0
2408 for ac_signal in 1 2 13 15; do
2409 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 done
2411 ac_signal=0
2412
2413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2414 rm -f -r conftest* confdefs.h
2415
2416 $as_echo "/* confdefs.h */" > confdefs.h
2417
2418 # Predefined preprocessor variables.
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_NAME "$PACKAGE_NAME"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_STRING "$PACKAGE_STRING"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_URL "$PACKAGE_URL"
2442 _ACEOF
2443
2444
2445 # Let the site file select an alternate cache file if it wants to.
2446 # Prefer an explicitly selected file to automatically selected ones.
2447 ac_site_file1=NONE
2448 ac_site_file2=NONE
2449 if test -n "$CONFIG_SITE"; then
2450 ac_site_file1=$CONFIG_SITE
2451 elif test "x$prefix" != xNONE; then
2452 ac_site_file1=$prefix/share/config.site
2453 ac_site_file2=$prefix/etc/config.site
2454 else
2455 ac_site_file1=$ac_default_prefix/share/config.site
2456 ac_site_file2=$ac_default_prefix/etc/config.site
2457 fi
2458 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 do
2460 test "x$ac_site_file" = xNONE && continue
2461 if test -r "$ac_site_file"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464 sed 's/^/| /' "$ac_site_file" >&5
2465 . "$ac_site_file"
2466 fi
2467 done
2468
2469 if test -r "$cache_file"; then
2470 # Some versions of bash will fail to source /dev/null (special
2471 # files actually), so we avoid doing that.
2472 if test -f "$cache_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2479 fi
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2484 fi
2485
2486 as_fn_append ac_func_list " mmap"
2487 as_fn_append ac_func_list " strtok_r"
2488 as_fn_append ac_func_list " usleep"
2489 as_fn_append ac_func_list " strlcat"
2490 as_fn_append ac_func_list " strlcpy"
2491 as_fn_append ac_header_list " crypt.h"
2492 as_fn_append ac_header_list " inttypes.h"
2493 as_fn_append ac_header_list " stdint.h"
2494 as_fn_append ac_header_list " sys/resource.h"
2495 as_fn_append ac_header_list " sys/param.h"
2496 as_fn_append ac_header_list " errno.h"
2497 as_fn_append ac_header_list " sys/syslog.h"
2498 as_fn_append ac_header_list " types.h"
2499 as_fn_append ac_header_list " socket.h"
2500 as_fn_append ac_header_list " sys/wait.h"
2501 as_fn_append ac_header_list " wait.h"
2502 as_fn_append ac_header_list " link.h"
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2512 set,)
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,set)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,);;
2521 *)
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2539 fi;;
2540 esac
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2543 case $ac_new_val in
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2546 esac
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550 esac
2551 fi
2552 done
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571 am__api_version='1.11'
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575 for ac_t in install-sh install.sh shtool; do
2576 if test -f "$ac_dir/$ac_t"; then
2577 ac_aux_dir=$ac_dir
2578 ac_install_sh="$ac_aux_dir/$ac_t -c"
2579 break 2
2580 fi
2581 done
2582 done
2583 if test -z "$ac_aux_dir"; then
2584 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2585 fi
2586
2587 # These three variables are undocumented and unsupported,
2588 # and are intended to be withdrawn in a future Autoconf release.
2589 # They can cause serious problems if a builder's source tree is in a directory
2590 # whose full name contains unusual characters.
2591 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2592 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2593 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2594
2595
2596 # Find a good install program. We prefer a C program (faster),
2597 # so one script is as good as another. But avoid the broken or
2598 # incompatible versions:
2599 # SysV /etc/install, /usr/sbin/install
2600 # SunOS /usr/etc/install
2601 # IRIX /sbin/install
2602 # AIX /bin/install
2603 # AmigaOS /C/install, which installs bootblocks on floppy discs
2604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2607 # OS/2's system install, which has a completely different semantic
2608 # ./install, which can be erroneously created by make from ./install.sh.
2609 # Reject install programs that cannot install multiple files.
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2611 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2612 if test -z "$INSTALL"; then
2613 if test "${ac_cv_path_install+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 # Account for people who put trailing slashes in PATH elements.
2622 case $as_dir/ in #((
2623 ./ | .// | /[cC]/* | \
2624 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2625 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2626 /usr/ucb/* ) ;;
2627 *)
2628 # OSF1 and SCO ODT 3.0 have their own names for install.
2629 # Don't use installbsd from OSF since it installs stuff as root
2630 # by default.
2631 for ac_prog in ginstall scoinst install; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2634 if test $ac_prog = install &&
2635 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636 # AIX install. It has an incompatible calling convention.
2637 :
2638 elif test $ac_prog = install &&
2639 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # program-specific install script used by HP pwplus--don't use.
2641 :
2642 else
2643 rm -rf conftest.one conftest.two conftest.dir
2644 echo one > conftest.one
2645 echo two > conftest.two
2646 mkdir conftest.dir
2647 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2648 test -s conftest.one && test -s conftest.two &&
2649 test -s conftest.dir/conftest.one &&
2650 test -s conftest.dir/conftest.two
2651 then
2652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2653 break 3
2654 fi
2655 fi
2656 fi
2657 done
2658 done
2659 ;;
2660 esac
2661
2662 done
2663 IFS=$as_save_IFS
2664
2665 rm -rf conftest.one conftest.two conftest.dir
2666
2667 fi
2668 if test "${ac_cv_path_install+set}" = set; then
2669 INSTALL=$ac_cv_path_install
2670 else
2671 # As a last resort, use the slow shell script. Don't cache a
2672 # value for INSTALL within a source directory, because that will
2673 # break other packages using the cache if that directory is
2674 # removed, or if the value is a relative name.
2675 INSTALL=$ac_install_sh
2676 fi
2677 fi
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2679 $as_echo "$INSTALL" >&6; }
2680
2681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2682 # It thinks the first close brace ends the variable substitution.
2683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2684
2685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2686
2687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2690 $as_echo_n "checking whether build environment is sane... " >&6; }
2691 # Just in case
2692 sleep 1
2693 echo timestamp > conftest.file
2694 # Reject unsafe characters in $srcdir or the absolute working directory
2695 # name. Accept space and tab only in the latter.
2696 am_lf='
2697 '
2698 case `pwd` in
2699 *[\\\"\#\$\&\'\`$am_lf]*)
2700 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2701 esac
2702 case $srcdir in
2703 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2704 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2705 esac
2706
2707 # Do `set' in a subshell so we don't clobber the current shell's
2708 # arguments. Must try -L first in case configure is actually a
2709 # symlink; some systems play weird games with the mod time of symlinks
2710 # (eg FreeBSD returns the mod time of the symlink's containing
2711 # directory).
2712 if (
2713 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2714 if test "$*" = "X"; then
2715 # -L didn't work.
2716 set X `ls -t "$srcdir/configure" conftest.file`
2717 fi
2718 rm -f conftest.file
2719 if test "$*" != "X $srcdir/configure conftest.file" \
2720 && test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722 # If neither matched, then we have a broken ls. This can happen
2723 # if, for instance, CONFIG_SHELL is bash and it inherits a
2724 # broken ls alias from the environment. This has actually
2725 # happened. Such a system could not be considered "sane".
2726 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2727 alias in your environment" "$LINENO" 5
2728 fi
2729
2730 test "$2" = conftest.file
2731 )
2732 then
2733 # Ok.
2734 :
2735 else
2736 as_fn_error "newly created file is older than distributed files!
2737 Check your system clock" "$LINENO" 5
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741 test "$program_prefix" != NONE &&
2742 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2743 # Use a double $ so make ignores it.
2744 test "$program_suffix" != NONE &&
2745 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2746 # Double any \ or $.
2747 # By default was `s,x,x', remove it if useless.
2748 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2749 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2750
2751 # expand $ac_aux_dir to an absolute path
2752 am_aux_dir=`cd $ac_aux_dir && pwd`
2753
2754 if test x"${MISSING+set}" != xset; then
2755 case $am_aux_dir in
2756 *\ * | *\ *)
2757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2758 *)
2759 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2760 esac
2761 fi
2762 # Use eval to expand $SHELL
2763 if eval "$MISSING --run true"; then
2764 am_missing_run="$MISSING --run "
2765 else
2766 am_missing_run=
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2768 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2769 fi
2770
2771 if test x"${install_sh}" != xset; then
2772 case $am_aux_dir in
2773 *\ * | *\ *)
2774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2775 *)
2776 install_sh="\${SHELL} $am_aux_dir/install-sh"
2777 esac
2778 fi
2779
2780 # Installed binaries are usually stripped using `strip' when the user
2781 # run `make install-strip'. However `strip' might not be the right
2782 # tool to use in cross-compilation environments, therefore Automake
2783 # will honor the `STRIP' environment variable to overrule this program.
2784 if test "$cross_compiling" != no; then
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}strip; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if test "${ac_cv_prog_STRIP+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$STRIP"; then
2794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 STRIP=$ac_cv_prog_STRIP
2814 if test -n "$STRIP"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2816 $as_echo "$STRIP" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 fi
2824 if test -z "$ac_cv_prog_STRIP"; then
2825 ac_ct_STRIP=$STRIP
2826 # Extract the first word of "strip", so it can be a program name with args.
2827 set dummy strip; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$ac_ct_STRIP"; then
2834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_STRIP="strip"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2854 if test -n "$ac_ct_STRIP"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2856 $as_echo "$ac_ct_STRIP" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 fi
2861
2862 if test "x$ac_ct_STRIP" = x; then
2863 STRIP=":"
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871 STRIP=$ac_ct_STRIP
2872 fi
2873 else
2874 STRIP="$ac_cv_prog_STRIP"
2875 fi
2876
2877 fi
2878 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2881 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2882 if test -z "$MKDIR_P"; then
2883 if test "${ac_cv_path_mkdir+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_prog in mkdir gmkdir; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2895 'mkdir (GNU coreutils) '* | \
2896 'mkdir (coreutils) '* | \
2897 'mkdir (fileutils) '4.1*)
2898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2899 break 3;;
2900 esac
2901 done
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907
2908 if test "${ac_cv_path_mkdir+set}" = set; then
2909 MKDIR_P="$ac_cv_path_mkdir -p"
2910 else
2911 # As a last resort, use the slow shell script. Don't cache a
2912 # value for MKDIR_P within a source directory, because that will
2913 # break other packages using the cache if that directory is
2914 # removed, or if the value is a relative name.
2915 test -d ./--version && rmdir ./--version
2916 MKDIR_P="$ac_install_sh -d"
2917 fi
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2920 $as_echo "$MKDIR_P" >&6; }
2921
2922 mkdir_p="$MKDIR_P"
2923 case $mkdir_p in
2924 [\\/$]* | ?:[\\/]*) ;;
2925 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2926 esac
2927
2928 for ac_prog in gawk mawk nawk awk
2929 do
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_AWK+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$AWK"; then
2938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_AWK="$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 AWK=$ac_cv_prog_AWK
2958 if test -n "$AWK"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2960 $as_echo "$AWK" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 test -n "$AWK" && break
2968 done
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2971 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2972 set x ${MAKE-make}
2973 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2974 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 cat >conftest.make <<\_ACEOF
2978 SHELL = /bin/sh
2979 all:
2980 @echo '@@@%%%=$(MAKE)=@@@%%%'
2981 _ACEOF
2982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2983 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2984 *@@@%%%=?*=@@@%%%*)
2985 eval ac_cv_prog_make_${ac_make}_set=yes;;
2986 *)
2987 eval ac_cv_prog_make_${ac_make}_set=no;;
2988 esac
2989 rm -f conftest.make
2990 fi
2991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993 $as_echo "yes" >&6; }
2994 SET_MAKE=
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 SET_MAKE="MAKE=${MAKE-make}"
2999 fi
3000
3001 rm -rf .tst 2>/dev/null
3002 mkdir .tst 2>/dev/null
3003 if test -d .tst; then
3004 am__leading_dot=.
3005 else
3006 am__leading_dot=_
3007 fi
3008 rmdir .tst 2>/dev/null
3009
3010 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3011 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3012 # is not polluted with repeated "-I."
3013 am__isrc=' -I$(srcdir)'
3014 # test to see if srcdir already configured
3015 if test -f $srcdir/config.status; then
3016 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3017 fi
3018 fi
3019
3020 # test whether we have cygpath
3021 if test -z "$CYGPATH_W"; then
3022 if (cygpath --version) >/dev/null 2>/dev/null; then
3023 CYGPATH_W='cygpath -w'
3024 else
3025 CYGPATH_W=echo
3026 fi
3027 fi
3028
3029
3030 # Define the identity of the package.
3031 PACKAGE='ircd-hybrid'
3032 VERSION='7.2.4'
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE "$PACKAGE"
3037 _ACEOF
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define VERSION "$VERSION"
3042 _ACEOF
3043
3044 # Some tools Automake needs.
3045
3046 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047
3048
3049 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050
3051
3052 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053
3054
3055 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056
3057
3058 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3059
3060 # We need awk for the "check" target. The system "awk" is bad on
3061 # some platforms.
3062 # Always define AMTAR for backward compatibility.
3063
3064 AMTAR=${AMTAR-"${am_missing_run}tar"}
3065
3066 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3067
3068
3069
3070
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3074 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3075 # Check whether --enable-maintainer-mode was given.
3076 if test "${enable_maintainer_mode+set}" = set; then :
3077 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3078 else
3079 USE_MAINTAINER_MODE=no
3080 fi
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3083 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3084 if test $USE_MAINTAINER_MODE = yes; then
3085 MAINTAINER_MODE_TRUE=
3086 MAINTAINER_MODE_FALSE='#'
3087 else
3088 MAINTAINER_MODE_TRUE='#'
3089 MAINTAINER_MODE_FALSE=
3090 fi
3091
3092 MAINT=$MAINTAINER_MODE_TRUE
3093
3094
3095 ac_config_headers="$ac_config_headers config.h"
3096
3097
3098
3099 # Checks for programs.
3100 DEPDIR="${am__leading_dot}deps"
3101
3102 ac_config_commands="$ac_config_commands depfiles"
3103
3104
3105 am_make=${MAKE-make}
3106 cat > confinc << 'END'
3107 am__doit:
3108 @echo this is the am__doit target
3109 .PHONY: am__doit
3110 END
3111 # If we don't find an include directive, just comment out the code.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3113 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3114 am__include="#"
3115 am__quote=
3116 _am_result=none
3117 # First try GNU make style include.
3118 echo "include confinc" > confmf
3119 # Ignore all kinds of additional output from `make'.
3120 case `$am_make -s -f confmf 2> /dev/null` in #(
3121 *the\ am__doit\ target*)
3122 am__include=include
3123 am__quote=
3124 _am_result=GNU
3125 ;;
3126 esac
3127 # Now try BSD make style include.
3128 if test "$am__include" = "#"; then
3129 echo '.include "confinc"' > confmf
3130 case `$am_make -s -f confmf 2> /dev/null` in #(
3131 *the\ am__doit\ target*)
3132 am__include=.include
3133 am__quote="\""
3134 _am_result=BSD
3135 ;;
3136 esac
3137 fi
3138
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3141 $as_echo "$_am_result" >&6; }
3142 rm -f confinc confmf
3143
3144 # Check whether --enable-dependency-tracking was given.
3145 if test "${enable_dependency_tracking+set}" = set; then :
3146 enableval=$enable_dependency_tracking;
3147 fi
3148
3149 if test "x$enable_dependency_tracking" != xno; then
3150 am_depcomp="$ac_aux_dir/depcomp"
3151 AMDEPBACKSLASH='\'
3152 fi
3153 if test "x$enable_dependency_tracking" != xno; then
3154 AMDEP_TRUE=
3155 AMDEP_FALSE='#'
3156 else
3157 AMDEP_TRUE='#'
3158 AMDEP_FALSE=
3159 fi
3160
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if test -z "$ac_cv_prog_CC"; then
3207 ac_ct_CC=$CC
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209 set dummy gcc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_ac_ct_CC="gcc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253 CC=$ac_ct_CC
3254 fi
3255 else
3256 CC="$ac_cv_prog_CC"
3257 fi
3258
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="${ac_tool_prefix}cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 fi
3300 if test -z "$CC"; then
3301 # Extract the first word of "cc", so it can be a program name with args.
3302 set dummy cc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 ac_prog_rejected=no
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3320 ac_prog_rejected=yes
3321 continue
3322 fi
3323 ac_cv_prog_CC="cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 if test $ac_prog_rejected = yes; then
3332 # We found a bogon in the path, so make sure we never use it.
3333 set dummy $ac_cv_prog_CC
3334 shift
3335 if test $# != 0; then
3336 # We chose a different compiler from the bogus one.
3337 # However, it has the same basename, so the bogon will be chosen
3338 # first if we set CC to just the basename; use the full file name.
3339 shift
3340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3341 fi
3342 fi
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355 fi
3356 if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 for ac_prog in cl.exe
3359 do
3360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 test -n "$CC" && break
3398 done
3399 fi
3400 if test -z "$CC"; then
3401 ac_ct_CC=$CC
3402 for ac_prog in cl.exe
3403 do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434 $as_echo "$ac_ct_CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 test -n "$ac_ct_CC" && break
3442 done
3443
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3454 fi
3455 fi
3456
3457 fi
3458
3459
3460 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "no acceptable C compiler found in \$PATH
3463 See \`config.log' for more details." "$LINENO" 5; }
3464
3465 # Provide some information about the compiler.
3466 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 set X $ac_compile
3468 ac_compiler=$2
3469 for ac_option in --version -v -V -qversion; do
3470 { { ac_try="$ac_compiler $ac_option >&5"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3478 ac_status=$?
3479 if test -s conftest.err; then
3480 sed '10a\
3481 ... rest of stderr output deleted ...
3482 10q' conftest.err >conftest.er1
3483 cat conftest.er1 >&5
3484 rm -f conftest.er1 conftest.err
3485 fi
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 done
3489
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #include <stdio.h>
3493 int
3494 main ()
3495 {
3496 FILE *f = fopen ("conftest.out", "w");
3497 return ferror (f) || fclose (f) != 0;
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { { ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 ;;
3547 [ab].out )
3548 # We found the default executable, but exeext='' is most
3549 # certainly right.
3550 break;;
3551 *.* )
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 then :; else
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 fi
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3560 # actually working.
3561 break;;
3562 * )
3563 break;;
3564 esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569 ac_file=''
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572 $as_echo "$ac_file" >&6; }
3573 if test -z "$ac_file"; then :
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { as_fn_set_status 77
3580 as_fn_error "C compiler cannot create executables
3581 See \`config.log' for more details." "$LINENO" 5; }; }
3582 fi
3583 ac_exeext=$ac_cv_exeext
3584
3585 # Check that the compiler produces executables we can run. If not, either
3586 # the compiler is broken, or we cross compile.
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3588 $as_echo_n "checking whether the C compiler works... " >&6; }
3589 # If not cross compiling, check that we can run a simple program.
3590 if test "$cross_compiling" != yes; then
3591 if { ac_try='./$ac_file'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." "$LINENO" 5; }
3612 fi
3613 fi
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 $as_echo "yes" >&6; }
3617
3618 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3619 ac_clean_files=$ac_clean_files_save
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3625 $as_echo "$cross_compiling" >&6; }
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3628 $as_echo_n "checking for suffix of executables... " >&6; }
3629 if { { ac_try="$ac_link"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_link") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3642 # work properly (i.e., refer to `conftest.exe'), while it won't with
3643 # `rm'.
3644 for ac_file in conftest.exe conftest conftest.*; do
3645 test -f "$ac_file" || continue
3646 case $ac_file in
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 break;;
3650 * ) break;;
3651 esac
3652 done
3653 else
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "cannot compute suffix of executables: cannot compile and link
3657 See \`config.log' for more details." "$LINENO" 5; }
3658 fi
3659 rm -f conftest$ac_cv_exeext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3661 $as_echo "$ac_cv_exeext" >&6; }
3662
3663 rm -f conftest.$ac_ext
3664 EXEEXT=$ac_cv_exeext
3665 ac_exeext=$EXEEXT
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3667 $as_echo_n "checking for suffix of object files... " >&6; }
3668 if test "${ac_cv_objext+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673
3674 int
3675 main ()
3676 {
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 rm -f conftest.o conftest.obj
3683 if { { ac_try="$ac_compile"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compile") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699 break;;
3700 esac
3701 done
3702 else
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." "$LINENO" 5; }
3710 fi
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3714 $as_echo "$ac_cv_objext" >&6; }
3715 OBJEXT=$ac_cv_objext
3716 ac_objext=$OBJEXT
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724
3725 int
3726 main ()
3727 {
3728 #ifndef __GNUC__
3729 choke me
3730 #endif
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_compiler_gnu=yes
3738 else
3739 ac_compiler_gnu=no
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3743
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748 GCC=yes
3749 else
3750 GCC=
3751 fi
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3761 ac_cv_prog_cc_g=no
3762 CFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_g=yes
3776 else
3777 CFLAGS=""
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main ()
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790
3791 else
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3807 fi
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3821 CFLAGS="-g -O2"
3822 else
3823 CFLAGS="-g"
3824 fi
3825 else
3826 if test "$GCC" = yes; then
3827 CFLAGS="-O2"
3828 else
3829 CFLAGS=
3830 fi
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3851 {
3852 return p[i];
3853 }
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3855 {
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3862 }
3863
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3884 int
3885 main ()
3886 {
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 do
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c89=$ac_arg
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c89" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3904
3905 fi
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c89" in
3908 x)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911 xno)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3914 *)
3915 CC="$CC $ac_cv_prog_cc_c89"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3920
3921 fi
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929 depcc="$CC" am_compiler_list=
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3932 $as_echo_n "checking dependency style of $depcc... " >&6; }
3933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3937 # We make a subdir and do the tests there. Otherwise we can end up
3938 # making bogus files that we don't know about and never remove. For
3939 # instance it was reported that on HP-UX the gcc test will end up
3940 # making a dummy file named `D' -- because `-MD' means `put the output
3941 # in D'.
3942 mkdir conftest.dir
3943 # Copy depcomp to subdir because otherwise we won't find it if we're
3944 # using a relative directory.
3945 cp "$am_depcomp" conftest.dir
3946 cd conftest.dir
3947 # We will build objects and dependencies in a subdirectory because
3948 # it helps to detect inapplicable dependency modes. For instance
3949 # both Tru64's cc and ICC support -MD to output dependencies as a
3950 # side effect of compilation, but ICC will put the dependencies in
3951 # the current directory while Tru64 will put them in the object
3952 # directory.
3953 mkdir sub
3954
3955 am_cv_CC_dependencies_compiler_type=none
3956 if test "$am_compiler_list" = ""; then
3957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958 fi
3959 am__universal=false
3960 case " $depcc " in #(
3961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3962 esac
3963
3964 for depmode in $am_compiler_list; do
3965 # Setup a source with many dependencies, because some compilers
3966 # like to wrap large dependency lists on column 80 (with \), and
3967 # we should not choose a depcomp mode which is confused by this.
3968 #
3969 # We need to recreate these files for each test, as the compiler may
3970 # overwrite some of them when testing with obscure command lines.
3971 # This happens at least with the AIX C compiler.
3972 : > sub/conftest.c
3973 for i in 1 2 3 4 5 6; do
3974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3975 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3976 # Solaris 8's {/usr,}/bin/sh.
3977 touch sub/conftst$i.h
3978 done
3979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3980
3981 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3982 # mode. It turns out that the SunPro C++ compiler does not properly
3983 # handle `-M -o', and we need to detect this. Also, some Intel
3984 # versions had trouble with output in subdirs
3985 am__obj=sub/conftest.${OBJEXT-o}
3986 am__minus_obj="-o $am__obj"
3987 case $depmode in
3988 gcc)
3989 # This depmode causes a compiler race in universal mode.
3990 test "$am__universal" = false || continue
3991 ;;
3992 nosideeffect)
3993 # after this tag, mechanisms are not by side-effect, so they'll
3994 # only be used when explicitly requested
3995 if test "x$enable_dependency_tracking" = xyes; then
3996 continue
3997 else
3998 break
3999 fi
4000 ;;
4001 msvisualcpp | msvcmsys)
4002 # This compiler won't grok `-c -o', but also, the minuso test has
4003 # not run yet. These depmodes are late enough in the game, and
4004 # so weak that their functioning should not be impacted.
4005 am__obj=conftest.${OBJEXT-o}
4006 am__minus_obj=
4007 ;;
4008 none) break ;;
4009 esac
4010 if depmode=$depmode \
4011 source=sub/conftest.c object=$am__obj \
4012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4014 >/dev/null 2>conftest.err &&
4015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4019 # icc doesn't choke on unknown options, it will just issue warnings
4020 # or remarks (even with -Werror). So we grep stderr for any message
4021 # that says an option was ignored or not supported.
4022 # When given -MP, icc 7.0 and 7.1 complain thusly:
4023 # icc: Command line warning: ignoring option '-M'; no argument required
4024 # The diagnosis changed in icc 8.0:
4025 # icc: Command line remark: option '-MP' not supported
4026 if (grep 'ignoring option' conftest.err ||
4027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4028 am_cv_CC_dependencies_compiler_type=$depmode
4029 break
4030 fi
4031 fi
4032 done
4033
4034 cd ..
4035 rm -rf conftest.dir
4036 else
4037 am_cv_CC_dependencies_compiler_type=none
4038 fi
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4042 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044
4045 if
4046 test "x$enable_dependency_tracking" != xno \
4047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4048 am__fastdepCC_TRUE=
4049 am__fastdepCC_FALSE='#'
4050 else
4051 am__fastdepCC_TRUE='#'
4052 am__fastdepCC_FALSE=
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4057 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4058 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 ac_cv_prog_cc_c99=no
4062 ac_save_CC=$CC
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdarg.h>
4066 #include <stdbool.h>
4067 #include <stdlib.h>
4068 #include <wchar.h>
4069 #include <stdio.h>
4070
4071 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4072 #define debug(...) fprintf (stderr, __VA_ARGS__)
4073 #define showlist(...) puts (#__VA_ARGS__)
4074 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4075 static void
4076 test_varargs_macros (void)
4077 {
4078 int x = 1234;
4079 int y = 5678;
4080 debug ("Flag");
4081 debug ("X = %d\n", x);
4082 showlist (The first, second, and third items.);
4083 report (x>y, "x is %d but y is %d", x, y);
4084 }
4085
4086 // Check long long types.
4087 #define BIG64 18446744073709551615ull
4088 #define BIG32 4294967295ul
4089 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4090 #if !BIG_OK
4091 your preprocessor is broken;
4092 #endif
4093 #if BIG_OK
4094 #else
4095 your preprocessor is broken;
4096 #endif
4097 static long long int bignum = -9223372036854775807LL;
4098 static unsigned long long int ubignum = BIG64;
4099
4100 struct incomplete_array
4101 {
4102 int datasize;
4103 double data[];
4104 };
4105
4106 struct named_init {
4107 int number;
4108 const wchar_t *name;
4109 double average;
4110 };
4111
4112 typedef const char *ccp;
4113
4114 static inline int
4115 test_restrict (ccp restrict text)
4116 {
4117 // See if C++-style comments work.
4118 // Iterate through items via the restricted pointer.
4119 // Also check for declarations in for loops.
4120 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4121 continue;
4122 return 0;
4123 }
4124
4125 // Check varargs and va_copy.
4126 static void
4127 test_varargs (const char *format, ...)
4128 {
4129 va_list args;
4130 va_start (args, format);
4131 va_list args_copy;
4132 va_copy (args_copy, args);
4133
4134 const char *str;
4135 int number;
4136 float fnumber;
4137
4138 while (*format)
4139 {
4140 switch (*format++)
4141 {
4142 case 's': // string
4143 str = va_arg (args_copy, const char *);
4144 break;
4145 case 'd': // int
4146 number = va_arg (args_copy, int);
4147 break;
4148 case 'f': // float
4149 fnumber = va_arg (args_copy, double);
4150 break;
4151 default:
4152 break;
4153 }
4154 }
4155 va_end (args_copy);
4156 va_end (args);
4157 }
4158
4159 int
4160 main ()
4161 {
4162
4163 // Check bool.
4164 _Bool success = false;
4165
4166 // Check restrict.
4167 if (test_restrict ("String literal") == 0)
4168 success = true;
4169 char *restrict newvar = "Another string";
4170
4171 // Check varargs.
4172 test_varargs ("s, d' f .", "string", 65, 34.234);
4173 test_varargs_macros ();
4174
4175 // Check flexible array members.
4176 struct incomplete_array *ia =
4177 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4178 ia->datasize = 10;
4179 for (int i = 0; i < ia->datasize; ++i)
4180 ia->data[i] = i * 1.234;
4181
4182 // Check named initializers.
4183 struct named_init ni = {
4184 .number = 34,
4185 .name = L"Test wide string",
4186 .average = 543.34343,
4187 };
4188
4189 ni.number = 58;
4190
4191 int dynamic_array[ni.number];
4192 dynamic_array[ni.number - 1] = 543;
4193
4194 // work around unused variable warnings
4195 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4196 || dynamic_array[ni.number - 1] != 543);
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4203 do
4204 CC="$ac_save_CC $ac_arg"
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_prog_cc_c99=$ac_arg
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext
4209 test "x$ac_cv_prog_cc_c99" != "xno" && break
4210 done
4211 rm -f conftest.$ac_ext
4212 CC=$ac_save_CC
4213
4214 fi
4215 # AC_CACHE_VAL
4216 case "x$ac_cv_prog_cc_c99" in
4217 x)
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219 $as_echo "none needed" >&6; } ;;
4220 xno)
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4222 $as_echo "unsupported" >&6; } ;;
4223 *)
4224 CC="$CC $ac_cv_prog_cc_c99"
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4226 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4227 esac
4228 if test "x$ac_cv_prog_cc_c99" != xno; then :
4229
4230 fi
4231
4232
4233 if test "$ac_cv_prog_cc_c99" = "no"; then :
4234 as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4235 fi
4236 for ac_prog in 'bison -y' byacc
4237 do
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_YACC+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$YACC"; then
4246 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_YACC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 YACC=$ac_cv_prog_YACC
4266 if test -n "$YACC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4268 $as_echo "$YACC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 test -n "$YACC" && break
4276 done
4277 test -n "$YACC" || YACC="yacc"
4278
4279
4280 for ac_prog in flex lex
4281 do
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if test "${ac_cv_prog_LEX+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$LEX"; then
4290 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_LEX="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 LEX=$ac_cv_prog_LEX
4310 if test -n "$LEX"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4312 $as_echo "$LEX" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319 test -n "$LEX" && break
4320 done
4321 test -n "$LEX" || LEX=":"
4322
4323 if test "x$LEX" != "x:"; then
4324 cat >conftest.l <<_ACEOF
4325 %%
4326 a { ECHO; }
4327 b { REJECT; }
4328 c { yymore (); }
4329 d { yyless (1); }
4330 e { yyless (input () != 0); }
4331 f { unput (yytext[0]); }
4332 . { BEGIN INITIAL; }
4333 %%
4334 #ifdef YYTEXT_POINTER
4335 extern char *yytext;
4336 #endif
4337 int
4338 main (void)
4339 {
4340 return ! yylex () + ! yywrap ();
4341 }
4342 _ACEOF
4343 { { ac_try="$LEX conftest.l"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$LEX conftest.l") 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4355 $as_echo_n "checking lex output file root... " >&6; }
4356 if test "${ac_cv_prog_lex_root+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359
4360 if test -f lex.yy.c; then
4361 ac_cv_prog_lex_root=lex.yy
4362 elif test -f lexyy.c; then
4363 ac_cv_prog_lex_root=lexyy
4364 else
4365 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4366 fi
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4369 $as_echo "$ac_cv_prog_lex_root" >&6; }
4370 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4371
4372 if test -z "${LEXLIB+set}"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4374 $as_echo_n "checking lex library... " >&6; }
4375 if test "${ac_cv_lib_lex+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378
4379 ac_save_LIBS=$LIBS
4380 ac_cv_lib_lex='none needed'
4381 for ac_lib in '' -lfl -ll; do
4382 LIBS="$ac_lib $ac_save_LIBS"
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 `cat $LEX_OUTPUT_ROOT.c`
4386 _ACEOF
4387 if ac_fn_c_try_link "$LINENO"; then :
4388 ac_cv_lib_lex=$ac_lib
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext \
4391 conftest$ac_exeext conftest.$ac_ext
4392 test "$ac_cv_lib_lex" != 'none needed' && break
4393 done
4394 LIBS=$ac_save_LIBS
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4398 $as_echo "$ac_cv_lib_lex" >&6; }
4399 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4404 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4405 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 # POSIX says lex can declare yytext either as a pointer or an array; the
4409 # default is implementation-dependent. Figure out which it is, since
4410 # not all implementations provide the %pointer and %array declarations.
4411 ac_cv_prog_lex_yytext_pointer=no
4412 ac_save_LIBS=$LIBS
4413 LIBS="$LEXLIB $ac_save_LIBS"
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #define YYTEXT_POINTER 1
4417 `cat $LEX_OUTPUT_ROOT.c`
4418 _ACEOF
4419 if ac_fn_c_try_link "$LINENO"; then :
4420 ac_cv_prog_lex_yytext_pointer=yes
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext \
4423 conftest$ac_exeext conftest.$ac_ext
4424 LIBS=$ac_save_LIBS
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4428 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4429 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4430
4431 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4432
4433 fi
4434 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4435
4436 fi
4437 if test "$LEX" = :; then
4438 LEX=${am_missing_run}flex
4439 fi
4440
4441
4442 # Initializing libtool.
4443 case `pwd` in
4444 *\ * | *\ *)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4446 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4447 esac
4448
4449
4450
4451 macro_version='2.2.6'
4452 macro_revision='1.3012'
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 ltmain="$ac_aux_dir/ltmain.sh"
4467
4468 # Make sure we can run config.sub.
4469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4470 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4473 $as_echo_n "checking build system type... " >&6; }
4474 if test "${ac_cv_build+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_build_alias=$build_alias
4478 test "x$ac_build_alias" = x &&
4479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4480 test "x$ac_build_alias" = x &&
4481 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4483 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4484
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4487 $as_echo "$ac_cv_build" >&6; }
4488 case $ac_cv_build in
4489 *-*-*) ;;
4490 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4491 esac
4492 build=$ac_cv_build
4493 ac_save_IFS=$IFS; IFS='-'
4494 set x $ac_cv_build
4495 shift
4496 build_cpu=$1
4497 build_vendor=$2
4498 shift; shift
4499 # Remember, the first character of IFS is used to create $*,
4500 # except with old shells:
4501 build_os=$*
4502 IFS=$ac_save_IFS
4503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4507 $as_echo_n "checking host system type... " >&6; }
4508 if test "${ac_cv_host+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test "x$host_alias" = x; then
4512 ac_cv_host=$ac_cv_build
4513 else
4514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4515 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4516 fi
4517
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4520 $as_echo "$ac_cv_host" >&6; }
4521 case $ac_cv_host in
4522 *-*-*) ;;
4523 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4524 esac
4525 host=$ac_cv_host
4526 ac_save_IFS=$IFS; IFS='-'
4527 set x $ac_cv_host
4528 shift
4529 host_cpu=$1
4530 host_vendor=$2
4531 shift; shift
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4534 host_os=$*
4535 IFS=$ac_save_IFS
4536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4540 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4541 if test "${ac_cv_path_SED+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4545 for ac_i in 1 2 3 4 5 6 7; do
4546 ac_script="$ac_script$as_nl$ac_script"
4547 done
4548 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4549 { ac_script=; unset ac_script;}
4550 if test -z "$SED"; then
4551 ac_path_SED_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in sed gsed; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4561 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4562 # Check for GNU ac_path_SED and select it if it is found.
4563 # Check for GNU $ac_path_SED
4564 case `"$ac_path_SED" --version 2>&1` in
4565 *GNU*)
4566 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4567 *)
4568 ac_count=0
4569 $as_echo_n 0123456789 >"conftest.in"
4570 while :
4571 do
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 $as_echo '' >> "conftest.nl"
4576 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 as_fn_arith $ac_count + 1 && ac_count=$as_val
4579 if test $ac_count -gt ${ac_path_SED_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_SED="$ac_path_SED"
4582 ac_path_SED_max=$ac_count
4583 fi
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4586 done
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 esac
4589
4590 $ac_path_SED_found && break 3
4591 done
4592 done
4593 done
4594 IFS=$as_save_IFS
4595 if test -z "$ac_cv_path_SED"; then
4596 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4597 fi
4598 else
4599 ac_cv_path_SED=$SED
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4604 $as_echo "$ac_cv_path_SED" >&6; }
4605 SED="$ac_cv_path_SED"
4606 rm -f conftest.sed
4607
4608 test -z "$SED" && SED=sed
4609 Xsed="$SED -e 1s/^X//"
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4623 if test "${ac_cv_path_GREP+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -z "$GREP"; then
4627 ac_path_GREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in grep ggrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4638 # Check for GNU ac_path_GREP and select it if it is found.
4639 # Check for GNU $ac_path_GREP
4640 case `"$ac_path_GREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4643 *)
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4647 do
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'GREP' >> "conftest.nl"
4652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_GREP="$ac_path_GREP"
4658 ac_path_GREP_max=$ac_count
4659 fi
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666 $ac_path_GREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_GREP"; then
4672 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 fi
4674 else
4675 ac_cv_path_GREP=$GREP
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4680 $as_echo "$ac_cv_path_GREP" >&6; }
4681 GREP="$ac_cv_path_GREP"
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4685 $as_echo_n "checking for egrep... " >&6; }
4686 if test "${ac_cv_path_EGREP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4690 then ac_cv_path_EGREP="$GREP -E"
4691 else
4692 if test -z "$EGREP"; then
4693 ac_path_EGREP_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_prog in egrep; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4704 # Check for GNU ac_path_EGREP and select it if it is found.
4705 # Check for GNU $ac_path_EGREP
4706 case `"$ac_path_EGREP" --version 2>&1` in
4707 *GNU*)
4708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4709 *)
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4713 do
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo 'EGREP' >> "conftest.nl"
4718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720 as_fn_arith $ac_count + 1 && ac_count=$as_val
4721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_EGREP="$ac_path_EGREP"
4724 ac_path_EGREP_max=$ac_count
4725 fi
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 esac
4731
4732 $ac_path_EGREP_found && break 3
4733 done
4734 done
4735 done
4736 IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_EGREP"; then
4738 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739 fi
4740 else
4741 ac_cv_path_EGREP=$EGREP
4742 fi
4743
4744 fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4747 $as_echo "$ac_cv_path_EGREP" >&6; }
4748 EGREP="$ac_cv_path_EGREP"
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4752 $as_echo_n "checking for fgrep... " >&6; }
4753 if test "${ac_cv_path_FGREP+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4757 then ac_cv_path_FGREP="$GREP -F"
4758 else
4759 if test -z "$FGREP"; then
4760 ac_path_FGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in fgrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4771 # Check for GNU ac_path_FGREP and select it if it is found.
4772 # Check for GNU $ac_path_FGREP
4773 case `"$ac_path_FGREP" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4776 *)
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'FGREP' >> "conftest.nl"
4785 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_FGREP="$ac_path_FGREP"
4791 ac_path_FGREP_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4798
4799 $ac_path_FGREP_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_FGREP"; then
4805 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4806 fi
4807 else
4808 ac_cv_path_FGREP=$FGREP
4809 fi
4810
4811 fi
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4814 $as_echo "$ac_cv_path_FGREP" >&6; }
4815 FGREP="$ac_cv_path_FGREP"
4816
4817
4818 test -z "$GREP" && GREP=grep
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 # Check whether --with-gnu-ld was given.
4839 if test "${with_gnu_ld+set}" = set; then :
4840 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4841 else
4842 with_gnu_ld=no
4843 fi
4844
4845 ac_prog=ld
4846 if test "$GCC" = yes; then
4847 # Check if gcc -print-prog-name=ld gives a path.
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4849 $as_echo_n "checking for ld used by $CC... " >&6; }
4850 case $host in
4851 *-*-mingw*)
4852 # gcc leaves a trailing carriage return which upsets mingw
4853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4854 *)
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4856 esac
4857 case $ac_prog in
4858 # Accept absolute paths.
4859 [\\/]* | ?:[\\/]*)
4860 re_direlt='/[^/][^/]*/\.\./'
4861 # Canonicalize the pathname of ld
4862 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4863 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4864 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4865 done
4866 test -z "$LD" && LD="$ac_prog"
4867 ;;
4868 "")
4869 # If it fails, then pretend we aren't using GCC.
4870 ac_prog=ld
4871 ;;
4872 *)
4873 # If it is relative, then search for the first ld in PATH.
4874 with_gnu_ld=unknown
4875 ;;
4876 esac
4877 elif test "$with_gnu_ld" = yes; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4879 $as_echo_n "checking for GNU ld... " >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4882 $as_echo_n "checking for non-GNU ld... " >&6; }
4883 fi
4884 if test "${lt_cv_path_LD+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -z "$LD"; then
4888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4889 for ac_dir in $PATH; do
4890 IFS="$lt_save_ifs"
4891 test -z "$ac_dir" && ac_dir=.
4892 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4893 lt_cv_path_LD="$ac_dir/$ac_prog"
4894 # Check to see if the program is GNU ld. I'd rather use --version,
4895 # but apparently some variants of GNU ld only accept -v.
4896 # Break only if it was the GNU/non-GNU ld that we prefer.
4897 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4898 *GNU* | *'with BFD'*)
4899 test "$with_gnu_ld" != no && break
4900 ;;
4901 *)
4902 test "$with_gnu_ld" != yes && break
4903 ;;
4904 esac
4905 fi
4906 done
4907 IFS="$lt_save_ifs"
4908 else
4909 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4910 fi
4911 fi
4912
4913 LD="$lt_cv_path_LD"
4914 if test -n "$LD"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4916 $as_echo "$LD" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4923 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4924 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4928 case `$LD -v 2>&1 </dev/null` in
4929 *GNU* | *'with BFD'*)
4930 lt_cv_prog_gnu_ld=yes
4931 ;;
4932 *)
4933 lt_cv_prog_gnu_ld=no
4934 ;;
4935 esac
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4938 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4939 with_gnu_ld=$lt_cv_prog_gnu_ld
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4950 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4951 if test "${lt_cv_path_NM+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$NM"; then
4955 # Let the user override the test.
4956 lt_cv_path_NM="$NM"
4957 else
4958 lt_nm_to_check="${ac_tool_prefix}nm"
4959 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4960 lt_nm_to_check="$lt_nm_to_check nm"
4961 fi
4962 for lt_tmp_nm in $lt_nm_to_check; do
4963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4964 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4965 IFS="$lt_save_ifs"
4966 test -z "$ac_dir" && ac_dir=.
4967 tmp_nm="$ac_dir/$lt_tmp_nm"
4968 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4969 # Check to see if the nm accepts a BSD-compat flag.
4970 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4971 # nm: unknown option "B" ignored
4972 # Tru64's nm complains that /dev/null is an invalid object file
4973 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4974 */dev/null* | *'Invalid file or object type'*)
4975 lt_cv_path_NM="$tmp_nm -B"
4976 break
4977 ;;
4978 *)
4979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4980 */dev/null*)
4981 lt_cv_path_NM="$tmp_nm -p"
4982 break
4983 ;;
4984 *)
4985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4986 continue # so that we can try to find one that supports BSD flags
4987 ;;
4988 esac
4989 ;;
4990 esac
4991 fi
4992 done
4993 IFS="$lt_save_ifs"
4994 done
4995 : ${lt_cv_path_NM=no}
4996 fi
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4999 $as_echo "$lt_cv_path_NM" >&6; }
5000 if test "$lt_cv_path_NM" != "no"; then
5001 NM="$lt_cv_path_NM"
5002 else
5003 # Didn't find any BSD compatible name lister, look for dumpbin.
5004 if test -n "$ac_tool_prefix"; then
5005 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5006 do
5007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$DUMPBIN"; then
5015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 DUMPBIN=$ac_cv_prog_DUMPBIN
5035 if test -n "$DUMPBIN"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5037 $as_echo "$DUMPBIN" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043
5044 test -n "$DUMPBIN" && break
5045 done
5046 fi
5047 if test -z "$DUMPBIN"; then
5048 ac_ct_DUMPBIN=$DUMPBIN
5049 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5050 do
5051 # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$ac_ct_DUMPBIN"; then
5059 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 fi
5077 fi
5078 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5079 if test -n "$ac_ct_DUMPBIN"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5081 $as_echo "$ac_ct_DUMPBIN" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086
5087
5088 test -n "$ac_ct_DUMPBIN" && break
5089 done
5090
5091 if test "x$ac_ct_DUMPBIN" = x; then
5092 DUMPBIN=":"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 DUMPBIN=$ac_ct_DUMPBIN
5101 fi
5102 fi
5103
5104
5105 if test "$DUMPBIN" != ":"; then
5106 NM="$DUMPBIN"
5107 fi
5108 fi
5109 test -z "$NM" && NM=nm
5110
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5118 if test "${lt_cv_nm_interface+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 lt_cv_nm_interface="BSD nm"
5122 echo "int some_variable = 0;" > conftest.$ac_ext
5123 (eval echo "\"\$as_me:5123: $ac_compile\"" >&5)
5124 (eval "$ac_compile" 2>conftest.err)
5125 cat conftest.err >&5
5126 (eval echo "\"\$as_me:5126: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5127 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5128 cat conftest.err >&5
5129 (eval echo "\"\$as_me:5129: output\"" >&5)
5130 cat conftest.out >&5
5131 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5132 lt_cv_nm_interface="MS dumpbin"
5133 fi
5134 rm -f conftest*
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5137 $as_echo "$lt_cv_nm_interface" >&6; }
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5140 $as_echo_n "checking whether ln -s works... " >&6; }
5141 LN_S=$as_ln_s
5142 if test "$LN_S" = "ln -s"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5147 $as_echo "no, using $LN_S" >&6; }
5148 fi
5149
5150 # find the maximum length of command line arguments
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5153 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 i=0
5157 teststring="ABCD"
5158
5159 case $build_os in
5160 msdosdjgpp*)
5161 # On DJGPP, this test can blow up pretty badly due to problems in libc
5162 # (any single argument exceeding 2000 bytes causes a buffer overrun
5163 # during glob expansion). Even if it were fixed, the result of this
5164 # check would be larger than it should be.
5165 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5166 ;;
5167
5168 gnu*)
5169 # Under GNU Hurd, this test is not required because there is
5170 # no limit to the length of command line arguments.
5171 # Libtool will interpret -1 as no limit whatsoever
5172 lt_cv_sys_max_cmd_len=-1;
5173 ;;
5174
5175 cygwin* | mingw* | cegcc*)
5176 # On Win9x/ME, this test blows up -- it succeeds, but takes
5177 # about 5 minutes as the teststring grows exponentially.
5178 # Worse, since 9x/ME are not pre-emptively multitasking,
5179 # you end up with a "frozen" computer, even though with patience
5180 # the test eventually succeeds (with a max line length of 256k).
5181 # Instead, let's just punt: use the minimum linelength reported by
5182 # all of the supported platforms: 8192 (on NT/2K/XP).
5183 lt_cv_sys_max_cmd_len=8192;
5184 ;;
5185
5186 amigaos*)
5187 # On AmigaOS with pdksh, this test takes hours, literally.
5188 # So we just punt and use a minimum line length of 8192.
5189 lt_cv_sys_max_cmd_len=8192;
5190 ;;
5191
5192 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5193 # This has been around since 386BSD, at least. Likely further.
5194 if test -x /sbin/sysctl; then
5195 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5196 elif test -x /usr/sbin/sysctl; then
5197 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5198 else
5199 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5200 fi
5201 # And add a safety zone
5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5204 ;;
5205
5206 interix*)
5207 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5208 lt_cv_sys_max_cmd_len=196608
5209 ;;
5210
5211 osf*)
5212 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5213 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5214 # nice to cause kernel panics so lets avoid the loop below.
5215 # First set a reasonable default.
5216 lt_cv_sys_max_cmd_len=16384
5217 #
5218 if test -x /sbin/sysconfig; then
5219 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5220 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5221 esac
5222 fi
5223 ;;
5224 sco3.2v5*)
5225 lt_cv_sys_max_cmd_len=102400
5226 ;;
5227 sysv5* | sco5v6* | sysv4.2uw2*)
5228 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5229 if test -n "$kargmax"; then
5230 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5231 else
5232 lt_cv_sys_max_cmd_len=32768
5233 fi
5234 ;;
5235 *)
5236 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5237 if test -n "$lt_cv_sys_max_cmd_len"; then
5238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240 else
5241 # Make teststring a little bigger before we do anything with it.
5242 # a 1K string should be a reasonable start.
5243 for i in 1 2 3 4 5 6 7 8 ; do
5244 teststring=$teststring$teststring
5245 done
5246 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5247 # If test is not a shell built-in, we'll probably end up computing a
5248 # maximum length that is only half of the actual maximum length, but
5249 # we can't tell.
5250 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5251 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5252 test $i != 17 # 1/2 MB should be enough
5253 do
5254 i=`expr $i + 1`
5255 teststring=$teststring$teststring
5256 done
5257 # Only check the string length outside the loop.
5258 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5259 teststring=
5260 # Add a significant safety factor because C++ compilers can tack on
5261 # massive amounts of additional arguments before passing them to the
5262 # linker. It appears as though 1/2 is a usable value.
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5264 fi
5265 ;;
5266 esac
5267
5268 fi
5269
5270 if test -n $lt_cv_sys_max_cmd_len ; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5272 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5275 $as_echo "none" >&6; }
5276 fi
5277 max_cmd_len=$lt_cv_sys_max_cmd_len
5278
5279
5280
5281
5282
5283
5284 : ${CP="cp -f"}
5285 : ${MV="mv -f"}
5286 : ${RM="rm -f"}
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5289 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5290 # Try some XSI features
5291 xsi_shell=no
5292 ( _lt_dummy="a/b/c"
5293 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5294 = c,a/b,, \
5295 && eval 'test $(( 1 + 1 )) -eq 2 \
5296 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5297 && xsi_shell=yes
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5299 $as_echo "$xsi_shell" >&6; }
5300
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5303 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5304 lt_shell_append=no
5305 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5306 >/dev/null 2>&1 \
5307 && lt_shell_append=yes
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5309 $as_echo "$lt_shell_append" >&6; }
5310
5311
5312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5313 lt_unset=unset
5314 else
5315 lt_unset=false
5316 fi
5317
5318
5319
5320
5321
5322 # test EBCDIC or ASCII
5323 case `echo X|tr X '\101'` in
5324 A) # ASCII based system
5325 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5326 lt_SP2NL='tr \040 \012'
5327 lt_NL2SP='tr \015\012 \040\040'
5328 ;;
5329 *) # EBCDIC based system
5330 lt_SP2NL='tr \100 \n'
5331 lt_NL2SP='tr \r\n \100\100'
5332 ;;
5333 esac
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5344 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5345 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 lt_cv_ld_reload_flag='-r'
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5351 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5352 reload_flag=$lt_cv_ld_reload_flag
5353 case $reload_flag in
5354 "" | " "*) ;;
5355 *) reload_flag=" $reload_flag" ;;
5356 esac
5357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5358 case $host_os in
5359 darwin*)
5360 if test "$GCC" = yes; then
5361 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5362 else
5363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5364 fi
5365 ;;
5366 esac
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$OBJDUMP"; then
5385 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 OBJDUMP=$ac_cv_prog_OBJDUMP
5405 if test -n "$OBJDUMP"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5407 $as_echo "$OBJDUMP" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414 fi
5415 if test -z "$ac_cv_prog_OBJDUMP"; then
5416 ac_ct_OBJDUMP=$OBJDUMP
5417 # Extract the first word of "objdump", so it can be a program name with args.
5418 set dummy objdump; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$ac_ct_OBJDUMP"; then
5425 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5445 if test -n "$ac_ct_OBJDUMP"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5447 $as_echo "$ac_ct_OBJDUMP" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453 if test "x$ac_ct_OBJDUMP" = x; then
5454 OBJDUMP="false"
5455 else
5456 case $cross_compiling:$ac_tool_warned in
5457 yes:)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5461 esac
5462 OBJDUMP=$ac_ct_OBJDUMP
5463 fi
5464 else
5465 OBJDUMP="$ac_cv_prog_OBJDUMP"
5466 fi
5467
5468 test -z "$OBJDUMP" && OBJDUMP=objdump
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5479 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5480 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 lt_cv_file_magic_cmd='$MAGIC_CMD'
5484 lt_cv_file_magic_test_file=
5485 lt_cv_deplibs_check_method='unknown'
5486 # Need to set the preceding variable on all platforms that support
5487 # interlibrary dependencies.
5488 # 'none' -- dependencies not supported.
5489 # `unknown' -- same as none, but documents that we really don't know.
5490 # 'pass_all' -- all dependencies passed with no checks.
5491 # 'test_compile' -- check by making test program.
5492 # 'file_magic [[regex]]' -- check by looking for files in library path
5493 # which responds to the $file_magic_cmd with a given extended regex.
5494 # If you have `file' or equivalent on your system and you're not sure
5495 # whether `pass_all' will *always* work, you probably want this one.
5496
5497 case $host_os in
5498 aix[4-9]*)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501
5502 beos*)
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506 bsdi[45]*)
5507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5508 lt_cv_file_magic_cmd='/usr/bin/file -L'
5509 lt_cv_file_magic_test_file=/shlib/libc.so
5510 ;;
5511
5512 cygwin*)
5513 # func_win32_libid is a shell function defined in ltmain.sh
5514 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5515 lt_cv_file_magic_cmd='func_win32_libid'
5516 ;;
5517
5518 mingw* | pw32*)
5519 # Base MSYS/MinGW do not provide the 'file' command needed by
5520 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5521 # unless we find 'file', for example because we are cross-compiling.
5522 if ( file / ) >/dev/null 2>&1; then
5523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5524 lt_cv_file_magic_cmd='func_win32_libid'
5525 else
5526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5527 lt_cv_file_magic_cmd='$OBJDUMP -f'
5528 fi
5529 ;;
5530
5531 cegcc)
5532 # use the weaker test based on 'objdump'. See mingw*.
5533 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5534 lt_cv_file_magic_cmd='$OBJDUMP -f'
5535 ;;
5536
5537 darwin* | rhapsody*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541 freebsd* | dragonfly*)
5542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5543 case $host_cpu in
5544 i*86 )
5545 # Not sure whether the presence of OpenBSD here was a mistake.
5546 # Let's accept both of them until this is cleared up.
5547 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5548 lt_cv_file_magic_cmd=/usr/bin/file
5549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5550 ;;
5551 esac
5552 else
5553 lt_cv_deplibs_check_method=pass_all
5554 fi
5555 ;;
5556
5557 gnu*)
5558 lt_cv_deplibs_check_method=pass_all
5559 ;;
5560
5561 hpux10.20* | hpux11*)
5562 lt_cv_file_magic_cmd=/usr/bin/file
5563 case $host_cpu in
5564 ia64*)
5565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5566 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5567 ;;
5568 hppa*64*)
5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5570 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5571 ;;
5572 *)
5573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5574 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5575 ;;
5576 esac
5577 ;;
5578
5579 interix[3-9]*)
5580 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5582 ;;
5583
5584 irix5* | irix6* | nonstopux*)
5585 case $LD in
5586 *-32|*"-32 ") libmagic=32-bit;;
5587 *-n32|*"-n32 ") libmagic=N32;;
5588 *-64|*"-64 ") libmagic=64-bit;;
5589 *) libmagic=never-match;;
5590 esac
5591 lt_cv_deplibs_check_method=pass_all
5592 ;;
5593
5594 # This must be Linux ELF.
5595 linux* | k*bsd*-gnu)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 netbsd*)
5600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602 else
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5604 fi
5605 ;;
5606
5607 newos6*)
5608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5609 lt_cv_file_magic_cmd=/usr/bin/file
5610 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5611 ;;
5612
5613 *nto* | *qnx*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 openbsd*)
5618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5620 else
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5622 fi
5623 ;;
5624
5625 osf3* | osf4* | osf5*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629 rdos*)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633 solaris*)
5634 lt_cv_deplibs_check_method=pass_all
5635 ;;
5636
5637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 sysv4 | sysv4.3*)
5642 case $host_vendor in
5643 motorola)
5644 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]'
5645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5646 ;;
5647 ncr)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650 sequent)
5651 lt_cv_file_magic_cmd='/bin/file'
5652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5653 ;;
5654 sni)
5655 lt_cv_file_magic_cmd='/bin/file'
5656 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5657 lt_cv_file_magic_test_file=/lib/libc.so
5658 ;;
5659 siemens)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 pc)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665 esac
5666 ;;
5667
5668 tpf*)
5669 lt_cv_deplibs_check_method=pass_all
5670 ;;
5671 esac
5672
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5675 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5676 file_magic_cmd=$lt_cv_file_magic_cmd
5677 deplibs_check_method=$lt_cv_deplibs_check_method
5678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}ar; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if test "${ac_cv_prog_AR+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$AR"; then
5700 ac_cv_prog_AR="$AR" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709 ac_cv_prog_AR="${ac_tool_prefix}ar"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 AR=$ac_cv_prog_AR
5720 if test -n "$AR"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5722 $as_echo "$AR" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_AR"; then
5731 ac_ct_AR=$AR
5732 # Extract the first word of "ar", so it can be a program name with args.
5733 set dummy ar; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$ac_ct_AR"; then
5740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_ac_ct_AR="ar"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5760 if test -n "$ac_ct_AR"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5762 $as_echo "$ac_ct_AR" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768 if test "x$ac_ct_AR" = x; then
5769 AR="false"
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777 AR=$ac_ct_AR
5778 fi
5779 else
5780 AR="$ac_cv_prog_AR"
5781 fi
5782
5783 test -z "$AR" && AR=ar
5784 test -z "$AR_FLAGS" && AR_FLAGS=cru
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}strip; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_prog_STRIP+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if test -n "$STRIP"; then
5805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 STRIP=$ac_cv_prog_STRIP
5825 if test -n "$STRIP"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5827 $as_echo "$STRIP" >&6; }
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833
5834 fi
5835 if test -z "$ac_cv_prog_STRIP"; then
5836 ac_ct_STRIP=$STRIP
5837 # Extract the first word of "strip", so it can be a program name with args.
5838 set dummy strip; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$ac_ct_STRIP"; then
5845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_STRIP="strip"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5865 if test -n "$ac_ct_STRIP"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5867 $as_echo "$ac_ct_STRIP" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873 if test "x$ac_ct_STRIP" = x; then
5874 STRIP=":"
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5881 esac
5882 STRIP=$ac_ct_STRIP
5883 fi
5884 else
5885 STRIP="$ac_cv_prog_STRIP"
5886 fi
5887
5888 test -z "$STRIP" && STRIP=:
5889
5890
5891
5892
5893
5894
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$RANLIB"; then
5904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 RANLIB=$ac_cv_prog_RANLIB
5924 if test -n "$RANLIB"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5926 $as_echo "$RANLIB" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932
5933 fi
5934 if test -z "$ac_cv_prog_RANLIB"; then
5935 ac_ct_RANLIB=$RANLIB
5936 # Extract the first word of "ranlib", so it can be a program name with args.
5937 set dummy ranlib; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if test -n "$ac_ct_RANLIB"; then
5944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_ac_ct_RANLIB="ranlib"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5964 if test -n "$ac_ct_RANLIB"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5966 $as_echo "$ac_ct_RANLIB" >&6; }
5967 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972 if test "x$ac_ct_RANLIB" = x; then
5973 RANLIB=":"
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976 yes:)
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5980 esac
5981 RANLIB=$ac_ct_RANLIB
5982 fi
5983 else
5984 RANLIB="$ac_cv_prog_RANLIB"
5985 fi
5986
5987 test -z "$RANLIB" && RANLIB=:
5988
5989
5990
5991
5992
5993
5994 # Determine commands to create old-style static archives.
5995 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5996 old_postinstall_cmds='chmod 644 $oldlib'
5997 old_postuninstall_cmds=
5998
5999 if test -n "$RANLIB"; then
6000 case $host_os in
6001 openbsd*)
6002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6003 ;;
6004 *)
6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6006 ;;
6007 esac
6008 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6009 fi
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 # If no C compiler was specified, use CC.
6045 LTCC=${LTCC-"$CC"}
6046
6047 # If no C compiler flags were specified, use CFLAGS.
6048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6049
6050 # Allow CC to be a program name with arguments.
6051 compiler=$CC
6052
6053
6054 # Check for command to grab the raw symbol name followed by C symbol from nm.
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6056 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6057 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060
6061 # These are sane defaults that work on at least a few old systems.
6062 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6063
6064 # Character class describing NM global symbol codes.
6065 symcode='[BCDEGRST]'
6066
6067 # Regexp to match symbols that can be accessed directly from C.
6068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6069
6070 # Define system-specific variables.
6071 case $host_os in
6072 aix*)
6073 symcode='[BCDT]'
6074 ;;
6075 cygwin* | mingw* | pw32* | cegcc*)
6076 symcode='[ABCDGISTW]'
6077 ;;
6078 hpux*)
6079 if test "$host_cpu" = ia64; then
6080 symcode='[ABCDEGRST]'
6081 fi
6082 ;;
6083 irix* | nonstopux*)
6084 symcode='[BCDEGRST]'
6085 ;;
6086 osf*)
6087 symcode='[BCDEGQRST]'
6088 ;;
6089 solaris*)
6090 symcode='[BDRT]'
6091 ;;
6092 sco3.2v5*)
6093 symcode='[DT]'
6094 ;;
6095 sysv4.2uw2*)
6096 symcode='[DT]'
6097 ;;
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6099 symcode='[ABDT]'
6100 ;;
6101 sysv4)
6102 symcode='[DFNSTU]'
6103 ;;
6104 esac
6105
6106 # If we're using GNU nm, then use its standard symbol codes.
6107 case `$NM -V 2>&1` in
6108 *GNU* | *'with BFD'*)
6109 symcode='[ABCDGIRSTW]' ;;
6110 esac
6111
6112 # Transform an extracted symbol line into a proper C declaration.
6113 # Some systems (esp. on ia64) link data and code symbols differently,
6114 # so use this general approach.
6115 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6116
6117 # Transform an extracted symbol line into symbol name and symbol address
6118 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
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 # and D for any global 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 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6144 " \$ 0!~/External *\|/{next};"\
6145 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6146 " {if(hide[section]) next};"\
6147 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6148 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6149 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6150 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6151 " ' prfx=^$ac_symprfx"
6152 else
6153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6154 fi
6155
6156 # Check to see that the pipe works correctly.
6157 pipe_works=no
6158
6159 rm -f conftest*
6160 cat > conftest.$ac_ext <<_LT_EOF
6161 #ifdef __cplusplus
6162 extern "C" {
6163 #endif
6164 char nm_test_var;
6165 void nm_test_func(void);
6166 void nm_test_func(void){}
6167 #ifdef __cplusplus
6168 }
6169 #endif
6170 int main(){nm_test_var='a';nm_test_func();return(0);}
6171 _LT_EOF
6172
6173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; }; then
6178 # Now try to grab the symbols.
6179 nlist=conftest.nm
6180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6181 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6182 ac_status=$?
6183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6184 test $ac_status = 0; } && test -s "$nlist"; then
6185 # Try sorting and uniquifying the output.
6186 if sort "$nlist" | uniq > "$nlist"T; then
6187 mv -f "$nlist"T "$nlist"
6188 else
6189 rm -f "$nlist"T
6190 fi
6191
6192 # Make sure that we snagged all the symbols we need.
6193 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6194 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6195 cat <<_LT_EOF > conftest.$ac_ext
6196 #ifdef __cplusplus
6197 extern "C" {
6198 #endif
6199
6200 _LT_EOF
6201 # Now generate the symbol file.
6202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6203
6204 cat <<_LT_EOF >> conftest.$ac_ext
6205
6206 /* The mapping between symbol names and symbols. */
6207 const struct {
6208 const char *name;
6209 void *address;
6210 }
6211 lt__PROGRAM__LTX_preloaded_symbols[] =
6212 {
6213 { "@PROGRAM@", (void *) 0 },
6214 _LT_EOF
6215 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6216 cat <<\_LT_EOF >> conftest.$ac_ext
6217 {0, (void *) 0}
6218 };
6219
6220 /* This works around a problem in FreeBSD linker */
6221 #ifdef FREEBSD_WORKAROUND
6222 static const void *lt_preloaded_setup() {
6223 return lt__PROGRAM__LTX_preloaded_symbols;
6224 }
6225 #endif
6226
6227 #ifdef __cplusplus
6228 }
6229 #endif
6230 _LT_EOF
6231 # Now try linking the two files.
6232 mv conftest.$ac_objext conftstm.$ac_objext
6233 lt_save_LIBS="$LIBS"
6234 lt_save_CFLAGS="$CFLAGS"
6235 LIBS="conftstm.$ac_objext"
6236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6238 (eval $ac_link) 2>&5
6239 ac_status=$?
6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6242 pipe_works=yes
6243 fi
6244 LIBS="$lt_save_LIBS"
6245 CFLAGS="$lt_save_CFLAGS"
6246 else
6247 echo "cannot find nm_test_func in $nlist" >&5
6248 fi
6249 else
6250 echo "cannot find nm_test_var in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6254 fi
6255 else
6256 echo "$progname: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 fi
6259 rm -rf conftest* conftst*
6260
6261 # Do not use the global_symbol_pipe unless it works.
6262 if test "$pipe_works" = yes; then
6263 break
6264 else
6265 lt_cv_sys_global_symbol_pipe=
6266 fi
6267 done
6268
6269 fi
6270
6271 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272 lt_cv_sys_global_symbol_to_cdecl=
6273 fi
6274 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6276 $as_echo "failed" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6279 $as_echo "ok" >&6; }
6280 fi
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 # Check whether --enable-libtool-lock was given.
6304 if test "${enable_libtool_lock+set}" = set; then :
6305 enableval=$enable_libtool_lock;
6306 fi
6307
6308 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6309
6310 # Some flags need to be propagated to the compiler or linker for good
6311 # libtool support.
6312 case $host in
6313 ia64-*-hpux*)
6314 # Find out which ABI we are using.
6315 echo 'int i;' > conftest.$ac_ext
6316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }; then
6321 case `/usr/bin/file conftest.$ac_objext` in
6322 *ELF-32*)
6323 HPUX_IA64_MODE="32"
6324 ;;
6325 *ELF-64*)
6326 HPUX_IA64_MODE="64"
6327 ;;
6328 esac
6329 fi
6330 rm -rf conftest*
6331 ;;
6332 *-*-irix6*)
6333 # Find out which ABI we are using.
6334 echo '#line 6334 "configure"' > conftest.$ac_ext
6335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339 test $ac_status = 0; }; then
6340 if test "$lt_cv_prog_gnu_ld" = yes; then
6341 case `/usr/bin/file conftest.$ac_objext` in
6342 *32-bit*)
6343 LD="${LD-ld} -melf32bsmip"
6344 ;;
6345 *N32*)
6346 LD="${LD-ld} -melf32bmipn32"
6347 ;;
6348 *64-bit*)
6349 LD="${LD-ld} -melf64bmip"
6350 ;;
6351 esac
6352 else
6353 case `/usr/bin/file conftest.$ac_objext` in
6354 *32-bit*)
6355 LD="${LD-ld} -32"
6356 ;;
6357 *N32*)
6358 LD="${LD-ld} -n32"
6359 ;;
6360 *64-bit*)
6361 LD="${LD-ld} -64"
6362 ;;
6363 esac
6364 fi
6365 fi
6366 rm -rf conftest*
6367 ;;
6368
6369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 case `/usr/bin/file conftest.o` in
6379 *32-bit*)
6380 case $host in
6381 x86_64-*kfreebsd*-gnu)
6382 LD="${LD-ld} -m elf_i386_fbsd"
6383 ;;
6384 x86_64-*linux*)
6385 LD="${LD-ld} -m elf_i386"
6386 ;;
6387 ppc64-*linux*|powerpc64-*linux*)
6388 LD="${LD-ld} -m elf32ppclinux"
6389 ;;
6390 s390x-*linux*)
6391 LD="${LD-ld} -m elf_s390"
6392 ;;
6393 sparc64-*linux*)
6394 LD="${LD-ld} -m elf32_sparc"
6395 ;;
6396 esac
6397 ;;
6398 *64-bit*)
6399 case $host in
6400 x86_64-*kfreebsd*-gnu)
6401 LD="${LD-ld} -m elf_x86_64_fbsd"
6402 ;;
6403 x86_64-*linux*)
6404 LD="${LD-ld} -m elf_x86_64"
6405 ;;
6406 ppc*-*linux*|powerpc*-*linux*)
6407 LD="${LD-ld} -m elf64ppc"
6408 ;;
6409 s390*-*linux*|s390*-*tpf*)
6410 LD="${LD-ld} -m elf64_s390"
6411 ;;
6412 sparc*-*linux*)
6413 LD="${LD-ld} -m elf64_sparc"
6414 ;;
6415 esac
6416 ;;
6417 esac
6418 fi
6419 rm -rf conftest*
6420 ;;
6421
6422 *-*-sco3.2v5*)
6423 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6424 SAVE_CFLAGS="$CFLAGS"
6425 CFLAGS="$CFLAGS -belf"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6427 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6428 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 ac_ext=c
6432 ac_cpp='$CPP $CPPFLAGS'
6433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6436
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439
6440 int
6441 main ()
6442 {
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_link "$LINENO"; then :
6449 lt_cv_cc_needs_belf=yes
6450 else
6451 lt_cv_cc_needs_belf=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6455 ac_ext=c
6456 ac_cpp='$CPP $CPPFLAGS'
6457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6460
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6463 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6464 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6465 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6466 CFLAGS="$SAVE_CFLAGS"
6467 fi
6468 ;;
6469 sparc*-*solaris*)
6470 # Find out which ABI we are using.
6471 echo 'int i;' > conftest.$ac_ext
6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; }; then
6477 case `/usr/bin/file conftest.o` in
6478 *64-bit*)
6479 case $lt_cv_prog_gnu_ld in
6480 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6481 *)
6482 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6483 LD="${LD-ld} -64"
6484 fi
6485 ;;
6486 esac
6487 ;;
6488 esac
6489 fi
6490 rm -rf conftest*
6491 ;;
6492 esac
6493
6494 need_locks="$enable_libtool_lock"
6495
6496
6497 case $host_os in
6498 rhapsody* | darwin*)
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$DSYMUTIL"; then
6508 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6528 if test -n "$DSYMUTIL"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6530 $as_echo "$DSYMUTIL" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_DSYMUTIL"; then
6539 ac_ct_DSYMUTIL=$DSYMUTIL
6540 # Extract the first word of "dsymutil", so it can be a program name with args.
6541 set dummy dsymutil; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$ac_ct_DSYMUTIL"; then
6548 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6568 if test -n "$ac_ct_DSYMUTIL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6570 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576 if test "x$ac_ct_DSYMUTIL" = x; then
6577 DSYMUTIL=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 DSYMUTIL=$ac_ct_DSYMUTIL
6586 fi
6587 else
6588 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6589 fi
6590
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 if test -n "$NMEDIT"; then
6600 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 NMEDIT=$ac_cv_prog_NMEDIT
6620 if test -n "$NMEDIT"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6622 $as_echo "$NMEDIT" >&6; }
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627
6628
6629 fi
6630 if test -z "$ac_cv_prog_NMEDIT"; then
6631 ac_ct_NMEDIT=$NMEDIT
6632 # Extract the first word of "nmedit", so it can be a program name with args.
6633 set dummy nmedit; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$ac_ct_NMEDIT"; then
6640 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6660 if test -n "$ac_ct_NMEDIT"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6662 $as_echo "$ac_ct_NMEDIT" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668 if test "x$ac_ct_NMEDIT" = x; then
6669 NMEDIT=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677 NMEDIT=$ac_ct_NMEDIT
6678 fi
6679 else
6680 NMEDIT="$ac_cv_prog_NMEDIT"
6681 fi
6682
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6685 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_prog_LIPO+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 if test -n "$LIPO"; then
6692 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709 fi
6710 fi
6711 LIPO=$ac_cv_prog_LIPO
6712 if test -n "$LIPO"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6714 $as_echo "$LIPO" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719
6720
6721 fi
6722 if test -z "$ac_cv_prog_LIPO"; then
6723 ac_ct_LIPO=$LIPO
6724 # Extract the first word of "lipo", so it can be a program name with args.
6725 set dummy lipo; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$ac_ct_LIPO"; then
6732 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_ac_ct_LIPO="lipo"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6752 if test -n "$ac_ct_LIPO"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6754 $as_echo "$ac_ct_LIPO" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760 if test "x$ac_ct_LIPO" = x; then
6761 LIPO=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764 yes:)
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769 LIPO=$ac_ct_LIPO
6770 fi
6771 else
6772 LIPO="$ac_cv_prog_LIPO"
6773 fi
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}otool; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$OTOOL"; then
6784 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 OTOOL=$ac_cv_prog_OTOOL
6804 if test -n "$OTOOL"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6806 $as_echo "$OTOOL" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_OTOOL"; then
6815 ac_ct_OTOOL=$OTOOL
6816 # Extract the first word of "otool", so it can be a program name with args.
6817 set dummy otool; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$ac_ct_OTOOL"; then
6824 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_ac_ct_OTOOL="otool"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6844 if test -n "$ac_ct_OTOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6846 $as_echo "$ac_ct_OTOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852 if test "x$ac_ct_OTOOL" = x; then
6853 OTOOL=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861 OTOOL=$ac_ct_OTOOL
6862 fi
6863 else
6864 OTOOL="$ac_cv_prog_OTOOL"
6865 fi
6866
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$OTOOL64"; then
6876 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 OTOOL64=$ac_cv_prog_OTOOL64
6896 if test -n "$OTOOL64"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6898 $as_echo "$OTOOL64" >&6; }
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904
6905 fi
6906 if test -z "$ac_cv_prog_OTOOL64"; then
6907 ac_ct_OTOOL64=$OTOOL64
6908 # Extract the first word of "otool64", so it can be a program name with args.
6909 set dummy otool64; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$ac_ct_OTOOL64"; then
6916 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_ac_ct_OTOOL64="otool64"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6936 if test -n "$ac_ct_OTOOL64"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6938 $as_echo "$ac_ct_OTOOL64" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_OTOOL64" = x; then
6945 OTOOL64=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 OTOOL64=$ac_ct_OTOOL64
6954 fi
6955 else
6956 OTOOL64="$ac_cv_prog_OTOOL64"
6957 fi
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6986 $as_echo_n "checking for -single_module linker flag... " >&6; }
6987 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 lt_cv_apple_cc_single_mod=no
6991 if test -z "${LT_MULTI_MODULE}"; then
6992 # By default we will add the -single_module flag. You can override
6993 # by either setting the environment variable LT_MULTI_MODULE
6994 # non-empty at configure time, or by adding -multi_module to the
6995 # link flags.
6996 rm -rf libconftest.dylib*
6997 echo "int foo(void){return 1;}" > conftest.c
6998 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6999 -dynamiclib -Wl,-single_module conftest.c" >&5
7000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7001 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7002 _lt_result=$?
7003 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7004 lt_cv_apple_cc_single_mod=yes
7005 else
7006 cat conftest.err >&5
7007 fi
7008 rm -rf libconftest.dylib*
7009 rm -f conftest.*
7010 fi
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7013 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7015 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7016 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 lt_cv_ld_exported_symbols_list=no
7020 save_LDFLAGS=$LDFLAGS
7021 echo "_main" > conftest.sym
7022 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 lt_cv_ld_exported_symbols_list=yes
7036 else
7037 lt_cv_ld_exported_symbols_list=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 LDFLAGS="$save_LDFLAGS"
7042
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7045 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7046 case $host_os in
7047 rhapsody* | darwin1.[012])
7048 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7049 darwin1.*)
7050 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7051 darwin*) # darwin 5.x on
7052 # if running on 10.5 or later, the deployment target defaults
7053 # to the OS version, if on x86, and 10.4, the deployment
7054 # target defaults to 10.4. Don't you love it?
7055 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7056 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7058 10.[012]*)
7059 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7060 10.*)
7061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7062 esac
7063 ;;
7064 esac
7065 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7066 _lt_dar_single_mod='$single_module'
7067 fi
7068 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7069 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7070 else
7071 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7072 fi
7073 if test "$DSYMUTIL" != ":"; then
7074 _lt_dsymutil='~$DSYMUTIL $lib || :'
7075 else
7076 _lt_dsymutil=
7077 fi
7078 ;;
7079 esac
7080
7081 ac_ext=c
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7088 # On Suns, sometimes $CPP names a directory.
7089 if test -n "$CPP" && test -d "$CPP"; then
7090 CPP=
7091 fi
7092 if test -z "$CPP"; then
7093 if test "${ac_cv_prog_CPP+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 # Double quotes because CPP needs to be expanded
7097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7098 do
7099 ac_preproc_ok=false
7100 for ac_c_preproc_warn_flag in '' yes
7101 do
7102 # Use a header file that comes with gcc, so configuring glibc
7103 # with a fresh cross-compiler works.
7104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7105 # <limits.h> exists even on freestanding compilers.
7106 # On the NeXT, cc -E runs the code through the compiler's parser,
7107 # not just through cpp. "Syntax error" is here to catch this case.
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 #ifdef __STDC__
7111 # include <limits.h>
7112 #else
7113 # include <assert.h>
7114 #endif
7115 Syntax error
7116 _ACEOF
7117 if ac_fn_c_try_cpp "$LINENO"; then :
7118
7119 else
7120 # Broken: fails on valid input.
7121 continue
7122 fi
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 # OK, works on sane cases. Now check whether nonexistent headers
7126 # can be detected and how.
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 #include <ac_nonexistent.h>
7130 _ACEOF
7131 if ac_fn_c_try_cpp "$LINENO"; then :
7132 # Broken: success on invalid input.
7133 continue
7134 else
7135 # Passes both tests.
7136 ac_preproc_ok=:
7137 break
7138 fi
7139 rm -f conftest.err conftest.$ac_ext
7140
7141 done
7142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7143 rm -f conftest.err conftest.$ac_ext
7144 if $ac_preproc_ok; then :
7145 break
7146 fi
7147
7148 done
7149 ac_cv_prog_CPP=$CPP
7150
7151 fi
7152 CPP=$ac_cv_prog_CPP
7153 else
7154 ac_cv_prog_CPP=$CPP
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7157 $as_echo "$CPP" >&6; }
7158 ac_preproc_ok=false
7159 for ac_c_preproc_warn_flag in '' yes
7160 do
7161 # Use a header file that comes with gcc, so configuring glibc
7162 # with a fresh cross-compiler works.
7163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7164 # <limits.h> exists even on freestanding compilers.
7165 # On the NeXT, cc -E runs the code through the compiler's parser,
7166 # not just through cpp. "Syntax error" is here to catch this case.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #ifdef __STDC__
7170 # include <limits.h>
7171 #else
7172 # include <assert.h>
7173 #endif
7174 Syntax error
7175 _ACEOF
7176 if ac_fn_c_try_cpp "$LINENO"; then :
7177
7178 else
7179 # Broken: fails on valid input.
7180 continue
7181 fi
7182 rm -f conftest.err conftest.$ac_ext
7183
7184 # OK, works on sane cases. Now check whether nonexistent headers
7185 # can be detected and how.
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 #include <ac_nonexistent.h>
7189 _ACEOF
7190 if ac_fn_c_try_cpp "$LINENO"; then :
7191 # Broken: success on invalid input.
7192 continue
7193 else
7194 # Passes both tests.
7195 ac_preproc_ok=:
7196 break
7197 fi
7198 rm -f conftest.err conftest.$ac_ext
7199
7200 done
7201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7202 rm -f conftest.err conftest.$ac_ext
7203 if $ac_preproc_ok; then :
7204
7205 else
7206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7208 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7209 See \`config.log' for more details." "$LINENO" 5; }
7210 fi
7211
7212 ac_ext=c
7213 ac_cpp='$CPP $CPPFLAGS'
7214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7220 $as_echo_n "checking for ANSI C header files... " >&6; }
7221 if test "${ac_cv_header_stdc+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <stdlib.h>
7227 #include <stdarg.h>
7228 #include <string.h>
7229 #include <float.h>
7230
7231 int
7232 main ()
7233 {
7234
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 ac_cv_header_stdc=yes
7241 else
7242 ac_cv_header_stdc=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245
7246 if test $ac_cv_header_stdc = yes; then
7247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <string.h>
7251
7252 _ACEOF
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254 $EGREP "memchr" >/dev/null 2>&1; then :
7255
7256 else
7257 ac_cv_header_stdc=no
7258 fi
7259 rm -f conftest*
7260
7261 fi
7262
7263 if test $ac_cv_header_stdc = yes; then
7264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <stdlib.h>
7268
7269 _ACEOF
7270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7271 $EGREP "free" >/dev/null 2>&1; then :
7272
7273 else
7274 ac_cv_header_stdc=no
7275 fi
7276 rm -f conftest*
7277
7278 fi
7279
7280 if test $ac_cv_header_stdc = yes; then
7281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7282 if test "$cross_compiling" = yes; then :
7283 :
7284 else
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 #include <ctype.h>
7288 #include <stdlib.h>
7289 #if ((' ' & 0x0FF) == 0x020)
7290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7292 #else
7293 # define ISLOWER(c) \
7294 (('a' <= (c) && (c) <= 'i') \
7295 || ('j' <= (c) && (c) <= 'r') \
7296 || ('s' <= (c) && (c) <= 'z'))
7297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7298 #endif
7299
7300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7301 int
7302 main ()
7303 {
7304 int i;
7305 for (i = 0; i < 256; i++)
7306 if (XOR (islower (i), ISLOWER (i))
7307 || toupper (i) != TOUPPER (i))
7308 return 2;
7309 return 0;
7310 }
7311 _ACEOF
7312 if ac_fn_c_try_run "$LINENO"; then :
7313
7314 else
7315 ac_cv_header_stdc=no
7316 fi
7317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7318 conftest.$ac_objext conftest.beam conftest.$ac_ext
7319 fi
7320
7321 fi
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7324 $as_echo "$ac_cv_header_stdc" >&6; }
7325 if test $ac_cv_header_stdc = yes; then
7326
7327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7328
7329 fi
7330
7331 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7333 inttypes.h stdint.h unistd.h
7334 do :
7335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7336 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7337 "
7338 eval as_val=\$$as_ac_Header
7339 if test "x$as_val" = x""yes; then :
7340 cat >>confdefs.h <<_ACEOF
7341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7342 _ACEOF
7343
7344 fi
7345
7346 done
7347
7348
7349 for ac_header in dlfcn.h
7350 do :
7351 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7352 "
7353 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_DLFCN_H 1
7356 _ACEOF
7357
7358 fi
7359
7360 done
7361
7362
7363
7364 # Set options
7365 enable_dlopen=yes
7366 # Check whether --enable-static was given.
7367 if test "${enable_static+set}" = set; then :
7368 enableval=$enable_static; p=${PACKAGE-default}
7369 case $enableval in
7370 yes) enable_static=yes ;;
7371 no) enable_static=no ;;
7372 *)
7373 enable_static=no
7374 # Look at the argument we got. We use all the common list separators.
7375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7376 for pkg in $enableval; do
7377 IFS="$lt_save_ifs"
7378 if test "X$pkg" = "X$p"; then
7379 enable_static=yes
7380 fi
7381 done
7382 IFS="$lt_save_ifs"
7383 ;;
7384 esac
7385 else
7386 enable_static=no
7387 fi
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 enable_win32_dll=no
7400
7401
7402 # Check whether --enable-shared was given.
7403 if test "${enable_shared+set}" = set; then :
7404 enableval=$enable_shared; p=${PACKAGE-default}
7405 case $enableval in
7406 yes) enable_shared=yes ;;
7407 no) enable_shared=no ;;
7408 *)
7409 enable_shared=no
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7413 IFS="$lt_save_ifs"
7414 if test "X$pkg" = "X$p"; then
7415 enable_shared=yes
7416 fi
7417 done
7418 IFS="$lt_save_ifs"
7419 ;;
7420 esac
7421 else
7422 enable_shared=yes
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 # Check whether --with-pic was given.
7436 if test "${with_pic+set}" = set; then :
7437 withval=$with_pic; pic_mode="$withval"
7438 else
7439 pic_mode=default
7440 fi
7441
7442
7443 test -z "$pic_mode" && pic_mode=default
7444
7445
7446
7447
7448
7449
7450
7451 # Check whether --enable-fast-install was given.
7452 if test "${enable_fast_install+set}" = set; then :
7453 enableval=$enable_fast_install; p=${PACKAGE-default}
7454 case $enableval in
7455 yes) enable_fast_install=yes ;;
7456 no) enable_fast_install=no ;;
7457 *)
7458 enable_fast_install=no
7459 # Look at the argument we got. We use all the common list separators.
7460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7461 for pkg in $enableval; do
7462 IFS="$lt_save_ifs"
7463 if test "X$pkg" = "X$p"; then
7464 enable_fast_install=yes
7465 fi
7466 done
7467 IFS="$lt_save_ifs"
7468 ;;
7469 esac
7470 else
7471 enable_fast_install=yes
7472 fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 # This can be used to rebuild libtool when needed
7485 LIBTOOL_DEPS="$ltmain"
7486
7487 # Always use our own libtool.
7488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 test -z "$LN_S" && LN_S="ln -s"
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 if test -n "${ZSH_VERSION+set}" ; then
7530 setopt NO_GLOB_SUBST
7531 fi
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7534 $as_echo_n "checking for objdir... " >&6; }
7535 if test "${lt_cv_objdir+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 rm -f .libs 2>/dev/null
7539 mkdir .libs 2>/dev/null
7540 if test -d .libs; then
7541 lt_cv_objdir=.libs
7542 else
7543 # MS-DOS does not allow filenames that begin with a dot.
7544 lt_cv_objdir=_libs
7545 fi
7546 rmdir .libs 2>/dev/null
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7549 $as_echo "$lt_cv_objdir" >&6; }
7550 objdir=$lt_cv_objdir
7551
7552
7553
7554
7555
7556 cat >>confdefs.h <<_ACEOF
7557 #define LT_OBJDIR "$lt_cv_objdir/"
7558 _ACEOF
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576 case $host_os in
7577 aix3*)
7578 # AIX sometimes has problems with the GCC collect2 program. For some
7579 # reason, if we set the COLLECT_NAMES environment variable, the problems
7580 # vanish in a puff of smoke.
7581 if test "X${COLLECT_NAMES+set}" != Xset; then
7582 COLLECT_NAMES=
7583 export COLLECT_NAMES
7584 fi
7585 ;;
7586 esac
7587
7588 # Sed substitution that helps us do robust quoting. It backslashifies
7589 # metacharacters that are still active within double-quoted strings.
7590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7591
7592 # Same as above, but do not quote variable references.
7593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7594
7595 # Sed substitution to delay expansion of an escaped shell variable in a
7596 # double_quote_subst'ed string.
7597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7598
7599 # Sed substitution to delay expansion of an escaped single quote.
7600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7601
7602 # Sed substitution to avoid accidental globbing in evaled expressions
7603 no_glob_subst='s/\*/\\\*/g'
7604
7605 # Global variables:
7606 ofile=libtool
7607 can_build_shared=yes
7608
7609 # All known linkers require a `.a' archive for static linking (except MSVC,
7610 # which needs '.lib').
7611 libext=a
7612
7613 with_gnu_ld="$lt_cv_prog_gnu_ld"
7614
7615 old_CC="$CC"
7616 old_CFLAGS="$CFLAGS"
7617
7618 # Set sane defaults for various variables
7619 test -z "$CC" && CC=cc
7620 test -z "$LTCC" && LTCC=$CC
7621 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7622 test -z "$LD" && LD=ld
7623 test -z "$ac_objext" && ac_objext=o
7624
7625 for cc_temp in $compiler""; do
7626 case $cc_temp in
7627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 \-*) ;;
7630 *) break;;
7631 esac
7632 done
7633 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7634
7635
7636 # Only perform the check for file, if the check method requires it
7637 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7638 case $deplibs_check_method in
7639 file_magic*)
7640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7642 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 case $MAGIC_CMD in
7647 [\\/*] | ?:[\\/]*)
7648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7649 ;;
7650 *)
7651 lt_save_MAGIC_CMD="$MAGIC_CMD"
7652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7654 for ac_dir in $ac_dummy; do
7655 IFS="$lt_save_ifs"
7656 test -z "$ac_dir" && ac_dir=.
7657 if test -f $ac_dir/${ac_tool_prefix}file; then
7658 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7659 if test -n "$file_magic_test_file"; then
7660 case $deplibs_check_method in
7661 "file_magic "*)
7662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7665 $EGREP "$file_magic_regex" > /dev/null; then
7666 :
7667 else
7668 cat <<_LT_EOF 1>&2
7669
7670 *** Warning: the command libtool uses to detect shared libraries,
7671 *** $file_magic_cmd, produces output that libtool cannot recognize.
7672 *** The result is that libtool may fail to recognize shared libraries
7673 *** as such. This will affect the creation of libtool libraries that
7674 *** depend on shared libraries, but programs linked with such libtool
7675 *** libraries will work regardless of this problem. Nevertheless, you
7676 *** may want to report the problem to your system manager and/or to
7677 *** bug-libtool@gnu.org
7678
7679 _LT_EOF
7680 fi ;;
7681 esac
7682 fi
7683 break
7684 fi
7685 done
7686 IFS="$lt_save_ifs"
7687 MAGIC_CMD="$lt_save_MAGIC_CMD"
7688 ;;
7689 esac
7690 fi
7691
7692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7693 if test -n "$MAGIC_CMD"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7695 $as_echo "$MAGIC_CMD" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702
7703
7704
7705 if test -z "$lt_cv_path_MAGIC_CMD"; then
7706 if test -n "$ac_tool_prefix"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7708 $as_echo_n "checking for file... " >&6; }
7709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 case $MAGIC_CMD in
7713 [\\/*] | ?:[\\/]*)
7714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7715 ;;
7716 *)
7717 lt_save_MAGIC_CMD="$MAGIC_CMD"
7718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7720 for ac_dir in $ac_dummy; do
7721 IFS="$lt_save_ifs"
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/file; then
7724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7725 if test -n "$file_magic_test_file"; then
7726 case $deplibs_check_method in
7727 "file_magic "*)
7728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7731 $EGREP "$file_magic_regex" > /dev/null; then
7732 :
7733 else
7734 cat <<_LT_EOF 1>&2
7735
7736 *** Warning: the command libtool uses to detect shared libraries,
7737 *** $file_magic_cmd, produces output that libtool cannot recognize.
7738 *** The result is that libtool may fail to recognize shared libraries
7739 *** as such. This will affect the creation of libtool libraries that
7740 *** depend on shared libraries, but programs linked with such libtool
7741 *** libraries will work regardless of this problem. Nevertheless, you
7742 *** may want to report the problem to your system manager and/or to
7743 *** bug-libtool@gnu.org
7744
7745 _LT_EOF
7746 fi ;;
7747 esac
7748 fi
7749 break
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 ;;
7755 esac
7756 fi
7757
7758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7759 if test -n "$MAGIC_CMD"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7761 $as_echo "$MAGIC_CMD" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767
7768 else
7769 MAGIC_CMD=:
7770 fi
7771 fi
7772
7773 fi
7774 ;;
7775 esac
7776
7777 # Use C for the default configuration in the libtool script
7778
7779 lt_save_CC="$CC"
7780 ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787 # Source file extension for C test sources.
7788 ac_ext=c
7789
7790 # Object file extension for compiled C test sources.
7791 objext=o
7792 objext=$objext
7793
7794 # Code to be used in simple compile tests
7795 lt_simple_compile_test_code="int some_variable = 0;"
7796
7797 # Code to be used in simple link tests
7798 lt_simple_link_test_code='int main(){return(0);}'
7799
7800
7801
7802
7803
7804
7805
7806 # If no C compiler was specified, use CC.
7807 LTCC=${LTCC-"$CC"}
7808
7809 # If no C compiler flags were specified, use CFLAGS.
7810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7811
7812 # Allow CC to be a program name with arguments.
7813 compiler=$CC
7814
7815 # Save the default compiler, since it gets overwritten when the other
7816 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7817 compiler_DEFAULT=$CC
7818
7819 # save warnings/boilerplate of simple test code
7820 ac_outfile=conftest.$ac_objext
7821 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7823 _lt_compiler_boilerplate=`cat conftest.err`
7824 $RM conftest*
7825
7826 ac_outfile=conftest.$ac_objext
7827 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7829 _lt_linker_boilerplate=`cat conftest.err`
7830 $RM -r conftest*
7831
7832
7833 if test -n "$compiler"; then
7834
7835 lt_prog_compiler_no_builtin_flag=
7836
7837 if test "$GCC" = yes; then
7838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7839
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7842 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 lt_cv_prog_compiler_rtti_exceptions=no
7846 ac_outfile=conftest.$ac_objext
7847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848 lt_compiler_flag="-fno-rtti -fno-exceptions"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err)
7860 ac_status=$?
7861 cat conftest.err >&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_cv_prog_compiler_rtti_exceptions=yes
7870 fi
7871 fi
7872 $RM conftest*
7873
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7877
7878 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7880 else
7881 :
7882 fi
7883
7884 fi
7885
7886
7887
7888
7889
7890
7891 lt_prog_compiler_wl=
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_static=
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7896 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7897
7898 if test "$GCC" = yes; then
7899 lt_prog_compiler_wl='-Wl,'
7900 lt_prog_compiler_static='-static'
7901
7902 case $host_os in
7903 aix*)
7904 # All AIX code is PIC.
7905 if test "$host_cpu" = ia64; then
7906 # AIX 5 now supports IA64 processor
7907 lt_prog_compiler_static='-Bstatic'
7908 fi
7909 ;;
7910
7911 amigaos*)
7912 case $host_cpu in
7913 powerpc)
7914 # see comment about AmigaOS4 .so support
7915 lt_prog_compiler_pic='-fPIC'
7916 ;;
7917 m68k)
7918 # FIXME: we need at least 68020 code to build shared libraries, but
7919 # adding the `-m68020' flag to GCC prevents building anything better,
7920 # like `-m68040'.
7921 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7922 ;;
7923 esac
7924 ;;
7925
7926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7927 # PIC is the default for these OSes.
7928 ;;
7929
7930 mingw* | cygwin* | pw32* | os2* | cegcc*)
7931 # This hack is so that the source file can tell whether it is being
7932 # built for inclusion in a dll (and should export symbols for example).
7933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7934 # (--disable-auto-import) libraries
7935 lt_prog_compiler_pic='-DDLL_EXPORT'
7936 ;;
7937
7938 darwin* | rhapsody*)
7939 # PIC is the default on this platform
7940 # Common symbols not allowed in MH_DYLIB files
7941 lt_prog_compiler_pic='-fno-common'
7942 ;;
7943
7944 hpux*)
7945 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7946 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7947 # sets the default TLS model and affects inlining.
7948 case $host_cpu in
7949 hppa*64*)
7950 # +Z the default
7951 ;;
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956 ;;
7957
7958 interix[3-9]*)
7959 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7960 # Instead, we relocate shared libraries at runtime.
7961 ;;
7962
7963 msdosdjgpp*)
7964 # Just because we use GCC doesn't mean we suddenly get shared libraries
7965 # on systems that don't support them.
7966 lt_prog_compiler_can_build_shared=no
7967 enable_shared=no
7968 ;;
7969
7970 *nto* | *qnx*)
7971 # QNX uses GNU C++, but need to define -shared option too, otherwise
7972 # it will coredump.
7973 lt_prog_compiler_pic='-fPIC -shared'
7974 ;;
7975
7976 sysv4*MP*)
7977 if test -d /usr/nec; then
7978 lt_prog_compiler_pic=-Kconform_pic
7979 fi
7980 ;;
7981
7982 *)
7983 lt_prog_compiler_pic='-fPIC'
7984 ;;
7985 esac
7986 else
7987 # PORTME Check for flag to pass linker flags through the system compiler.
7988 case $host_os in
7989 aix*)
7990 lt_prog_compiler_wl='-Wl,'
7991 if test "$host_cpu" = ia64; then
7992 # AIX 5 now supports IA64 processor
7993 lt_prog_compiler_static='-Bstatic'
7994 else
7995 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7996 fi
7997 ;;
7998
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8003 ;;
8004
8005 hpux9* | hpux10* | hpux11*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8008 # not for PA HP-UX.
8009 case $host_cpu in
8010 hppa*64*|ia64*)
8011 # +Z the default
8012 ;;
8013 *)
8014 lt_prog_compiler_pic='+Z'
8015 ;;
8016 esac
8017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018 lt_prog_compiler_static='${wl}-a ${wl}archive'
8019 ;;
8020
8021 irix5* | irix6* | nonstopux*)
8022 lt_prog_compiler_wl='-Wl,'
8023 # PIC (with -KPIC) is the default.
8024 lt_prog_compiler_static='-non_shared'
8025 ;;
8026
8027 linux* | k*bsd*-gnu)
8028 case $cc_basename in
8029 # old Intel for x86_64 which still supported -KPIC.
8030 ecc*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-static'
8034 ;;
8035 # icc used to be incompatible with GCC.
8036 # ICC 10 doesn't accept -KPIC any more.
8037 icc* | ifort*)
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fPIC'
8040 lt_prog_compiler_static='-static'
8041 ;;
8042 # Lahey Fortran 8.1.
8043 lf95*)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='--shared'
8046 lt_prog_compiler_static='--static'
8047 ;;
8048 pgcc* | pgf77* | pgf90* | pgf95*)
8049 # Portland Group compilers (*not* the Pentium gcc compiler,
8050 # which looks to be a dead project)
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-fpic'
8053 lt_prog_compiler_static='-Bstatic'
8054 ;;
8055 ccc*)
8056 lt_prog_compiler_wl='-Wl,'
8057 # All Alpha code is PIC.
8058 lt_prog_compiler_static='-non_shared'
8059 ;;
8060 xl*)
8061 # IBM XL C 8.0/Fortran 10.1 on PPC
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-qpic'
8064 lt_prog_compiler_static='-qstaticlink'
8065 ;;
8066 *)
8067 case `$CC -V 2>&1 | sed 5q` in
8068 *Sun\ C*)
8069 # Sun C 5.9
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl='-Wl,'
8073 ;;
8074 *Sun\ F*)
8075 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl=''
8079 ;;
8080 esac
8081 ;;
8082 esac
8083 ;;
8084
8085 newsos6)
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8088 ;;
8089
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8094 ;;
8095
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8100 ;;
8101
8102 rdos*)
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105
8106 solaris*)
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8110 f77* | f90* | f95*)
8111 lt_prog_compiler_wl='-Qoption ld ';;
8112 *)
8113 lt_prog_compiler_wl='-Wl,';;
8114 esac
8115 ;;
8116
8117 sunos4*)
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 sysv4*MP*)
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8133 fi
8134 ;;
8135
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 ;;
8141
8142 unicos*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8145 ;;
8146
8147 uts4*)
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8150 ;;
8151
8152 *)
8153 lt_prog_compiler_can_build_shared=no
8154 ;;
8155 esac
8156 fi
8157
8158 case $host_os in
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8160 *djgpp*)
8161 lt_prog_compiler_pic=
8162 ;;
8163 *)
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165 ;;
8166 esac
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8169
8170
8171
8172
8173
8174
8175 #
8176 # Check to make sure the PIC flag actually works.
8177 #
8178 if test -n "$lt_prog_compiler_pic"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 lt_cv_prog_compiler_pic_works=no
8185 ac_outfile=conftest.$ac_objext
8186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 # The option is referenced via a variable to avoid confusing sed.
8193 lt_compile=`echo "$ac_compile" | $SED \
8194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196 -e 's:$: $lt_compiler_flag:'`
8197 (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8198 (eval "$lt_compile" 2>conftest.err)
8199 ac_status=$?
8200 cat conftest.err >&5
8201 echo "$as_me:8201: \$? = $ac_status" >&5
8202 if (exit $ac_status) && test -s "$ac_outfile"; then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings other than the usual output.
8205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_pic_works=yes
8209 fi
8210 fi
8211 $RM conftest*
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218 case $lt_prog_compiler_pic in
8219 "" | " "*) ;;
8220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8221 esac
8222 else
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_can_build_shared=no
8225 fi
8226
8227 fi
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the static flag actually works.
8236 #
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_prog_compiler_static_works=no
8244 save_LDFLAGS="$LDFLAGS"
8245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248 # The linker can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 if test -s conftest.err; then
8251 # Append any errors to the config.log.
8252 cat conftest.err 1>&5
8253 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255 if diff conftest.exp conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_static_works=yes
8257 fi
8258 else
8259 lt_cv_prog_compiler_static_works=yes
8260 fi
8261 fi
8262 $RM -r conftest*
8263 LDFLAGS="$save_LDFLAGS"
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270 :
8271 else
8272 lt_prog_compiler_static=
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 lt_cv_prog_compiler_c_o=no
8287 $RM -r conftest 2>/dev/null
8288 mkdir conftest
8289 cd conftest
8290 mkdir out
8291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293 lt_compiler_flag="-o out/conftest2.$ac_objext"
8294 # Insert the option either (1) after the last *FLAGS variable, or
8295 # (2) before a word containing "conftest.", or (3) at the end.
8296 # Note that $ac_compile itself does not contain backslashes and begins
8297 # with a dollar sign (not a hyphen), so the echo should work correctly.
8298 lt_compile=`echo "$ac_compile" | $SED \
8299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301 -e 's:$: $lt_compiler_flag:'`
8302 (eval echo "\"\$as_me:8302: $lt_compile\"" >&5)
8303 (eval "$lt_compile" 2>out/conftest.err)
8304 ac_status=$?
8305 cat out/conftest.err >&5
8306 echo "$as_me:8306: \$? = $ac_status" >&5
8307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308 then
8309 # The compiler can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314 lt_cv_prog_compiler_c_o=yes
8315 fi
8316 fi
8317 chmod u+w . 2>&5
8318 $RM conftest*
8319 # SGI C++ compiler will create directory out/ii_files/ for
8320 # template instantiation
8321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322 $RM out/* && rmdir out
8323 cd ..
8324 $RM -r conftest
8325 $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 lt_cv_prog_compiler_c_o=no
8342 $RM -r conftest 2>/dev/null
8343 mkdir conftest
8344 cd conftest
8345 mkdir out
8346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348 lt_compiler_flag="-o out/conftest2.$ac_objext"
8349 # Insert the option either (1) after the last *FLAGS variable, or
8350 # (2) before a word containing "conftest.", or (3) at the end.
8351 # Note that $ac_compile itself does not contain backslashes and begins
8352 # with a dollar sign (not a hyphen), so the echo should work correctly.
8353 lt_compile=`echo "$ac_compile" | $SED \
8354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356 -e 's:$: $lt_compiler_flag:'`
8357 (eval echo "\"\$as_me:8357: $lt_compile\"" >&5)
8358 (eval "$lt_compile" 2>out/conftest.err)
8359 ac_status=$?
8360 cat out/conftest.err >&5
8361 echo "$as_me:8361: \$? = $ac_status" >&5
8362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363 then
8364 # The compiler can only warn and ignore the option if not recognized
8365 # So say no if there are warnings
8366 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369 lt_cv_prog_compiler_c_o=yes
8370 fi
8371 fi
8372 chmod u+w . 2>&5
8373 $RM conftest*
8374 # SGI C++ compiler will create directory out/ii_files/ for
8375 # template instantiation
8376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377 $RM out/* && rmdir out
8378 cd ..
8379 $RM -r conftest
8380 $RM conftest*
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391 # do not overwrite the value of need_locks provided by the user
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8394 hard_links=yes
8395 $RM conftest*
8396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397 touch conftest.a
8398 ln conftest.a conftest.b 2>&5 || hard_links=no
8399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402 if test "$hard_links" = no; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405 need_locks=warn
8406 fi
8407 else
8408 need_locks=no
8409 fi
8410
8411
8412
8413
8414
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418
8419 runpath_var=
8420 allow_undefined_flag=
8421 always_export_symbols=no
8422 archive_cmds=
8423 archive_expsym_cmds=
8424 compiler_needs_object=no
8425 enable_shared_with_static_runtimes=no
8426 export_dynamic_flag_spec=
8427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428 hardcode_automatic=no
8429 hardcode_direct=no
8430 hardcode_direct_absolute=no
8431 hardcode_libdir_flag_spec=
8432 hardcode_libdir_flag_spec_ld=
8433 hardcode_libdir_separator=
8434 hardcode_minus_L=no
8435 hardcode_shlibpath_var=unsupported
8436 inherit_rpath=no
8437 link_all_deplibs=unknown
8438 module_cmds=
8439 module_expsym_cmds=
8440 old_archive_from_new_cmds=
8441 old_archive_from_expsyms_cmds=
8442 thread_safe_flag_spec=
8443 whole_archive_flag_spec=
8444 # include_expsyms should be a list of space-separated symbols to be *always*
8445 # included in the symbol list
8446 include_expsyms=
8447 # exclude_expsyms can be an extended regexp of symbols to exclude
8448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450 # as well as any symbol that contains `d'.
8451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453 # platforms (ab)use it in PIC code, but their linkers get confused if
8454 # the symbol is explicitly referenced. Since portable code cannot
8455 # rely on this symbol name, it's probably fine to never include it in
8456 # preloaded symbol tables.
8457 # Exclude shared library initialization/finalization symbols.
8458 extract_expsyms_cmds=
8459
8460 case $host_os in
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 if test "$GCC" != yes; then
8466 with_gnu_ld=no
8467 fi
8468 ;;
8469 interix*)
8470 # we just hope/assume this is gcc and not c89 (= MSVC++)
8471 with_gnu_ld=yes
8472 ;;
8473 openbsd*)
8474 with_gnu_ld=no
8475 ;;
8476 esac
8477
8478 ld_shlibs=yes
8479 if test "$with_gnu_ld" = yes; then
8480 # If archive_cmds runs LD, not CC, wlarc should be empty
8481 wlarc='${wl}'
8482
8483 # Set some defaults for GNU ld with shared library support. These
8484 # are reset later if shared libraries are not supported. Putting them
8485 # here allows them to be overridden if necessary.
8486 runpath_var=LD_RUN_PATH
8487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8488 export_dynamic_flag_spec='${wl}--export-dynamic'
8489 # ancient GNU ld didn't support --whole-archive et. al.
8490 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8491 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8492 else
8493 whole_archive_flag_spec=
8494 fi
8495 supports_anon_versioning=no
8496 case `$LD -v 2>&1` in
8497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8500 *\ 2.11.*) ;; # other 2.11 versions
8501 *) supports_anon_versioning=yes ;;
8502 esac
8503
8504 # See if GNU ld supports shared libraries.
8505 case $host_os in
8506 aix[3-9]*)
8507 # On AIX/PPC, the GNU linker is very broken
8508 if test "$host_cpu" != ia64; then
8509 ld_shlibs=no
8510 cat <<_LT_EOF 1>&2
8511
8512 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8513 *** to be unable to reliably create shared libraries on AIX.
8514 *** Therefore, libtool is disabling shared libraries support. If you
8515 *** really care for shared libraries, you may want to modify your PATH
8516 *** so that a non-GNU linker is found, and then restart.
8517
8518 _LT_EOF
8519 fi
8520 ;;
8521
8522 amigaos*)
8523 case $host_cpu in
8524 powerpc)
8525 # see comment about AmigaOS4 .so support
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527 archive_expsym_cmds=''
8528 ;;
8529 m68k)
8530 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)'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8533 ;;
8534 esac
8535 ;;
8536
8537 beos*)
8538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8539 allow_undefined_flag=unsupported
8540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541 # support --undefined. This deserves some investigation. FIXME
8542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 else
8544 ld_shlibs=no
8545 fi
8546 ;;
8547
8548 cygwin* | mingw* | pw32* | cegcc*)
8549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550 # as there is no search path for DLLs.
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 allow_undefined_flag=unsupported
8553 always_export_symbols=no
8554 enable_shared_with_static_runtimes=yes
8555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8556
8557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559 # If the export-symbols file already is a .def file (1st line
8560 # is EXPORTS), use it as is; otherwise, prepend...
8561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562 cp $export_symbols $output_objdir/$soname.def;
8563 else
8564 echo EXPORTS > $output_objdir/$soname.def;
8565 cat $export_symbols >> $output_objdir/$soname.def;
8566 fi~
8567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568 else
8569 ld_shlibs=no
8570 fi
8571 ;;
8572
8573 interix[3-9]*)
8574 hardcode_direct=no
8575 hardcode_shlibpath_var=no
8576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8577 export_dynamic_flag_spec='${wl}-E'
8578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8579 # Instead, shared libraries are loaded at an image base (0x10000000 by
8580 # default) and relocated if they conflict, which is a slow very memory
8581 # consuming and fragmenting process. To avoid this, we pick a random,
8582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8585 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'
8586 ;;
8587
8588 gnu* | linux* | tpf* | k*bsd*-gnu)
8589 tmp_diet=no
8590 if test "$host_os" = linux-dietlibc; then
8591 case $cc_basename in
8592 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8593 esac
8594 fi
8595 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8596 && test "$tmp_diet" = no
8597 then
8598 tmp_addflag=
8599 tmp_sharedflag='-shared'
8600 case $cc_basename,$host_cpu in
8601 pgcc*) # Portland Group C compiler
8602 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8603 tmp_addflag=' $pic_flag'
8604 ;;
8605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8606 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8607 tmp_addflag=' $pic_flag -Mnomain' ;;
8608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8609 tmp_addflag=' -i_dynamic' ;;
8610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8611 tmp_addflag=' -i_dynamic -nofor_main' ;;
8612 ifc* | ifort*) # Intel Fortran compiler
8613 tmp_addflag=' -nofor_main' ;;
8614 lf95*) # Lahey Fortran 8.1
8615 whole_archive_flag_spec=
8616 tmp_sharedflag='--shared' ;;
8617 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8618 tmp_sharedflag='-qmkshrobj'
8619 tmp_addflag= ;;
8620 esac
8621 case `$CC -V 2>&1 | sed 5q` in
8622 *Sun\ C*) # Sun C 5.9
8623 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8624 compiler_needs_object=yes
8625 tmp_sharedflag='-G' ;;
8626 *Sun\ F*) # Sun Fortran 8.3
8627 tmp_sharedflag='-G' ;;
8628 esac
8629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630
8631 if test "x$supports_anon_versioning" = xyes; then
8632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634 echo "local: *; };" >> $output_objdir/$libname.ver~
8635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8636 fi
8637
8638 case $cc_basename in
8639 xlf*)
8640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8642 hardcode_libdir_flag_spec=
8643 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8644 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8645 if test "x$supports_anon_versioning" = xyes; then
8646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8648 echo "local: *; };" >> $output_objdir/$libname.ver~
8649 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8650 fi
8651 ;;
8652 esac
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657
8658 netbsd*)
8659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8661 wlarc=
8662 else
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665 fi
8666 ;;
8667
8668 solaris*)
8669 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8670 ld_shlibs=no
8671 cat <<_LT_EOF 1>&2
8672
8673 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8674 *** create shared libraries on Solaris systems. Therefore, libtool
8675 *** is disabling shared libraries support. We urge you to upgrade GNU
8676 *** binutils to release 2.9.1 or newer. Another option is to modify
8677 *** your PATH or compiler configuration so that the native linker is
8678 *** used, and then restart.
8679
8680 _LT_EOF
8681 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688
8689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8690 case `$LD -v 2>&1` in
8691 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8692 ld_shlibs=no
8693 cat <<_LT_EOF 1>&2
8694
8695 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8696 *** reliably create shared libraries on SCO systems. Therefore, libtool
8697 *** is disabling shared libraries support. We urge you to upgrade GNU
8698 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8699 *** your PATH or compiler configuration so that the native linker is
8700 *** used, and then restart.
8701
8702 _LT_EOF
8703 ;;
8704 *)
8705 # For security reasons, it is highly recommended that you always
8706 # use absolute paths for naming shared libraries, and exclude the
8707 # DT_RUNPATH tag from executables and libraries. But doing so
8708 # requires that you compile everything twice, which is a pain.
8709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8715 fi
8716 ;;
8717 esac
8718 ;;
8719
8720 sunos4*)
8721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8722 wlarc=
8723 hardcode_direct=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 *)
8728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 else
8732 ld_shlibs=no
8733 fi
8734 ;;
8735 esac
8736
8737 if test "$ld_shlibs" = no; then
8738 runpath_var=
8739 hardcode_libdir_flag_spec=
8740 export_dynamic_flag_spec=
8741 whole_archive_flag_spec=
8742 fi
8743 else
8744 # PORTME fill in a description of your system's linker (not GNU ld)
8745 case $host_os in
8746 aix3*)
8747 allow_undefined_flag=unsupported
8748 always_export_symbols=yes
8749 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'
8750 # Note: this linker hardcodes the directories in LIBPATH if there
8751 # are no directories specified by -L.
8752 hardcode_minus_L=yes
8753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8754 # Neither direct hardcoding nor static linking is supported with a
8755 # broken collect2.
8756 hardcode_direct=unsupported
8757 fi
8758 ;;
8759
8760 aix[4-9]*)
8761 if test "$host_cpu" = ia64; then
8762 # On IA64, the linker does run time linking by default, so we don't
8763 # have to do anything special.
8764 aix_use_runtimelinking=no
8765 exp_sym_flag='-Bexport'
8766 no_entry_flag=""
8767 else
8768 # If we're using GNU nm, then we don't want the "-C" option.
8769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8771 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8772 else
8773 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8774 fi
8775 aix_use_runtimelinking=no
8776
8777 # Test if we are trying to use run time linking or normal
8778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8779 # need to do runtime linking.
8780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8781 for ld_flag in $LDFLAGS; do
8782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8783 aix_use_runtimelinking=yes
8784 break
8785 fi
8786 done
8787 ;;
8788 esac
8789
8790 exp_sym_flag='-bexport'
8791 no_entry_flag='-bnoentry'
8792 fi
8793
8794 # When large executables or shared objects are built, AIX ld can
8795 # have problems creating the table of contents. If linking a library
8796 # or program results in "error TOC overflow" add -mminimal-toc to
8797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8799
8800 archive_cmds=''
8801 hardcode_direct=yes
8802 hardcode_direct_absolute=yes
8803 hardcode_libdir_separator=':'
8804 link_all_deplibs=yes
8805 file_list_spec='${wl}-f,'
8806
8807 if test "$GCC" = yes; then
8808 case $host_os in aix4.[012]|aix4.[012].*)
8809 # We only want to do this on AIX 4.2 and lower, the check
8810 # below for broken collect2 doesn't work under 4.3+
8811 collect2name=`${CC} -print-prog-name=collect2`
8812 if test -f "$collect2name" &&
8813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8814 then
8815 # We have reworked collect2
8816 :
8817 else
8818 # We have old collect2
8819 hardcode_direct=unsupported
8820 # It fails to find uninstalled libraries when the uninstalled
8821 # path is not listed in the libpath. Setting hardcode_minus_L
8822 # to unsupported forces relinking
8823 hardcode_minus_L=yes
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_libdir_separator=
8826 fi
8827 ;;
8828 esac
8829 shared_flag='-shared'
8830 if test "$aix_use_runtimelinking" = yes; then
8831 shared_flag="$shared_flag "'${wl}-G'
8832 fi
8833 link_all_deplibs=no
8834 else
8835 # not using gcc
8836 if test "$host_cpu" = ia64; then
8837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8838 # chokes on -Wl,-G. The following line is correct:
8839 shared_flag='-G'
8840 else
8841 if test "$aix_use_runtimelinking" = yes; then
8842 shared_flag='${wl}-G'
8843 else
8844 shared_flag='${wl}-bM:SRE'
8845 fi
8846 fi
8847 fi
8848
8849 export_dynamic_flag_spec='${wl}-bexpall'
8850 # It seems that -bexpall does not export symbols beginning with
8851 # underscore (_), so it is better to generate a list of symbols to export.
8852 always_export_symbols=yes
8853 if test "$aix_use_runtimelinking" = yes; then
8854 # Warning - without using the other runtime loading flags (-brtl),
8855 # -berok will link without error, but may produce a broken library.
8856 allow_undefined_flag='-berok'
8857 # Determine the default libpath from the value encoded in an
8858 # empty executable.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861
8862 int
8863 main ()
8864 {
8865
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then :
8871
8872 lt_aix_libpath_sed='
8873 /Import File Strings/,/^$/ {
8874 /^0/ {
8875 s/^0 *\(.*\)$/\1/
8876 p
8877 }
8878 }'
8879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8880 # Check for a 64-bit object if we didn't find anything.
8881 if test -z "$aix_libpath"; then
8882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8883 fi
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8888
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8891 else
8892 if test "$host_cpu" = ia64; then
8893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894 allow_undefined_flag="-z nodefs"
8895 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"
8896 else
8897 # Determine the default libpath from the value encoded in an
8898 # empty executable.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901
8902 int
8903 main ()
8904 {
8905
8906 ;
8907 return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"; then :
8911
8912 lt_aix_libpath_sed='
8913 /Import File Strings/,/^$/ {
8914 /^0/ {
8915 s/^0 *\(.*\)$/\1/
8916 p
8917 }
8918 }'
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923 fi
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 # Warning - without using the other run time loading flags,
8931 # -berok will link without error, but may produce a broken library.
8932 no_undefined_flag=' ${wl}-bernotok'
8933 allow_undefined_flag=' ${wl}-berok'
8934 # Exported symbols can be pulled into shared objects from archives
8935 whole_archive_flag_spec='$convenience'
8936 archive_cmds_need_lc=yes
8937 # This is similar to how AIX traditionally builds its shared libraries.
8938 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8939 fi
8940 fi
8941 ;;
8942
8943 amigaos*)
8944 case $host_cpu in
8945 powerpc)
8946 # see comment about AmigaOS4 .so support
8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 archive_expsym_cmds=''
8949 ;;
8950 m68k)
8951 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)'
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_minus_L=yes
8954 ;;
8955 esac
8956 ;;
8957
8958 bsdi[45]*)
8959 export_dynamic_flag_spec=-rdynamic
8960 ;;
8961
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # When not using gcc, we currently assume that we are using
8964 # Microsoft Visual C++.
8965 # hardcode_libdir_flag_spec is actually meaningless, as there is
8966 # no search path for DLLs.
8967 hardcode_libdir_flag_spec=' '
8968 allow_undefined_flag=unsupported
8969 # Tell ltmain to make .lib files, not .a files.
8970 libext=lib
8971 # Tell ltmain to make .dll files, not .so files.
8972 shrext_cmds=".dll"
8973 # FIXME: Setting linknames here is a bad hack.
8974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8975 # The linker will automatically build a .lib file if we build a DLL.
8976 old_archive_from_new_cmds='true'
8977 # FIXME: Should let the user specify the lib program.
8978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8979 fix_srcfile_path='`cygpath -w "$srcfile"`'
8980 enable_shared_with_static_runtimes=yes
8981 ;;
8982
8983 darwin* | rhapsody*)
8984
8985
8986 archive_cmds_need_lc=no
8987 hardcode_direct=no
8988 hardcode_automatic=yes
8989 hardcode_shlibpath_var=unsupported
8990 whole_archive_flag_spec=''
8991 link_all_deplibs=yes
8992 allow_undefined_flag="$_lt_dar_allow_undefined"
8993 case $cc_basename in
8994 ifort*) _lt_dar_can_shared=yes ;;
8995 *) _lt_dar_can_shared=$GCC ;;
8996 esac
8997 if test "$_lt_dar_can_shared" = "yes"; then
8998 output_verbose_link_cmd=echo
8999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9001 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}"
9002 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}"
9003
9004 else
9005 ld_shlibs=no
9006 fi
9007
9008 ;;
9009
9010 dgux*)
9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_shlibpath_var=no
9014 ;;
9015
9016 freebsd1*)
9017 ld_shlibs=no
9018 ;;
9019
9020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9021 # support. Future versions do this automatically, but an explicit c++rt0.o
9022 # does not break anything, and helps significantly (at the cost of a little
9023 # extra space).
9024 freebsd2.2*)
9025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9026 hardcode_libdir_flag_spec='-R$libdir'
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9032 freebsd2*)
9033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9034 hardcode_direct=yes
9035 hardcode_minus_L=yes
9036 hardcode_shlibpath_var=no
9037 ;;
9038
9039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9040 freebsd* | dragonfly*)
9041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9042 hardcode_libdir_flag_spec='-R$libdir'
9043 hardcode_direct=yes
9044 hardcode_shlibpath_var=no
9045 ;;
9046
9047 hpux9*)
9048 if test "$GCC" = yes; then
9049 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9050 else
9051 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9052 fi
9053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9054 hardcode_libdir_separator=:
9055 hardcode_direct=yes
9056
9057 # hardcode_minus_L: Not really in the search PATH,
9058 # but as the default location of the library.
9059 hardcode_minus_L=yes
9060 export_dynamic_flag_spec='${wl}-E'
9061 ;;
9062
9063 hpux10*)
9064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9066 else
9067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9068 fi
9069 if test "$with_gnu_ld" = no; then
9070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9071 hardcode_libdir_flag_spec_ld='+b $libdir'
9072 hardcode_libdir_separator=:
9073 hardcode_direct=yes
9074 hardcode_direct_absolute=yes
9075 export_dynamic_flag_spec='${wl}-E'
9076 # hardcode_minus_L: Not really in the search PATH,
9077 # but as the default location of the library.
9078 hardcode_minus_L=yes
9079 fi
9080 ;;
9081
9082 hpux11*)
9083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9084 case $host_cpu in
9085 hppa*64*)
9086 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 ;;
9088 ia64*)
9089 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9090 ;;
9091 *)
9092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9093 ;;
9094 esac
9095 else
9096 case $host_cpu in
9097 hppa*64*)
9098 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 ;;
9100 ia64*)
9101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9102 ;;
9103 *)
9104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 ;;
9106 esac
9107 fi
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9111
9112 case $host_cpu in
9113 hppa*64*|ia64*)
9114 hardcode_direct=no
9115 hardcode_shlibpath_var=no
9116 ;;
9117 *)
9118 hardcode_direct=yes
9119 hardcode_direct_absolute=yes
9120 export_dynamic_flag_spec='${wl}-E'
9121
9122 # hardcode_minus_L: Not really in the search PATH,
9123 # but as the default location of the library.
9124 hardcode_minus_L=yes
9125 ;;
9126 esac
9127 fi
9128 ;;
9129
9130 irix5* | irix6* | nonstopux*)
9131 if test "$GCC" = yes; then
9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9133 # Try to use the -exported_symbol ld option, if it does not
9134 # work, assume that -exports_file does not work either and
9135 # implicitly export all symbols.
9136 save_LDFLAGS="$LDFLAGS"
9137 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 int foo(void) {}
9141 _ACEOF
9142 if ac_fn_c_try_link "$LINENO"; then :
9143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9144
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LDFLAGS="$save_LDFLAGS"
9149 else
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9152 fi
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155 hardcode_libdir_separator=:
9156 inherit_rpath=yes
9157 link_all_deplibs=yes
9158 ;;
9159
9160 netbsd*)
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9163 else
9164 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9165 fi
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9169 ;;
9170
9171 newsos6)
9172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_direct=yes
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 hardcode_libdir_separator=:
9176 hardcode_shlibpath_var=no
9177 ;;
9178
9179 *nto* | *qnx*)
9180 ;;
9181
9182 openbsd*)
9183 if test -f /usr/libexec/ld.so; then
9184 hardcode_direct=yes
9185 hardcode_shlibpath_var=no
9186 hardcode_direct_absolute=yes
9187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9191 export_dynamic_flag_spec='${wl}-E'
9192 else
9193 case $host_os in
9194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_libdir_flag_spec='-R$libdir'
9197 ;;
9198 *)
9199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201 ;;
9202 esac
9203 fi
9204 else
9205 ld_shlibs=no
9206 fi
9207 ;;
9208
9209 os2*)
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 allow_undefined_flag=unsupported
9213 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9214 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9215 ;;
9216
9217 osf3*)
9218 if test "$GCC" = yes; then
9219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9220 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9221 else
9222 allow_undefined_flag=' -expect_unresolved \*'
9223 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9224 fi
9225 archive_cmds_need_lc='no'
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 ;;
9229
9230 osf4* | osf5*) # as osf3* with the addition of -msym flag
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9238 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~
9239 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9240
9241 # Both c and cxx compiler support -rpath directly
9242 hardcode_libdir_flag_spec='-rpath $libdir'
9243 fi
9244 archive_cmds_need_lc='no'
9245 hardcode_libdir_separator=:
9246 ;;
9247
9248 solaris*)
9249 no_undefined_flag=' -z defs'
9250 if test "$GCC" = yes; then
9251 wlarc='${wl}'
9252 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9255 else
9256 case `$CC -V 2>&1` in
9257 *"Compilers 5.0"*)
9258 wlarc=''
9259 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9262 ;;
9263 *)
9264 wlarc='${wl}'
9265 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9268 ;;
9269 esac
9270 fi
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_shlibpath_var=no
9273 case $host_os in
9274 solaris2.[0-5] | solaris2.[0-5].*) ;;
9275 *)
9276 # The compiler driver will combine and reorder linker options,
9277 # but understands `-z linker_flag'. GCC discards it without `$wl',
9278 # but is careful enough not to reorder.
9279 # Supported since Solaris 2.6 (maybe 2.5.1?)
9280 if test "$GCC" = yes; then
9281 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9282 else
9283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9284 fi
9285 ;;
9286 esac
9287 link_all_deplibs=yes
9288 ;;
9289
9290 sunos4*)
9291 if test "x$host_vendor" = xsequent; then
9292 # Use $CC to link under sequent, because it throws in some extra .o
9293 # files that make .init and .fini sections work.
9294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295 else
9296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9297 fi
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_direct=yes
9300 hardcode_minus_L=yes
9301 hardcode_shlibpath_var=no
9302 ;;
9303
9304 sysv4)
9305 case $host_vendor in
9306 sni)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes # is this really true???
9309 ;;
9310 siemens)
9311 ## LD is ld it makes a PLAMLIB
9312 ## CC just makes a GrossModule.
9313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9314 reload_cmds='$CC -r -o $output$reload_objs'
9315 hardcode_direct=no
9316 ;;
9317 motorola)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9320 ;;
9321 esac
9322 runpath_var='LD_RUN_PATH'
9323 hardcode_shlibpath_var=no
9324 ;;
9325
9326 sysv4.3*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_shlibpath_var=no
9329 export_dynamic_flag_spec='-Bexport'
9330 ;;
9331
9332 sysv4*MP*)
9333 if test -d /usr/nec; then
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_shlibpath_var=no
9336 runpath_var=LD_RUN_PATH
9337 hardcode_runpath_var=yes
9338 ld_shlibs=yes
9339 fi
9340 ;;
9341
9342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9343 no_undefined_flag='${wl}-z,text'
9344 archive_cmds_need_lc=no
9345 hardcode_shlibpath_var=no
9346 runpath_var='LD_RUN_PATH'
9347
9348 if test "$GCC" = yes; then
9349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 fi
9355 ;;
9356
9357 sysv5* | sco3.2v5* | sco5v6*)
9358 # Note: We can NOT use -z defs as we might desire, because we do not
9359 # link with -lc, and that would cause any symbols used from libc to
9360 # always be unresolved, which means just about no library would
9361 # ever link correctly. If we're not using GNU ld we use -z text
9362 # though, which does catch some bad symbols but isn't as heavy-handed
9363 # as -z defs.
9364 no_undefined_flag='${wl}-z,text'
9365 allow_undefined_flag='${wl}-z,nodefs'
9366 archive_cmds_need_lc=no
9367 hardcode_shlibpath_var=no
9368 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9371 export_dynamic_flag_spec='${wl}-Bexport'
9372 runpath_var='LD_RUN_PATH'
9373
9374 if test "$GCC" = yes; then
9375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 fi
9381 ;;
9382
9383 uts4*)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_shlibpath_var=no
9387 ;;
9388
9389 *)
9390 ld_shlibs=no
9391 ;;
9392 esac
9393
9394 if test x$host_vendor = xsni; then
9395 case $host in
9396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9397 export_dynamic_flag_spec='${wl}-Blargedynsym'
9398 ;;
9399 esac
9400 fi
9401 fi
9402
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9404 $as_echo "$ld_shlibs" >&6; }
9405 test "$ld_shlibs" = no && can_build_shared=no
9406
9407 with_gnu_ld=$with_gnu_ld
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423 #
9424 # Do we need to explicitly link libc?
9425 #
9426 case "x$archive_cmds_need_lc" in
9427 x|xyes)
9428 # Assume -lc should be added
9429 archive_cmds_need_lc=yes
9430
9431 if test "$enable_shared" = yes && test "$GCC" = yes; then
9432 case $archive_cmds in
9433 *'~'*)
9434 # FIXME: we may have to deal with multi-command sequences.
9435 ;;
9436 '$CC '*)
9437 # Test whether the compiler implicitly links with -lc since on some
9438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9439 # to ld, don't add -lc before -lgcc.
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9442 $RM conftest*
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444
9445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9446 (eval $ac_compile) 2>&5
9447 ac_status=$?
9448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9449 test $ac_status = 0; } 2>conftest.err; then
9450 soname=conftest
9451 lib=conftest
9452 libobjs=conftest.$ac_objext
9453 deplibs=
9454 wl=$lt_prog_compiler_wl
9455 pic_flag=$lt_prog_compiler_pic
9456 compiler_flags=-v
9457 linker_flags=-v
9458 verstring=
9459 output_objdir=.
9460 libname=conftest
9461 lt_save_allow_undefined_flag=$allow_undefined_flag
9462 allow_undefined_flag=
9463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9464 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9465 ac_status=$?
9466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467 test $ac_status = 0; }
9468 then
9469 archive_cmds_need_lc=no
9470 else
9471 archive_cmds_need_lc=yes
9472 fi
9473 allow_undefined_flag=$lt_save_allow_undefined_flag
9474 else
9475 cat conftest.err 1>&5
9476 fi
9477 $RM conftest*
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9479 $as_echo "$archive_cmds_need_lc" >&6; }
9480 ;;
9481 esac
9482 fi
9483 ;;
9484 esac
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9643 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9644
9645 if test "$GCC" = yes; then
9646 case $host_os in
9647 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9648 *) lt_awk_arg="/^libraries:/" ;;
9649 esac
9650 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9652 # if the path contains ";" then we assume it to be the separator
9653 # otherwise default to the standard path separator (i.e. ":") - it is
9654 # assumed that no part of a normal pathname contains ";" but that should
9655 # okay in the real world where ";" in dirpaths is itself problematic.
9656 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9657 else
9658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9659 fi
9660 # Ok, now we have the path, separated by spaces, we can step through it
9661 # and add multilib dir if necessary.
9662 lt_tmp_lt_search_path_spec=
9663 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9664 for lt_sys_path in $lt_search_path_spec; do
9665 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9667 else
9668 test -d "$lt_sys_path" && \
9669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9670 fi
9671 done
9672 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9673 BEGIN {RS=" "; FS="/|\n";} {
9674 lt_foo="";
9675 lt_count=0;
9676 for (lt_i = NF; lt_i > 0; lt_i--) {
9677 if ($lt_i != "" && $lt_i != ".") {
9678 if ($lt_i == "..") {
9679 lt_count++;
9680 } else {
9681 if (lt_count == 0) {
9682 lt_foo="/" $lt_i lt_foo;
9683 } else {
9684 lt_count--;
9685 }
9686 }
9687 }
9688 }
9689 if (lt_foo != "") { lt_freq[lt_foo]++; }
9690 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9691 }'`
9692 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9693 else
9694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9695 fi
9696 library_names_spec=
9697 libname_spec='lib$name'
9698 soname_spec=
9699 shrext_cmds=".so"
9700 postinstall_cmds=
9701 postuninstall_cmds=
9702 finish_cmds=
9703 finish_eval=
9704 shlibpath_var=
9705 shlibpath_overrides_runpath=unknown
9706 version_type=none
9707 dynamic_linker="$host_os ld.so"
9708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9709 need_lib_prefix=unknown
9710 hardcode_into_libs=no
9711
9712 # when you set need_version to no, make sure it does not cause -set_version
9713 # flags to be left without arguments
9714 need_version=unknown
9715
9716 case $host_os in
9717 aix3*)
9718 version_type=linux
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9720 shlibpath_var=LIBPATH
9721
9722 # AIX 3 has no versioning support, so we append a major version to the name.
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 ;;
9725
9726 aix[4-9]*)
9727 version_type=linux
9728 need_lib_prefix=no
9729 need_version=no
9730 hardcode_into_libs=yes
9731 if test "$host_cpu" = ia64; then
9732 # AIX 5 supports IA64
9733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 else
9736 # With GCC up to 2.95.x, collect2 would create an import file
9737 # for dependence libraries. The import file would start with
9738 # the line `#! .'. This would cause the generated library to
9739 # depend on `.', always an invalid library. This was fixed in
9740 # development snapshots of GCC prior to 3.0.
9741 case $host_os in
9742 aix4 | aix4.[01] | aix4.[01].*)
9743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9744 echo ' yes '
9745 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9746 :
9747 else
9748 can_build_shared=no
9749 fi
9750 ;;
9751 esac
9752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9753 # soname into executable. Probably we can add versioning support to
9754 # collect2, so additional links can be useful in future.
9755 if test "$aix_use_runtimelinking" = yes; then
9756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9757 # instead of lib<name>.a to let people know that these are not
9758 # typical AIX shared libraries.
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 else
9761 # We preserve .a as extension for shared libraries through AIX4.2
9762 # and later when we are not doing run time linking.
9763 library_names_spec='${libname}${release}.a $libname.a'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 fi
9766 shlibpath_var=LIBPATH
9767 fi
9768 ;;
9769
9770 amigaos*)
9771 case $host_cpu in
9772 powerpc)
9773 # Since July 2007 AmigaOS4 officially supports .so libraries.
9774 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 ;;
9777 m68k)
9778 library_names_spec='$libname.ixlibrary $libname.a'
9779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9780 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9781 ;;
9782 esac
9783 ;;
9784
9785 beos*)
9786 library_names_spec='${libname}${shared_ext}'
9787 dynamic_linker="$host_os ld.so"
9788 shlibpath_var=LIBRARY_PATH
9789 ;;
9790
9791 bsdi[45]*)
9792 version_type=linux
9793 need_version=no
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9799 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9800 # the default ld.so.conf also contains /usr/contrib/lib and
9801 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9802 # libtool to hard-code these into programs
9803 ;;
9804
9805 cygwin* | mingw* | pw32* | cegcc*)
9806 version_type=windows
9807 shrext_cmds=".dll"
9808 need_version=no
9809 need_lib_prefix=no
9810
9811 case $GCC,$host_os in
9812 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9813 library_names_spec='$libname.dll.a'
9814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9815 postinstall_cmds='base_file=`basename \${file}`~
9816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9817 dldir=$destdir/`dirname \$dlpath`~
9818 test -d \$dldir || mkdir -p \$dldir~
9819 $install_prog $dir/$dlname \$dldir/$dlname~
9820 chmod a+x \$dldir/$dlname~
9821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9823 fi'
9824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9825 dlpath=$dir/\$dldll~
9826 $RM \$dlpath'
9827 shlibpath_overrides_runpath=yes
9828
9829 case $host_os in
9830 cygwin*)
9831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9834 ;;
9835 mingw* | cegcc*)
9836 # MinGW DLLs use traditional 'lib' prefix
9837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9838 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9839 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9840 # It is most probably a Windows format PATH printed by
9841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9842 # path with ; separators, and with drive letters. We can handle the
9843 # drive letters (cygwin fileutils understands them), so leave them,
9844 # especially as we might pass files found there to a mingw objdump,
9845 # which wouldn't understand a cygwinified path. Ahh.
9846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9847 else
9848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9849 fi
9850 ;;
9851 pw32*)
9852 # pw32 DLLs use 'pw' prefix rather than 'lib'
9853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9854 ;;
9855 esac
9856 ;;
9857
9858 *)
9859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9860 ;;
9861 esac
9862 dynamic_linker='Win32 ld.exe'
9863 # FIXME: first we should search . and the directory the executable is in
9864 shlibpath_var=PATH
9865 ;;
9866
9867 darwin* | rhapsody*)
9868 dynamic_linker="$host_os dyld"
9869 version_type=darwin
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9873 soname_spec='${libname}${release}${major}$shared_ext'
9874 shlibpath_overrides_runpath=yes
9875 shlibpath_var=DYLD_LIBRARY_PATH
9876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9877
9878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9880 ;;
9881
9882 dgux*)
9883 version_type=linux
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 ;;
9890
9891 freebsd1*)
9892 dynamic_linker=no
9893 ;;
9894
9895 freebsd* | dragonfly*)
9896 # DragonFly does not have aout. When/if they implement a new
9897 # versioning mechanism, adjust this.
9898 if test -x /usr/bin/objformat; then
9899 objformat=`/usr/bin/objformat`
9900 else
9901 case $host_os in
9902 freebsd[123]*) objformat=aout ;;
9903 *) objformat=elf ;;
9904 esac
9905 fi
9906 version_type=freebsd-$objformat
9907 case $version_type in
9908 freebsd-elf*)
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9910 need_version=no
9911 need_lib_prefix=no
9912 ;;
9913 freebsd-*)
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9915 need_version=yes
9916 ;;
9917 esac
9918 shlibpath_var=LD_LIBRARY_PATH
9919 case $host_os in
9920 freebsd2*)
9921 shlibpath_overrides_runpath=yes
9922 ;;
9923 freebsd3.[01]* | freebsdelf3.[01]*)
9924 shlibpath_overrides_runpath=yes
9925 hardcode_into_libs=yes
9926 ;;
9927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9931 ;;
9932 *) # from 4.6 on, and DragonFly
9933 shlibpath_overrides_runpath=yes
9934 hardcode_into_libs=yes
9935 ;;
9936 esac
9937 ;;
9938
9939 gnu*)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 hardcode_into_libs=yes
9947 ;;
9948
9949 hpux9* | hpux10* | hpux11*)
9950 # Give a soname corresponding to the major version so that dld.sl refuses to
9951 # link against other versions.
9952 version_type=sunos
9953 need_lib_prefix=no
9954 need_version=no
9955 case $host_cpu in
9956 ia64*)
9957 shrext_cmds='.so'
9958 hardcode_into_libs=yes
9959 dynamic_linker="$host_os dld.so"
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 if test "X$HPUX_IA64_MODE" = X32; then
9965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9966 else
9967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9968 fi
9969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9970 ;;
9971 hppa*64*)
9972 shrext_cmds='.sl'
9973 hardcode_into_libs=yes
9974 dynamic_linker="$host_os dld.sl"
9975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9981 ;;
9982 *)
9983 shrext_cmds='.sl'
9984 dynamic_linker="$host_os dld.sl"
9985 shlibpath_var=SHLIB_PATH
9986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 ;;
9990 esac
9991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9992 postinstall_cmds='chmod 555 $lib'
9993 ;;
9994
9995 interix[3-9]*)
9996 version_type=linux
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10005 ;;
10006
10007 irix5* | irix6* | nonstopux*)
10008 case $host_os in
10009 nonstopux*) version_type=nonstopux ;;
10010 *)
10011 if test "$lt_cv_prog_gnu_ld" = yes; then
10012 version_type=linux
10013 else
10014 version_type=irix
10015 fi ;;
10016 esac
10017 need_lib_prefix=no
10018 need_version=no
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10021 case $host_os in
10022 irix5* | nonstopux*)
10023 libsuff= shlibsuff=
10024 ;;
10025 *)
10026 case $LD in # libtool.m4 will add one of these switches to LD
10027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10028 libsuff= shlibsuff= libmagic=32-bit;;
10029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10030 libsuff=32 shlibsuff=N32 libmagic=N32;;
10031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10033 *) libsuff= shlibsuff= libmagic=never-match;;
10034 esac
10035 ;;
10036 esac
10037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10038 shlibpath_overrides_runpath=no
10039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10041 hardcode_into_libs=yes
10042 ;;
10043
10044 # No shared lib support for Linux oldld, aout, or coff.
10045 linux*oldld* | linux*aout* | linux*coff*)
10046 dynamic_linker=no
10047 ;;
10048
10049 # This must be Linux ELF.
10050 linux* | k*bsd*-gnu)
10051 version_type=linux
10052 need_lib_prefix=no
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=no
10059 # Some binutils ld are patched to set DT_RUNPATH
10060 save_LDFLAGS=$LDFLAGS
10061 save_libdir=$libdir
10062 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10063 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066
10067 int
10068 main ()
10069 {
10070
10071 ;
10072 return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10077 shlibpath_overrides_runpath=yes
10078 fi
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LDFLAGS=$save_LDFLAGS
10083 libdir=$save_libdir
10084
10085 # This implies no fast_install, which is unacceptable.
10086 # Some rework will be needed to allow for fast_install
10087 # before this can be enabled.
10088 hardcode_into_libs=yes
10089
10090 # find out which ABI we are using
10091 libsuff=
10092 case "$host_cpu" in
10093 x86_64*|s390x*|powerpc64*)
10094 echo '#line 10094 "configure"' > conftest.$ac_ext
10095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10096 (eval $ac_compile) 2>&5
10097 ac_status=$?
10098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099 test $ac_status = 0; }; then
10100 case `/usr/bin/file conftest.$ac_objext` in
10101 *64-bit*)
10102 libsuff=64
10103 ;;
10104 esac
10105 fi
10106 rm -rf conftest*
10107 ;;
10108 esac
10109
10110 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10111
10112 # Append ld.so.conf contents to the search path
10113 if test -f /etc/ld.so.conf; then
10114 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;/^$/d' | tr '\n' ' '`
10115 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10116 fi
10117
10118 # We used to test for /lib/ld.so.1 and disable shared libraries on
10119 # powerpc, because MkLinux only supported shared libraries with the
10120 # GNU dynamic linker. Since this was broken with cross compilers,
10121 # most powerpc-linux boxes support dynamic linking these days and
10122 # people can always --disable-shared, the test was removed, and we
10123 # assume the GNU/Linux dynamic linker is in use.
10124 dynamic_linker='GNU/Linux ld.so'
10125 ;;
10126
10127 netbsd*)
10128 version_type=sunos
10129 need_lib_prefix=no
10130 need_version=no
10131 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134 dynamic_linker='NetBSD (a.out) ld.so'
10135 else
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 dynamic_linker='NetBSD ld.elf_so'
10139 fi
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10143 ;;
10144
10145 newsos6)
10146 version_type=linux
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=yes
10150 ;;
10151
10152 *nto* | *qnx*)
10153 version_type=qnx
10154 need_lib_prefix=no
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=no
10160 hardcode_into_libs=yes
10161 dynamic_linker='ldqnx.so'
10162 ;;
10163
10164 openbsd*)
10165 version_type=sunos
10166 sys_lib_dlsearch_path_spec="/usr/lib"
10167 need_lib_prefix=no
10168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10169 case $host_os in
10170 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10171 *) need_version=no ;;
10172 esac
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10177 case $host_os in
10178 openbsd2.[89] | openbsd2.[89].*)
10179 shlibpath_overrides_runpath=no
10180 ;;
10181 *)
10182 shlibpath_overrides_runpath=yes
10183 ;;
10184 esac
10185 else
10186 shlibpath_overrides_runpath=yes
10187 fi
10188 ;;
10189
10190 os2*)
10191 libname_spec='$name'
10192 shrext_cmds=".dll"
10193 need_lib_prefix=no
10194 library_names_spec='$libname${shared_ext} $libname.a'
10195 dynamic_linker='OS/2 ld.exe'
10196 shlibpath_var=LIBPATH
10197 ;;
10198
10199 osf3* | osf4* | osf5*)
10200 version_type=osf
10201 need_lib_prefix=no
10202 need_version=no
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10208 ;;
10209
10210 rdos*)
10211 dynamic_linker=no
10212 ;;
10213
10214 solaris*)
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10222 hardcode_into_libs=yes
10223 # ldd complains unless libraries are executable
10224 postinstall_cmds='chmod +x $lib'
10225 ;;
10226
10227 sunos4*)
10228 version_type=sunos
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=yes
10233 if test "$with_gnu_ld" = yes; then
10234 need_lib_prefix=no
10235 fi
10236 need_version=yes
10237 ;;
10238
10239 sysv4 | sysv4.3*)
10240 version_type=linux
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 case $host_vendor in
10245 sni)
10246 shlibpath_overrides_runpath=no
10247 need_lib_prefix=no
10248 runpath_var=LD_RUN_PATH
10249 ;;
10250 siemens)
10251 need_lib_prefix=no
10252 ;;
10253 motorola)
10254 need_lib_prefix=no
10255 need_version=no
10256 shlibpath_overrides_runpath=no
10257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10258 ;;
10259 esac
10260 ;;
10261
10262 sysv4*MP*)
10263 if test -d /usr/nec ;then
10264 version_type=linux
10265 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10266 soname_spec='$libname${shared_ext}.$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 fi
10269 ;;
10270
10271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10272 version_type=freebsd-elf
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10280 if test "$with_gnu_ld" = yes; then
10281 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10282 else
10283 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10284 case $host_os in
10285 sco3.2v5*)
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10287 ;;
10288 esac
10289 fi
10290 sys_lib_dlsearch_path_spec='/usr/lib'
10291 ;;
10292
10293 tpf*)
10294 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301 hardcode_into_libs=yes
10302 ;;
10303
10304 uts4*)
10305 version_type=linux
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 ;;
10310
10311 *)
10312 dynamic_linker=no
10313 ;;
10314 esac
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10316 $as_echo "$dynamic_linker" >&6; }
10317 test "$dynamic_linker" = no && can_build_shared=no
10318
10319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10320 if test "$GCC" = yes; then
10321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10322 fi
10323
10324 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10325 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10326 fi
10327 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10328 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10329 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10418 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10419 hardcode_action=
10420 if test -n "$hardcode_libdir_flag_spec" ||
10421 test -n "$runpath_var" ||
10422 test "X$hardcode_automatic" = "Xyes" ; then
10423
10424 # We can hardcode non-existent directories.
10425 if test "$hardcode_direct" != no &&
10426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10427 # have to relink, otherwise we might link with an installed library
10428 # when we should be linking with a yet-to-be-installed one
10429 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10430 test "$hardcode_minus_L" != no; then
10431 # Linking always hardcodes the temporary library directory.
10432 hardcode_action=relink
10433 else
10434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10435 hardcode_action=immediate
10436 fi
10437 else
10438 # We cannot hardcode anything, or else we can only hardcode existing
10439 # directories.
10440 hardcode_action=unsupported
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10443 $as_echo "$hardcode_action" >&6; }
10444
10445 if test "$hardcode_action" = relink ||
10446 test "$inherit_rpath" = yes; then
10447 # Fast installation is not supported
10448 enable_fast_install=no
10449 elif test "$shlibpath_overrides_runpath" = yes ||
10450 test "$enable_shared" = no; then
10451 # Fast installation is not necessary
10452 enable_fast_install=needless
10453 fi
10454
10455
10456
10457
10458
10459
10460 if test "x$enable_dlopen" != xyes; then
10461 enable_dlopen=unknown
10462 enable_dlopen_self=unknown
10463 enable_dlopen_self_static=unknown
10464 else
10465 lt_cv_dlopen=no
10466 lt_cv_dlopen_libs=
10467
10468 case $host_os in
10469 beos*)
10470 lt_cv_dlopen="load_add_on"
10471 lt_cv_dlopen_libs=
10472 lt_cv_dlopen_self=yes
10473 ;;
10474
10475 mingw* | pw32* | cegcc*)
10476 lt_cv_dlopen="LoadLibrary"
10477 lt_cv_dlopen_libs=
10478 ;;
10479
10480 cygwin*)
10481 lt_cv_dlopen="dlopen"
10482 lt_cv_dlopen_libs=
10483 ;;
10484
10485 darwin*)
10486 # if libdl is installed we need to link against it
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 ac_check_lib_save_LIBS=$LIBS
10493 LIBS="-ldl $LIBS"
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496
10497 /* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10500 #ifdef __cplusplus
10501 extern "C"
10502 #endif
10503 char dlopen ();
10504 int
10505 main ()
10506 {
10507 return dlopen ();
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_link "$LINENO"; then :
10513 ac_cv_lib_dl_dlopen=yes
10514 else
10515 ac_cv_lib_dl_dlopen=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext \
10518 conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10522 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10523 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10525 else
10526
10527 lt_cv_dlopen="dyld"
10528 lt_cv_dlopen_libs=
10529 lt_cv_dlopen_self=yes
10530
10531 fi
10532
10533 ;;
10534
10535 *)
10536 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10537 if test "x$ac_cv_func_shl_load" = x""yes; then :
10538 lt_cv_dlopen="shl_load"
10539 else
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10541 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10542 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-ldld $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char shl_load ();
10557 int
10558 main ()
10559 {
10560 return shl_load ();
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_dld_shl_load=yes
10567 else
10568 ac_cv_lib_dld_shl_load=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10575 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10576 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10577 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10578 else
10579 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10580 if test "x$ac_cv_func_dlopen" = x""yes; then :
10581 lt_cv_dlopen="dlopen"
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-ldl $LIBS"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char dlopen ();
10600 int
10601 main ()
10602 {
10603 return dlopen ();
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_dl_dlopen=yes
10610 else
10611 ac_cv_lib_dl_dlopen=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10619 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10623 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10624 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 ac_check_lib_save_LIBS=$LIBS
10628 LIBS="-lsvld $LIBS"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char dlopen ();
10639 int
10640 main ()
10641 {
10642 return dlopen ();
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 ac_cv_lib_svld_dlopen=yes
10649 else
10650 ac_cv_lib_svld_dlopen=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10657 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10658 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10662 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10663 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-ldld $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dld_link ();
10678 int
10679 main ()
10680 {
10681 return dld_link ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_dld_dld_link=yes
10688 else
10689 ac_cv_lib_dld_dld_link=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10696 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10697 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10698 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10699 fi
10700
10701
10702 fi
10703
10704
10705 fi
10706
10707
10708 fi
10709
10710
10711 fi
10712
10713
10714 fi
10715
10716 ;;
10717 esac
10718
10719 if test "x$lt_cv_dlopen" != xno; then
10720 enable_dlopen=yes
10721 else
10722 enable_dlopen=no
10723 fi
10724
10725 case $lt_cv_dlopen in
10726 dlopen)
10727 save_CPPFLAGS="$CPPFLAGS"
10728 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10729
10730 save_LDFLAGS="$LDFLAGS"
10731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10732
10733 save_LIBS="$LIBS"
10734 LIBS="$lt_cv_dlopen_libs $LIBS"
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10737 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10738 if test "${lt_cv_dlopen_self+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 if test "$cross_compiling" = yes; then :
10742 lt_cv_dlopen_self=cross
10743 else
10744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10745 lt_status=$lt_dlunknown
10746 cat > conftest.$ac_ext <<_LT_EOF
10747 #line 10747 "configure"
10748 #include "confdefs.h"
10749
10750 #if HAVE_DLFCN_H
10751 #include <dlfcn.h>
10752 #endif
10753
10754 #include <stdio.h>
10755
10756 #ifdef RTLD_GLOBAL
10757 # define LT_DLGLOBAL RTLD_GLOBAL
10758 #else
10759 # ifdef DL_GLOBAL
10760 # define LT_DLGLOBAL DL_GLOBAL
10761 # else
10762 # define LT_DLGLOBAL 0
10763 # endif
10764 #endif
10765
10766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10767 find out it does not work in some platform. */
10768 #ifndef LT_DLLAZY_OR_NOW
10769 # ifdef RTLD_LAZY
10770 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10771 # else
10772 # ifdef DL_LAZY
10773 # define LT_DLLAZY_OR_NOW DL_LAZY
10774 # else
10775 # ifdef RTLD_NOW
10776 # define LT_DLLAZY_OR_NOW RTLD_NOW
10777 # else
10778 # ifdef DL_NOW
10779 # define LT_DLLAZY_OR_NOW DL_NOW
10780 # else
10781 # define LT_DLLAZY_OR_NOW 0
10782 # endif
10783 # endif
10784 # endif
10785 # endif
10786 #endif
10787
10788 void fnord() { int i=42;}
10789 int main ()
10790 {
10791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10792 int status = $lt_dlunknown;
10793
10794 if (self)
10795 {
10796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10797 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10798 /* dlclose (self); */
10799 }
10800 else
10801 puts (dlerror ());
10802
10803 return status;
10804 }
10805 _LT_EOF
10806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10807 (eval $ac_link) 2>&5
10808 ac_status=$?
10809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10811 (./conftest; exit; ) >&5 2>/dev/null
10812 lt_status=$?
10813 case x$lt_status in
10814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10817 esac
10818 else :
10819 # compilation failed
10820 lt_cv_dlopen_self=no
10821 fi
10822 fi
10823 rm -fr conftest*
10824
10825
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10828 $as_echo "$lt_cv_dlopen_self" >&6; }
10829
10830 if test "x$lt_cv_dlopen_self" = xyes; then
10831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10833 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10834 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 if test "$cross_compiling" = yes; then :
10838 lt_cv_dlopen_self_static=cross
10839 else
10840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10841 lt_status=$lt_dlunknown
10842 cat > conftest.$ac_ext <<_LT_EOF
10843 #line 10843 "configure"
10844 #include "confdefs.h"
10845
10846 #if HAVE_DLFCN_H
10847 #include <dlfcn.h>
10848 #endif
10849
10850 #include <stdio.h>
10851
10852 #ifdef RTLD_GLOBAL
10853 # define LT_DLGLOBAL RTLD_GLOBAL
10854 #else
10855 # ifdef DL_GLOBAL
10856 # define LT_DLGLOBAL DL_GLOBAL
10857 # else
10858 # define LT_DLGLOBAL 0
10859 # endif
10860 #endif
10861
10862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10863 find out it does not work in some platform. */
10864 #ifndef LT_DLLAZY_OR_NOW
10865 # ifdef RTLD_LAZY
10866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10867 # else
10868 # ifdef DL_LAZY
10869 # define LT_DLLAZY_OR_NOW DL_LAZY
10870 # else
10871 # ifdef RTLD_NOW
10872 # define LT_DLLAZY_OR_NOW RTLD_NOW
10873 # else
10874 # ifdef DL_NOW
10875 # define LT_DLLAZY_OR_NOW DL_NOW
10876 # else
10877 # define LT_DLLAZY_OR_NOW 0
10878 # endif
10879 # endif
10880 # endif
10881 # endif
10882 #endif
10883
10884 void fnord() { int i=42;}
10885 int main ()
10886 {
10887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10888 int status = $lt_dlunknown;
10889
10890 if (self)
10891 {
10892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10893 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10894 /* dlclose (self); */
10895 }
10896 else
10897 puts (dlerror ());
10898
10899 return status;
10900 }
10901 _LT_EOF
10902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10903 (eval $ac_link) 2>&5
10904 ac_status=$?
10905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10907 (./conftest; exit; ) >&5 2>/dev/null
10908 lt_status=$?
10909 case x$lt_status in
10910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10912 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10913 esac
10914 else :
10915 # compilation failed
10916 lt_cv_dlopen_self_static=no
10917 fi
10918 fi
10919 rm -fr conftest*
10920
10921
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10924 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10925 fi
10926
10927 CPPFLAGS="$save_CPPFLAGS"
10928 LDFLAGS="$save_LDFLAGS"
10929 LIBS="$save_LIBS"
10930 ;;
10931 esac
10932
10933 case $lt_cv_dlopen_self in
10934 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10935 *) enable_dlopen_self=unknown ;;
10936 esac
10937
10938 case $lt_cv_dlopen_self_static in
10939 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10940 *) enable_dlopen_self_static=unknown ;;
10941 esac
10942 fi
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960 striplib=
10961 old_striplib=
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10963 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10964 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10965 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10966 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969 else
10970 # FIXME - insert some real tests, host_os isn't really good enough
10971 case $host_os in
10972 darwin*)
10973 if test -n "$STRIP" ; then
10974 striplib="$STRIP -x"
10975 old_striplib="$STRIP -S"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10977 $as_echo "yes" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10981 fi
10982 ;;
10983 *)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 ;;
10987 esac
10988 fi
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001 # Report which library types will actually be built
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11003 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11005 $as_echo "$can_build_shared" >&6; }
11006
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11008 $as_echo_n "checking whether to build shared libraries... " >&6; }
11009 test "$can_build_shared" = "no" && enable_shared=no
11010
11011 # On AIX, shared libraries and static libraries use the same namespace, and
11012 # are all built from PIC.
11013 case $host_os in
11014 aix3*)
11015 test "$enable_shared" = yes && enable_static=no
11016 if test -n "$RANLIB"; then
11017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11018 postinstall_cmds='$RANLIB $lib'
11019 fi
11020 ;;
11021
11022 aix[4-9]*)
11023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11024 test "$enable_shared" = yes && enable_static=no
11025 fi
11026 ;;
11027 esac
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11029 $as_echo "$enable_shared" >&6; }
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11032 $as_echo_n "checking whether to build static libraries... " >&6; }
11033 # Make sure either enable_shared or enable_static is yes.
11034 test "$enable_shared" = yes || enable_static=yes
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11036 $as_echo "$enable_static" >&6; }
11037
11038
11039
11040
11041 fi
11042 ac_ext=c
11043 ac_cpp='$CPP $CPPFLAGS'
11044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11047
11048 CC="$lt_save_CC"
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 ac_config_commands="$ac_config_commands libtool"
11063
11064
11065
11066
11067 # Only expand once:
11068
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11071 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11072 if test "${libltdl_cv_shlibext+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075
11076 module=yes
11077 eval libltdl_cv_shlibext=$shrext_cmds
11078
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11081 $as_echo "$libltdl_cv_shlibext" >&6; }
11082 if test -n "$libltdl_cv_shlibext"; then
11083
11084 cat >>confdefs.h <<_ACEOF
11085 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11086 _ACEOF
11087
11088 fi
11089
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11091 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11092 if test "${lt_cv_module_path_var+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 lt_cv_module_path_var="$shlibpath_var"
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11098 $as_echo "$lt_cv_module_path_var" >&6; }
11099 if test -n "$lt_cv_module_path_var"; then
11100
11101 cat >>confdefs.h <<_ACEOF
11102 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11103 _ACEOF
11104
11105 fi
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11108 $as_echo_n "checking for the default library search path... " >&6; }
11109 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11115 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11116 if test -n "$lt_cv_sys_dlsearch_path"; then
11117 sys_dlsearch_path=
11118 for dir in $lt_cv_sys_dlsearch_path; do
11119 if test -z "$sys_dlsearch_path"; then
11120 sys_dlsearch_path="$dir"
11121 else
11122 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11123 fi
11124 done
11125
11126 cat >>confdefs.h <<_ACEOF
11127 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11128 _ACEOF
11129
11130 fi
11131
11132
11133 LT_DLLOADERS=
11134
11135
11136 ac_ext=c
11137 ac_cpp='$CPP $CPPFLAGS'
11138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141
11142
11143 LIBADD_DLOPEN=
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11145 $as_echo_n "checking for library containing dlopen... " >&6; }
11146 if test "${ac_cv_search_dlopen+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_func_search_save_LIBS=$LIBS
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char dlopen ();
11160 int
11161 main ()
11162 {
11163 return dlopen ();
11164 ;
11165 return 0;
11166 }
11167 _ACEOF
11168 for ac_lib in '' dl; do
11169 if test -z "$ac_lib"; then
11170 ac_res="none required"
11171 else
11172 ac_res=-l$ac_lib
11173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11174 fi
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_search_dlopen=$ac_res
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext
11180 if test "${ac_cv_search_dlopen+set}" = set; then :
11181 break
11182 fi
11183 done
11184 if test "${ac_cv_search_dlopen+set}" = set; then :
11185
11186 else
11187 ac_cv_search_dlopen=no
11188 fi
11189 rm conftest.$ac_ext
11190 LIBS=$ac_func_search_save_LIBS
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11193 $as_echo "$ac_cv_search_dlopen" >&6; }
11194 ac_res=$ac_cv_search_dlopen
11195 if test "$ac_res" != no; then :
11196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11197
11198 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11199
11200 if test "$ac_cv_search_dlopen" != "none required" ; then
11201 LIBADD_DLOPEN="-ldl"
11202 fi
11203 libltdl_cv_lib_dl_dlopen="yes"
11204 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11205 else
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11208 #if HAVE_DLFCN_H
11209 # include <dlfcn.h>
11210 #endif
11211
11212 int
11213 main ()
11214 {
11215 dlopen(0, 0);
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221
11222 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11223
11224 libltdl_cv_func_dlopen="yes"
11225 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11228 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11229 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-lsvld $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char dlopen ();
11244 int
11245 main ()
11246 {
11247 return dlopen ();
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_svld_dlopen=yes
11254 else
11255 ac_cv_lib_svld_dlopen=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11262 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11263 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11264
11265 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11266
11267 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11269 fi
11270
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 fi
11275
11276 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11277 then
11278 lt_save_LIBS="$LIBS"
11279 LIBS="$LIBS $LIBADD_DLOPEN"
11280 for ac_func in dlerror
11281 do :
11282 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11283 if test "x$ac_cv_func_dlerror" = x""yes; then :
11284 cat >>confdefs.h <<_ACEOF
11285 #define HAVE_DLERROR 1
11286 _ACEOF
11287
11288 fi
11289 done
11290
11291 LIBS="$lt_save_LIBS"
11292 fi
11293
11294
11295 LIBADD_SHL_LOAD=
11296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11297 if test "x$ac_cv_func_shl_load" = x""yes; then :
11298
11299 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11300
11301 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11304 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11305 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-ldld $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char shl_load ();
11320 int
11321 main ()
11322 {
11323 return shl_load ();
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_dld_shl_load=yes
11330 else
11331 ac_cv_lib_dld_shl_load=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11338 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11339 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11340
11341 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11342
11343 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11344 LIBADD_SHL_LOAD="-ldld"
11345 fi
11346
11347 fi
11348
11349
11350
11351 case $host_os in
11352 darwin[1567].*)
11353 # We only want this for pre-Mac OS X 10.4.
11354 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11355 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11356
11357 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11358
11359 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11360 fi
11361
11362 ;;
11363 beos*)
11364 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11365 ;;
11366 cygwin* | mingw* | os2* | pw32*)
11367 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11368 "
11369 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11370 ac_have_decl=1
11371 else
11372 ac_have_decl=0
11373 fi
11374
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11377 _ACEOF
11378
11379 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11380 ;;
11381 esac
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11384 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11385 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldld $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dld_link ();
11400 int
11401 main ()
11402 {
11403 return dld_link ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dld_dld_link=yes
11410 else
11411 ac_cv_lib_dld_dld_link=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11418 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11419 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11420
11421 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11422
11423 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11424 fi
11425
11426
11427
11428
11429 LT_DLPREOPEN=
11430 if test -n "$LT_DLLOADERS"
11431 then
11432 for lt_loader in $LT_DLLOADERS; do
11433 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11434 done
11435
11436 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11437
11438 fi
11439
11440
11441 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11442
11443
11444 ac_ext=c
11445 ac_cpp='$CPP $CPPFLAGS'
11446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11449
11450
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11452 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11453 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 lt_cv_sys_symbol_underscore=no
11457 cat > conftest.$ac_ext <<_LT_EOF
11458 void nm_test_func(){}
11459 int main(){nm_test_func;return 0;}
11460 _LT_EOF
11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11462 (eval $ac_compile) 2>&5
11463 ac_status=$?
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; }; then
11466 # Now try to grab the symbols.
11467 ac_nlist=conftest.nm
11468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11470 ac_status=$?
11471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11472 test $ac_status = 0; } && test -s "$ac_nlist"; then
11473 # See whether the symbols have a leading underscore.
11474 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11475 lt_cv_sys_symbol_underscore=yes
11476 else
11477 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11478 :
11479 else
11480 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11481 fi
11482 fi
11483 else
11484 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11485 fi
11486 else
11487 echo "configure: failed program was:" >&5
11488 cat conftest.c >&5
11489 fi
11490 rm -rf conftest*
11491
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11494 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11495 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11496
11497
11498 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11499 if test x"$libltdl_cv_func_dlopen" = xyes ||
11500 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11502 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11503 if test "${libltdl_cv_need_uscore+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 libltdl_cv_need_uscore=unknown
11507 save_LIBS="$LIBS"
11508 LIBS="$LIBS $LIBADD_DLOPEN"
11509 if test "$cross_compiling" = yes; then :
11510 libltdl_cv_need_uscore=cross
11511 else
11512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11513 lt_status=$lt_dlunknown
11514 cat > conftest.$ac_ext <<_LT_EOF
11515 #line 11515 "configure"
11516 #include "confdefs.h"
11517
11518 #if HAVE_DLFCN_H
11519 #include <dlfcn.h>
11520 #endif
11521
11522 #include <stdio.h>
11523
11524 #ifdef RTLD_GLOBAL
11525 # define LT_DLGLOBAL RTLD_GLOBAL
11526 #else
11527 # ifdef DL_GLOBAL
11528 # define LT_DLGLOBAL DL_GLOBAL
11529 # else
11530 # define LT_DLGLOBAL 0
11531 # endif
11532 #endif
11533
11534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11535 find out it does not work in some platform. */
11536 #ifndef LT_DLLAZY_OR_NOW
11537 # ifdef RTLD_LAZY
11538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11539 # else
11540 # ifdef DL_LAZY
11541 # define LT_DLLAZY_OR_NOW DL_LAZY
11542 # else
11543 # ifdef RTLD_NOW
11544 # define LT_DLLAZY_OR_NOW RTLD_NOW
11545 # else
11546 # ifdef DL_NOW
11547 # define LT_DLLAZY_OR_NOW DL_NOW
11548 # else
11549 # define LT_DLLAZY_OR_NOW 0
11550 # endif
11551 # endif
11552 # endif
11553 # endif
11554 #endif
11555
11556 void fnord() { int i=42;}
11557 int main ()
11558 {
11559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11560 int status = $lt_dlunknown;
11561
11562 if (self)
11563 {
11564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11566 /* dlclose (self); */
11567 }
11568 else
11569 puts (dlerror ());
11570
11571 return status;
11572 }
11573 _LT_EOF
11574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11575 (eval $ac_link) 2>&5
11576 ac_status=$?
11577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11578 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11579 (./conftest; exit; ) >&5 2>/dev/null
11580 lt_status=$?
11581 case x$lt_status in
11582 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11583 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11584 x$lt_dlunknown|x*) ;;
11585 esac
11586 else :
11587 # compilation failed
11588
11589 fi
11590 fi
11591 rm -fr conftest*
11592
11593 LIBS="$save_LIBS"
11594
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11597 $as_echo "$libltdl_cv_need_uscore" >&6; }
11598 fi
11599 fi
11600
11601 if test x"$libltdl_cv_need_uscore" = xyes; then
11602
11603 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11604
11605 fi
11606
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11608 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11609 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 # PORTME does your system automatically load deplibs for dlopen?
11613 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11614 # For now, we just catch OSes we know something about -- in the
11615 # future, we'll try test this programmatically.
11616 lt_cv_sys_dlopen_deplibs=unknown
11617 case $host_os in
11618 aix3*|aix4.1.*|aix4.2.*)
11619 # Unknown whether this is true for these versions of AIX, but
11620 # we want this `case' here to explicitly catch those versions.
11621 lt_cv_sys_dlopen_deplibs=unknown
11622 ;;
11623 aix[4-9]*)
11624 lt_cv_sys_dlopen_deplibs=yes
11625 ;;
11626 amigaos*)
11627 case $host_cpu in
11628 powerpc)
11629 lt_cv_sys_dlopen_deplibs=no
11630 ;;
11631 esac
11632 ;;
11633 darwin*)
11634 # Assuming the user has installed a libdl from somewhere, this is true
11635 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11636 lt_cv_sys_dlopen_deplibs=yes
11637 ;;
11638 freebsd* | dragonfly*)
11639 lt_cv_sys_dlopen_deplibs=yes
11640 ;;
11641 gnu* | linux* | k*bsd*-gnu)
11642 # GNU and its variants, using gnu ld.so (Glibc)
11643 lt_cv_sys_dlopen_deplibs=yes
11644 ;;
11645 hpux10*|hpux11*)
11646 lt_cv_sys_dlopen_deplibs=yes
11647 ;;
11648 interix*)
11649 lt_cv_sys_dlopen_deplibs=yes
11650 ;;
11651 irix[12345]*|irix6.[01]*)
11652 # Catch all versions of IRIX before 6.2, and indicate that we don't
11653 # know how it worked for any of those versions.
11654 lt_cv_sys_dlopen_deplibs=unknown
11655 ;;
11656 irix*)
11657 # The case above catches anything before 6.2, and it's known that
11658 # at 6.2 and later dlopen does load deplibs.
11659 lt_cv_sys_dlopen_deplibs=yes
11660 ;;
11661 netbsd*)
11662 lt_cv_sys_dlopen_deplibs=yes
11663 ;;
11664 openbsd*)
11665 lt_cv_sys_dlopen_deplibs=yes
11666 ;;
11667 osf[1234]*)
11668 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11669 # it did *not* use an RPATH in a shared library to find objects the
11670 # library depends on, so we explicitly say `no'.
11671 lt_cv_sys_dlopen_deplibs=no
11672 ;;
11673 osf5.0|osf5.0a|osf5.1)
11674 # dlopen *does* load deplibs and with the right loader patch applied
11675 # it even uses RPATH in a shared library to search for shared objects
11676 # that the library depends on, but there's no easy way to know if that
11677 # patch is installed. Since this is the case, all we can really
11678 # say is unknown -- it depends on the patch being installed. If
11679 # it is, this changes to `yes'. Without it, it would be `no'.
11680 lt_cv_sys_dlopen_deplibs=unknown
11681 ;;
11682 osf*)
11683 # the two cases above should catch all versions of osf <= 5.1. Read
11684 # the comments above for what we know about them.
11685 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11686 # is used to find them so we can finally say `yes'.
11687 lt_cv_sys_dlopen_deplibs=yes
11688 ;;
11689 qnx*)
11690 lt_cv_sys_dlopen_deplibs=yes
11691 ;;
11692 solaris*)
11693 lt_cv_sys_dlopen_deplibs=yes
11694 ;;
11695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11696 libltdl_cv_sys_dlopen_deplibs=yes
11697 ;;
11698 esac
11699
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11702 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11703 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11704
11705 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11706
11707 fi
11708
11709 :
11710
11711 for ac_header in argz.h
11712 do :
11713 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11714 "
11715 if test "x$ac_cv_header_argz_h" = x""yes; then :
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_ARGZ_H 1
11718 _ACEOF
11719
11720 fi
11721
11722 done
11723
11724
11725 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11726 # include <argz.h>
11727 #endif
11728 "
11729 if test "x$ac_cv_type_error_t" = x""yes; then :
11730
11731 cat >>confdefs.h <<_ACEOF
11732 #define HAVE_ERROR_T 1
11733 _ACEOF
11734
11735
11736 else
11737
11738 $as_echo "#define error_t int" >>confdefs.h
11739
11740
11741 $as_echo "#define __error_t_defined 1" >>confdefs.h
11742
11743 fi
11744
11745
11746 ARGZ_H=
11747 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11748 argz_next argz_stringify
11749 do :
11750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11752 eval as_val=\$$as_ac_var
11753 if test "x$as_val" = x""yes; then :
11754 cat >>confdefs.h <<_ACEOF
11755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11757
11758 else
11759 ARGZ_H=argz.h;
11760
11761 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11762
11763 fi
11764 done
11765
11766
11767 if test -z "$ARGZ_H"; then :
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11769 $as_echo_n "checking if argz actually works... " >&6; }
11770 if test "${lt_cv_sys_argz_works+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $host_os in #(
11774 *cygwin*)
11775 lt_cv_sys_argz_works=no
11776 if test "$cross_compiling" != no; then
11777 lt_cv_sys_argz_works="guessing no"
11778 else
11779 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11780 save_IFS=$IFS
11781 IFS=-.
11782 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11783 IFS=$save_IFS
11784 lt_os_major=${2-0}
11785 lt_os_minor=${3-0}
11786 lt_os_micro=${4-0}
11787 if test "$lt_os_major" -gt 1 \
11788 || { test "$lt_os_major" -eq 1 \
11789 && { test "$lt_os_minor" -gt 5 \
11790 || { test "$lt_os_minor" -eq 5 \
11791 && test "$lt_os_micro" -gt 24; }; }; }; then
11792 lt_cv_sys_argz_works=yes
11793 fi
11794 fi
11795 ;; #(
11796 *) lt_cv_sys_argz_works=yes ;;
11797 esac
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11800 $as_echo "$lt_cv_sys_argz_works" >&6; }
11801 if test $lt_cv_sys_argz_works = yes; then :
11802
11803 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11804
11805 else
11806 ARGZ_H=argz.h
11807
11808
11809 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11810
11811 fi
11812 fi
11813
11814
11815
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11817 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11818 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11822 libltdl_cv_preloaded_symbols=yes
11823 else
11824 libltdl_cv_preloaded_symbols=no
11825 fi
11826
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11829 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11830 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11831
11832 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11833
11834 fi
11835
11836
11837
11838 # Set options
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851 # Check whether --with-included_ltdl was given.
11852 if test "${with_included_ltdl+set}" = set; then :
11853 withval=$with_included_ltdl;
11854 fi
11855
11856
11857 if test "x$with_included_ltdl" != xyes; then
11858 # We are not being forced to use the included libltdl sources, so
11859 # decide whether there is a useful installed version we can use.
11860 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11861
11862 "
11863 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11864 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11865 #include <ltdl.h>
11866 "
11867 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11869 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11870 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lltdl $LIBS"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char lt_dladvise_preload ();
11885 int
11886 main ()
11887 {
11888 return lt_dladvise_preload ();
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11895 else
11896 ac_cv_lib_ltdl_lt_dladvise_preload=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11903 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11904 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11905 with_included_ltdl=no
11906 else
11907 with_included_ltdl=yes
11908 fi
11909
11910 else
11911 with_included_ltdl=yes
11912 fi
11913
11914 else
11915 with_included_ltdl=yes
11916 fi
11917
11918
11919 fi
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929 # Check whether --with-ltdl_include was given.
11930 if test "${with_ltdl_include+set}" = set; then :
11931 withval=$with_ltdl_include;
11932 fi
11933
11934
11935 if test -n "$with_ltdl_include"; then
11936 if test -f "$with_ltdl_include/ltdl.h"; then :
11937 else
11938 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11939 fi
11940 else
11941 with_ltdl_include=no
11942 fi
11943
11944
11945 # Check whether --with-ltdl_lib was given.
11946 if test "${with_ltdl_lib+set}" = set; then :
11947 withval=$with_ltdl_lib;
11948 fi
11949
11950
11951 if test -n "$with_ltdl_lib"; then
11952 if test -f "$with_ltdl_lib/libltdl.la"; then :
11953 else
11954 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11955 fi
11956 else
11957 with_ltdl_lib=no
11958 fi
11959
11960 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11961 ,yes,no,no,)
11962 case $enable_ltdl_convenience in
11963 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11964 "") enable_ltdl_convenience=yes
11965 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11966 esac
11967 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11968 LTDLDEPS=$LIBLTDL
11969 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11970
11971
11972
11973
11974
11975 # For backwards non-gettext consistent compatibility...
11976 INCLTDL="$LTDLINCL"
11977
11978
11979 ;;
11980 ,no,no,no,)
11981 # If the included ltdl is not to be used, then use the
11982 # preinstalled libltdl we found.
11983
11984 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11985
11986 LIBLTDL=-lltdl
11987 LTDLDEPS=
11988 LTDLINCL=
11989 ;;
11990 ,no*,no,*)
11991 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11992 ;;
11993 *) with_included_ltdl=no
11994 LIBLTDL="-L$with_ltdl_lib -lltdl"
11995 LTDLDEPS=
11996 LTDLINCL="-I$with_ltdl_include"
11997 ;;
11998 esac
11999 INCLTDL="$LTDLINCL"
12000
12001 # Report our decision...
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12003 $as_echo_n "checking where to find libltdl headers... " >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12005 $as_echo "$LTDLINCL" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12007 $as_echo_n "checking where to find libltdl library... " >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12009 $as_echo "$LIBLTDL" >&6; }
12010
12011
12012
12013 # Check whether --enable-ltdl-install was given.
12014 if test "${enable_ltdl_install+set}" = set; then :
12015 enableval=$enable_ltdl_install;
12016 fi
12017
12018
12019 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12020 *yes*) ;;
12021 *) enable_ltdl_convenience=yes ;;
12022 esac
12023
12024 if test x"${enable_ltdl_install-no}" != xno; then
12025 INSTALL_LTDL_TRUE=
12026 INSTALL_LTDL_FALSE='#'
12027 else
12028 INSTALL_LTDL_TRUE='#'
12029 INSTALL_LTDL_FALSE=
12030 fi
12031
12032 if test x"${enable_ltdl_convenience-no}" != xno; then
12033 CONVENIENCE_LTDL_TRUE=
12034 CONVENIENCE_LTDL_FALSE='#'
12035 else
12036 CONVENIENCE_LTDL_TRUE='#'
12037 CONVENIENCE_LTDL_FALSE=
12038 fi
12039
12040
12041
12042 subdirs="$subdirs libltdl"
12043
12044
12045
12046
12047
12048 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12049 # the user used. This is so that ltdl.h can pick up the parent projects
12050 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12051 # definitions required by ltdl.c.
12052 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12053
12054
12055
12056 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12057 do :
12058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12060 "
12061 eval as_val=\$$as_ac_Header
12062 if test "x$as_val" = x""yes; then :
12063 cat >>confdefs.h <<_ACEOF
12064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 fi
12068
12069 done
12070
12071
12072 for ac_func in closedir opendir readdir
12073 do :
12074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12076 eval as_val=\$$as_ac_var
12077 if test "x$as_val" = x""yes; then :
12078 cat >>confdefs.h <<_ACEOF
12079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 _ACEOF
12081
12082 else
12083
12084
12085 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12086
12087 fi
12088 done
12089
12090 for ac_func in strlcat strlcpy
12091 do :
12092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12094 eval as_val=\$$as_ac_var
12095 if test "x$as_val" = x""yes; then :
12096 cat >>confdefs.h <<_ACEOF
12097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12098 _ACEOF
12099
12100 else
12101
12102
12103 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12104
12105 fi
12106 done
12107
12108
12109
12110 cat >>confdefs.h <<_ACEOF
12111 #define LT_LIBEXT "$libext"
12112 _ACEOF
12113
12114
12115 name=ltdl
12116 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12117
12118
12119
12120
12121
12122
12123
12124
12125 # Only expand once:
12126
12127
12128
12129 # Checks for libraries.
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12132 $as_echo_n "checking for library containing socket... " >&6; }
12133 if test "${ac_cv_search_socket+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 ac_func_search_save_LIBS=$LIBS
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char socket ();
12147 int
12148 main ()
12149 {
12150 return socket ();
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 for ac_lib in '' socket; do
12156 if test -z "$ac_lib"; then
12157 ac_res="none required"
12158 else
12159 ac_res=-l$ac_lib
12160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12161 fi
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 ac_cv_search_socket=$ac_res
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext
12167 if test "${ac_cv_search_socket+set}" = set; then :
12168 break
12169 fi
12170 done
12171 if test "${ac_cv_search_socket+set}" = set; then :
12172
12173 else
12174 ac_cv_search_socket=no
12175 fi
12176 rm conftest.$ac_ext
12177 LIBS=$ac_func_search_save_LIBS
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12180 $as_echo "$ac_cv_search_socket" >&6; }
12181 ac_res=$ac_cv_search_socket
12182 if test "$ac_res" != no; then :
12183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12184
12185 else
12186 as_fn_error "socket library not found" "$LINENO" 5
12187 fi
12188
12189 for ac_func in inet_aton inet_ntop inet_pton
12190 do :
12191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12193 eval as_val=\$$as_ac_var
12194 if test "x$as_val" = x""yes; then :
12195 cat >>confdefs.h <<_ACEOF
12196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 _ACEOF
12198
12199 fi
12200 done
12201
12202 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12203 #include <sys/socket.h>
12204 #include <netdb.h>
12205
12206 "
12207 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12208
12209 cat >>confdefs.h <<_ACEOF
12210 #define HAVE_STRUCT_SOCKADDR_IN 1
12211 _ACEOF
12212
12213
12214 fi
12215 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12216 #include <sys/socket.h>
12217 #include <netdb.h>
12218
12219 "
12220 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12221
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12224 _ACEOF
12225
12226
12227 fi
12228 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12229 #include <sys/socket.h>
12230 #include <netdb.h>
12231
12232 "
12233 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12234
12235 cat >>confdefs.h <<_ACEOF
12236 #define HAVE_STRUCT_ADDRINFO 1
12237 _ACEOF
12238
12239
12240 fi
12241
12242 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12243 <sys/socket.h>
12244 "
12245 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12246
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12249 _ACEOF
12250
12251
12252 fi
12253
12254
12255
12256 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12257 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12258
12259 cat >>confdefs.h <<_ACEOF
12260 #define HAVE_STRUCT_SOCKADDR_IN6 1
12261 _ACEOF
12262
12263
12264 else
12265
12266 $as_echo "#define IPV6 1" >>confdefs.h
12267
12268 fi
12269
12270
12271
12272 # Checks for typedefs, structures, and compiler characteristics.
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12274 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12275 if test "${ac_cv_c_bigendian+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_cv_c_bigendian=unknown
12279 # See if we're dealing with a universal compiler.
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282 #ifndef __APPLE_CC__
12283 not a universal capable compiler
12284 #endif
12285 typedef int dummy;
12286
12287 _ACEOF
12288 if ac_fn_c_try_compile "$LINENO"; then :
12289
12290 # Check for potential -arch flags. It is not universal unless
12291 # there are at least two -arch flags with different values.
12292 ac_arch=
12293 ac_prev=
12294 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12295 if test -n "$ac_prev"; then
12296 case $ac_word in
12297 i?86 | x86_64 | ppc | ppc64)
12298 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12299 ac_arch=$ac_word
12300 else
12301 ac_cv_c_bigendian=universal
12302 break
12303 fi
12304 ;;
12305 esac
12306 ac_prev=
12307 elif test "x$ac_word" = "x-arch"; then
12308 ac_prev=arch
12309 fi
12310 done
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 if test $ac_cv_c_bigendian = unknown; then
12314 # See if sys/param.h defines the BYTE_ORDER macro.
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 #include <sys/param.h>
12319
12320 int
12321 main ()
12322 {
12323 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12324 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12325 && LITTLE_ENDIAN)
12326 bogus endian macros
12327 #endif
12328
12329 ;
12330 return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_compile "$LINENO"; then :
12334 # It does; now see whether it defined to BIG_ENDIAN or not.
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <sys/types.h>
12338 #include <sys/param.h>
12339
12340 int
12341 main ()
12342 {
12343 #if BYTE_ORDER != BIG_ENDIAN
12344 not big endian
12345 #endif
12346
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 if ac_fn_c_try_compile "$LINENO"; then :
12352 ac_cv_c_bigendian=yes
12353 else
12354 ac_cv_c_bigendian=no
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 if test $ac_cv_c_bigendian = unknown; then
12361 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364 #include <limits.h>
12365
12366 int
12367 main ()
12368 {
12369 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12370 bogus endian macros
12371 #endif
12372
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_compile "$LINENO"; then :
12378 # It does; now see whether it defined to _BIG_ENDIAN or not.
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381 #include <limits.h>
12382
12383 int
12384 main ()
12385 {
12386 #ifndef _BIG_ENDIAN
12387 not big endian
12388 #endif
12389
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 if ac_fn_c_try_compile "$LINENO"; then :
12395 ac_cv_c_bigendian=yes
12396 else
12397 ac_cv_c_bigendian=no
12398 fi
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 fi
12403 if test $ac_cv_c_bigendian = unknown; then
12404 # Compile a test program.
12405 if test "$cross_compiling" = yes; then :
12406 # Try to guess by grepping values from an object file.
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 short int ascii_mm[] =
12410 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12411 short int ascii_ii[] =
12412 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12413 int use_ascii (int i) {
12414 return ascii_mm[i] + ascii_ii[i];
12415 }
12416 short int ebcdic_ii[] =
12417 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12418 short int ebcdic_mm[] =
12419 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12420 int use_ebcdic (int i) {
12421 return ebcdic_mm[i] + ebcdic_ii[i];
12422 }
12423 extern int foo;
12424
12425 int
12426 main ()
12427 {
12428 return use_ascii (foo) == use_ebcdic (foo);
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_compile "$LINENO"; then :
12434 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12435 ac_cv_c_bigendian=yes
12436 fi
12437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12438 if test "$ac_cv_c_bigendian" = unknown; then
12439 ac_cv_c_bigendian=no
12440 else
12441 # finding both strings is unlikely to happen, but who knows?
12442 ac_cv_c_bigendian=unknown
12443 fi
12444 fi
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 else
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450 $ac_includes_default
12451 int
12452 main ()
12453 {
12454
12455 /* Are we little or big endian? From Harbison&Steele. */
12456 union
12457 {
12458 long int l;
12459 char c[sizeof (long int)];
12460 } u;
12461 u.l = 1;
12462 return u.c[sizeof (long int) - 1] == 1;
12463
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_run "$LINENO"; then :
12469 ac_cv_c_bigendian=no
12470 else
12471 ac_cv_c_bigendian=yes
12472 fi
12473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12474 conftest.$ac_objext conftest.beam conftest.$ac_ext
12475 fi
12476
12477 fi
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12480 $as_echo "$ac_cv_c_bigendian" >&6; }
12481 case $ac_cv_c_bigendian in #(
12482 yes)
12483 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12484 ;; #(
12485 no)
12486 ;; #(
12487 universal)
12488
12489 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12490
12491 ;; #(
12492 *)
12493 as_fn_error "unknown endianness
12494 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12495 esac
12496
12497
12498 # Checks for library functions.
12499
12500
12501
12502 for ac_func in $ac_func_list
12503 do :
12504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12506 eval as_val=\$$as_ac_var
12507 if test "x$as_val" = x""yes; then :
12508 cat >>confdefs.h <<_ACEOF
12509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12510 _ACEOF
12511
12512 fi
12513 done
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527 # Checks for header files.
12528
12529
12530
12531 for ac_header in $ac_header_list
12532 do :
12533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12535 "
12536 eval as_val=\$$as_ac_Header
12537 if test "x$as_val" = x""yes; then :
12538 cat >>confdefs.h <<_ACEOF
12539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12541
12542 fi
12543
12544 done
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 # check for /dev/null so we can use it to hold evil fd's
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12574 $as_echo_n "checking for /dev/null... " >&6; }
12575 if test -c /dev/null; then :
12576
12577
12578 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12579
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581 $as_echo "yes" >&6; }
12582 else
12583
12584
12585 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12586
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12588 $as_echo "no - using devnull.log" >&6; }
12589 fi
12590
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12593 $as_echo_n "checking for library containing crypt... " >&6; }
12594 if test "${ac_cv_search_crypt+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 ac_func_search_save_LIBS=$LIBS
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char crypt ();
12608 int
12609 main ()
12610 {
12611 return crypt ();
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 for ac_lib in '' crypt; do
12617 if test -z "$ac_lib"; then
12618 ac_res="none required"
12619 else
12620 ac_res=-l$ac_lib
12621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12622 fi
12623 if ac_fn_c_try_link "$LINENO"; then :
12624 ac_cv_search_crypt=$ac_res
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext
12628 if test "${ac_cv_search_crypt+set}" = set; then :
12629 break
12630 fi
12631 done
12632 if test "${ac_cv_search_crypt+set}" = set; then :
12633
12634 else
12635 ac_cv_search_crypt=no
12636 fi
12637 rm conftest.$ac_ext
12638 LIBS=$ac_func_search_save_LIBS
12639 fi
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12641 $as_echo "$ac_cv_search_crypt" >&6; }
12642 ac_res=$ac_cv_search_crypt
12643 if test "$ac_res" != no; then :
12644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12645
12646 fi
12647
12648
12649
12650
12651 # Check whether --with-zlib-path was given.
12652 if test "${with_zlib_path+set}" = set; then :
12653 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12654 fi
12655
12656
12657 # Check whether --enable-zlib was given.
12658 if test "${enable_zlib+set}" = set; then :
12659 enableval=$enable_zlib; zlib=$enableval
12660 else
12661 zlib=yes
12662 fi
12663
12664
12665 if test "$zlib" = "yes"; then :
12666
12667 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12668 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12670 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12671 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-lz $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char zlibVersion ();
12686 int
12687 main ()
12688 {
12689 return zlibVersion ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_z_zlibVersion=yes
12696 else
12697 ac_cv_lib_z_zlibVersion=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12704 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12705 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12706
12707 LIBS="-lz $LIBS"
12708
12709 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12710
12711
12712 else
12713 zlib=no
12714 fi
12715
12716
12717 else
12718 zlib=no
12719 fi
12720
12721
12722
12723 fi
12724
12725
12726 # Check whether --with-libpcre-path was given.
12727 if test "${with_libpcre_path+set}" = set; then :
12728 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12729 fi
12730
12731
12732 # Check whether --enable-libpcre was given.
12733 if test "${enable_libpcre+set}" = set; then :
12734 enableval=$enable_libpcre; libpcre=$enableval
12735 else
12736 libpcre=yes
12737 fi
12738
12739
12740 if test "$libpcre" = "yes"; then :
12741
12742 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12743 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12745 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12746 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lpcre $LIBS"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char pcre_study ();
12761 int
12762 main ()
12763 {
12764 return pcre_study ();
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_c_try_link "$LINENO"; then :
12770 ac_cv_lib_pcre_pcre_study=yes
12771 else
12772 ac_cv_lib_pcre_pcre_study=no
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12779 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12780 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12781
12782 LIBS="-lpcre $LIBS"
12783
12784 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12785
12786
12787 else
12788 libpcre=no
12789 fi
12790
12791
12792 else
12793 libpcre=no
12794 fi
12795
12796
12797
12798 fi
12799 if test "$libpcre" = yes; then
12800 ENABLE_PCRE_TRUE=
12801 ENABLE_PCRE_FALSE='#'
12802 else
12803 ENABLE_PCRE_TRUE='#'
12804 ENABLE_PCRE_FALSE=
12805 fi
12806
12807
12808
12809 # Check whether --enable-openssl was given.
12810 if test "${enable_openssl+set}" = set; then :
12811 enableval=$enable_openssl; cf_enable_openssl=$enableval
12812 else
12813 cf_enable_openssl="auto"
12814 fi
12815
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12817 $as_echo_n "checking for OpenSSL... " >&6; }
12818 if test "$cf_enable_openssl" != "no"; then
12819 cf_openssl_basedir=""
12820 if test "$cf_enable_openssl" != "auto" &&
12821 test "$cf_enable_openssl" != "yes"; then
12822 cf_openssl_basedir="${cf_enable_openssl}"
12823 else
12824 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12825 /opt /opt/openssl /usr/local/openssl; do
12826 if test -f "${dirs}/include/openssl/opensslv.h"; then
12827 cf_openssl_basedir="${dirs}"
12828 break
12829 fi
12830 done
12831 unset dirs
12832 fi
12833
12834 if test ! -z "$cf_openssl_basedir"; then
12835 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12836 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12837 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12838 else
12839 cf_openssl_basedir=""
12840 fi
12841 else
12842 if test -f "/usr/include/openssl/opensslv.h"; then
12843 cf_openssl_basedir="/usr"
12844 fi
12845 fi
12846
12847 if test ! -z "$cf_openssl_basedir"; then
12848 LIBS="-lcrypto -lssl $LIBS"
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12850 $as_echo "$cf_openssl_basedir" >&6; }
12851 cf_enable_openssl="yes"
12852
12853 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12854
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12857 $as_echo "not found. Please check your path." >&6; }
12858 cf_enable_openssl="no"
12859 fi
12860 unset cf_openssl_basedir
12861 else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12863 $as_echo "disabled" >&6; }
12864 fi
12865
12866 if test "$cf_enable_openssl" != "no"; then :
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12868 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12869 if test "$cross_compiling" = yes; then :
12870 cf_openssl_version_ok=no
12871 else
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 #include <openssl/opensslv.h>
12876 #include <stdlib.h>
12877 int
12878 main ()
12879 {
12880 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12881 ;
12882 return 0;
12883 }
12884 _ACEOF
12885 if ac_fn_c_try_run "$LINENO"; then :
12886 cf_openssl_version_ok=yes
12887 else
12888 cf_openssl_version_ok=no
12889 fi
12890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12891 conftest.$ac_objext conftest.beam conftest.$ac_ext
12892 fi
12893
12894
12895 if test "$cf_openssl_version_ok" = "yes"; then :
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12897 $as_echo "found" >&6; }
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12900 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12901 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lcrypto $LIBS"
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12912 #ifdef __cplusplus
12913 extern "C"
12914 #endif
12915 char RSA_free ();
12916 int
12917 main ()
12918 {
12919 return RSA_free ();
12920 ;
12921 return 0;
12922 }
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_lib_crypto_RSA_free=yes
12926 else
12927 ac_cv_lib_crypto_RSA_free=no
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12934 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12935 if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12936 cat >>confdefs.h <<_ACEOF
12937 #define HAVE_LIBCRYPTO 1
12938 _ACEOF
12939
12940 LIBS="-lcrypto $LIBS"
12941
12942 fi
12943
12944 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12945 for ac_func in EVP_bf_cfb \
12946 EVP_cast5_cfb \
12947 EVP_idea_cfb \
12948 EVP_rc5_32_12_16_cfb \
12949 EVP_des_ede3_cfb \
12950 EVP_des_cfb
12951 do :
12952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12954 eval as_val=\$$as_ac_var
12955 if test "x$as_val" = x""yes; then :
12956 cat >>confdefs.h <<_ACEOF
12957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12958 _ACEOF
12959
12960 fi
12961 done
12962
12963 fi
12964
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
12967 $as_echo "no - OpenSSL support disabled" >&6; }
12968 cf_enable_openssl="no"
12969 fi
12970 fi
12971
12972 if test "$cf_enable_openssl" = yes; then
12973 ENABLE_SSL_TRUE=
12974 ENABLE_SSL_FALSE='#'
12975 else
12976 ENABLE_SSL_TRUE='#'
12977 ENABLE_SSL_FALSE=
12978 fi
12979
12980
12981
12982 # Check whether --enable-assert was given.
12983 if test "${enable_assert+set}" = set; then :
12984 enableval=$enable_assert; assert=$enableval
12985 else
12986 assert=no
12987 fi
12988
12989
12990 if test "$assert" = "no"; then :
12991
12992 $as_echo "#define NDEBUG 1" >>confdefs.h
12993
12994 fi
12995
12996
12997 # Check whether --enable-small-net was given.
12998 if test "${enable_small_net+set}" = set; then :
12999 enableval=$enable_small_net; small_net=$enableval
13000 else
13001 small_net=no
13002 fi
13003
13004
13005 if test "$small_net" = "yes"; then :
13006
13007
13008 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13009
13010
13011 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13012
13013
13014 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13015
13016
13017 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13018
13019
13020 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13021
13022
13023 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13024
13025
13026 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13027
13028
13029 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13030
13031
13032 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13033
13034
13035 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13036
13037 else
13038
13039
13040
13041 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13042
13043
13044 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13045
13046
13047 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13048
13049
13050 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13051
13052
13053 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13054
13055
13056 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13057
13058
13059 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13060
13061
13062 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13063
13064
13065 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13066
13067
13068 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13069
13070 fi
13071
13072
13073 # Argument processing.
13074
13075 desired_iopoll_mechanism="none"
13076 # Check whether --enable-kqueue was given.
13077 if test "${enable_kqueue+set}" = set; then :
13078 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13079 fi
13080
13081 # Check whether --enable-epoll was given.
13082 if test "${enable_epoll+set}" = set; then :
13083 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13084 fi
13085
13086 # Check whether --enable-devpoll was given.
13087 if test "${enable_devpoll+set}" = set; then :
13088 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13089 fi
13090
13091 # Check whether --enable-rtsigio was given.
13092 if test "${enable_rtsigio+set}" = set; then :
13093 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13094 fi
13095
13096 # Check whether --enable-poll was given.
13097 if test "${enable_poll+set}" = set; then :
13098 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13099 fi
13100
13101 # Check whether --enable-select was given.
13102 if test "${enable_select+set}" = set; then :
13103 enableval=$enable_select; desired_iopoll_mechanism="select"
13104 fi
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13107 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13108 iopoll_mechanism_none=0
13109
13110 cat >>confdefs.h <<_ACEOF
13111 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13112 _ACEOF
13113
13114 iopoll_mechanism_kqueue=1
13115
13116 cat >>confdefs.h <<_ACEOF
13117 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13118 _ACEOF
13119
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13122 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13124 #define kevent innocuous_kevent
13125
13126 /* System header to define __stub macros and hopefully few prototypes,
13127 which can conflict with char kevent (); below.
13128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13129 <limits.h> exists even on freestanding compilers. */
13130
13131 #ifdef __STDC__
13132 # include <limits.h>
13133 #else
13134 # include <assert.h>
13135 #endif
13136
13137 #undef kevent
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char kevent ();
13146 /* The GNU C library defines this for functions which it implements
13147 to always fail with ENOSYS. Some functions are actually named
13148 something starting with __ and the normal name is an alias. */
13149 #if defined __stub_kevent || defined __stub___kevent
13150 choke me
13151 #endif
13152
13153 int
13154 main ()
13155 {
13156 return kevent ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 is_kqueue_mechanism_available="yes"
13163 else
13164 is_kqueue_mechanism_available="no"
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 iopoll_mechanism_epoll=2
13169
13170 cat >>confdefs.h <<_ACEOF
13171 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13172 _ACEOF
13173
13174 if test "$cross_compiling" = yes; then :
13175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13177 as_fn_error "cannot run test program while cross compiling
13178 See \`config.log' for more details." "$LINENO" 5; }
13179 else
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182
13183 #include <sys/epoll.h>
13184 #include <sys/syscall.h>
13185 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13186 #if !defined(__NR_epoll_create)
13187 #if defined(__ia64__)
13188 #define __NR_epoll_create 1243
13189 #elif defined(__x86_64__)
13190 #define __NR_epoll_create 214
13191 #elif defined(__sparc64__) || defined(__sparc__)
13192 #define __NR_epoll_create 193
13193 #elif defined(__s390__) || defined(__m68k__)
13194 #define __NR_epoll_create 249
13195 #elif defined(__ppc64__) || defined(__ppc__)
13196 #define __NR_epoll_create 236
13197 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13198 #define __NR_epoll_create 224
13199 #elif defined(__alpha__)
13200 #define __NR_epoll_create 407
13201 #elif defined(__sh64__)
13202 #define __NR_epoll_create 282
13203 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13204 #define __NR_epoll_create 254
13205 #else
13206 #error No system call numbers defined for epoll family.
13207 #endif
13208 #endif
13209 _syscall1(int, epoll_create, int, size)
13210 #endif
13211 main() { return epoll_create(256) == -1 ? 1 : 0; }
13212
13213 _ACEOF
13214 if ac_fn_c_try_run "$LINENO"; then :
13215 is_epoll_mechanism_available="yes"
13216 else
13217 is_epoll_mechanism_available="no"
13218 fi
13219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13220 conftest.$ac_objext conftest.beam conftest.$ac_ext
13221 fi
13222
13223 iopoll_mechanism_devpoll=3
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13227 _ACEOF
13228
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <devpoll.h>
13232 int
13233 main ()
13234 {
13235
13236 ;
13237 return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 is_devpoll_mechanism_available="yes"
13242 else
13243 is_devpoll_mechanism_available="no"
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 if test "$is_devpoll_mechanism_available" = "yes" ; then
13247
13248 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13249
13250 fi
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253 #include <sys/devpoll.h>
13254 int
13255 main ()
13256 {
13257
13258 ;
13259 return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_compile "$LINENO"; then :
13263 is_devpoll_mechanism_available="yes"
13264 else
13265 is_devpoll_mechanism_available="no"
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 if test "$is_devpoll_mechanism_available" = "yes" ; then
13269
13270 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13271
13272 fi
13273 iopoll_mechanism_rtsigio=4
13274
13275 cat >>confdefs.h <<_ACEOF
13276 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13277 _ACEOF
13278
13279 if test "$cross_compiling" = yes; then :
13280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13282 as_fn_error "cannot run test program while cross compiling
13283 See \`config.log' for more details." "$LINENO" 5; }
13284 else
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287
13288 #include <fcntl.h>
13289 #ifdef F_SETSIG
13290 main () { return 0; } /* F_SETSIG defined */
13291 #else
13292 main () { return 1; } /* F_SETSIG not defined */
13293 #endif
13294
13295 int
13296 main ()
13297 {
13298
13299 ;
13300 return 0;
13301 }
13302 _ACEOF
13303 if ac_fn_c_try_run "$LINENO"; then :
13304 is_rtsigio_mechanism_available="yes"
13305 else
13306 is_rtsigio_mechanism_available="no"
13307 fi
13308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13309 conftest.$ac_objext conftest.beam conftest.$ac_ext
13310 fi
13311
13312 iopoll_mechanism_poll=5
13313
13314 cat >>confdefs.h <<_ACEOF
13315 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13316 _ACEOF
13317
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13322 #define poll innocuous_poll
13323
13324 /* System header to define __stub macros and hopefully few prototypes,
13325 which can conflict with char poll (); below.
13326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13327 <limits.h> exists even on freestanding compilers. */
13328
13329 #ifdef __STDC__
13330 # include <limits.h>
13331 #else
13332 # include <assert.h>
13333 #endif
13334
13335 #undef poll
13336
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13340 #ifdef __cplusplus
13341 extern "C"
13342 #endif
13343 char poll ();
13344 /* The GNU C library defines this for functions which it implements
13345 to always fail with ENOSYS. Some functions are actually named
13346 something starting with __ and the normal name is an alias. */
13347 #if defined __stub_poll || defined __stub___poll
13348 choke me
13349 #endif
13350
13351 int
13352 main ()
13353 {
13354 return poll ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 is_poll_mechanism_available="yes"
13361 else
13362 is_poll_mechanism_available="no"
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 iopoll_mechanism_select=6
13367
13368 cat >>confdefs.h <<_ACEOF
13369 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13370 _ACEOF
13371
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 /* Define select to an innocuous variant, in case <limits.h> declares select.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define select innocuous_select
13377
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char select (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13382
13383 #ifdef __STDC__
13384 # include <limits.h>
13385 #else
13386 # include <assert.h>
13387 #endif
13388
13389 #undef select
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char select ();
13398 /* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
13401 #if defined __stub_select || defined __stub___select
13402 choke me
13403 #endif
13404
13405 int
13406 main ()
13407 {
13408 return select ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"; then :
13414 is_select_mechanism_available="yes"
13415 else
13416 is_select_mechanism_available="no"
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 optimal_iopoll_mechanism="none"
13421 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13422 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13423 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13424 optimal_iopoll_mechanism="$mechanism"
13425 break
13426 fi
13427 done
13428 if test "$desired_iopoll_mechanism" = "none" ; then
13429 if test "$optimal_iopoll_mechanism" = "none" ; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13431 $as_echo "none" >&6; }
13432 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13433 else
13434 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13436 $as_echo "$selected_iopoll_mechanism" >&6; }
13437 fi
13438 else
13439 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13440 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13441 selected_iopoll_mechanism=$desired_iopoll_mechanism
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13443 $as_echo "$selected_iopoll_mechanism" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13446 $as_echo "none" >&6; }
13447 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13448 fi
13449 fi
13450 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13451
13452 cat >>confdefs.h <<_ACEOF
13453 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13454 _ACEOF
13455
13456
13457
13458
13459 # Check whether --with-nicklen was given.
13460 if test "${with_nicklen+set}" = set; then :
13461 withval=$with_nicklen; nicklen="$withval"
13462 else
13463 nicklen="9"
13464 fi
13465
13466
13467 cat >>confdefs.h <<_ACEOF
13468 #define NICKLEN ($nicklen+1)
13469 _ACEOF
13470
13471
13472
13473
13474 # Check whether --with-topiclen was given.
13475 if test "${with_topiclen+set}" = set; then :
13476 withval=$with_topiclen; topiclen="$withval"
13477 else
13478 topiclen="160"
13479 fi
13480
13481
13482 cat >>confdefs.h <<_ACEOF
13483 #define TOPICLEN ($topiclen)
13484 _ACEOF
13485
13486
13487
13488
13489 # Check whether --with-syslog-facility was given.
13490 if test "${with_syslog_facility+set}" = set; then :
13491 withval=$with_syslog_facility; syslog_facility="$withval"
13492 else
13493 syslog_facility="LOG_LOCAL4"
13494 fi
13495
13496
13497 cat >>confdefs.h <<_ACEOF
13498 #define LOG_FACILITY $syslog_facility
13499 _ACEOF
13500
13501
13502
13503 # Check whether --enable-efnet was given.
13504 if test "${enable_efnet+set}" = set; then :
13505 enableval=$enable_efnet; efnet="$enableval"
13506 else
13507 efnet="no"
13508 fi
13509
13510 if test "$efnet" = "yes" ; then
13511 use_efnet="yes"
13512
13513 $as_echo "#define EFNET 1" >>confdefs.h
13514
13515
13516 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13517
13518 else
13519 use_efnet="no"
13520 fi
13521 if test "$use_efnet" = "yes"; then
13522 EFNET_TRUE=
13523 EFNET_FALSE='#'
13524 else
13525 EFNET_TRUE='#'
13526 EFNET_FALSE=
13527 fi
13528
13529
13530
13531 # Check whether --enable-halfops was given.
13532 if test "${enable_halfops+set}" = set; then :
13533 enableval=$enable_halfops; halfops="$enableval"
13534 else
13535 halfops="no"
13536 fi
13537
13538 if test "$halfops" = "yes" ; then
13539
13540 $as_echo "#define HALFOPS 1" >>confdefs.h
13541
13542 fi
13543
13544
13545 # Check whether --enable-debugging was given.
13546 if test "${enable_debugging+set}" = set; then :
13547 enableval=$enable_debugging; debugging="$enableval"
13548 else
13549 debugging="no"
13550 fi
13551
13552 if test "$debugging" = "yes" ; then
13553
13554 $as_echo "#define DEBUG 1" >>confdefs.h
13555
13556 CFLAGS="-Wall -g -O0"
13557 else
13558
13559 $as_echo "#define NDEBUG 1" >>confdefs.h
13560
13561 fi
13562
13563
13564 # Check whether --enable-warnings was given.
13565 if test "${enable_warnings+set}" = set; then :
13566 enableval=$enable_warnings; warnings="$enableval"
13567 else
13568 warnings="no"
13569 fi
13570
13571 if test "$warnings" = "yes" ; then
13572 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13573 fi
13574
13575
13576 for ac_header in syslog.h sys/syslog.h
13577 do :
13578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13580 eval as_val=\$$as_ac_Header
13581 if test "x$as_val" = x""yes; then :
13582 cat >>confdefs.h <<_ACEOF
13583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13584 _ACEOF
13585
13586 fi
13587
13588 done
13589
13590 # Check whether --enable-syslog was given.
13591 if test "${enable_syslog+set}" = set; then :
13592 enableval=$enable_syslog; syslog="$enableval"
13593 else
13594 syslog="no"
13595 fi
13596
13597 if test "$enableval" != "no" ; then
13598 for option in $enableval ; do
13599 case "$option" in
13600 users)
13601 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13602 ;;
13603 oper)
13604 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13605 ;;
13606 yes) : ;;
13607 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13608 esac
13609 done
13610
13611 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13612
13613 fi
13614
13615
13616
13617 prefix_NONE=
13618 exec_prefix_NONE=
13619 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13620 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13621 eval ac_define_dir="\"$prefix\""
13622 eval ac_define_dir="\"$ac_define_dir\""
13623 PREFIX="$ac_define_dir"
13624
13625
13626 cat >>confdefs.h <<_ACEOF
13627 #define PREFIX "$ac_define_dir"
13628 _ACEOF
13629
13630 test "$prefix_NONE" && prefix=NONE
13631 test "$exec_prefix_NONE" && exec_prefix=NONE
13632
13633
13634 prefix_NONE=
13635 exec_prefix_NONE=
13636 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13637 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13638 eval ac_define_dir="\"$sysconfdir\""
13639 eval ac_define_dir="\"$ac_define_dir\""
13640 SYSCONFDIR="$ac_define_dir"
13641
13642
13643 cat >>confdefs.h <<_ACEOF
13644 #define SYSCONFDIR "$ac_define_dir"
13645 _ACEOF
13646
13647 test "$prefix_NONE" && prefix=NONE
13648 test "$exec_prefix_NONE" && exec_prefix=NONE
13649
13650
13651 prefix_NONE=
13652 exec_prefix_NONE=
13653 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13654 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13655 eval ac_define_dir="\"$libdir\""
13656 eval ac_define_dir="\"$ac_define_dir\""
13657 LIBDIR="$ac_define_dir"
13658
13659
13660 cat >>confdefs.h <<_ACEOF
13661 #define LIBDIR "$ac_define_dir"
13662 _ACEOF
13663
13664 test "$prefix_NONE" && prefix=NONE
13665 test "$exec_prefix_NONE" && exec_prefix=NONE
13666
13667
13668 prefix_NONE=
13669 exec_prefix_NONE=
13670 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13671 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13672 eval ac_define_dir="\"$datadir\""
13673 eval ac_define_dir="\"$ac_define_dir\""
13674 DATADIR="$ac_define_dir"
13675
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define DATADIR "$ac_define_dir"
13679 _ACEOF
13680
13681 test "$prefix_NONE" && prefix=NONE
13682 test "$exec_prefix_NONE" && exec_prefix=NONE
13683
13684
13685 prefix_NONE=
13686 exec_prefix_NONE=
13687 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13688 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13689 eval ac_define_dir="\"$localstatedir\""
13690 eval ac_define_dir="\"$ac_define_dir\""
13691 LOCALSTATEDIR="$ac_define_dir"
13692
13693
13694 cat >>confdefs.h <<_ACEOF
13695 #define LOCALSTATEDIR "$ac_define_dir"
13696 _ACEOF
13697
13698 test "$prefix_NONE" && prefix=NONE
13699 test "$exec_prefix_NONE" && exec_prefix=NONE
13700
13701
13702 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13703
13704
13705 cat >confcache <<\_ACEOF
13706 # This file is a shell script that caches the results of configure
13707 # tests run on this system so they can be shared between configure
13708 # scripts and configure runs, see configure's option --config-cache.
13709 # It is not useful on other systems. If it contains results you don't
13710 # want to keep, you may remove or edit it.
13711 #
13712 # config.status only pays attention to the cache file if you give it
13713 # the --recheck option to rerun configure.
13714 #
13715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13717 # following values.
13718
13719 _ACEOF
13720
13721 # The following way of writing the cache mishandles newlines in values,
13722 # but we know of no workaround that is simple, portable, and efficient.
13723 # So, we kill variables containing newlines.
13724 # Ultrix sh set writes to stderr and can't be redirected directly,
13725 # and sets the high bit in the cache file unless we assign to the vars.
13726 (
13727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13728 eval ac_val=\$$ac_var
13729 case $ac_val in #(
13730 *${as_nl}*)
13731 case $ac_var in #(
13732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13734 esac
13735 case $ac_var in #(
13736 _ | IFS | as_nl) ;; #(
13737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13738 *) { eval $ac_var=; unset $ac_var;} ;;
13739 esac ;;
13740 esac
13741 done
13742
13743 (set) 2>&1 |
13744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13745 *${as_nl}ac_space=\ *)
13746 # `set' does not quote correctly, so add quotes: double-quote
13747 # substitution turns \\\\ into \\, and sed turns \\ into \.
13748 sed -n \
13749 "s/'/'\\\\''/g;
13750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13751 ;; #(
13752 *)
13753 # `set' quotes correctly as required by POSIX, so do not add quotes.
13754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13755 ;;
13756 esac |
13757 sort
13758 ) |
13759 sed '
13760 /^ac_cv_env_/b end
13761 t clear
13762 :clear
13763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13764 t end
13765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13766 :end' >>confcache
13767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13768 if test -w "$cache_file"; then
13769 test "x$cache_file" != "x/dev/null" &&
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13771 $as_echo "$as_me: updating cache $cache_file" >&6;}
13772 cat confcache >$cache_file
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13776 fi
13777 fi
13778 rm -f confcache
13779
13780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13781 # Let make expand exec_prefix.
13782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13783
13784 DEFS=-DHAVE_CONFIG_H
13785
13786 ac_libobjs=
13787 ac_ltlibobjs=
13788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13789 # 1. Remove the extension, and $U if already installed.
13790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13793 # will be set to the directory where LIBOBJS objects are built.
13794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13796 done
13797 LIBOBJS=$ac_libobjs
13798
13799 LTLIBOBJS=$ac_ltlibobjs
13800
13801
13802 if test -n "$EXEEXT"; then
13803 am__EXEEXT_TRUE=
13804 am__EXEEXT_FALSE='#'
13805 else
13806 am__EXEEXT_TRUE='#'
13807 am__EXEEXT_FALSE=
13808 fi
13809
13810 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13811 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13813 fi
13814 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13815 as_fn_error "conditional \"AMDEP\" was never defined.
13816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13817 fi
13818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13819 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13821 fi
13822 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13823 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13825 fi
13826 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13827 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13829 fi
13830 LT_CONFIG_H=config.h
13831
13832 _ltdl_libobjs=
13833 _ltdl_ltlibobjs=
13834 if test -n "$_LT_LIBOBJS"; then
13835 # Remove the extension.
13836 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13837 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13838 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13839 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13840 done
13841 fi
13842 ltdl_LIBOBJS=$_ltdl_libobjs
13843
13844 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13845
13846
13847
13848 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13849 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13851 fi
13852 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13853 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13855 fi
13856 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13857 as_fn_error "conditional \"EFNET\" was never defined.
13858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13859 fi
13860
13861 : ${CONFIG_STATUS=./config.status}
13862 ac_write_fail=0
13863 ac_clean_files_save=$ac_clean_files
13864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13866 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13867 as_write_fail=0
13868 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13869 #! $SHELL
13870 # Generated by $as_me.
13871 # Run this file to recreate the current configuration.
13872 # Compiler output produced by configure, useful for debugging
13873 # configure, is in config.log if it exists.
13874
13875 debug=false
13876 ac_cs_recheck=false
13877 ac_cs_silent=false
13878
13879 SHELL=\${CONFIG_SHELL-$SHELL}
13880 export SHELL
13881 _ASEOF
13882 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13883 ## -------------------- ##
13884 ## M4sh Initialization. ##
13885 ## -------------------- ##
13886
13887 # Be more Bourne compatible
13888 DUALCASE=1; export DUALCASE # for MKS sh
13889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13890 emulate sh
13891 NULLCMD=:
13892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13893 # is contrary to our usage. Disable this feature.
13894 alias -g '${1+"$@"}'='"$@"'
13895 setopt NO_GLOB_SUBST
13896 else
13897 case `(set -o) 2>/dev/null` in #(
13898 *posix*) :
13899 set -o posix ;; #(
13900 *) :
13901 ;;
13902 esac
13903 fi
13904
13905
13906 as_nl='
13907 '
13908 export as_nl
13909 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13910 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13912 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13913 # Prefer a ksh shell builtin over an external printf program on Solaris,
13914 # but without wasting forks for bash or zsh.
13915 if test -z "$BASH_VERSION$ZSH_VERSION" \
13916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13917 as_echo='print -r --'
13918 as_echo_n='print -rn --'
13919 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13920 as_echo='printf %s\n'
13921 as_echo_n='printf %s'
13922 else
13923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13925 as_echo_n='/usr/ucb/echo -n'
13926 else
13927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13928 as_echo_n_body='eval
13929 arg=$1;
13930 case $arg in #(
13931 *"$as_nl"*)
13932 expr "X$arg" : "X\\(.*\\)$as_nl";
13933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13934 esac;
13935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13936 '
13937 export as_echo_n_body
13938 as_echo_n='sh -c $as_echo_n_body as_echo'
13939 fi
13940 export as_echo_body
13941 as_echo='sh -c $as_echo_body as_echo'
13942 fi
13943
13944 # The user is always right.
13945 if test "${PATH_SEPARATOR+set}" != set; then
13946 PATH_SEPARATOR=:
13947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13949 PATH_SEPARATOR=';'
13950 }
13951 fi
13952
13953
13954 # IFS
13955 # We need space, tab and new line, in precisely that order. Quoting is
13956 # there to prevent editors from complaining about space-tab.
13957 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13958 # splitting by setting IFS to empty value.)
13959 IFS=" "" $as_nl"
13960
13961 # Find who we are. Look in the path if we contain no directory separator.
13962 case $0 in #((
13963 *[\\/]* ) as_myself=$0 ;;
13964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 for as_dir in $PATH
13966 do
13967 IFS=$as_save_IFS
13968 test -z "$as_dir" && as_dir=.
13969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13970 done
13971 IFS=$as_save_IFS
13972
13973 ;;
13974 esac
13975 # We did not find ourselves, most probably we were run as `sh COMMAND'
13976 # in which case we are not to be found in the path.
13977 if test "x$as_myself" = x; then
13978 as_myself=$0
13979 fi
13980 if test ! -f "$as_myself"; then
13981 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13982 exit 1
13983 fi
13984
13985 # Unset variables that we do not need and which cause bugs (e.g. in
13986 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13987 # suppresses any "Segmentation fault" message there. '((' could
13988 # trigger a bug in pdksh 5.2.14.
13989 for as_var in BASH_ENV ENV MAIL MAILPATH
13990 do eval test x\${$as_var+set} = xset \
13991 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13992 done
13993 PS1='$ '
13994 PS2='> '
13995 PS4='+ '
13996
13997 # NLS nuisances.
13998 LC_ALL=C
13999 export LC_ALL
14000 LANGUAGE=C
14001 export LANGUAGE
14002
14003 # CDPATH.
14004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14005
14006
14007 # as_fn_error ERROR [LINENO LOG_FD]
14008 # ---------------------------------
14009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14011 # script with status $?, using 1 if that was 0.
14012 as_fn_error ()
14013 {
14014 as_status=$?; test $as_status -eq 0 && as_status=1
14015 if test "$3"; then
14016 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14017 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14018 fi
14019 $as_echo "$as_me: error: $1" >&2
14020 as_fn_exit $as_status
14021 } # as_fn_error
14022
14023
14024 # as_fn_set_status STATUS
14025 # -----------------------
14026 # Set $? to STATUS, without forking.
14027 as_fn_set_status ()
14028 {
14029 return $1
14030 } # as_fn_set_status
14031
14032 # as_fn_exit STATUS
14033 # -----------------
14034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14035 as_fn_exit ()
14036 {
14037 set +e
14038 as_fn_set_status $1
14039 exit $1
14040 } # as_fn_exit
14041
14042 # as_fn_unset VAR
14043 # ---------------
14044 # Portably unset VAR.
14045 as_fn_unset ()
14046 {
14047 { eval $1=; unset $1;}
14048 }
14049 as_unset=as_fn_unset
14050 # as_fn_append VAR VALUE
14051 # ----------------------
14052 # Append the text in VALUE to the end of the definition contained in VAR. Take
14053 # advantage of any shell optimizations that allow amortized linear growth over
14054 # repeated appends, instead of the typical quadratic growth present in naive
14055 # implementations.
14056 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14057 eval 'as_fn_append ()
14058 {
14059 eval $1+=\$2
14060 }'
14061 else
14062 as_fn_append ()
14063 {
14064 eval $1=\$$1\$2
14065 }
14066 fi # as_fn_append
14067
14068 # as_fn_arith ARG...
14069 # ------------------
14070 # Perform arithmetic evaluation on the ARGs, and store the result in the
14071 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14072 # must be portable across $(()) and expr.
14073 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14074 eval 'as_fn_arith ()
14075 {
14076 as_val=$(( $* ))
14077 }'
14078 else
14079 as_fn_arith ()
14080 {
14081 as_val=`expr "$@" || test $? -eq 1`
14082 }
14083 fi # as_fn_arith
14084
14085
14086 if expr a : '\(a\)' >/dev/null 2>&1 &&
14087 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14088 as_expr=expr
14089 else
14090 as_expr=false
14091 fi
14092
14093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14094 as_basename=basename
14095 else
14096 as_basename=false
14097 fi
14098
14099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14100 as_dirname=dirname
14101 else
14102 as_dirname=false
14103 fi
14104
14105 as_me=`$as_basename -- "$0" ||
14106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14107 X"$0" : 'X\(//\)$' \| \
14108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14109 $as_echo X/"$0" |
14110 sed '/^.*\/\([^/][^/]*\)\/*$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\/\(\/\/\)$/{
14115 s//\1/
14116 q
14117 }
14118 /^X\/\(\/\).*/{
14119 s//\1/
14120 q
14121 }
14122 s/.*/./; q'`
14123
14124 # Avoid depending upon Character Ranges.
14125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14128 as_cr_digits='0123456789'
14129 as_cr_alnum=$as_cr_Letters$as_cr_digits
14130
14131 ECHO_C= ECHO_N= ECHO_T=
14132 case `echo -n x` in #(((((
14133 -n*)
14134 case `echo 'xy\c'` in
14135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14136 xy) ECHO_C='\c';;
14137 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14138 ECHO_T=' ';;
14139 esac;;
14140 *)
14141 ECHO_N='-n';;
14142 esac
14143
14144 rm -f conf$$ conf$$.exe conf$$.file
14145 if test -d conf$$.dir; then
14146 rm -f conf$$.dir/conf$$.file
14147 else
14148 rm -f conf$$.dir
14149 mkdir conf$$.dir 2>/dev/null
14150 fi
14151 if (echo >conf$$.file) 2>/dev/null; then
14152 if ln -s conf$$.file conf$$ 2>/dev/null; then
14153 as_ln_s='ln -s'
14154 # ... but there are two gotchas:
14155 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14156 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14157 # In both cases, we have to default to `cp -p'.
14158 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14159 as_ln_s='cp -p'
14160 elif ln conf$$.file conf$$ 2>/dev/null; then
14161 as_ln_s=ln
14162 else
14163 as_ln_s='cp -p'
14164 fi
14165 else
14166 as_ln_s='cp -p'
14167 fi
14168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14169 rmdir conf$$.dir 2>/dev/null
14170
14171
14172 # as_fn_mkdir_p
14173 # -------------
14174 # Create "$as_dir" as a directory, including parents if necessary.
14175 as_fn_mkdir_p ()
14176 {
14177
14178 case $as_dir in #(
14179 -*) as_dir=./$as_dir;;
14180 esac
14181 test -d "$as_dir" || eval $as_mkdir_p || {
14182 as_dirs=
14183 while :; do
14184 case $as_dir in #(
14185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14186 *) as_qdir=$as_dir;;
14187 esac
14188 as_dirs="'$as_qdir' $as_dirs"
14189 as_dir=`$as_dirname -- "$as_dir" ||
14190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14191 X"$as_dir" : 'X\(//\)[^/]' \| \
14192 X"$as_dir" : 'X\(//\)$' \| \
14193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14194 $as_echo X"$as_dir" |
14195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14196 s//\1/
14197 q
14198 }
14199 /^X\(\/\/\)[^/].*/{
14200 s//\1/
14201 q
14202 }
14203 /^X\(\/\/\)$/{
14204 s//\1/
14205 q
14206 }
14207 /^X\(\/\).*/{
14208 s//\1/
14209 q
14210 }
14211 s/.*/./; q'`
14212 test -d "$as_dir" && break
14213 done
14214 test -z "$as_dirs" || eval "mkdir $as_dirs"
14215 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14216
14217
14218 } # as_fn_mkdir_p
14219 if mkdir -p . 2>/dev/null; then
14220 as_mkdir_p='mkdir -p "$as_dir"'
14221 else
14222 test -d ./-p && rmdir ./-p
14223 as_mkdir_p=false
14224 fi
14225
14226 if test -x / >/dev/null 2>&1; then
14227 as_test_x='test -x'
14228 else
14229 if ls -dL / >/dev/null 2>&1; then
14230 as_ls_L_option=L
14231 else
14232 as_ls_L_option=
14233 fi
14234 as_test_x='
14235 eval sh -c '\''
14236 if test -d "$1"; then
14237 test -d "$1/.";
14238 else
14239 case $1 in #(
14240 -*)set "./$1";;
14241 esac;
14242 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14243 ???[sx]*):;;*)false;;esac;fi
14244 '\'' sh
14245 '
14246 fi
14247 as_executable_p=$as_test_x
14248
14249 # Sed expression to map a string onto a valid CPP name.
14250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14251
14252 # Sed expression to map a string onto a valid variable name.
14253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14254
14255
14256 exec 6>&1
14257 ## ----------------------------------- ##
14258 ## Main body of $CONFIG_STATUS script. ##
14259 ## ----------------------------------- ##
14260 _ASEOF
14261 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14262
14263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14264 # Save the log message, to keep $0 and so on meaningful, and to
14265 # report actual input values of CONFIG_FILES etc. instead of their
14266 # values after options handling.
14267 ac_log="
14268 This file was extended by ircd-hybrid $as_me 7.2.4, which was
14269 generated by GNU Autoconf 2.64. Invocation command line was
14270
14271 CONFIG_FILES = $CONFIG_FILES
14272 CONFIG_HEADERS = $CONFIG_HEADERS
14273 CONFIG_LINKS = $CONFIG_LINKS
14274 CONFIG_COMMANDS = $CONFIG_COMMANDS
14275 $ $0 $@
14276
14277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14278 "
14279
14280 _ACEOF
14281
14282 case $ac_config_files in *"
14283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14284 esac
14285
14286 case $ac_config_headers in *"
14287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14288 esac
14289
14290
14291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14292 # Files that config.status was made for.
14293 config_files="$ac_config_files"
14294 config_headers="$ac_config_headers"
14295 config_commands="$ac_config_commands"
14296
14297 _ACEOF
14298
14299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14300 ac_cs_usage="\
14301 \`$as_me' instantiates files and other configuration actions
14302 from templates according to the current configuration. Unless the files
14303 and actions are specified as TAGs, all are instantiated by default.
14304
14305 Usage: $0 [OPTION]... [TAG]...
14306
14307 -h, --help print this help, then exit
14308 -V, --version print version number and configuration settings, then exit
14309 -q, --quiet, --silent
14310 do not print progress messages
14311 -d, --debug don't remove temporary files
14312 --recheck update $as_me by reconfiguring in the same conditions
14313 --file=FILE[:TEMPLATE]
14314 instantiate the configuration file FILE
14315 --header=FILE[:TEMPLATE]
14316 instantiate the configuration header FILE
14317
14318 Configuration files:
14319 $config_files
14320
14321 Configuration headers:
14322 $config_headers
14323
14324 Configuration commands:
14325 $config_commands
14326
14327 Report bugs to the package provider."
14328
14329 _ACEOF
14330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14331 ac_cs_version="\\
14332 ircd-hybrid config.status 7.2.4
14333 configured by $0, generated by GNU Autoconf 2.64,
14334 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14335
14336 Copyright (C) 2009 Free Software Foundation, Inc.
14337 This config.status script is free software; the Free Software Foundation
14338 gives unlimited permission to copy, distribute and modify it."
14339
14340 ac_pwd='$ac_pwd'
14341 srcdir='$srcdir'
14342 INSTALL='$INSTALL'
14343 MKDIR_P='$MKDIR_P'
14344 AWK='$AWK'
14345 test -n "\$AWK" || AWK=awk
14346 _ACEOF
14347
14348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14349 # The default lists apply if the user does not specify any file.
14350 ac_need_defaults=:
14351 while test $# != 0
14352 do
14353 case $1 in
14354 --*=*)
14355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14356 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14357 ac_shift=:
14358 ;;
14359 *)
14360 ac_option=$1
14361 ac_optarg=$2
14362 ac_shift=shift
14363 ;;
14364 esac
14365
14366 case $ac_option in
14367 # Handling of the options.
14368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14369 ac_cs_recheck=: ;;
14370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14371 $as_echo "$ac_cs_version"; exit ;;
14372 --debug | --debu | --deb | --de | --d | -d )
14373 debug=: ;;
14374 --file | --fil | --fi | --f )
14375 $ac_shift
14376 case $ac_optarg in
14377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14378 esac
14379 as_fn_append CONFIG_FILES " '$ac_optarg'"
14380 ac_need_defaults=false;;
14381 --header | --heade | --head | --hea )
14382 $ac_shift
14383 case $ac_optarg in
14384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14385 esac
14386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14387 ac_need_defaults=false;;
14388 --he | --h)
14389 # Conflict between --help and --header
14390 as_fn_error "ambiguous option: \`$1'
14391 Try \`$0 --help' for more information.";;
14392 --help | --hel | -h )
14393 $as_echo "$ac_cs_usage"; exit ;;
14394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14396 ac_cs_silent=: ;;
14397
14398 # This is an error.
14399 -*) as_fn_error "unrecognized option: \`$1'
14400 Try \`$0 --help' for more information." ;;
14401
14402 *) as_fn_append ac_config_targets " $1"
14403 ac_need_defaults=false ;;
14404
14405 esac
14406 shift
14407 done
14408
14409 ac_configure_extra_args=
14410
14411 if $ac_cs_silent; then
14412 exec 6>/dev/null
14413 ac_configure_extra_args="$ac_configure_extra_args --silent"
14414 fi
14415
14416 _ACEOF
14417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14418 if \$ac_cs_recheck; then
14419 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14420 shift
14421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14422 CONFIG_SHELL='$SHELL'
14423 export CONFIG_SHELL
14424 exec "\$@"
14425 fi
14426
14427 _ACEOF
14428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14429 exec 5>>config.log
14430 {
14431 echo
14432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14433 ## Running $as_me. ##
14434 _ASBOX
14435 $as_echo "$ac_log"
14436 } >&5
14437
14438 _ACEOF
14439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14440 #
14441 # INIT-COMMANDS
14442 #
14443 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14444
14445
14446 # The HP-UX ksh and POSIX shell print the target directory to stdout
14447 # if CDPATH is set.
14448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14449
14450 sed_quote_subst='$sed_quote_subst'
14451 double_quote_subst='$double_quote_subst'
14452 delay_variable_subst='$delay_variable_subst'
14453 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14454 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14455 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14456 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14457 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14458 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14459 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14460 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14461 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14462 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14463 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14464 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14465 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14466 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14467 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14468 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14469 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14470 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14471 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14472 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14473 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14474 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14475 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14476 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14477 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14478 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14479 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14480 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14481 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14482 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14483 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14484 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14485 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14486 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14487 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14488 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14489 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14490 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14491 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14492 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14493 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14494 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14495 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14497 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14499 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14500 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14501 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14502 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14503 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14504 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14505 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14506 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14507 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14508 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14509 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14510 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14511 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14512 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14513 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14514 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14515 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14516 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14518 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14519 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14520 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14521 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14522 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14523 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14524 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14525 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14526 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14527 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14528 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14529 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14530 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14531 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14532 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14533 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14534 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14535 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14536 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14537 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14538 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14539 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14540 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14541 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14542 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14543 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14544 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14545 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14546 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14547 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14548 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14549 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14550 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14551 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14552 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14553 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14554 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14555 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14556 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14557 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14558 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14559 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14560 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14561 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14562 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14563 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14564 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14565 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14566 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14567 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14568 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14569 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14570 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14571
14572 LTCC='$LTCC'
14573 LTCFLAGS='$LTCFLAGS'
14574 compiler='$compiler_DEFAULT'
14575
14576 # Quote evaled strings.
14577 for var in SED \
14578 GREP \
14579 EGREP \
14580 FGREP \
14581 LD \
14582 NM \
14583 LN_S \
14584 lt_SP2NL \
14585 lt_NL2SP \
14586 reload_flag \
14587 OBJDUMP \
14588 deplibs_check_method \
14589 file_magic_cmd \
14590 AR \
14591 AR_FLAGS \
14592 STRIP \
14593 RANLIB \
14594 CC \
14595 CFLAGS \
14596 compiler \
14597 lt_cv_sys_global_symbol_pipe \
14598 lt_cv_sys_global_symbol_to_cdecl \
14599 lt_cv_sys_global_symbol_to_c_name_address \
14600 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14601 SHELL \
14602 ECHO \
14603 lt_prog_compiler_no_builtin_flag \
14604 lt_prog_compiler_wl \
14605 lt_prog_compiler_pic \
14606 lt_prog_compiler_static \
14607 lt_cv_prog_compiler_c_o \
14608 need_locks \
14609 DSYMUTIL \
14610 NMEDIT \
14611 LIPO \
14612 OTOOL \
14613 OTOOL64 \
14614 shrext_cmds \
14615 export_dynamic_flag_spec \
14616 whole_archive_flag_spec \
14617 compiler_needs_object \
14618 with_gnu_ld \
14619 allow_undefined_flag \
14620 no_undefined_flag \
14621 hardcode_libdir_flag_spec \
14622 hardcode_libdir_flag_spec_ld \
14623 hardcode_libdir_separator \
14624 fix_srcfile_path \
14625 exclude_expsyms \
14626 include_expsyms \
14627 file_list_spec \
14628 variables_saved_for_relink \
14629 libname_spec \
14630 library_names_spec \
14631 soname_spec \
14632 finish_eval \
14633 old_striplib \
14634 striplib; do
14635 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14636 *[\\\\\\\`\\"\\\$]*)
14637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14638 ;;
14639 *)
14640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14641 ;;
14642 esac
14643 done
14644
14645 # Double-quote double-evaled strings.
14646 for var in reload_cmds \
14647 old_postinstall_cmds \
14648 old_postuninstall_cmds \
14649 old_archive_cmds \
14650 extract_expsyms_cmds \
14651 old_archive_from_new_cmds \
14652 old_archive_from_expsyms_cmds \
14653 archive_cmds \
14654 archive_expsym_cmds \
14655 module_cmds \
14656 module_expsym_cmds \
14657 export_symbols_cmds \
14658 prelink_cmds \
14659 postinstall_cmds \
14660 postuninstall_cmds \
14661 finish_cmds \
14662 sys_lib_search_path_spec \
14663 sys_lib_dlsearch_path_spec; do
14664 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14665 *[\\\\\\\`\\"\\\$]*)
14666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14667 ;;
14668 *)
14669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14670 ;;
14671 esac
14672 done
14673
14674 # Fix-up fallback echo if it was mangled by the above quoting rules.
14675 case \$lt_ECHO in
14676 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14677 ;;
14678 esac
14679
14680 ac_aux_dir='$ac_aux_dir'
14681 xsi_shell='$xsi_shell'
14682 lt_shell_append='$lt_shell_append'
14683
14684 # See if we are running on zsh, and set the options which allow our
14685 # commands through without removal of \ escapes INIT.
14686 if test -n "\${ZSH_VERSION+set}" ; then
14687 setopt NO_GLOB_SUBST
14688 fi
14689
14690
14691 PACKAGE='$PACKAGE'
14692 VERSION='$VERSION'
14693 TIMESTAMP='$TIMESTAMP'
14694 RM='$RM'
14695 ofile='$ofile'
14696
14697
14698
14699
14700 _ACEOF
14701
14702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14703
14704 # Handling of arguments.
14705 for ac_config_target in $ac_config_targets
14706 do
14707 case $ac_config_target in
14708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14710 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14712 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14713 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14714 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14715 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14716 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14717 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14718 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14719 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14720 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14721 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14722 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14723 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14724 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14725 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14726 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14727 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14728
14729 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14730 esac
14731 done
14732
14733
14734 # If the user did not use the arguments to specify the items to instantiate,
14735 # then the envvar interface is used. Set only those that are not.
14736 # We use the long form for the default assignment because of an extremely
14737 # bizarre bug on SunOS 4.1.3.
14738 if $ac_need_defaults; then
14739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14742 fi
14743
14744 # Have a temporary directory for convenience. Make it in the build tree
14745 # simply because there is no reason against having it here, and in addition,
14746 # creating and moving files from /tmp can sometimes cause problems.
14747 # Hook for its removal unless debugging.
14748 # Note that there is a small window in which the directory will not be cleaned:
14749 # after its creation but before its name has been assigned to `$tmp'.
14750 $debug ||
14751 {
14752 tmp=
14753 trap 'exit_status=$?
14754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14755 ' 0
14756 trap 'as_fn_exit 1' 1 2 13 15
14757 }
14758 # Create a (secure) tmp directory for tmp files.
14759
14760 {
14761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14762 test -n "$tmp" && test -d "$tmp"
14763 } ||
14764 {
14765 tmp=./conf$$-$RANDOM
14766 (umask 077 && mkdir "$tmp")
14767 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14768
14769 # Set up the scripts for CONFIG_FILES section.
14770 # No need to generate them if there are no CONFIG_FILES.
14771 # This happens for instance with `./config.status config.h'.
14772 if test -n "$CONFIG_FILES"; then
14773
14774
14775 ac_cr=`echo X | tr X '\015'`
14776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14777 # But we know of no other shell where ac_cr would be empty at this
14778 # point, so we can use a bashism as a fallback.
14779 if test "x$ac_cr" = x; then
14780 eval ac_cr=\$\'\\r\'
14781 fi
14782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14784 ac_cs_awk_cr='\r'
14785 else
14786 ac_cs_awk_cr=$ac_cr
14787 fi
14788
14789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14790 _ACEOF
14791
14792
14793 {
14794 echo "cat >conf$$subs.awk <<_ACEOF" &&
14795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14796 echo "_ACEOF"
14797 } >conf$$subs.sh ||
14798 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14799 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14800 ac_delim='%!_!# '
14801 for ac_last_try in false false false false false :; do
14802 . ./conf$$subs.sh ||
14803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14804
14805 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14806 if test $ac_delim_n = $ac_delim_num; then
14807 break
14808 elif $ac_last_try; then
14809 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14810 else
14811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14812 fi
14813 done
14814 rm -f conf$$subs.sh
14815
14816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14817 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14818 _ACEOF
14819 sed -n '
14820 h
14821 s/^/S["/; s/!.*/"]=/
14822 p
14823 g
14824 s/^[^!]*!//
14825 :repl
14826 t repl
14827 s/'"$ac_delim"'$//
14828 t delim
14829 :nl
14830 h
14831 s/\(.\{148\}\).*/\1/
14832 t more1
14833 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14834 p
14835 n
14836 b repl
14837 :more1
14838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14839 p
14840 g
14841 s/.\{148\}//
14842 t nl
14843 :delim
14844 h
14845 s/\(.\{148\}\).*/\1/
14846 t more2
14847 s/["\\]/\\&/g; s/^/"/; s/$/"/
14848 p
14849 b
14850 :more2
14851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14852 p
14853 g
14854 s/.\{148\}//
14855 t delim
14856 ' <conf$$subs.awk | sed '
14857 /^[^""]/{
14858 N
14859 s/\n//
14860 }
14861 ' >>$CONFIG_STATUS || ac_write_fail=1
14862 rm -f conf$$subs.awk
14863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14864 _ACAWK
14865 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14866 for (key in S) S_is_set[key] = 1
14867 FS = ""
14868
14869 }
14870 {
14871 line = $ 0
14872 nfields = split(line, field, "@")
14873 substed = 0
14874 len = length(field[1])
14875 for (i = 2; i < nfields; i++) {
14876 key = field[i]
14877 keylen = length(key)
14878 if (S_is_set[key]) {
14879 value = S[key]
14880 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14881 len += length(value) + length(field[++i])
14882 substed = 1
14883 } else
14884 len += 1 + keylen
14885 }
14886
14887 print line
14888 }
14889
14890 _ACAWK
14891 _ACEOF
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14895 else
14896 cat
14897 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14898 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14899 _ACEOF
14900
14901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14903 # trailing colons and then remove the whole line if VPATH becomes empty
14904 # (actually we leave an empty line to preserve line numbers).
14905 if test "x$srcdir" = x.; then
14906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14907 s/:*\$(srcdir):*/:/
14908 s/:*\${srcdir}:*/:/
14909 s/:*@srcdir@:*/:/
14910 s/^\([^=]*=[ ]*\):*/\1/
14911 s/:*$//
14912 s/^[^=]*=[ ]*$//
14913 }'
14914 fi
14915
14916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917 fi # test -n "$CONFIG_FILES"
14918
14919 # Set up the scripts for CONFIG_HEADERS section.
14920 # No need to generate them if there are no CONFIG_HEADERS.
14921 # This happens for instance with `./config.status Makefile'.
14922 if test -n "$CONFIG_HEADERS"; then
14923 cat >"$tmp/defines.awk" <<\_ACAWK ||
14924 BEGIN {
14925 _ACEOF
14926
14927 # Transform confdefs.h into an awk script `defines.awk', embedded as
14928 # here-document in config.status, that substitutes the proper values into
14929 # config.h.in to produce config.h.
14930
14931 # Create a delimiter string that does not exist in confdefs.h, to ease
14932 # handling of long lines.
14933 ac_delim='%!_!# '
14934 for ac_last_try in false false :; do
14935 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14936 if test -z "$ac_t"; then
14937 break
14938 elif $ac_last_try; then
14939 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14940 else
14941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14942 fi
14943 done
14944
14945 # For the awk script, D is an array of macro values keyed by name,
14946 # likewise P contains macro parameters if any. Preserve backslash
14947 # newline sequences.
14948
14949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14950 sed -n '
14951 s/.\{148\}/&'"$ac_delim"'/g
14952 t rset
14953 :rset
14954 s/^[ ]*#[ ]*define[ ][ ]*/ /
14955 t def
14956 d
14957 :def
14958 s/\\$//
14959 t bsnl
14960 s/["\\]/\\&/g
14961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14962 D["\1"]=" \3"/p
14963 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14964 d
14965 :bsnl
14966 s/["\\]/\\&/g
14967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14968 D["\1"]=" \3\\\\\\n"\\/p
14969 t cont
14970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14971 t cont
14972 d
14973 :cont
14974 n
14975 s/.\{148\}/&'"$ac_delim"'/g
14976 t clear
14977 :clear
14978 s/\\$//
14979 t bsnlc
14980 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14981 d
14982 :bsnlc
14983 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14984 b cont
14985 ' <confdefs.h | sed '
14986 s/'"$ac_delim"'/"\\\
14987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14988
14989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14990 for (key in D) D_is_set[key] = 1
14991 FS = ""
14992 }
14993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14994 line = \$ 0
14995 split(line, arg, " ")
14996 if (arg[1] == "#") {
14997 defundef = arg[2]
14998 mac1 = arg[3]
14999 } else {
15000 defundef = substr(arg[1], 2)
15001 mac1 = arg[2]
15002 }
15003 split(mac1, mac2, "(") #)
15004 macro = mac2[1]
15005 prefix = substr(line, 1, index(line, defundef) - 1)
15006 if (D_is_set[macro]) {
15007 # Preserve the white space surrounding the "#".
15008 print prefix "define", macro P[macro] D[macro]
15009 next
15010 } else {
15011 # Replace #undef with comments. This is necessary, for example,
15012 # in the case of _POSIX_SOURCE, which is predefined and required
15013 # on some systems where configure will not decide to define it.
15014 if (defundef == "undef") {
15015 print "/*", prefix defundef, macro, "*/"
15016 next
15017 }
15018 }
15019 }
15020 { print }
15021 _ACAWK
15022 _ACEOF
15023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15024 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15025 fi # test -n "$CONFIG_HEADERS"
15026
15027
15028 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15029 shift
15030 for ac_tag
15031 do
15032 case $ac_tag in
15033 :[FHLC]) ac_mode=$ac_tag; continue;;
15034 esac
15035 case $ac_mode$ac_tag in
15036 :[FHL]*:*);;
15037 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15038 :[FH]-) ac_tag=-:-;;
15039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15040 esac
15041 ac_save_IFS=$IFS
15042 IFS=:
15043 set x $ac_tag
15044 IFS=$ac_save_IFS
15045 shift
15046 ac_file=$1
15047 shift
15048
15049 case $ac_mode in
15050 :L) ac_source=$1;;
15051 :[FH])
15052 ac_file_inputs=
15053 for ac_f
15054 do
15055 case $ac_f in
15056 -) ac_f="$tmp/stdin";;
15057 *) # Look for the file first in the build tree, then in the source tree
15058 # (if the path is not absolute). The absolute path cannot be DOS-style,
15059 # because $ac_f cannot contain `:'.
15060 test -f "$ac_f" ||
15061 case $ac_f in
15062 [\\/$]*) false;;
15063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15064 esac ||
15065 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15066 esac
15067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15068 as_fn_append ac_file_inputs " '$ac_f'"
15069 done
15070
15071 # Let's still pretend it is `configure' which instantiates (i.e., don't
15072 # use $as_me), people would be surprised to read:
15073 # /* config.h. Generated by config.status. */
15074 configure_input='Generated from '`
15075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15076 `' by configure.'
15077 if test x"$ac_file" != x-; then
15078 configure_input="$ac_file. $configure_input"
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15080 $as_echo "$as_me: creating $ac_file" >&6;}
15081 fi
15082 # Neutralize special characters interpreted by sed in replacement strings.
15083 case $configure_input in #(
15084 *\&* | *\|* | *\\* )
15085 ac_sed_conf_input=`$as_echo "$configure_input" |
15086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15087 *) ac_sed_conf_input=$configure_input;;
15088 esac
15089
15090 case $ac_tag in
15091 *:-:* | *:-) cat >"$tmp/stdin" \
15092 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15093 esac
15094 ;;
15095 esac
15096
15097 ac_dir=`$as_dirname -- "$ac_file" ||
15098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15099 X"$ac_file" : 'X\(//\)[^/]' \| \
15100 X"$ac_file" : 'X\(//\)$' \| \
15101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15102 $as_echo X"$ac_file" |
15103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15104 s//\1/
15105 q
15106 }
15107 /^X\(\/\/\)[^/].*/{
15108 s//\1/
15109 q
15110 }
15111 /^X\(\/\/\)$/{
15112 s//\1/
15113 q
15114 }
15115 /^X\(\/\).*/{
15116 s//\1/
15117 q
15118 }
15119 s/.*/./; q'`
15120 as_dir="$ac_dir"; as_fn_mkdir_p
15121 ac_builddir=.
15122
15123 case "$ac_dir" in
15124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15125 *)
15126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15127 # A ".." for each directory in $ac_dir_suffix.
15128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15129 case $ac_top_builddir_sub in
15130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15132 esac ;;
15133 esac
15134 ac_abs_top_builddir=$ac_pwd
15135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15136 # for backward compatibility:
15137 ac_top_builddir=$ac_top_build_prefix
15138
15139 case $srcdir in
15140 .) # We are building in place.
15141 ac_srcdir=.
15142 ac_top_srcdir=$ac_top_builddir_sub
15143 ac_abs_top_srcdir=$ac_pwd ;;
15144 [\\/]* | ?:[\\/]* ) # Absolute name.
15145 ac_srcdir=$srcdir$ac_dir_suffix;
15146 ac_top_srcdir=$srcdir
15147 ac_abs_top_srcdir=$srcdir ;;
15148 *) # Relative name.
15149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15150 ac_top_srcdir=$ac_top_build_prefix$srcdir
15151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15152 esac
15153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15154
15155
15156 case $ac_mode in
15157 :F)
15158 #
15159 # CONFIG_FILE
15160 #
15161
15162 case $INSTALL in
15163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15165 esac
15166 ac_MKDIR_P=$MKDIR_P
15167 case $MKDIR_P in
15168 [\\/$]* | ?:[\\/]* ) ;;
15169 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15170 esac
15171 _ACEOF
15172
15173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 # If the template does not know about datarootdir, expand it.
15175 # FIXME: This hack should be removed a few years after 2.60.
15176 ac_datarootdir_hack=; ac_datarootdir_seen=
15177 ac_sed_dataroot='
15178 /datarootdir/ {
15179 p
15180 q
15181 }
15182 /@datadir@/p
15183 /@docdir@/p
15184 /@infodir@/p
15185 /@localedir@/p
15186 /@mandir@/p'
15187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15188 *datarootdir*) ac_datarootdir_seen=yes;;
15189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15192 _ACEOF
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 ac_datarootdir_hack='
15195 s&@datadir@&$datadir&g
15196 s&@docdir@&$docdir&g
15197 s&@infodir@&$infodir&g
15198 s&@localedir@&$localedir&g
15199 s&@mandir@&$mandir&g
15200 s&\\\${datarootdir}&$datarootdir&g' ;;
15201 esac
15202 _ACEOF
15203
15204 # Neutralize VPATH when `$srcdir' = `.'.
15205 # Shell code in configure.ac might set extrasub.
15206 # FIXME: do we really want to maintain this feature?
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 ac_sed_extra="$ac_vpsub
15209 $extrasub
15210 _ACEOF
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 :t
15213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15214 s|@configure_input@|$ac_sed_conf_input|;t t
15215 s&@top_builddir@&$ac_top_builddir_sub&;t t
15216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15217 s&@srcdir@&$ac_srcdir&;t t
15218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15219 s&@top_srcdir@&$ac_top_srcdir&;t t
15220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15221 s&@builddir@&$ac_builddir&;t t
15222 s&@abs_builddir@&$ac_abs_builddir&;t t
15223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15224 s&@INSTALL@&$ac_INSTALL&;t t
15225 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15226 $ac_datarootdir_hack
15227 "
15228 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15229 || as_fn_error "could not create $ac_file" "$LINENO" 5
15230
15231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15232 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15235 which seems to be undefined. Please make sure it is defined." >&5
15236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15237 which seems to be undefined. Please make sure it is defined." >&2;}
15238
15239 rm -f "$tmp/stdin"
15240 case $ac_file in
15241 -) cat "$tmp/out" && rm -f "$tmp/out";;
15242 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15243 esac \
15244 || as_fn_error "could not create $ac_file" "$LINENO" 5
15245 ;;
15246 :H)
15247 #
15248 # CONFIG_HEADER
15249 #
15250 if test x"$ac_file" != x-; then
15251 {
15252 $as_echo "/* $configure_input */" \
15253 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15254 } >"$tmp/config.h" \
15255 || as_fn_error "could not create $ac_file" "$LINENO" 5
15256 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15259 else
15260 rm -f "$ac_file"
15261 mv "$tmp/config.h" "$ac_file" \
15262 || as_fn_error "could not create $ac_file" "$LINENO" 5
15263 fi
15264 else
15265 $as_echo "/* $configure_input */" \
15266 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15267 || as_fn_error "could not create -" "$LINENO" 5
15268 fi
15269 # Compute "$ac_file"'s index in $config_headers.
15270 _am_arg="$ac_file"
15271 _am_stamp_count=1
15272 for _am_header in $config_headers :; do
15273 case $_am_header in
15274 $_am_arg | $_am_arg:* )
15275 break ;;
15276 * )
15277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15278 esac
15279 done
15280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282 X"$_am_arg" : 'X\(//\)[^/]' \| \
15283 X"$_am_arg" : 'X\(//\)$' \| \
15284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15285 $as_echo X"$_am_arg" |
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15287 s//\1/
15288 q
15289 }
15290 /^X\(\/\/\)[^/].*/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\/\)$/{
15295 s//\1/
15296 q
15297 }
15298 /^X\(\/\).*/{
15299 s//\1/
15300 q
15301 }
15302 s/.*/./; q'`/stamp-h$_am_stamp_count
15303 ;;
15304
15305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15306 $as_echo "$as_me: executing $ac_file commands" >&6;}
15307 ;;
15308 esac
15309
15310
15311 case $ac_file$ac_mode in
15312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15313 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15314 # are listed without --file. Let's play safe and only enable the eval
15315 # if we detect the quoting.
15316 case $CONFIG_FILES in
15317 *\'*) eval set x "$CONFIG_FILES" ;;
15318 *) set x $CONFIG_FILES ;;
15319 esac
15320 shift
15321 for mf
15322 do
15323 # Strip MF so we end up with the name of the file.
15324 mf=`echo "$mf" | sed -e 's/:.*$//'`
15325 # Check whether this is an Automake generated Makefile or not.
15326 # We used to match only the files named `Makefile.in', but
15327 # some people rename them; so instead we look at the file content.
15328 # Grep'ing the first line is not enough: some people post-process
15329 # each Makefile.in and add a new line on top of each file to say so.
15330 # Grep'ing the whole file is not good either: AIX grep has a line
15331 # limit of 2048, but all sed's we know have understand at least 4000.
15332 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15333 dirpart=`$as_dirname -- "$mf" ||
15334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15335 X"$mf" : 'X\(//\)[^/]' \| \
15336 X"$mf" : 'X\(//\)$' \| \
15337 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15338 $as_echo X"$mf" |
15339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\/\)[^/].*/{
15344 s//\1/
15345 q
15346 }
15347 /^X\(\/\/\)$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\(\/\).*/{
15352 s//\1/
15353 q
15354 }
15355 s/.*/./; q'`
15356 else
15357 continue
15358 fi
15359 # Extract the definition of DEPDIR, am__include, and am__quote
15360 # from the Makefile without running `make'.
15361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15362 test -z "$DEPDIR" && continue
15363 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15364 test -z "am__include" && continue
15365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15366 # When using ansi2knr, U may be empty or an underscore; expand it
15367 U=`sed -n 's/^U = //p' < "$mf"`
15368 # Find all dependency output files, they are included files with
15369 # $(DEPDIR) in their names. We invoke sed twice because it is the
15370 # simplest approach to changing $(DEPDIR) to its actual value in the
15371 # expansion.
15372 for file in `sed -n "
15373 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15374 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15375 # Make sure the directory exists.
15376 test -f "$dirpart/$file" && continue
15377 fdir=`$as_dirname -- "$file" ||
15378 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15379 X"$file" : 'X\(//\)[^/]' \| \
15380 X"$file" : 'X\(//\)$' \| \
15381 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15382 $as_echo X"$file" |
15383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15384 s//\1/
15385 q
15386 }
15387 /^X\(\/\/\)[^/].*/{
15388 s//\1/
15389 q
15390 }
15391 /^X\(\/\/\)$/{
15392 s//\1/
15393 q
15394 }
15395 /^X\(\/\).*/{
15396 s//\1/
15397 q
15398 }
15399 s/.*/./; q'`
15400 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15401 # echo "creating $dirpart/$file"
15402 echo '# dummy' > "$dirpart/$file"
15403 done
15404 done
15405 }
15406 ;;
15407 "libtool":C)
15408
15409 # See if we are running on zsh, and set the options which allow our
15410 # commands through without removal of \ escapes.
15411 if test -n "${ZSH_VERSION+set}" ; then
15412 setopt NO_GLOB_SUBST
15413 fi
15414
15415 cfgfile="${ofile}T"
15416 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15417 $RM "$cfgfile"
15418
15419 cat <<_LT_EOF >> "$cfgfile"
15420 #! $SHELL
15421
15422 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15423 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15425 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15426 #
15427 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15428 # 2006, 2007, 2008 Free Software Foundation, Inc.
15429 # Written by Gordon Matzigkeit, 1996
15430 #
15431 # This file is part of GNU Libtool.
15432 #
15433 # GNU Libtool is free software; you can redistribute it and/or
15434 # modify it under the terms of the GNU General Public License as
15435 # published by the Free Software Foundation; either version 2 of
15436 # the License, or (at your option) any later version.
15437 #
15438 # As a special exception to the GNU General Public License,
15439 # if you distribute this file as part of a program or library that
15440 # is built using GNU Libtool, you may include this file under the
15441 # same distribution terms that you use for the rest of that program.
15442 #
15443 # GNU Libtool is distributed in the hope that it will be useful,
15444 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15445 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15446 # GNU General Public License for more details.
15447 #
15448 # You should have received a copy of the GNU General Public License
15449 # along with GNU Libtool; see the file COPYING. If not, a copy
15450 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15451 # obtained by writing to the Free Software Foundation, Inc.,
15452 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15453
15454
15455 # The names of the tagged configurations supported by this script.
15456 available_tags=""
15457
15458 # ### BEGIN LIBTOOL CONFIG
15459
15460 # Which release of libtool.m4 was used?
15461 macro_version=$macro_version
15462 macro_revision=$macro_revision
15463
15464 # Whether or not to build static libraries.
15465 build_old_libs=$enable_static
15466
15467 # Whether or not to build shared libraries.
15468 build_libtool_libs=$enable_shared
15469
15470 # What type of objects to build.
15471 pic_mode=$pic_mode
15472
15473 # Whether or not to optimize for fast installation.
15474 fast_install=$enable_fast_install
15475
15476 # The host system.
15477 host_alias=$host_alias
15478 host=$host
15479 host_os=$host_os
15480
15481 # The build system.
15482 build_alias=$build_alias
15483 build=$build
15484 build_os=$build_os
15485
15486 # A sed program that does not truncate output.
15487 SED=$lt_SED
15488
15489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15490 Xsed="\$SED -e 1s/^X//"
15491
15492 # A grep program that handles long lines.
15493 GREP=$lt_GREP
15494
15495 # An ERE matcher.
15496 EGREP=$lt_EGREP
15497
15498 # A literal string matcher.
15499 FGREP=$lt_FGREP
15500
15501 # A BSD- or MS-compatible name lister.
15502 NM=$lt_NM
15503
15504 # Whether we need soft or hard links.
15505 LN_S=$lt_LN_S
15506
15507 # What is the maximum length of a command?
15508 max_cmd_len=$max_cmd_len
15509
15510 # Object file suffix (normally "o").
15511 objext=$ac_objext
15512
15513 # Executable file suffix (normally "").
15514 exeext=$exeext
15515
15516 # whether the shell understands "unset".
15517 lt_unset=$lt_unset
15518
15519 # turn spaces into newlines.
15520 SP2NL=$lt_lt_SP2NL
15521
15522 # turn newlines into spaces.
15523 NL2SP=$lt_lt_NL2SP
15524
15525 # How to create reloadable object files.
15526 reload_flag=$lt_reload_flag
15527 reload_cmds=$lt_reload_cmds
15528
15529 # An object symbol dumper.
15530 OBJDUMP=$lt_OBJDUMP
15531
15532 # Method to check whether dependent libraries are shared objects.
15533 deplibs_check_method=$lt_deplibs_check_method
15534
15535 # Command to use when deplibs_check_method == "file_magic".
15536 file_magic_cmd=$lt_file_magic_cmd
15537
15538 # The archiver.
15539 AR=$lt_AR
15540 AR_FLAGS=$lt_AR_FLAGS
15541
15542 # A symbol stripping program.
15543 STRIP=$lt_STRIP
15544
15545 # Commands used to install an old-style archive.
15546 RANLIB=$lt_RANLIB
15547 old_postinstall_cmds=$lt_old_postinstall_cmds
15548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15549
15550 # A C compiler.
15551 LTCC=$lt_CC
15552
15553 # LTCC compiler flags.
15554 LTCFLAGS=$lt_CFLAGS
15555
15556 # Take the output of nm and produce a listing of raw symbols and C names.
15557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15558
15559 # Transform the output of nm in a proper C declaration.
15560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15561
15562 # Transform the output of nm in a C name address pair.
15563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15564
15565 # Transform the output of nm in a C name address pair when lib prefix is needed.
15566 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15567
15568 # The name of the directory that contains temporary libtool files.
15569 objdir=$objdir
15570
15571 # Shell to use when invoking shell scripts.
15572 SHELL=$lt_SHELL
15573
15574 # An echo program that does not interpret backslashes.
15575 ECHO=$lt_ECHO
15576
15577 # Used to examine libraries when file_magic_cmd begins with "file".
15578 MAGIC_CMD=$MAGIC_CMD
15579
15580 # Must we lock files when doing compilation?
15581 need_locks=$lt_need_locks
15582
15583 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15584 DSYMUTIL=$lt_DSYMUTIL
15585
15586 # Tool to change global to local symbols on Mac OS X.
15587 NMEDIT=$lt_NMEDIT
15588
15589 # Tool to manipulate fat objects and archives on Mac OS X.
15590 LIPO=$lt_LIPO
15591
15592 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15593 OTOOL=$lt_OTOOL
15594
15595 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15596 OTOOL64=$lt_OTOOL64
15597
15598 # Old archive suffix (normally "a").
15599 libext=$libext
15600
15601 # Shared library suffix (normally ".so").
15602 shrext_cmds=$lt_shrext_cmds
15603
15604 # The commands to extract the exported symbol list from a shared archive.
15605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15606
15607 # Variables whose values should be saved in libtool wrapper scripts and
15608 # restored at link time.
15609 variables_saved_for_relink=$lt_variables_saved_for_relink
15610
15611 # Do we need the "lib" prefix for modules?
15612 need_lib_prefix=$need_lib_prefix
15613
15614 # Do we need a version for libraries?
15615 need_version=$need_version
15616
15617 # Library versioning type.
15618 version_type=$version_type
15619
15620 # Shared library runtime path variable.
15621 runpath_var=$runpath_var
15622
15623 # Shared library path variable.
15624 shlibpath_var=$shlibpath_var
15625
15626 # Is shlibpath searched before the hard-coded library search path?
15627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15628
15629 # Format of library name prefix.
15630 libname_spec=$lt_libname_spec
15631
15632 # List of archive names. First name is the real one, the rest are links.
15633 # The last name is the one that the linker finds with -lNAME
15634 library_names_spec=$lt_library_names_spec
15635
15636 # The coded name of the library, if different from the real name.
15637 soname_spec=$lt_soname_spec
15638
15639 # Command to use after installation of a shared archive.
15640 postinstall_cmds=$lt_postinstall_cmds
15641
15642 # Command to use after uninstallation of a shared archive.
15643 postuninstall_cmds=$lt_postuninstall_cmds
15644
15645 # Commands used to finish a libtool library installation in a directory.
15646 finish_cmds=$lt_finish_cmds
15647
15648 # As "finish_cmds", except a single script fragment to be evaled but
15649 # not shown.
15650 finish_eval=$lt_finish_eval
15651
15652 # Whether we should hardcode library paths into libraries.
15653 hardcode_into_libs=$hardcode_into_libs
15654
15655 # Compile-time system search path for libraries.
15656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15657
15658 # Run-time system search path for libraries.
15659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15660
15661 # Whether dlopen is supported.
15662 dlopen_support=$enable_dlopen
15663
15664 # Whether dlopen of programs is supported.
15665 dlopen_self=$enable_dlopen_self
15666
15667 # Whether dlopen of statically linked programs is supported.
15668 dlopen_self_static=$enable_dlopen_self_static
15669
15670 # Commands to strip libraries.
15671 old_striplib=$lt_old_striplib
15672 striplib=$lt_striplib
15673
15674
15675 # The linker used to build libraries.
15676 LD=$lt_LD
15677
15678 # Commands used to build an old-style archive.
15679 old_archive_cmds=$lt_old_archive_cmds
15680
15681 # A language specific compiler.
15682 CC=$lt_compiler
15683
15684 # Is the compiler the GNU compiler?
15685 with_gcc=$GCC
15686
15687 # Compiler flag to turn off builtin functions.
15688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15689
15690 # How to pass a linker flag through the compiler.
15691 wl=$lt_lt_prog_compiler_wl
15692
15693 # Additional compiler flags for building library objects.
15694 pic_flag=$lt_lt_prog_compiler_pic
15695
15696 # Compiler flag to prevent dynamic linking.
15697 link_static_flag=$lt_lt_prog_compiler_static
15698
15699 # Does compiler simultaneously support -c and -o options?
15700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15701
15702 # Whether or not to add -lc for building shared libraries.
15703 build_libtool_need_lc=$archive_cmds_need_lc
15704
15705 # Whether or not to disallow shared libs when runtime libs are static.
15706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15707
15708 # Compiler flag to allow reflexive dlopens.
15709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15710
15711 # Compiler flag to generate shared objects directly from archives.
15712 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15713
15714 # Whether the compiler copes with passing no objects directly.
15715 compiler_needs_object=$lt_compiler_needs_object
15716
15717 # Create an old-style archive from a shared archive.
15718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15719
15720 # Create a temporary old-style archive to link instead of a shared archive.
15721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15722
15723 # Commands used to build a shared archive.
15724 archive_cmds=$lt_archive_cmds
15725 archive_expsym_cmds=$lt_archive_expsym_cmds
15726
15727 # Commands used to build a loadable module if different from building
15728 # a shared archive.
15729 module_cmds=$lt_module_cmds
15730 module_expsym_cmds=$lt_module_expsym_cmds
15731
15732 # Whether we are building with GNU ld or not.
15733 with_gnu_ld=$lt_with_gnu_ld
15734
15735 # Flag that allows shared libraries with undefined symbols to be built.
15736 allow_undefined_flag=$lt_allow_undefined_flag
15737
15738 # Flag that enforces no undefined symbols.
15739 no_undefined_flag=$lt_no_undefined_flag
15740
15741 # Flag to hardcode \$libdir into a binary during linking.
15742 # This must work even if \$libdir does not exist
15743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15744
15745 # If ld is used when linking, flag to hardcode \$libdir into a binary
15746 # during linking. This must work even if \$libdir does not exist.
15747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15748
15749 # Whether we need a single "-rpath" flag with a separated argument.
15750 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15751
15752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15753 # DIR into the resulting binary.
15754 hardcode_direct=$hardcode_direct
15755
15756 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15757 # DIR into the resulting binary and the resulting library dependency is
15758 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15759 # library is relocated.
15760 hardcode_direct_absolute=$hardcode_direct_absolute
15761
15762 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15763 # into the resulting binary.
15764 hardcode_minus_L=$hardcode_minus_L
15765
15766 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15767 # into the resulting binary.
15768 hardcode_shlibpath_var=$hardcode_shlibpath_var
15769
15770 # Set to "yes" if building a shared library automatically hardcodes DIR
15771 # into the library and all subsequent libraries and executables linked
15772 # against it.
15773 hardcode_automatic=$hardcode_automatic
15774
15775 # Set to yes if linker adds runtime paths of dependent libraries
15776 # to runtime path list.
15777 inherit_rpath=$inherit_rpath
15778
15779 # Whether libtool must link a program against all its dependency libraries.
15780 link_all_deplibs=$link_all_deplibs
15781
15782 # Fix the shell variable \$srcfile for the compiler.
15783 fix_srcfile_path=$lt_fix_srcfile_path
15784
15785 # Set to "yes" if exported symbols are required.
15786 always_export_symbols=$always_export_symbols
15787
15788 # The commands to list exported symbols.
15789 export_symbols_cmds=$lt_export_symbols_cmds
15790
15791 # Symbols that should not be listed in the preloaded symbols.
15792 exclude_expsyms=$lt_exclude_expsyms
15793
15794 # Symbols that must always be exported.
15795 include_expsyms=$lt_include_expsyms
15796
15797 # Commands necessary for linking programs (against libraries) with templates.
15798 prelink_cmds=$lt_prelink_cmds
15799
15800 # Specify filename containing input files.
15801 file_list_spec=$lt_file_list_spec
15802
15803 # How to hardcode a shared library path into an executable.
15804 hardcode_action=$hardcode_action
15805
15806 # ### END LIBTOOL CONFIG
15807
15808 _LT_EOF
15809
15810 case $host_os in
15811 aix3*)
15812 cat <<\_LT_EOF >> "$cfgfile"
15813 # AIX sometimes has problems with the GCC collect2 program. For some
15814 # reason, if we set the COLLECT_NAMES environment variable, the problems
15815 # vanish in a puff of smoke.
15816 if test "X${COLLECT_NAMES+set}" != Xset; then
15817 COLLECT_NAMES=
15818 export COLLECT_NAMES
15819 fi
15820 _LT_EOF
15821 ;;
15822 esac
15823
15824
15825 ltmain="$ac_aux_dir/ltmain.sh"
15826
15827
15828 # We use sed instead of cat because bash on DJGPP gets confused if
15829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15830 # text mode, it properly converts lines to CR/LF. This bash problem
15831 # is reportedly fixed, but why not run on old versions too?
15832 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15833 || (rm -f "$cfgfile"; exit 1)
15834
15835 case $xsi_shell in
15836 yes)
15837 cat << \_LT_EOF >> "$cfgfile"
15838
15839 # func_dirname file append nondir_replacement
15840 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15841 # otherwise set result to NONDIR_REPLACEMENT.
15842 func_dirname ()
15843 {
15844 case ${1} in
15845 */*) func_dirname_result="${1%/*}${2}" ;;
15846 * ) func_dirname_result="${3}" ;;
15847 esac
15848 }
15849
15850 # func_basename file
15851 func_basename ()
15852 {
15853 func_basename_result="${1##*/}"
15854 }
15855
15856 # func_dirname_and_basename file append nondir_replacement
15857 # perform func_basename and func_dirname in a single function
15858 # call:
15859 # dirname: Compute the dirname of FILE. If nonempty,
15860 # add APPEND to the result, otherwise set result
15861 # to NONDIR_REPLACEMENT.
15862 # value returned in "$func_dirname_result"
15863 # basename: Compute filename of FILE.
15864 # value retuned in "$func_basename_result"
15865 # Implementation must be kept synchronized with func_dirname
15866 # and func_basename. For efficiency, we do not delegate to
15867 # those functions but instead duplicate the functionality here.
15868 func_dirname_and_basename ()
15869 {
15870 case ${1} in
15871 */*) func_dirname_result="${1%/*}${2}" ;;
15872 * ) func_dirname_result="${3}" ;;
15873 esac
15874 func_basename_result="${1##*/}"
15875 }
15876
15877 # func_stripname prefix suffix name
15878 # strip PREFIX and SUFFIX off of NAME.
15879 # PREFIX and SUFFIX must not contain globbing or regex special
15880 # characters, hashes, percent signs, but SUFFIX may contain a leading
15881 # dot (in which case that matches only a dot).
15882 func_stripname ()
15883 {
15884 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15885 # positional parameters, so assign one to ordinary parameter first.
15886 func_stripname_result=${3}
15887 func_stripname_result=${func_stripname_result#"${1}"}
15888 func_stripname_result=${func_stripname_result%"${2}"}
15889 }
15890
15891 # func_opt_split
15892 func_opt_split ()
15893 {
15894 func_opt_split_opt=${1%%=*}
15895 func_opt_split_arg=${1#*=}
15896 }
15897
15898 # func_lo2o object
15899 func_lo2o ()
15900 {
15901 case ${1} in
15902 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15903 *) func_lo2o_result=${1} ;;
15904 esac
15905 }
15906
15907 # func_xform libobj-or-source
15908 func_xform ()
15909 {
15910 func_xform_result=${1%.*}.lo
15911 }
15912
15913 # func_arith arithmetic-term...
15914 func_arith ()
15915 {
15916 func_arith_result=$(( $* ))
15917 }
15918
15919 # func_len string
15920 # STRING may not start with a hyphen.
15921 func_len ()
15922 {
15923 func_len_result=${#1}
15924 }
15925
15926 _LT_EOF
15927 ;;
15928 *) # Bourne compatible functions.
15929 cat << \_LT_EOF >> "$cfgfile"
15930
15931 # func_dirname file append nondir_replacement
15932 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15933 # otherwise set result to NONDIR_REPLACEMENT.
15934 func_dirname ()
15935 {
15936 # Extract subdirectory from the argument.
15937 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15938 if test "X$func_dirname_result" = "X${1}"; then
15939 func_dirname_result="${3}"
15940 else
15941 func_dirname_result="$func_dirname_result${2}"
15942 fi
15943 }
15944
15945 # func_basename file
15946 func_basename ()
15947 {
15948 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15949 }
15950
15951
15952 # func_stripname prefix suffix name
15953 # strip PREFIX and SUFFIX off of NAME.
15954 # PREFIX and SUFFIX must not contain globbing or regex special
15955 # characters, hashes, percent signs, but SUFFIX may contain a leading
15956 # dot (in which case that matches only a dot).
15957 # func_strip_suffix prefix name
15958 func_stripname ()
15959 {
15960 case ${2} in
15961 .*) func_stripname_result=`$ECHO "X${3}" \
15962 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15963 *) func_stripname_result=`$ECHO "X${3}" \
15964 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15965 esac
15966 }
15967
15968 # sed scripts:
15969 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15970 my_sed_long_arg='1s/^-[^=]*=//'
15971
15972 # func_opt_split
15973 func_opt_split ()
15974 {
15975 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15976 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15977 }
15978
15979 # func_lo2o object
15980 func_lo2o ()
15981 {
15982 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15983 }
15984
15985 # func_xform libobj-or-source
15986 func_xform ()
15987 {
15988 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15989 }
15990
15991 # func_arith arithmetic-term...
15992 func_arith ()
15993 {
15994 func_arith_result=`expr "$@"`
15995 }
15996
15997 # func_len string
15998 # STRING may not start with a hyphen.
15999 func_len ()
16000 {
16001 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16002 }
16003
16004 _LT_EOF
16005 esac
16006
16007 case $lt_shell_append in
16008 yes)
16009 cat << \_LT_EOF >> "$cfgfile"
16010
16011 # func_append var value
16012 # Append VALUE to the end of shell variable VAR.
16013 func_append ()
16014 {
16015 eval "$1+=\$2"
16016 }
16017 _LT_EOF
16018 ;;
16019 *)
16020 cat << \_LT_EOF >> "$cfgfile"
16021
16022 # func_append var value
16023 # Append VALUE to the end of shell variable VAR.
16024 func_append ()
16025 {
16026 eval "$1=\$$1\$2"
16027 }
16028
16029 _LT_EOF
16030 ;;
16031 esac
16032
16033
16034 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16035 || (rm -f "$cfgfile"; exit 1)
16036
16037 mv -f "$cfgfile" "$ofile" ||
16038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16039 chmod +x "$ofile"
16040
16041 ;;
16042
16043 esac
16044 done # for ac_tag
16045
16046
16047 as_fn_exit 0
16048 _ACEOF
16049 ac_clean_files=$ac_clean_files_save
16050
16051 test $ac_write_fail = 0 ||
16052 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16053
16054
16055 # configure is writing to config.log, and then calls config.status.
16056 # config.status does its own redirection, appending to config.log.
16057 # Unfortunately, on DOS this fails, as config.log is still kept open
16058 # by configure, so config.status won't be able to write to it; its
16059 # output is simply discarded. So we exec the FD to /dev/null,
16060 # effectively closing config.log, so it can be properly (re)opened and
16061 # appended to by config.status. When coming back to configure, we
16062 # need to make the FD available again.
16063 if test "$no_create" != yes; then
16064 ac_cs_success=:
16065 ac_config_status_args=
16066 test "$silent" = yes &&
16067 ac_config_status_args="$ac_config_status_args --quiet"
16068 exec 5>/dev/null
16069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16070 exec 5>>config.log
16071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16072 # would make configure fail if this is the last instruction.
16073 $ac_cs_success || as_fn_exit $?
16074 fi
16075
16076 #
16077 # CONFIG_SUBDIRS section.
16078 #
16079 if test "$no_recursion" != yes; then
16080
16081 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16082 # so they do not pile up.
16083 ac_sub_configure_args=
16084 ac_prev=
16085 eval "set x $ac_configure_args"
16086 shift
16087 for ac_arg
16088 do
16089 if test -n "$ac_prev"; then
16090 ac_prev=
16091 continue
16092 fi
16093 case $ac_arg in
16094 -cache-file | --cache-file | --cache-fil | --cache-fi \
16095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16096 ac_prev=cache_file ;;
16097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16099 | --c=*)
16100 ;;
16101 --config-cache | -C)
16102 ;;
16103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16104 ac_prev=srcdir ;;
16105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16106 ;;
16107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16108 ac_prev=prefix ;;
16109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16110 ;;
16111 --disable-option-checking)
16112 ;;
16113 *)
16114 case $ac_arg in
16115 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16116 esac
16117 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16118 esac
16119 done
16120
16121 # Always prepend --prefix to ensure using the same prefix
16122 # in subdir configurations.
16123 ac_arg="--prefix=$prefix"
16124 case $ac_arg in
16125 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16126 esac
16127 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16128
16129 # Pass --silent
16130 if test "$silent" = yes; then
16131 ac_sub_configure_args="--silent $ac_sub_configure_args"
16132 fi
16133
16134 # Always prepend --disable-option-checking to silence warnings, since
16135 # different subdirs can have different --enable and --with options.
16136 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16137
16138 ac_popdir=`pwd`
16139 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16140
16141 # Do not complain, so a configure script can configure whichever
16142 # parts of a large source tree are present.
16143 test -d "$srcdir/$ac_dir" || continue
16144
16145 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16146 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16147 $as_echo "$ac_msg" >&6
16148 as_dir="$ac_dir"; as_fn_mkdir_p
16149 ac_builddir=.
16150
16151 case "$ac_dir" in
16152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16153 *)
16154 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16155 # A ".." for each directory in $ac_dir_suffix.
16156 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16157 case $ac_top_builddir_sub in
16158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16160 esac ;;
16161 esac
16162 ac_abs_top_builddir=$ac_pwd
16163 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16164 # for backward compatibility:
16165 ac_top_builddir=$ac_top_build_prefix
16166
16167 case $srcdir in
16168 .) # We are building in place.
16169 ac_srcdir=.
16170 ac_top_srcdir=$ac_top_builddir_sub
16171 ac_abs_top_srcdir=$ac_pwd ;;
16172 [\\/]* | ?:[\\/]* ) # Absolute name.
16173 ac_srcdir=$srcdir$ac_dir_suffix;
16174 ac_top_srcdir=$srcdir
16175 ac_abs_top_srcdir=$srcdir ;;
16176 *) # Relative name.
16177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16178 ac_top_srcdir=$ac_top_build_prefix$srcdir
16179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16180 esac
16181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16182
16183
16184 cd "$ac_dir"
16185
16186 # Check for guested configure; otherwise get Cygnus style configure.
16187 if test -f "$ac_srcdir/configure.gnu"; then
16188 ac_sub_configure=$ac_srcdir/configure.gnu
16189 elif test -f "$ac_srcdir/configure"; then
16190 ac_sub_configure=$ac_srcdir/configure
16191 elif test -f "$ac_srcdir/configure.in"; then
16192 # This should be Cygnus configure.
16193 ac_sub_configure=$ac_aux_dir/configure
16194 else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16196 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16197 ac_sub_configure=
16198 fi
16199
16200 # The recursion is here.
16201 if test -n "$ac_sub_configure"; then
16202 # Make the cache file name correct relative to the subdirectory.
16203 case $cache_file in
16204 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16205 *) # Relative name.
16206 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16207 esac
16208
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16210 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16211 # The eval makes quoting arguments work.
16212 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16213 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16214 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16215 fi
16216
16217 cd "$ac_popdir"
16218 done
16219 fi
16220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16223 fi
16224

Properties

Name Value
svn:executable *