ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1092
Committed: Thu Mar 25 11:10:59 2010 UTC (16 years, 6 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 463118 byte(s)
Log Message:
- Switch libltdl to recursive build mode

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1090 2010-03-24 22:37:53Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.3-rc1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 else
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: bugs@ircd-hybrid.org about your system, including any
236 $0: error possibly output before this message. Then install
237 $0: a modern shell, or manually run the script under such a
238 $0: shell if you do have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533 lt_ltdl_dir='libltdl'
534
535
536 # Check that we are running under the correct shell.
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539 case X$lt_ECHO in
540 X*--fallback-echo)
541 # Remove one level of quotation (which was required for Make).
542 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543 ;;
544 esac
545
546 ECHO=${lt_ECHO-echo}
547 if test "X$1" = X--no-reexec; then
548 # Discard the --no-reexec flag, and continue.
549 shift
550 elif test "X$1" = X--fallback-echo; then
551 # Avoid inline document here, it may be left over
552 :
553 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
554 # Yippee, $ECHO works!
555 :
556 else
557 # Restart under the correct shell.
558 exec $SHELL "$0" --no-reexec ${1+"$@"}
559 fi
560
561 if test "X$1" = X--fallback-echo; then
562 # used as fallback echo
563 shift
564 cat <<_LT_EOF
565 $*
566 _LT_EOF
567 exit 0
568 fi
569
570 # The HP-UX ksh and POSIX shell print the target directory to stdout
571 # if CDPATH is set.
572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573
574 if test -z "$lt_ECHO"; then
575 if test "X${echo_test_string+set}" != Xset; then
576 # find a string as large as possible, as long as the shell can cope with it
577 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
578 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
579 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
580 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 then
582 break
583 fi
584 done
585 fi
586
587 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
588 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
589 test "X$echo_testing_string" = "X$echo_test_string"; then
590 :
591 else
592 # The Solaris, AIX, and Digital Unix default echo programs unquote
593 # backslashes. This makes it impossible to quote backslashes using
594 # echo "$something" | sed 's/\\/\\\\/g'
595 #
596 # So, first we look for a working echo in the user's PATH.
597
598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599 for dir in $PATH /usr/ucb; do
600 IFS="$lt_save_ifs"
601 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604 test "X$echo_testing_string" = "X$echo_test_string"; then
605 ECHO="$dir/echo"
606 break
607 fi
608 done
609 IFS="$lt_save_ifs"
610
611 if test "X$ECHO" = Xecho; then
612 # We didn't find a better echo, so look for alternatives.
613 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
616 # This shell has a builtin print -r that does the trick.
617 ECHO='print -r'
618 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
619 test "X$CONFIG_SHELL" != X/bin/ksh; then
620 # If we have ksh, try running configure again with it.
621 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622 export ORIGINAL_CONFIG_SHELL
623 CONFIG_SHELL=/bin/ksh
624 export CONFIG_SHELL
625 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 else
627 # Try using printf.
628 ECHO='printf %s\n'
629 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # Cool, printf works
633 :
634 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635 test "X$echo_testing_string" = 'X\t' &&
636 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639 export CONFIG_SHELL
640 SHELL="$CONFIG_SHELL"
641 export SHELL
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644 test "X$echo_testing_string" = 'X\t' &&
645 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 else
649 # maybe with a smaller string...
650 prev=:
651
652 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 then
655 break
656 fi
657 prev="$cmd"
658 done
659
660 if test "$prev" != 'sed 50q "$0"'; then
661 echo_test_string=`eval $prev`
662 export echo_test_string
663 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664 else
665 # Oops. We lost completely, so just stick with echo.
666 ECHO=echo
667 fi
668 fi
669 fi
670 fi
671 fi
672 fi
673
674 # Copy echo and quote the copy suitably for passing to libtool from
675 # the Makefile, instead of quoting the original, which is used later.
676 lt_ECHO=$ECHO
677 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 fi
680
681
682
683
684 test -n "$DJDIR" || exec 7<&0 </dev/null
685 exec 6>&1
686
687 # Name of the host.
688 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
689 # so uname gets run too.
690 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
691
692 #
693 # Initializations.
694 #
695 ac_default_prefix=/usr/local
696 ac_clean_files=
697 ac_config_libobj_dir=.
698 LIBOBJS=
699 cross_compiling=no
700 subdirs=
701 MFLAGS=
702 MAKEFLAGS=
703
704 # Identity of this package.
705 PACKAGE_NAME='ircd-hybrid'
706 PACKAGE_TARNAME='ircd-hybrid'
707 PACKAGE_VERSION='7.3-rc1'
708 PACKAGE_STRING='ircd-hybrid 7.3-rc1'
709 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
710 PACKAGE_URL=''
711
712 ac_unique_file="src/ircd.c"
713 # Factoring default headers for most tests.
714 ac_includes_default="\
715 #include <stdio.h>
716 #ifdef HAVE_SYS_TYPES_H
717 # include <sys/types.h>
718 #endif
719 #ifdef HAVE_SYS_STAT_H
720 # include <sys/stat.h>
721 #endif
722 #ifdef STDC_HEADERS
723 # include <stdlib.h>
724 # include <stddef.h>
725 #else
726 # ifdef HAVE_STDLIB_H
727 # include <stdlib.h>
728 # endif
729 #endif
730 #ifdef HAVE_STRING_H
731 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732 # include <memory.h>
733 # endif
734 # include <string.h>
735 #endif
736 #ifdef HAVE_STRINGS_H
737 # include <strings.h>
738 #endif
739 #ifdef HAVE_INTTYPES_H
740 # include <inttypes.h>
741 #endif
742 #ifdef HAVE_STDINT_H
743 # include <stdint.h>
744 #endif
745 #ifdef HAVE_UNISTD_H
746 # include <unistd.h>
747 #endif"
748
749 ac_func_list=
750 ac_header_list=
751 ac_subst_vars='ltdl_LTLIBOBJS
752 ltdl_LIBOBJS
753 am__EXEEXT_FALSE
754 am__EXEEXT_TRUE
755 LTLIBOBJS
756 LIBOBJS
757 LOCALSTATEDIR
758 DATADIR
759 LIBDIR
760 SYSCONFDIR
761 PREFIX
762 EFNET_FALSE
763 EFNET_TRUE
764 ENABLE_SSL_FALSE
765 ENABLE_SSL_TRUE
766 ENABLE_PCRE_FALSE
767 ENABLE_PCRE_TRUE
768 LTDLOPEN
769 LT_CONFIG_H
770 CONVENIENCE_LTDL_FALSE
771 CONVENIENCE_LTDL_TRUE
772 INSTALL_LTDL_FALSE
773 INSTALL_LTDL_TRUE
774 ARGZ_H
775 sys_symbol_underscore
776 LIBADD_DL
777 LT_DLPREOPEN
778 LIBADD_DLD_LINK
779 LIBADD_SHL_LOAD
780 LIBADD_DLOPEN
781 LT_DLLOADERS
782 INCLTDL
783 LTDLINCL
784 LTDLDEPS
785 LIBLTDL
786 CPP
787 OTOOL64
788 OTOOL
789 LIPO
790 NMEDIT
791 DSYMUTIL
792 lt_ECHO
793 RANLIB
794 AR
795 OBJDUMP
796 LN_S
797 NM
798 ac_ct_DUMPBIN
799 DUMPBIN
800 LD
801 FGREP
802 EGREP
803 GREP
804 SED
805 host_os
806 host_vendor
807 host_cpu
808 host
809 build_os
810 build_vendor
811 build_cpu
812 build
813 LIBTOOL
814 LEXLIB
815 LEX_OUTPUT_ROOT
816 LEX
817 YFLAGS
818 YACC
819 am__fastdepCC_FALSE
820 am__fastdepCC_TRUE
821 CCDEPMODE
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__quote
826 am__include
827 DEPDIR
828 OBJEXT
829 EXEEXT
830 ac_ct_CC
831 CPPFLAGS
832 LDFLAGS
833 CFLAGS
834 CC
835 MAINT
836 MAINTAINER_MODE_FALSE
837 MAINTAINER_MODE_TRUE
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 target_alias
862 host_alias
863 build_alias
864 LIBS
865 ECHO_T
866 ECHO_N
867 ECHO_C
868 DEFS
869 mandir
870 localedir
871 libdir
872 psdir
873 pdfdir
874 dvidir
875 htmldir
876 infodir
877 docdir
878 oldincludedir
879 includedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_maintainer_mode
903 enable_dependency_tracking
904 enable_static
905 enable_shared
906 with_pic
907 enable_fast_install
908 with_gnu_ld
909 enable_libtool_lock
910 with_included_ltdl
911 with_ltdl_include
912 with_ltdl_lib
913 enable_ltdl_install
914 with_zlib_path
915 enable_zlib
916 with_libpcre_path
917 enable_libpcre
918 enable_openssl
919 enable_assert
920 enable_small_net
921 enable_kqueue
922 enable_epoll
923 enable_devpoll
924 enable_rtsigio
925 enable_poll
926 enable_select
927 with_nicklen
928 with_topiclen
929 with_syslog_facility
930 enable_efnet
931 enable_halfops
932 enable_debugging
933 enable_warnings
934 enable_syslog
935 '
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 YACC
945 YFLAGS
946 CPP'
947
948
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1359 fi
1360
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367 fi
1368
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1374 do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453 else
1454 ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1542
1543 cat <<\_ACEOF
1544
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1559 esac
1560 cat <<\_ACEOF
1561
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-maintainer-mode enable make rules and dependencies not useful
1567 (and sometimes confusing) to the casual installer
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
1570 --enable-static[=PKGS] build static libraries [default=no]
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --enable-ltdl-install install libltdl
1576 --disable-zlib Disable ziplinks support
1577 --disable-libpcre Disable PCRE support
1578 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1579 --disable-openssl Disable OpenSSL support.
1580 --enable-assert Enable assert() statements
1581 --enable-small-net Enable small network support.
1582 --enable-kqueue Force kqueue usage.
1583 --enable-epoll Force epoll usage.
1584 --enable-devpoll Force devpoll usage.
1585 --enable-rtsigio Force rtsigio usage.
1586 --enable-poll Force poll usage.
1587 --enable-select Force select usage.
1588 --enable-efnet For IRCDs running on EFnet.
1589 --enable-halfops Enable halfops support.
1590 --enable-debugging Enable debugging.
1591 --enable-warnings Enable compiler warnings.
1592 --enable-syslog="EVENTS"
1593 Enable syslog for events: users oper (space
1594 separated in quotes; default: disabled).
1595
1596 Optional Packages:
1597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-included-ltdl use the GNU ltdl sources included here
1603 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1604 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1605 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1606 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1607 --with-nicklen=<value> Set nickname length (default 9).
1608 --with-topiclen=<value> Set topic length (default 160).
1609 --with-syslog-facility=LOG
1610 Define the syslog facility to use (default:
1611 LOG_LOCAL4)
1612
1613 Some influential environment variables:
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1621 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1622 the first program found out of: `bison -y', `byacc', `yacc'.
1623 YFLAGS The list of arguments that will be passed by default to $YACC.
1624 This script will default YFLAGS to the empty string to avoid a
1625 default value of `-d' given by some make applications.
1626 CPP C preprocessor
1627
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1630
1631 Report bugs to <bugs@ircd-hybrid.org>.
1632 _ACEOF
1633 ac_status=$?
1634 fi
1635
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1643
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *)
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1659
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1689 fi
1690
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 ircd-hybrid configure 7.3-rc1
1695 generated by GNU Autoconf 2.65
1696
1697 Copyright (C) 2009 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1702 fi
1703
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1707
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_compile
1745
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_link ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 $as_test_x conftest$ac_exeext
1774 }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_link
1791
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821 } # ac_fn_c_check_header_compile
1822
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_cpp ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } >/dev/null && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_cpp
1859
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895 fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_run
1901
1902 # ac_fn_c_check_func LINENO FUNC VAR
1903 # ----------------------------------
1904 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1905 ac_fn_c_check_func ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1917 #define $2 innocuous_$2
1918
1919 /* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char $2 (); below.
1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1922 <limits.h> exists even on freestanding compilers. */
1923
1924 #ifdef __STDC__
1925 # include <limits.h>
1926 #else
1927 # include <assert.h>
1928 #endif
1929
1930 #undef $2
1931
1932 /* Override any GCC internal prototype to avoid an error.
1933 Use char because int might match the return type of a GCC
1934 builtin and then its argument prototype would still apply. */
1935 #ifdef __cplusplus
1936 extern "C"
1937 #endif
1938 char $2 ();
1939 /* The GNU C library defines this for functions which it implements
1940 to always fail with ENOSYS. Some functions are actually named
1941 something starting with __ and the normal name is an alias. */
1942 #if defined __stub_$2 || defined __stub___$2
1943 choke me
1944 #endif
1945
1946 int
1947 main ()
1948 {
1949 return $2 ();
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_link "$LINENO"; then :
1955 eval "$3=yes"
1956 else
1957 eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext \
1960 conftest$ac_exeext conftest.$ac_ext
1961 fi
1962 eval ac_res=\$$3
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966
1967 } # ac_fn_c_check_func
1968
1969 # ac_fn_c_check_decl LINENO SYMBOL VAR
1970 # ------------------------------------
1971 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1972 ac_fn_c_check_decl ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1976 $as_echo_n "checking whether $2 is declared... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 int
1984 main ()
1985 {
1986 #ifndef $2
1987 (void) $2;
1988 #endif
1989
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 eval "$3=yes"
1996 else
1997 eval "$3=no"
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006 } # ac_fn_c_check_decl
2007
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 eval "$3=no"
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof ($2))
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 int
2038 main ()
2039 {
2040 if (sizeof (($2)))
2041 return 0;
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047
2048 else
2049 eval "$3=yes"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060 } # ac_fn_c_check_type
2061
2062 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2063 # ----------------------------------------------------
2064 # Tries to find if the field MEMBER exists in type AGGR, after including
2065 # INCLUDES, setting cache variable VAR accordingly.
2066 ac_fn_c_check_member ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2070 $as_echo_n "checking for $2.$3... " >&6; }
2071 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $5
2077 int
2078 main ()
2079 {
2080 static $2 ac_aggr;
2081 if (ac_aggr.$3)
2082 return 0;
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 eval "$4=yes"
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $5
2093 int
2094 main ()
2095 {
2096 static $2 ac_aggr;
2097 if (sizeof ac_aggr.$3)
2098 return 0;
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 eval "$4=yes"
2105 else
2106 eval "$4=no"
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$4
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116
2117 } # ac_fn_c_check_member
2118
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_c_check_header_mongrel ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147 else
2148 ac_header_compiler=no
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2153
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163 else
2164 ac_header_preproc=no
2165 fi
2166 rm -f conftest.err conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2169
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ;;
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ( cat <<\_ASBOX
2190 ## ----------------------------------- ##
2191 ## Report this to bugs@ircd-hybrid.org ##
2192 ## ----------------------------------- ##
2193 _ASBOX
2194 ) | sed "s/^/$as_me: WARNING: /" >&2
2195 ;;
2196 esac
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 eval "$3=\$ac_header_compiler"
2203 fi
2204 eval ac_res=\$$3
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209
2210 } # ac_fn_c_check_header_mongrel
2211 cat >config.log <<_ACEOF
2212 This file contains any messages produced by compilers while
2213 running configure, to aid debugging if configure makes a mistake.
2214
2215 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2216 generated by GNU Autoconf 2.65. Invocation command line was
2217
2218 $ $0 $@
2219
2220 _ACEOF
2221 exec 5>>config.log
2222 {
2223 cat <<_ASUNAME
2224 ## --------- ##
2225 ## Platform. ##
2226 ## --------- ##
2227
2228 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2229 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2230 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2231 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2232 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2233
2234 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2235 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2236
2237 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2238 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2239 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2240 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2241 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2242 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2243 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2244
2245 _ASUNAME
2246
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 $as_echo "PATH: $as_dir"
2253 done
2254 IFS=$as_save_IFS
2255
2256 } >&5
2257
2258 cat >&5 <<_ACEOF
2259
2260
2261 ## ----------- ##
2262 ## Core tests. ##
2263 ## ----------- ##
2264
2265 _ACEOF
2266
2267
2268 # Keep a trace of the command line.
2269 # Strip out --no-create and --no-recursion so they do not pile up.
2270 # Strip out --silent because we don't want to record it for future runs.
2271 # Also quote any args containing shell meta-characters.
2272 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_configure_args=
2274 ac_configure_args0=
2275 ac_configure_args1=
2276 ac_must_keep_next=false
2277 for ac_pass in 1 2
2278 do
2279 for ac_arg
2280 do
2281 case $ac_arg in
2282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2284 | -silent | --silent | --silen | --sile | --sil)
2285 continue ;;
2286 *\'*)
2287 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 esac
2289 case $ac_pass in
2290 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2291 2)
2292 as_fn_append ac_configure_args1 " '$ac_arg'"
2293 if test $ac_must_keep_next = true; then
2294 ac_must_keep_next=false # Got value, back to normal.
2295 else
2296 case $ac_arg in
2297 *=* | --config-cache | -C | -disable-* | --disable-* \
2298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2300 | -with-* | --with-* | -without-* | --without-* | --x)
2301 case "$ac_configure_args0 " in
2302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2303 esac
2304 ;;
2305 -* ) ac_must_keep_next=true ;;
2306 esac
2307 fi
2308 as_fn_append ac_configure_args " '$ac_arg'"
2309 ;;
2310 esac
2311 done
2312 done
2313 { ac_configure_args0=; unset ac_configure_args0;}
2314 { ac_configure_args1=; unset ac_configure_args1;}
2315
2316 # When interrupted or exit'd, cleanup temporary files, and complete
2317 # config.log. We remove comments because anyway the quotes in there
2318 # would cause problems or look ugly.
2319 # WARNING: Use '\'' to represent an apostrophe within the trap.
2320 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2321 trap 'exit_status=$?
2322 # Save into config.log some information that might help in debugging.
2323 {
2324 echo
2325
2326 cat <<\_ASBOX
2327 ## ---------------- ##
2328 ## Cache variables. ##
2329 ## ---------------- ##
2330 _ASBOX
2331 echo
2332 # The following way of writing the cache mishandles newlines in values,
2333 (
2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335 eval ac_val=\$$ac_var
2336 case $ac_val in #(
2337 *${as_nl}*)
2338 case $ac_var in #(
2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341 esac
2342 case $ac_var in #(
2343 _ | IFS | as_nl) ;; #(
2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345 *) { eval $ac_var=; unset $ac_var;} ;;
2346 esac ;;
2347 esac
2348 done
2349 (set) 2>&1 |
2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2352 sed -n \
2353 "s/'\''/'\''\\\\'\'''\''/g;
2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355 ;; #(
2356 *)
2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358 ;;
2359 esac |
2360 sort
2361 )
2362 echo
2363
2364 cat <<\_ASBOX
2365 ## ----------------- ##
2366 ## Output variables. ##
2367 ## ----------------- ##
2368 _ASBOX
2369 echo
2370 for ac_var in $ac_subst_vars
2371 do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2379
2380 if test -n "$ac_subst_files"; then
2381 cat <<\_ASBOX
2382 ## ------------------- ##
2383 ## File substitutions. ##
2384 ## ------------------- ##
2385 _ASBOX
2386 echo
2387 for ac_var in $ac_subst_files
2388 do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in
2391 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392 esac
2393 $as_echo "$ac_var='\''$ac_val'\''"
2394 done | sort
2395 echo
2396 fi
2397
2398 if test -s confdefs.h; then
2399 cat <<\_ASBOX
2400 ## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##
2403 _ASBOX
2404 echo
2405 cat confdefs.h
2406 echo
2407 fi
2408 test "$ac_signal" != 0 &&
2409 $as_echo "$as_me: caught signal $ac_signal"
2410 $as_echo "$as_me: exit $exit_status"
2411 } >&5
2412 rm -f core *.core core.conftest.* &&
2413 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2414 exit $exit_status
2415 ' 0
2416 for ac_signal in 1 2 13 15; do
2417 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418 done
2419 ac_signal=0
2420
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2423
2424 $as_echo "/* confdefs.h */" > confdefs.h
2425
2426 # Predefined preprocessor variables.
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2450 _ACEOF
2451
2452
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2455 ac_site_file1=NONE
2456 ac_site_file2=NONE
2457 if test -n "$CONFIG_SITE"; then
2458 ac_site_file1=$CONFIG_SITE
2459 elif test "x$prefix" != xNONE; then
2460 ac_site_file1=$prefix/share/config.site
2461 ac_site_file2=$prefix/etc/config.site
2462 else
2463 ac_site_file1=$ac_default_prefix/share/config.site
2464 ac_site_file2=$ac_default_prefix/etc/config.site
2465 fi
2466 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2467 do
2468 test "x$ac_site_file" = xNONE && continue
2469 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2471 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2472 sed 's/^/| /' "$ac_site_file" >&5
2473 . "$ac_site_file"
2474 fi
2475 done
2476
2477 if test -r "$cache_file"; then
2478 # Some versions of bash will fail to source /dev/null (special files
2479 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2480 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2482 $as_echo "$as_me: loading cache $cache_file" >&6;}
2483 case $cache_file in
2484 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2485 *) . "./$cache_file";;
2486 esac
2487 fi
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2490 $as_echo "$as_me: creating cache $cache_file" >&6;}
2491 >$cache_file
2492 fi
2493
2494 as_fn_append ac_func_list " mmap"
2495 as_fn_append ac_func_list " strtok_r"
2496 as_fn_append ac_func_list " usleep"
2497 as_fn_append ac_func_list " strlcat"
2498 as_fn_append ac_func_list " strlcpy"
2499 as_fn_append ac_header_list " crypt.h"
2500 as_fn_append ac_header_list " inttypes.h"
2501 as_fn_append ac_header_list " stdint.h"
2502 as_fn_append ac_header_list " sys/resource.h"
2503 as_fn_append ac_header_list " sys/param.h"
2504 as_fn_append ac_header_list " errno.h"
2505 as_fn_append ac_header_list " sys/syslog.h"
2506 as_fn_append ac_header_list " types.h"
2507 as_fn_append ac_header_list " socket.h"
2508 as_fn_append ac_header_list " sys/wait.h"
2509 as_fn_append ac_header_list " wait.h"
2510 as_fn_append ac_header_list " link.h"
2511 # Check that the precious variables saved in the cache have kept the same
2512 # value.
2513 ac_cache_corrupted=false
2514 for ac_var in $ac_precious_vars; do
2515 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2516 eval ac_new_set=\$ac_env_${ac_var}_set
2517 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2518 eval ac_new_val=\$ac_env_${ac_var}_value
2519 case $ac_old_set,$ac_new_set in
2520 set,)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2522 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,set)
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2526 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2527 ac_cache_corrupted=: ;;
2528 ,);;
2529 *)
2530 if test "x$ac_old_val" != "x$ac_new_val"; then
2531 # differences in whitespace do not lead to failure.
2532 ac_old_val_w=`echo x $ac_old_val`
2533 ac_new_val_w=`echo x $ac_new_val`
2534 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2536 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2537 ac_cache_corrupted=:
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2540 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2541 eval $ac_var=\$ac_old_val
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2544 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2546 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2547 fi;;
2548 esac
2549 # Pass precious variables to config.status.
2550 if test "$ac_new_set" = set; then
2551 case $ac_new_val in
2552 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2553 *) ac_arg=$ac_var=$ac_new_val ;;
2554 esac
2555 case " $ac_configure_args " in
2556 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2557 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558 esac
2559 fi
2560 done
2561 if $ac_cache_corrupted; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2565 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2566 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2567 fi
2568 ## -------------------- ##
2569 ## Main body of script. ##
2570 ## -------------------- ##
2571
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579 am__api_version='1.11'
2580
2581 ac_aux_dir=
2582 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2583 for ac_t in install-sh install.sh shtool; do
2584 if test -f "$ac_dir/$ac_t"; then
2585 ac_aux_dir=$ac_dir
2586 ac_install_sh="$ac_aux_dir/$ac_t -c"
2587 break 2
2588 fi
2589 done
2590 done
2591 if test -z "$ac_aux_dir"; then
2592 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2593 fi
2594
2595 # These three variables are undocumented and unsupported,
2596 # and are intended to be withdrawn in a future Autoconf release.
2597 # They can cause serious problems if a builder's source tree is in a directory
2598 # whose full name contains unusual characters.
2599 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2600 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2601 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2602
2603
2604 # Find a good install program. We prefer a C program (faster),
2605 # so one script is as good as another. But avoid the broken or
2606 # incompatible versions:
2607 # SysV /etc/install, /usr/sbin/install
2608 # SunOS /usr/etc/install
2609 # IRIX /sbin/install
2610 # AIX /bin/install
2611 # AmigaOS /C/install, which installs bootblocks on floppy discs
2612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2615 # OS/2's system install, which has a completely different semantic
2616 # ./install, which can be erroneously created by make from ./install.sh.
2617 # Reject install programs that cannot install multiple files.
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2619 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2620 if test -z "$INSTALL"; then
2621 if test "${ac_cv_path_install+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 # Account for people who put trailing slashes in PATH elements.
2630 case $as_dir/ in #((
2631 ./ | .// | /[cC]/* | \
2632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634 /usr/ucb/* ) ;;
2635 *)
2636 # OSF1 and SCO ODT 3.0 have their own names for install.
2637 # Don't use installbsd from OSF since it installs stuff as root
2638 # by default.
2639 for ac_prog in ginstall scoinst install; do
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2642 if test $ac_prog = install &&
2643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # AIX install. It has an incompatible calling convention.
2645 :
2646 elif test $ac_prog = install &&
2647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648 # program-specific install script used by HP pwplus--don't use.
2649 :
2650 else
2651 rm -rf conftest.one conftest.two conftest.dir
2652 echo one > conftest.one
2653 echo two > conftest.two
2654 mkdir conftest.dir
2655 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2656 test -s conftest.one && test -s conftest.two &&
2657 test -s conftest.dir/conftest.one &&
2658 test -s conftest.dir/conftest.two
2659 then
2660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2661 break 3
2662 fi
2663 fi
2664 fi
2665 done
2666 done
2667 ;;
2668 esac
2669
2670 done
2671 IFS=$as_save_IFS
2672
2673 rm -rf conftest.one conftest.two conftest.dir
2674
2675 fi
2676 if test "${ac_cv_path_install+set}" = set; then
2677 INSTALL=$ac_cv_path_install
2678 else
2679 # As a last resort, use the slow shell script. Don't cache a
2680 # value for INSTALL within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the value is a relative name.
2683 INSTALL=$ac_install_sh
2684 fi
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2687 $as_echo "$INSTALL" >&6; }
2688
2689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690 # It thinks the first close brace ends the variable substitution.
2691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2692
2693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2694
2695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2698 $as_echo_n "checking whether build environment is sane... " >&6; }
2699 # Just in case
2700 sleep 1
2701 echo timestamp > conftest.file
2702 # Reject unsafe characters in $srcdir or the absolute working directory
2703 # name. Accept space and tab only in the latter.
2704 am_lf='
2705 '
2706 case `pwd` in
2707 *[\\\"\#\$\&\'\`$am_lf]*)
2708 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2709 esac
2710 case $srcdir in
2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2712 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2713 esac
2714
2715 # Do `set' in a subshell so we don't clobber the current shell's
2716 # arguments. Must try -L first in case configure is actually a
2717 # symlink; some systems play weird games with the mod time of symlinks
2718 # (eg FreeBSD returns the mod time of the symlink's containing
2719 # directory).
2720 if (
2721 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2722 if test "$*" = "X"; then
2723 # -L didn't work.
2724 set X `ls -t "$srcdir/configure" conftest.file`
2725 fi
2726 rm -f conftest.file
2727 if test "$*" != "X $srcdir/configure conftest.file" \
2728 && test "$*" != "X conftest.file $srcdir/configure"; then
2729
2730 # If neither matched, then we have a broken ls. This can happen
2731 # if, for instance, CONFIG_SHELL is bash and it inherits a
2732 # broken ls alias from the environment. This has actually
2733 # happened. Such a system could not be considered "sane".
2734 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2735 alias in your environment" "$LINENO" 5
2736 fi
2737
2738 test "$2" = conftest.file
2739 )
2740 then
2741 # Ok.
2742 :
2743 else
2744 as_fn_error "newly created file is older than distributed files!
2745 Check your system clock" "$LINENO" 5
2746 fi
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748 $as_echo "yes" >&6; }
2749 test "$program_prefix" != NONE &&
2750 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2751 # Use a double $ so make ignores it.
2752 test "$program_suffix" != NONE &&
2753 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2754 # Double any \ or $.
2755 # By default was `s,x,x', remove it if useless.
2756 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2757 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2758
2759 # expand $ac_aux_dir to an absolute path
2760 am_aux_dir=`cd $ac_aux_dir && pwd`
2761
2762 if test x"${MISSING+set}" != xset; then
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2766 *)
2767 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2768 esac
2769 fi
2770 # Use eval to expand $SHELL
2771 if eval "$MISSING --run true"; then
2772 am_missing_run="$MISSING --run "
2773 else
2774 am_missing_run=
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2776 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2777 fi
2778
2779 if test x"${install_sh}" != xset; then
2780 case $am_aux_dir in
2781 *\ * | *\ *)
2782 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2783 *)
2784 install_sh="\${SHELL} $am_aux_dir/install-sh"
2785 esac
2786 fi
2787
2788 # Installed binaries are usually stripped using `strip' when the user
2789 # run `make install-strip'. However `strip' might not be the right
2790 # tool to use in cross-compilation environments, therefore Automake
2791 # will honor the `STRIP' environment variable to overrule this program.
2792 if test "$cross_compiling" != no; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}strip; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_STRIP+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$STRIP"; then
2802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 STRIP=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 $as_echo "$STRIP" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$ac_cv_prog_STRIP"; then
2833 ac_ct_STRIP=$STRIP
2834 # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$ac_ct_STRIP"; then
2842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_STRIP="strip"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 $as_echo "$ac_ct_STRIP" >&6; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_STRIP" = x; then
2871 STRIP=":"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 STRIP=$ac_ct_STRIP
2880 fi
2881 else
2882 STRIP="$ac_cv_prog_STRIP"
2883 fi
2884
2885 fi
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2889 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2890 if test -z "$MKDIR_P"; then
2891 if test "${ac_cv_path_mkdir+set}" = set; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_prog in mkdir gmkdir; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2902 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903 'mkdir (GNU coreutils) '* | \
2904 'mkdir (coreutils) '* | \
2905 'mkdir (fileutils) '4.1*)
2906 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2907 break 3;;
2908 esac
2909 done
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915
2916 test -d ./--version && rmdir ./--version
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P="$ac_cv_path_mkdir -p"
2919 else
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
2924 MKDIR_P="$ac_install_sh -d"
2925 fi
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928 $as_echo "$MKDIR_P" >&6; }
2929
2930 mkdir_p="$MKDIR_P"
2931 case $mkdir_p in
2932 [\\/$]* | ?:[\\/]*) ;;
2933 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2934 esac
2935
2936 for ac_prog in gawk mawk nawk awk
2937 do
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_AWK+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$AWK"; then
2946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_AWK="$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 AWK=$ac_cv_prog_AWK
2966 if test -n "$AWK"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968 $as_echo "$AWK" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 test -n "$AWK" && break
2976 done
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980 set x ${MAKE-make}
2981 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 cat >conftest.make <<\_ACEOF
2986 SHELL = /bin/sh
2987 all:
2988 @echo '@@@%%%=$(MAKE)=@@@%%%'
2989 _ACEOF
2990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2992 *@@@%%%=?*=@@@%%%*)
2993 eval ac_cv_prog_make_${ac_make}_set=yes;;
2994 *)
2995 eval ac_cv_prog_make_${ac_make}_set=no;;
2996 esac
2997 rm -f conftest.make
2998 fi
2999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 SET_MAKE=
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 SET_MAKE="MAKE=${MAKE-make}"
3007 fi
3008
3009 rm -rf .tst 2>/dev/null
3010 mkdir .tst 2>/dev/null
3011 if test -d .tst; then
3012 am__leading_dot=.
3013 else
3014 am__leading_dot=_
3015 fi
3016 rmdir .tst 2>/dev/null
3017
3018 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020 # is not polluted with repeated "-I."
3021 am__isrc=' -I$(srcdir)'
3022 # test to see if srcdir already configured
3023 if test -f $srcdir/config.status; then
3024 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025 fi
3026 fi
3027
3028 # test whether we have cygpath
3029 if test -z "$CYGPATH_W"; then
3030 if (cygpath --version) >/dev/null 2>/dev/null; then
3031 CYGPATH_W='cygpath -w'
3032 else
3033 CYGPATH_W=echo
3034 fi
3035 fi
3036
3037
3038 # Define the identity of the package.
3039 PACKAGE='ircd-hybrid'
3040 VERSION='7.3-rc1'
3041
3042
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE "$PACKAGE"
3045 _ACEOF
3046
3047
3048 cat >>confdefs.h <<_ACEOF
3049 #define VERSION "$VERSION"
3050 _ACEOF
3051
3052 # Some tools Automake needs.
3053
3054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3055
3056
3057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3058
3059
3060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3061
3062
3063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3064
3065
3066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3067
3068 # We need awk for the "check" target. The system "awk" is bad on
3069 # some platforms.
3070 # Always define AMTAR for backward compatibility.
3071
3072 AMTAR=${AMTAR-"${am_missing_run}tar"}
3073
3074 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3075
3076
3077
3078
3079
3080
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3082 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3083 # Check whether --enable-maintainer-mode was given.
3084 if test "${enable_maintainer_mode+set}" = set; then :
3085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3086 else
3087 USE_MAINTAINER_MODE=no
3088 fi
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3091 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3092 if test $USE_MAINTAINER_MODE = yes; then
3093 MAINTAINER_MODE_TRUE=
3094 MAINTAINER_MODE_FALSE='#'
3095 else
3096 MAINTAINER_MODE_TRUE='#'
3097 MAINTAINER_MODE_FALSE=
3098 fi
3099
3100 MAINT=$MAINTAINER_MODE_TRUE
3101
3102
3103 ac_config_headers="$ac_config_headers config.h"
3104
3105
3106
3107 # Checks for programs.
3108 DEPDIR="${am__leading_dot}deps"
3109
3110 ac_config_commands="$ac_config_commands depfiles"
3111
3112
3113 am_make=${MAKE-make}
3114 cat > confinc << 'END'
3115 am__doit:
3116 @echo this is the am__doit target
3117 .PHONY: am__doit
3118 END
3119 # If we don't find an include directive, just comment out the code.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3121 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3122 am__include="#"
3123 am__quote=
3124 _am_result=none
3125 # First try GNU make style include.
3126 echo "include confinc" > confmf
3127 # Ignore all kinds of additional output from `make'.
3128 case `$am_make -s -f confmf 2> /dev/null` in #(
3129 *the\ am__doit\ target*)
3130 am__include=include
3131 am__quote=
3132 _am_result=GNU
3133 ;;
3134 esac
3135 # Now try BSD make style include.
3136 if test "$am__include" = "#"; then
3137 echo '.include "confinc"' > confmf
3138 case `$am_make -s -f confmf 2> /dev/null` in #(
3139 *the\ am__doit\ target*)
3140 am__include=.include
3141 am__quote="\""
3142 _am_result=BSD
3143 ;;
3144 esac
3145 fi
3146
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3149 $as_echo "$_am_result" >&6; }
3150 rm -f confinc confmf
3151
3152 # Check whether --enable-dependency-tracking was given.
3153 if test "${enable_dependency_tracking+set}" = set; then :
3154 enableval=$enable_dependency_tracking;
3155 fi
3156
3157 if test "x$enable_dependency_tracking" != xno; then
3158 am_depcomp="$ac_aux_dir/depcomp"
3159 AMDEPBACKSLASH='\'
3160 fi
3161 if test "x$enable_dependency_tracking" != xno; then
3162 AMDEP_TRUE=
3163 AMDEP_FALSE='#'
3164 else
3165 AMDEP_TRUE='#'
3166 AMDEP_FALSE=
3167 fi
3168
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 if test -n "$ac_tool_prefix"; then
3176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_CC+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 fi
3214 if test -z "$ac_cv_prog_CC"; then
3215 ac_ct_CC=$CC
3216 # Extract the first word of "gcc", so it can be a program name with args.
3217 set dummy gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_ac_ct_CC="gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252 if test "x$ac_ct_CC" = x; then
3253 CC=""
3254 else
3255 case $cross_compiling:$ac_tool_warned in
3256 yes:)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259 ac_tool_warned=yes ;;
3260 esac
3261 CC=$ac_ct_CC
3262 fi
3263 else
3264 CC="$ac_cv_prog_CC"
3265 fi
3266
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}cc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if test "${ac_cv_prog_CC+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_CC="${ac_tool_prefix}cc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 fi
3308 if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310 set dummy cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 ac_prog_rejected=no
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3328 ac_prog_rejected=yes
3329 continue
3330 fi
3331 ac_cv_prog_CC="cc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 if test $ac_prog_rejected = yes; then
3340 # We found a bogon in the path, so make sure we never use it.
3341 set dummy $ac_cv_prog_CC
3342 shift
3343 if test $# != 0; then
3344 # We chose a different compiler from the bogus one.
3345 # However, it has the same basename, so the bogon will be chosen
3346 # first if we set CC to just the basename; use the full file name.
3347 shift
3348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 fi
3350 fi
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 for ac_prog in cl.exe
3367 do
3368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_CC+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 test -n "$CC" && break
3406 done
3407 fi
3408 if test -z "$CC"; then
3409 ac_ct_CC=$CC
3410 for ac_prog in cl.exe
3411 do
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_ac_ct_CC="$ac_prog"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440 if test -n "$ac_ct_CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442 $as_echo "$ac_ct_CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 test -n "$ac_ct_CC" && break
3450 done
3451
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456 yes:)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3462 fi
3463 fi
3464
3465 fi
3466
3467
3468 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error "no acceptable C compiler found in \$PATH
3471 See \`config.log' for more details." "$LINENO" 5; }
3472
3473 # Provide some information about the compiler.
3474 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475 set X $ac_compile
3476 ac_compiler=$2
3477 for ac_option in --version -v -V -qversion; do
3478 { { ac_try="$ac_compiler $ac_option >&5"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486 ac_status=$?
3487 if test -s conftest.err; then
3488 sed '10a\
3489 ... rest of stderr output deleted ...
3490 10q' conftest.err >conftest.er1
3491 cat conftest.er1 >&5
3492 fi
3493 rm -f conftest.er1 conftest.err
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 done
3497
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 ac_clean_files_save=$ac_clean_files
3510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511 # Try to create an executable without -o first, disregard a.out.
3512 # It will help us diagnose broken compilers, and finding out an intuition
3513 # of exeext.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515 $as_echo_n "checking whether the C compiler works... " >&6; }
3516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518 # The possible output files:
3519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521 ac_rmfiles=
3522 for ac_file in $ac_files
3523 do
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527 esac
3528 done
3529 rm -f $ac_rmfiles
3530
3531 if { { ac_try="$ac_link_default"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link_default") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3545 # so that the user can short-circuit this test for compilers unknown to
3546 # Autoconf.
3547 for ac_file in $ac_files ''
3548 do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552 ;;
3553 [ab].out )
3554 # We found the default executable, but exeext='' is most
3555 # certainly right.
3556 break;;
3557 *.* )
3558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559 then :; else
3560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 fi
3562 # We set ac_cv_exeext here because the later test for it is not
3563 # safe: cross compilers may not add the suffix if given an `-o'
3564 # argument, so we may need to know it at that point already.
3565 # Even if this section looks crufty: it has the advantage of
3566 # actually working.
3567 break;;
3568 * )
3569 break;;
3570 esac
3571 done
3572 test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574 else
3575 ac_file=''
3576 fi
3577 if test -z "$ac_file"; then :
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 $as_echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 { as_fn_set_status 77
3586 as_fn_error "C compiler cannot create executables
3587 See \`config.log' for more details." "$LINENO" 5; }; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590 $as_echo "yes" >&6; }
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3593 $as_echo_n "checking for C compiler default output file name... " >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3595 $as_echo "$ac_file" >&6; }
3596 ac_exeext=$ac_cv_exeext
3597
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3599 ac_clean_files=$ac_clean_files_save
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3601 $as_echo_n "checking for suffix of executables... " >&6; }
3602 if { { ac_try="$ac_link"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3615 # work properly (i.e., refer to `conftest.exe'), while it won't with
3616 # `rm'.
3617 for ac_file in conftest.exe conftest conftest.*; do
3618 test -f "$ac_file" || continue
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 break;;
3623 * ) break;;
3624 esac
3625 done
3626 else
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error "cannot compute suffix of executables: cannot compile and link
3630 See \`config.log' for more details." "$LINENO" 5; }
3631 fi
3632 rm -f conftest conftest$ac_cv_exeext
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3634 $as_echo "$ac_cv_exeext" >&6; }
3635
3636 rm -f conftest.$ac_ext
3637 EXEEXT=$ac_cv_exeext
3638 ac_exeext=$EXEEXT
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdio.h>
3642 int
3643 main ()
3644 {
3645 FILE *f = fopen ("conftest.out", "w");
3646 return ferror (f) || fclose (f) != 0;
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 ac_clean_files="$ac_clean_files conftest.out"
3653 # Check that the compiler produces executables we can run. If not, either
3654 # the compiler is broken, or we cross compile.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3656 $as_echo_n "checking whether we are cross compiling... " >&6; }
3657 if test "$cross_compiling" != yes; then
3658 { { ac_try="$ac_link"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }
3669 if { ac_try='./conftest$ac_cv_exeext'
3670 { { case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_try") 2>&5
3677 ac_status=$?
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }; }; then
3680 cross_compiling=no
3681 else
3682 if test "$cross_compiling" = maybe; then
3683 cross_compiling=yes
3684 else
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error "cannot run C compiled programs.
3688 If you meant to cross compile, use \`--host'.
3689 See \`config.log' for more details." "$LINENO" 5; }
3690 fi
3691 fi
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3694 $as_echo "$cross_compiling" >&6; }
3695
3696 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3697 ac_clean_files=$ac_clean_files_save
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3699 $as_echo_n "checking for suffix of object files... " >&6; }
3700 if test "${ac_cv_objext+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.o conftest.obj
3715 if { { ac_try="$ac_compile"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compile") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 for ac_file in conftest.o conftest.obj conftest.*; do
3727 test -f "$ac_file" || continue;
3728 case $ac_file in
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3731 break;;
3732 esac
3733 done
3734 else
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error "cannot compute suffix of object files: cannot compile
3741 See \`config.log' for more details." "$LINENO" 5; }
3742 fi
3743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3746 $as_echo "$ac_cv_objext" >&6; }
3747 OBJEXT=$ac_cv_objext
3748 ac_objext=$OBJEXT
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3751 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760 #ifndef __GNUC__
3761 choke me
3762 #endif
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_compiler_gnu=yes
3770 else
3771 ac_compiler_gnu=no
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3775
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3779 if test $ac_compiler_gnu = yes; then
3780 GCC=yes
3781 else
3782 GCC=
3783 fi
3784 ac_test_CFLAGS=${CFLAGS+set}
3785 ac_save_CFLAGS=$CFLAGS
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3788 if test "${ac_cv_prog_cc_g+set}" = set; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 ac_save_c_werror_flag=$ac_c_werror_flag
3792 ac_c_werror_flag=yes
3793 ac_cv_prog_cc_g=no
3794 CFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_g=yes
3808 else
3809 CFLAGS=""
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822
3823 else
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3825 CFLAGS="-g"
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 int
3830 main ()
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_g=yes
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_c_werror_flag=$ac_save_c_werror_flag
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3848 $as_echo "$ac_cv_prog_cc_g" >&6; }
3849 if test "$ac_test_CFLAGS" = set; then
3850 CFLAGS=$ac_save_CFLAGS
3851 elif test $ac_cv_prog_cc_g = yes; then
3852 if test "$GCC" = yes; then
3853 CFLAGS="-g -O2"
3854 else
3855 CFLAGS="-g"
3856 fi
3857 else
3858 if test "$GCC" = yes; then
3859 CFLAGS="-O2"
3860 else
3861 CFLAGS=
3862 fi
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3866 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_cv_prog_cc_c89=no
3870 ac_save_CC=$CC
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <stdarg.h>
3874 #include <stdio.h>
3875 #include <sys/types.h>
3876 #include <sys/stat.h>
3877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3878 struct buf { int x; };
3879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3880 static char *e (p, i)
3881 char **p;
3882 int i;
3883 {
3884 return p[i];
3885 }
3886 static char *f (char * (*g) (char **, int), char **p, ...)
3887 {
3888 char *s;
3889 va_list v;
3890 va_start (v,p);
3891 s = g (p, va_arg (v,int));
3892 va_end (v);
3893 return s;
3894 }
3895
3896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3897 function prototypes and stuff, but not '\xHH' hex character constants.
3898 These don't provoke an error unfortunately, instead are silently treated
3899 as 'x'. The following induces an error, until -std is added to get
3900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3901 array size at least. It's necessary to write '\x00'==0 to get something
3902 that's true only with -std. */
3903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3904
3905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3906 inside strings and character constants. */
3907 #define FOO(x) 'x'
3908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3909
3910 int test (int i, double x);
3911 struct s1 {int (*f) (int a);};
3912 struct s2 {int (*f) (double a);};
3913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3914 int argc;
3915 char **argv;
3916 int
3917 main ()
3918 {
3919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3926 do
3927 CC="$ac_save_CC $ac_arg"
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_c89=$ac_arg
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext
3932 test "x$ac_cv_prog_cc_c89" != "xno" && break
3933 done
3934 rm -f conftest.$ac_ext
3935 CC=$ac_save_CC
3936
3937 fi
3938 # AC_CACHE_VAL
3939 case "x$ac_cv_prog_cc_c89" in
3940 x)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3942 $as_echo "none needed" >&6; } ;;
3943 xno)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3945 $as_echo "unsupported" >&6; } ;;
3946 *)
3947 CC="$CC $ac_cv_prog_cc_c89"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 esac
3951 if test "x$ac_cv_prog_cc_c89" != xno; then :
3952
3953 fi
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961 depcc="$CC" am_compiler_list=
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3964 $as_echo_n "checking dependency style of $depcc... " >&6; }
3965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969 # We make a subdir and do the tests there. Otherwise we can end up
3970 # making bogus files that we don't know about and never remove. For
3971 # instance it was reported that on HP-UX the gcc test will end up
3972 # making a dummy file named `D' -- because `-MD' means `put the output
3973 # in D'.
3974 mkdir conftest.dir
3975 # Copy depcomp to subdir because otherwise we won't find it if we're
3976 # using a relative directory.
3977 cp "$am_depcomp" conftest.dir
3978 cd conftest.dir
3979 # We will build objects and dependencies in a subdirectory because
3980 # it helps to detect inapplicable dependency modes. For instance
3981 # both Tru64's cc and ICC support -MD to output dependencies as a
3982 # side effect of compilation, but ICC will put the dependencies in
3983 # the current directory while Tru64 will put them in the object
3984 # directory.
3985 mkdir sub
3986
3987 am_cv_CC_dependencies_compiler_type=none
3988 if test "$am_compiler_list" = ""; then
3989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990 fi
3991 am__universal=false
3992 case " $depcc " in #(
3993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994 esac
3995
3996 for depmode in $am_compiler_list; do
3997 # Setup a source with many dependencies, because some compilers
3998 # like to wrap large dependency lists on column 80 (with \), and
3999 # we should not choose a depcomp mode which is confused by this.
4000 #
4001 # We need to recreate these files for each test, as the compiler may
4002 # overwrite some of them when testing with obscure command lines.
4003 # This happens at least with the AIX C compiler.
4004 : > sub/conftest.c
4005 for i in 1 2 3 4 5 6; do
4006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008 # Solaris 8's {/usr,}/bin/sh.
4009 touch sub/conftst$i.h
4010 done
4011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
4013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014 # mode. It turns out that the SunPro C++ compiler does not properly
4015 # handle `-M -o', and we need to detect this. Also, some Intel
4016 # versions had trouble with output in subdirs
4017 am__obj=sub/conftest.${OBJEXT-o}
4018 am__minus_obj="-o $am__obj"
4019 case $depmode in
4020 gcc)
4021 # This depmode causes a compiler race in universal mode.
4022 test "$am__universal" = false || continue
4023 ;;
4024 nosideeffect)
4025 # after this tag, mechanisms are not by side-effect, so they'll
4026 # only be used when explicitly requested
4027 if test "x$enable_dependency_tracking" = xyes; then
4028 continue
4029 else
4030 break
4031 fi
4032 ;;
4033 msvisualcpp | msvcmsys)
4034 # This compiler won't grok `-c -o', but also, the minuso test has
4035 # not run yet. These depmodes are late enough in the game, and
4036 # so weak that their functioning should not be impacted.
4037 am__obj=conftest.${OBJEXT-o}
4038 am__minus_obj=
4039 ;;
4040 none) break ;;
4041 esac
4042 if depmode=$depmode \
4043 source=sub/conftest.c object=$am__obj \
4044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4046 >/dev/null 2>conftest.err &&
4047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051 # icc doesn't choke on unknown options, it will just issue warnings
4052 # or remarks (even with -Werror). So we grep stderr for any message
4053 # that says an option was ignored or not supported.
4054 # When given -MP, icc 7.0 and 7.1 complain thusly:
4055 # icc: Command line warning: ignoring option '-M'; no argument required
4056 # The diagnosis changed in icc 8.0:
4057 # icc: Command line remark: option '-MP' not supported
4058 if (grep 'ignoring option' conftest.err ||
4059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060 am_cv_CC_dependencies_compiler_type=$depmode
4061 break
4062 fi
4063 fi
4064 done
4065
4066 cd ..
4067 rm -rf conftest.dir
4068 else
4069 am_cv_CC_dependencies_compiler_type=none
4070 fi
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4076
4077 if
4078 test "x$enable_dependency_tracking" != xno \
4079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080 am__fastdepCC_TRUE=
4081 am__fastdepCC_FALSE='#'
4082 else
4083 am__fastdepCC_TRUE='#'
4084 am__fastdepCC_FALSE=
4085 fi
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4089 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4090 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 ac_cv_prog_cc_c99=no
4094 ac_save_CC=$CC
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <stdarg.h>
4098 #include <stdbool.h>
4099 #include <stdlib.h>
4100 #include <wchar.h>
4101 #include <stdio.h>
4102
4103 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4104 #define debug(...) fprintf (stderr, __VA_ARGS__)
4105 #define showlist(...) puts (#__VA_ARGS__)
4106 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4107 static void
4108 test_varargs_macros (void)
4109 {
4110 int x = 1234;
4111 int y = 5678;
4112 debug ("Flag");
4113 debug ("X = %d\n", x);
4114 showlist (The first, second, and third items.);
4115 report (x>y, "x is %d but y is %d", x, y);
4116 }
4117
4118 // Check long long types.
4119 #define BIG64 18446744073709551615ull
4120 #define BIG32 4294967295ul
4121 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4122 #if !BIG_OK
4123 your preprocessor is broken;
4124 #endif
4125 #if BIG_OK
4126 #else
4127 your preprocessor is broken;
4128 #endif
4129 static long long int bignum = -9223372036854775807LL;
4130 static unsigned long long int ubignum = BIG64;
4131
4132 struct incomplete_array
4133 {
4134 int datasize;
4135 double data[];
4136 };
4137
4138 struct named_init {
4139 int number;
4140 const wchar_t *name;
4141 double average;
4142 };
4143
4144 typedef const char *ccp;
4145
4146 static inline int
4147 test_restrict (ccp restrict text)
4148 {
4149 // See if C++-style comments work.
4150 // Iterate through items via the restricted pointer.
4151 // Also check for declarations in for loops.
4152 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4153 continue;
4154 return 0;
4155 }
4156
4157 // Check varargs and va_copy.
4158 static void
4159 test_varargs (const char *format, ...)
4160 {
4161 va_list args;
4162 va_start (args, format);
4163 va_list args_copy;
4164 va_copy (args_copy, args);
4165
4166 const char *str;
4167 int number;
4168 float fnumber;
4169
4170 while (*format)
4171 {
4172 switch (*format++)
4173 {
4174 case 's': // string
4175 str = va_arg (args_copy, const char *);
4176 break;
4177 case 'd': // int
4178 number = va_arg (args_copy, int);
4179 break;
4180 case 'f': // float
4181 fnumber = va_arg (args_copy, double);
4182 break;
4183 default:
4184 break;
4185 }
4186 }
4187 va_end (args_copy);
4188 va_end (args);
4189 }
4190
4191 int
4192 main ()
4193 {
4194
4195 // Check bool.
4196 _Bool success = false;
4197
4198 // Check restrict.
4199 if (test_restrict ("String literal") == 0)
4200 success = true;
4201 char *restrict newvar = "Another string";
4202
4203 // Check varargs.
4204 test_varargs ("s, d' f .", "string", 65, 34.234);
4205 test_varargs_macros ();
4206
4207 // Check flexible array members.
4208 struct incomplete_array *ia =
4209 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4210 ia->datasize = 10;
4211 for (int i = 0; i < ia->datasize; ++i)
4212 ia->data[i] = i * 1.234;
4213
4214 // Check named initializers.
4215 struct named_init ni = {
4216 .number = 34,
4217 .name = L"Test wide string",
4218 .average = 543.34343,
4219 };
4220
4221 ni.number = 58;
4222
4223 int dynamic_array[ni.number];
4224 dynamic_array[ni.number - 1] = 543;
4225
4226 // work around unused variable warnings
4227 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4228 || dynamic_array[ni.number - 1] != 543);
4229
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4235 do
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_c99=$ac_arg
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext
4241 test "x$ac_cv_prog_cc_c99" != "xno" && break
4242 done
4243 rm -f conftest.$ac_ext
4244 CC=$ac_save_CC
4245
4246 fi
4247 # AC_CACHE_VAL
4248 case "x$ac_cv_prog_cc_c99" in
4249 x)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251 $as_echo "none needed" >&6; } ;;
4252 xno)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 $as_echo "unsupported" >&6; } ;;
4255 *)
4256 CC="$CC $ac_cv_prog_cc_c99"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4258 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4259 esac
4260 if test "x$ac_cv_prog_cc_c99" != xno; then :
4261
4262 fi
4263
4264
4265 if test "$ac_cv_prog_cc_c99" = "no"; then :
4266 as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4267 fi
4268 for ac_prog in 'bison -y' byacc
4269 do
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_YACC+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$YACC"; then
4278 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_YACC="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 YACC=$ac_cv_prog_YACC
4298 if test -n "$YACC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4300 $as_echo "$YACC" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307 test -n "$YACC" && break
4308 done
4309 test -n "$YACC" || YACC="yacc"
4310
4311
4312 for ac_prog in flex lex
4313 do
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_LEX+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$LEX"; then
4322 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_LEX="$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 LEX=$ac_cv_prog_LEX
4342 if test -n "$LEX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4344 $as_echo "$LEX" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 test -n "$LEX" && break
4352 done
4353 test -n "$LEX" || LEX=":"
4354
4355 if test "x$LEX" != "x:"; then
4356 cat >conftest.l <<_ACEOF
4357 %%
4358 a { ECHO; }
4359 b { REJECT; }
4360 c { yymore (); }
4361 d { yyless (1); }
4362 e { yyless (input () != 0); }
4363 f { unput (yytext[0]); }
4364 . { BEGIN INITIAL; }
4365 %%
4366 #ifdef YYTEXT_POINTER
4367 extern char *yytext;
4368 #endif
4369 int
4370 main (void)
4371 {
4372 return ! yylex () + ! yywrap ();
4373 }
4374 _ACEOF
4375 { { ac_try="$LEX conftest.l"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$LEX conftest.l") 2>&5
4383 ac_status=$?
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4387 $as_echo_n "checking lex output file root... " >&6; }
4388 if test "${ac_cv_prog_lex_root+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391
4392 if test -f lex.yy.c; then
4393 ac_cv_prog_lex_root=lex.yy
4394 elif test -f lexyy.c; then
4395 ac_cv_prog_lex_root=lexyy
4396 else
4397 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4398 fi
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4401 $as_echo "$ac_cv_prog_lex_root" >&6; }
4402 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4403
4404 if test -z "${LEXLIB+set}"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4406 $as_echo_n "checking lex library... " >&6; }
4407 if test "${ac_cv_lib_lex+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410
4411 ac_save_LIBS=$LIBS
4412 ac_cv_lib_lex='none needed'
4413 for ac_lib in '' -lfl -ll; do
4414 LIBS="$ac_lib $ac_save_LIBS"
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 `cat $LEX_OUTPUT_ROOT.c`
4418 _ACEOF
4419 if ac_fn_c_try_link "$LINENO"; then :
4420 ac_cv_lib_lex=$ac_lib
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext \
4423 conftest$ac_exeext conftest.$ac_ext
4424 test "$ac_cv_lib_lex" != 'none needed' && break
4425 done
4426 LIBS=$ac_save_LIBS
4427
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4430 $as_echo "$ac_cv_lib_lex" >&6; }
4431 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4432 fi
4433
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4436 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4437 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 # POSIX says lex can declare yytext either as a pointer or an array; the
4441 # default is implementation-dependent. Figure out which it is, since
4442 # not all implementations provide the %pointer and %array declarations.
4443 ac_cv_prog_lex_yytext_pointer=no
4444 ac_save_LIBS=$LIBS
4445 LIBS="$LEXLIB $ac_save_LIBS"
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #define YYTEXT_POINTER 1
4449 `cat $LEX_OUTPUT_ROOT.c`
4450 _ACEOF
4451 if ac_fn_c_try_link "$LINENO"; then :
4452 ac_cv_prog_lex_yytext_pointer=yes
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext \
4455 conftest$ac_exeext conftest.$ac_ext
4456 LIBS=$ac_save_LIBS
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4460 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4461 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4462
4463 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4464
4465 fi
4466 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4467
4468 fi
4469 if test "$LEX" = :; then
4470 LEX=${am_missing_run}flex
4471 fi
4472
4473
4474 # Initializing libtool.
4475
4476
4477
4478
4479
4480
4481
4482
4483 case `pwd` in
4484 *\ * | *\ *)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4486 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4487 esac
4488
4489
4490
4491 macro_version='2.2.6b'
4492 macro_revision='1.3017'
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 ltmain="$ac_aux_dir/ltmain.sh"
4507
4508 # Make sure we can run config.sub.
4509 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4510 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4513 $as_echo_n "checking build system type... " >&6; }
4514 if test "${ac_cv_build+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 ac_build_alias=$build_alias
4518 test "x$ac_build_alias" = x &&
4519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4520 test "x$ac_build_alias" = x &&
4521 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4523 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4527 $as_echo "$ac_cv_build" >&6; }
4528 case $ac_cv_build in
4529 *-*-*) ;;
4530 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4531 esac
4532 build=$ac_cv_build
4533 ac_save_IFS=$IFS; IFS='-'
4534 set x $ac_cv_build
4535 shift
4536 build_cpu=$1
4537 build_vendor=$2
4538 shift; shift
4539 # Remember, the first character of IFS is used to create $*,
4540 # except with old shells:
4541 build_os=$*
4542 IFS=$ac_save_IFS
4543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4547 $as_echo_n "checking host system type... " >&6; }
4548 if test "${ac_cv_host+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test "x$host_alias" = x; then
4552 ac_cv_host=$ac_cv_build
4553 else
4554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4555 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4560 $as_echo "$ac_cv_host" >&6; }
4561 case $ac_cv_host in
4562 *-*-*) ;;
4563 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4564 esac
4565 host=$ac_cv_host
4566 ac_save_IFS=$IFS; IFS='-'
4567 set x $ac_cv_host
4568 shift
4569 host_cpu=$1
4570 host_vendor=$2
4571 shift; shift
4572 # Remember, the first character of IFS is used to create $*,
4573 # except with old shells:
4574 host_os=$*
4575 IFS=$ac_save_IFS
4576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4580 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4581 if test "${ac_cv_path_SED+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4585 for ac_i in 1 2 3 4 5 6 7; do
4586 ac_script="$ac_script$as_nl$ac_script"
4587 done
4588 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4589 { ac_script=; unset ac_script;}
4590 if test -z "$SED"; then
4591 ac_path_SED_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in sed gsed; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4602 # Check for GNU ac_path_SED and select it if it is found.
4603 # Check for GNU $ac_path_SED
4604 case `"$ac_path_SED" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4607 *)
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4611 do
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo '' >> "conftest.nl"
4616 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_SED_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_SED="$ac_path_SED"
4622 ac_path_SED_max=$ac_count
4623 fi
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630 $ac_path_SED_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_SED"; then
4636 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4637 fi
4638 else
4639 ac_cv_path_SED=$SED
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4644 $as_echo "$ac_cv_path_SED" >&6; }
4645 SED="$ac_cv_path_SED"
4646 rm -f conftest.sed
4647
4648 test -z "$SED" && SED=sed
4649 Xsed="$SED -e 1s/^X//"
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4662 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4663 if test "${ac_cv_path_GREP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -z "$GREP"; then
4667 ac_path_GREP_found=false
4668 # Loop through the user's path and test for each of PROGNAME-LIST
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_prog in grep ggrep; do
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4677 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4678 # Check for GNU ac_path_GREP and select it if it is found.
4679 # Check for GNU $ac_path_GREP
4680 case `"$ac_path_GREP" --version 2>&1` in
4681 *GNU*)
4682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4683 *)
4684 ac_count=0
4685 $as_echo_n 0123456789 >"conftest.in"
4686 while :
4687 do
4688 cat "conftest.in" "conftest.in" >"conftest.tmp"
4689 mv "conftest.tmp" "conftest.in"
4690 cp "conftest.in" "conftest.nl"
4691 $as_echo 'GREP' >> "conftest.nl"
4692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4694 as_fn_arith $ac_count + 1 && ac_count=$as_val
4695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4696 # Best one so far, save it but keep looking for a better one
4697 ac_cv_path_GREP="$ac_path_GREP"
4698 ac_path_GREP_max=$ac_count
4699 fi
4700 # 10*(2^10) chars as input seems more than enough
4701 test $ac_count -gt 10 && break
4702 done
4703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 esac
4705
4706 $ac_path_GREP_found && break 3
4707 done
4708 done
4709 done
4710 IFS=$as_save_IFS
4711 if test -z "$ac_cv_path_GREP"; then
4712 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4713 fi
4714 else
4715 ac_cv_path_GREP=$GREP
4716 fi
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4720 $as_echo "$ac_cv_path_GREP" >&6; }
4721 GREP="$ac_cv_path_GREP"
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4725 $as_echo_n "checking for egrep... " >&6; }
4726 if test "${ac_cv_path_EGREP+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4730 then ac_cv_path_EGREP="$GREP -E"
4731 else
4732 if test -z "$EGREP"; then
4733 ac_path_EGREP_found=false
4734 # Loop through the user's path and test for each of PROGNAME-LIST
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_prog in egrep; do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4743 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4744 # Check for GNU ac_path_EGREP and select it if it is found.
4745 # Check for GNU $ac_path_EGREP
4746 case `"$ac_path_EGREP" --version 2>&1` in
4747 *GNU*)
4748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4749 *)
4750 ac_count=0
4751 $as_echo_n 0123456789 >"conftest.in"
4752 while :
4753 do
4754 cat "conftest.in" "conftest.in" >"conftest.tmp"
4755 mv "conftest.tmp" "conftest.in"
4756 cp "conftest.in" "conftest.nl"
4757 $as_echo 'EGREP' >> "conftest.nl"
4758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4760 as_fn_arith $ac_count + 1 && ac_count=$as_val
4761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4762 # Best one so far, save it but keep looking for a better one
4763 ac_cv_path_EGREP="$ac_path_EGREP"
4764 ac_path_EGREP_max=$ac_count
4765 fi
4766 # 10*(2^10) chars as input seems more than enough
4767 test $ac_count -gt 10 && break
4768 done
4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4770 esac
4771
4772 $ac_path_EGREP_found && break 3
4773 done
4774 done
4775 done
4776 IFS=$as_save_IFS
4777 if test -z "$ac_cv_path_EGREP"; then
4778 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4779 fi
4780 else
4781 ac_cv_path_EGREP=$EGREP
4782 fi
4783
4784 fi
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4787 $as_echo "$ac_cv_path_EGREP" >&6; }
4788 EGREP="$ac_cv_path_EGREP"
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4792 $as_echo_n "checking for fgrep... " >&6; }
4793 if test "${ac_cv_path_FGREP+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4797 then ac_cv_path_FGREP="$GREP -F"
4798 else
4799 if test -z "$FGREP"; then
4800 ac_path_FGREP_found=false
4801 # Loop through the user's path and test for each of PROGNAME-LIST
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_prog in fgrep; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4810 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4811 # Check for GNU ac_path_FGREP and select it if it is found.
4812 # Check for GNU $ac_path_FGREP
4813 case `"$ac_path_FGREP" --version 2>&1` in
4814 *GNU*)
4815 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4816 *)
4817 ac_count=0
4818 $as_echo_n 0123456789 >"conftest.in"
4819 while :
4820 do
4821 cat "conftest.in" "conftest.in" >"conftest.tmp"
4822 mv "conftest.tmp" "conftest.in"
4823 cp "conftest.in" "conftest.nl"
4824 $as_echo 'FGREP' >> "conftest.nl"
4825 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827 as_fn_arith $ac_count + 1 && ac_count=$as_val
4828 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4829 # Best one so far, save it but keep looking for a better one
4830 ac_cv_path_FGREP="$ac_path_FGREP"
4831 ac_path_FGREP_max=$ac_count
4832 fi
4833 # 10*(2^10) chars as input seems more than enough
4834 test $ac_count -gt 10 && break
4835 done
4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4838
4839 $ac_path_FGREP_found && break 3
4840 done
4841 done
4842 done
4843 IFS=$as_save_IFS
4844 if test -z "$ac_cv_path_FGREP"; then
4845 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 fi
4847 else
4848 ac_cv_path_FGREP=$FGREP
4849 fi
4850
4851 fi
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4854 $as_echo "$ac_cv_path_FGREP" >&6; }
4855 FGREP="$ac_cv_path_FGREP"
4856
4857
4858 test -z "$GREP" && GREP=grep
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 # Check whether --with-gnu-ld was given.
4879 if test "${with_gnu_ld+set}" = set; then :
4880 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4881 else
4882 with_gnu_ld=no
4883 fi
4884
4885 ac_prog=ld
4886 if test "$GCC" = yes; then
4887 # Check if gcc -print-prog-name=ld gives a path.
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4889 $as_echo_n "checking for ld used by $CC... " >&6; }
4890 case $host in
4891 *-*-mingw*)
4892 # gcc leaves a trailing carriage return which upsets mingw
4893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4894 *)
4895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4896 esac
4897 case $ac_prog in
4898 # Accept absolute paths.
4899 [\\/]* | ?:[\\/]*)
4900 re_direlt='/[^/][^/]*/\.\./'
4901 # Canonicalize the pathname of ld
4902 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4903 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4904 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4905 done
4906 test -z "$LD" && LD="$ac_prog"
4907 ;;
4908 "")
4909 # If it fails, then pretend we aren't using GCC.
4910 ac_prog=ld
4911 ;;
4912 *)
4913 # If it is relative, then search for the first ld in PATH.
4914 with_gnu_ld=unknown
4915 ;;
4916 esac
4917 elif test "$with_gnu_ld" = yes; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4919 $as_echo_n "checking for GNU ld... " >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4922 $as_echo_n "checking for non-GNU ld... " >&6; }
4923 fi
4924 if test "${lt_cv_path_LD+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -z "$LD"; then
4928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4929 for ac_dir in $PATH; do
4930 IFS="$lt_save_ifs"
4931 test -z "$ac_dir" && ac_dir=.
4932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4933 lt_cv_path_LD="$ac_dir/$ac_prog"
4934 # Check to see if the program is GNU ld. I'd rather use --version,
4935 # but apparently some variants of GNU ld only accept -v.
4936 # Break only if it was the GNU/non-GNU ld that we prefer.
4937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4938 *GNU* | *'with BFD'*)
4939 test "$with_gnu_ld" != no && break
4940 ;;
4941 *)
4942 test "$with_gnu_ld" != yes && break
4943 ;;
4944 esac
4945 fi
4946 done
4947 IFS="$lt_save_ifs"
4948 else
4949 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4950 fi
4951 fi
4952
4953 LD="$lt_cv_path_LD"
4954 if test -n "$LD"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4956 $as_echo "$LD" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4963 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4964 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4968 case `$LD -v 2>&1 </dev/null` in
4969 *GNU* | *'with BFD'*)
4970 lt_cv_prog_gnu_ld=yes
4971 ;;
4972 *)
4973 lt_cv_prog_gnu_ld=no
4974 ;;
4975 esac
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4978 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4979 with_gnu_ld=$lt_cv_prog_gnu_ld
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4990 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4991 if test "${lt_cv_path_NM+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$NM"; then
4995 # Let the user override the test.
4996 lt_cv_path_NM="$NM"
4997 else
4998 lt_nm_to_check="${ac_tool_prefix}nm"
4999 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5000 lt_nm_to_check="$lt_nm_to_check nm"
5001 fi
5002 for lt_tmp_nm in $lt_nm_to_check; do
5003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5005 IFS="$lt_save_ifs"
5006 test -z "$ac_dir" && ac_dir=.
5007 tmp_nm="$ac_dir/$lt_tmp_nm"
5008 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5009 # Check to see if the nm accepts a BSD-compat flag.
5010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5011 # nm: unknown option "B" ignored
5012 # Tru64's nm complains that /dev/null is an invalid object file
5013 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5014 */dev/null* | *'Invalid file or object type'*)
5015 lt_cv_path_NM="$tmp_nm -B"
5016 break
5017 ;;
5018 *)
5019 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5020 */dev/null*)
5021 lt_cv_path_NM="$tmp_nm -p"
5022 break
5023 ;;
5024 *)
5025 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5026 continue # so that we can try to find one that supports BSD flags
5027 ;;
5028 esac
5029 ;;
5030 esac
5031 fi
5032 done
5033 IFS="$lt_save_ifs"
5034 done
5035 : ${lt_cv_path_NM=no}
5036 fi
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5039 $as_echo "$lt_cv_path_NM" >&6; }
5040 if test "$lt_cv_path_NM" != "no"; then
5041 NM="$lt_cv_path_NM"
5042 else
5043 # Didn't find any BSD compatible name lister, look for dumpbin.
5044 if test -n "$ac_tool_prefix"; then
5045 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5046 do
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$DUMPBIN"; then
5055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 DUMPBIN=$ac_cv_prog_DUMPBIN
5075 if test -n "$DUMPBIN"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5077 $as_echo "$DUMPBIN" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 test -n "$DUMPBIN" && break
5085 done
5086 fi
5087 if test -z "$DUMPBIN"; then
5088 ac_ct_DUMPBIN=$DUMPBIN
5089 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5090 do
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$ac_ct_DUMPBIN"; then
5099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5119 if test -n "$ac_ct_DUMPBIN"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5121 $as_echo "$ac_ct_DUMPBIN" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126
5127
5128 test -n "$ac_ct_DUMPBIN" && break
5129 done
5130
5131 if test "x$ac_ct_DUMPBIN" = x; then
5132 DUMPBIN=":"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140 DUMPBIN=$ac_ct_DUMPBIN
5141 fi
5142 fi
5143
5144
5145 if test "$DUMPBIN" != ":"; then
5146 NM="$DUMPBIN"
5147 fi
5148 fi
5149 test -z "$NM" && NM=nm
5150
5151
5152
5153
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5157 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5158 if test "${lt_cv_nm_interface+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 lt_cv_nm_interface="BSD nm"
5162 echo "int some_variable = 0;" > conftest.$ac_ext
5163 (eval echo "\"\$as_me:5163: $ac_compile\"" >&5)
5164 (eval "$ac_compile" 2>conftest.err)
5165 cat conftest.err >&5
5166 (eval echo "\"\$as_me:5166: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5167 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5168 cat conftest.err >&5
5169 (eval echo "\"\$as_me:5169: output\"" >&5)
5170 cat conftest.out >&5
5171 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5172 lt_cv_nm_interface="MS dumpbin"
5173 fi
5174 rm -f conftest*
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5177 $as_echo "$lt_cv_nm_interface" >&6; }
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5180 $as_echo_n "checking whether ln -s works... " >&6; }
5181 LN_S=$as_ln_s
5182 if test "$LN_S" = "ln -s"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184 $as_echo "yes" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5187 $as_echo "no, using $LN_S" >&6; }
5188 fi
5189
5190 # find the maximum length of command line arguments
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5192 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5193 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 i=0
5197 teststring="ABCD"
5198
5199 case $build_os in
5200 msdosdjgpp*)
5201 # On DJGPP, this test can blow up pretty badly due to problems in libc
5202 # (any single argument exceeding 2000 bytes causes a buffer overrun
5203 # during glob expansion). Even if it were fixed, the result of this
5204 # check would be larger than it should be.
5205 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5206 ;;
5207
5208 gnu*)
5209 # Under GNU Hurd, this test is not required because there is
5210 # no limit to the length of command line arguments.
5211 # Libtool will interpret -1 as no limit whatsoever
5212 lt_cv_sys_max_cmd_len=-1;
5213 ;;
5214
5215 cygwin* | mingw* | cegcc*)
5216 # On Win9x/ME, this test blows up -- it succeeds, but takes
5217 # about 5 minutes as the teststring grows exponentially.
5218 # Worse, since 9x/ME are not pre-emptively multitasking,
5219 # you end up with a "frozen" computer, even though with patience
5220 # the test eventually succeeds (with a max line length of 256k).
5221 # Instead, let's just punt: use the minimum linelength reported by
5222 # all of the supported platforms: 8192 (on NT/2K/XP).
5223 lt_cv_sys_max_cmd_len=8192;
5224 ;;
5225
5226 amigaos*)
5227 # On AmigaOS with pdksh, this test takes hours, literally.
5228 # So we just punt and use a minimum line length of 8192.
5229 lt_cv_sys_max_cmd_len=8192;
5230 ;;
5231
5232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5233 # This has been around since 386BSD, at least. Likely further.
5234 if test -x /sbin/sysctl; then
5235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5236 elif test -x /usr/sbin/sysctl; then
5237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5238 else
5239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5240 fi
5241 # And add a safety zone
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244 ;;
5245
5246 interix*)
5247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5248 lt_cv_sys_max_cmd_len=196608
5249 ;;
5250
5251 osf*)
5252 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5253 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5254 # nice to cause kernel panics so lets avoid the loop below.
5255 # First set a reasonable default.
5256 lt_cv_sys_max_cmd_len=16384
5257 #
5258 if test -x /sbin/sysconfig; then
5259 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5260 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5261 esac
5262 fi
5263 ;;
5264 sco3.2v5*)
5265 lt_cv_sys_max_cmd_len=102400
5266 ;;
5267 sysv5* | sco5v6* | sysv4.2uw2*)
5268 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5269 if test -n "$kargmax"; then
5270 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5271 else
5272 lt_cv_sys_max_cmd_len=32768
5273 fi
5274 ;;
5275 *)
5276 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5277 if test -n "$lt_cv_sys_max_cmd_len"; then
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5280 else
5281 # Make teststring a little bigger before we do anything with it.
5282 # a 1K string should be a reasonable start.
5283 for i in 1 2 3 4 5 6 7 8 ; do
5284 teststring=$teststring$teststring
5285 done
5286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5287 # If test is not a shell built-in, we'll probably end up computing a
5288 # maximum length that is only half of the actual maximum length, but
5289 # we can't tell.
5290 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5291 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5292 test $i != 17 # 1/2 MB should be enough
5293 do
5294 i=`expr $i + 1`
5295 teststring=$teststring$teststring
5296 done
5297 # Only check the string length outside the loop.
5298 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5299 teststring=
5300 # Add a significant safety factor because C++ compilers can tack on
5301 # massive amounts of additional arguments before passing them to the
5302 # linker. It appears as though 1/2 is a usable value.
5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5304 fi
5305 ;;
5306 esac
5307
5308 fi
5309
5310 if test -n $lt_cv_sys_max_cmd_len ; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5312 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5315 $as_echo "none" >&6; }
5316 fi
5317 max_cmd_len=$lt_cv_sys_max_cmd_len
5318
5319
5320
5321
5322
5323
5324 : ${CP="cp -f"}
5325 : ${MV="mv -f"}
5326 : ${RM="rm -f"}
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5329 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5330 # Try some XSI features
5331 xsi_shell=no
5332 ( _lt_dummy="a/b/c"
5333 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5334 = c,a/b,, \
5335 && eval 'test $(( 1 + 1 )) -eq 2 \
5336 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5337 && xsi_shell=yes
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5339 $as_echo "$xsi_shell" >&6; }
5340
5341
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5343 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5344 lt_shell_append=no
5345 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5346 >/dev/null 2>&1 \
5347 && lt_shell_append=yes
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5349 $as_echo "$lt_shell_append" >&6; }
5350
5351
5352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5353 lt_unset=unset
5354 else
5355 lt_unset=false
5356 fi
5357
5358
5359
5360
5361
5362 # test EBCDIC or ASCII
5363 case `echo X|tr X '\101'` in
5364 A) # ASCII based system
5365 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5366 lt_SP2NL='tr \040 \012'
5367 lt_NL2SP='tr \015\012 \040\040'
5368 ;;
5369 *) # EBCDIC based system
5370 lt_SP2NL='tr \100 \n'
5371 lt_NL2SP='tr \r\n \100\100'
5372 ;;
5373 esac
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5385 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 lt_cv_ld_reload_flag='-r'
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5392 reload_flag=$lt_cv_ld_reload_flag
5393 case $reload_flag in
5394 "" | " "*) ;;
5395 *) reload_flag=" $reload_flag" ;;
5396 esac
5397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398 case $host_os in
5399 darwin*)
5400 if test "$GCC" = yes; then
5401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5402 else
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 fi
5405 ;;
5406 esac
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}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_OBJDUMP+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$OBJDUMP"; then
5425 ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
5445 if test -n "$OBJDUMP"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5447 $as_echo "$OBJDUMP" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453
5454 fi
5455 if test -z "$ac_cv_prog_OBJDUMP"; then
5456 ac_ct_OBJDUMP=$OBJDUMP
5457 # Extract the first word of "objdump", so it can be a program name with args.
5458 set dummy objdump; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$ac_ct_OBJDUMP"; then
5465 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5485 if test -n "$ac_ct_OBJDUMP"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5487 $as_echo "$ac_ct_OBJDUMP" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493 if test "x$ac_ct_OBJDUMP" = x; then
5494 OBJDUMP="false"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497 yes:)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5501 esac
5502 OBJDUMP=$ac_ct_OBJDUMP
5503 fi
5504 else
5505 OBJDUMP="$ac_cv_prog_OBJDUMP"
5506 fi
5507
5508 test -z "$OBJDUMP" && OBJDUMP=objdump
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5519 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5520 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 lt_cv_file_magic_cmd='$MAGIC_CMD'
5524 lt_cv_file_magic_test_file=
5525 lt_cv_deplibs_check_method='unknown'
5526 # Need to set the preceding variable on all platforms that support
5527 # interlibrary dependencies.
5528 # 'none' -- dependencies not supported.
5529 # `unknown' -- same as none, but documents that we really don't know.
5530 # 'pass_all' -- all dependencies passed with no checks.
5531 # 'test_compile' -- check by making test program.
5532 # 'file_magic [[regex]]' -- check by looking for files in library path
5533 # which responds to the $file_magic_cmd with a given extended regex.
5534 # If you have `file' or equivalent on your system and you're not sure
5535 # whether `pass_all' will *always* work, you probably want this one.
5536
5537 case $host_os in
5538 aix[4-9]*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 beos*)
5543 lt_cv_deplibs_check_method=pass_all
5544 ;;
5545
5546 bsdi[45]*)
5547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5548 lt_cv_file_magic_cmd='/usr/bin/file -L'
5549 lt_cv_file_magic_test_file=/shlib/libc.so
5550 ;;
5551
5552 cygwin*)
5553 # func_win32_libid is a shell function defined in ltmain.sh
5554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555 lt_cv_file_magic_cmd='func_win32_libid'
5556 ;;
5557
5558 mingw* | pw32*)
5559 # Base MSYS/MinGW do not provide the 'file' command needed by
5560 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5561 # unless we find 'file', for example because we are cross-compiling.
5562 if ( file / ) >/dev/null 2>&1; then
5563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564 lt_cv_file_magic_cmd='func_win32_libid'
5565 else
5566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 fi
5569 ;;
5570
5571 cegcc)
5572 # use the weaker test based on 'objdump'. See mingw*.
5573 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5574 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 ;;
5576
5577 darwin* | rhapsody*)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580
5581 freebsd* | dragonfly*)
5582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5583 case $host_cpu in
5584 i*86 )
5585 # Not sure whether the presence of OpenBSD here was a mistake.
5586 # Let's accept both of them until this is cleared up.
5587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5590 ;;
5591 esac
5592 else
5593 lt_cv_deplibs_check_method=pass_all
5594 fi
5595 ;;
5596
5597 gnu*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
5601 hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5603 case $host_cpu in
5604 ia64*)
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607 ;;
5608 hppa*64*)
5609 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]'
5610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611 ;;
5612 *)
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615 ;;
5616 esac
5617 ;;
5618
5619 interix[3-9]*)
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622 ;;
5623
5624 irix5* | irix6* | nonstopux*)
5625 case $LD in
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5630 esac
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 # This must be Linux ELF.
5635 linux* | k*bsd*-gnu)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 netbsd*)
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644 fi
5645 ;;
5646
5647 newos6*)
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651 ;;
5652
5653 *nto* | *qnx*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657 openbsd*)
5658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660 else
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662 fi
5663 ;;
5664
5665 osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 rdos*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 solaris*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680
5681 sysv4 | sysv4.3*)
5682 case $host_vendor in
5683 motorola)
5684 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]'
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686 ;;
5687 ncr)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690 sequent)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693 ;;
5694 sni)
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697 lt_cv_file_magic_test_file=/lib/libc.so
5698 ;;
5699 siemens)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702 pc)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705 esac
5706 ;;
5707
5708 tpf*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711 esac
5712
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5715 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5716 file_magic_cmd=$lt_cv_file_magic_cmd
5717 deplibs_check_method=$lt_cv_deplibs_check_method
5718 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5733 set dummy ${ac_tool_prefix}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_AR+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$AR"; then
5740 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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 AR=$ac_cv_prog_AR
5760 if test -n "$AR"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5762 $as_echo "$AR" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768
5769 fi
5770 if test -z "$ac_cv_prog_AR"; then
5771 ac_ct_AR=$AR
5772 # Extract the first word of "ar", so it can be a program name with args.
5773 set dummy ar; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if test -n "$ac_ct_AR"; then
5780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_ac_ct_AR="ar"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5800 if test -n "$ac_ct_AR"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5802 $as_echo "$ac_ct_AR" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808 if test "x$ac_ct_AR" = x; then
5809 AR="false"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815 ac_tool_warned=yes ;;
5816 esac
5817 AR=$ac_ct_AR
5818 fi
5819 else
5820 AR="$ac_cv_prog_AR"
5821 fi
5822
5823 test -z "$AR" && AR=ar
5824 test -z "$AR_FLAGS" && AR_FLAGS=cru
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$STRIP"; then
5845 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
5865 if test -n "$STRIP"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5867 $as_echo "$STRIP" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_STRIP"; then
5876 ac_ct_STRIP=$STRIP
5877 # Extract the first word of "strip", so it can be a program name with args.
5878 set dummy strip; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_STRIP"; then
5885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_STRIP="strip"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5905 if test -n "$ac_ct_STRIP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5907 $as_echo "$ac_ct_STRIP" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_STRIP" = x; then
5914 STRIP=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 STRIP=$ac_ct_STRIP
5923 fi
5924 else
5925 STRIP="$ac_cv_prog_STRIP"
5926 fi
5927
5928 test -z "$STRIP" && STRIP=:
5929
5930
5931
5932
5933
5934
5935 if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5937 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if test -n "$RANLIB"; then
5944 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
5964 if test -n "$RANLIB"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5966 $as_echo "$RANLIB" >&6; }
5967 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972
5973 fi
5974 if test -z "$ac_cv_prog_RANLIB"; then
5975 ac_ct_RANLIB=$RANLIB
5976 # Extract the first word of "ranlib", so it can be a program name with args.
5977 set dummy ranlib; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 if test -n "$ac_ct_RANLIB"; then
5984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_ac_ct_RANLIB="ranlib"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997 done
5998 done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6004 if test -n "$ac_ct_RANLIB"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6006 $as_echo "$ac_ct_RANLIB" >&6; }
6007 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012 if test "x$ac_ct_RANLIB" = x; then
6013 RANLIB=":"
6014 else
6015 case $cross_compiling:$ac_tool_warned in
6016 yes:)
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019 ac_tool_warned=yes ;;
6020 esac
6021 RANLIB=$ac_ct_RANLIB
6022 fi
6023 else
6024 RANLIB="$ac_cv_prog_RANLIB"
6025 fi
6026
6027 test -z "$RANLIB" && RANLIB=:
6028
6029
6030
6031
6032
6033
6034 # Determine commands to create old-style static archives.
6035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6036 old_postinstall_cmds='chmod 644 $oldlib'
6037 old_postuninstall_cmds=
6038
6039 if test -n "$RANLIB"; then
6040 case $host_os in
6041 openbsd*)
6042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6043 ;;
6044 *)
6045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6046 ;;
6047 esac
6048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6049 fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 # If no C compiler was specified, use CC.
6085 LTCC=${LTCC-"$CC"}
6086
6087 # If no C compiler flags were specified, use CFLAGS.
6088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6089
6090 # Allow CC to be a program name with arguments.
6091 compiler=$CC
6092
6093
6094 # Check for command to grab the raw symbol name followed by C symbol from nm.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6096 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6097 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100
6101 # These are sane defaults that work on at least a few old systems.
6102 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6103
6104 # Character class describing NM global symbol codes.
6105 symcode='[BCDEGRST]'
6106
6107 # Regexp to match symbols that can be accessed directly from C.
6108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6109
6110 # Define system-specific variables.
6111 case $host_os in
6112 aix*)
6113 symcode='[BCDT]'
6114 ;;
6115 cygwin* | mingw* | pw32* | cegcc*)
6116 symcode='[ABCDGISTW]'
6117 ;;
6118 hpux*)
6119 if test "$host_cpu" = ia64; then
6120 symcode='[ABCDEGRST]'
6121 fi
6122 ;;
6123 irix* | nonstopux*)
6124 symcode='[BCDEGRST]'
6125 ;;
6126 osf*)
6127 symcode='[BCDEGQRST]'
6128 ;;
6129 solaris*)
6130 symcode='[BDRT]'
6131 ;;
6132 sco3.2v5*)
6133 symcode='[DT]'
6134 ;;
6135 sysv4.2uw2*)
6136 symcode='[DT]'
6137 ;;
6138 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6139 symcode='[ABDT]'
6140 ;;
6141 sysv4)
6142 symcode='[DFNSTU]'
6143 ;;
6144 esac
6145
6146 # If we're using GNU nm, then use its standard symbol codes.
6147 case `$NM -V 2>&1` in
6148 *GNU* | *'with BFD'*)
6149 symcode='[ABCDGIRSTW]' ;;
6150 esac
6151
6152 # Transform an extracted symbol line into a proper C declaration.
6153 # Some systems (esp. on ia64) link data and code symbols differently,
6154 # so use this general approach.
6155 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6156
6157 # Transform an extracted symbol line into symbol name and symbol address
6158 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6159 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'"
6160
6161 # Handle CRLF in mingw tool chain
6162 opt_cr=
6163 case $build_os in
6164 mingw*)
6165 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6166 ;;
6167 esac
6168
6169 # Try without a prefix underscore, then with it.
6170 for ac_symprfx in "" "_"; do
6171
6172 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6173 symxfrm="\\1 $ac_symprfx\\2 \\2"
6174
6175 # Write the raw and C identifiers.
6176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6177 # Fake it for dumpbin and say T for any non-static function
6178 # and D for any global variable.
6179 # Also find C++ and __fastcall symbols from MSVC++,
6180 # which start with @ or ?.
6181 lt_cv_sys_global_symbol_pipe="$AWK '"\
6182 " {last_section=section; section=\$ 3};"\
6183 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6184 " \$ 0!~/External *\|/{next};"\
6185 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6186 " {if(hide[section]) next};"\
6187 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6188 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6189 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6190 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6191 " ' prfx=^$ac_symprfx"
6192 else
6193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6194 fi
6195
6196 # Check to see that the pipe works correctly.
6197 pipe_works=no
6198
6199 rm -f conftest*
6200 cat > conftest.$ac_ext <<_LT_EOF
6201 #ifdef __cplusplus
6202 extern "C" {
6203 #endif
6204 char nm_test_var;
6205 void nm_test_func(void);
6206 void nm_test_func(void){}
6207 #ifdef __cplusplus
6208 }
6209 #endif
6210 int main(){nm_test_var='a';nm_test_func();return(0);}
6211 _LT_EOF
6212
6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214 (eval $ac_compile) 2>&5
6215 ac_status=$?
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; }; then
6218 # Now try to grab the symbols.
6219 nlist=conftest.nm
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6221 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; } && test -s "$nlist"; then
6225 # Try sorting and uniquifying the output.
6226 if sort "$nlist" | uniq > "$nlist"T; then
6227 mv -f "$nlist"T "$nlist"
6228 else
6229 rm -f "$nlist"T
6230 fi
6231
6232 # Make sure that we snagged all the symbols we need.
6233 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6234 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6235 cat <<_LT_EOF > conftest.$ac_ext
6236 #ifdef __cplusplus
6237 extern "C" {
6238 #endif
6239
6240 _LT_EOF
6241 # Now generate the symbol file.
6242 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6243
6244 cat <<_LT_EOF >> conftest.$ac_ext
6245
6246 /* The mapping between symbol names and symbols. */
6247 const struct {
6248 const char *name;
6249 void *address;
6250 }
6251 lt__PROGRAM__LTX_preloaded_symbols[] =
6252 {
6253 { "@PROGRAM@", (void *) 0 },
6254 _LT_EOF
6255 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6256 cat <<\_LT_EOF >> conftest.$ac_ext
6257 {0, (void *) 0}
6258 };
6259
6260 /* This works around a problem in FreeBSD linker */
6261 #ifdef FREEBSD_WORKAROUND
6262 static const void *lt_preloaded_setup() {
6263 return lt__PROGRAM__LTX_preloaded_symbols;
6264 }
6265 #endif
6266
6267 #ifdef __cplusplus
6268 }
6269 #endif
6270 _LT_EOF
6271 # Now try linking the two files.
6272 mv conftest.$ac_objext conftstm.$ac_objext
6273 lt_save_LIBS="$LIBS"
6274 lt_save_CFLAGS="$CFLAGS"
6275 LIBS="conftstm.$ac_objext"
6276 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6278 (eval $ac_link) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6282 pipe_works=yes
6283 fi
6284 LIBS="$lt_save_LIBS"
6285 CFLAGS="$lt_save_CFLAGS"
6286 else
6287 echo "cannot find nm_test_func in $nlist" >&5
6288 fi
6289 else
6290 echo "cannot find nm_test_var in $nlist" >&5
6291 fi
6292 else
6293 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6294 fi
6295 else
6296 echo "$progname: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 fi
6299 rm -rf conftest* conftst*
6300
6301 # Do not use the global_symbol_pipe unless it works.
6302 if test "$pipe_works" = yes; then
6303 break
6304 else
6305 lt_cv_sys_global_symbol_pipe=
6306 fi
6307 done
6308
6309 fi
6310
6311 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6312 lt_cv_sys_global_symbol_to_cdecl=
6313 fi
6314 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6316 $as_echo "failed" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6319 $as_echo "ok" >&6; }
6320 fi
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 # Check whether --enable-libtool-lock was given.
6344 if test "${enable_libtool_lock+set}" = set; then :
6345 enableval=$enable_libtool_lock;
6346 fi
6347
6348 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6349
6350 # Some flags need to be propagated to the compiler or linker for good
6351 # libtool support.
6352 case $host in
6353 ia64-*-hpux*)
6354 # Find out which ABI we are using.
6355 echo 'int i;' > conftest.$ac_ext
6356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6357 (eval $ac_compile) 2>&5
6358 ac_status=$?
6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; }; then
6361 case `/usr/bin/file conftest.$ac_objext` in
6362 *ELF-32*)
6363 HPUX_IA64_MODE="32"
6364 ;;
6365 *ELF-64*)
6366 HPUX_IA64_MODE="64"
6367 ;;
6368 esac
6369 fi
6370 rm -rf conftest*
6371 ;;
6372 *-*-irix6*)
6373 # Find out which ABI we are using.
6374 echo '#line 6374 "configure"' > conftest.$ac_ext
6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376 (eval $ac_compile) 2>&5
6377 ac_status=$?
6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379 test $ac_status = 0; }; then
6380 if test "$lt_cv_prog_gnu_ld" = yes; then
6381 case `/usr/bin/file conftest.$ac_objext` in
6382 *32-bit*)
6383 LD="${LD-ld} -melf32bsmip"
6384 ;;
6385 *N32*)
6386 LD="${LD-ld} -melf32bmipn32"
6387 ;;
6388 *64-bit*)
6389 LD="${LD-ld} -melf64bmip"
6390 ;;
6391 esac
6392 else
6393 case `/usr/bin/file conftest.$ac_objext` in
6394 *32-bit*)
6395 LD="${LD-ld} -32"
6396 ;;
6397 *N32*)
6398 LD="${LD-ld} -n32"
6399 ;;
6400 *64-bit*)
6401 LD="${LD-ld} -64"
6402 ;;
6403 esac
6404 fi
6405 fi
6406 rm -rf conftest*
6407 ;;
6408
6409 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6410 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.o` in
6419 *32-bit*)
6420 case $host in
6421 x86_64-*kfreebsd*-gnu)
6422 LD="${LD-ld} -m elf_i386_fbsd"
6423 ;;
6424 x86_64-*linux*)
6425 LD="${LD-ld} -m elf_i386"
6426 ;;
6427 ppc64-*linux*|powerpc64-*linux*)
6428 LD="${LD-ld} -m elf32ppclinux"
6429 ;;
6430 s390x-*linux*)
6431 LD="${LD-ld} -m elf_s390"
6432 ;;
6433 sparc64-*linux*)
6434 LD="${LD-ld} -m elf32_sparc"
6435 ;;
6436 esac
6437 ;;
6438 *64-bit*)
6439 case $host in
6440 x86_64-*kfreebsd*-gnu)
6441 LD="${LD-ld} -m elf_x86_64_fbsd"
6442 ;;
6443 x86_64-*linux*)
6444 LD="${LD-ld} -m elf_x86_64"
6445 ;;
6446 ppc*-*linux*|powerpc*-*linux*)
6447 LD="${LD-ld} -m elf64ppc"
6448 ;;
6449 s390*-*linux*|s390*-*tpf*)
6450 LD="${LD-ld} -m elf64_s390"
6451 ;;
6452 sparc*-*linux*)
6453 LD="${LD-ld} -m elf64_sparc"
6454 ;;
6455 esac
6456 ;;
6457 esac
6458 fi
6459 rm -rf conftest*
6460 ;;
6461
6462 *-*-sco3.2v5*)
6463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6464 SAVE_CFLAGS="$CFLAGS"
6465 CFLAGS="$CFLAGS -belf"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6467 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6468 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 ac_ext=c
6472 ac_cpp='$CPP $CPPFLAGS'
6473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479
6480 int
6481 main ()
6482 {
6483
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 lt_cv_cc_needs_belf=yes
6490 else
6491 lt_cv_cc_needs_belf=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 ac_ext=c
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6503 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6506 CFLAGS="$SAVE_CFLAGS"
6507 fi
6508 ;;
6509 sparc*-*solaris*)
6510 # Find out which ABI we are using.
6511 echo 'int i;' > conftest.$ac_ext
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 case `/usr/bin/file conftest.o` in
6518 *64-bit*)
6519 case $lt_cv_prog_gnu_ld in
6520 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6521 *)
6522 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6523 LD="${LD-ld} -64"
6524 fi
6525 ;;
6526 esac
6527 ;;
6528 esac
6529 fi
6530 rm -rf conftest*
6531 ;;
6532 esac
6533
6534 need_locks="$enable_libtool_lock"
6535
6536
6537 case $host_os in
6538 rhapsody* | darwin*)
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}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_DSYMUTIL+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$DSYMUTIL"; then
6548 ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6568 if test -n "$DSYMUTIL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6570 $as_echo "$DSYMUTIL" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_DSYMUTIL"; then
6579 ac_ct_DSYMUTIL=$DSYMUTIL
6580 # Extract the first word of "dsymutil", so it can be a program name with args.
6581 set dummy dsymutil; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$ac_ct_DSYMUTIL"; then
6588 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6610 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616 if test "x$ac_ct_DSYMUTIL" = x; then
6617 DSYMUTIL=":"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 DSYMUTIL=$ac_ct_DSYMUTIL
6626 fi
6627 else
6628 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6629 fi
6630
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}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_NMEDIT+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$NMEDIT"; then
6640 ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
6660 if test -n "$NMEDIT"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6662 $as_echo "$NMEDIT" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_NMEDIT"; then
6671 ac_ct_NMEDIT=$NMEDIT
6672 # Extract the first word of "nmedit", so it can be a program name with args.
6673 set dummy nmedit; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$ac_ct_NMEDIT"; then
6680 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6700 if test -n "$ac_ct_NMEDIT"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6702 $as_echo "$ac_ct_NMEDIT" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708 if test "x$ac_ct_NMEDIT" = x; then
6709 NMEDIT=":"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 NMEDIT=$ac_ct_NMEDIT
6718 fi
6719 else
6720 NMEDIT="$ac_cv_prog_NMEDIT"
6721 fi
6722
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}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_LIPO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$LIPO"; then
6732 ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
6752 if test -n "$LIPO"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6754 $as_echo "$LIPO" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_LIPO"; then
6763 ac_ct_LIPO=$LIPO
6764 # Extract the first word of "lipo", so it can be a program name with args.
6765 set dummy lipo; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_LIPO"; then
6772 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_LIPO="lipo"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6792 if test -n "$ac_ct_LIPO"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6794 $as_echo "$ac_ct_LIPO" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800 if test "x$ac_ct_LIPO" = x; then
6801 LIPO=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 LIPO=$ac_ct_LIPO
6810 fi
6811 else
6812 LIPO="$ac_cv_prog_LIPO"
6813 fi
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}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_OTOOL+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$OTOOL"; then
6824 ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
6844 if test -n "$OTOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6846 $as_echo "$OTOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_OTOOL"; then
6855 ac_ct_OTOOL=$OTOOL
6856 # Extract the first word of "otool", so it can be a program name with args.
6857 set dummy otool; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_OTOOL"; then
6864 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_OTOOL="otool"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6884 if test -n "$ac_ct_OTOOL"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6886 $as_echo "$ac_ct_OTOOL" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892 if test "x$ac_ct_OTOOL" = x; then
6893 OTOOL=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 OTOOL=$ac_ct_OTOOL
6902 fi
6903 else
6904 OTOOL="$ac_cv_prog_OTOOL"
6905 fi
6906
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}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_OTOOL64+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$OTOOL64"; then
6916 ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
6936 if test -n "$OTOOL64"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6938 $as_echo "$OTOOL64" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_OTOOL64"; then
6947 ac_ct_OTOOL64=$OTOOL64
6948 # Extract the first word of "otool64", so it can be a program name with args.
6949 set dummy otool64; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_OTOOL64"; then
6956 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_OTOOL64="otool64"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6976 if test -n "$ac_ct_OTOOL64"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6978 $as_echo "$ac_ct_OTOOL64" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984 if test "x$ac_ct_OTOOL64" = x; then
6985 OTOOL64=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 OTOOL64=$ac_ct_OTOOL64
6994 fi
6995 else
6996 OTOOL64="$ac_cv_prog_OTOOL64"
6997 fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7026 $as_echo_n "checking for -single_module linker flag... " >&6; }
7027 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 lt_cv_apple_cc_single_mod=no
7031 if test -z "${LT_MULTI_MODULE}"; then
7032 # By default we will add the -single_module flag. You can override
7033 # by either setting the environment variable LT_MULTI_MODULE
7034 # non-empty at configure time, or by adding -multi_module to the
7035 # link flags.
7036 rm -rf libconftest.dylib*
7037 echo "int foo(void){return 1;}" > conftest.c
7038 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7039 -dynamiclib -Wl,-single_module conftest.c" >&5
7040 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7041 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7042 _lt_result=$?
7043 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7044 lt_cv_apple_cc_single_mod=yes
7045 else
7046 cat conftest.err >&5
7047 fi
7048 rm -rf libconftest.dylib*
7049 rm -f conftest.*
7050 fi
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7053 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7055 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7056 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 lt_cv_ld_exported_symbols_list=no
7060 save_LDFLAGS=$LDFLAGS
7061 echo "_main" > conftest.sym
7062 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 int
7067 main ()
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 lt_cv_ld_exported_symbols_list=yes
7076 else
7077 lt_cv_ld_exported_symbols_list=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 LDFLAGS="$save_LDFLAGS"
7082
7083 fi
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7085 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7086 case $host_os in
7087 rhapsody* | darwin1.[012])
7088 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7089 darwin1.*)
7090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7091 darwin*) # darwin 5.x on
7092 # if running on 10.5 or later, the deployment target defaults
7093 # to the OS version, if on x86, and 10.4, the deployment
7094 # target defaults to 10.4. Don't you love it?
7095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7096 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7098 10.[012]*)
7099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7100 10.*)
7101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7102 esac
7103 ;;
7104 esac
7105 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7106 _lt_dar_single_mod='$single_module'
7107 fi
7108 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7109 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7110 else
7111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7112 fi
7113 if test "$DSYMUTIL" != ":"; then
7114 _lt_dsymutil='~$DSYMUTIL $lib || :'
7115 else
7116 _lt_dsymutil=
7117 fi
7118 ;;
7119 esac
7120
7121 ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7128 # On Suns, sometimes $CPP names a directory.
7129 if test -n "$CPP" && test -d "$CPP"; then
7130 CPP=
7131 fi
7132 if test -z "$CPP"; then
7133 if test "${ac_cv_prog_CPP+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 # Double quotes because CPP needs to be expanded
7137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7138 do
7139 ac_preproc_ok=false
7140 for ac_c_preproc_warn_flag in '' yes
7141 do
7142 # Use a header file that comes with gcc, so configuring glibc
7143 # with a fresh cross-compiler works.
7144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7145 # <limits.h> exists even on freestanding compilers.
7146 # On the NeXT, cc -E runs the code through the compiler's parser,
7147 # not just through cpp. "Syntax error" is here to catch this case.
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #ifdef __STDC__
7151 # include <limits.h>
7152 #else
7153 # include <assert.h>
7154 #endif
7155 Syntax error
7156 _ACEOF
7157 if ac_fn_c_try_cpp "$LINENO"; then :
7158
7159 else
7160 # Broken: fails on valid input.
7161 continue
7162 fi
7163 rm -f conftest.err conftest.$ac_ext
7164
7165 # OK, works on sane cases. Now check whether nonexistent headers
7166 # can be detected and how.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <ac_nonexistent.h>
7170 _ACEOF
7171 if ac_fn_c_try_cpp "$LINENO"; then :
7172 # Broken: success on invalid input.
7173 continue
7174 else
7175 # Passes both tests.
7176 ac_preproc_ok=:
7177 break
7178 fi
7179 rm -f conftest.err conftest.$ac_ext
7180
7181 done
7182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7183 rm -f conftest.err conftest.$ac_ext
7184 if $ac_preproc_ok; then :
7185 break
7186 fi
7187
7188 done
7189 ac_cv_prog_CPP=$CPP
7190
7191 fi
7192 CPP=$ac_cv_prog_CPP
7193 else
7194 ac_cv_prog_CPP=$CPP
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7197 $as_echo "$CPP" >&6; }
7198 ac_preproc_ok=false
7199 for ac_c_preproc_warn_flag in '' yes
7200 do
7201 # Use a header file that comes with gcc, so configuring glibc
7202 # with a fresh cross-compiler works.
7203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 # <limits.h> exists even on freestanding compilers.
7205 # On the NeXT, cc -E runs the code through the compiler's parser,
7206 # not just through cpp. "Syntax error" is here to catch this case.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #ifdef __STDC__
7210 # include <limits.h>
7211 #else
7212 # include <assert.h>
7213 #endif
7214 Syntax error
7215 _ACEOF
7216 if ac_fn_c_try_cpp "$LINENO"; then :
7217
7218 else
7219 # Broken: fails on valid input.
7220 continue
7221 fi
7222 rm -f conftest.err conftest.$ac_ext
7223
7224 # OK, works on sane cases. Now check whether nonexistent headers
7225 # can be detected and how.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <ac_nonexistent.h>
7229 _ACEOF
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7231 # Broken: success on invalid input.
7232 continue
7233 else
7234 # Passes both tests.
7235 ac_preproc_ok=:
7236 break
7237 fi
7238 rm -f conftest.err conftest.$ac_ext
7239
7240 done
7241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242 rm -f conftest.err conftest.$ac_ext
7243 if $ac_preproc_ok; then :
7244
7245 else
7246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7248 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7249 See \`config.log' for more details." "$LINENO" 5; }
7250 fi
7251
7252 ac_ext=c
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7260 $as_echo_n "checking for ANSI C header files... " >&6; }
7261 if test "${ac_cv_header_stdc+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #include <stdlib.h>
7267 #include <stdarg.h>
7268 #include <string.h>
7269 #include <float.h>
7270
7271 int
7272 main ()
7273 {
7274
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"; then :
7280 ac_cv_header_stdc=yes
7281 else
7282 ac_cv_header_stdc=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285
7286 if test $ac_cv_header_stdc = yes; then
7287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #include <string.h>
7291
7292 _ACEOF
7293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 $EGREP "memchr" >/dev/null 2>&1; then :
7295
7296 else
7297 ac_cv_header_stdc=no
7298 fi
7299 rm -f conftest*
7300
7301 fi
7302
7303 if test $ac_cv_header_stdc = yes; then
7304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 #include <stdlib.h>
7308
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "free" >/dev/null 2>&1; then :
7312
7313 else
7314 ac_cv_header_stdc=no
7315 fi
7316 rm -f conftest*
7317
7318 fi
7319
7320 if test $ac_cv_header_stdc = yes; then
7321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7322 if test "$cross_compiling" = yes; then :
7323 :
7324 else
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 #include <ctype.h>
7328 #include <stdlib.h>
7329 #if ((' ' & 0x0FF) == 0x020)
7330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7332 #else
7333 # define ISLOWER(c) \
7334 (('a' <= (c) && (c) <= 'i') \
7335 || ('j' <= (c) && (c) <= 'r') \
7336 || ('s' <= (c) && (c) <= 'z'))
7337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338 #endif
7339
7340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7341 int
7342 main ()
7343 {
7344 int i;
7345 for (i = 0; i < 256; i++)
7346 if (XOR (islower (i), ISLOWER (i))
7347 || toupper (i) != TOUPPER (i))
7348 return 2;
7349 return 0;
7350 }
7351 _ACEOF
7352 if ac_fn_c_try_run "$LINENO"; then :
7353
7354 else
7355 ac_cv_header_stdc=no
7356 fi
7357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7358 conftest.$ac_objext conftest.beam conftest.$ac_ext
7359 fi
7360
7361 fi
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7364 $as_echo "$ac_cv_header_stdc" >&6; }
7365 if test $ac_cv_header_stdc = yes; then
7366
7367 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7368
7369 fi
7370
7371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7373 inttypes.h stdint.h unistd.h
7374 do :
7375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7377 "
7378 eval as_val=\$$as_ac_Header
7379 if test "x$as_val" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 _ACEOF
7383
7384 fi
7385
7386 done
7387
7388
7389 for ac_header in dlfcn.h
7390 do :
7391 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7392 "
7393 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7394 cat >>confdefs.h <<_ACEOF
7395 #define HAVE_DLFCN_H 1
7396 _ACEOF
7397
7398 fi
7399
7400 done
7401
7402
7403
7404 # Set options
7405 enable_dlopen=yes
7406 # Check whether --enable-static was given.
7407 if test "${enable_static+set}" = set; then :
7408 enableval=$enable_static; p=${PACKAGE-default}
7409 case $enableval in
7410 yes) enable_static=yes ;;
7411 no) enable_static=no ;;
7412 *)
7413 enable_static=no
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for pkg in $enableval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$pkg" = "X$p"; then
7419 enable_static=yes
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
7423 ;;
7424 esac
7425 else
7426 enable_static=no
7427 fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439 enable_win32_dll=no
7440
7441
7442 # Check whether --enable-shared was given.
7443 if test "${enable_shared+set}" = set; then :
7444 enableval=$enable_shared; p=${PACKAGE-default}
7445 case $enableval in
7446 yes) enable_shared=yes ;;
7447 no) enable_shared=no ;;
7448 *)
7449 enable_shared=no
7450 # Look at the argument we got. We use all the common list separators.
7451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7452 for pkg in $enableval; do
7453 IFS="$lt_save_ifs"
7454 if test "X$pkg" = "X$p"; then
7455 enable_shared=yes
7456 fi
7457 done
7458 IFS="$lt_save_ifs"
7459 ;;
7460 esac
7461 else
7462 enable_shared=yes
7463 fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475 # Check whether --with-pic was given.
7476 if test "${with_pic+set}" = set; then :
7477 withval=$with_pic; pic_mode="$withval"
7478 else
7479 pic_mode=default
7480 fi
7481
7482
7483 test -z "$pic_mode" && pic_mode=default
7484
7485
7486
7487
7488
7489
7490
7491 # Check whether --enable-fast-install was given.
7492 if test "${enable_fast_install+set}" = set; then :
7493 enableval=$enable_fast_install; p=${PACKAGE-default}
7494 case $enableval in
7495 yes) enable_fast_install=yes ;;
7496 no) enable_fast_install=no ;;
7497 *)
7498 enable_fast_install=no
7499 # Look at the argument we got. We use all the common list separators.
7500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7501 for pkg in $enableval; do
7502 IFS="$lt_save_ifs"
7503 if test "X$pkg" = "X$p"; then
7504 enable_fast_install=yes
7505 fi
7506 done
7507 IFS="$lt_save_ifs"
7508 ;;
7509 esac
7510 else
7511 enable_fast_install=yes
7512 fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 # This can be used to rebuild libtool when needed
7525 LIBTOOL_DEPS="$ltmain"
7526
7527 # Always use our own libtool.
7528 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 test -z "$LN_S" && LN_S="ln -s"
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 if test -n "${ZSH_VERSION+set}" ; then
7570 setopt NO_GLOB_SUBST
7571 fi
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7574 $as_echo_n "checking for objdir... " >&6; }
7575 if test "${lt_cv_objdir+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 rm -f .libs 2>/dev/null
7579 mkdir .libs 2>/dev/null
7580 if test -d .libs; then
7581 lt_cv_objdir=.libs
7582 else
7583 # MS-DOS does not allow filenames that begin with a dot.
7584 lt_cv_objdir=_libs
7585 fi
7586 rmdir .libs 2>/dev/null
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7589 $as_echo "$lt_cv_objdir" >&6; }
7590 objdir=$lt_cv_objdir
7591
7592
7593
7594
7595
7596 cat >>confdefs.h <<_ACEOF
7597 #define LT_OBJDIR "$lt_cv_objdir/"
7598 _ACEOF
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 case $host_os in
7617 aix3*)
7618 # AIX sometimes has problems with the GCC collect2 program. For some
7619 # reason, if we set the COLLECT_NAMES environment variable, the problems
7620 # vanish in a puff of smoke.
7621 if test "X${COLLECT_NAMES+set}" != Xset; then
7622 COLLECT_NAMES=
7623 export COLLECT_NAMES
7624 fi
7625 ;;
7626 esac
7627
7628 # Sed substitution that helps us do robust quoting. It backslashifies
7629 # metacharacters that are still active within double-quoted strings.
7630 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7631
7632 # Same as above, but do not quote variable references.
7633 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7634
7635 # Sed substitution to delay expansion of an escaped shell variable in a
7636 # double_quote_subst'ed string.
7637 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7638
7639 # Sed substitution to delay expansion of an escaped single quote.
7640 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7641
7642 # Sed substitution to avoid accidental globbing in evaled expressions
7643 no_glob_subst='s/\*/\\\*/g'
7644
7645 # Global variables:
7646 ofile=libtool
7647 can_build_shared=yes
7648
7649 # All known linkers require a `.a' archive for static linking (except MSVC,
7650 # which needs '.lib').
7651 libext=a
7652
7653 with_gnu_ld="$lt_cv_prog_gnu_ld"
7654
7655 old_CC="$CC"
7656 old_CFLAGS="$CFLAGS"
7657
7658 # Set sane defaults for various variables
7659 test -z "$CC" && CC=cc
7660 test -z "$LTCC" && LTCC=$CC
7661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7662 test -z "$LD" && LD=ld
7663 test -z "$ac_objext" && ac_objext=o
7664
7665 for cc_temp in $compiler""; do
7666 case $cc_temp in
7667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7669 \-*) ;;
7670 *) break;;
7671 esac
7672 done
7673 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7674
7675
7676 # Only perform the check for file, if the check method requires it
7677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7678 case $deplibs_check_method in
7679 file_magic*)
7680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7683 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 case $MAGIC_CMD in
7687 [\\/*] | ?:[\\/]*)
7688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7689 ;;
7690 *)
7691 lt_save_MAGIC_CMD="$MAGIC_CMD"
7692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7694 for ac_dir in $ac_dummy; do
7695 IFS="$lt_save_ifs"
7696 test -z "$ac_dir" && ac_dir=.
7697 if test -f $ac_dir/${ac_tool_prefix}file; then
7698 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7699 if test -n "$file_magic_test_file"; then
7700 case $deplibs_check_method in
7701 "file_magic "*)
7702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7705 $EGREP "$file_magic_regex" > /dev/null; then
7706 :
7707 else
7708 cat <<_LT_EOF 1>&2
7709
7710 *** Warning: the command libtool uses to detect shared libraries,
7711 *** $file_magic_cmd, produces output that libtool cannot recognize.
7712 *** The result is that libtool may fail to recognize shared libraries
7713 *** as such. This will affect the creation of libtool libraries that
7714 *** depend on shared libraries, but programs linked with such libtool
7715 *** libraries will work regardless of this problem. Nevertheless, you
7716 *** may want to report the problem to your system manager and/or to
7717 *** bug-libtool@gnu.org
7718
7719 _LT_EOF
7720 fi ;;
7721 esac
7722 fi
7723 break
7724 fi
7725 done
7726 IFS="$lt_save_ifs"
7727 MAGIC_CMD="$lt_save_MAGIC_CMD"
7728 ;;
7729 esac
7730 fi
7731
7732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733 if test -n "$MAGIC_CMD"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7735 $as_echo "$MAGIC_CMD" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742
7743
7744
7745 if test -z "$lt_cv_path_MAGIC_CMD"; then
7746 if test -n "$ac_tool_prefix"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7748 $as_echo_n "checking for file... " >&6; }
7749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 case $MAGIC_CMD in
7753 [\\/*] | ?:[\\/]*)
7754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7755 ;;
7756 *)
7757 lt_save_MAGIC_CMD="$MAGIC_CMD"
7758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7760 for ac_dir in $ac_dummy; do
7761 IFS="$lt_save_ifs"
7762 test -z "$ac_dir" && ac_dir=.
7763 if test -f $ac_dir/file; then
7764 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7765 if test -n "$file_magic_test_file"; then
7766 case $deplibs_check_method in
7767 "file_magic "*)
7768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7771 $EGREP "$file_magic_regex" > /dev/null; then
7772 :
7773 else
7774 cat <<_LT_EOF 1>&2
7775
7776 *** Warning: the command libtool uses to detect shared libraries,
7777 *** $file_magic_cmd, produces output that libtool cannot recognize.
7778 *** The result is that libtool may fail to recognize shared libraries
7779 *** as such. This will affect the creation of libtool libraries that
7780 *** depend on shared libraries, but programs linked with such libtool
7781 *** libraries will work regardless of this problem. Nevertheless, you
7782 *** may want to report the problem to your system manager and/or to
7783 *** bug-libtool@gnu.org
7784
7785 _LT_EOF
7786 fi ;;
7787 esac
7788 fi
7789 break
7790 fi
7791 done
7792 IFS="$lt_save_ifs"
7793 MAGIC_CMD="$lt_save_MAGIC_CMD"
7794 ;;
7795 esac
7796 fi
7797
7798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799 if test -n "$MAGIC_CMD"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7801 $as_echo "$MAGIC_CMD" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 else
7809 MAGIC_CMD=:
7810 fi
7811 fi
7812
7813 fi
7814 ;;
7815 esac
7816
7817 # Use C for the default configuration in the libtool script
7818
7819 lt_save_CC="$CC"
7820 ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827 # Source file extension for C test sources.
7828 ac_ext=c
7829
7830 # Object file extension for compiled C test sources.
7831 objext=o
7832 objext=$objext
7833
7834 # Code to be used in simple compile tests
7835 lt_simple_compile_test_code="int some_variable = 0;"
7836
7837 # Code to be used in simple link tests
7838 lt_simple_link_test_code='int main(){return(0);}'
7839
7840
7841
7842
7843
7844
7845
7846 # If no C compiler was specified, use CC.
7847 LTCC=${LTCC-"$CC"}
7848
7849 # If no C compiler flags were specified, use CFLAGS.
7850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7851
7852 # Allow CC to be a program name with arguments.
7853 compiler=$CC
7854
7855 # Save the default compiler, since it gets overwritten when the other
7856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7857 compiler_DEFAULT=$CC
7858
7859 # save warnings/boilerplate of simple test code
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7863 _lt_compiler_boilerplate=`cat conftest.err`
7864 $RM conftest*
7865
7866 ac_outfile=conftest.$ac_objext
7867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7869 _lt_linker_boilerplate=`cat conftest.err`
7870 $RM -r conftest*
7871
7872
7873 if test -n "$compiler"; then
7874
7875 lt_prog_compiler_no_builtin_flag=
7876
7877 if test "$GCC" = yes; then
7878 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7881 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 lt_cv_prog_compiler_rtti_exceptions=no
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888 lt_compiler_flag="-fno-rtti -fno-exceptions"
7889 # Insert the option either (1) after the last *FLAGS variable, or
7890 # (2) before a word containing "conftest.", or (3) at the end.
7891 # Note that $ac_compile itself does not contain backslashes and begins
7892 # with a dollar sign (not a hyphen), so the echo should work correctly.
7893 # The option is referenced via a variable to avoid confusing sed.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
7898 (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
7899 (eval "$lt_compile" 2>conftest.err)
7900 ac_status=$?
7901 cat conftest.err >&5
7902 echo "$as_me:7902: \$? = $ac_status" >&5
7903 if (exit $ac_status) && test -s "$ac_outfile"; then
7904 # The compiler can only warn and ignore the option if not recognized
7905 # So say no if there are warnings other than the usual output.
7906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_rtti_exceptions=yes
7910 fi
7911 fi
7912 $RM conftest*
7913
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7917
7918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7920 else
7921 :
7922 fi
7923
7924 fi
7925
7926
7927
7928
7929
7930
7931 lt_prog_compiler_wl=
7932 lt_prog_compiler_pic=
7933 lt_prog_compiler_static=
7934
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7937
7938 if test "$GCC" = yes; then
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_static='-static'
7941
7942 case $host_os in
7943 aix*)
7944 # All AIX code is PIC.
7945 if test "$host_cpu" = ia64; then
7946 # AIX 5 now supports IA64 processor
7947 lt_prog_compiler_static='-Bstatic'
7948 fi
7949 ;;
7950
7951 amigaos*)
7952 case $host_cpu in
7953 powerpc)
7954 # see comment about AmigaOS4 .so support
7955 lt_prog_compiler_pic='-fPIC'
7956 ;;
7957 m68k)
7958 # FIXME: we need at least 68020 code to build shared libraries, but
7959 # adding the `-m68020' flag to GCC prevents building anything better,
7960 # like `-m68040'.
7961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7962 ;;
7963 esac
7964 ;;
7965
7966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7967 # PIC is the default for these OSes.
7968 ;;
7969
7970 mingw* | cygwin* | pw32* | os2* | cegcc*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7974 # (--disable-auto-import) libraries
7975 lt_prog_compiler_pic='-DDLL_EXPORT'
7976 ;;
7977
7978 darwin* | rhapsody*)
7979 # PIC is the default on this platform
7980 # Common symbols not allowed in MH_DYLIB files
7981 lt_prog_compiler_pic='-fno-common'
7982 ;;
7983
7984 hpux*)
7985 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7986 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7987 # sets the default TLS model and affects inlining.
7988 case $host_cpu in
7989 hppa*64*)
7990 # +Z the default
7991 ;;
7992 *)
7993 lt_prog_compiler_pic='-fPIC'
7994 ;;
7995 esac
7996 ;;
7997
7998 interix[3-9]*)
7999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8000 # Instead, we relocate shared libraries at runtime.
8001 ;;
8002
8003 msdosdjgpp*)
8004 # Just because we use GCC doesn't mean we suddenly get shared libraries
8005 # on systems that don't support them.
8006 lt_prog_compiler_can_build_shared=no
8007 enable_shared=no
8008 ;;
8009
8010 *nto* | *qnx*)
8011 # QNX uses GNU C++, but need to define -shared option too, otherwise
8012 # it will coredump.
8013 lt_prog_compiler_pic='-fPIC -shared'
8014 ;;
8015
8016 sysv4*MP*)
8017 if test -d /usr/nec; then
8018 lt_prog_compiler_pic=-Kconform_pic
8019 fi
8020 ;;
8021
8022 *)
8023 lt_prog_compiler_pic='-fPIC'
8024 ;;
8025 esac
8026 else
8027 # PORTME Check for flag to pass linker flags through the system compiler.
8028 case $host_os in
8029 aix*)
8030 lt_prog_compiler_wl='-Wl,'
8031 if test "$host_cpu" = ia64; then
8032 # AIX 5 now supports IA64 processor
8033 lt_prog_compiler_static='-Bstatic'
8034 else
8035 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8036 fi
8037 ;;
8038
8039 mingw* | cygwin* | pw32* | os2* | cegcc*)
8040 # This hack is so that the source file can tell whether it is being
8041 # built for inclusion in a dll (and should export symbols for example).
8042 lt_prog_compiler_pic='-DDLL_EXPORT'
8043 ;;
8044
8045 hpux9* | hpux10* | hpux11*)
8046 lt_prog_compiler_wl='-Wl,'
8047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8048 # not for PA HP-UX.
8049 case $host_cpu in
8050 hppa*64*|ia64*)
8051 # +Z the default
8052 ;;
8053 *)
8054 lt_prog_compiler_pic='+Z'
8055 ;;
8056 esac
8057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8058 lt_prog_compiler_static='${wl}-a ${wl}archive'
8059 ;;
8060
8061 irix5* | irix6* | nonstopux*)
8062 lt_prog_compiler_wl='-Wl,'
8063 # PIC (with -KPIC) is the default.
8064 lt_prog_compiler_static='-non_shared'
8065 ;;
8066
8067 linux* | k*bsd*-gnu)
8068 case $cc_basename in
8069 # old Intel for x86_64 which still supported -KPIC.
8070 ecc*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-static'
8074 ;;
8075 # icc used to be incompatible with GCC.
8076 # ICC 10 doesn't accept -KPIC any more.
8077 icc* | ifort*)
8078 lt_prog_compiler_wl='-Wl,'
8079 lt_prog_compiler_pic='-fPIC'
8080 lt_prog_compiler_static='-static'
8081 ;;
8082 # Lahey Fortran 8.1.
8083 lf95*)
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='--shared'
8086 lt_prog_compiler_static='--static'
8087 ;;
8088 pgcc* | pgf77* | pgf90* | pgf95*)
8089 # Portland Group compilers (*not* the Pentium gcc compiler,
8090 # which looks to be a dead project)
8091 lt_prog_compiler_wl='-Wl,'
8092 lt_prog_compiler_pic='-fpic'
8093 lt_prog_compiler_static='-Bstatic'
8094 ;;
8095 ccc*)
8096 lt_prog_compiler_wl='-Wl,'
8097 # All Alpha code is PIC.
8098 lt_prog_compiler_static='-non_shared'
8099 ;;
8100 xl*)
8101 # IBM XL C 8.0/Fortran 10.1 on PPC
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_pic='-qpic'
8104 lt_prog_compiler_static='-qstaticlink'
8105 ;;
8106 *)
8107 case `$CC -V 2>&1 | sed 5q` in
8108 *Sun\ C*)
8109 # Sun C 5.9
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-Bstatic'
8112 lt_prog_compiler_wl='-Wl,'
8113 ;;
8114 *Sun\ F*)
8115 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8118 lt_prog_compiler_wl=''
8119 ;;
8120 esac
8121 ;;
8122 esac
8123 ;;
8124
8125 newsos6)
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 ;;
8129
8130 *nto* | *qnx*)
8131 # QNX uses GNU C++, but need to define -shared option too, otherwise
8132 # it will coredump.
8133 lt_prog_compiler_pic='-fPIC -shared'
8134 ;;
8135
8136 osf3* | osf4* | osf5*)
8137 lt_prog_compiler_wl='-Wl,'
8138 # All OSF/1 code is PIC.
8139 lt_prog_compiler_static='-non_shared'
8140 ;;
8141
8142 rdos*)
8143 lt_prog_compiler_static='-non_shared'
8144 ;;
8145
8146 solaris*)
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8149 case $cc_basename in
8150 f77* | f90* | f95*)
8151 lt_prog_compiler_wl='-Qoption ld ';;
8152 *)
8153 lt_prog_compiler_wl='-Wl,';;
8154 esac
8155 ;;
8156
8157 sunos4*)
8158 lt_prog_compiler_wl='-Qoption ld '
8159 lt_prog_compiler_pic='-PIC'
8160 lt_prog_compiler_static='-Bstatic'
8161 ;;
8162
8163 sysv4 | sysv4.2uw2* | sysv4.3*)
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 ;;
8168
8169 sysv4*MP*)
8170 if test -d /usr/nec ;then
8171 lt_prog_compiler_pic='-Kconform_pic'
8172 lt_prog_compiler_static='-Bstatic'
8173 fi
8174 ;;
8175
8176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-KPIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 ;;
8181
8182 unicos*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_can_build_shared=no
8185 ;;
8186
8187 uts4*)
8188 lt_prog_compiler_pic='-pic'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 *)
8193 lt_prog_compiler_can_build_shared=no
8194 ;;
8195 esac
8196 fi
8197
8198 case $host_os in
8199 # For platforms which do not support PIC, -DPIC is meaningless:
8200 *djgpp*)
8201 lt_prog_compiler_pic=
8202 ;;
8203 *)
8204 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8205 ;;
8206 esac
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8208 $as_echo "$lt_prog_compiler_pic" >&6; }
8209
8210
8211
8212
8213
8214
8215 #
8216 # Check to make sure the PIC flag actually works.
8217 #
8218 if test -n "$lt_prog_compiler_pic"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8220 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8221 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 lt_cv_prog_compiler_pic_works=no
8225 ac_outfile=conftest.$ac_objext
8226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8227 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8228 # Insert the option either (1) after the last *FLAGS variable, or
8229 # (2) before a word containing "conftest.", or (3) at the end.
8230 # Note that $ac_compile itself does not contain backslashes and begins
8231 # with a dollar sign (not a hyphen), so the echo should work correctly.
8232 # The option is referenced via a variable to avoid confusing sed.
8233 lt_compile=`echo "$ac_compile" | $SED \
8234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236 -e 's:$: $lt_compiler_flag:'`
8237 (eval echo "\"\$as_me:8237: $lt_compile\"" >&5)
8238 (eval "$lt_compile" 2>conftest.err)
8239 ac_status=$?
8240 cat conftest.err >&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5
8242 if (exit $ac_status) && test -s "$ac_outfile"; then
8243 # The compiler can only warn and ignore the option if not recognized
8244 # So say no if there are warnings other than the usual output.
8245 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8248 lt_cv_prog_compiler_pic_works=yes
8249 fi
8250 fi
8251 $RM conftest*
8252
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8255 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8256
8257 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8258 case $lt_prog_compiler_pic in
8259 "" | " "*) ;;
8260 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8261 esac
8262 else
8263 lt_prog_compiler_pic=
8264 lt_prog_compiler_can_build_shared=no
8265 fi
8266
8267 fi
8268
8269
8270
8271
8272
8273
8274 #
8275 # Check to make sure the static flag actually works.
8276 #
8277 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8279 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8280 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 lt_cv_prog_compiler_static_works=no
8284 save_LDFLAGS="$LDFLAGS"
8285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8286 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8288 # The linker can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 if test -s conftest.err; then
8291 # Append any errors to the config.log.
8292 cat conftest.err 1>&5
8293 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8295 if diff conftest.exp conftest.er2 >/dev/null; then
8296 lt_cv_prog_compiler_static_works=yes
8297 fi
8298 else
8299 lt_cv_prog_compiler_static_works=yes
8300 fi
8301 fi
8302 $RM -r conftest*
8303 LDFLAGS="$save_LDFLAGS"
8304
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8307 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8308
8309 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8310 :
8311 else
8312 lt_prog_compiler_static=
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8323 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 lt_cv_prog_compiler_c_o=no
8327 $RM -r conftest 2>/dev/null
8328 mkdir conftest
8329 cd conftest
8330 mkdir out
8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332
8333 lt_compiler_flag="-o out/conftest2.$ac_objext"
8334 # Insert the option either (1) after the last *FLAGS variable, or
8335 # (2) before a word containing "conftest.", or (3) at the end.
8336 # Note that $ac_compile itself does not contain backslashes and begins
8337 # with a dollar sign (not a hyphen), so the echo should work correctly.
8338 lt_compile=`echo "$ac_compile" | $SED \
8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341 -e 's:$: $lt_compiler_flag:'`
8342 (eval echo "\"\$as_me:8342: $lt_compile\"" >&5)
8343 (eval "$lt_compile" 2>out/conftest.err)
8344 ac_status=$?
8345 cat out/conftest.err >&5
8346 echo "$as_me:8346: \$? = $ac_status" >&5
8347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8348 then
8349 # The compiler can only warn and ignore the option if not recognized
8350 # So say no if there are warnings
8351 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8354 lt_cv_prog_compiler_c_o=yes
8355 fi
8356 fi
8357 chmod u+w . 2>&5
8358 $RM conftest*
8359 # SGI C++ compiler will create directory out/ii_files/ for
8360 # template instantiation
8361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8362 $RM out/* && rmdir out
8363 cd ..
8364 $RM -r conftest
8365 $RM conftest*
8366
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8369 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8370
8371
8372
8373
8374
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8378 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 lt_cv_prog_compiler_c_o=no
8382 $RM -r conftest 2>/dev/null
8383 mkdir conftest
8384 cd conftest
8385 mkdir out
8386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387
8388 lt_compiler_flag="-o out/conftest2.$ac_objext"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 lt_compile=`echo "$ac_compile" | $SED \
8394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396 -e 's:$: $lt_compiler_flag:'`
8397 (eval echo "\"\$as_me:8397: $lt_compile\"" >&5)
8398 (eval "$lt_compile" 2>out/conftest.err)
8399 ac_status=$?
8400 cat out/conftest.err >&5
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8403 then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings
8406 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_c_o=yes
8410 fi
8411 fi
8412 chmod u+w . 2>&5
8413 $RM conftest*
8414 # SGI C++ compiler will create directory out/ii_files/ for
8415 # template instantiation
8416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8417 $RM out/* && rmdir out
8418 cd ..
8419 $RM -r conftest
8420 $RM conftest*
8421
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8425
8426
8427
8428
8429 hard_links="nottested"
8430 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8431 # do not overwrite the value of need_locks provided by the user
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8433 $as_echo_n "checking if we can lock with hard links... " >&6; }
8434 hard_links=yes
8435 $RM conftest*
8436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8437 touch conftest.a
8438 ln conftest.a conftest.b 2>&5 || hard_links=no
8439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8441 $as_echo "$hard_links" >&6; }
8442 if test "$hard_links" = no; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8445 need_locks=warn
8446 fi
8447 else
8448 need_locks=no
8449 fi
8450
8451
8452
8453
8454
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8458
8459 runpath_var=
8460 allow_undefined_flag=
8461 always_export_symbols=no
8462 archive_cmds=
8463 archive_expsym_cmds=
8464 compiler_needs_object=no
8465 enable_shared_with_static_runtimes=no
8466 export_dynamic_flag_spec=
8467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8468 hardcode_automatic=no
8469 hardcode_direct=no
8470 hardcode_direct_absolute=no
8471 hardcode_libdir_flag_spec=
8472 hardcode_libdir_flag_spec_ld=
8473 hardcode_libdir_separator=
8474 hardcode_minus_L=no
8475 hardcode_shlibpath_var=unsupported
8476 inherit_rpath=no
8477 link_all_deplibs=unknown
8478 module_cmds=
8479 module_expsym_cmds=
8480 old_archive_from_new_cmds=
8481 old_archive_from_expsyms_cmds=
8482 thread_safe_flag_spec=
8483 whole_archive_flag_spec=
8484 # include_expsyms should be a list of space-separated symbols to be *always*
8485 # included in the symbol list
8486 include_expsyms=
8487 # exclude_expsyms can be an extended regexp of symbols to exclude
8488 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8489 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8490 # as well as any symbol that contains `d'.
8491 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8492 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8493 # platforms (ab)use it in PIC code, but their linkers get confused if
8494 # the symbol is explicitly referenced. Since portable code cannot
8495 # rely on this symbol name, it's probably fine to never include it in
8496 # preloaded symbol tables.
8497 # Exclude shared library initialization/finalization symbols.
8498 extract_expsyms_cmds=
8499
8500 case $host_os in
8501 cygwin* | mingw* | pw32* | cegcc*)
8502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8503 # When not using gcc, we currently assume that we are using
8504 # Microsoft Visual C++.
8505 if test "$GCC" != yes; then
8506 with_gnu_ld=no
8507 fi
8508 ;;
8509 interix*)
8510 # we just hope/assume this is gcc and not c89 (= MSVC++)
8511 with_gnu_ld=yes
8512 ;;
8513 openbsd*)
8514 with_gnu_ld=no
8515 ;;
8516 esac
8517
8518 ld_shlibs=yes
8519 if test "$with_gnu_ld" = yes; then
8520 # If archive_cmds runs LD, not CC, wlarc should be empty
8521 wlarc='${wl}'
8522
8523 # Set some defaults for GNU ld with shared library support. These
8524 # are reset later if shared libraries are not supported. Putting them
8525 # here allows them to be overridden if necessary.
8526 runpath_var=LD_RUN_PATH
8527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528 export_dynamic_flag_spec='${wl}--export-dynamic'
8529 # ancient GNU ld didn't support --whole-archive et. al.
8530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8531 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8532 else
8533 whole_archive_flag_spec=
8534 fi
8535 supports_anon_versioning=no
8536 case `$LD -v 2>&1` in
8537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8540 *\ 2.11.*) ;; # other 2.11 versions
8541 *) supports_anon_versioning=yes ;;
8542 esac
8543
8544 # See if GNU ld supports shared libraries.
8545 case $host_os in
8546 aix[3-9]*)
8547 # On AIX/PPC, the GNU linker is very broken
8548 if test "$host_cpu" != ia64; then
8549 ld_shlibs=no
8550 cat <<_LT_EOF 1>&2
8551
8552 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8553 *** to be unable to reliably create shared libraries on AIX.
8554 *** Therefore, libtool is disabling shared libraries support. If you
8555 *** really care for shared libraries, you may want to modify your PATH
8556 *** so that a non-GNU linker is found, and then restart.
8557
8558 _LT_EOF
8559 fi
8560 ;;
8561
8562 amigaos*)
8563 case $host_cpu in
8564 powerpc)
8565 # see comment about AmigaOS4 .so support
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds=''
8568 ;;
8569 m68k)
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 ;;
8574 esac
8575 ;;
8576
8577 beos*)
8578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8579 allow_undefined_flag=unsupported
8580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8581 # support --undefined. This deserves some investigation. FIXME
8582 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 else
8584 ld_shlibs=no
8585 fi
8586 ;;
8587
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8590 # as there is no search path for DLLs.
8591 hardcode_libdir_flag_spec='-L$libdir'
8592 allow_undefined_flag=unsupported
8593 always_export_symbols=no
8594 enable_shared_with_static_runtimes=yes
8595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8596
8597 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8599 # If the export-symbols file already is a .def file (1st line
8600 # is EXPORTS), use it as is; otherwise, prepend...
8601 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8602 cp $export_symbols $output_objdir/$soname.def;
8603 else
8604 echo EXPORTS > $output_objdir/$soname.def;
8605 cat $export_symbols >> $output_objdir/$soname.def;
8606 fi~
8607 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
8612
8613 interix[3-9]*)
8614 hardcode_direct=no
8615 hardcode_shlibpath_var=no
8616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8617 export_dynamic_flag_spec='${wl}-E'
8618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8619 # Instead, shared libraries are loaded at an image base (0x10000000 by
8620 # default) and relocated if they conflict, which is a slow very memory
8621 # consuming and fragmenting process. To avoid this, we pick a random,
8622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8624 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8625 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'
8626 ;;
8627
8628 gnu* | linux* | tpf* | k*bsd*-gnu)
8629 tmp_diet=no
8630 if test "$host_os" = linux-dietlibc; then
8631 case $cc_basename in
8632 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8633 esac
8634 fi
8635 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8636 && test "$tmp_diet" = no
8637 then
8638 tmp_addflag=
8639 tmp_sharedflag='-shared'
8640 case $cc_basename,$host_cpu in
8641 pgcc*) # Portland Group C compiler
8642 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'
8643 tmp_addflag=' $pic_flag'
8644 ;;
8645 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8646 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'
8647 tmp_addflag=' $pic_flag -Mnomain' ;;
8648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8649 tmp_addflag=' -i_dynamic' ;;
8650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8651 tmp_addflag=' -i_dynamic -nofor_main' ;;
8652 ifc* | ifort*) # Intel Fortran compiler
8653 tmp_addflag=' -nofor_main' ;;
8654 lf95*) # Lahey Fortran 8.1
8655 whole_archive_flag_spec=
8656 tmp_sharedflag='--shared' ;;
8657 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8658 tmp_sharedflag='-qmkshrobj'
8659 tmp_addflag= ;;
8660 esac
8661 case `$CC -V 2>&1 | sed 5q` in
8662 *Sun\ C*) # Sun C 5.9
8663 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'
8664 compiler_needs_object=yes
8665 tmp_sharedflag='-G' ;;
8666 *Sun\ F*) # Sun Fortran 8.3
8667 tmp_sharedflag='-G' ;;
8668 esac
8669 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670
8671 if test "x$supports_anon_versioning" = xyes; then
8672 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8673 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8674 echo "local: *; };" >> $output_objdir/$libname.ver~
8675 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8676 fi
8677
8678 case $cc_basename in
8679 xlf*)
8680 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8681 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8682 hardcode_libdir_flag_spec=
8683 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8684 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8685 if test "x$supports_anon_versioning" = xyes; then
8686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8688 echo "local: *; };" >> $output_objdir/$libname.ver~
8689 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8690 fi
8691 ;;
8692 esac
8693 else
8694 ld_shlibs=no
8695 fi
8696 ;;
8697
8698 netbsd*)
8699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8700 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8701 wlarc=
8702 else
8703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705 fi
8706 ;;
8707
8708 solaris*)
8709 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8710 ld_shlibs=no
8711 cat <<_LT_EOF 1>&2
8712
8713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8714 *** create shared libraries on Solaris systems. Therefore, libtool
8715 *** is disabling shared libraries support. We urge you to upgrade GNU
8716 *** binutils to release 2.9.1 or newer. Another option is to modify
8717 *** your PATH or compiler configuration so that the native linker is
8718 *** used, and then restart.
8719
8720 _LT_EOF
8721 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8726 fi
8727 ;;
8728
8729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8730 case `$LD -v 2>&1` in
8731 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8732 ld_shlibs=no
8733 cat <<_LT_EOF 1>&2
8734
8735 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8736 *** reliably create shared libraries on SCO systems. Therefore, libtool
8737 *** is disabling shared libraries support. We urge you to upgrade GNU
8738 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8739 *** your PATH or compiler configuration so that the native linker is
8740 *** used, and then restart.
8741
8742 _LT_EOF
8743 ;;
8744 *)
8745 # For security reasons, it is highly recommended that you always
8746 # use absolute paths for naming shared libraries, and exclude the
8747 # DT_RUNPATH tag from executables and libraries. But doing so
8748 # requires that you compile everything twice, which is a pain.
8749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 else
8754 ld_shlibs=no
8755 fi
8756 ;;
8757 esac
8758 ;;
8759
8760 sunos4*)
8761 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762 wlarc=
8763 hardcode_direct=yes
8764 hardcode_shlibpath_var=no
8765 ;;
8766
8767 *)
8768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8775 esac
8776
8777 if test "$ld_shlibs" = no; then
8778 runpath_var=
8779 hardcode_libdir_flag_spec=
8780 export_dynamic_flag_spec=
8781 whole_archive_flag_spec=
8782 fi
8783 else
8784 # PORTME fill in a description of your system's linker (not GNU ld)
8785 case $host_os in
8786 aix3*)
8787 allow_undefined_flag=unsupported
8788 always_export_symbols=yes
8789 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'
8790 # Note: this linker hardcodes the directories in LIBPATH if there
8791 # are no directories specified by -L.
8792 hardcode_minus_L=yes
8793 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8794 # Neither direct hardcoding nor static linking is supported with a
8795 # broken collect2.
8796 hardcode_direct=unsupported
8797 fi
8798 ;;
8799
8800 aix[4-9]*)
8801 if test "$host_cpu" = ia64; then
8802 # On IA64, the linker does run time linking by default, so we don't
8803 # have to do anything special.
8804 aix_use_runtimelinking=no
8805 exp_sym_flag='-Bexport'
8806 no_entry_flag=""
8807 else
8808 # If we're using GNU nm, then we don't want the "-C" option.
8809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8810 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8811 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'
8812 else
8813 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'
8814 fi
8815 aix_use_runtimelinking=no
8816
8817 # Test if we are trying to use run time linking or normal
8818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8819 # need to do runtime linking.
8820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8821 for ld_flag in $LDFLAGS; do
8822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8823 aix_use_runtimelinking=yes
8824 break
8825 fi
8826 done
8827 ;;
8828 esac
8829
8830 exp_sym_flag='-bexport'
8831 no_entry_flag='-bnoentry'
8832 fi
8833
8834 # When large executables or shared objects are built, AIX ld can
8835 # have problems creating the table of contents. If linking a library
8836 # or program results in "error TOC overflow" add -mminimal-toc to
8837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8839
8840 archive_cmds=''
8841 hardcode_direct=yes
8842 hardcode_direct_absolute=yes
8843 hardcode_libdir_separator=':'
8844 link_all_deplibs=yes
8845 file_list_spec='${wl}-f,'
8846
8847 if test "$GCC" = yes; then
8848 case $host_os in aix4.[012]|aix4.[012].*)
8849 # We only want to do this on AIX 4.2 and lower, the check
8850 # below for broken collect2 doesn't work under 4.3+
8851 collect2name=`${CC} -print-prog-name=collect2`
8852 if test -f "$collect2name" &&
8853 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8854 then
8855 # We have reworked collect2
8856 :
8857 else
8858 # We have old collect2
8859 hardcode_direct=unsupported
8860 # It fails to find uninstalled libraries when the uninstalled
8861 # path is not listed in the libpath. Setting hardcode_minus_L
8862 # to unsupported forces relinking
8863 hardcode_minus_L=yes
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_libdir_separator=
8866 fi
8867 ;;
8868 esac
8869 shared_flag='-shared'
8870 if test "$aix_use_runtimelinking" = yes; then
8871 shared_flag="$shared_flag "'${wl}-G'
8872 fi
8873 else
8874 # not using gcc
8875 if test "$host_cpu" = ia64; then
8876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8877 # chokes on -Wl,-G. The following line is correct:
8878 shared_flag='-G'
8879 else
8880 if test "$aix_use_runtimelinking" = yes; then
8881 shared_flag='${wl}-G'
8882 else
8883 shared_flag='${wl}-bM:SRE'
8884 fi
8885 fi
8886 fi
8887
8888 export_dynamic_flag_spec='${wl}-bexpall'
8889 # It seems that -bexpall does not export symbols beginning with
8890 # underscore (_), so it is better to generate a list of symbols to export.
8891 always_export_symbols=yes
8892 if test "$aix_use_runtimelinking" = yes; then
8893 # Warning - without using the other runtime loading flags (-brtl),
8894 # -berok will link without error, but may produce a broken library.
8895 allow_undefined_flag='-berok'
8896 # Determine the default libpath from the value encoded in an
8897 # empty executable.
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900
8901 int
8902 main ()
8903 {
8904
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 if ac_fn_c_try_link "$LINENO"; then :
8910
8911 lt_aix_libpath_sed='
8912 /Import File Strings/,/^$/ {
8913 /^0/ {
8914 s/^0 *\(.*\)$/\1/
8915 p
8916 }
8917 }'
8918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919 # Check for a 64-bit object if we didn't find anything.
8920 if test -z "$aix_libpath"; then
8921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922 fi
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8927
8928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8929 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"
8930 else
8931 if test "$host_cpu" = ia64; then
8932 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8933 allow_undefined_flag="-z nodefs"
8934 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"
8935 else
8936 # Determine the default libpath from the value encoded in an
8937 # empty executable.
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940
8941 int
8942 main ()
8943 {
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_link "$LINENO"; then :
8950
8951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
8953 /^0/ {
8954 s/^0 *\(.*\)$/\1/
8955 p
8956 }
8957 }'
8958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$aix_libpath"; then
8961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8967
8968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8969 # Warning - without using the other run time loading flags,
8970 # -berok will link without error, but may produce a broken library.
8971 no_undefined_flag=' ${wl}-bernotok'
8972 allow_undefined_flag=' ${wl}-berok'
8973 # Exported symbols can be pulled into shared objects from archives
8974 whole_archive_flag_spec='$convenience'
8975 archive_cmds_need_lc=yes
8976 # This is similar to how AIX traditionally builds its shared libraries.
8977 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'
8978 fi
8979 fi
8980 ;;
8981
8982 amigaos*)
8983 case $host_cpu in
8984 powerpc)
8985 # see comment about AmigaOS4 .so support
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds=''
8988 ;;
8989 m68k)
8990 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)'
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 hardcode_minus_L=yes
8993 ;;
8994 esac
8995 ;;
8996
8997 bsdi[45]*)
8998 export_dynamic_flag_spec=-rdynamic
8999 ;;
9000
9001 cygwin* | mingw* | pw32* | cegcc*)
9002 # When not using gcc, we currently assume that we are using
9003 # Microsoft Visual C++.
9004 # hardcode_libdir_flag_spec is actually meaningless, as there is
9005 # no search path for DLLs.
9006 hardcode_libdir_flag_spec=' '
9007 allow_undefined_flag=unsupported
9008 # Tell ltmain to make .lib files, not .a files.
9009 libext=lib
9010 # Tell ltmain to make .dll files, not .so files.
9011 shrext_cmds=".dll"
9012 # FIXME: Setting linknames here is a bad hack.
9013 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9014 # The linker will automatically build a .lib file if we build a DLL.
9015 old_archive_from_new_cmds='true'
9016 # FIXME: Should let the user specify the lib program.
9017 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9018 fix_srcfile_path='`cygpath -w "$srcfile"`'
9019 enable_shared_with_static_runtimes=yes
9020 ;;
9021
9022 darwin* | rhapsody*)
9023
9024
9025 archive_cmds_need_lc=no
9026 hardcode_direct=no
9027 hardcode_automatic=yes
9028 hardcode_shlibpath_var=unsupported
9029 whole_archive_flag_spec=''
9030 link_all_deplibs=yes
9031 allow_undefined_flag="$_lt_dar_allow_undefined"
9032 case $cc_basename in
9033 ifort*) _lt_dar_can_shared=yes ;;
9034 *) _lt_dar_can_shared=$GCC ;;
9035 esac
9036 if test "$_lt_dar_can_shared" = "yes"; then
9037 output_verbose_link_cmd=echo
9038 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9039 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9040 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}"
9041 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}"
9042
9043 else
9044 ld_shlibs=no
9045 fi
9046
9047 ;;
9048
9049 dgux*)
9050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 freebsd1*)
9056 ld_shlibs=no
9057 ;;
9058
9059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9060 # support. Future versions do this automatically, but an explicit c++rt0.o
9061 # does not break anything, and helps significantly (at the cost of a little
9062 # extra space).
9063 freebsd2.2*)
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9065 hardcode_libdir_flag_spec='-R$libdir'
9066 hardcode_direct=yes
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9071 freebsd2*)
9072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_direct=yes
9074 hardcode_minus_L=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9079 freebsd* | dragonfly*)
9080 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9081 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_direct=yes
9083 hardcode_shlibpath_var=no
9084 ;;
9085
9086 hpux9*)
9087 if test "$GCC" = yes; then
9088 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'
9089 else
9090 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'
9091 fi
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator=:
9094 hardcode_direct=yes
9095
9096 # hardcode_minus_L: Not really in the search PATH,
9097 # but as the default location of the library.
9098 hardcode_minus_L=yes
9099 export_dynamic_flag_spec='${wl}-E'
9100 ;;
9101
9102 hpux10*)
9103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9104 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9107 fi
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_flag_spec_ld='+b $libdir'
9111 hardcode_libdir_separator=:
9112 hardcode_direct=yes
9113 hardcode_direct_absolute=yes
9114 export_dynamic_flag_spec='${wl}-E'
9115 # hardcode_minus_L: Not really in the search PATH,
9116 # but as the default location of the library.
9117 hardcode_minus_L=yes
9118 fi
9119 ;;
9120
9121 hpux11*)
9122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9123 case $host_cpu in
9124 hppa*64*)
9125 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 ;;
9127 ia64*)
9128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9129 ;;
9130 *)
9131 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132 ;;
9133 esac
9134 else
9135 case $host_cpu in
9136 hppa*64*)
9137 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 ;;
9139 ia64*)
9140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 *)
9143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 esac
9146 fi
9147 if test "$with_gnu_ld" = no; then
9148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9149 hardcode_libdir_separator=:
9150
9151 case $host_cpu in
9152 hppa*64*|ia64*)
9153 hardcode_direct=no
9154 hardcode_shlibpath_var=no
9155 ;;
9156 *)
9157 hardcode_direct=yes
9158 hardcode_direct_absolute=yes
9159 export_dynamic_flag_spec='${wl}-E'
9160
9161 # hardcode_minus_L: Not really in the search PATH,
9162 # but as the default location of the library.
9163 hardcode_minus_L=yes
9164 ;;
9165 esac
9166 fi
9167 ;;
9168
9169 irix5* | irix6* | nonstopux*)
9170 if test "$GCC" = yes; then
9171 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'
9172 # Try to use the -exported_symbol ld option, if it does not
9173 # work, assume that -exports_file does not work either and
9174 # implicitly export all symbols.
9175 save_LDFLAGS="$LDFLAGS"
9176 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 int foo(void) {}
9180 _ACEOF
9181 if ac_fn_c_try_link "$LINENO"; then :
9182 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'
9183
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LDFLAGS="$save_LDFLAGS"
9188 else
9189 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'
9190 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'
9191 fi
9192 archive_cmds_need_lc='no'
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 hardcode_libdir_separator=:
9195 inherit_rpath=yes
9196 link_all_deplibs=yes
9197 ;;
9198
9199 netbsd*)
9200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9202 else
9203 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9204 fi
9205 hardcode_libdir_flag_spec='-R$libdir'
9206 hardcode_direct=yes
9207 hardcode_shlibpath_var=no
9208 ;;
9209
9210 newsos6)
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_direct=yes
9213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 hardcode_libdir_separator=:
9215 hardcode_shlibpath_var=no
9216 ;;
9217
9218 *nto* | *qnx*)
9219 ;;
9220
9221 openbsd*)
9222 if test -f /usr/libexec/ld.so; then
9223 hardcode_direct=yes
9224 hardcode_shlibpath_var=no
9225 hardcode_direct_absolute=yes
9226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9228 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9230 export_dynamic_flag_spec='${wl}-E'
9231 else
9232 case $host_os in
9233 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9235 hardcode_libdir_flag_spec='-R$libdir'
9236 ;;
9237 *)
9238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9240 ;;
9241 esac
9242 fi
9243 else
9244 ld_shlibs=no
9245 fi
9246 ;;
9247
9248 os2*)
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_minus_L=yes
9251 allow_undefined_flag=unsupported
9252 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'
9253 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9254 ;;
9255
9256 osf3*)
9257 if test "$GCC" = yes; then
9258 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9259 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'
9260 else
9261 allow_undefined_flag=' -expect_unresolved \*'
9262 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'
9263 fi
9264 archive_cmds_need_lc='no'
9265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9266 hardcode_libdir_separator=:
9267 ;;
9268
9269 osf4* | osf5*) # as osf3* with the addition of -msym flag
9270 if test "$GCC" = yes; then
9271 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9272 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'
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 else
9275 allow_undefined_flag=' -expect_unresolved \*'
9276 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'
9277 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~
9278 $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'
9279
9280 # Both c and cxx compiler support -rpath directly
9281 hardcode_libdir_flag_spec='-rpath $libdir'
9282 fi
9283 archive_cmds_need_lc='no'
9284 hardcode_libdir_separator=:
9285 ;;
9286
9287 solaris*)
9288 no_undefined_flag=' -z defs'
9289 if test "$GCC" = yes; then
9290 wlarc='${wl}'
9291 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9293 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9294 else
9295 case `$CC -V 2>&1` in
9296 *"Compilers 5.0"*)
9297 wlarc=''
9298 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9300 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9301 ;;
9302 *)
9303 wlarc='${wl}'
9304 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9306 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9307 ;;
9308 esac
9309 fi
9310 hardcode_libdir_flag_spec='-R$libdir'
9311 hardcode_shlibpath_var=no
9312 case $host_os in
9313 solaris2.[0-5] | solaris2.[0-5].*) ;;
9314 *)
9315 # The compiler driver will combine and reorder linker options,
9316 # but understands `-z linker_flag'. GCC discards it without `$wl',
9317 # but is careful enough not to reorder.
9318 # Supported since Solaris 2.6 (maybe 2.5.1?)
9319 if test "$GCC" = yes; then
9320 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9321 else
9322 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9323 fi
9324 ;;
9325 esac
9326 link_all_deplibs=yes
9327 ;;
9328
9329 sunos4*)
9330 if test "x$host_vendor" = xsequent; then
9331 # Use $CC to link under sequent, because it throws in some extra .o
9332 # files that make .init and .fini sections work.
9333 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9334 else
9335 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9336 fi
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_direct=yes
9339 hardcode_minus_L=yes
9340 hardcode_shlibpath_var=no
9341 ;;
9342
9343 sysv4)
9344 case $host_vendor in
9345 sni)
9346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_direct=yes # is this really true???
9348 ;;
9349 siemens)
9350 ## LD is ld it makes a PLAMLIB
9351 ## CC just makes a GrossModule.
9352 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9353 reload_cmds='$CC -r -o $output$reload_objs'
9354 hardcode_direct=no
9355 ;;
9356 motorola)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9359 ;;
9360 esac
9361 runpath_var='LD_RUN_PATH'
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 sysv4.3*)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_shlibpath_var=no
9368 export_dynamic_flag_spec='-Bexport'
9369 ;;
9370
9371 sysv4*MP*)
9372 if test -d /usr/nec; then
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_shlibpath_var=no
9375 runpath_var=LD_RUN_PATH
9376 hardcode_runpath_var=yes
9377 ld_shlibs=yes
9378 fi
9379 ;;
9380
9381 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9382 no_undefined_flag='${wl}-z,text'
9383 archive_cmds_need_lc=no
9384 hardcode_shlibpath_var=no
9385 runpath_var='LD_RUN_PATH'
9386
9387 if test "$GCC" = yes; then
9388 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 fi
9394 ;;
9395
9396 sysv5* | sco3.2v5* | sco5v6*)
9397 # Note: We can NOT use -z defs as we might desire, because we do not
9398 # link with -lc, and that would cause any symbols used from libc to
9399 # always be unresolved, which means just about no library would
9400 # ever link correctly. If we're not using GNU ld we use -z text
9401 # though, which does catch some bad symbols but isn't as heavy-handed
9402 # as -z defs.
9403 no_undefined_flag='${wl}-z,text'
9404 allow_undefined_flag='${wl}-z,nodefs'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9408 hardcode_libdir_separator=':'
9409 link_all_deplibs=yes
9410 export_dynamic_flag_spec='${wl}-Bexport'
9411 runpath_var='LD_RUN_PATH'
9412
9413 if test "$GCC" = yes; then
9414 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 else
9417 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 fi
9420 ;;
9421
9422 uts4*)
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 *)
9429 ld_shlibs=no
9430 ;;
9431 esac
9432
9433 if test x$host_vendor = xsni; then
9434 case $host in
9435 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9436 export_dynamic_flag_spec='${wl}-Blargedynsym'
9437 ;;
9438 esac
9439 fi
9440 fi
9441
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9443 $as_echo "$ld_shlibs" >&6; }
9444 test "$ld_shlibs" = no && can_build_shared=no
9445
9446 with_gnu_ld=$with_gnu_ld
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462 #
9463 # Do we need to explicitly link libc?
9464 #
9465 case "x$archive_cmds_need_lc" in
9466 x|xyes)
9467 # Assume -lc should be added
9468 archive_cmds_need_lc=yes
9469
9470 if test "$enable_shared" = yes && test "$GCC" = yes; then
9471 case $archive_cmds in
9472 *'~'*)
9473 # FIXME: we may have to deal with multi-command sequences.
9474 ;;
9475 '$CC '*)
9476 # Test whether the compiler implicitly links with -lc since on some
9477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9478 # to ld, don't add -lc before -lgcc.
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9480 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9481 $RM conftest*
9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483
9484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9485 (eval $ac_compile) 2>&5
9486 ac_status=$?
9487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488 test $ac_status = 0; } 2>conftest.err; then
9489 soname=conftest
9490 lib=conftest
9491 libobjs=conftest.$ac_objext
9492 deplibs=
9493 wl=$lt_prog_compiler_wl
9494 pic_flag=$lt_prog_compiler_pic
9495 compiler_flags=-v
9496 linker_flags=-v
9497 verstring=
9498 output_objdir=.
9499 libname=conftest
9500 lt_save_allow_undefined_flag=$allow_undefined_flag
9501 allow_undefined_flag=
9502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9504 ac_status=$?
9505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9506 test $ac_status = 0; }
9507 then
9508 archive_cmds_need_lc=no
9509 else
9510 archive_cmds_need_lc=yes
9511 fi
9512 allow_undefined_flag=$lt_save_allow_undefined_flag
9513 else
9514 cat conftest.err 1>&5
9515 fi
9516 $RM conftest*
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9518 $as_echo "$archive_cmds_need_lc" >&6; }
9519 ;;
9520 esac
9521 fi
9522 ;;
9523 esac
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
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9682 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9683
9684 if test "$GCC" = yes; then
9685 case $host_os in
9686 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9687 *) lt_awk_arg="/^libraries:/" ;;
9688 esac
9689 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9690 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9691 # if the path contains ";" then we assume it to be the separator
9692 # otherwise default to the standard path separator (i.e. ":") - it is
9693 # assumed that no part of a normal pathname contains ";" but that should
9694 # okay in the real world where ";" in dirpaths is itself problematic.
9695 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9696 else
9697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9698 fi
9699 # Ok, now we have the path, separated by spaces, we can step through it
9700 # and add multilib dir if necessary.
9701 lt_tmp_lt_search_path_spec=
9702 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9703 for lt_sys_path in $lt_search_path_spec; do
9704 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9706 else
9707 test -d "$lt_sys_path" && \
9708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9709 fi
9710 done
9711 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9712 BEGIN {RS=" "; FS="/|\n";} {
9713 lt_foo="";
9714 lt_count=0;
9715 for (lt_i = NF; lt_i > 0; lt_i--) {
9716 if ($lt_i != "" && $lt_i != ".") {
9717 if ($lt_i == "..") {
9718 lt_count++;
9719 } else {
9720 if (lt_count == 0) {
9721 lt_foo="/" $lt_i lt_foo;
9722 } else {
9723 lt_count--;
9724 }
9725 }
9726 }
9727 }
9728 if (lt_foo != "") { lt_freq[lt_foo]++; }
9729 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9730 }'`
9731 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9732 else
9733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9734 fi
9735 library_names_spec=
9736 libname_spec='lib$name'
9737 soname_spec=
9738 shrext_cmds=".so"
9739 postinstall_cmds=
9740 postuninstall_cmds=
9741 finish_cmds=
9742 finish_eval=
9743 shlibpath_var=
9744 shlibpath_overrides_runpath=unknown
9745 version_type=none
9746 dynamic_linker="$host_os ld.so"
9747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9748 need_lib_prefix=unknown
9749 hardcode_into_libs=no
9750
9751 # when you set need_version to no, make sure it does not cause -set_version
9752 # flags to be left without arguments
9753 need_version=unknown
9754
9755 case $host_os in
9756 aix3*)
9757 version_type=linux
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9759 shlibpath_var=LIBPATH
9760
9761 # AIX 3 has no versioning support, so we append a major version to the name.
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 ;;
9764
9765 aix[4-9]*)
9766 version_type=linux
9767 need_lib_prefix=no
9768 need_version=no
9769 hardcode_into_libs=yes
9770 if test "$host_cpu" = ia64; then
9771 # AIX 5 supports IA64
9772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 else
9775 # With GCC up to 2.95.x, collect2 would create an import file
9776 # for dependence libraries. The import file would start with
9777 # the line `#! .'. This would cause the generated library to
9778 # depend on `.', always an invalid library. This was fixed in
9779 # development snapshots of GCC prior to 3.0.
9780 case $host_os in
9781 aix4 | aix4.[01] | aix4.[01].*)
9782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9783 echo ' yes '
9784 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9785 :
9786 else
9787 can_build_shared=no
9788 fi
9789 ;;
9790 esac
9791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9792 # soname into executable. Probably we can add versioning support to
9793 # collect2, so additional links can be useful in future.
9794 if test "$aix_use_runtimelinking" = yes; then
9795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9796 # instead of lib<name>.a to let people know that these are not
9797 # typical AIX shared libraries.
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 else
9800 # We preserve .a as extension for shared libraries through AIX4.2
9801 # and later when we are not doing run time linking.
9802 library_names_spec='${libname}${release}.a $libname.a'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 fi
9805 shlibpath_var=LIBPATH
9806 fi
9807 ;;
9808
9809 amigaos*)
9810 case $host_cpu in
9811 powerpc)
9812 # Since July 2007 AmigaOS4 officially supports .so libraries.
9813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 ;;
9816 m68k)
9817 library_names_spec='$libname.ixlibrary $libname.a'
9818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9819 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'
9820 ;;
9821 esac
9822 ;;
9823
9824 beos*)
9825 library_names_spec='${libname}${shared_ext}'
9826 dynamic_linker="$host_os ld.so"
9827 shlibpath_var=LIBRARY_PATH
9828 ;;
9829
9830 bsdi[45]*)
9831 version_type=linux
9832 need_version=no
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9839 # the default ld.so.conf also contains /usr/contrib/lib and
9840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9841 # libtool to hard-code these into programs
9842 ;;
9843
9844 cygwin* | mingw* | pw32* | cegcc*)
9845 version_type=windows
9846 shrext_cmds=".dll"
9847 need_version=no
9848 need_lib_prefix=no
9849
9850 case $GCC,$host_os in
9851 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9852 library_names_spec='$libname.dll.a'
9853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9854 postinstall_cmds='base_file=`basename \${file}`~
9855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9856 dldir=$destdir/`dirname \$dlpath`~
9857 test -d \$dldir || mkdir -p \$dldir~
9858 $install_prog $dir/$dlname \$dldir/$dlname~
9859 chmod a+x \$dldir/$dlname~
9860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9862 fi'
9863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9864 dlpath=$dir/\$dldll~
9865 $RM \$dlpath'
9866 shlibpath_overrides_runpath=yes
9867
9868 case $host_os in
9869 cygwin*)
9870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9873 ;;
9874 mingw* | cegcc*)
9875 # MinGW DLLs use traditional 'lib' prefix
9876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9877 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9878 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9879 # It is most probably a Windows format PATH printed by
9880 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9881 # path with ; separators, and with drive letters. We can handle the
9882 # drive letters (cygwin fileutils understands them), so leave them,
9883 # especially as we might pass files found there to a mingw objdump,
9884 # which wouldn't understand a cygwinified path. Ahh.
9885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9886 else
9887 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9888 fi
9889 ;;
9890 pw32*)
9891 # pw32 DLLs use 'pw' prefix rather than 'lib'
9892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9893 ;;
9894 esac
9895 ;;
9896
9897 *)
9898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9899 ;;
9900 esac
9901 dynamic_linker='Win32 ld.exe'
9902 # FIXME: first we should search . and the directory the executable is in
9903 shlibpath_var=PATH
9904 ;;
9905
9906 darwin* | rhapsody*)
9907 dynamic_linker="$host_os dyld"
9908 version_type=darwin
9909 need_lib_prefix=no
9910 need_version=no
9911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9912 soname_spec='${libname}${release}${major}$shared_ext'
9913 shlibpath_overrides_runpath=yes
9914 shlibpath_var=DYLD_LIBRARY_PATH
9915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9916
9917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9919 ;;
9920
9921 dgux*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 ;;
9929
9930 freebsd1*)
9931 dynamic_linker=no
9932 ;;
9933
9934 freebsd* | dragonfly*)
9935 # DragonFly does not have aout. When/if they implement a new
9936 # versioning mechanism, adjust this.
9937 if test -x /usr/bin/objformat; then
9938 objformat=`/usr/bin/objformat`
9939 else
9940 case $host_os in
9941 freebsd[123]*) objformat=aout ;;
9942 *) objformat=elf ;;
9943 esac
9944 fi
9945 version_type=freebsd-$objformat
9946 case $version_type in
9947 freebsd-elf*)
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9949 need_version=no
9950 need_lib_prefix=no
9951 ;;
9952 freebsd-*)
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9954 need_version=yes
9955 ;;
9956 esac
9957 shlibpath_var=LD_LIBRARY_PATH
9958 case $host_os in
9959 freebsd2*)
9960 shlibpath_overrides_runpath=yes
9961 ;;
9962 freebsd3.[01]* | freebsdelf3.[01]*)
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 ;;
9966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9968 shlibpath_overrides_runpath=no
9969 hardcode_into_libs=yes
9970 ;;
9971 *) # from 4.6 on, and DragonFly
9972 shlibpath_overrides_runpath=yes
9973 hardcode_into_libs=yes
9974 ;;
9975 esac
9976 ;;
9977
9978 gnu*)
9979 version_type=linux
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 hardcode_into_libs=yes
9986 ;;
9987
9988 hpux9* | hpux10* | hpux11*)
9989 # Give a soname corresponding to the major version so that dld.sl refuses to
9990 # link against other versions.
9991 version_type=sunos
9992 need_lib_prefix=no
9993 need_version=no
9994 case $host_cpu in
9995 ia64*)
9996 shrext_cmds='.so'
9997 hardcode_into_libs=yes
9998 dynamic_linker="$host_os dld.so"
9999 shlibpath_var=LD_LIBRARY_PATH
10000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 if test "X$HPUX_IA64_MODE" = X32; then
10004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10005 else
10006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10007 fi
10008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10009 ;;
10010 hppa*64*)
10011 shrext_cmds='.sl'
10012 hardcode_into_libs=yes
10013 dynamic_linker="$host_os dld.sl"
10014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020 ;;
10021 *)
10022 shrext_cmds='.sl'
10023 dynamic_linker="$host_os dld.sl"
10024 shlibpath_var=SHLIB_PATH
10025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 ;;
10029 esac
10030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10031 postinstall_cmds='chmod 555 $lib'
10032 ;;
10033
10034 interix[3-9]*)
10035 version_type=linux
10036 need_lib_prefix=no
10037 need_version=no
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=no
10043 hardcode_into_libs=yes
10044 ;;
10045
10046 irix5* | irix6* | nonstopux*)
10047 case $host_os in
10048 nonstopux*) version_type=nonstopux ;;
10049 *)
10050 if test "$lt_cv_prog_gnu_ld" = yes; then
10051 version_type=linux
10052 else
10053 version_type=irix
10054 fi ;;
10055 esac
10056 need_lib_prefix=no
10057 need_version=no
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10060 case $host_os in
10061 irix5* | nonstopux*)
10062 libsuff= shlibsuff=
10063 ;;
10064 *)
10065 case $LD in # libtool.m4 will add one of these switches to LD
10066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10067 libsuff= shlibsuff= libmagic=32-bit;;
10068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10069 libsuff=32 shlibsuff=N32 libmagic=N32;;
10070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10072 *) libsuff= shlibsuff= libmagic=never-match;;
10073 esac
10074 ;;
10075 esac
10076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10077 shlibpath_overrides_runpath=no
10078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10080 hardcode_into_libs=yes
10081 ;;
10082
10083 # No shared lib support for Linux oldld, aout, or coff.
10084 linux*oldld* | linux*aout* | linux*coff*)
10085 dynamic_linker=no
10086 ;;
10087
10088 # This must be Linux ELF.
10089 linux* | k*bsd*-gnu)
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=no
10098 # Some binutils ld are patched to set DT_RUNPATH
10099 save_LDFLAGS=$LDFLAGS
10100 save_libdir=$libdir
10101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105
10106 int
10107 main ()
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10116 shlibpath_overrides_runpath=yes
10117 fi
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LDFLAGS=$save_LDFLAGS
10122 libdir=$save_libdir
10123
10124 # This implies no fast_install, which is unacceptable.
10125 # Some rework will be needed to allow for fast_install
10126 # before this can be enabled.
10127 hardcode_into_libs=yes
10128
10129 # Append ld.so.conf contents to the search path
10130 if test -f /etc/ld.so.conf; then
10131 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' ' '`
10132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10133 fi
10134
10135 # We used to test for /lib/ld.so.1 and disable shared libraries on
10136 # powerpc, because MkLinux only supported shared libraries with the
10137 # GNU dynamic linker. Since this was broken with cross compilers,
10138 # most powerpc-linux boxes support dynamic linking these days and
10139 # people can always --disable-shared, the test was removed, and we
10140 # assume the GNU/Linux dynamic linker is in use.
10141 dynamic_linker='GNU/Linux ld.so'
10142 ;;
10143
10144 netbsd*)
10145 version_type=sunos
10146 need_lib_prefix=no
10147 need_version=no
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10151 dynamic_linker='NetBSD (a.out) ld.so'
10152 else
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 dynamic_linker='NetBSD ld.elf_so'
10156 fi
10157 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=yes
10159 hardcode_into_libs=yes
10160 ;;
10161
10162 newsos6)
10163 version_type=linux
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 ;;
10168
10169 *nto* | *qnx*)
10170 version_type=qnx
10171 need_lib_prefix=no
10172 need_version=no
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath=no
10177 hardcode_into_libs=yes
10178 dynamic_linker='ldqnx.so'
10179 ;;
10180
10181 openbsd*)
10182 version_type=sunos
10183 sys_lib_dlsearch_path_spec="/usr/lib"
10184 need_lib_prefix=no
10185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10186 case $host_os in
10187 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10188 *) need_version=no ;;
10189 esac
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10194 case $host_os in
10195 openbsd2.[89] | openbsd2.[89].*)
10196 shlibpath_overrides_runpath=no
10197 ;;
10198 *)
10199 shlibpath_overrides_runpath=yes
10200 ;;
10201 esac
10202 else
10203 shlibpath_overrides_runpath=yes
10204 fi
10205 ;;
10206
10207 os2*)
10208 libname_spec='$name'
10209 shrext_cmds=".dll"
10210 need_lib_prefix=no
10211 library_names_spec='$libname${shared_ext} $libname.a'
10212 dynamic_linker='OS/2 ld.exe'
10213 shlibpath_var=LIBPATH
10214 ;;
10215
10216 osf3* | osf4* | osf5*)
10217 version_type=osf
10218 need_lib_prefix=no
10219 need_version=no
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10225 ;;
10226
10227 rdos*)
10228 dynamic_linker=no
10229 ;;
10230
10231 solaris*)
10232 version_type=linux
10233 need_lib_prefix=no
10234 need_version=no
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=yes
10239 hardcode_into_libs=yes
10240 # ldd complains unless libraries are executable
10241 postinstall_cmds='chmod +x $lib'
10242 ;;
10243
10244 sunos4*)
10245 version_type=sunos
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 if test "$with_gnu_ld" = yes; then
10251 need_lib_prefix=no
10252 fi
10253 need_version=yes
10254 ;;
10255
10256 sysv4 | sysv4.3*)
10257 version_type=linux
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 case $host_vendor in
10262 sni)
10263 shlibpath_overrides_runpath=no
10264 need_lib_prefix=no
10265 runpath_var=LD_RUN_PATH
10266 ;;
10267 siemens)
10268 need_lib_prefix=no
10269 ;;
10270 motorola)
10271 need_lib_prefix=no
10272 need_version=no
10273 shlibpath_overrides_runpath=no
10274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10275 ;;
10276 esac
10277 ;;
10278
10279 sysv4*MP*)
10280 if test -d /usr/nec ;then
10281 version_type=linux
10282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10283 soname_spec='$libname${shared_ext}.$major'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 fi
10286 ;;
10287
10288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10289 version_type=freebsd-elf
10290 need_lib_prefix=no
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10297 if test "$with_gnu_ld" = yes; then
10298 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10299 else
10300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10301 case $host_os in
10302 sco3.2v5*)
10303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10304 ;;
10305 esac
10306 fi
10307 sys_lib_dlsearch_path_spec='/usr/lib'
10308 ;;
10309
10310 tpf*)
10311 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10312 version_type=linux
10313 need_lib_prefix=no
10314 need_version=no
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=no
10318 hardcode_into_libs=yes
10319 ;;
10320
10321 uts4*)
10322 version_type=linux
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 ;;
10327
10328 *)
10329 dynamic_linker=no
10330 ;;
10331 esac
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10333 $as_echo "$dynamic_linker" >&6; }
10334 test "$dynamic_linker" = no && can_build_shared=no
10335
10336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10337 if test "$GCC" = yes; then
10338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10339 fi
10340
10341 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10342 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10343 fi
10344 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10345 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10435 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10436 hardcode_action=
10437 if test -n "$hardcode_libdir_flag_spec" ||
10438 test -n "$runpath_var" ||
10439 test "X$hardcode_automatic" = "Xyes" ; then
10440
10441 # We can hardcode non-existent directories.
10442 if test "$hardcode_direct" != no &&
10443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10444 # have to relink, otherwise we might link with an installed library
10445 # when we should be linking with a yet-to-be-installed one
10446 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10447 test "$hardcode_minus_L" != no; then
10448 # Linking always hardcodes the temporary library directory.
10449 hardcode_action=relink
10450 else
10451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10452 hardcode_action=immediate
10453 fi
10454 else
10455 # We cannot hardcode anything, or else we can only hardcode existing
10456 # directories.
10457 hardcode_action=unsupported
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10460 $as_echo "$hardcode_action" >&6; }
10461
10462 if test "$hardcode_action" = relink ||
10463 test "$inherit_rpath" = yes; then
10464 # Fast installation is not supported
10465 enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467 test "$enable_shared" = no; then
10468 # Fast installation is not necessary
10469 enable_fast_install=needless
10470 fi
10471
10472
10473
10474
10475
10476
10477 if test "x$enable_dlopen" != xyes; then
10478 enable_dlopen=unknown
10479 enable_dlopen_self=unknown
10480 enable_dlopen_self_static=unknown
10481 else
10482 lt_cv_dlopen=no
10483 lt_cv_dlopen_libs=
10484
10485 case $host_os in
10486 beos*)
10487 lt_cv_dlopen="load_add_on"
10488 lt_cv_dlopen_libs=
10489 lt_cv_dlopen_self=yes
10490 ;;
10491
10492 mingw* | pw32* | cegcc*)
10493 lt_cv_dlopen="LoadLibrary"
10494 lt_cv_dlopen_libs=
10495 ;;
10496
10497 cygwin*)
10498 lt_cv_dlopen="dlopen"
10499 lt_cv_dlopen_libs=
10500 ;;
10501
10502 darwin*)
10503 # if libdl is installed we need to link against it
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10505 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10506 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 ac_check_lib_save_LIBS=$LIBS
10510 LIBS="-ldl $LIBS"
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513
10514 /* Override any GCC internal prototype to avoid an error.
10515 Use char because int might match the return type of a GCC
10516 builtin and then its argument prototype would still apply. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 char dlopen ();
10521 int
10522 main ()
10523 {
10524 return dlopen ();
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 if ac_fn_c_try_link "$LINENO"; then :
10530 ac_cv_lib_dl_dlopen=yes
10531 else
10532 ac_cv_lib_dl_dlopen=no
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10536 LIBS=$ac_check_lib_save_LIBS
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10539 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10540 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10542 else
10543
10544 lt_cv_dlopen="dyld"
10545 lt_cv_dlopen_libs=
10546 lt_cv_dlopen_self=yes
10547
10548 fi
10549
10550 ;;
10551
10552 *)
10553 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10554 if test "x$ac_cv_func_shl_load" = x""yes; then :
10555 lt_cv_dlopen="shl_load"
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10558 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10559 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-ldld $LIBS"
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char shl_load ();
10574 int
10575 main ()
10576 {
10577 return shl_load ();
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 ac_cv_lib_dld_shl_load=yes
10584 else
10585 ac_cv_lib_dld_shl_load=no
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_lib_save_LIBS
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10592 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10593 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10594 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10595 else
10596 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10597 if test "x$ac_cv_func_dlopen" = x""yes; then :
10598 lt_cv_dlopen="dlopen"
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10601 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10602 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-ldl $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char dlopen ();
10617 int
10618 main ()
10619 {
10620 return dlopen ();
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_dl_dlopen=yes
10627 else
10628 ac_cv_lib_dl_dlopen=no
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10635 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10636 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10640 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10641 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-lsvld $LIBS"
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10652 #ifdef __cplusplus
10653 extern "C"
10654 #endif
10655 char dlopen ();
10656 int
10657 main ()
10658 {
10659 return dlopen ();
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 if ac_fn_c_try_link "$LINENO"; then :
10665 ac_cv_lib_svld_dlopen=yes
10666 else
10667 ac_cv_lib_svld_dlopen=no
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10674 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10675 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10679 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10680 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 ac_check_lib_save_LIBS=$LIBS
10684 LIBS="-ldld $LIBS"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char dld_link ();
10695 int
10696 main ()
10697 {
10698 return dld_link ();
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 ac_cv_lib_dld_dld_link=yes
10705 else
10706 ac_cv_lib_dld_dld_link=no
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10713 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10714 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10715 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10716 fi
10717
10718
10719 fi
10720
10721
10722 fi
10723
10724
10725 fi
10726
10727
10728 fi
10729
10730
10731 fi
10732
10733 ;;
10734 esac
10735
10736 if test "x$lt_cv_dlopen" != xno; then
10737 enable_dlopen=yes
10738 else
10739 enable_dlopen=no
10740 fi
10741
10742 case $lt_cv_dlopen in
10743 dlopen)
10744 save_CPPFLAGS="$CPPFLAGS"
10745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10746
10747 save_LDFLAGS="$LDFLAGS"
10748 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10749
10750 save_LIBS="$LIBS"
10751 LIBS="$lt_cv_dlopen_libs $LIBS"
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10754 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10755 if test "${lt_cv_dlopen_self+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test "$cross_compiling" = yes; then :
10759 lt_cv_dlopen_self=cross
10760 else
10761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10762 lt_status=$lt_dlunknown
10763 cat > conftest.$ac_ext <<_LT_EOF
10764 #line 10764 "configure"
10765 #include "confdefs.h"
10766
10767 #if HAVE_DLFCN_H
10768 #include <dlfcn.h>
10769 #endif
10770
10771 #include <stdio.h>
10772
10773 #ifdef RTLD_GLOBAL
10774 # define LT_DLGLOBAL RTLD_GLOBAL
10775 #else
10776 # ifdef DL_GLOBAL
10777 # define LT_DLGLOBAL DL_GLOBAL
10778 # else
10779 # define LT_DLGLOBAL 0
10780 # endif
10781 #endif
10782
10783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10784 find out it does not work in some platform. */
10785 #ifndef LT_DLLAZY_OR_NOW
10786 # ifdef RTLD_LAZY
10787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10788 # else
10789 # ifdef DL_LAZY
10790 # define LT_DLLAZY_OR_NOW DL_LAZY
10791 # else
10792 # ifdef RTLD_NOW
10793 # define LT_DLLAZY_OR_NOW RTLD_NOW
10794 # else
10795 # ifdef DL_NOW
10796 # define LT_DLLAZY_OR_NOW DL_NOW
10797 # else
10798 # define LT_DLLAZY_OR_NOW 0
10799 # endif
10800 # endif
10801 # endif
10802 # endif
10803 #endif
10804
10805 void fnord() { int i=42;}
10806 int main ()
10807 {
10808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10809 int status = $lt_dlunknown;
10810
10811 if (self)
10812 {
10813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10815 /* dlclose (self); */
10816 }
10817 else
10818 puts (dlerror ());
10819
10820 return status;
10821 }
10822 _LT_EOF
10823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10824 (eval $ac_link) 2>&5
10825 ac_status=$?
10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10827 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10828 (./conftest; exit; ) >&5 2>/dev/null
10829 lt_status=$?
10830 case x$lt_status in
10831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10834 esac
10835 else :
10836 # compilation failed
10837 lt_cv_dlopen_self=no
10838 fi
10839 fi
10840 rm -fr conftest*
10841
10842
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10845 $as_echo "$lt_cv_dlopen_self" >&6; }
10846
10847 if test "x$lt_cv_dlopen_self" = xyes; then
10848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10850 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10851 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 if test "$cross_compiling" = yes; then :
10855 lt_cv_dlopen_self_static=cross
10856 else
10857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10858 lt_status=$lt_dlunknown
10859 cat > conftest.$ac_ext <<_LT_EOF
10860 #line 10860 "configure"
10861 #include "confdefs.h"
10862
10863 #if HAVE_DLFCN_H
10864 #include <dlfcn.h>
10865 #endif
10866
10867 #include <stdio.h>
10868
10869 #ifdef RTLD_GLOBAL
10870 # define LT_DLGLOBAL RTLD_GLOBAL
10871 #else
10872 # ifdef DL_GLOBAL
10873 # define LT_DLGLOBAL DL_GLOBAL
10874 # else
10875 # define LT_DLGLOBAL 0
10876 # endif
10877 #endif
10878
10879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10880 find out it does not work in some platform. */
10881 #ifndef LT_DLLAZY_OR_NOW
10882 # ifdef RTLD_LAZY
10883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10884 # else
10885 # ifdef DL_LAZY
10886 # define LT_DLLAZY_OR_NOW DL_LAZY
10887 # else
10888 # ifdef RTLD_NOW
10889 # define LT_DLLAZY_OR_NOW RTLD_NOW
10890 # else
10891 # ifdef DL_NOW
10892 # define LT_DLLAZY_OR_NOW DL_NOW
10893 # else
10894 # define LT_DLLAZY_OR_NOW 0
10895 # endif
10896 # endif
10897 # endif
10898 # endif
10899 #endif
10900
10901 void fnord() { int i=42;}
10902 int main ()
10903 {
10904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10905 int status = $lt_dlunknown;
10906
10907 if (self)
10908 {
10909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10911 /* dlclose (self); */
10912 }
10913 else
10914 puts (dlerror ());
10915
10916 return status;
10917 }
10918 _LT_EOF
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920 (eval $ac_link) 2>&5
10921 ac_status=$?
10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924 (./conftest; exit; ) >&5 2>/dev/null
10925 lt_status=$?
10926 case x$lt_status in
10927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10929 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10930 esac
10931 else :
10932 # compilation failed
10933 lt_cv_dlopen_self_static=no
10934 fi
10935 fi
10936 rm -fr conftest*
10937
10938
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10942 fi
10943
10944 CPPFLAGS="$save_CPPFLAGS"
10945 LDFLAGS="$save_LDFLAGS"
10946 LIBS="$save_LIBS"
10947 ;;
10948 esac
10949
10950 case $lt_cv_dlopen_self in
10951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10952 *) enable_dlopen_self=unknown ;;
10953 esac
10954
10955 case $lt_cv_dlopen_self_static in
10956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10957 *) enable_dlopen_self_static=unknown ;;
10958 esac
10959 fi
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 striplib=
10978 old_striplib=
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10981 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10985 $as_echo "yes" >&6; }
10986 else
10987 # FIXME - insert some real tests, host_os isn't really good enough
10988 case $host_os in
10989 darwin*)
10990 if test -n "$STRIP" ; then
10991 striplib="$STRIP -x"
10992 old_striplib="$STRIP -S"
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994 $as_echo "yes" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998 fi
10999 ;;
11000 *)
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11003 ;;
11004 esac
11005 fi
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 # Report which library types will actually be built
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11020 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11022 $as_echo "$can_build_shared" >&6; }
11023
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11025 $as_echo_n "checking whether to build shared libraries... " >&6; }
11026 test "$can_build_shared" = "no" && enable_shared=no
11027
11028 # On AIX, shared libraries and static libraries use the same namespace, and
11029 # are all built from PIC.
11030 case $host_os in
11031 aix3*)
11032 test "$enable_shared" = yes && enable_static=no
11033 if test -n "$RANLIB"; then
11034 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11035 postinstall_cmds='$RANLIB $lib'
11036 fi
11037 ;;
11038
11039 aix[4-9]*)
11040 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11041 test "$enable_shared" = yes && enable_static=no
11042 fi
11043 ;;
11044 esac
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11046 $as_echo "$enable_shared" >&6; }
11047
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11049 $as_echo_n "checking whether to build static libraries... " >&6; }
11050 # Make sure either enable_shared or enable_static is yes.
11051 test "$enable_shared" = yes || enable_static=yes
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11053 $as_echo "$enable_static" >&6; }
11054
11055
11056
11057
11058 fi
11059 ac_ext=c
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064
11065 CC="$lt_save_CC"
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 ac_config_commands="$ac_config_commands libtool"
11080
11081
11082
11083
11084 # Only expand once:
11085
11086
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11088 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11089 if test "${libltdl_cv_shlibext+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092
11093 module=yes
11094 eval libltdl_cv_shlibext=$shrext_cmds
11095
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11098 $as_echo "$libltdl_cv_shlibext" >&6; }
11099 if test -n "$libltdl_cv_shlibext"; then
11100
11101 cat >>confdefs.h <<_ACEOF
11102 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11103 _ACEOF
11104
11105 fi
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11108 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11109 if test "${lt_cv_module_path_var+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 lt_cv_module_path_var="$shlibpath_var"
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11115 $as_echo "$lt_cv_module_path_var" >&6; }
11116 if test -n "$lt_cv_module_path_var"; then
11117
11118 cat >>confdefs.h <<_ACEOF
11119 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11120 _ACEOF
11121
11122 fi
11123
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11125 $as_echo_n "checking for the default library search path... " >&6; }
11126 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11132 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11133 if test -n "$lt_cv_sys_dlsearch_path"; then
11134 sys_dlsearch_path=
11135 for dir in $lt_cv_sys_dlsearch_path; do
11136 if test -z "$sys_dlsearch_path"; then
11137 sys_dlsearch_path="$dir"
11138 else
11139 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11140 fi
11141 done
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11145 _ACEOF
11146
11147 fi
11148
11149
11150 LT_DLLOADERS=
11151
11152
11153 ac_ext=c
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11158
11159
11160 LIBADD_DLOPEN=
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11162 $as_echo_n "checking for library containing dlopen... " >&6; }
11163 if test "${ac_cv_search_dlopen+set}" = set; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 ac_func_search_save_LIBS=$LIBS
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char dlopen ();
11177 int
11178 main ()
11179 {
11180 return dlopen ();
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 for ac_lib in '' dl; do
11186 if test -z "$ac_lib"; then
11187 ac_res="none required"
11188 else
11189 ac_res=-l$ac_lib
11190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11191 fi
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 ac_cv_search_dlopen=$ac_res
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext
11197 if test "${ac_cv_search_dlopen+set}" = set; then :
11198 break
11199 fi
11200 done
11201 if test "${ac_cv_search_dlopen+set}" = set; then :
11202
11203 else
11204 ac_cv_search_dlopen=no
11205 fi
11206 rm conftest.$ac_ext
11207 LIBS=$ac_func_search_save_LIBS
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11210 $as_echo "$ac_cv_search_dlopen" >&6; }
11211 ac_res=$ac_cv_search_dlopen
11212 if test "$ac_res" != no; then :
11213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11214
11215 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11216
11217 if test "$ac_cv_search_dlopen" != "none required" ; then
11218 LIBADD_DLOPEN="-ldl"
11219 fi
11220 libltdl_cv_lib_dl_dlopen="yes"
11221 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11222 else
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #if HAVE_DLFCN_H
11226 # include <dlfcn.h>
11227 #endif
11228
11229 int
11230 main ()
11231 {
11232 dlopen(0, 0);
11233 ;
11234 return 0;
11235 }
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238
11239 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11240
11241 libltdl_cv_func_dlopen="yes"
11242 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11245 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11246 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-lsvld $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char dlopen ();
11261 int
11262 main ()
11263 {
11264 return dlopen ();
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 ac_cv_lib_svld_dlopen=yes
11271 else
11272 ac_cv_lib_svld_dlopen=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11279 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11280 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11281
11282 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11283
11284 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11285 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11286 fi
11287
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 fi
11292
11293 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11294 then
11295 lt_save_LIBS="$LIBS"
11296 LIBS="$LIBS $LIBADD_DLOPEN"
11297 for ac_func in dlerror
11298 do :
11299 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11300 if test "x$ac_cv_func_dlerror" = x""yes; then :
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_DLERROR 1
11303 _ACEOF
11304
11305 fi
11306 done
11307
11308 LIBS="$lt_save_LIBS"
11309 fi
11310
11311
11312 LIBADD_SHL_LOAD=
11313 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11314 if test "x$ac_cv_func_shl_load" = x""yes; then :
11315
11316 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11317
11318 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11321 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11322 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldld $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char shl_load ();
11337 int
11338 main ()
11339 {
11340 return shl_load ();
11341 ;
11342 return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 ac_cv_lib_dld_shl_load=yes
11347 else
11348 ac_cv_lib_dld_shl_load=no
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11355 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11356 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11357
11358 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11359
11360 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11361 LIBADD_SHL_LOAD="-ldld"
11362 fi
11363
11364 fi
11365
11366
11367
11368 case $host_os in
11369 darwin[1567].*)
11370 # We only want this for pre-Mac OS X 10.4.
11371 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11372 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11373
11374 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11375
11376 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11377 fi
11378
11379 ;;
11380 beos*)
11381 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11382 ;;
11383 cygwin* | mingw* | os2* | pw32*)
11384 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11385 "
11386 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11387 ac_have_decl=1
11388 else
11389 ac_have_decl=0
11390 fi
11391
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11394 _ACEOF
11395
11396 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11397 ;;
11398 esac
11399
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11402 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldld $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dld_link ();
11417 int
11418 main ()
11419 {
11420 return dld_link ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dld_dld_link=yes
11427 else
11428 ac_cv_lib_dld_dld_link=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11436 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11437
11438 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11439
11440 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11441 fi
11442
11443
11444
11445
11446 LT_DLPREOPEN=
11447 if test -n "$LT_DLLOADERS"
11448 then
11449 for lt_loader in $LT_DLLOADERS; do
11450 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11451 done
11452
11453 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11454
11455 fi
11456
11457
11458 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11459
11460
11461 ac_ext=c
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11466
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11469 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11470 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 lt_cv_sys_symbol_underscore=no
11474 cat > conftest.$ac_ext <<_LT_EOF
11475 void nm_test_func(){}
11476 int main(){nm_test_func;return 0;}
11477 _LT_EOF
11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11479 (eval $ac_compile) 2>&5
11480 ac_status=$?
11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482 test $ac_status = 0; }; then
11483 # Now try to grab the symbols.
11484 ac_nlist=conftest.nm
11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11486 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11487 ac_status=$?
11488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489 test $ac_status = 0; } && test -s "$ac_nlist"; then
11490 # See whether the symbols have a leading underscore.
11491 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11492 lt_cv_sys_symbol_underscore=yes
11493 else
11494 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11495 :
11496 else
11497 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11498 fi
11499 fi
11500 else
11501 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11502 fi
11503 else
11504 echo "configure: failed program was:" >&5
11505 cat conftest.c >&5
11506 fi
11507 rm -rf conftest*
11508
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11511 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11512 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11513
11514
11515 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11516 if test x"$libltdl_cv_func_dlopen" = xyes ||
11517 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11519 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11520 if test "${libltdl_cv_need_uscore+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 libltdl_cv_need_uscore=unknown
11524 save_LIBS="$LIBS"
11525 LIBS="$LIBS $LIBADD_DLOPEN"
11526 if test "$cross_compiling" = yes; then :
11527 libltdl_cv_need_uscore=cross
11528 else
11529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11530 lt_status=$lt_dlunknown
11531 cat > conftest.$ac_ext <<_LT_EOF
11532 #line 11532 "configure"
11533 #include "confdefs.h"
11534
11535 #if HAVE_DLFCN_H
11536 #include <dlfcn.h>
11537 #endif
11538
11539 #include <stdio.h>
11540
11541 #ifdef RTLD_GLOBAL
11542 # define LT_DLGLOBAL RTLD_GLOBAL
11543 #else
11544 # ifdef DL_GLOBAL
11545 # define LT_DLGLOBAL DL_GLOBAL
11546 # else
11547 # define LT_DLGLOBAL 0
11548 # endif
11549 #endif
11550
11551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11552 find out it does not work in some platform. */
11553 #ifndef LT_DLLAZY_OR_NOW
11554 # ifdef RTLD_LAZY
11555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11556 # else
11557 # ifdef DL_LAZY
11558 # define LT_DLLAZY_OR_NOW DL_LAZY
11559 # else
11560 # ifdef RTLD_NOW
11561 # define LT_DLLAZY_OR_NOW RTLD_NOW
11562 # else
11563 # ifdef DL_NOW
11564 # define LT_DLLAZY_OR_NOW DL_NOW
11565 # else
11566 # define LT_DLLAZY_OR_NOW 0
11567 # endif
11568 # endif
11569 # endif
11570 # endif
11571 #endif
11572
11573 void fnord() { int i=42;}
11574 int main ()
11575 {
11576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11577 int status = $lt_dlunknown;
11578
11579 if (self)
11580 {
11581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11582 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11583 /* dlclose (self); */
11584 }
11585 else
11586 puts (dlerror ());
11587
11588 return status;
11589 }
11590 _LT_EOF
11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11592 (eval $ac_link) 2>&5
11593 ac_status=$?
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11596 (./conftest; exit; ) >&5 2>/dev/null
11597 lt_status=$?
11598 case x$lt_status in
11599 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11600 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11601 x$lt_dlunknown|x*) ;;
11602 esac
11603 else :
11604 # compilation failed
11605
11606 fi
11607 fi
11608 rm -fr conftest*
11609
11610 LIBS="$save_LIBS"
11611
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11614 $as_echo "$libltdl_cv_need_uscore" >&6; }
11615 fi
11616 fi
11617
11618 if test x"$libltdl_cv_need_uscore" = xyes; then
11619
11620 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11621
11622 fi
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11625 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11626 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 # PORTME does your system automatically load deplibs for dlopen?
11630 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11631 # For now, we just catch OSes we know something about -- in the
11632 # future, we'll try test this programmatically.
11633 lt_cv_sys_dlopen_deplibs=unknown
11634 case $host_os in
11635 aix3*|aix4.1.*|aix4.2.*)
11636 # Unknown whether this is true for these versions of AIX, but
11637 # we want this `case' here to explicitly catch those versions.
11638 lt_cv_sys_dlopen_deplibs=unknown
11639 ;;
11640 aix[4-9]*)
11641 lt_cv_sys_dlopen_deplibs=yes
11642 ;;
11643 amigaos*)
11644 case $host_cpu in
11645 powerpc)
11646 lt_cv_sys_dlopen_deplibs=no
11647 ;;
11648 esac
11649 ;;
11650 darwin*)
11651 # Assuming the user has installed a libdl from somewhere, this is true
11652 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11653 lt_cv_sys_dlopen_deplibs=yes
11654 ;;
11655 freebsd* | dragonfly*)
11656 lt_cv_sys_dlopen_deplibs=yes
11657 ;;
11658 gnu* | linux* | k*bsd*-gnu)
11659 # GNU and its variants, using gnu ld.so (Glibc)
11660 lt_cv_sys_dlopen_deplibs=yes
11661 ;;
11662 hpux10*|hpux11*)
11663 lt_cv_sys_dlopen_deplibs=yes
11664 ;;
11665 interix*)
11666 lt_cv_sys_dlopen_deplibs=yes
11667 ;;
11668 irix[12345]*|irix6.[01]*)
11669 # Catch all versions of IRIX before 6.2, and indicate that we don't
11670 # know how it worked for any of those versions.
11671 lt_cv_sys_dlopen_deplibs=unknown
11672 ;;
11673 irix*)
11674 # The case above catches anything before 6.2, and it's known that
11675 # at 6.2 and later dlopen does load deplibs.
11676 lt_cv_sys_dlopen_deplibs=yes
11677 ;;
11678 netbsd*)
11679 lt_cv_sys_dlopen_deplibs=yes
11680 ;;
11681 openbsd*)
11682 lt_cv_sys_dlopen_deplibs=yes
11683 ;;
11684 osf[1234]*)
11685 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11686 # it did *not* use an RPATH in a shared library to find objects the
11687 # library depends on, so we explicitly say `no'.
11688 lt_cv_sys_dlopen_deplibs=no
11689 ;;
11690 osf5.0|osf5.0a|osf5.1)
11691 # dlopen *does* load deplibs and with the right loader patch applied
11692 # it even uses RPATH in a shared library to search for shared objects
11693 # that the library depends on, but there's no easy way to know if that
11694 # patch is installed. Since this is the case, all we can really
11695 # say is unknown -- it depends on the patch being installed. If
11696 # it is, this changes to `yes'. Without it, it would be `no'.
11697 lt_cv_sys_dlopen_deplibs=unknown
11698 ;;
11699 osf*)
11700 # the two cases above should catch all versions of osf <= 5.1. Read
11701 # the comments above for what we know about them.
11702 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11703 # is used to find them so we can finally say `yes'.
11704 lt_cv_sys_dlopen_deplibs=yes
11705 ;;
11706 qnx*)
11707 lt_cv_sys_dlopen_deplibs=yes
11708 ;;
11709 solaris*)
11710 lt_cv_sys_dlopen_deplibs=yes
11711 ;;
11712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11713 libltdl_cv_sys_dlopen_deplibs=yes
11714 ;;
11715 esac
11716
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11719 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11720 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11721
11722 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11723
11724 fi
11725
11726 :
11727
11728 for ac_header in argz.h
11729 do :
11730 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11731 "
11732 if test "x$ac_cv_header_argz_h" = x""yes; then :
11733 cat >>confdefs.h <<_ACEOF
11734 #define HAVE_ARGZ_H 1
11735 _ACEOF
11736
11737 fi
11738
11739 done
11740
11741
11742 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11743 # include <argz.h>
11744 #endif
11745 "
11746 if test "x$ac_cv_type_error_t" = x""yes; then :
11747
11748 cat >>confdefs.h <<_ACEOF
11749 #define HAVE_ERROR_T 1
11750 _ACEOF
11751
11752
11753 else
11754
11755 $as_echo "#define error_t int" >>confdefs.h
11756
11757
11758 $as_echo "#define __error_t_defined 1" >>confdefs.h
11759
11760 fi
11761
11762
11763 ARGZ_H=
11764 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11765 argz_next argz_stringify
11766 do :
11767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11769 eval as_val=\$$as_ac_var
11770 if test "x$as_val" = x""yes; then :
11771 cat >>confdefs.h <<_ACEOF
11772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773 _ACEOF
11774
11775 else
11776 ARGZ_H=argz.h;
11777
11778 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11779
11780 fi
11781 done
11782
11783
11784 if test -z "$ARGZ_H"; then :
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11786 $as_echo_n "checking if argz actually works... " >&6; }
11787 if test "${lt_cv_sys_argz_works+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 case $host_os in #(
11791 *cygwin*)
11792 lt_cv_sys_argz_works=no
11793 if test "$cross_compiling" != no; then
11794 lt_cv_sys_argz_works="guessing no"
11795 else
11796 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11797 save_IFS=$IFS
11798 IFS=-.
11799 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11800 IFS=$save_IFS
11801 lt_os_major=${2-0}
11802 lt_os_minor=${3-0}
11803 lt_os_micro=${4-0}
11804 if test "$lt_os_major" -gt 1 \
11805 || { test "$lt_os_major" -eq 1 \
11806 && { test "$lt_os_minor" -gt 5 \
11807 || { test "$lt_os_minor" -eq 5 \
11808 && test "$lt_os_micro" -gt 24; }; }; }; then
11809 lt_cv_sys_argz_works=yes
11810 fi
11811 fi
11812 ;; #(
11813 *) lt_cv_sys_argz_works=yes ;;
11814 esac
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11817 $as_echo "$lt_cv_sys_argz_works" >&6; }
11818 if test $lt_cv_sys_argz_works = yes; then :
11819
11820 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11821
11822 else
11823 ARGZ_H=argz.h
11824
11825
11826 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11827
11828 fi
11829 fi
11830
11831
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11834 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11835 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11839 libltdl_cv_preloaded_symbols=yes
11840 else
11841 libltdl_cv_preloaded_symbols=no
11842 fi
11843
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11846 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11847 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11848
11849 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11850
11851 fi
11852
11853 # Set options
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865 # Check whether --with-included_ltdl was given.
11866 if test "${with_included_ltdl+set}" = set; then :
11867 withval=$with_included_ltdl;
11868 fi
11869
11870
11871 if test "x$with_included_ltdl" != xyes; then
11872 # We are not being forced to use the included libltdl sources, so
11873 # decide whether there is a useful installed version we can use.
11874 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11875
11876 "
11877 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11878 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11879 #include <ltdl.h>
11880 "
11881 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11883 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11884 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lltdl $LIBS"
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char lt_dladvise_preload ();
11899 int
11900 main ()
11901 {
11902 return lt_dladvise_preload ();
11903 ;
11904 return 0;
11905 }
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11909 else
11910 ac_cv_lib_ltdl_lt_dladvise_preload=no
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11917 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11918 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11919 with_included_ltdl=no
11920 else
11921 with_included_ltdl=yes
11922 fi
11923
11924 else
11925 with_included_ltdl=yes
11926 fi
11927
11928 else
11929 with_included_ltdl=yes
11930 fi
11931
11932
11933 fi
11934
11935
11936
11937
11938 # Check whether --with-ltdl_include was given.
11939 if test "${with_ltdl_include+set}" = set; then :
11940 withval=$with_ltdl_include;
11941 fi
11942
11943
11944 if test -n "$with_ltdl_include"; then
11945 if test -f "$with_ltdl_include/ltdl.h"; then :
11946 else
11947 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11948 fi
11949 else
11950 with_ltdl_include=no
11951 fi
11952
11953
11954 # Check whether --with-ltdl_lib was given.
11955 if test "${with_ltdl_lib+set}" = set; then :
11956 withval=$with_ltdl_lib;
11957 fi
11958
11959
11960 if test -n "$with_ltdl_lib"; then
11961 if test -f "$with_ltdl_lib/libltdl.la"; then :
11962 else
11963 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11964 fi
11965 else
11966 with_ltdl_lib=no
11967 fi
11968
11969 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11970 ,yes,no,no,)
11971 case $enable_ltdl_convenience in
11972 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11973 "") enable_ltdl_convenience=yes
11974 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11975 esac
11976 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11977 LTDLDEPS=$LIBLTDL
11978 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11979
11980
11981
11982
11983
11984 # For backwards non-gettext consistent compatibility...
11985 INCLTDL="$LTDLINCL"
11986
11987
11988 ;;
11989 ,no,no,no,)
11990 # If the included ltdl is not to be used, then use the
11991 # preinstalled libltdl we found.
11992
11993 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11994
11995 LIBLTDL=-lltdl
11996 LTDLDEPS=
11997 LTDLINCL=
11998 ;;
11999 ,no*,no,*)
12000 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12001 ;;
12002 *) with_included_ltdl=no
12003 LIBLTDL="-L$with_ltdl_lib -lltdl"
12004 LTDLDEPS=
12005 LTDLINCL="-I$with_ltdl_include"
12006 ;;
12007 esac
12008 INCLTDL="$LTDLINCL"
12009
12010 # Report our decision...
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12012 $as_echo_n "checking where to find libltdl headers... " >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12014 $as_echo "$LTDLINCL" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12016 $as_echo_n "checking where to find libltdl library... " >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12018 $as_echo "$LIBLTDL" >&6; }
12019
12020
12021
12022 # Check whether --enable-ltdl-install was given.
12023 if test "${enable_ltdl_install+set}" = set; then :
12024 enableval=$enable_ltdl_install;
12025 fi
12026
12027
12028 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12029 *yes*) ;;
12030 *) enable_ltdl_convenience=yes ;;
12031 esac
12032
12033 if test x"${enable_ltdl_install-no}" != xno; then
12034 INSTALL_LTDL_TRUE=
12035 INSTALL_LTDL_FALSE='#'
12036 else
12037 INSTALL_LTDL_TRUE='#'
12038 INSTALL_LTDL_FALSE=
12039 fi
12040
12041 if test x"${enable_ltdl_convenience-no}" != xno; then
12042 CONVENIENCE_LTDL_TRUE=
12043 CONVENIENCE_LTDL_FALSE='#'
12044 else
12045 CONVENIENCE_LTDL_TRUE='#'
12046 CONVENIENCE_LTDL_FALSE=
12047 fi
12048
12049
12050
12051
12052
12053
12054 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12055 # the user used. This is so that ltdl.h can pick up the parent projects
12056 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12057 # definitions required by ltdl.c.
12058 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12059
12060
12061
12062 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12063 do :
12064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12066 "
12067 eval as_val=\$$as_ac_Header
12068 if test "x$as_val" = x""yes; then :
12069 cat >>confdefs.h <<_ACEOF
12070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12071 _ACEOF
12072
12073 fi
12074
12075 done
12076
12077
12078 for ac_func in closedir opendir readdir
12079 do :
12080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12082 eval as_val=\$$as_ac_var
12083 if test "x$as_val" = x""yes; then :
12084 cat >>confdefs.h <<_ACEOF
12085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 _ACEOF
12087
12088 else
12089
12090
12091 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12092
12093 fi
12094 done
12095
12096 for ac_func in strlcat strlcpy
12097 do :
12098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12100 eval as_val=\$$as_ac_var
12101 if test "x$as_val" = x""yes; then :
12102 cat >>confdefs.h <<_ACEOF
12103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 else
12107
12108
12109 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12110
12111 fi
12112 done
12113
12114
12115
12116 cat >>confdefs.h <<_ACEOF
12117 #define LT_LIBEXT "$libext"
12118 _ACEOF
12119
12120
12121 name=ltdl
12122 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12123
12124
12125
12126
12127
12128
12129
12130
12131 # Only expand once:
12132
12133
12134 LIBTOOL="$LIBTOOL --silent"
12135
12136 # Checks for libraries.
12137
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12139 $as_echo_n "checking for library containing socket... " >&6; }
12140 if test "${ac_cv_search_socket+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 ac_func_search_save_LIBS=$LIBS
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char socket ();
12154 int
12155 main ()
12156 {
12157 return socket ();
12158 ;
12159 return 0;
12160 }
12161 _ACEOF
12162 for ac_lib in '' socket; do
12163 if test -z "$ac_lib"; then
12164 ac_res="none required"
12165 else
12166 ac_res=-l$ac_lib
12167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12168 fi
12169 if ac_fn_c_try_link "$LINENO"; then :
12170 ac_cv_search_socket=$ac_res
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext
12174 if test "${ac_cv_search_socket+set}" = set; then :
12175 break
12176 fi
12177 done
12178 if test "${ac_cv_search_socket+set}" = set; then :
12179
12180 else
12181 ac_cv_search_socket=no
12182 fi
12183 rm conftest.$ac_ext
12184 LIBS=$ac_func_search_save_LIBS
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12187 $as_echo "$ac_cv_search_socket" >&6; }
12188 ac_res=$ac_cv_search_socket
12189 if test "$ac_res" != no; then :
12190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12191
12192 else
12193 as_fn_error "socket library not found" "$LINENO" 5
12194 fi
12195
12196 for ac_func in inet_aton inet_ntop inet_pton
12197 do :
12198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12200 eval as_val=\$$as_ac_var
12201 if test "x$as_val" = x""yes; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12204 _ACEOF
12205
12206 fi
12207 done
12208
12209 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12210 #include <sys/socket.h>
12211 #include <netdb.h>
12212
12213 "
12214 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12215
12216 cat >>confdefs.h <<_ACEOF
12217 #define HAVE_STRUCT_SOCKADDR_IN 1
12218 _ACEOF
12219
12220
12221 fi
12222 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12223 #include <sys/socket.h>
12224 #include <netdb.h>
12225
12226 "
12227 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12228
12229 cat >>confdefs.h <<_ACEOF
12230 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12231 _ACEOF
12232
12233
12234 fi
12235 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12236 #include <sys/socket.h>
12237 #include <netdb.h>
12238
12239 "
12240 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12241
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_STRUCT_ADDRINFO 1
12244 _ACEOF
12245
12246
12247 fi
12248
12249 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12250 <sys/socket.h>
12251 "
12252 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12253
12254 cat >>confdefs.h <<_ACEOF
12255 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12256 _ACEOF
12257
12258
12259 fi
12260
12261
12262
12263 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12264 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12265
12266 cat >>confdefs.h <<_ACEOF
12267 #define HAVE_STRUCT_SOCKADDR_IN6 1
12268 _ACEOF
12269
12270
12271 else
12272
12273 $as_echo "#define IPV6 1" >>confdefs.h
12274
12275 fi
12276
12277
12278
12279 # Checks for typedefs, structures, and compiler characteristics.
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12281 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12282 if test "${ac_cv_c_bigendian+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 ac_cv_c_bigendian=unknown
12286 # See if we're dealing with a universal compiler.
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #ifndef __APPLE_CC__
12290 not a universal capable compiler
12291 #endif
12292 typedef int dummy;
12293
12294 _ACEOF
12295 if ac_fn_c_try_compile "$LINENO"; then :
12296
12297 # Check for potential -arch flags. It is not universal unless
12298 # there are at least two -arch flags with different values.
12299 ac_arch=
12300 ac_prev=
12301 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12302 if test -n "$ac_prev"; then
12303 case $ac_word in
12304 i?86 | x86_64 | ppc | ppc64)
12305 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12306 ac_arch=$ac_word
12307 else
12308 ac_cv_c_bigendian=universal
12309 break
12310 fi
12311 ;;
12312 esac
12313 ac_prev=
12314 elif test "x$ac_word" = "x-arch"; then
12315 ac_prev=arch
12316 fi
12317 done
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 if test $ac_cv_c_bigendian = unknown; then
12321 # See if sys/param.h defines the BYTE_ORDER macro.
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 #include <sys/types.h>
12325 #include <sys/param.h>
12326
12327 int
12328 main ()
12329 {
12330 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12331 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12332 && LITTLE_ENDIAN)
12333 bogus endian macros
12334 #endif
12335
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 # It does; now see whether it defined to BIG_ENDIAN or not.
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 #include <sys/types.h>
12345 #include <sys/param.h>
12346
12347 int
12348 main ()
12349 {
12350 #if BYTE_ORDER != BIG_ENDIAN
12351 not big endian
12352 #endif
12353
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 ac_cv_c_bigendian=yes
12360 else
12361 ac_cv_c_bigendian=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 fi
12367 if test $ac_cv_c_bigendian = unknown; then
12368 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #include <limits.h>
12372
12373 int
12374 main ()
12375 {
12376 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12377 bogus endian macros
12378 #endif
12379
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_compile "$LINENO"; then :
12385 # It does; now see whether it defined to _BIG_ENDIAN or not.
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 #include <limits.h>
12389
12390 int
12391 main ()
12392 {
12393 #ifndef _BIG_ENDIAN
12394 not big endian
12395 #endif
12396
12397 ;
12398 return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_compile "$LINENO"; then :
12402 ac_cv_c_bigendian=yes
12403 else
12404 ac_cv_c_bigendian=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 if test $ac_cv_c_bigendian = unknown; then
12411 # Compile a test program.
12412 if test "$cross_compiling" = yes; then :
12413 # Try to guess by grepping values from an object file.
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416 short int ascii_mm[] =
12417 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12418 short int ascii_ii[] =
12419 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12420 int use_ascii (int i) {
12421 return ascii_mm[i] + ascii_ii[i];
12422 }
12423 short int ebcdic_ii[] =
12424 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12425 short int ebcdic_mm[] =
12426 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12427 int use_ebcdic (int i) {
12428 return ebcdic_mm[i] + ebcdic_ii[i];
12429 }
12430 extern int foo;
12431
12432 int
12433 main ()
12434 {
12435 return use_ascii (foo) == use_ebcdic (foo);
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12442 ac_cv_c_bigendian=yes
12443 fi
12444 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12445 if test "$ac_cv_c_bigendian" = unknown; then
12446 ac_cv_c_bigendian=no
12447 else
12448 # finding both strings is unlikely to happen, but who knows?
12449 ac_cv_c_bigendian=unknown
12450 fi
12451 fi
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 else
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 $ac_includes_default
12458 int
12459 main ()
12460 {
12461
12462 /* Are we little or big endian? From Harbison&Steele. */
12463 union
12464 {
12465 long int l;
12466 char c[sizeof (long int)];
12467 } u;
12468 u.l = 1;
12469 return u.c[sizeof (long int) - 1] == 1;
12470
12471 ;
12472 return 0;
12473 }
12474 _ACEOF
12475 if ac_fn_c_try_run "$LINENO"; then :
12476 ac_cv_c_bigendian=no
12477 else
12478 ac_cv_c_bigendian=yes
12479 fi
12480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12481 conftest.$ac_objext conftest.beam conftest.$ac_ext
12482 fi
12483
12484 fi
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12487 $as_echo "$ac_cv_c_bigendian" >&6; }
12488 case $ac_cv_c_bigendian in #(
12489 yes)
12490 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12491 ;; #(
12492 no)
12493 ;; #(
12494 universal)
12495
12496 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12497
12498 ;; #(
12499 *)
12500 as_fn_error "unknown endianness
12501 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12502 esac
12503
12504
12505 # Checks for library functions.
12506
12507
12508
12509 for ac_func in $ac_func_list
12510 do :
12511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12513 eval as_val=\$$as_ac_var
12514 if test "x$as_val" = x""yes; then :
12515 cat >>confdefs.h <<_ACEOF
12516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12517 _ACEOF
12518
12519 fi
12520 done
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 # Checks for header files.
12535
12536
12537
12538 for ac_header in $ac_header_list
12539 do :
12540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12542 "
12543 eval as_val=\$$as_ac_Header
12544 if test "x$as_val" = x""yes; then :
12545 cat >>confdefs.h <<_ACEOF
12546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12547 _ACEOF
12548
12549 fi
12550
12551 done
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579 # check for /dev/null so we can use it to hold evil fd's
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12581 $as_echo_n "checking for /dev/null... " >&6; }
12582 if test -c /dev/null; then :
12583
12584
12585 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12586
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589 else
12590
12591
12592 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12593
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12595 $as_echo "no - using devnull.log" >&6; }
12596 fi
12597
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12600 $as_echo_n "checking for library containing crypt... " >&6; }
12601 if test "${ac_cv_search_crypt+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_func_search_save_LIBS=$LIBS
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 /* Override any GCC internal prototype to avoid an error.
12609 Use char because int might match the return type of a GCC
12610 builtin and then its argument prototype would still apply. */
12611 #ifdef __cplusplus
12612 extern "C"
12613 #endif
12614 char crypt ();
12615 int
12616 main ()
12617 {
12618 return crypt ();
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 for ac_lib in '' crypt; do
12624 if test -z "$ac_lib"; then
12625 ac_res="none required"
12626 else
12627 ac_res=-l$ac_lib
12628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12629 fi
12630 if ac_fn_c_try_link "$LINENO"; then :
12631 ac_cv_search_crypt=$ac_res
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext
12635 if test "${ac_cv_search_crypt+set}" = set; then :
12636 break
12637 fi
12638 done
12639 if test "${ac_cv_search_crypt+set}" = set; then :
12640
12641 else
12642 ac_cv_search_crypt=no
12643 fi
12644 rm conftest.$ac_ext
12645 LIBS=$ac_func_search_save_LIBS
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12648 $as_echo "$ac_cv_search_crypt" >&6; }
12649 ac_res=$ac_cv_search_crypt
12650 if test "$ac_res" != no; then :
12651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12652
12653 fi
12654
12655
12656
12657
12658 # Check whether --with-zlib-path was given.
12659 if test "${with_zlib_path+set}" = set; then :
12660 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12661 fi
12662
12663
12664 # Check whether --enable-zlib was given.
12665 if test "${enable_zlib+set}" = set; then :
12666 enableval=$enable_zlib; zlib=$enableval
12667 else
12668 zlib=yes
12669 fi
12670
12671
12672 if test "$zlib" = "yes"; then :
12673
12674 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12675 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12677 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12678 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 ac_check_lib_save_LIBS=$LIBS
12682 LIBS="-lz $LIBS"
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12689 #ifdef __cplusplus
12690 extern "C"
12691 #endif
12692 char zlibVersion ();
12693 int
12694 main ()
12695 {
12696 return zlibVersion ();
12697 ;
12698 return 0;
12699 }
12700 _ACEOF
12701 if ac_fn_c_try_link "$LINENO"; then :
12702 ac_cv_lib_z_zlibVersion=yes
12703 else
12704 ac_cv_lib_z_zlibVersion=no
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12708 LIBS=$ac_check_lib_save_LIBS
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12711 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12712 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12713
12714 LIBS="-lz $LIBS"
12715
12716 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12717
12718
12719 else
12720 zlib=no
12721 fi
12722
12723
12724 else
12725 zlib=no
12726 fi
12727
12728
12729
12730 fi
12731
12732
12733 # Check whether --with-libpcre-path was given.
12734 if test "${with_libpcre_path+set}" = set; then :
12735 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12736 fi
12737
12738
12739 # Check whether --enable-libpcre was given.
12740 if test "${enable_libpcre+set}" = set; then :
12741 enableval=$enable_libpcre; libpcre=$enableval
12742 else
12743 libpcre=yes
12744 fi
12745
12746
12747 if test "$libpcre" = "yes"; then :
12748
12749 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12750 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12752 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12753 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lpcre $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char pcre_study ();
12768 int
12769 main ()
12770 {
12771 return pcre_study ();
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_lib_pcre_pcre_study=yes
12778 else
12779 ac_cv_lib_pcre_pcre_study=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12786 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12787 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12788
12789 LIBS="-lpcre $LIBS"
12790
12791 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12792
12793
12794 else
12795 libpcre=no
12796 fi
12797
12798
12799 else
12800 libpcre=no
12801 fi
12802
12803
12804
12805 fi
12806 if test "$libpcre" = yes; then
12807 ENABLE_PCRE_TRUE=
12808 ENABLE_PCRE_FALSE='#'
12809 else
12810 ENABLE_PCRE_TRUE='#'
12811 ENABLE_PCRE_FALSE=
12812 fi
12813
12814
12815
12816 # Check whether --enable-openssl was given.
12817 if test "${enable_openssl+set}" = set; then :
12818 enableval=$enable_openssl; cf_enable_openssl=$enableval
12819 else
12820 cf_enable_openssl="auto"
12821 fi
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12824 $as_echo_n "checking for OpenSSL... " >&6; }
12825 if test "$cf_enable_openssl" != "no"; then
12826 cf_openssl_basedir=""
12827 if test "$cf_enable_openssl" != "auto" &&
12828 test "$cf_enable_openssl" != "yes"; then
12829 cf_openssl_basedir="${cf_enable_openssl}"
12830 else
12831 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12832 /opt /opt/openssl /usr/local/openssl; do
12833 if test -f "${dirs}/include/openssl/opensslv.h"; then
12834 cf_openssl_basedir="${dirs}"
12835 break
12836 fi
12837 done
12838 unset dirs
12839 fi
12840
12841 if test ! -z "$cf_openssl_basedir"; then
12842 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12843 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12844 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12845 else
12846 cf_openssl_basedir=""
12847 fi
12848 else
12849 if test -f "/usr/include/openssl/opensslv.h"; then
12850 cf_openssl_basedir="/usr"
12851 fi
12852 fi
12853
12854 if test ! -z "$cf_openssl_basedir"; then
12855 LIBS="-lcrypto -lssl $LIBS"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12857 $as_echo "$cf_openssl_basedir" >&6; }
12858 cf_enable_openssl="yes"
12859
12860 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12861
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12864 $as_echo "not found. Please check your path." >&6; }
12865 cf_enable_openssl="no"
12866 fi
12867 unset cf_openssl_basedir
12868 else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12870 $as_echo "disabled" >&6; }
12871 fi
12872
12873 if test "$cf_enable_openssl" != "no"; then :
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12875 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12876 if test "$cross_compiling" = yes; then :
12877 cf_openssl_version_ok=no
12878 else
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 #include <openssl/opensslv.h>
12883 #include <stdlib.h>
12884 int
12885 main ()
12886 {
12887 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12888 ;
12889 return 0;
12890 }
12891 _ACEOF
12892 if ac_fn_c_try_run "$LINENO"; then :
12893 cf_openssl_version_ok=yes
12894 else
12895 cf_openssl_version_ok=no
12896 fi
12897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12898 conftest.$ac_objext conftest.beam conftest.$ac_ext
12899 fi
12900
12901
12902 if test "$cf_openssl_version_ok" = "yes"; then :
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12904 $as_echo "found" >&6; }
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12907 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12908 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-lcrypto $LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char RSA_free ();
12923 int
12924 main ()
12925 {
12926 return RSA_free ();
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 if ac_fn_c_try_link "$LINENO"; then :
12932 ac_cv_lib_crypto_RSA_free=yes
12933 else
12934 ac_cv_lib_crypto_RSA_free=no
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12941 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12942 if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12943 cat >>confdefs.h <<_ACEOF
12944 #define HAVE_LIBCRYPTO 1
12945 _ACEOF
12946
12947 LIBS="-lcrypto $LIBS"
12948
12949 fi
12950
12951 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12952 for ac_func in EVP_bf_cfb \
12953 EVP_cast5_cfb \
12954 EVP_idea_cfb \
12955 EVP_rc5_32_12_16_cfb \
12956 EVP_des_ede3_cfb \
12957 EVP_des_cfb
12958 do :
12959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12961 eval as_val=\$$as_ac_var
12962 if test "x$as_val" = x""yes; then :
12963 cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12965 _ACEOF
12966
12967 fi
12968 done
12969
12970 fi
12971
12972 else
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
12974 $as_echo "no - OpenSSL support disabled" >&6; }
12975 cf_enable_openssl="no"
12976 fi
12977 fi
12978
12979 if test "$cf_enable_openssl" = yes; then
12980 ENABLE_SSL_TRUE=
12981 ENABLE_SSL_FALSE='#'
12982 else
12983 ENABLE_SSL_TRUE='#'
12984 ENABLE_SSL_FALSE=
12985 fi
12986
12987
12988
12989 # Check whether --enable-assert was given.
12990 if test "${enable_assert+set}" = set; then :
12991 enableval=$enable_assert; assert=$enableval
12992 else
12993 assert=no
12994 fi
12995
12996
12997 if test "$assert" = "no"; then :
12998
12999 $as_echo "#define NDEBUG 1" >>confdefs.h
13000
13001 fi
13002
13003
13004 # Check whether --enable-small-net was given.
13005 if test "${enable_small_net+set}" = set; then :
13006 enableval=$enable_small_net; small_net=$enableval
13007 else
13008 small_net=no
13009 fi
13010
13011
13012 if test "$small_net" = "yes"; then :
13013
13014
13015 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13016
13017
13018 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13019
13020
13021 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13022
13023
13024 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13025
13026
13027 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13028
13029
13030 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13031
13032
13033 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13034
13035
13036 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13037
13038
13039 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13040
13041
13042 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13043
13044 else
13045
13046
13047
13048 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13049
13050
13051 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13052
13053
13054 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13055
13056
13057 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13058
13059
13060 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13061
13062
13063 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13064
13065
13066 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13067
13068
13069 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13070
13071
13072 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13073
13074
13075 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13076
13077 fi
13078
13079
13080 # Argument processing.
13081
13082 desired_iopoll_mechanism="none"
13083 # Check whether --enable-kqueue was given.
13084 if test "${enable_kqueue+set}" = set; then :
13085 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13086 fi
13087
13088 # Check whether --enable-epoll was given.
13089 if test "${enable_epoll+set}" = set; then :
13090 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13091 fi
13092
13093 # Check whether --enable-devpoll was given.
13094 if test "${enable_devpoll+set}" = set; then :
13095 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13096 fi
13097
13098 # Check whether --enable-rtsigio was given.
13099 if test "${enable_rtsigio+set}" = set; then :
13100 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13101 fi
13102
13103 # Check whether --enable-poll was given.
13104 if test "${enable_poll+set}" = set; then :
13105 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13106 fi
13107
13108 # Check whether --enable-select was given.
13109 if test "${enable_select+set}" = set; then :
13110 enableval=$enable_select; desired_iopoll_mechanism="select"
13111 fi
13112
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13114 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13115 iopoll_mechanism_none=0
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13119 _ACEOF
13120
13121 iopoll_mechanism_kqueue=1
13122
13123 cat >>confdefs.h <<_ACEOF
13124 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13125 _ACEOF
13126
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13131 #define kevent innocuous_kevent
13132
13133 /* System header to define __stub macros and hopefully few prototypes,
13134 which can conflict with char kevent (); below.
13135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13136 <limits.h> exists even on freestanding compilers. */
13137
13138 #ifdef __STDC__
13139 # include <limits.h>
13140 #else
13141 # include <assert.h>
13142 #endif
13143
13144 #undef kevent
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char kevent ();
13153 /* The GNU C library defines this for functions which it implements
13154 to always fail with ENOSYS. Some functions are actually named
13155 something starting with __ and the normal name is an alias. */
13156 #if defined __stub_kevent || defined __stub___kevent
13157 choke me
13158 #endif
13159
13160 int
13161 main ()
13162 {
13163 return kevent ();
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 is_kqueue_mechanism_available="yes"
13170 else
13171 is_kqueue_mechanism_available="no"
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 iopoll_mechanism_epoll=2
13176
13177 cat >>confdefs.h <<_ACEOF
13178 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13179 _ACEOF
13180
13181 if test "$cross_compiling" = yes; then :
13182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13184 as_fn_error "cannot run test program while cross compiling
13185 See \`config.log' for more details." "$LINENO" 5; }
13186 else
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 #include <sys/epoll.h>
13191 #include <sys/syscall.h>
13192 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13193 #if !defined(__NR_epoll_create)
13194 #if defined(__ia64__)
13195 #define __NR_epoll_create 1243
13196 #elif defined(__x86_64__)
13197 #define __NR_epoll_create 214
13198 #elif defined(__sparc64__) || defined(__sparc__)
13199 #define __NR_epoll_create 193
13200 #elif defined(__s390__) || defined(__m68k__)
13201 #define __NR_epoll_create 249
13202 #elif defined(__ppc64__) || defined(__ppc__)
13203 #define __NR_epoll_create 236
13204 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13205 #define __NR_epoll_create 224
13206 #elif defined(__alpha__)
13207 #define __NR_epoll_create 407
13208 #elif defined(__sh64__)
13209 #define __NR_epoll_create 282
13210 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13211 #define __NR_epoll_create 254
13212 #else
13213 #error No system call numbers defined for epoll family.
13214 #endif
13215 #endif
13216 _syscall1(int, epoll_create, int, size)
13217 #endif
13218 main() { return epoll_create(256) == -1 ? 1 : 0; }
13219
13220 _ACEOF
13221 if ac_fn_c_try_run "$LINENO"; then :
13222 is_epoll_mechanism_available="yes"
13223 else
13224 is_epoll_mechanism_available="no"
13225 fi
13226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13227 conftest.$ac_objext conftest.beam conftest.$ac_ext
13228 fi
13229
13230 iopoll_mechanism_devpoll=3
13231
13232 cat >>confdefs.h <<_ACEOF
13233 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13234 _ACEOF
13235
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 #include <devpoll.h>
13239 int
13240 main ()
13241 {
13242
13243 ;
13244 return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"; then :
13248 is_devpoll_mechanism_available="yes"
13249 else
13250 is_devpoll_mechanism_available="no"
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 if test "$is_devpoll_mechanism_available" = "yes" ; then
13254
13255 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13256
13257 fi
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 #include <sys/devpoll.h>
13261 int
13262 main ()
13263 {
13264
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_compile "$LINENO"; then :
13270 is_devpoll_mechanism_available="yes"
13271 else
13272 is_devpoll_mechanism_available="no"
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 if test "$is_devpoll_mechanism_available" = "yes" ; then
13276
13277 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13278
13279 fi
13280 iopoll_mechanism_rtsigio=4
13281
13282 cat >>confdefs.h <<_ACEOF
13283 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13284 _ACEOF
13285
13286 if test "$cross_compiling" = yes; then :
13287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13289 as_fn_error "cannot run test program while cross compiling
13290 See \`config.log' for more details." "$LINENO" 5; }
13291 else
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294
13295 #include <fcntl.h>
13296 #ifdef F_SETSIG
13297 main () { return 0; } /* F_SETSIG defined */
13298 #else
13299 main () { return 1; } /* F_SETSIG not defined */
13300 #endif
13301
13302 int
13303 main ()
13304 {
13305
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_run "$LINENO"; then :
13311 is_rtsigio_mechanism_available="yes"
13312 else
13313 is_rtsigio_mechanism_available="no"
13314 fi
13315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13316 conftest.$ac_objext conftest.beam conftest.$ac_ext
13317 fi
13318
13319 iopoll_mechanism_poll=5
13320
13321 cat >>confdefs.h <<_ACEOF
13322 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13323 _ACEOF
13324
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13329 #define poll innocuous_poll
13330
13331 /* System header to define __stub macros and hopefully few prototypes,
13332 which can conflict with char poll (); below.
13333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13334 <limits.h> exists even on freestanding compilers. */
13335
13336 #ifdef __STDC__
13337 # include <limits.h>
13338 #else
13339 # include <assert.h>
13340 #endif
13341
13342 #undef poll
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char poll ();
13351 /* The GNU C library defines this for functions which it implements
13352 to always fail with ENOSYS. Some functions are actually named
13353 something starting with __ and the normal name is an alias. */
13354 #if defined __stub_poll || defined __stub___poll
13355 choke me
13356 #endif
13357
13358 int
13359 main ()
13360 {
13361 return poll ();
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 is_poll_mechanism_available="yes"
13368 else
13369 is_poll_mechanism_available="no"
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 iopoll_mechanism_select=6
13374
13375 cat >>confdefs.h <<_ACEOF
13376 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13377 _ACEOF
13378
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 /* Define select to an innocuous variant, in case <limits.h> declares select.
13382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13383 #define select innocuous_select
13384
13385 /* System header to define __stub macros and hopefully few prototypes,
13386 which can conflict with char select (); below.
13387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 <limits.h> exists even on freestanding compilers. */
13389
13390 #ifdef __STDC__
13391 # include <limits.h>
13392 #else
13393 # include <assert.h>
13394 #endif
13395
13396 #undef select
13397
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char select ();
13405 /* The GNU C library defines this for functions which it implements
13406 to always fail with ENOSYS. Some functions are actually named
13407 something starting with __ and the normal name is an alias. */
13408 #if defined __stub_select || defined __stub___select
13409 choke me
13410 #endif
13411
13412 int
13413 main ()
13414 {
13415 return select ();
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_link "$LINENO"; then :
13421 is_select_mechanism_available="yes"
13422 else
13423 is_select_mechanism_available="no"
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13427 optimal_iopoll_mechanism="none"
13428 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13429 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13430 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13431 optimal_iopoll_mechanism="$mechanism"
13432 break
13433 fi
13434 done
13435 if test "$desired_iopoll_mechanism" = "none" ; then
13436 if test "$optimal_iopoll_mechanism" = "none" ; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13438 $as_echo "none" >&6; }
13439 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13440 else
13441 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13443 $as_echo "$selected_iopoll_mechanism" >&6; }
13444 fi
13445 else
13446 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13447 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13448 selected_iopoll_mechanism=$desired_iopoll_mechanism
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13450 $as_echo "$selected_iopoll_mechanism" >&6; }
13451 else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13453 $as_echo "none" >&6; }
13454 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13455 fi
13456 fi
13457 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13458
13459 cat >>confdefs.h <<_ACEOF
13460 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13461 _ACEOF
13462
13463
13464
13465
13466 # Check whether --with-nicklen was given.
13467 if test "${with_nicklen+set}" = set; then :
13468 withval=$with_nicklen; nicklen="$withval"
13469 else
13470 nicklen="9"
13471 fi
13472
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define NICKLEN ($nicklen+1)
13476 _ACEOF
13477
13478
13479
13480
13481 # Check whether --with-topiclen was given.
13482 if test "${with_topiclen+set}" = set; then :
13483 withval=$with_topiclen; topiclen="$withval"
13484 else
13485 topiclen="160"
13486 fi
13487
13488
13489 cat >>confdefs.h <<_ACEOF
13490 #define TOPICLEN ($topiclen)
13491 _ACEOF
13492
13493
13494
13495
13496 # Check whether --with-syslog-facility was given.
13497 if test "${with_syslog_facility+set}" = set; then :
13498 withval=$with_syslog_facility; syslog_facility="$withval"
13499 else
13500 syslog_facility="LOG_LOCAL4"
13501 fi
13502
13503
13504 cat >>confdefs.h <<_ACEOF
13505 #define LOG_FACILITY $syslog_facility
13506 _ACEOF
13507
13508
13509
13510 # Check whether --enable-efnet was given.
13511 if test "${enable_efnet+set}" = set; then :
13512 enableval=$enable_efnet; efnet="$enableval"
13513 else
13514 efnet="no"
13515 fi
13516
13517 if test "$efnet" = "yes" ; then
13518 use_efnet="yes"
13519
13520 $as_echo "#define EFNET 1" >>confdefs.h
13521
13522
13523 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13524
13525 else
13526 use_efnet="no"
13527 fi
13528 if test "$use_efnet" = "yes"; then
13529 EFNET_TRUE=
13530 EFNET_FALSE='#'
13531 else
13532 EFNET_TRUE='#'
13533 EFNET_FALSE=
13534 fi
13535
13536
13537
13538 # Check whether --enable-halfops was given.
13539 if test "${enable_halfops+set}" = set; then :
13540 enableval=$enable_halfops; halfops="$enableval"
13541 else
13542 halfops="no"
13543 fi
13544
13545 if test "$halfops" = "yes" ; then
13546
13547 $as_echo "#define HALFOPS 1" >>confdefs.h
13548
13549 fi
13550
13551
13552 # Check whether --enable-debugging was given.
13553 if test "${enable_debugging+set}" = set; then :
13554 enableval=$enable_debugging; debugging="$enableval"
13555 else
13556 debugging="no"
13557 fi
13558
13559 if test "$debugging" = "yes" ; then
13560
13561 $as_echo "#define DEBUG 1" >>confdefs.h
13562
13563 CFLAGS="-Wall -g -O0"
13564 else
13565
13566 $as_echo "#define NDEBUG 1" >>confdefs.h
13567
13568 fi
13569
13570
13571 # Check whether --enable-warnings was given.
13572 if test "${enable_warnings+set}" = set; then :
13573 enableval=$enable_warnings; warnings="$enableval"
13574 else
13575 warnings="no"
13576 fi
13577
13578 if test "$warnings" = "yes" ; then
13579 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13580 fi
13581
13582
13583 for ac_header in syslog.h sys/syslog.h
13584 do :
13585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13586 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13587 eval as_val=\$$as_ac_Header
13588 if test "x$as_val" = x""yes; then :
13589 cat >>confdefs.h <<_ACEOF
13590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591 _ACEOF
13592
13593 fi
13594
13595 done
13596
13597 # Check whether --enable-syslog was given.
13598 if test "${enable_syslog+set}" = set; then :
13599 enableval=$enable_syslog; syslog="$enableval"
13600 else
13601 syslog="no"
13602 fi
13603
13604 if test "$enableval" != "no" ; then
13605 for option in $enableval ; do
13606 case "$option" in
13607 users)
13608 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13609 ;;
13610 oper)
13611 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13612 ;;
13613 yes) : ;;
13614 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13615 esac
13616 done
13617
13618 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13619
13620 fi
13621
13622
13623
13624 prefix_NONE=
13625 exec_prefix_NONE=
13626 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13627 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13628 eval ac_define_dir="\"$prefix\""
13629 eval ac_define_dir="\"$ac_define_dir\""
13630 PREFIX="$ac_define_dir"
13631
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define PREFIX "$ac_define_dir"
13635 _ACEOF
13636
13637 test "$prefix_NONE" && prefix=NONE
13638 test "$exec_prefix_NONE" && exec_prefix=NONE
13639
13640
13641 prefix_NONE=
13642 exec_prefix_NONE=
13643 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13644 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13645 eval ac_define_dir="\"$sysconfdir\""
13646 eval ac_define_dir="\"$ac_define_dir\""
13647 SYSCONFDIR="$ac_define_dir"
13648
13649
13650 cat >>confdefs.h <<_ACEOF
13651 #define SYSCONFDIR "$ac_define_dir"
13652 _ACEOF
13653
13654 test "$prefix_NONE" && prefix=NONE
13655 test "$exec_prefix_NONE" && exec_prefix=NONE
13656
13657
13658 prefix_NONE=
13659 exec_prefix_NONE=
13660 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13661 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13662 eval ac_define_dir="\"$libdir\""
13663 eval ac_define_dir="\"$ac_define_dir\""
13664 LIBDIR="$ac_define_dir"
13665
13666
13667 cat >>confdefs.h <<_ACEOF
13668 #define LIBDIR "$ac_define_dir"
13669 _ACEOF
13670
13671 test "$prefix_NONE" && prefix=NONE
13672 test "$exec_prefix_NONE" && exec_prefix=NONE
13673
13674
13675 prefix_NONE=
13676 exec_prefix_NONE=
13677 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13678 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13679 eval ac_define_dir="\"$datadir\""
13680 eval ac_define_dir="\"$ac_define_dir\""
13681 DATADIR="$ac_define_dir"
13682
13683
13684 cat >>confdefs.h <<_ACEOF
13685 #define DATADIR "$ac_define_dir"
13686 _ACEOF
13687
13688 test "$prefix_NONE" && prefix=NONE
13689 test "$exec_prefix_NONE" && exec_prefix=NONE
13690
13691
13692 prefix_NONE=
13693 exec_prefix_NONE=
13694 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13695 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13696 eval ac_define_dir="\"$localstatedir\""
13697 eval ac_define_dir="\"$ac_define_dir\""
13698 LOCALSTATEDIR="$ac_define_dir"
13699
13700
13701 cat >>confdefs.h <<_ACEOF
13702 #define LOCALSTATEDIR "$ac_define_dir"
13703 _ACEOF
13704
13705 test "$prefix_NONE" && prefix=NONE
13706 test "$exec_prefix_NONE" && exec_prefix=NONE
13707
13708
13709 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13710
13711
13712 cat >confcache <<\_ACEOF
13713 # This file is a shell script that caches the results of configure
13714 # tests run on this system so they can be shared between configure
13715 # scripts and configure runs, see configure's option --config-cache.
13716 # It is not useful on other systems. If it contains results you don't
13717 # want to keep, you may remove or edit it.
13718 #
13719 # config.status only pays attention to the cache file if you give it
13720 # the --recheck option to rerun configure.
13721 #
13722 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13723 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13724 # following values.
13725
13726 _ACEOF
13727
13728 # The following way of writing the cache mishandles newlines in values,
13729 # but we know of no workaround that is simple, portable, and efficient.
13730 # So, we kill variables containing newlines.
13731 # Ultrix sh set writes to stderr and can't be redirected directly,
13732 # and sets the high bit in the cache file unless we assign to the vars.
13733 (
13734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13735 eval ac_val=\$$ac_var
13736 case $ac_val in #(
13737 *${as_nl}*)
13738 case $ac_var in #(
13739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13741 esac
13742 case $ac_var in #(
13743 _ | IFS | as_nl) ;; #(
13744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13745 *) { eval $ac_var=; unset $ac_var;} ;;
13746 esac ;;
13747 esac
13748 done
13749
13750 (set) 2>&1 |
13751 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13752 *${as_nl}ac_space=\ *)
13753 # `set' does not quote correctly, so add quotes: double-quote
13754 # substitution turns \\\\ into \\, and sed turns \\ into \.
13755 sed -n \
13756 "s/'/'\\\\''/g;
13757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13758 ;; #(
13759 *)
13760 # `set' quotes correctly as required by POSIX, so do not add quotes.
13761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13762 ;;
13763 esac |
13764 sort
13765 ) |
13766 sed '
13767 /^ac_cv_env_/b end
13768 t clear
13769 :clear
13770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13771 t end
13772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13773 :end' >>confcache
13774 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13775 if test -w "$cache_file"; then
13776 test "x$cache_file" != "x/dev/null" &&
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13778 $as_echo "$as_me: updating cache $cache_file" >&6;}
13779 cat confcache >$cache_file
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13783 fi
13784 fi
13785 rm -f confcache
13786
13787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13788 # Let make expand exec_prefix.
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13790
13791 DEFS=-DHAVE_CONFIG_H
13792
13793 ac_libobjs=
13794 ac_ltlibobjs=
13795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13796 # 1. Remove the extension, and $U if already installed.
13797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13800 # will be set to the directory where LIBOBJS objects are built.
13801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13803 done
13804 LIBOBJS=$ac_libobjs
13805
13806 LTLIBOBJS=$ac_ltlibobjs
13807
13808
13809 if test -n "$EXEEXT"; then
13810 am__EXEEXT_TRUE=
13811 am__EXEEXT_FALSE='#'
13812 else
13813 am__EXEEXT_TRUE='#'
13814 am__EXEEXT_FALSE=
13815 fi
13816
13817 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13818 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13820 fi
13821 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13822 as_fn_error "conditional \"AMDEP\" was never defined.
13823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13824 fi
13825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13826 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13828 fi
13829 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13830 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13832 fi
13833 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13834 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13836 fi
13837 LT_CONFIG_H=config.h
13838
13839 _ltdl_libobjs=
13840 _ltdl_ltlibobjs=
13841 if test -n "$_LT_LIBOBJS"; then
13842 # Remove the extension.
13843 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13844 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13845 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13846 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13847 done
13848 fi
13849 ltdl_LIBOBJS=$_ltdl_libobjs
13850
13851 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13852
13853
13854
13855 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13856 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13858 fi
13859 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13860 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13862 fi
13863 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13864 as_fn_error "conditional \"EFNET\" was never defined.
13865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13866 fi
13867
13868 : ${CONFIG_STATUS=./config.status}
13869 ac_write_fail=0
13870 ac_clean_files_save=$ac_clean_files
13871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13874 as_write_fail=0
13875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13876 #! $SHELL
13877 # Generated by $as_me.
13878 # Run this file to recreate the current configuration.
13879 # Compiler output produced by configure, useful for debugging
13880 # configure, is in config.log if it exists.
13881
13882 debug=false
13883 ac_cs_recheck=false
13884 ac_cs_silent=false
13885
13886 SHELL=\${CONFIG_SHELL-$SHELL}
13887 export SHELL
13888 _ASEOF
13889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13890 ## -------------------- ##
13891 ## M4sh Initialization. ##
13892 ## -------------------- ##
13893
13894 # Be more Bourne compatible
13895 DUALCASE=1; export DUALCASE # for MKS sh
13896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13897 emulate sh
13898 NULLCMD=:
13899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13900 # is contrary to our usage. Disable this feature.
13901 alias -g '${1+"$@"}'='"$@"'
13902 setopt NO_GLOB_SUBST
13903 else
13904 case `(set -o) 2>/dev/null` in #(
13905 *posix*) :
13906 set -o posix ;; #(
13907 *) :
13908 ;;
13909 esac
13910 fi
13911
13912
13913 as_nl='
13914 '
13915 export as_nl
13916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13920 # Prefer a ksh shell builtin over an external printf program on Solaris,
13921 # but without wasting forks for bash or zsh.
13922 if test -z "$BASH_VERSION$ZSH_VERSION" \
13923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13924 as_echo='print -r --'
13925 as_echo_n='print -rn --'
13926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13927 as_echo='printf %s\n'
13928 as_echo_n='printf %s'
13929 else
13930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13931 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13932 as_echo_n='/usr/ucb/echo -n'
13933 else
13934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13935 as_echo_n_body='eval
13936 arg=$1;
13937 case $arg in #(
13938 *"$as_nl"*)
13939 expr "X$arg" : "X\\(.*\\)$as_nl";
13940 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13941 esac;
13942 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13943 '
13944 export as_echo_n_body
13945 as_echo_n='sh -c $as_echo_n_body as_echo'
13946 fi
13947 export as_echo_body
13948 as_echo='sh -c $as_echo_body as_echo'
13949 fi
13950
13951 # The user is always right.
13952 if test "${PATH_SEPARATOR+set}" != set; then
13953 PATH_SEPARATOR=:
13954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13955 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13956 PATH_SEPARATOR=';'
13957 }
13958 fi
13959
13960
13961 # IFS
13962 # We need space, tab and new line, in precisely that order. Quoting is
13963 # there to prevent editors from complaining about space-tab.
13964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13965 # splitting by setting IFS to empty value.)
13966 IFS=" "" $as_nl"
13967
13968 # Find who we are. Look in the path if we contain no directory separator.
13969 case $0 in #((
13970 *[\\/]* ) as_myself=$0 ;;
13971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13973 do
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13977 done
13978 IFS=$as_save_IFS
13979
13980 ;;
13981 esac
13982 # We did not find ourselves, most probably we were run as `sh COMMAND'
13983 # in which case we are not to be found in the path.
13984 if test "x$as_myself" = x; then
13985 as_myself=$0
13986 fi
13987 if test ! -f "$as_myself"; then
13988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13989 exit 1
13990 fi
13991
13992 # Unset variables that we do not need and which cause bugs (e.g. in
13993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13994 # suppresses any "Segmentation fault" message there. '((' could
13995 # trigger a bug in pdksh 5.2.14.
13996 for as_var in BASH_ENV ENV MAIL MAILPATH
13997 do eval test x\${$as_var+set} = xset \
13998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13999 done
14000 PS1='$ '
14001 PS2='> '
14002 PS4='+ '
14003
14004 # NLS nuisances.
14005 LC_ALL=C
14006 export LC_ALL
14007 LANGUAGE=C
14008 export LANGUAGE
14009
14010 # CDPATH.
14011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14012
14013
14014 # as_fn_error ERROR [LINENO LOG_FD]
14015 # ---------------------------------
14016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14018 # script with status $?, using 1 if that was 0.
14019 as_fn_error ()
14020 {
14021 as_status=$?; test $as_status -eq 0 && as_status=1
14022 if test "$3"; then
14023 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14025 fi
14026 $as_echo "$as_me: error: $1" >&2
14027 as_fn_exit $as_status
14028 } # as_fn_error
14029
14030
14031 # as_fn_set_status STATUS
14032 # -----------------------
14033 # Set $? to STATUS, without forking.
14034 as_fn_set_status ()
14035 {
14036 return $1
14037 } # as_fn_set_status
14038
14039 # as_fn_exit STATUS
14040 # -----------------
14041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14042 as_fn_exit ()
14043 {
14044 set +e
14045 as_fn_set_status $1
14046 exit $1
14047 } # as_fn_exit
14048
14049 # as_fn_unset VAR
14050 # ---------------
14051 # Portably unset VAR.
14052 as_fn_unset ()
14053 {
14054 { eval $1=; unset $1;}
14055 }
14056 as_unset=as_fn_unset
14057 # as_fn_append VAR VALUE
14058 # ----------------------
14059 # Append the text in VALUE to the end of the definition contained in VAR. Take
14060 # advantage of any shell optimizations that allow amortized linear growth over
14061 # repeated appends, instead of the typical quadratic growth present in naive
14062 # implementations.
14063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14064 eval 'as_fn_append ()
14065 {
14066 eval $1+=\$2
14067 }'
14068 else
14069 as_fn_append ()
14070 {
14071 eval $1=\$$1\$2
14072 }
14073 fi # as_fn_append
14074
14075 # as_fn_arith ARG...
14076 # ------------------
14077 # Perform arithmetic evaluation on the ARGs, and store the result in the
14078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14079 # must be portable across $(()) and expr.
14080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14081 eval 'as_fn_arith ()
14082 {
14083 as_val=$(( $* ))
14084 }'
14085 else
14086 as_fn_arith ()
14087 {
14088 as_val=`expr "$@" || test $? -eq 1`
14089 }
14090 fi # as_fn_arith
14091
14092
14093 if expr a : '\(a\)' >/dev/null 2>&1 &&
14094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14095 as_expr=expr
14096 else
14097 as_expr=false
14098 fi
14099
14100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14101 as_basename=basename
14102 else
14103 as_basename=false
14104 fi
14105
14106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14107 as_dirname=dirname
14108 else
14109 as_dirname=false
14110 fi
14111
14112 as_me=`$as_basename -- "$0" ||
14113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14114 X"$0" : 'X\(//\)$' \| \
14115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14116 $as_echo X/"$0" |
14117 sed '/^.*\/\([^/][^/]*\)\/*$/{
14118 s//\1/
14119 q
14120 }
14121 /^X\/\(\/\/\)$/{
14122 s//\1/
14123 q
14124 }
14125 /^X\/\(\/\).*/{
14126 s//\1/
14127 q
14128 }
14129 s/.*/./; q'`
14130
14131 # Avoid depending upon Character Ranges.
14132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14135 as_cr_digits='0123456789'
14136 as_cr_alnum=$as_cr_Letters$as_cr_digits
14137
14138 ECHO_C= ECHO_N= ECHO_T=
14139 case `echo -n x` in #(((((
14140 -n*)
14141 case `echo 'xy\c'` in
14142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14143 xy) ECHO_C='\c';;
14144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14145 ECHO_T=' ';;
14146 esac;;
14147 *)
14148 ECHO_N='-n';;
14149 esac
14150
14151 rm -f conf$$ conf$$.exe conf$$.file
14152 if test -d conf$$.dir; then
14153 rm -f conf$$.dir/conf$$.file
14154 else
14155 rm -f conf$$.dir
14156 mkdir conf$$.dir 2>/dev/null
14157 fi
14158 if (echo >conf$$.file) 2>/dev/null; then
14159 if ln -s conf$$.file conf$$ 2>/dev/null; then
14160 as_ln_s='ln -s'
14161 # ... but there are two gotchas:
14162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14164 # In both cases, we have to default to `cp -p'.
14165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14166 as_ln_s='cp -p'
14167 elif ln conf$$.file conf$$ 2>/dev/null; then
14168 as_ln_s=ln
14169 else
14170 as_ln_s='cp -p'
14171 fi
14172 else
14173 as_ln_s='cp -p'
14174 fi
14175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14176 rmdir conf$$.dir 2>/dev/null
14177
14178
14179 # as_fn_mkdir_p
14180 # -------------
14181 # Create "$as_dir" as a directory, including parents if necessary.
14182 as_fn_mkdir_p ()
14183 {
14184
14185 case $as_dir in #(
14186 -*) as_dir=./$as_dir;;
14187 esac
14188 test -d "$as_dir" || eval $as_mkdir_p || {
14189 as_dirs=
14190 while :; do
14191 case $as_dir in #(
14192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14193 *) as_qdir=$as_dir;;
14194 esac
14195 as_dirs="'$as_qdir' $as_dirs"
14196 as_dir=`$as_dirname -- "$as_dir" ||
14197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198 X"$as_dir" : 'X\(//\)[^/]' \| \
14199 X"$as_dir" : 'X\(//\)$' \| \
14200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14201 $as_echo X"$as_dir" |
14202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14203 s//\1/
14204 q
14205 }
14206 /^X\(\/\/\)[^/].*/{
14207 s//\1/
14208 q
14209 }
14210 /^X\(\/\/\)$/{
14211 s//\1/
14212 q
14213 }
14214 /^X\(\/\).*/{
14215 s//\1/
14216 q
14217 }
14218 s/.*/./; q'`
14219 test -d "$as_dir" && break
14220 done
14221 test -z "$as_dirs" || eval "mkdir $as_dirs"
14222 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14223
14224
14225 } # as_fn_mkdir_p
14226 if mkdir -p . 2>/dev/null; then
14227 as_mkdir_p='mkdir -p "$as_dir"'
14228 else
14229 test -d ./-p && rmdir ./-p
14230 as_mkdir_p=false
14231 fi
14232
14233 if test -x / >/dev/null 2>&1; then
14234 as_test_x='test -x'
14235 else
14236 if ls -dL / >/dev/null 2>&1; then
14237 as_ls_L_option=L
14238 else
14239 as_ls_L_option=
14240 fi
14241 as_test_x='
14242 eval sh -c '\''
14243 if test -d "$1"; then
14244 test -d "$1/.";
14245 else
14246 case $1 in #(
14247 -*)set "./$1";;
14248 esac;
14249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14250 ???[sx]*):;;*)false;;esac;fi
14251 '\'' sh
14252 '
14253 fi
14254 as_executable_p=$as_test_x
14255
14256 # Sed expression to map a string onto a valid CPP name.
14257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14258
14259 # Sed expression to map a string onto a valid variable name.
14260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14261
14262
14263 exec 6>&1
14264 ## ----------------------------------- ##
14265 ## Main body of $CONFIG_STATUS script. ##
14266 ## ----------------------------------- ##
14267 _ASEOF
14268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14269
14270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271 # Save the log message, to keep $0 and so on meaningful, and to
14272 # report actual input values of CONFIG_FILES etc. instead of their
14273 # values after options handling.
14274 ac_log="
14275 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14276 generated by GNU Autoconf 2.65. Invocation command line was
14277
14278 CONFIG_FILES = $CONFIG_FILES
14279 CONFIG_HEADERS = $CONFIG_HEADERS
14280 CONFIG_LINKS = $CONFIG_LINKS
14281 CONFIG_COMMANDS = $CONFIG_COMMANDS
14282 $ $0 $@
14283
14284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14285 "
14286
14287 _ACEOF
14288
14289 case $ac_config_files in *"
14290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14291 esac
14292
14293 case $ac_config_headers in *"
14294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14295 esac
14296
14297
14298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14299 # Files that config.status was made for.
14300 config_files="$ac_config_files"
14301 config_headers="$ac_config_headers"
14302 config_commands="$ac_config_commands"
14303
14304 _ACEOF
14305
14306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 ac_cs_usage="\
14308 \`$as_me' instantiates files and other configuration actions
14309 from templates according to the current configuration. Unless the files
14310 and actions are specified as TAGs, all are instantiated by default.
14311
14312 Usage: $0 [OPTION]... [TAG]...
14313
14314 -h, --help print this help, then exit
14315 -V, --version print version number and configuration settings, then exit
14316 --config print configuration, then exit
14317 -q, --quiet, --silent
14318 do not print progress messages
14319 -d, --debug don't remove temporary files
14320 --recheck update $as_me by reconfiguring in the same conditions
14321 --file=FILE[:TEMPLATE]
14322 instantiate the configuration file FILE
14323 --header=FILE[:TEMPLATE]
14324 instantiate the configuration header FILE
14325
14326 Configuration files:
14327 $config_files
14328
14329 Configuration headers:
14330 $config_headers
14331
14332 Configuration commands:
14333 $config_commands
14334
14335 Report bugs to <bugs@ircd-hybrid.org>."
14336
14337 _ACEOF
14338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14340 ac_cs_version="\\
14341 ircd-hybrid config.status 7.3-rc1
14342 configured by $0, generated by GNU Autoconf 2.65,
14343 with options \\"\$ac_cs_config\\"
14344
14345 Copyright (C) 2009 Free Software Foundation, Inc.
14346 This config.status script is free software; the Free Software Foundation
14347 gives unlimited permission to copy, distribute and modify it."
14348
14349 ac_pwd='$ac_pwd'
14350 srcdir='$srcdir'
14351 INSTALL='$INSTALL'
14352 MKDIR_P='$MKDIR_P'
14353 AWK='$AWK'
14354 test -n "\$AWK" || AWK=awk
14355 _ACEOF
14356
14357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358 # The default lists apply if the user does not specify any file.
14359 ac_need_defaults=:
14360 while test $# != 0
14361 do
14362 case $1 in
14363 --*=*)
14364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14366 ac_shift=:
14367 ;;
14368 *)
14369 ac_option=$1
14370 ac_optarg=$2
14371 ac_shift=shift
14372 ;;
14373 esac
14374
14375 case $ac_option in
14376 # Handling of the options.
14377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14378 ac_cs_recheck=: ;;
14379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14380 $as_echo "$ac_cs_version"; exit ;;
14381 --config | --confi | --conf | --con | --co | --c )
14382 $as_echo "$ac_cs_config"; exit ;;
14383 --debug | --debu | --deb | --de | --d | -d )
14384 debug=: ;;
14385 --file | --fil | --fi | --f )
14386 $ac_shift
14387 case $ac_optarg in
14388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14389 esac
14390 as_fn_append CONFIG_FILES " '$ac_optarg'"
14391 ac_need_defaults=false;;
14392 --header | --heade | --head | --hea )
14393 $ac_shift
14394 case $ac_optarg in
14395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14396 esac
14397 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14398 ac_need_defaults=false;;
14399 --he | --h)
14400 # Conflict between --help and --header
14401 as_fn_error "ambiguous option: \`$1'
14402 Try \`$0 --help' for more information.";;
14403 --help | --hel | -h )
14404 $as_echo "$ac_cs_usage"; exit ;;
14405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14407 ac_cs_silent=: ;;
14408
14409 # This is an error.
14410 -*) as_fn_error "unrecognized option: \`$1'
14411 Try \`$0 --help' for more information." ;;
14412
14413 *) as_fn_append ac_config_targets " $1"
14414 ac_need_defaults=false ;;
14415
14416 esac
14417 shift
14418 done
14419
14420 ac_configure_extra_args=
14421
14422 if $ac_cs_silent; then
14423 exec 6>/dev/null
14424 ac_configure_extra_args="$ac_configure_extra_args --silent"
14425 fi
14426
14427 _ACEOF
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 if \$ac_cs_recheck; then
14430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14431 shift
14432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14433 CONFIG_SHELL='$SHELL'
14434 export CONFIG_SHELL
14435 exec "\$@"
14436 fi
14437
14438 _ACEOF
14439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14440 exec 5>>config.log
14441 {
14442 echo
14443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14444 ## Running $as_me. ##
14445 _ASBOX
14446 $as_echo "$ac_log"
14447 } >&5
14448
14449 _ACEOF
14450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14451 #
14452 # INIT-COMMANDS
14453 #
14454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14455
14456
14457 # The HP-UX ksh and POSIX shell print the target directory to stdout
14458 # if CDPATH is set.
14459 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14460
14461 sed_quote_subst='$sed_quote_subst'
14462 double_quote_subst='$double_quote_subst'
14463 delay_variable_subst='$delay_variable_subst'
14464 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14465 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14466 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14467 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14468 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14469 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14470 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14471 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14472 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14473 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14474 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14475 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14476 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14477 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14478 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14479 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14480 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14481 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14482 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14483 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14484 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14485 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14486 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14487 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14488 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14489 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14490 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14491 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14492 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14493 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14494 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14495 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14496 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14497 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14498 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14499 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14500 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14501 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14502 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14503 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14504 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14505 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14506 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14507 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14508 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"`'
14509 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"`'
14510 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14511 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14512 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14513 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14514 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14515 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14516 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14517 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14518 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14519 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14520 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14521 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14522 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14523 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14524 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14525 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14526 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14527 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14528 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14529 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14530 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14531 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14532 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14533 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14534 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14535 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14536 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14537 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14538 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14539 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14540 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14541 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14542 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14543 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14544 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14545 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14546 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14547 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14548 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14549 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14550 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14551 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14552 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14553 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14554 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14555 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14556 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14557 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14558 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14559 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14560 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14561 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14562 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14563 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14564 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14565 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14566 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14567 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14568 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14569 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14570 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14571 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14572 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14573 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14574 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14575 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14576 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14577 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14578 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14579 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14580 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14581 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14582
14583 LTCC='$LTCC'
14584 LTCFLAGS='$LTCFLAGS'
14585 compiler='$compiler_DEFAULT'
14586
14587 # Quote evaled strings.
14588 for var in SED \
14589 GREP \
14590 EGREP \
14591 FGREP \
14592 LD \
14593 NM \
14594 LN_S \
14595 lt_SP2NL \
14596 lt_NL2SP \
14597 reload_flag \
14598 OBJDUMP \
14599 deplibs_check_method \
14600 file_magic_cmd \
14601 AR \
14602 AR_FLAGS \
14603 STRIP \
14604 RANLIB \
14605 CC \
14606 CFLAGS \
14607 compiler \
14608 lt_cv_sys_global_symbol_pipe \
14609 lt_cv_sys_global_symbol_to_cdecl \
14610 lt_cv_sys_global_symbol_to_c_name_address \
14611 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14612 SHELL \
14613 ECHO \
14614 lt_prog_compiler_no_builtin_flag \
14615 lt_prog_compiler_wl \
14616 lt_prog_compiler_pic \
14617 lt_prog_compiler_static \
14618 lt_cv_prog_compiler_c_o \
14619 need_locks \
14620 DSYMUTIL \
14621 NMEDIT \
14622 LIPO \
14623 OTOOL \
14624 OTOOL64 \
14625 shrext_cmds \
14626 export_dynamic_flag_spec \
14627 whole_archive_flag_spec \
14628 compiler_needs_object \
14629 with_gnu_ld \
14630 allow_undefined_flag \
14631 no_undefined_flag \
14632 hardcode_libdir_flag_spec \
14633 hardcode_libdir_flag_spec_ld \
14634 hardcode_libdir_separator \
14635 fix_srcfile_path \
14636 exclude_expsyms \
14637 include_expsyms \
14638 file_list_spec \
14639 variables_saved_for_relink \
14640 libname_spec \
14641 library_names_spec \
14642 soname_spec \
14643 finish_eval \
14644 old_striplib \
14645 striplib; do
14646 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14647 *[\\\\\\\`\\"\\\$]*)
14648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14649 ;;
14650 *)
14651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14652 ;;
14653 esac
14654 done
14655
14656 # Double-quote double-evaled strings.
14657 for var in reload_cmds \
14658 old_postinstall_cmds \
14659 old_postuninstall_cmds \
14660 old_archive_cmds \
14661 extract_expsyms_cmds \
14662 old_archive_from_new_cmds \
14663 old_archive_from_expsyms_cmds \
14664 archive_cmds \
14665 archive_expsym_cmds \
14666 module_cmds \
14667 module_expsym_cmds \
14668 export_symbols_cmds \
14669 prelink_cmds \
14670 postinstall_cmds \
14671 postuninstall_cmds \
14672 finish_cmds \
14673 sys_lib_search_path_spec \
14674 sys_lib_dlsearch_path_spec; do
14675 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14676 *[\\\\\\\`\\"\\\$]*)
14677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14678 ;;
14679 *)
14680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14681 ;;
14682 esac
14683 done
14684
14685 # Fix-up fallback echo if it was mangled by the above quoting rules.
14686 case \$lt_ECHO in
14687 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14688 ;;
14689 esac
14690
14691 ac_aux_dir='$ac_aux_dir'
14692 xsi_shell='$xsi_shell'
14693 lt_shell_append='$lt_shell_append'
14694
14695 # See if we are running on zsh, and set the options which allow our
14696 # commands through without removal of \ escapes INIT.
14697 if test -n "\${ZSH_VERSION+set}" ; then
14698 setopt NO_GLOB_SUBST
14699 fi
14700
14701
14702 PACKAGE='$PACKAGE'
14703 VERSION='$VERSION'
14704 TIMESTAMP='$TIMESTAMP'
14705 RM='$RM'
14706 ofile='$ofile'
14707
14708
14709
14710
14711 _ACEOF
14712
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714
14715 # Handling of arguments.
14716 for ac_config_target in $ac_config_targets
14717 do
14718 case $ac_config_target in
14719 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14720 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14721 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14722 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14723 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14724 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14725 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14726 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14727 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14728 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
14729 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14730 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14731 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14732 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14733 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14734 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14735 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14736 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14737
14738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14739 esac
14740 done
14741
14742
14743 # If the user did not use the arguments to specify the items to instantiate,
14744 # then the envvar interface is used. Set only those that are not.
14745 # We use the long form for the default assignment because of an extremely
14746 # bizarre bug on SunOS 4.1.3.
14747 if $ac_need_defaults; then
14748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14751 fi
14752
14753 # Have a temporary directory for convenience. Make it in the build tree
14754 # simply because there is no reason against having it here, and in addition,
14755 # creating and moving files from /tmp can sometimes cause problems.
14756 # Hook for its removal unless debugging.
14757 # Note that there is a small window in which the directory will not be cleaned:
14758 # after its creation but before its name has been assigned to `$tmp'.
14759 $debug ||
14760 {
14761 tmp=
14762 trap 'exit_status=$?
14763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14764 ' 0
14765 trap 'as_fn_exit 1' 1 2 13 15
14766 }
14767 # Create a (secure) tmp directory for tmp files.
14768
14769 {
14770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14771 test -n "$tmp" && test -d "$tmp"
14772 } ||
14773 {
14774 tmp=./conf$$-$RANDOM
14775 (umask 077 && mkdir "$tmp")
14776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14777
14778 # Set up the scripts for CONFIG_FILES section.
14779 # No need to generate them if there are no CONFIG_FILES.
14780 # This happens for instance with `./config.status config.h'.
14781 if test -n "$CONFIG_FILES"; then
14782
14783
14784 ac_cr=`echo X | tr X '\015'`
14785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14786 # But we know of no other shell where ac_cr would be empty at this
14787 # point, so we can use a bashism as a fallback.
14788 if test "x$ac_cr" = x; then
14789 eval ac_cr=\$\'\\r\'
14790 fi
14791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14793 ac_cs_awk_cr='\r'
14794 else
14795 ac_cs_awk_cr=$ac_cr
14796 fi
14797
14798 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14799 _ACEOF
14800
14801
14802 {
14803 echo "cat >conf$$subs.awk <<_ACEOF" &&
14804 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14805 echo "_ACEOF"
14806 } >conf$$subs.sh ||
14807 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14809 ac_delim='%!_!# '
14810 for ac_last_try in false false false false false :; do
14811 . ./conf$$subs.sh ||
14812 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14813
14814 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14815 if test $ac_delim_n = $ac_delim_num; then
14816 break
14817 elif $ac_last_try; then
14818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14819 else
14820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14821 fi
14822 done
14823 rm -f conf$$subs.sh
14824
14825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14827 _ACEOF
14828 sed -n '
14829 h
14830 s/^/S["/; s/!.*/"]=/
14831 p
14832 g
14833 s/^[^!]*!//
14834 :repl
14835 t repl
14836 s/'"$ac_delim"'$//
14837 t delim
14838 :nl
14839 h
14840 s/\(.\{148\}\)..*/\1/
14841 t more1
14842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14843 p
14844 n
14845 b repl
14846 :more1
14847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14848 p
14849 g
14850 s/.\{148\}//
14851 t nl
14852 :delim
14853 h
14854 s/\(.\{148\}\)..*/\1/
14855 t more2
14856 s/["\\]/\\&/g; s/^/"/; s/$/"/
14857 p
14858 b
14859 :more2
14860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14861 p
14862 g
14863 s/.\{148\}//
14864 t delim
14865 ' <conf$$subs.awk | sed '
14866 /^[^""]/{
14867 N
14868 s/\n//
14869 }
14870 ' >>$CONFIG_STATUS || ac_write_fail=1
14871 rm -f conf$$subs.awk
14872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873 _ACAWK
14874 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14875 for (key in S) S_is_set[key] = 1
14876 FS = ""
14877
14878 }
14879 {
14880 line = $ 0
14881 nfields = split(line, field, "@")
14882 substed = 0
14883 len = length(field[1])
14884 for (i = 2; i < nfields; i++) {
14885 key = field[i]
14886 keylen = length(key)
14887 if (S_is_set[key]) {
14888 value = S[key]
14889 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14890 len += length(value) + length(field[++i])
14891 substed = 1
14892 } else
14893 len += 1 + keylen
14894 }
14895
14896 print line
14897 }
14898
14899 _ACAWK
14900 _ACEOF
14901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14903 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14904 else
14905 cat
14906 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14907 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14908 _ACEOF
14909
14910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14912 # trailing colons and then remove the whole line if VPATH becomes empty
14913 # (actually we leave an empty line to preserve line numbers).
14914 if test "x$srcdir" = x.; then
14915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14916 s/:*\$(srcdir):*/:/
14917 s/:*\${srcdir}:*/:/
14918 s/:*@srcdir@:*/:/
14919 s/^\([^=]*=[ ]*\):*/\1/
14920 s/:*$//
14921 s/^[^=]*=[ ]*$//
14922 }'
14923 fi
14924
14925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14926 fi # test -n "$CONFIG_FILES"
14927
14928 # Set up the scripts for CONFIG_HEADERS section.
14929 # No need to generate them if there are no CONFIG_HEADERS.
14930 # This happens for instance with `./config.status Makefile'.
14931 if test -n "$CONFIG_HEADERS"; then
14932 cat >"$tmp/defines.awk" <<\_ACAWK ||
14933 BEGIN {
14934 _ACEOF
14935
14936 # Transform confdefs.h into an awk script `defines.awk', embedded as
14937 # here-document in config.status, that substitutes the proper values into
14938 # config.h.in to produce config.h.
14939
14940 # Create a delimiter string that does not exist in confdefs.h, to ease
14941 # handling of long lines.
14942 ac_delim='%!_!# '
14943 for ac_last_try in false false :; do
14944 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14945 if test -z "$ac_t"; then
14946 break
14947 elif $ac_last_try; then
14948 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14949 else
14950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14951 fi
14952 done
14953
14954 # For the awk script, D is an array of macro values keyed by name,
14955 # likewise P contains macro parameters if any. Preserve backslash
14956 # newline sequences.
14957
14958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14959 sed -n '
14960 s/.\{148\}/&'"$ac_delim"'/g
14961 t rset
14962 :rset
14963 s/^[ ]*#[ ]*define[ ][ ]*/ /
14964 t def
14965 d
14966 :def
14967 s/\\$//
14968 t bsnl
14969 s/["\\]/\\&/g
14970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14971 D["\1"]=" \3"/p
14972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14973 d
14974 :bsnl
14975 s/["\\]/\\&/g
14976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14977 D["\1"]=" \3\\\\\\n"\\/p
14978 t cont
14979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14980 t cont
14981 d
14982 :cont
14983 n
14984 s/.\{148\}/&'"$ac_delim"'/g
14985 t clear
14986 :clear
14987 s/\\$//
14988 t bsnlc
14989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14990 d
14991 :bsnlc
14992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14993 b cont
14994 ' <confdefs.h | sed '
14995 s/'"$ac_delim"'/"\\\
14996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14997
14998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14999 for (key in D) D_is_set[key] = 1
15000 FS = ""
15001 }
15002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15003 line = \$ 0
15004 split(line, arg, " ")
15005 if (arg[1] == "#") {
15006 defundef = arg[2]
15007 mac1 = arg[3]
15008 } else {
15009 defundef = substr(arg[1], 2)
15010 mac1 = arg[2]
15011 }
15012 split(mac1, mac2, "(") #)
15013 macro = mac2[1]
15014 prefix = substr(line, 1, index(line, defundef) - 1)
15015 if (D_is_set[macro]) {
15016 # Preserve the white space surrounding the "#".
15017 print prefix "define", macro P[macro] D[macro]
15018 next
15019 } else {
15020 # Replace #undef with comments. This is necessary, for example,
15021 # in the case of _POSIX_SOURCE, which is predefined and required
15022 # on some systems where configure will not decide to define it.
15023 if (defundef == "undef") {
15024 print "/*", prefix defundef, macro, "*/"
15025 next
15026 }
15027 }
15028 }
15029 { print }
15030 _ACAWK
15031 _ACEOF
15032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15033 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15034 fi # test -n "$CONFIG_HEADERS"
15035
15036
15037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15038 shift
15039 for ac_tag
15040 do
15041 case $ac_tag in
15042 :[FHLC]) ac_mode=$ac_tag; continue;;
15043 esac
15044 case $ac_mode$ac_tag in
15045 :[FHL]*:*);;
15046 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15047 :[FH]-) ac_tag=-:-;;
15048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15049 esac
15050 ac_save_IFS=$IFS
15051 IFS=:
15052 set x $ac_tag
15053 IFS=$ac_save_IFS
15054 shift
15055 ac_file=$1
15056 shift
15057
15058 case $ac_mode in
15059 :L) ac_source=$1;;
15060 :[FH])
15061 ac_file_inputs=
15062 for ac_f
15063 do
15064 case $ac_f in
15065 -) ac_f="$tmp/stdin";;
15066 *) # Look for the file first in the build tree, then in the source tree
15067 # (if the path is not absolute). The absolute path cannot be DOS-style,
15068 # because $ac_f cannot contain `:'.
15069 test -f "$ac_f" ||
15070 case $ac_f in
15071 [\\/$]*) false;;
15072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15073 esac ||
15074 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15075 esac
15076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15077 as_fn_append ac_file_inputs " '$ac_f'"
15078 done
15079
15080 # Let's still pretend it is `configure' which instantiates (i.e., don't
15081 # use $as_me), people would be surprised to read:
15082 # /* config.h. Generated by config.status. */
15083 configure_input='Generated from '`
15084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15085 `' by configure.'
15086 if test x"$ac_file" != x-; then
15087 configure_input="$ac_file. $configure_input"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15089 $as_echo "$as_me: creating $ac_file" >&6;}
15090 fi
15091 # Neutralize special characters interpreted by sed in replacement strings.
15092 case $configure_input in #(
15093 *\&* | *\|* | *\\* )
15094 ac_sed_conf_input=`$as_echo "$configure_input" |
15095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15096 *) ac_sed_conf_input=$configure_input;;
15097 esac
15098
15099 case $ac_tag in
15100 *:-:* | *:-) cat >"$tmp/stdin" \
15101 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15102 esac
15103 ;;
15104 esac
15105
15106 ac_dir=`$as_dirname -- "$ac_file" ||
15107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15108 X"$ac_file" : 'X\(//\)[^/]' \| \
15109 X"$ac_file" : 'X\(//\)$' \| \
15110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15111 $as_echo X"$ac_file" |
15112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\/\)[^/].*/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\/\)$/{
15121 s//\1/
15122 q
15123 }
15124 /^X\(\/\).*/{
15125 s//\1/
15126 q
15127 }
15128 s/.*/./; q'`
15129 as_dir="$ac_dir"; as_fn_mkdir_p
15130 ac_builddir=.
15131
15132 case "$ac_dir" in
15133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15134 *)
15135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15136 # A ".." for each directory in $ac_dir_suffix.
15137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15138 case $ac_top_builddir_sub in
15139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15141 esac ;;
15142 esac
15143 ac_abs_top_builddir=$ac_pwd
15144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15145 # for backward compatibility:
15146 ac_top_builddir=$ac_top_build_prefix
15147
15148 case $srcdir in
15149 .) # We are building in place.
15150 ac_srcdir=.
15151 ac_top_srcdir=$ac_top_builddir_sub
15152 ac_abs_top_srcdir=$ac_pwd ;;
15153 [\\/]* | ?:[\\/]* ) # Absolute name.
15154 ac_srcdir=$srcdir$ac_dir_suffix;
15155 ac_top_srcdir=$srcdir
15156 ac_abs_top_srcdir=$srcdir ;;
15157 *) # Relative name.
15158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15159 ac_top_srcdir=$ac_top_build_prefix$srcdir
15160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15161 esac
15162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15163
15164
15165 case $ac_mode in
15166 :F)
15167 #
15168 # CONFIG_FILE
15169 #
15170
15171 case $INSTALL in
15172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15174 esac
15175 ac_MKDIR_P=$MKDIR_P
15176 case $MKDIR_P in
15177 [\\/$]* | ?:[\\/]* ) ;;
15178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15179 esac
15180 _ACEOF
15181
15182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 # If the template does not know about datarootdir, expand it.
15184 # FIXME: This hack should be removed a few years after 2.60.
15185 ac_datarootdir_hack=; ac_datarootdir_seen=
15186 ac_sed_dataroot='
15187 /datarootdir/ {
15188 p
15189 q
15190 }
15191 /@datadir@/p
15192 /@docdir@/p
15193 /@infodir@/p
15194 /@localedir@/p
15195 /@mandir@/p'
15196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15197 *datarootdir*) ac_datarootdir_seen=yes;;
15198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15201 _ACEOF
15202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203 ac_datarootdir_hack='
15204 s&@datadir@&$datadir&g
15205 s&@docdir@&$docdir&g
15206 s&@infodir@&$infodir&g
15207 s&@localedir@&$localedir&g
15208 s&@mandir@&$mandir&g
15209 s&\\\${datarootdir}&$datarootdir&g' ;;
15210 esac
15211 _ACEOF
15212
15213 # Neutralize VPATH when `$srcdir' = `.'.
15214 # Shell code in configure.ac might set extrasub.
15215 # FIXME: do we really want to maintain this feature?
15216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15217 ac_sed_extra="$ac_vpsub
15218 $extrasub
15219 _ACEOF
15220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 :t
15222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15223 s|@configure_input@|$ac_sed_conf_input|;t t
15224 s&@top_builddir@&$ac_top_builddir_sub&;t t
15225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15226 s&@srcdir@&$ac_srcdir&;t t
15227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15228 s&@top_srcdir@&$ac_top_srcdir&;t t
15229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15230 s&@builddir@&$ac_builddir&;t t
15231 s&@abs_builddir@&$ac_abs_builddir&;t t
15232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15233 s&@INSTALL@&$ac_INSTALL&;t t
15234 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15235 $ac_datarootdir_hack
15236 "
15237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15238 || as_fn_error "could not create $ac_file" "$LINENO" 5
15239
15240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15241 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15244 which seems to be undefined. Please make sure it is defined." >&5
15245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15246 which seems to be undefined. Please make sure it is defined." >&2;}
15247
15248 rm -f "$tmp/stdin"
15249 case $ac_file in
15250 -) cat "$tmp/out" && rm -f "$tmp/out";;
15251 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15252 esac \
15253 || as_fn_error "could not create $ac_file" "$LINENO" 5
15254 ;;
15255 :H)
15256 #
15257 # CONFIG_HEADER
15258 #
15259 if test x"$ac_file" != x-; then
15260 {
15261 $as_echo "/* $configure_input */" \
15262 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15263 } >"$tmp/config.h" \
15264 || as_fn_error "could not create $ac_file" "$LINENO" 5
15265 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15268 else
15269 rm -f "$ac_file"
15270 mv "$tmp/config.h" "$ac_file" \
15271 || as_fn_error "could not create $ac_file" "$LINENO" 5
15272 fi
15273 else
15274 $as_echo "/* $configure_input */" \
15275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15276 || as_fn_error "could not create -" "$LINENO" 5
15277 fi
15278 # Compute "$ac_file"'s index in $config_headers.
15279 _am_arg="$ac_file"
15280 _am_stamp_count=1
15281 for _am_header in $config_headers :; do
15282 case $_am_header in
15283 $_am_arg | $_am_arg:* )
15284 break ;;
15285 * )
15286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15287 esac
15288 done
15289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15291 X"$_am_arg" : 'X\(//\)[^/]' \| \
15292 X"$_am_arg" : 'X\(//\)$' \| \
15293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15294 $as_echo X"$_am_arg" |
15295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15296 s//\1/
15297 q
15298 }
15299 /^X\(\/\/\)[^/].*/{
15300 s//\1/
15301 q
15302 }
15303 /^X\(\/\/\)$/{
15304 s//\1/
15305 q
15306 }
15307 /^X\(\/\).*/{
15308 s//\1/
15309 q
15310 }
15311 s/.*/./; q'`/stamp-h$_am_stamp_count
15312 ;;
15313
15314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15315 $as_echo "$as_me: executing $ac_file commands" >&6;}
15316 ;;
15317 esac
15318
15319
15320 case $ac_file$ac_mode in
15321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15322 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15323 # are listed without --file. Let's play safe and only enable the eval
15324 # if we detect the quoting.
15325 case $CONFIG_FILES in
15326 *\'*) eval set x "$CONFIG_FILES" ;;
15327 *) set x $CONFIG_FILES ;;
15328 esac
15329 shift
15330 for mf
15331 do
15332 # Strip MF so we end up with the name of the file.
15333 mf=`echo "$mf" | sed -e 's/:.*$//'`
15334 # Check whether this is an Automake generated Makefile or not.
15335 # We used to match only the files named `Makefile.in', but
15336 # some people rename them; so instead we look at the file content.
15337 # Grep'ing the first line is not enough: some people post-process
15338 # each Makefile.in and add a new line on top of each file to say so.
15339 # Grep'ing the whole file is not good either: AIX grep has a line
15340 # limit of 2048, but all sed's we know have understand at least 4000.
15341 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15342 dirpart=`$as_dirname -- "$mf" ||
15343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15344 X"$mf" : 'X\(//\)[^/]' \| \
15345 X"$mf" : 'X\(//\)$' \| \
15346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15347 $as_echo X"$mf" |
15348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\/\)[^/].*/{
15353 s//\1/
15354 q
15355 }
15356 /^X\(\/\/\)$/{
15357 s//\1/
15358 q
15359 }
15360 /^X\(\/\).*/{
15361 s//\1/
15362 q
15363 }
15364 s/.*/./; q'`
15365 else
15366 continue
15367 fi
15368 # Extract the definition of DEPDIR, am__include, and am__quote
15369 # from the Makefile without running `make'.
15370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15371 test -z "$DEPDIR" && continue
15372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15373 test -z "am__include" && continue
15374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15375 # When using ansi2knr, U may be empty or an underscore; expand it
15376 U=`sed -n 's/^U = //p' < "$mf"`
15377 # Find all dependency output files, they are included files with
15378 # $(DEPDIR) in their names. We invoke sed twice because it is the
15379 # simplest approach to changing $(DEPDIR) to its actual value in the
15380 # expansion.
15381 for file in `sed -n "
15382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15384 # Make sure the directory exists.
15385 test -f "$dirpart/$file" && continue
15386 fdir=`$as_dirname -- "$file" ||
15387 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15388 X"$file" : 'X\(//\)[^/]' \| \
15389 X"$file" : 'X\(//\)$' \| \
15390 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15391 $as_echo X"$file" |
15392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15393 s//\1/
15394 q
15395 }
15396 /^X\(\/\/\)[^/].*/{
15397 s//\1/
15398 q
15399 }
15400 /^X\(\/\/\)$/{
15401 s//\1/
15402 q
15403 }
15404 /^X\(\/\).*/{
15405 s//\1/
15406 q
15407 }
15408 s/.*/./; q'`
15409 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15410 # echo "creating $dirpart/$file"
15411 echo '# dummy' > "$dirpart/$file"
15412 done
15413 done
15414 }
15415 ;;
15416 "libtool":C)
15417
15418 # See if we are running on zsh, and set the options which allow our
15419 # commands through without removal of \ escapes.
15420 if test -n "${ZSH_VERSION+set}" ; then
15421 setopt NO_GLOB_SUBST
15422 fi
15423
15424 cfgfile="${ofile}T"
15425 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15426 $RM "$cfgfile"
15427
15428 cat <<_LT_EOF >> "$cfgfile"
15429 #! $SHELL
15430
15431 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15432 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15434 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15435 #
15436 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15437 # 2006, 2007, 2008 Free Software Foundation, Inc.
15438 # Written by Gordon Matzigkeit, 1996
15439 #
15440 # This file is part of GNU Libtool.
15441 #
15442 # GNU Libtool is free software; you can redistribute it and/or
15443 # modify it under the terms of the GNU General Public License as
15444 # published by the Free Software Foundation; either version 2 of
15445 # the License, or (at your option) any later version.
15446 #
15447 # As a special exception to the GNU General Public License,
15448 # if you distribute this file as part of a program or library that
15449 # is built using GNU Libtool, you may include this file under the
15450 # same distribution terms that you use for the rest of that program.
15451 #
15452 # GNU Libtool is distributed in the hope that it will be useful,
15453 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15454 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15455 # GNU General Public License for more details.
15456 #
15457 # You should have received a copy of the GNU General Public License
15458 # along with GNU Libtool; see the file COPYING. If not, a copy
15459 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15460 # obtained by writing to the Free Software Foundation, Inc.,
15461 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15462
15463
15464 # The names of the tagged configurations supported by this script.
15465 available_tags=""
15466
15467 # ### BEGIN LIBTOOL CONFIG
15468
15469 # Which release of libtool.m4 was used?
15470 macro_version=$macro_version
15471 macro_revision=$macro_revision
15472
15473 # Whether or not to build static libraries.
15474 build_old_libs=$enable_static
15475
15476 # Whether or not to build shared libraries.
15477 build_libtool_libs=$enable_shared
15478
15479 # What type of objects to build.
15480 pic_mode=$pic_mode
15481
15482 # Whether or not to optimize for fast installation.
15483 fast_install=$enable_fast_install
15484
15485 # The host system.
15486 host_alias=$host_alias
15487 host=$host
15488 host_os=$host_os
15489
15490 # The build system.
15491 build_alias=$build_alias
15492 build=$build
15493 build_os=$build_os
15494
15495 # A sed program that does not truncate output.
15496 SED=$lt_SED
15497
15498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15499 Xsed="\$SED -e 1s/^X//"
15500
15501 # A grep program that handles long lines.
15502 GREP=$lt_GREP
15503
15504 # An ERE matcher.
15505 EGREP=$lt_EGREP
15506
15507 # A literal string matcher.
15508 FGREP=$lt_FGREP
15509
15510 # A BSD- or MS-compatible name lister.
15511 NM=$lt_NM
15512
15513 # Whether we need soft or hard links.
15514 LN_S=$lt_LN_S
15515
15516 # What is the maximum length of a command?
15517 max_cmd_len=$max_cmd_len
15518
15519 # Object file suffix (normally "o").
15520 objext=$ac_objext
15521
15522 # Executable file suffix (normally "").
15523 exeext=$exeext
15524
15525 # whether the shell understands "unset".
15526 lt_unset=$lt_unset
15527
15528 # turn spaces into newlines.
15529 SP2NL=$lt_lt_SP2NL
15530
15531 # turn newlines into spaces.
15532 NL2SP=$lt_lt_NL2SP
15533
15534 # How to create reloadable object files.
15535 reload_flag=$lt_reload_flag
15536 reload_cmds=$lt_reload_cmds
15537
15538 # An object symbol dumper.
15539 OBJDUMP=$lt_OBJDUMP
15540
15541 # Method to check whether dependent libraries are shared objects.
15542 deplibs_check_method=$lt_deplibs_check_method
15543
15544 # Command to use when deplibs_check_method == "file_magic".
15545 file_magic_cmd=$lt_file_magic_cmd
15546
15547 # The archiver.
15548 AR=$lt_AR
15549 AR_FLAGS=$lt_AR_FLAGS
15550
15551 # A symbol stripping program.
15552 STRIP=$lt_STRIP
15553
15554 # Commands used to install an old-style archive.
15555 RANLIB=$lt_RANLIB
15556 old_postinstall_cmds=$lt_old_postinstall_cmds
15557 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15558
15559 # A C compiler.
15560 LTCC=$lt_CC
15561
15562 # LTCC compiler flags.
15563 LTCFLAGS=$lt_CFLAGS
15564
15565 # Take the output of nm and produce a listing of raw symbols and C names.
15566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15567
15568 # Transform the output of nm in a proper C declaration.
15569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15570
15571 # Transform the output of nm in a C name address pair.
15572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15573
15574 # Transform the output of nm in a C name address pair when lib prefix is needed.
15575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15576
15577 # The name of the directory that contains temporary libtool files.
15578 objdir=$objdir
15579
15580 # Shell to use when invoking shell scripts.
15581 SHELL=$lt_SHELL
15582
15583 # An echo program that does not interpret backslashes.
15584 ECHO=$lt_ECHO
15585
15586 # Used to examine libraries when file_magic_cmd begins with "file".
15587 MAGIC_CMD=$MAGIC_CMD
15588
15589 # Must we lock files when doing compilation?
15590 need_locks=$lt_need_locks
15591
15592 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15593 DSYMUTIL=$lt_DSYMUTIL
15594
15595 # Tool to change global to local symbols on Mac OS X.
15596 NMEDIT=$lt_NMEDIT
15597
15598 # Tool to manipulate fat objects and archives on Mac OS X.
15599 LIPO=$lt_LIPO
15600
15601 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15602 OTOOL=$lt_OTOOL
15603
15604 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15605 OTOOL64=$lt_OTOOL64
15606
15607 # Old archive suffix (normally "a").
15608 libext=$libext
15609
15610 # Shared library suffix (normally ".so").
15611 shrext_cmds=$lt_shrext_cmds
15612
15613 # The commands to extract the exported symbol list from a shared archive.
15614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15615
15616 # Variables whose values should be saved in libtool wrapper scripts and
15617 # restored at link time.
15618 variables_saved_for_relink=$lt_variables_saved_for_relink
15619
15620 # Do we need the "lib" prefix for modules?
15621 need_lib_prefix=$need_lib_prefix
15622
15623 # Do we need a version for libraries?
15624 need_version=$need_version
15625
15626 # Library versioning type.
15627 version_type=$version_type
15628
15629 # Shared library runtime path variable.
15630 runpath_var=$runpath_var
15631
15632 # Shared library path variable.
15633 shlibpath_var=$shlibpath_var
15634
15635 # Is shlibpath searched before the hard-coded library search path?
15636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15637
15638 # Format of library name prefix.
15639 libname_spec=$lt_libname_spec
15640
15641 # List of archive names. First name is the real one, the rest are links.
15642 # The last name is the one that the linker finds with -lNAME
15643 library_names_spec=$lt_library_names_spec
15644
15645 # The coded name of the library, if different from the real name.
15646 soname_spec=$lt_soname_spec
15647
15648 # Command to use after installation of a shared archive.
15649 postinstall_cmds=$lt_postinstall_cmds
15650
15651 # Command to use after uninstallation of a shared archive.
15652 postuninstall_cmds=$lt_postuninstall_cmds
15653
15654 # Commands used to finish a libtool library installation in a directory.
15655 finish_cmds=$lt_finish_cmds
15656
15657 # As "finish_cmds", except a single script fragment to be evaled but
15658 # not shown.
15659 finish_eval=$lt_finish_eval
15660
15661 # Whether we should hardcode library paths into libraries.
15662 hardcode_into_libs=$hardcode_into_libs
15663
15664 # Compile-time system search path for libraries.
15665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15666
15667 # Run-time system search path for libraries.
15668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15669
15670 # Whether dlopen is supported.
15671 dlopen_support=$enable_dlopen
15672
15673 # Whether dlopen of programs is supported.
15674 dlopen_self=$enable_dlopen_self
15675
15676 # Whether dlopen of statically linked programs is supported.
15677 dlopen_self_static=$enable_dlopen_self_static
15678
15679 # Commands to strip libraries.
15680 old_striplib=$lt_old_striplib
15681 striplib=$lt_striplib
15682
15683
15684 # The linker used to build libraries.
15685 LD=$lt_LD
15686
15687 # Commands used to build an old-style archive.
15688 old_archive_cmds=$lt_old_archive_cmds
15689
15690 # A language specific compiler.
15691 CC=$lt_compiler
15692
15693 # Is the compiler the GNU compiler?
15694 with_gcc=$GCC
15695
15696 # Compiler flag to turn off builtin functions.
15697 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15698
15699 # How to pass a linker flag through the compiler.
15700 wl=$lt_lt_prog_compiler_wl
15701
15702 # Additional compiler flags for building library objects.
15703 pic_flag=$lt_lt_prog_compiler_pic
15704
15705 # Compiler flag to prevent dynamic linking.
15706 link_static_flag=$lt_lt_prog_compiler_static
15707
15708 # Does compiler simultaneously support -c and -o options?
15709 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15710
15711 # Whether or not to add -lc for building shared libraries.
15712 build_libtool_need_lc=$archive_cmds_need_lc
15713
15714 # Whether or not to disallow shared libs when runtime libs are static.
15715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15716
15717 # Compiler flag to allow reflexive dlopens.
15718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15719
15720 # Compiler flag to generate shared objects directly from archives.
15721 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15722
15723 # Whether the compiler copes with passing no objects directly.
15724 compiler_needs_object=$lt_compiler_needs_object
15725
15726 # Create an old-style archive from a shared archive.
15727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15728
15729 # Create a temporary old-style archive to link instead of a shared archive.
15730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15731
15732 # Commands used to build a shared archive.
15733 archive_cmds=$lt_archive_cmds
15734 archive_expsym_cmds=$lt_archive_expsym_cmds
15735
15736 # Commands used to build a loadable module if different from building
15737 # a shared archive.
15738 module_cmds=$lt_module_cmds
15739 module_expsym_cmds=$lt_module_expsym_cmds
15740
15741 # Whether we are building with GNU ld or not.
15742 with_gnu_ld=$lt_with_gnu_ld
15743
15744 # Flag that allows shared libraries with undefined symbols to be built.
15745 allow_undefined_flag=$lt_allow_undefined_flag
15746
15747 # Flag that enforces no undefined symbols.
15748 no_undefined_flag=$lt_no_undefined_flag
15749
15750 # Flag to hardcode \$libdir into a binary during linking.
15751 # This must work even if \$libdir does not exist
15752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15753
15754 # If ld is used when linking, flag to hardcode \$libdir into a binary
15755 # during linking. This must work even if \$libdir does not exist.
15756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15757
15758 # Whether we need a single "-rpath" flag with a separated argument.
15759 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15760
15761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15762 # DIR into the resulting binary.
15763 hardcode_direct=$hardcode_direct
15764
15765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15766 # DIR into the resulting binary and the resulting library dependency is
15767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15768 # library is relocated.
15769 hardcode_direct_absolute=$hardcode_direct_absolute
15770
15771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15772 # into the resulting binary.
15773 hardcode_minus_L=$hardcode_minus_L
15774
15775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15776 # into the resulting binary.
15777 hardcode_shlibpath_var=$hardcode_shlibpath_var
15778
15779 # Set to "yes" if building a shared library automatically hardcodes DIR
15780 # into the library and all subsequent libraries and executables linked
15781 # against it.
15782 hardcode_automatic=$hardcode_automatic
15783
15784 # Set to yes if linker adds runtime paths of dependent libraries
15785 # to runtime path list.
15786 inherit_rpath=$inherit_rpath
15787
15788 # Whether libtool must link a program against all its dependency libraries.
15789 link_all_deplibs=$link_all_deplibs
15790
15791 # Fix the shell variable \$srcfile for the compiler.
15792 fix_srcfile_path=$lt_fix_srcfile_path
15793
15794 # Set to "yes" if exported symbols are required.
15795 always_export_symbols=$always_export_symbols
15796
15797 # The commands to list exported symbols.
15798 export_symbols_cmds=$lt_export_symbols_cmds
15799
15800 # Symbols that should not be listed in the preloaded symbols.
15801 exclude_expsyms=$lt_exclude_expsyms
15802
15803 # Symbols that must always be exported.
15804 include_expsyms=$lt_include_expsyms
15805
15806 # Commands necessary for linking programs (against libraries) with templates.
15807 prelink_cmds=$lt_prelink_cmds
15808
15809 # Specify filename containing input files.
15810 file_list_spec=$lt_file_list_spec
15811
15812 # How to hardcode a shared library path into an executable.
15813 hardcode_action=$hardcode_action
15814
15815 # ### END LIBTOOL CONFIG
15816
15817 _LT_EOF
15818
15819 case $host_os in
15820 aix3*)
15821 cat <<\_LT_EOF >> "$cfgfile"
15822 # AIX sometimes has problems with the GCC collect2 program. For some
15823 # reason, if we set the COLLECT_NAMES environment variable, the problems
15824 # vanish in a puff of smoke.
15825 if test "X${COLLECT_NAMES+set}" != Xset; then
15826 COLLECT_NAMES=
15827 export COLLECT_NAMES
15828 fi
15829 _LT_EOF
15830 ;;
15831 esac
15832
15833
15834 ltmain="$ac_aux_dir/ltmain.sh"
15835
15836
15837 # We use sed instead of cat because bash on DJGPP gets confused if
15838 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15839 # text mode, it properly converts lines to CR/LF. This bash problem
15840 # is reportedly fixed, but why not run on old versions too?
15841 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15842 || (rm -f "$cfgfile"; exit 1)
15843
15844 case $xsi_shell in
15845 yes)
15846 cat << \_LT_EOF >> "$cfgfile"
15847
15848 # func_dirname file append nondir_replacement
15849 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15850 # otherwise set result to NONDIR_REPLACEMENT.
15851 func_dirname ()
15852 {
15853 case ${1} in
15854 */*) func_dirname_result="${1%/*}${2}" ;;
15855 * ) func_dirname_result="${3}" ;;
15856 esac
15857 }
15858
15859 # func_basename file
15860 func_basename ()
15861 {
15862 func_basename_result="${1##*/}"
15863 }
15864
15865 # func_dirname_and_basename file append nondir_replacement
15866 # perform func_basename and func_dirname in a single function
15867 # call:
15868 # dirname: Compute the dirname of FILE. If nonempty,
15869 # add APPEND to the result, otherwise set result
15870 # to NONDIR_REPLACEMENT.
15871 # value returned in "$func_dirname_result"
15872 # basename: Compute filename of FILE.
15873 # value retuned in "$func_basename_result"
15874 # Implementation must be kept synchronized with func_dirname
15875 # and func_basename. For efficiency, we do not delegate to
15876 # those functions but instead duplicate the functionality here.
15877 func_dirname_and_basename ()
15878 {
15879 case ${1} in
15880 */*) func_dirname_result="${1%/*}${2}" ;;
15881 * ) func_dirname_result="${3}" ;;
15882 esac
15883 func_basename_result="${1##*/}"
15884 }
15885
15886 # func_stripname prefix suffix name
15887 # strip PREFIX and SUFFIX off of NAME.
15888 # PREFIX and SUFFIX must not contain globbing or regex special
15889 # characters, hashes, percent signs, but SUFFIX may contain a leading
15890 # dot (in which case that matches only a dot).
15891 func_stripname ()
15892 {
15893 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15894 # positional parameters, so assign one to ordinary parameter first.
15895 func_stripname_result=${3}
15896 func_stripname_result=${func_stripname_result#"${1}"}
15897 func_stripname_result=${func_stripname_result%"${2}"}
15898 }
15899
15900 # func_opt_split
15901 func_opt_split ()
15902 {
15903 func_opt_split_opt=${1%%=*}
15904 func_opt_split_arg=${1#*=}
15905 }
15906
15907 # func_lo2o object
15908 func_lo2o ()
15909 {
15910 case ${1} in
15911 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15912 *) func_lo2o_result=${1} ;;
15913 esac
15914 }
15915
15916 # func_xform libobj-or-source
15917 func_xform ()
15918 {
15919 func_xform_result=${1%.*}.lo
15920 }
15921
15922 # func_arith arithmetic-term...
15923 func_arith ()
15924 {
15925 func_arith_result=$(( $* ))
15926 }
15927
15928 # func_len string
15929 # STRING may not start with a hyphen.
15930 func_len ()
15931 {
15932 func_len_result=${#1}
15933 }
15934
15935 _LT_EOF
15936 ;;
15937 *) # Bourne compatible functions.
15938 cat << \_LT_EOF >> "$cfgfile"
15939
15940 # func_dirname file append nondir_replacement
15941 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15942 # otherwise set result to NONDIR_REPLACEMENT.
15943 func_dirname ()
15944 {
15945 # Extract subdirectory from the argument.
15946 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15947 if test "X$func_dirname_result" = "X${1}"; then
15948 func_dirname_result="${3}"
15949 else
15950 func_dirname_result="$func_dirname_result${2}"
15951 fi
15952 }
15953
15954 # func_basename file
15955 func_basename ()
15956 {
15957 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15958 }
15959
15960
15961 # func_stripname prefix suffix name
15962 # strip PREFIX and SUFFIX off of NAME.
15963 # PREFIX and SUFFIX must not contain globbing or regex special
15964 # characters, hashes, percent signs, but SUFFIX may contain a leading
15965 # dot (in which case that matches only a dot).
15966 # func_strip_suffix prefix name
15967 func_stripname ()
15968 {
15969 case ${2} in
15970 .*) func_stripname_result=`$ECHO "X${3}" \
15971 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15972 *) func_stripname_result=`$ECHO "X${3}" \
15973 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15974 esac
15975 }
15976
15977 # sed scripts:
15978 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15979 my_sed_long_arg='1s/^-[^=]*=//'
15980
15981 # func_opt_split
15982 func_opt_split ()
15983 {
15984 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15985 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15986 }
15987
15988 # func_lo2o object
15989 func_lo2o ()
15990 {
15991 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15992 }
15993
15994 # func_xform libobj-or-source
15995 func_xform ()
15996 {
15997 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15998 }
15999
16000 # func_arith arithmetic-term...
16001 func_arith ()
16002 {
16003 func_arith_result=`expr "$@"`
16004 }
16005
16006 # func_len string
16007 # STRING may not start with a hyphen.
16008 func_len ()
16009 {
16010 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16011 }
16012
16013 _LT_EOF
16014 esac
16015
16016 case $lt_shell_append in
16017 yes)
16018 cat << \_LT_EOF >> "$cfgfile"
16019
16020 # func_append var value
16021 # Append VALUE to the end of shell variable VAR.
16022 func_append ()
16023 {
16024 eval "$1+=\$2"
16025 }
16026 _LT_EOF
16027 ;;
16028 *)
16029 cat << \_LT_EOF >> "$cfgfile"
16030
16031 # func_append var value
16032 # Append VALUE to the end of shell variable VAR.
16033 func_append ()
16034 {
16035 eval "$1=\$$1\$2"
16036 }
16037
16038 _LT_EOF
16039 ;;
16040 esac
16041
16042
16043 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16044 || (rm -f "$cfgfile"; exit 1)
16045
16046 mv -f "$cfgfile" "$ofile" ||
16047 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16048 chmod +x "$ofile"
16049
16050 ;;
16051
16052 esac
16053 done # for ac_tag
16054
16055
16056 as_fn_exit 0
16057 _ACEOF
16058 ac_clean_files=$ac_clean_files_save
16059
16060 test $ac_write_fail = 0 ||
16061 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16062
16063
16064 # configure is writing to config.log, and then calls config.status.
16065 # config.status does its own redirection, appending to config.log.
16066 # Unfortunately, on DOS this fails, as config.log is still kept open
16067 # by configure, so config.status won't be able to write to it; its
16068 # output is simply discarded. So we exec the FD to /dev/null,
16069 # effectively closing config.log, so it can be properly (re)opened and
16070 # appended to by config.status. When coming back to configure, we
16071 # need to make the FD available again.
16072 if test "$no_create" != yes; then
16073 ac_cs_success=:
16074 ac_config_status_args=
16075 test "$silent" = yes &&
16076 ac_config_status_args="$ac_config_status_args --quiet"
16077 exec 5>/dev/null
16078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16079 exec 5>>config.log
16080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16081 # would make configure fail if this is the last instruction.
16082 $ac_cs_success || as_fn_exit $?
16083 fi
16084 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16086 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16087 fi
16088

Properties

Name Value
svn:executable *