ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1033
Committed: Thu Dec 3 19:04:55 2009 UTC (15 years, 8 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 468625 byte(s)
Log Message:
- Fixed build with bsd make as reported by Yoshito Takeuchi

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1017 # From configure.ac Id: configure.ac 1015 2009-10-25 00:08:06Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 1033 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.2.4.
5 michael 912 #
6 michael 1033 #
7 michael 912 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 michael 1033 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9     # Inc.
10 michael 967 #
11 michael 1033 #
12 michael 912 # This configure script is free software; the Free Software Foundation
13     # gives unlimited permission to copy, distribute and modify it.
14 michael 967 ## -------------------- ##
15     ## M4sh Initialization. ##
16     ## -------------------- ##
17 michael 912
18     # Be more Bourne compatible
19     DUALCASE=1; export DUALCASE # for MKS sh
20 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 michael 912 emulate sh
22     NULLCMD=:
23 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 michael 912 # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27     else
28 michael 967 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33 michael 912 esac
34     fi
35    
36    
37 db 941 as_nl='
38     '
39     export as_nl
40     # Printing a long string crashes Solaris 7 /usr/bin/printf.
41     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
45     # but without wasting forks for bash or zsh.
46     if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='print -r --'
49     as_echo_n='print -rn --'
50     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 db 941 as_echo='printf %s\n'
52     as_echo_n='printf %s'
53     else
54     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57 michael 912 else
58 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60     arg=$1;
61 michael 967 case $arg in #(
62 db 941 *"$as_nl"*)
63     expr "X$arg" : "X\\(.*\\)$as_nl";
64     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65     esac;
66     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70 michael 912 fi
71 db 941 export as_echo_body
72     as_echo='sh -c $as_echo_body as_echo'
73 michael 912 fi
74    
75 db 941 # The user is always right.
76     if test "${PATH_SEPARATOR+set}" != set; then
77     PATH_SEPARATOR=:
78     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80     PATH_SEPARATOR=';'
81     }
82     fi
83    
84 michael 912
85     # IFS
86     # We need space, tab and new line, in precisely that order. Quoting is
87     # there to prevent editors from complaining about space-tab.
88     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89     # splitting by setting IFS to empty value.)
90     IFS=" "" $as_nl"
91    
92     # Find who we are. Look in the path if we contain no directory separator.
93 michael 967 case $0 in #((
94 michael 912 *[\\/]* ) as_myself=$0 ;;
95     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96     for as_dir in $PATH
97     do
98     IFS=$as_save_IFS
99     test -z "$as_dir" && as_dir=.
100 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101     done
102 michael 912 IFS=$as_save_IFS
103    
104     ;;
105     esac
106     # We did not find ourselves, most probably we were run as `sh COMMAND'
107     # in which case we are not to be found in the path.
108     if test "x$as_myself" = x; then
109     as_myself=$0
110     fi
111     if test ! -f "$as_myself"; then
112 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 michael 967 exit 1
114 michael 912 fi
115    
116 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
117     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118     # suppresses any "Segmentation fault" message there. '((' could
119     # trigger a bug in pdksh 5.2.14.
120     for as_var in BASH_ENV ENV MAIL MAILPATH
121     do eval test x\${$as_var+set} = xset \
122     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 michael 912 done
124     PS1='$ '
125     PS2='> '
126     PS4='+ '
127    
128     # NLS nuisances.
129 db 941 LC_ALL=C
130     export LC_ALL
131     LANGUAGE=C
132     export LANGUAGE
133 michael 912
134     # CDPATH.
135 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 michael 912
137     if test "x$CONFIG_SHELL" = x; then
138 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139     emulate sh
140     NULLCMD=:
141     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142     # is contrary to our usage. Disable this feature.
143     alias -g '\${1+\"\$@\"}'='\"\$@\"'
144     setopt NO_GLOB_SUBST
145 michael 912 else
146 michael 967 case \`(set -o) 2>/dev/null\` in #(
147     *posix*) :
148     set -o posix ;; #(
149     *) :
150     ;;
151     esac
152 michael 912 fi
153 michael 967 "
154     as_required="as_fn_return () { (exit \$1); }
155     as_fn_success () { as_fn_return 0; }
156     as_fn_failure () { as_fn_return 1; }
157     as_fn_ret_success () { return 0; }
158     as_fn_ret_failure () { return 1; }
159 michael 912
160     exitcode=0
161 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 michael 912
167     else
168 michael 967 exitcode=1; echo positional parameters were not saved.
169 michael 912 fi
170 michael 967 test x\$exitcode = x0 || exit 1"
171     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175     test \$(( 1 + 1 )) = 2 || exit 1"
176     if (eval "$as_required") 2>/dev/null; then :
177     as_have_required=yes
178 michael 912 else
179 michael 967 as_have_required=no
180 michael 912 fi
181 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 michael 912
183     else
184 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185     as_found=false
186 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187     do
188     IFS=$as_save_IFS
189     test -z "$as_dir" && as_dir=.
190 michael 967 as_found=:
191     case $as_dir in #(
192 michael 912 /*)
193     for as_base in sh bash ksh sh5; do
194 michael 967 # Try only shells that exist, to save several forks.
195     as_shell=$as_dir/$as_base
196     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198     CONFIG_SHELL=$as_shell as_have_required=yes
199     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200     break 2
201     fi
202     fi
203 michael 912 done;;
204     esac
205 michael 967 as_found=false
206 michael 912 done
207 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209     CONFIG_SHELL=$SHELL as_have_required=yes
210     fi; }
211 michael 912 IFS=$as_save_IFS
212    
213    
214 michael 967 if test "x$CONFIG_SHELL" != x; then :
215     # We cannot yet assume a decent shell, so we have to provide a
216     # neutralization value for shells without unset; and this also
217     # works around shells that cannot unset nonexistent variables.
218     BASH_ENV=/dev/null
219     ENV=/dev/null
220     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221     export CONFIG_SHELL
222     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 michael 912 fi
224    
225 michael 967 if test x$as_have_required = xno; then :
226     $as_echo "$0: This script requires a shell more modern than all"
227     $as_echo "$0: the shells that I found on your system."
228     if test x${ZSH_VERSION+set} = xset ; then
229     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231     else
232     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
233     $0: including any error possibly output before this
234     $0: message. Then install a modern shell, or manually run
235     $0: the script under such a shell if you do have one."
236     fi
237     exit 1
238 michael 912 fi
239     fi
240     fi
241 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
242     export SHELL
243     # Unset more variables known to interfere with behavior of common tools.
244     CLICOLOR_FORCE= GREP_OPTIONS=
245     unset CLICOLOR_FORCE GREP_OPTIONS
246 michael 912
247 michael 967 ## --------------------- ##
248     ## M4sh Shell Functions. ##
249     ## --------------------- ##
250     # as_fn_unset VAR
251     # ---------------
252     # Portably unset VAR.
253     as_fn_unset ()
254     {
255     { eval $1=; unset $1;}
256     }
257     as_unset=as_fn_unset
258 michael 912
259 michael 967 # as_fn_set_status STATUS
260     # -----------------------
261     # Set $? to STATUS, without forking.
262     as_fn_set_status ()
263     {
264     return $1
265     } # as_fn_set_status
266 michael 912
267 michael 967 # as_fn_exit STATUS
268     # -----------------
269     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270     as_fn_exit ()
271     {
272     set +e
273     as_fn_set_status $1
274     exit $1
275     } # as_fn_exit
276 michael 912
277 michael 967 # as_fn_mkdir_p
278     # -------------
279     # Create "$as_dir" as a directory, including parents if necessary.
280     as_fn_mkdir_p ()
281     {
282 michael 912
283 michael 967 case $as_dir in #(
284     -*) as_dir=./$as_dir;;
285     esac
286     test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289     case $as_dir in #(
290     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291     *) as_qdir=$as_dir;;
292     esac
293     as_dirs="'$as_qdir' $as_dirs"
294     as_dir=`$as_dirname -- "$as_dir" ||
295     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296     X"$as_dir" : 'X\(//\)[^/]' \| \
297     X"$as_dir" : 'X\(//\)$' \| \
298     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299     $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301     s//\1/
302     q
303     }
304     /^X\(\/\/\)[^/].*/{
305     s//\1/
306     q
307     }
308     /^X\(\/\/\)$/{
309     s//\1/
310     q
311     }
312     /^X\(\/\).*/{
313     s//\1/
314     q
315     }
316     s/.*/./; q'`
317     test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 michael 912
322    
323 michael 967 } # as_fn_mkdir_p
324     # as_fn_append VAR VALUE
325     # ----------------------
326     # Append the text in VALUE to the end of the definition contained in VAR. Take
327     # advantage of any shell optimizations that allow amortized linear growth over
328     # repeated appends, instead of the typical quadratic growth present in naive
329     # implementations.
330     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331     eval 'as_fn_append ()
332     {
333     eval $1+=\$2
334     }'
335     else
336     as_fn_append ()
337     {
338     eval $1=\$$1\$2
339     }
340     fi # as_fn_append
341 michael 912
342 michael 967 # as_fn_arith ARG...
343     # ------------------
344     # Perform arithmetic evaluation on the ARGs, and store the result in the
345     # global $as_val. Take advantage of shells that can avoid forks. The arguments
346     # must be portable across $(()) and expr.
347     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348     eval 'as_fn_arith ()
349     {
350     as_val=$(( $* ))
351     }'
352     else
353     as_fn_arith ()
354     {
355     as_val=`expr "$@" || test $? -eq 1`
356     }
357     fi # as_fn_arith
358 michael 912
359    
360 michael 967 # as_fn_error ERROR [LINENO LOG_FD]
361     # ---------------------------------
362     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364     # script with status $?, using 1 if that was 0.
365     as_fn_error ()
366     {
367     as_status=$?; test $as_status -eq 0 && as_status=1
368     if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371     fi
372     $as_echo "$as_me: error: $1" >&2
373     as_fn_exit $as_status
374     } # as_fn_error
375 michael 912
376 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
377     test "X`expr 00001 : '.*\(...\)'`" = X001; then
378     as_expr=expr
379 michael 912 else
380 michael 967 as_expr=false
381 michael 912 fi
382    
383 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384     as_basename=basename
385 michael 912 else
386 michael 967 as_basename=false
387 michael 912 fi
388    
389 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390     as_dirname=dirname
391 michael 912 else
392 michael 967 as_dirname=false
393 michael 912 fi
394    
395 michael 967 as_me=`$as_basename -- "$0" ||
396     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397     X"$0" : 'X\(//\)$' \| \
398     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399     $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401     s//\1/
402     q
403     }
404     /^X\/\(\/\/\)$/{
405     s//\1/
406     q
407     }
408     /^X\/\(\/\).*/{
409     s//\1/
410     q
411     }
412     s/.*/./; q'`
413 michael 912
414 michael 967 # Avoid depending upon Character Ranges.
415     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418     as_cr_digits='0123456789'
419     as_cr_alnum=$as_cr_Letters$as_cr_digits
420 michael 912
421    
422 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423     as_lineno_2=$LINENO as_lineno_2a=$LINENO
424     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 michael 912 sed -n '
428     p
429     /[$]LINENO/=
430     ' <$as_myself |
431     sed '
432     s/[$]LINENO.*/&-/
433     t lineno
434     b
435     :lineno
436     N
437     :loop
438     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439     t loop
440     s/-\n.*//
441     ' >$as_me.lineno &&
442     chmod +x "$as_me.lineno" ||
443 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 michael 912
445     # Don't try to exec as it changes $[0], causing all sort of problems
446     # (the dirname of $[0] is not the place where we might find the
447     # original and so on. Autoconf is especially sensitive to this).
448     . "./$as_me.lineno"
449     # Exit status is that of the last command.
450     exit
451     }
452    
453     ECHO_C= ECHO_N= ECHO_T=
454 michael 967 case `echo -n x` in #(((((
455 michael 912 -n*)
456 michael 967 case `echo 'xy\c'` in
457 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 michael 967 xy) ECHO_C='\c';;
459     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460     ECHO_T=' ';;
461 michael 912 esac;;
462     *)
463     ECHO_N='-n';;
464     esac
465    
466     rm -f conf$$ conf$$.exe conf$$.file
467     if test -d conf$$.dir; then
468     rm -f conf$$.dir/conf$$.file
469     else
470     rm -f conf$$.dir
471 db 941 mkdir conf$$.dir 2>/dev/null
472 michael 912 fi
473 db 941 if (echo >conf$$.file) 2>/dev/null; then
474     if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481     as_ln_s='cp -p'
482     elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484     else
485 michael 912 as_ln_s='cp -p'
486 db 941 fi
487 michael 912 else
488     as_ln_s='cp -p'
489     fi
490     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491     rmdir conf$$.dir 2>/dev/null
492    
493     if mkdir -p . 2>/dev/null; then
494 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
495 michael 912 else
496     test -d ./-p && rmdir ./-p
497     as_mkdir_p=false
498     fi
499    
500     if test -x / >/dev/null 2>&1; then
501     as_test_x='test -x'
502     else
503     if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505     else
506     as_ls_L_option=
507     fi
508     as_test_x='
509     eval sh -c '\''
510     if test -d "$1"; then
511 db 941 test -d "$1/.";
512 michael 912 else
513 michael 967 case $1 in #(
514 db 941 -*)set "./$1";;
515 michael 912 esac;
516 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 michael 912 ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519     '
520     fi
521     as_executable_p=$as_test_x
522    
523     # Sed expression to map a string onto a valid CPP name.
524     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525    
526     # Sed expression to map a string onto a valid variable name.
527     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528    
529    
530    
531     # Check that we are running under the correct shell.
532     SHELL=${CONFIG_SHELL-/bin/sh}
533    
534 michael 945 case X$lt_ECHO in
535 michael 912 X*--fallback-echo)
536     # Remove one level of quotation (which was required for Make).
537 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 michael 912 ;;
539     esac
540    
541 michael 945 ECHO=${lt_ECHO-echo}
542 michael 912 if test "X$1" = X--no-reexec; then
543     # Discard the --no-reexec flag, and continue.
544     shift
545     elif test "X$1" = X--fallback-echo; then
546     # Avoid inline document here, it may be left over
547     :
548 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549     # Yippee, $ECHO works!
550 michael 912 :
551     else
552     # Restart under the correct shell.
553     exec $SHELL "$0" --no-reexec ${1+"$@"}
554     fi
555    
556     if test "X$1" = X--fallback-echo; then
557     # used as fallback echo
558     shift
559 michael 945 cat <<_LT_EOF
560 michael 912 $*
561 michael 945 _LT_EOF
562 michael 912 exit 0
563     fi
564    
565     # The HP-UX ksh and POSIX shell print the target directory to stdout
566     # if CDPATH is set.
567     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568    
569 michael 945 if test -z "$lt_ECHO"; then
570     if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576     then
577     break
578     fi
579     done
580     fi
581 michael 912
582 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584     test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586     else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes. This makes it impossible to quote backslashes using
589     # echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592 michael 912
593 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595     IFS="$lt_save_ifs"
596     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599     test "X$echo_testing_string" = "X$echo_test_string"; then
600     ECHO="$dir/echo"
601     break
602     fi
603     done
604 michael 912 IFS="$lt_save_ifs"
605    
606 michael 945 if test "X$ECHO" = Xecho; then
607     # We didn't find a better echo, so look for alternatives.
608     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610     test "X$echo_testing_string" = "X$echo_test_string"; then
611     # This shell has a builtin print -r that does the trick.
612     ECHO='print -r'
613     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614     test "X$CONFIG_SHELL" != X/bin/ksh; then
615     # If we have ksh, try running configure again with it.
616     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617     export ORIGINAL_CONFIG_SHELL
618     CONFIG_SHELL=/bin/ksh
619     export CONFIG_SHELL
620     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621     else
622     # Try using printf.
623     ECHO='printf %s\n'
624     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
627 michael 945 # Cool, printf works
628     :
629     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630     test "X$echo_testing_string" = 'X\t' &&
631     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632     test "X$echo_testing_string" = "X$echo_test_string"; then
633     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634     export CONFIG_SHELL
635     SHELL="$CONFIG_SHELL"
636     export SHELL
637     ECHO="$CONFIG_SHELL $0 --fallback-echo"
638     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639     test "X$echo_testing_string" = 'X\t' &&
640     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641     test "X$echo_testing_string" = "X$echo_test_string"; then
642     ECHO="$CONFIG_SHELL $0 --fallback-echo"
643     else
644     # maybe with a smaller string...
645     prev=:
646 michael 912
647 michael 945 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649     then
650     break
651     fi
652     prev="$cmd"
653     done
654    
655     if test "$prev" != 'sed 50q "$0"'; then
656     echo_test_string=`eval $prev`
657     export echo_test_string
658     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659     else
660     # Oops. We lost completely, so just stick with echo.
661     ECHO=echo
662 michael 912 fi
663 michael 945 fi
664 michael 912 fi
665     fi
666     fi
667     fi
668    
669     # Copy echo and quote the copy suitably for passing to libtool from
670     # the Makefile, instead of quoting the original, which is used later.
671 michael 945 lt_ECHO=$ECHO
672     if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673     lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 michael 912 fi
675    
676    
677    
678    
679 michael 945 lt_ltdl_dir='libltdl'
680 michael 912
681 michael 945 lt_dlopen_dir="$lt_ltdl_dir"
682 michael 912
683 michael 1033 test -n "$DJDIR" || exec 7<&0 </dev/null
684     exec 6>&1
685 michael 912
686     # Name of the host.
687     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
688     # so uname gets run too.
689     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690    
691     #
692     # Initializations.
693     #
694     ac_default_prefix=/usr/local
695     ac_clean_files=
696     ac_config_libobj_dir=.
697     LIBOBJS=
698     cross_compiling=no
699     subdirs=
700     MFLAGS=
701     MAKEFLAGS=
702    
703     # Identity of this package.
704     PACKAGE_NAME='ircd-hybrid'
705     PACKAGE_TARNAME='ircd-hybrid'
706     PACKAGE_VERSION='7.2.4'
707     PACKAGE_STRING='ircd-hybrid 7.2.4'
708     PACKAGE_BUGREPORT=''
709 michael 967 PACKAGE_URL=''
710 michael 912
711     ac_unique_file="src/ircd.c"
712     # Factoring default headers for most tests.
713     ac_includes_default="\
714     #include <stdio.h>
715     #ifdef HAVE_SYS_TYPES_H
716     # include <sys/types.h>
717     #endif
718     #ifdef HAVE_SYS_STAT_H
719     # include <sys/stat.h>
720     #endif
721     #ifdef STDC_HEADERS
722     # include <stdlib.h>
723     # include <stddef.h>
724     #else
725     # ifdef HAVE_STDLIB_H
726     # include <stdlib.h>
727     # endif
728     #endif
729     #ifdef HAVE_STRING_H
730     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731     # include <memory.h>
732     # endif
733     # include <string.h>
734     #endif
735     #ifdef HAVE_STRINGS_H
736     # include <strings.h>
737     #endif
738     #ifdef HAVE_INTTYPES_H
739     # include <inttypes.h>
740     #endif
741     #ifdef HAVE_STDINT_H
742     # include <stdint.h>
743     #endif
744     #ifdef HAVE_UNISTD_H
745     # include <unistd.h>
746     #endif"
747    
748 michael 945 enable_option_checking=no
749 michael 912 ac_func_list=
750     ac_header_list=
751 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
752     ltdl_LIBOBJS
753     am__EXEEXT_FALSE
754     am__EXEEXT_TRUE
755     LTLIBOBJS
756 michael 942 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 michael 1009 ENABLE_PCRE_FALSE
767     ENABLE_PCRE_TRUE
768 michael 945 LTDLOPEN
769     LT_CONFIG_H
770     subdirs
771     CONVENIENCE_LTDL_FALSE
772     CONVENIENCE_LTDL_TRUE
773     INSTALL_LTDL_FALSE
774     INSTALL_LTDL_TRUE
775     ARGZ_H
776     sys_symbol_underscore
777     LIBADD_DL
778     LT_DLPREOPEN
779     LIBADD_DLD_LINK
780     LIBADD_SHL_LOAD
781     LIBADD_DLOPEN
782     LT_DLLOADERS
783     INCLTDL
784     LTDLINCL
785     LTDLDEPS
786     LIBLTDL
787 michael 942 CPP
788 michael 945 OTOOL64
789     OTOOL
790     LIPO
791 michael 942 NMEDIT
792     DSYMUTIL
793 michael 945 lt_ECHO
794 michael 942 RANLIB
795     AR
796 michael 945 OBJDUMP
797 michael 942 LN_S
798 michael 945 NM
799     ac_ct_DUMPBIN
800     DUMPBIN
801     LD
802     FGREP
803 michael 942 EGREP
804     GREP
805     SED
806     host_os
807     host_vendor
808     host_cpu
809     host
810     build_os
811     build_vendor
812     build_cpu
813     build
814 michael 945 LIBTOOL
815 michael 942 LEXLIB
816     LEX_OUTPUT_ROOT
817     LEX
818     YFLAGS
819     YACC
820     am__fastdepCC_FALSE
821     am__fastdepCC_TRUE
822     CCDEPMODE
823     AMDEPBACKSLASH
824     AMDEP_FALSE
825     AMDEP_TRUE
826     am__quote
827     am__include
828     DEPDIR
829     OBJEXT
830     EXEEXT
831     ac_ct_CC
832     CPPFLAGS
833     LDFLAGS
834     CFLAGS
835     CC
836     MAINT
837     MAINTAINER_MODE_FALSE
838     MAINTAINER_MODE_TRUE
839     am__untar
840     am__tar
841     AMTAR
842     am__leading_dot
843     SET_MAKE
844     AWK
845     mkdir_p
846     MKDIR_P
847     INSTALL_STRIP_PROGRAM
848     STRIP
849     install_sh
850     MAKEINFO
851     AUTOHEADER
852     AUTOMAKE
853     AUTOCONF
854     ACLOCAL
855     VERSION
856     PACKAGE
857     CYGPATH_W
858     am__isrc
859     INSTALL_DATA
860     INSTALL_SCRIPT
861     INSTALL_PROGRAM
862     target_alias
863     host_alias
864     build_alias
865     LIBS
866     ECHO_T
867     ECHO_N
868     ECHO_C
869     DEFS
870     mandir
871     localedir
872     libdir
873     psdir
874     pdfdir
875     dvidir
876     htmldir
877     infodir
878     docdir
879     oldincludedir
880     includedir
881     localstatedir
882     sharedstatedir
883     sysconfdir
884     datadir
885     datarootdir
886     libexecdir
887     sbindir
888     bindir
889     program_transform_name
890     prefix
891     exec_prefix
892 michael 967 PACKAGE_URL
893 michael 942 PACKAGE_BUGREPORT
894     PACKAGE_STRING
895     PACKAGE_VERSION
896     PACKAGE_TARNAME
897     PACKAGE_NAME
898 michael 912 PATH_SEPARATOR
899 michael 942 SHELL'
900 michael 912 ac_subst_files=''
901 db 941 ac_user_opts='
902     enable_option_checking
903     enable_maintainer_mode
904 michael 945 enable_dependency_tracking
905 michael 977 enable_static
906 michael 945 enable_shared
907     with_pic
908 db 941 enable_fast_install
909     with_gnu_ld
910     enable_libtool_lock
911 michael 945 with_included_ltdl
912     with_ltdl_include
913     with_ltdl_lib
914     enable_ltdl_install
915 db 941 with_zlib_path
916     enable_zlib
917 michael 1009 with_libpcre_path
918     enable_libpcre
919 db 941 enable_openssl
920     enable_assert
921     enable_small_net
922     enable_kqueue
923     enable_epoll
924     enable_devpoll
925     enable_rtsigio
926     enable_poll
927     enable_select
928     with_nicklen
929     with_topiclen
930     with_syslog_facility
931     enable_efnet
932     enable_halfops
933     enable_debugging
934     enable_warnings
935     enable_syslog
936     '
937 michael 912 ac_precious_vars='build_alias
938     host_alias
939     target_alias
940     CC
941     CFLAGS
942     LDFLAGS
943     LIBS
944     CPPFLAGS
945     YACC
946     YFLAGS
947 michael 945 CPP'
948 michael 912 ac_subdirs_all='libltdl'
949    
950     # Initialize some variables set by options.
951     ac_init_help=
952     ac_init_version=false
953 db 941 ac_unrecognized_opts=
954     ac_unrecognized_sep=
955 michael 912 # The variables have the same names as the options, with
956     # dashes changed to underlines.
957     cache_file=/dev/null
958     exec_prefix=NONE
959     no_create=
960     no_recursion=
961     prefix=NONE
962     program_prefix=NONE
963     program_suffix=NONE
964     program_transform_name=s,x,x,
965     silent=
966     site=
967     srcdir=
968     verbose=
969     x_includes=NONE
970     x_libraries=NONE
971    
972     # Installation directory options.
973     # These are left unexpanded so users can "make install exec_prefix=/foo"
974     # and all the variables that are supposed to be based on exec_prefix
975     # by default will actually change.
976     # Use braces instead of parens because sh, perl, etc. also accept them.
977     # (The list follows the same order as the GNU Coding Standards.)
978     bindir='${exec_prefix}/bin'
979     sbindir='${exec_prefix}/sbin'
980     libexecdir='${exec_prefix}/libexec'
981     datarootdir='${prefix}/share'
982     datadir='${datarootdir}'
983     sysconfdir='${prefix}/etc'
984     sharedstatedir='${prefix}/com'
985     localstatedir='${prefix}/var'
986     includedir='${prefix}/include'
987     oldincludedir='/usr/include'
988     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989     infodir='${datarootdir}/info'
990     htmldir='${docdir}'
991     dvidir='${docdir}'
992     pdfdir='${docdir}'
993     psdir='${docdir}'
994     libdir='${exec_prefix}/lib'
995     localedir='${datarootdir}/locale'
996     mandir='${datarootdir}/man'
997    
998     ac_prev=
999     ac_dashdash=
1000     for ac_option
1001     do
1002     # If the previous option needs an argument, assign it.
1003     if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007     fi
1008    
1009     case $ac_option in
1010     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011     *) ac_optarg=yes ;;
1012     esac
1013    
1014     # Accept the important Cygnus configure options, so we can diagnose typos.
1015    
1016     case $ac_dashdash$ac_option in
1017     --)
1018     ac_dashdash=yes ;;
1019    
1020     -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024    
1025     -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029    
1030     -cache-file | --cache-file | --cache-fil | --cache-fi \
1031     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036    
1037     --config-cache | -C)
1038     cache_file=config.cache ;;
1039    
1040     -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042     -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044    
1045     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046     | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051    
1052     -disable-* | --disable-*)
1053 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 michael 912 # Reject names that are not valid shell variable names.
1055 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1057 db 941 ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060     *"
1061     "enable_$ac_useropt"
1062     "*) ;;
1063     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064     ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=no ;;
1067 michael 912
1068     -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072    
1073     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077    
1078     -enable-* | --enable-*)
1079 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 michael 912 # Reject names that are not valid shell variable names.
1081 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1083 db 941 ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086     *"
1087     "enable_$ac_useropt"
1088     "*) ;;
1089     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090     ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=\$ac_optarg ;;
1093 michael 912
1094     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096     | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100     | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102    
1103     -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106    
1107     -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113    
1114     -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116     -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118    
1119     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122     | --ht=*)
1123     htmldir=$ac_optarg ;;
1124    
1125     -includedir | --includedir | --includedi | --included | --include \
1126     | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129     | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131    
1132     -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136    
1137     -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141    
1142     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143     | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146     | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148    
1149     -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153    
1154     -localstatedir | --localstatedir | --localstatedi | --localstated \
1155     | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160    
1161     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165    
1166     -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169    
1170     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171     | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173    
1174     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177    
1178     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180     | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186    
1187     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191    
1192     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193     | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198    
1199     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200     | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205    
1206     -program-transform-name | --program-transform-name \
1207     | --program-transform-nam | --program-transform-na \
1208     | --program-transform-n | --program-transform- \
1209     | --program-transform | --program-transfor \
1210     | --program-transfo | --program-transf \
1211     | --program-trans | --program-tran \
1212     | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214     -program-transform-name=* | --program-transform-name=* \
1215     | --program-transform-nam=* | --program-transform-na=* \
1216     | --program-transform-n=* | --program-transform-=* \
1217     | --program-transform=* | --program-transfor=* \
1218     | --program-transfo=* | --program-transf=* \
1219     | --program-trans=* | --program-tran=* \
1220     | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222    
1223     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227    
1228     -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232    
1233     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234     | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236    
1237     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238     ac_prev=sbindir ;;
1239     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240     | --sbi=* | --sb=*)
1241     sbindir=$ac_optarg ;;
1242    
1243     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245     | --sharedst | --shareds | --shared | --share | --shar \
1246     | --sha | --sh)
1247     ac_prev=sharedstatedir ;;
1248     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251     | --sha=* | --sh=*)
1252     sharedstatedir=$ac_optarg ;;
1253    
1254     -site | --site | --sit)
1255     ac_prev=site ;;
1256     -site=* | --site=* | --sit=*)
1257     site=$ac_optarg ;;
1258    
1259     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260     ac_prev=srcdir ;;
1261     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262     srcdir=$ac_optarg ;;
1263    
1264     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265     | --syscon | --sysco | --sysc | --sys | --sy)
1266     ac_prev=sysconfdir ;;
1267     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269     sysconfdir=$ac_optarg ;;
1270    
1271     -target | --target | --targe | --targ | --tar | --ta | --t)
1272     ac_prev=target_alias ;;
1273     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274     target_alias=$ac_optarg ;;
1275    
1276     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277     verbose=yes ;;
1278    
1279     -version | --version | --versio | --versi | --vers | -V)
1280     ac_init_version=: ;;
1281    
1282     -with-* | --with-*)
1283 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 michael 912 # Reject names that are not valid shell variable names.
1285 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 michael 967 as_fn_error "invalid package name: $ac_useropt"
1287 db 941 ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290     *"
1291     "with_$ac_useropt"
1292     "*) ;;
1293     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294     ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=\$ac_optarg ;;
1297 michael 912
1298     -without-* | --without-*)
1299 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 michael 912 # Reject names that are not valid shell variable names.
1301 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 michael 967 as_fn_error "invalid package name: $ac_useropt"
1303 db 941 ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306     *"
1307     "with_$ac_useropt"
1308     "*) ;;
1309     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310     ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=no ;;
1313 michael 912
1314     --x)
1315     # Obsolete; use --with-x.
1316     with_x=yes ;;
1317    
1318     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319     | --x-incl | --x-inc | --x-in | --x-i)
1320     ac_prev=x_includes ;;
1321     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323     x_includes=$ac_optarg ;;
1324    
1325     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327     ac_prev=x_libraries ;;
1328     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330     x_libraries=$ac_optarg ;;
1331    
1332 michael 967 -*) as_fn_error "unrecognized option: \`$ac_option'
1333     Try \`$0 --help' for more information."
1334 michael 912 ;;
1335    
1336     *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339 michael 967 case $ac_envvar in #(
1340     '' | [0-9]* | *[!_$as_cr_alnum]* )
1341     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342     esac
1343 michael 912 eval $ac_envvar=\$ac_optarg
1344     export $ac_envvar ;;
1345    
1346     *)
1347     # FIXME: should be removed in autoconf 3.0.
1348 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 michael 912 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352     ;;
1353    
1354     esac
1355     done
1356    
1357     if test -n "$ac_prev"; then
1358     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 michael 967 as_fn_error "missing argument to $ac_option"
1360 michael 912 fi
1361    
1362 db 941 if test -n "$ac_unrecognized_opts"; then
1363     case $enable_option_checking in
1364     no) ;;
1365 michael 967 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 db 941 esac
1368     fi
1369    
1370     # Check all directory arguments for consistency.
1371 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372     datadir sysconfdir sharedstatedir localstatedir includedir \
1373     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374     libdir localedir mandir
1375     do
1376     eval ac_val=\$$ac_var
1377 db 941 # Remove trailing slashes.
1378 michael 912 case $ac_val in
1379 db 941 */ )
1380     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381     eval $ac_var=\$ac_val;;
1382     esac
1383     # Be sure to have absolute directory names.
1384     case $ac_val in
1385 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1386     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387     esac
1388 michael 967 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 michael 912 done
1390    
1391     # There might be people who depend on the old broken behavior: `$host'
1392     # used to hold the argument of --host etc.
1393     # FIXME: To remove some day.
1394     build=$build_alias
1395     host=$host_alias
1396     target=$target_alias
1397    
1398     # FIXME: To remove some day.
1399     if test "x$host_alias" != x; then
1400     if test "x$build_alias" = x; then
1401     cross_compiling=maybe
1402 db 941 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 michael 912 If a cross compiler is detected then cross compile mode will be used." >&2
1404     elif test "x$build_alias" != "x$host_alias"; then
1405     cross_compiling=yes
1406     fi
1407     fi
1408    
1409     ac_tool_prefix=
1410     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411    
1412     test "$silent" = yes && exec 6>/dev/null
1413    
1414    
1415     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416     ac_ls_di=`ls -di .` &&
1417     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 michael 967 as_fn_error "working directory cannot be determined"
1419 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 michael 967 as_fn_error "pwd does not report name of working directory"
1421 michael 912
1422    
1423     # Find the source files, if location was not specified.
1424     if test -z "$srcdir"; then
1425     ac_srcdir_defaulted=yes
1426     # Try the directory containing this script, then the parent directory.
1427 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1428     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429     X"$as_myself" : 'X\(//\)[^/]' \| \
1430     X"$as_myself" : 'X\(//\)$' \| \
1431     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432     $as_echo X"$as_myself" |
1433 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434     s//\1/
1435     q
1436     }
1437     /^X\(\/\/\)[^/].*/{
1438     s//\1/
1439     q
1440     }
1441     /^X\(\/\/\)$/{
1442     s//\1/
1443     q
1444     }
1445     /^X\(\/\).*/{
1446     s//\1/
1447     q
1448     }
1449     s/.*/./; q'`
1450     srcdir=$ac_confdir
1451     if test ! -r "$srcdir/$ac_unique_file"; then
1452     srcdir=..
1453     fi
1454     else
1455     ac_srcdir_defaulted=no
1456     fi
1457     if test ! -r "$srcdir/$ac_unique_file"; then
1458     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 michael 967 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 michael 912 fi
1461     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462     ac_abs_confdir=`(
1463 michael 967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 michael 912 pwd)`
1465     # When building in place, set srcdir=.
1466     if test "$ac_abs_confdir" = "$ac_pwd"; then
1467     srcdir=.
1468     fi
1469     # Remove unnecessary trailing slashes from srcdir.
1470     # Double slashes in file names in object file debugging info
1471     # mess up M-x gdb in Emacs.
1472     case $srcdir in
1473     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474     esac
1475     for ac_var in $ac_precious_vars; do
1476     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477     eval ac_env_${ac_var}_value=\$${ac_var}
1478     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480     done
1481    
1482     #
1483     # Report the --help message.
1484     #
1485     if test "$ac_init_help" = "long"; then
1486     # Omit some internal or obsolete options to make the list less imposing.
1487     # This message is too long to be a string in the A/UX 3.1 sh.
1488     cat <<_ACEOF
1489     \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1490    
1491     Usage: $0 [OPTION]... [VAR=VALUE]...
1492    
1493     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494     VAR=VALUE. See below for descriptions of some of the useful variables.
1495    
1496     Defaults for the options are specified in brackets.
1497    
1498     Configuration:
1499     -h, --help display this help and exit
1500     --help=short display options specific to this package
1501     --help=recursive display the short help of all the included packages
1502     -V, --version display version information and exit
1503     -q, --quiet, --silent do not print \`checking...' messages
1504     --cache-file=FILE cache test results in FILE [disabled]
1505     -C, --config-cache alias for \`--cache-file=config.cache'
1506     -n, --no-create do not create output files
1507     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508    
1509     Installation directories:
1510     --prefix=PREFIX install architecture-independent files in PREFIX
1511 db 941 [$ac_default_prefix]
1512 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 db 941 [PREFIX]
1514 michael 912
1515     By default, \`make install' will install all the files in
1516     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518     for instance \`--prefix=\$HOME'.
1519    
1520     For better control, use the options below.
1521    
1522     Fine tuning of the installation directories:
1523 db 941 --bindir=DIR user executables [EPREFIX/bin]
1524     --sbindir=DIR system admin executables [EPREFIX/sbin]
1525     --libexecdir=DIR program executables [EPREFIX/libexec]
1526     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529     --libdir=DIR object code libraries [EPREFIX/lib]
1530     --includedir=DIR C header files [PREFIX/include]
1531     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534     --infodir=DIR info documentation [DATAROOTDIR/info]
1535     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536     --mandir=DIR man documentation [DATAROOTDIR/man]
1537     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1538     --htmldir=DIR html documentation [DOCDIR]
1539     --dvidir=DIR dvi documentation [DOCDIR]
1540     --pdfdir=DIR pdf documentation [DOCDIR]
1541     --psdir=DIR ps documentation [DOCDIR]
1542 michael 912 _ACEOF
1543    
1544     cat <<\_ACEOF
1545    
1546     Program names:
1547     --program-prefix=PREFIX prepend PREFIX to installed program names
1548     --program-suffix=SUFFIX append SUFFIX to installed program names
1549     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550    
1551     System types:
1552     --build=BUILD configure for building on BUILD [guessed]
1553     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554     _ACEOF
1555     fi
1556    
1557     if test -n "$ac_init_help"; then
1558     case $ac_init_help in
1559     short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1560     esac
1561     cat <<\_ACEOF
1562    
1563     Optional Features:
1564 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1565 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567     --enable-maintainer-mode enable make rules and dependencies not useful
1568     (and sometimes confusing) to the casual installer
1569     --disable-dependency-tracking speeds up one-time build
1570     --enable-dependency-tracking do not reject slow dependency extractors
1571 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1572 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 michael 912 --enable-fast-install[=PKGS]
1574     optimize for fast installation [default=yes]
1575     --disable-libtool-lock avoid locking (might break parallel builds)
1576 michael 945 --enable-ltdl-install install libltdl
1577 michael 923 --disable-zlib Disable ziplinks support
1578 michael 1009 --disable-libpcre Disable PCRE support
1579 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1580     --disable-openssl Disable OpenSSL support.
1581 michael 924 --enable-assert Enable assert() statements
1582 michael 925 --enable-small-net Enable small network support.
1583 michael 912 --enable-kqueue Force kqueue usage.
1584     --enable-epoll Force epoll usage.
1585     --enable-devpoll Force devpoll usage.
1586     --enable-rtsigio Force rtsigio usage.
1587     --enable-poll Force poll usage.
1588     --enable-select Force select usage.
1589     --enable-efnet For IRCDs running on EFnet.
1590     --enable-halfops Enable halfops support.
1591     --enable-debugging Enable debugging.
1592     --enable-warnings Enable compiler warnings.
1593     --enable-syslog="EVENTS"
1594     Enable syslog for events: users oper (space
1595     separated in quotes; default: disabled).
1596    
1597     Optional Packages:
1598     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600     --with-pic try to use only PIC/non-PIC objects [default=use
1601     both]
1602 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603     --with-included-ltdl use the GNU ltdl sources included here
1604     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1605     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1606 michael 923 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1607 michael 1009 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1608 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1609     --with-topiclen=<value> Set topic length (default 160).
1610     --with-syslog-facility=LOG
1611     Define the syslog facility to use (default:
1612     LOG_LOCAL4)
1613    
1614     Some influential environment variables:
1615     CC C compiler command
1616     CFLAGS C compiler flags
1617     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618     nonstandard directory <lib dir>
1619     LIBS libraries to pass to the linker, e.g. -l<library>
1620 michael 1033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 michael 912 you have headers in a nonstandard directory <include dir>
1622     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1623     the first program found out of: `bison -y', `byacc', `yacc'.
1624     YFLAGS The list of arguments that will be passed by default to $YACC.
1625     This script will default YFLAGS to the empty string to avoid a
1626     default value of `-d' given by some make applications.
1627     CPP C preprocessor
1628    
1629     Use these variables to override the choices made by `configure' or to help
1630     it to find libraries and programs with nonstandard names/locations.
1631    
1632 michael 967 Report bugs to the package provider.
1633 michael 912 _ACEOF
1634     ac_status=$?
1635     fi
1636    
1637     if test "$ac_init_help" = "recursive"; then
1638     # If there are subdirs, report their specific --help.
1639     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 db 941 test -d "$ac_dir" ||
1641     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642     continue
1643 michael 912 ac_builddir=.
1644    
1645     case "$ac_dir" in
1646     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647     *)
1648 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 michael 912 # A ".." for each directory in $ac_dir_suffix.
1650 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 michael 912 case $ac_top_builddir_sub in
1652     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654     esac ;;
1655     esac
1656     ac_abs_top_builddir=$ac_pwd
1657     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658     # for backward compatibility:
1659     ac_top_builddir=$ac_top_build_prefix
1660    
1661     case $srcdir in
1662     .) # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666     [\\/]* | ?:[\\/]* ) # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670     *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674     esac
1675     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676    
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680     echo &&
1681     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683     echo &&
1684     $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 michael 912 fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689     done
1690     fi
1691    
1692     test -n "$ac_init_help" && exit $ac_status
1693     if $ac_init_version; then
1694     cat <<\_ACEOF
1695     ircd-hybrid configure 7.2.4
1696 michael 1033 generated by GNU Autoconf 2.65
1697 michael 912
1698 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
1699 michael 912 This configure script is free software; the Free Software Foundation
1700     gives unlimited permission to copy, distribute and modify it.
1701     _ACEOF
1702     exit
1703     fi
1704 michael 967
1705     ## ------------------------ ##
1706     ## Autoconf initialization. ##
1707     ## ------------------------ ##
1708    
1709     # ac_fn_c_try_compile LINENO
1710     # --------------------------
1711     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712     ac_fn_c_try_compile ()
1713     {
1714     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715     rm -f conftest.$ac_objext
1716     if { { ac_try="$ac_compile"
1717     case "(($ac_try" in
1718     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719     *) ac_try_echo=$ac_try;;
1720     esac
1721     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722     $as_echo "$ac_try_echo"; } >&5
1723     (eval "$ac_compile") 2>conftest.err
1724     ac_status=$?
1725     if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729     fi
1730     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731     test $ac_status = 0; } && {
1732     test -z "$ac_c_werror_flag" ||
1733     test ! -s conftest.err
1734     } && test -s conftest.$ac_objext; then :
1735     ac_retval=0
1736     else
1737     $as_echo "$as_me: failed program was:" >&5
1738     sed 's/^/| /' conftest.$ac_ext >&5
1739    
1740     ac_retval=1
1741     fi
1742     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 michael 1033 as_fn_set_status $ac_retval
1744 michael 967
1745     } # ac_fn_c_try_compile
1746    
1747     # ac_fn_c_try_link LINENO
1748     # -----------------------
1749     # Try to link conftest.$ac_ext, and return whether this succeeded.
1750     ac_fn_c_try_link ()
1751     {
1752     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753     rm -f conftest.$ac_objext conftest$ac_exeext
1754     if { { ac_try="$ac_link"
1755     case "(($ac_try" in
1756     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757     *) ac_try_echo=$ac_try;;
1758     esac
1759     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760     $as_echo "$ac_try_echo"; } >&5
1761     (eval "$ac_link") 2>conftest.err
1762     ac_status=$?
1763     if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767     fi
1768     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769     test $ac_status = 0; } && {
1770     test -z "$ac_c_werror_flag" ||
1771     test ! -s conftest.err
1772     } && test -s conftest$ac_exeext && {
1773     test "$cross_compiling" = yes ||
1774     $as_test_x conftest$ac_exeext
1775     }; then :
1776     ac_retval=0
1777     else
1778     $as_echo "$as_me: failed program was:" >&5
1779     sed 's/^/| /' conftest.$ac_ext >&5
1780    
1781     ac_retval=1
1782     fi
1783     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785     # interfere with the next link command; also delete a directory that is
1786     # left behind by Apple's compiler. We do this before executing the actions.
1787     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 michael 1033 as_fn_set_status $ac_retval
1790 michael 967
1791     } # ac_fn_c_try_link
1792    
1793     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794     # -------------------------------------------------------
1795     # Tests whether HEADER exists and can be compiled using the include files in
1796     # INCLUDES, setting the cache variable VAR accordingly.
1797     ac_fn_c_check_header_compile ()
1798     {
1799     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801     $as_echo_n "checking for $2... " >&6; }
1802     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803     $as_echo_n "(cached) " >&6
1804     else
1805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806     /* end confdefs.h. */
1807     $4
1808     #include <$2>
1809     _ACEOF
1810     if ac_fn_c_try_compile "$LINENO"; then :
1811     eval "$3=yes"
1812     else
1813     eval "$3=no"
1814     fi
1815     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816     fi
1817     eval ac_res=\$$3
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819     $as_echo "$ac_res" >&6; }
1820     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821    
1822     } # ac_fn_c_check_header_compile
1823    
1824     # ac_fn_c_try_cpp LINENO
1825     # ----------------------
1826     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827     ac_fn_c_try_cpp ()
1828     {
1829     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830     if { { ac_try="$ac_cpp conftest.$ac_ext"
1831     case "(($ac_try" in
1832     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833     *) ac_try_echo=$ac_try;;
1834     esac
1835     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836     $as_echo "$ac_try_echo"; } >&5
1837     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838     ac_status=$?
1839     if test -s conftest.err; then
1840     grep -v '^ *+' conftest.err >conftest.er1
1841     cat conftest.er1 >&5
1842     mv -f conftest.er1 conftest.err
1843     fi
1844     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845     test $ac_status = 0; } >/dev/null && {
1846     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1847     test ! -s conftest.err
1848     }; then :
1849     ac_retval=0
1850     else
1851     $as_echo "$as_me: failed program was:" >&5
1852     sed 's/^/| /' conftest.$ac_ext >&5
1853    
1854     ac_retval=1
1855     fi
1856     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 michael 1033 as_fn_set_status $ac_retval
1858 michael 967
1859     } # ac_fn_c_try_cpp
1860    
1861     # ac_fn_c_try_run LINENO
1862     # ----------------------
1863     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864     # that executables *can* be run.
1865     ac_fn_c_try_run ()
1866     {
1867     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868     if { { ac_try="$ac_link"
1869     case "(($ac_try" in
1870     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871     *) ac_try_echo=$ac_try;;
1872     esac
1873     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874     $as_echo "$ac_try_echo"; } >&5
1875     (eval "$ac_link") 2>&5
1876     ac_status=$?
1877     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879     { { case "(($ac_try" in
1880     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881     *) ac_try_echo=$ac_try;;
1882     esac
1883     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884     $as_echo "$ac_try_echo"; } >&5
1885     (eval "$ac_try") 2>&5
1886     ac_status=$?
1887     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888     test $ac_status = 0; }; }; then :
1889     ac_retval=0
1890     else
1891     $as_echo "$as_me: program exited with status $ac_status" >&5
1892     $as_echo "$as_me: failed program was:" >&5
1893     sed 's/^/| /' conftest.$ac_ext >&5
1894    
1895     ac_retval=$ac_status
1896     fi
1897     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 michael 1033 as_fn_set_status $ac_retval
1900 michael 967
1901     } # ac_fn_c_try_run
1902    
1903     # ac_fn_c_check_func LINENO FUNC VAR
1904     # ----------------------------------
1905     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1906     ac_fn_c_check_func ()
1907     {
1908     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910     $as_echo_n "checking for $2... " >&6; }
1911     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912     $as_echo_n "(cached) " >&6
1913     else
1914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915     /* end confdefs.h. */
1916     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1917     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1918     #define $2 innocuous_$2
1919    
1920     /* System header to define __stub macros and hopefully few prototypes,
1921     which can conflict with char $2 (); below.
1922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1923     <limits.h> exists even on freestanding compilers. */
1924    
1925     #ifdef __STDC__
1926     # include <limits.h>
1927     #else
1928     # include <assert.h>
1929     #endif
1930    
1931     #undef $2
1932    
1933     /* Override any GCC internal prototype to avoid an error.
1934     Use char because int might match the return type of a GCC
1935     builtin and then its argument prototype would still apply. */
1936     #ifdef __cplusplus
1937     extern "C"
1938     #endif
1939     char $2 ();
1940     /* The GNU C library defines this for functions which it implements
1941     to always fail with ENOSYS. Some functions are actually named
1942     something starting with __ and the normal name is an alias. */
1943     #if defined __stub_$2 || defined __stub___$2
1944     choke me
1945     #endif
1946    
1947     int
1948     main ()
1949     {
1950     return $2 ();
1951     ;
1952     return 0;
1953     }
1954     _ACEOF
1955     if ac_fn_c_try_link "$LINENO"; then :
1956     eval "$3=yes"
1957     else
1958     eval "$3=no"
1959     fi
1960     rm -f core conftest.err conftest.$ac_objext \
1961     conftest$ac_exeext conftest.$ac_ext
1962     fi
1963     eval ac_res=\$$3
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965     $as_echo "$ac_res" >&6; }
1966     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967    
1968     } # ac_fn_c_check_func
1969    
1970     # ac_fn_c_check_decl LINENO SYMBOL VAR
1971     # ------------------------------------
1972     # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1973     ac_fn_c_check_decl ()
1974     {
1975     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1977     $as_echo_n "checking whether $2 is declared... " >&6; }
1978     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979     $as_echo_n "(cached) " >&6
1980     else
1981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982     /* end confdefs.h. */
1983     $4
1984     int
1985     main ()
1986     {
1987     #ifndef $2
1988     (void) $2;
1989     #endif
1990    
1991     ;
1992     return 0;
1993     }
1994     _ACEOF
1995     if ac_fn_c_try_compile "$LINENO"; then :
1996     eval "$3=yes"
1997     else
1998     eval "$3=no"
1999     fi
2000     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001     fi
2002     eval ac_res=\$$3
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004     $as_echo "$ac_res" >&6; }
2005     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006    
2007     } # ac_fn_c_check_decl
2008    
2009     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2010     # -------------------------------------------
2011     # Tests whether TYPE exists after having included INCLUDES, setting cache
2012     # variable VAR accordingly.
2013     ac_fn_c_check_type ()
2014     {
2015     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017     $as_echo_n "checking for $2... " >&6; }
2018     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2019     $as_echo_n "(cached) " >&6
2020     else
2021     eval "$3=no"
2022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023     /* end confdefs.h. */
2024     $4
2025     int
2026     main ()
2027     {
2028     if (sizeof ($2))
2029     return 0;
2030     ;
2031     return 0;
2032     }
2033     _ACEOF
2034     if ac_fn_c_try_compile "$LINENO"; then :
2035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036     /* end confdefs.h. */
2037     $4
2038     int
2039     main ()
2040     {
2041     if (sizeof (($2)))
2042     return 0;
2043     ;
2044     return 0;
2045     }
2046     _ACEOF
2047     if ac_fn_c_try_compile "$LINENO"; then :
2048    
2049     else
2050     eval "$3=yes"
2051     fi
2052     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053     fi
2054     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055     fi
2056     eval ac_res=\$$3
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058     $as_echo "$ac_res" >&6; }
2059     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060    
2061     } # ac_fn_c_check_type
2062    
2063     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2064     # ----------------------------------------------------
2065     # Tries to find if the field MEMBER exists in type AGGR, after including
2066     # INCLUDES, setting cache variable VAR accordingly.
2067     ac_fn_c_check_member ()
2068     {
2069     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2071     $as_echo_n "checking for $2.$3... " >&6; }
2072     if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2073     $as_echo_n "(cached) " >&6
2074     else
2075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076     /* end confdefs.h. */
2077     $5
2078     int
2079     main ()
2080     {
2081     static $2 ac_aggr;
2082     if (ac_aggr.$3)
2083     return 0;
2084     ;
2085     return 0;
2086     }
2087     _ACEOF
2088     if ac_fn_c_try_compile "$LINENO"; then :
2089     eval "$4=yes"
2090     else
2091     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092     /* end confdefs.h. */
2093     $5
2094     int
2095     main ()
2096     {
2097     static $2 ac_aggr;
2098     if (sizeof ac_aggr.$3)
2099     return 0;
2100     ;
2101     return 0;
2102     }
2103     _ACEOF
2104     if ac_fn_c_try_compile "$LINENO"; then :
2105     eval "$4=yes"
2106     else
2107     eval "$4=no"
2108     fi
2109     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110     fi
2111     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112     fi
2113     eval ac_res=\$$4
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115     $as_echo "$ac_res" >&6; }
2116     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117    
2118     } # ac_fn_c_check_member
2119    
2120     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121     # -------------------------------------------------------
2122     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123     # the include files in INCLUDES and setting the cache variable VAR
2124     # accordingly.
2125     ac_fn_c_check_header_mongrel ()
2126     {
2127     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130     $as_echo_n "checking for $2... " >&6; }
2131     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132     $as_echo_n "(cached) " >&6
2133     fi
2134     eval ac_res=\$$3
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136     $as_echo "$ac_res" >&6; }
2137     else
2138     # Is the header compilable?
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140     $as_echo_n "checking $2 usability... " >&6; }
2141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142     /* end confdefs.h. */
2143     $4
2144     #include <$2>
2145     _ACEOF
2146     if ac_fn_c_try_compile "$LINENO"; then :
2147     ac_header_compiler=yes
2148     else
2149     ac_header_compiler=no
2150     fi
2151     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153     $as_echo "$ac_header_compiler" >&6; }
2154    
2155     # Is the header present?
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157     $as_echo_n "checking $2 presence... " >&6; }
2158     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159     /* end confdefs.h. */
2160     #include <$2>
2161     _ACEOF
2162     if ac_fn_c_try_cpp "$LINENO"; then :
2163     ac_header_preproc=yes
2164     else
2165     ac_header_preproc=no
2166     fi
2167     rm -f conftest.err conftest.$ac_ext
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169     $as_echo "$ac_header_preproc" >&6; }
2170    
2171     # So? What about this header?
2172     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173     yes:no: )
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178     ;;
2179     no:yes:* )
2180     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2183     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2187     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190     ;;
2191     esac
2192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193     $as_echo_n "checking for $2... " >&6; }
2194     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2195     $as_echo_n "(cached) " >&6
2196     else
2197     eval "$3=\$ac_header_compiler"
2198     fi
2199     eval ac_res=\$$3
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201     $as_echo "$ac_res" >&6; }
2202     fi
2203     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204    
2205     } # ac_fn_c_check_header_mongrel
2206 michael 912 cat >config.log <<_ACEOF
2207     This file contains any messages produced by compilers while
2208     running configure, to aid debugging if configure makes a mistake.
2209    
2210     It was created by ircd-hybrid $as_me 7.2.4, which was
2211 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
2212 michael 912
2213     $ $0 $@
2214    
2215     _ACEOF
2216     exec 5>>config.log
2217     {
2218     cat <<_ASUNAME
2219     ## --------- ##
2220     ## Platform. ##
2221     ## --------- ##
2222    
2223     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228    
2229     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2231    
2232     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2233     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2234     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2236     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2237     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2238     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2239    
2240     _ASUNAME
2241    
2242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243     for as_dir in $PATH
2244     do
2245     IFS=$as_save_IFS
2246     test -z "$as_dir" && as_dir=.
2247 michael 967 $as_echo "PATH: $as_dir"
2248     done
2249 michael 912 IFS=$as_save_IFS
2250    
2251     } >&5
2252    
2253     cat >&5 <<_ACEOF
2254    
2255    
2256     ## ----------- ##
2257     ## Core tests. ##
2258     ## ----------- ##
2259    
2260     _ACEOF
2261    
2262    
2263     # Keep a trace of the command line.
2264     # Strip out --no-create and --no-recursion so they do not pile up.
2265     # Strip out --silent because we don't want to record it for future runs.
2266     # Also quote any args containing shell meta-characters.
2267     # Make two passes to allow for proper duplicate-argument suppression.
2268     ac_configure_args=
2269     ac_configure_args0=
2270     ac_configure_args1=
2271     ac_must_keep_next=false
2272     for ac_pass in 1 2
2273     do
2274     for ac_arg
2275     do
2276     case $ac_arg in
2277     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279     | -silent | --silent | --silen | --sile | --sil)
2280     continue ;;
2281     *\'*)
2282 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283 michael 912 esac
2284     case $ac_pass in
2285 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286 michael 912 2)
2287 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2288 michael 912 if test $ac_must_keep_next = true; then
2289     ac_must_keep_next=false # Got value, back to normal.
2290     else
2291     case $ac_arg in
2292     *=* | --config-cache | -C | -disable-* | --disable-* \
2293     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295     | -with-* | --with-* | -without-* | --without-* | --x)
2296     case "$ac_configure_args0 " in
2297     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298     esac
2299     ;;
2300     -* ) ac_must_keep_next=true ;;
2301     esac
2302     fi
2303 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2304 michael 912 ;;
2305     esac
2306     done
2307     done
2308 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2309     { ac_configure_args1=; unset ac_configure_args1;}
2310 michael 912
2311     # When interrupted or exit'd, cleanup temporary files, and complete
2312     # config.log. We remove comments because anyway the quotes in there
2313     # would cause problems or look ugly.
2314     # WARNING: Use '\'' to represent an apostrophe within the trap.
2315     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316     trap 'exit_status=$?
2317     # Save into config.log some information that might help in debugging.
2318     {
2319     echo
2320    
2321     cat <<\_ASBOX
2322     ## ---------------- ##
2323     ## Cache variables. ##
2324     ## ---------------- ##
2325     _ASBOX
2326     echo
2327     # The following way of writing the cache mishandles newlines in values,
2328     (
2329     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330     eval ac_val=\$$ac_var
2331     case $ac_val in #(
2332     *${as_nl}*)
2333     case $ac_var in #(
2334 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336 michael 912 esac
2337     case $ac_var in #(
2338     _ | IFS | as_nl) ;; #(
2339 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2341 michael 912 esac ;;
2342     esac
2343     done
2344     (set) 2>&1 |
2345     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346     *${as_nl}ac_space=\ *)
2347     sed -n \
2348     "s/'\''/'\''\\\\'\'''\''/g;
2349     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350     ;; #(
2351     *)
2352     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353     ;;
2354     esac |
2355     sort
2356     )
2357     echo
2358    
2359     cat <<\_ASBOX
2360     ## ----------------- ##
2361     ## Output variables. ##
2362     ## ----------------- ##
2363     _ASBOX
2364     echo
2365     for ac_var in $ac_subst_vars
2366     do
2367     eval ac_val=\$$ac_var
2368     case $ac_val in
2369 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 michael 912 esac
2371 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2372 michael 912 done | sort
2373     echo
2374    
2375     if test -n "$ac_subst_files"; then
2376     cat <<\_ASBOX
2377     ## ------------------- ##
2378     ## File substitutions. ##
2379     ## ------------------- ##
2380     _ASBOX
2381     echo
2382     for ac_var in $ac_subst_files
2383     do
2384     eval ac_val=\$$ac_var
2385     case $ac_val in
2386 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387 michael 912 esac
2388 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2389 michael 912 done | sort
2390     echo
2391     fi
2392    
2393     if test -s confdefs.h; then
2394     cat <<\_ASBOX
2395     ## ----------- ##
2396     ## confdefs.h. ##
2397     ## ----------- ##
2398     _ASBOX
2399     echo
2400     cat confdefs.h
2401     echo
2402     fi
2403     test "$ac_signal" != 0 &&
2404 db 941 $as_echo "$as_me: caught signal $ac_signal"
2405     $as_echo "$as_me: exit $exit_status"
2406 michael 912 } >&5
2407     rm -f core *.core core.conftest.* &&
2408     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2409     exit $exit_status
2410     ' 0
2411     for ac_signal in 1 2 13 15; do
2412 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2413 michael 912 done
2414     ac_signal=0
2415    
2416     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2417     rm -f -r conftest* confdefs.h
2418    
2419 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2420    
2421 michael 912 # Predefined preprocessor variables.
2422    
2423     cat >>confdefs.h <<_ACEOF
2424     #define PACKAGE_NAME "$PACKAGE_NAME"
2425     _ACEOF
2426    
2427     cat >>confdefs.h <<_ACEOF
2428     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2429     _ACEOF
2430    
2431     cat >>confdefs.h <<_ACEOF
2432     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2433     _ACEOF
2434    
2435     cat >>confdefs.h <<_ACEOF
2436     #define PACKAGE_STRING "$PACKAGE_STRING"
2437     _ACEOF
2438    
2439     cat >>confdefs.h <<_ACEOF
2440     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2441     _ACEOF
2442    
2443 michael 967 cat >>confdefs.h <<_ACEOF
2444     #define PACKAGE_URL "$PACKAGE_URL"
2445     _ACEOF
2446 michael 912
2447 michael 967
2448 michael 912 # Let the site file select an alternate cache file if it wants to.
2449 db 941 # Prefer an explicitly selected file to automatically selected ones.
2450     ac_site_file1=NONE
2451     ac_site_file2=NONE
2452 michael 912 if test -n "$CONFIG_SITE"; then
2453 db 941 ac_site_file1=$CONFIG_SITE
2454 michael 912 elif test "x$prefix" != xNONE; then
2455 db 941 ac_site_file1=$prefix/share/config.site
2456     ac_site_file2=$prefix/etc/config.site
2457 michael 912 else
2458 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2459     ac_site_file2=$ac_default_prefix/etc/config.site
2460 michael 912 fi
2461 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 michael 912 do
2463 db 941 test "x$ac_site_file" = xNONE && continue
2464 michael 1033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2465 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2468     . "$ac_site_file"
2469     fi
2470     done
2471    
2472     if test -r "$cache_file"; then
2473 michael 1033 # Some versions of bash will fail to source /dev/null (special files
2474     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2475     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2478 michael 912 case $cache_file in
2479     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480     *) . "./$cache_file";;
2481     esac
2482     fi
2483     else
2484 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2486 michael 912 >$cache_file
2487     fi
2488    
2489 michael 967 as_fn_append ac_func_list " mmap"
2490     as_fn_append ac_func_list " strtok_r"
2491     as_fn_append ac_func_list " usleep"
2492     as_fn_append ac_func_list " strlcat"
2493     as_fn_append ac_func_list " strlcpy"
2494     as_fn_append ac_header_list " crypt.h"
2495     as_fn_append ac_header_list " inttypes.h"
2496     as_fn_append ac_header_list " stdint.h"
2497     as_fn_append ac_header_list " sys/resource.h"
2498     as_fn_append ac_header_list " sys/param.h"
2499     as_fn_append ac_header_list " errno.h"
2500     as_fn_append ac_header_list " sys/syslog.h"
2501     as_fn_append ac_header_list " types.h"
2502     as_fn_append ac_header_list " socket.h"
2503     as_fn_append ac_header_list " sys/wait.h"
2504     as_fn_append ac_header_list " wait.h"
2505     as_fn_append ac_header_list " link.h"
2506 michael 912 # Check that the precious variables saved in the cache have kept the same
2507     # value.
2508     ac_cache_corrupted=false
2509     for ac_var in $ac_precious_vars; do
2510     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2511     eval ac_new_set=\$ac_env_${ac_var}_set
2512     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2513     eval ac_new_val=\$ac_env_${ac_var}_value
2514     case $ac_old_set,$ac_new_set in
2515     set,)
2516 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2517 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2518 michael 912 ac_cache_corrupted=: ;;
2519     ,set)
2520 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2521 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2522 michael 912 ac_cache_corrupted=: ;;
2523     ,);;
2524     *)
2525     if test "x$ac_old_val" != "x$ac_new_val"; then
2526 db 941 # differences in whitespace do not lead to failure.
2527     ac_old_val_w=`echo x $ac_old_val`
2528     ac_new_val_w=`echo x $ac_new_val`
2529     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2530 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2531 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2532     ac_cache_corrupted=:
2533     else
2534 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2535 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2536     eval $ac_var=\$ac_old_val
2537     fi
2538 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2539 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2540 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2541 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2542 michael 912 fi;;
2543     esac
2544     # Pass precious variables to config.status.
2545     if test "$ac_new_set" = set; then
2546     case $ac_new_val in
2547 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2548 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2549     esac
2550     case " $ac_configure_args " in
2551     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2552 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 michael 912 esac
2554     fi
2555     done
2556     if $ac_cache_corrupted; then
2557 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2560 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2561 michael 967 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 michael 912 fi
2563 michael 967 ## -------------------- ##
2564     ## Main body of script. ##
2565     ## -------------------- ##
2566 michael 912
2567     ac_ext=c
2568     ac_cpp='$CPP $CPPFLAGS'
2569     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572    
2573    
2574 michael 945 am__api_version='1.11'
2575 michael 912
2576     ac_aux_dir=
2577     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2578 michael 967 for ac_t in install-sh install.sh shtool; do
2579     if test -f "$ac_dir/$ac_t"; then
2580     ac_aux_dir=$ac_dir
2581     ac_install_sh="$ac_aux_dir/$ac_t -c"
2582     break 2
2583     fi
2584     done
2585 michael 912 done
2586     if test -z "$ac_aux_dir"; then
2587 michael 967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2588 michael 912 fi
2589    
2590     # These three variables are undocumented and unsupported,
2591     # and are intended to be withdrawn in a future Autoconf release.
2592     # They can cause serious problems if a builder's source tree is in a directory
2593     # whose full name contains unusual characters.
2594     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2595     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2596     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2597    
2598    
2599     # Find a good install program. We prefer a C program (faster),
2600     # so one script is as good as another. But avoid the broken or
2601     # incompatible versions:
2602     # SysV /etc/install, /usr/sbin/install
2603     # SunOS /usr/etc/install
2604     # IRIX /sbin/install
2605     # AIX /bin/install
2606     # AmigaOS /C/install, which installs bootblocks on floppy discs
2607     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610     # OS/2's system install, which has a completely different semantic
2611     # ./install, which can be erroneously created by make from ./install.sh.
2612 db 941 # Reject install programs that cannot install multiple files.
2613 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2615 michael 912 if test -z "$INSTALL"; then
2616 michael 967 if test "${ac_cv_path_install+set}" = set; then :
2617 db 941 $as_echo_n "(cached) " >&6
2618 michael 912 else
2619     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620     for as_dir in $PATH
2621     do
2622     IFS=$as_save_IFS
2623     test -z "$as_dir" && as_dir=.
2624 michael 967 # Account for people who put trailing slashes in PATH elements.
2625     case $as_dir/ in #((
2626     ./ | .// | /[cC]/* | \
2627 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2628 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2629 michael 912 /usr/ucb/* ) ;;
2630     *)
2631     # OSF1 and SCO ODT 3.0 have their own names for install.
2632     # Don't use installbsd from OSF since it installs stuff as root
2633     # by default.
2634     for ac_prog in ginstall scoinst install; do
2635     for ac_exec_ext in '' $ac_executable_extensions; do
2636     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2637     if test $ac_prog = install &&
2638     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639     # AIX install. It has an incompatible calling convention.
2640     :
2641     elif test $ac_prog = install &&
2642     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643     # program-specific install script used by HP pwplus--don't use.
2644     :
2645     else
2646 db 941 rm -rf conftest.one conftest.two conftest.dir
2647     echo one > conftest.one
2648     echo two > conftest.two
2649     mkdir conftest.dir
2650     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2651     test -s conftest.one && test -s conftest.two &&
2652     test -s conftest.dir/conftest.one &&
2653     test -s conftest.dir/conftest.two
2654     then
2655     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2656     break 3
2657     fi
2658 michael 912 fi
2659     fi
2660     done
2661     done
2662     ;;
2663     esac
2664 db 941
2665 michael 967 done
2666 michael 912 IFS=$as_save_IFS
2667    
2668 db 941 rm -rf conftest.one conftest.two conftest.dir
2669 michael 912
2670     fi
2671     if test "${ac_cv_path_install+set}" = set; then
2672     INSTALL=$ac_cv_path_install
2673     else
2674     # As a last resort, use the slow shell script. Don't cache a
2675     # value for INSTALL within a source directory, because that will
2676     # break other packages using the cache if that directory is
2677     # removed, or if the value is a relative name.
2678     INSTALL=$ac_install_sh
2679     fi
2680     fi
2681 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2682 db 941 $as_echo "$INSTALL" >&6; }
2683 michael 912
2684     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2685     # It thinks the first close brace ends the variable substitution.
2686     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2687    
2688     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2689    
2690     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2691    
2692 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2693 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2694 michael 912 # Just in case
2695     sleep 1
2696     echo timestamp > conftest.file
2697 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2698     # name. Accept space and tab only in the latter.
2699     am_lf='
2700     '
2701     case `pwd` in
2702     *[\\\"\#\$\&\'\`$am_lf]*)
2703 michael 967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2704 michael 945 esac
2705     case $srcdir in
2706     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2707 michael 967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2708 michael 945 esac
2709    
2710 michael 912 # Do `set' in a subshell so we don't clobber the current shell's
2711     # arguments. Must try -L first in case configure is actually a
2712     # symlink; some systems play weird games with the mod time of symlinks
2713     # (eg FreeBSD returns the mod time of the symlink's containing
2714     # directory).
2715     if (
2716 michael 945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717 michael 912 if test "$*" = "X"; then
2718     # -L didn't work.
2719 michael 945 set X `ls -t "$srcdir/configure" conftest.file`
2720 michael 912 fi
2721     rm -f conftest.file
2722     if test "$*" != "X $srcdir/configure conftest.file" \
2723     && test "$*" != "X conftest.file $srcdir/configure"; then
2724    
2725     # If neither matched, then we have a broken ls. This can happen
2726     # if, for instance, CONFIG_SHELL is bash and it inherits a
2727     # broken ls alias from the environment. This has actually
2728     # happened. Such a system could not be considered "sane".
2729 michael 967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2730     alias in your environment" "$LINENO" 5
2731 michael 912 fi
2732    
2733     test "$2" = conftest.file
2734     )
2735     then
2736     # Ok.
2737     :
2738     else
2739 michael 967 as_fn_error "newly created file is older than distributed files!
2740     Check your system clock" "$LINENO" 5
2741 michael 912 fi
2742 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 db 941 $as_echo "yes" >&6; }
2744 michael 912 test "$program_prefix" != NONE &&
2745     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2746     # Use a double $ so make ignores it.
2747     test "$program_suffix" != NONE &&
2748     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2749 db 941 # Double any \ or $.
2750 michael 912 # By default was `s,x,x', remove it if useless.
2751 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2752     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2753 michael 912
2754     # expand $ac_aux_dir to an absolute path
2755     am_aux_dir=`cd $ac_aux_dir && pwd`
2756    
2757 michael 945 if test x"${MISSING+set}" != xset; then
2758     case $am_aux_dir in
2759     *\ * | *\ *)
2760     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2761     *)
2762     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2763     esac
2764     fi
2765 michael 912 # Use eval to expand $SHELL
2766     if eval "$MISSING --run true"; then
2767     am_missing_run="$MISSING --run "
2768     else
2769     am_missing_run=
2770 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2771 db 941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2772 michael 912 fi
2773    
2774 michael 945 if test x"${install_sh}" != xset; then
2775     case $am_aux_dir in
2776     *\ * | *\ *)
2777     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2778     *)
2779     install_sh="\${SHELL} $am_aux_dir/install-sh"
2780     esac
2781     fi
2782    
2783     # Installed binaries are usually stripped using `strip' when the user
2784     # run `make install-strip'. However `strip' might not be the right
2785     # tool to use in cross-compilation environments, therefore Automake
2786     # will honor the `STRIP' environment variable to overrule this program.
2787     if test "$cross_compiling" != no; then
2788     if test -n "$ac_tool_prefix"; then
2789     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2790     set dummy ${ac_tool_prefix}strip; ac_word=$2
2791 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2793 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2794 michael 945 $as_echo_n "(cached) " >&6
2795     else
2796     if test -n "$STRIP"; then
2797     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2798     else
2799     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800     for as_dir in $PATH
2801     do
2802     IFS=$as_save_IFS
2803     test -z "$as_dir" && as_dir=.
2804 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2805 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 michael 945 break 2
2809     fi
2810     done
2811 michael 967 done
2812 michael 945 IFS=$as_save_IFS
2813    
2814     fi
2815     fi
2816     STRIP=$ac_cv_prog_STRIP
2817     if test -n "$STRIP"; then
2818 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819 michael 945 $as_echo "$STRIP" >&6; }
2820     else
2821 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 michael 945 $as_echo "no" >&6; }
2823     fi
2824    
2825    
2826     fi
2827     if test -z "$ac_cv_prog_STRIP"; then
2828     ac_ct_STRIP=$STRIP
2829     # Extract the first word of "strip", so it can be a program name with args.
2830     set dummy strip; ac_word=$2
2831 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2833 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2834 michael 945 $as_echo_n "(cached) " >&6
2835     else
2836     if test -n "$ac_ct_STRIP"; then
2837     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2838     else
2839     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840     for as_dir in $PATH
2841     do
2842     IFS=$as_save_IFS
2843     test -z "$as_dir" && as_dir=.
2844 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2845 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_STRIP="strip"
2847 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 michael 945 break 2
2849     fi
2850     done
2851 michael 967 done
2852 michael 945 IFS=$as_save_IFS
2853    
2854     fi
2855     fi
2856     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857     if test -n "$ac_ct_STRIP"; then
2858 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2860     else
2861 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 michael 945 $as_echo "no" >&6; }
2863     fi
2864    
2865     if test "x$ac_ct_STRIP" = x; then
2866     STRIP=":"
2867     else
2868     case $cross_compiling:$ac_tool_warned in
2869     yes:)
2870 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872     ac_tool_warned=yes ;;
2873     esac
2874     STRIP=$ac_ct_STRIP
2875     fi
2876     else
2877     STRIP="$ac_cv_prog_STRIP"
2878     fi
2879    
2880     fi
2881     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882    
2883 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2884 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2885 michael 912 if test -z "$MKDIR_P"; then
2886 michael 967 if test "${ac_cv_path_mkdir+set}" = set; then :
2887 db 941 $as_echo_n "(cached) " >&6
2888 michael 912 else
2889     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2891     do
2892     IFS=$as_save_IFS
2893     test -z "$as_dir" && as_dir=.
2894 michael 967 for ac_prog in mkdir gmkdir; do
2895 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2896     { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2897     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2898     'mkdir (GNU coreutils) '* | \
2899     'mkdir (coreutils) '* | \
2900     'mkdir (fileutils) '4.1*)
2901     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2902     break 3;;
2903     esac
2904     done
2905     done
2906 michael 967 done
2907 michael 912 IFS=$as_save_IFS
2908    
2909     fi
2910    
2911 michael 1033 test -d ./--version && rmdir ./--version
2912 michael 912 if test "${ac_cv_path_mkdir+set}" = set; then
2913     MKDIR_P="$ac_cv_path_mkdir -p"
2914     else
2915     # As a last resort, use the slow shell script. Don't cache a
2916     # value for MKDIR_P within a source directory, because that will
2917     # break other packages using the cache if that directory is
2918     # removed, or if the value is a relative name.
2919     MKDIR_P="$ac_install_sh -d"
2920     fi
2921     fi
2922 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2923 db 941 $as_echo "$MKDIR_P" >&6; }
2924 michael 912
2925     mkdir_p="$MKDIR_P"
2926     case $mkdir_p in
2927     [\\/$]* | ?:[\\/]*) ;;
2928     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2929     esac
2930    
2931     for ac_prog in gawk mawk nawk awk
2932     do
2933     # Extract the first word of "$ac_prog", so it can be a program name with args.
2934     set dummy $ac_prog; ac_word=$2
2935 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2937 michael 967 if test "${ac_cv_prog_AWK+set}" = set; then :
2938 db 941 $as_echo_n "(cached) " >&6
2939 michael 912 else
2940     if test -n "$AWK"; then
2941     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942     else
2943     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944     for as_dir in $PATH
2945     do
2946     IFS=$as_save_IFS
2947     test -z "$as_dir" && as_dir=.
2948 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2949 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     ac_cv_prog_AWK="$ac_prog"
2951 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 michael 912 break 2
2953     fi
2954     done
2955 michael 967 done
2956 michael 912 IFS=$as_save_IFS
2957    
2958     fi
2959     fi
2960     AWK=$ac_cv_prog_AWK
2961     if test -n "$AWK"; then
2962 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 db 941 $as_echo "$AWK" >&6; }
2964 michael 912 else
2965 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 db 941 $as_echo "no" >&6; }
2967 michael 912 fi
2968    
2969    
2970     test -n "$AWK" && break
2971     done
2972    
2973 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975     set x ${MAKE-make}
2976     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 michael 967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2978 db 941 $as_echo_n "(cached) " >&6
2979 michael 912 else
2980     cat >conftest.make <<\_ACEOF
2981     SHELL = /bin/sh
2982     all:
2983     @echo '@@@%%%=$(MAKE)=@@@%%%'
2984     _ACEOF
2985     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2986     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987     *@@@%%%=?*=@@@%%%*)
2988     eval ac_cv_prog_make_${ac_make}_set=yes;;
2989     *)
2990     eval ac_cv_prog_make_${ac_make}_set=no;;
2991     esac
2992     rm -f conftest.make
2993     fi
2994     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 db 941 $as_echo "yes" >&6; }
2997 michael 912 SET_MAKE=
2998     else
2999 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 db 941 $as_echo "no" >&6; }
3001 michael 912 SET_MAKE="MAKE=${MAKE-make}"
3002     fi
3003    
3004     rm -rf .tst 2>/dev/null
3005     mkdir .tst 2>/dev/null
3006     if test -d .tst; then
3007     am__leading_dot=.
3008     else
3009     am__leading_dot=_
3010     fi
3011     rmdir .tst 2>/dev/null
3012    
3013     if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015     # is not polluted with repeated "-I."
3016     am__isrc=' -I$(srcdir)'
3017     # test to see if srcdir already configured
3018     if test -f $srcdir/config.status; then
3019 michael 967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3020 michael 912 fi
3021     fi
3022    
3023     # test whether we have cygpath
3024     if test -z "$CYGPATH_W"; then
3025     if (cygpath --version) >/dev/null 2>/dev/null; then
3026     CYGPATH_W='cygpath -w'
3027     else
3028     CYGPATH_W=echo
3029     fi
3030     fi
3031    
3032    
3033     # Define the identity of the package.
3034     PACKAGE='ircd-hybrid'
3035     VERSION='7.2.4'
3036    
3037    
3038     cat >>confdefs.h <<_ACEOF
3039     #define PACKAGE "$PACKAGE"
3040     _ACEOF
3041    
3042    
3043     cat >>confdefs.h <<_ACEOF
3044     #define VERSION "$VERSION"
3045     _ACEOF
3046    
3047     # Some tools Automake needs.
3048    
3049     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050    
3051    
3052     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053    
3054    
3055     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056    
3057    
3058     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059    
3060    
3061     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3062    
3063     # We need awk for the "check" target. The system "awk" is bad on
3064     # some platforms.
3065     # Always define AMTAR for backward compatibility.
3066    
3067     AMTAR=${AMTAR-"${am_missing_run}tar"}
3068    
3069     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3070    
3071    
3072    
3073    
3074    
3075 michael 945
3076 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3077 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3078 michael 912 # Check whether --enable-maintainer-mode was given.
3079 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
3080 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3081     else
3082     USE_MAINTAINER_MODE=no
3083     fi
3084    
3085 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3086 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3087 michael 912 if test $USE_MAINTAINER_MODE = yes; then
3088     MAINTAINER_MODE_TRUE=
3089     MAINTAINER_MODE_FALSE='#'
3090     else
3091     MAINTAINER_MODE_TRUE='#'
3092     MAINTAINER_MODE_FALSE=
3093     fi
3094    
3095     MAINT=$MAINTAINER_MODE_TRUE
3096    
3097    
3098     ac_config_headers="$ac_config_headers config.h"
3099    
3100    
3101    
3102 michael 1010 # Checks for programs.
3103     DEPDIR="${am__leading_dot}deps"
3104 michael 923
3105 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3106    
3107    
3108     am_make=${MAKE-make}
3109     cat > confinc << 'END'
3110     am__doit:
3111     @echo this is the am__doit target
3112     .PHONY: am__doit
3113     END
3114     # If we don't find an include directive, just comment out the code.
3115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3116     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3117     am__include="#"
3118     am__quote=
3119     _am_result=none
3120     # First try GNU make style include.
3121     echo "include confinc" > confmf
3122     # Ignore all kinds of additional output from `make'.
3123     case `$am_make -s -f confmf 2> /dev/null` in #(
3124     *the\ am__doit\ target*)
3125     am__include=include
3126     am__quote=
3127     _am_result=GNU
3128     ;;
3129     esac
3130     # Now try BSD make style include.
3131     if test "$am__include" = "#"; then
3132     echo '.include "confinc"' > confmf
3133     case `$am_make -s -f confmf 2> /dev/null` in #(
3134     *the\ am__doit\ target*)
3135     am__include=.include
3136     am__quote="\""
3137     _am_result=BSD
3138     ;;
3139     esac
3140     fi
3141    
3142    
3143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3144     $as_echo "$_am_result" >&6; }
3145     rm -f confinc confmf
3146    
3147     # Check whether --enable-dependency-tracking was given.
3148     if test "${enable_dependency_tracking+set}" = set; then :
3149     enableval=$enable_dependency_tracking;
3150     fi
3151    
3152     if test "x$enable_dependency_tracking" != xno; then
3153     am_depcomp="$ac_aux_dir/depcomp"
3154     AMDEPBACKSLASH='\'
3155     fi
3156     if test "x$enable_dependency_tracking" != xno; then
3157     AMDEP_TRUE=
3158     AMDEP_FALSE='#'
3159     else
3160     AMDEP_TRUE='#'
3161     AMDEP_FALSE=
3162     fi
3163    
3164    
3165 michael 912 ac_ext=c
3166     ac_cpp='$CPP $CPPFLAGS'
3167     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170     if test -n "$ac_tool_prefix"; then
3171     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3175 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3176 db 941 $as_echo_n "(cached) " >&6
3177 michael 912 else
3178     if test -n "$CC"; then
3179     ac_cv_prog_CC="$CC" # Let the user override the test.
3180     else
3181     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182     for as_dir in $PATH
3183     do
3184     IFS=$as_save_IFS
3185     test -z "$as_dir" && as_dir=.
3186 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3187 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 michael 912 break 2
3191     fi
3192     done
3193 michael 967 done
3194 michael 912 IFS=$as_save_IFS
3195    
3196     fi
3197     fi
3198     CC=$ac_cv_prog_CC
3199     if test -n "$CC"; then
3200 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 db 941 $as_echo "$CC" >&6; }
3202 michael 912 else
3203 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 db 941 $as_echo "no" >&6; }
3205 michael 912 fi
3206    
3207    
3208     fi
3209     if test -z "$ac_cv_prog_CC"; then
3210     ac_ct_CC=$CC
3211     # Extract the first word of "gcc", so it can be a program name with args.
3212     set dummy gcc; ac_word=$2
3213 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3215 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3216 db 941 $as_echo_n "(cached) " >&6
3217 michael 912 else
3218     if test -n "$ac_ct_CC"; then
3219     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220     else
3221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222     for as_dir in $PATH
3223     do
3224     IFS=$as_save_IFS
3225     test -z "$as_dir" && as_dir=.
3226 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3227 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228     ac_cv_prog_ac_ct_CC="gcc"
3229 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 michael 912 break 2
3231     fi
3232     done
3233 michael 967 done
3234 michael 912 IFS=$as_save_IFS
3235    
3236     fi
3237     fi
3238     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239     if test -n "$ac_ct_CC"; then
3240 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241 db 941 $as_echo "$ac_ct_CC" >&6; }
3242 michael 912 else
3243 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 db 941 $as_echo "no" >&6; }
3245 michael 912 fi
3246    
3247     if test "x$ac_ct_CC" = x; then
3248     CC=""
3249     else
3250     case $cross_compiling:$ac_tool_warned in
3251     yes:)
3252 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 michael 912 ac_tool_warned=yes ;;
3255     esac
3256     CC=$ac_ct_CC
3257     fi
3258     else
3259     CC="$ac_cv_prog_CC"
3260     fi
3261    
3262     if test -z "$CC"; then
3263     if test -n "$ac_tool_prefix"; then
3264     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265     set dummy ${ac_tool_prefix}cc; ac_word=$2
3266 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3268 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3269 db 941 $as_echo_n "(cached) " >&6
3270 michael 912 else
3271     if test -n "$CC"; then
3272     ac_cv_prog_CC="$CC" # Let the user override the test.
3273     else
3274     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275     for as_dir in $PATH
3276     do
3277     IFS=$as_save_IFS
3278     test -z "$as_dir" && as_dir=.
3279 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3280 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 michael 912 break 2
3284     fi
3285     done
3286 michael 967 done
3287 michael 912 IFS=$as_save_IFS
3288    
3289     fi
3290     fi
3291     CC=$ac_cv_prog_CC
3292     if test -n "$CC"; then
3293 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 db 941 $as_echo "$CC" >&6; }
3295 michael 912 else
3296 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 db 941 $as_echo "no" >&6; }
3298 michael 912 fi
3299    
3300    
3301     fi
3302     fi
3303     if test -z "$CC"; then
3304     # Extract the first word of "cc", so it can be a program name with args.
3305     set dummy cc; ac_word=$2
3306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3308 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3309 db 941 $as_echo_n "(cached) " >&6
3310 michael 912 else
3311     if test -n "$CC"; then
3312     ac_cv_prog_CC="$CC" # Let the user override the test.
3313     else
3314     ac_prog_rejected=no
3315     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316     for as_dir in $PATH
3317     do
3318     IFS=$as_save_IFS
3319     test -z "$as_dir" && as_dir=.
3320 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3321 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323     ac_prog_rejected=yes
3324     continue
3325     fi
3326     ac_cv_prog_CC="cc"
3327 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 michael 912 break 2
3329     fi
3330     done
3331 michael 967 done
3332 michael 912 IFS=$as_save_IFS
3333    
3334     if test $ac_prog_rejected = yes; then
3335     # We found a bogon in the path, so make sure we never use it.
3336     set dummy $ac_cv_prog_CC
3337     shift
3338     if test $# != 0; then
3339     # We chose a different compiler from the bogus one.
3340     # However, it has the same basename, so the bogon will be chosen
3341     # first if we set CC to just the basename; use the full file name.
3342     shift
3343     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344     fi
3345     fi
3346     fi
3347     fi
3348     CC=$ac_cv_prog_CC
3349     if test -n "$CC"; then
3350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 db 941 $as_echo "$CC" >&6; }
3352 michael 912 else
3353 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 db 941 $as_echo "no" >&6; }
3355 michael 912 fi
3356    
3357    
3358     fi
3359     if test -z "$CC"; then
3360     if test -n "$ac_tool_prefix"; then
3361     for ac_prog in cl.exe
3362     do
3363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3367 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3368 db 941 $as_echo_n "(cached) " >&6
3369 michael 912 else
3370     if test -n "$CC"; then
3371     ac_cv_prog_CC="$CC" # Let the user override the test.
3372     else
3373     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374     for as_dir in $PATH
3375     do
3376     IFS=$as_save_IFS
3377     test -z "$as_dir" && as_dir=.
3378 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3379 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 michael 912 break 2
3383     fi
3384     done
3385 michael 967 done
3386 michael 912 IFS=$as_save_IFS
3387    
3388     fi
3389     fi
3390     CC=$ac_cv_prog_CC
3391     if test -n "$CC"; then
3392 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 db 941 $as_echo "$CC" >&6; }
3394 michael 912 else
3395 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 db 941 $as_echo "no" >&6; }
3397 michael 912 fi
3398    
3399    
3400     test -n "$CC" && break
3401     done
3402     fi
3403     if test -z "$CC"; then
3404     ac_ct_CC=$CC
3405     for ac_prog in cl.exe
3406     do
3407     # Extract the first word of "$ac_prog", so it can be a program name with args.
3408     set dummy $ac_prog; ac_word=$2
3409 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3411 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3412 db 941 $as_echo_n "(cached) " >&6
3413 michael 912 else
3414     if test -n "$ac_ct_CC"; then
3415     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416     else
3417     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418     for as_dir in $PATH
3419     do
3420     IFS=$as_save_IFS
3421     test -z "$as_dir" && as_dir=.
3422 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3423 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424     ac_cv_prog_ac_ct_CC="$ac_prog"
3425 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 michael 912 break 2
3427     fi
3428     done
3429 michael 967 done
3430 michael 912 IFS=$as_save_IFS
3431    
3432     fi
3433     fi
3434     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435     if test -n "$ac_ct_CC"; then
3436 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 db 941 $as_echo "$ac_ct_CC" >&6; }
3438 michael 912 else
3439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 db 941 $as_echo "no" >&6; }
3441 michael 912 fi
3442    
3443    
3444     test -n "$ac_ct_CC" && break
3445     done
3446    
3447     if test "x$ac_ct_CC" = x; then
3448     CC=""
3449     else
3450     case $cross_compiling:$ac_tool_warned in
3451     yes:)
3452 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 michael 912 ac_tool_warned=yes ;;
3455     esac
3456     CC=$ac_ct_CC
3457     fi
3458     fi
3459    
3460     fi
3461    
3462    
3463 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 michael 967 as_fn_error "no acceptable C compiler found in \$PATH
3466     See \`config.log' for more details." "$LINENO" 5; }
3467 michael 912
3468     # Provide some information about the compiler.
3469 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470 db 941 set X $ac_compile
3471     ac_compiler=$2
3472 michael 967 for ac_option in --version -v -V -qversion; do
3473     { { ac_try="$ac_compiler $ac_option >&5"
3474 michael 912 case "(($ac_try" in
3475     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476     *) ac_try_echo=$ac_try;;
3477     esac
3478 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479     $as_echo "$ac_try_echo"; } >&5
3480     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 michael 912 ac_status=$?
3482 michael 967 if test -s conftest.err; then
3483     sed '10a\
3484     ... rest of stderr output deleted ...
3485     10q' conftest.err >conftest.er1
3486     cat conftest.er1 >&5
3487     fi
3488 michael 1033 rm -f conftest.er1 conftest.err
3489 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490     test $ac_status = 0; }
3491     done
3492 michael 912
3493 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 michael 912 /* end confdefs.h. */
3495 michael 1033
3496 michael 912 int
3497     main ()
3498     {
3499    
3500     ;
3501     return 0;
3502     }
3503     _ACEOF
3504     ac_clean_files_save=$ac_clean_files
3505 michael 1033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3506 michael 912 # Try to create an executable without -o first, disregard a.out.
3507     # It will help us diagnose broken compilers, and finding out an intuition
3508     # of exeext.
3509 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3510     $as_echo_n "checking whether the C compiler works... " >&6; }
3511 db 941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512    
3513     # The possible output files:
3514     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3515    
3516 michael 912 ac_rmfiles=
3517     for ac_file in $ac_files
3518     do
3519     case $ac_file in
3520 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3522     esac
3523     done
3524     rm -f $ac_rmfiles
3525    
3526 michael 967 if { { ac_try="$ac_link_default"
3527 michael 912 case "(($ac_try" in
3528     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529     *) ac_try_echo=$ac_try;;
3530     esac
3531 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532     $as_echo "$ac_try_echo"; } >&5
3533 michael 912 (eval "$ac_link_default") 2>&5
3534     ac_status=$?
3535 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536     test $ac_status = 0; }; then :
3537 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3538     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3539     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3540     # so that the user can short-circuit this test for compilers unknown to
3541     # Autoconf.
3542     for ac_file in $ac_files ''
3543     do
3544     test -f "$ac_file" || continue
3545     case $ac_file in
3546 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3547 michael 912 ;;
3548     [ab].out )
3549     # We found the default executable, but exeext='' is most
3550     # certainly right.
3551     break;;
3552     *.* )
3553 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 michael 912 then :; else
3555     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556     fi
3557     # We set ac_cv_exeext here because the later test for it is not
3558     # safe: cross compilers may not add the suffix if given an `-o'
3559     # argument, so we may need to know it at that point already.
3560     # Even if this section looks crufty: it has the advantage of
3561     # actually working.
3562     break;;
3563     * )
3564     break;;
3565     esac
3566     done
3567     test "$ac_cv_exeext" = no && ac_cv_exeext=
3568    
3569     else
3570     ac_file=''
3571     fi
3572 michael 967 if test -z "$ac_file"; then :
3573 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574     $as_echo "no" >&6; }
3575     $as_echo "$as_me: failed program was:" >&5
3576 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3577    
3578 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 michael 967 { as_fn_set_status 77
3581     as_fn_error "C compiler cannot create executables
3582     See \`config.log' for more details." "$LINENO" 5; }; }
3583 michael 1033 else
3584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585     $as_echo "yes" >&6; }
3586 michael 912 fi
3587 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588     $as_echo_n "checking for C compiler default output file name... " >&6; }
3589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590     $as_echo "$ac_file" >&6; }
3591 michael 912 ac_exeext=$ac_cv_exeext
3592    
3593 michael 1033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594 michael 912 ac_clean_files=$ac_clean_files_save
3595 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3597 michael 967 if { { ac_try="$ac_link"
3598 michael 912 case "(($ac_try" in
3599     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600     *) ac_try_echo=$ac_try;;
3601     esac
3602 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603     $as_echo "$ac_try_echo"; } >&5
3604 michael 912 (eval "$ac_link") 2>&5
3605     ac_status=$?
3606 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607     test $ac_status = 0; }; then :
3608 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3610     # work properly (i.e., refer to `conftest.exe'), while it won't with
3611     # `rm'.
3612     for ac_file in conftest.exe conftest conftest.*; do
3613     test -f "$ac_file" || continue
3614     case $ac_file in
3615 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617     break;;
3618     * ) break;;
3619     esac
3620     done
3621     else
3622 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 michael 967 as_fn_error "cannot compute suffix of executables: cannot compile and link
3625     See \`config.log' for more details." "$LINENO" 5; }
3626 michael 912 fi
3627 michael 1033 rm -f conftest conftest$ac_cv_exeext
3628 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629 db 941 $as_echo "$ac_cv_exeext" >&6; }
3630 michael 912
3631     rm -f conftest.$ac_ext
3632     EXEEXT=$ac_cv_exeext
3633     ac_exeext=$EXEEXT
3634 michael 1033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635     /* end confdefs.h. */
3636     #include <stdio.h>
3637     int
3638     main ()
3639     {
3640     FILE *f = fopen ("conftest.out", "w");
3641     return ferror (f) || fclose (f) != 0;
3642    
3643     ;
3644     return 0;
3645     }
3646     _ACEOF
3647     ac_clean_files="$ac_clean_files conftest.out"
3648     # Check that the compiler produces executables we can run. If not, either
3649     # the compiler is broken, or we cross compile.
3650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651     $as_echo_n "checking whether we are cross compiling... " >&6; }
3652     if test "$cross_compiling" != yes; then
3653     { { ac_try="$ac_link"
3654     case "(($ac_try" in
3655     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656     *) ac_try_echo=$ac_try;;
3657     esac
3658     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659     $as_echo "$ac_try_echo"; } >&5
3660     (eval "$ac_link") 2>&5
3661     ac_status=$?
3662     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663     test $ac_status = 0; }
3664     if { ac_try='./conftest$ac_cv_exeext'
3665     { { case "(($ac_try" in
3666     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667     *) ac_try_echo=$ac_try;;
3668     esac
3669     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670     $as_echo "$ac_try_echo"; } >&5
3671     (eval "$ac_try") 2>&5
3672     ac_status=$?
3673     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674     test $ac_status = 0; }; }; then
3675     cross_compiling=no
3676     else
3677     if test "$cross_compiling" = maybe; then
3678     cross_compiling=yes
3679     else
3680     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682     as_fn_error "cannot run C compiled programs.
3683     If you meant to cross compile, use \`--host'.
3684     See \`config.log' for more details." "$LINENO" 5; }
3685     fi
3686     fi
3687     fi
3688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689     $as_echo "$cross_compiling" >&6; }
3690    
3691     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692     ac_clean_files=$ac_clean_files_save
3693 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3695 michael 967 if test "${ac_cv_objext+set}" = set; then :
3696 db 941 $as_echo_n "(cached) " >&6
3697 michael 912 else
3698 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 michael 912 /* end confdefs.h. */
3700    
3701     int
3702     main ()
3703     {
3704    
3705     ;
3706     return 0;
3707     }
3708     _ACEOF
3709     rm -f conftest.o conftest.obj
3710 michael 967 if { { ac_try="$ac_compile"
3711 michael 912 case "(($ac_try" in
3712     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713     *) ac_try_echo=$ac_try;;
3714     esac
3715 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716     $as_echo "$ac_try_echo"; } >&5
3717 michael 912 (eval "$ac_compile") 2>&5
3718     ac_status=$?
3719 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720     test $ac_status = 0; }; then :
3721 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3722     test -f "$ac_file" || continue;
3723     case $ac_file in
3724 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3726     break;;
3727     esac
3728     done
3729     else
3730 db 941 $as_echo "$as_me: failed program was:" >&5
3731 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3732    
3733 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 michael 967 as_fn_error "cannot compute suffix of object files: cannot compile
3736     See \`config.log' for more details." "$LINENO" 5; }
3737 michael 912 fi
3738     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739     fi
3740 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741 db 941 $as_echo "$ac_cv_objext" >&6; }
3742 michael 912 OBJEXT=$ac_cv_objext
3743     ac_objext=$OBJEXT
3744 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746 michael 967 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3747 db 941 $as_echo_n "(cached) " >&6
3748 michael 912 else
3749 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 michael 912 /* end confdefs.h. */
3751    
3752     int
3753     main ()
3754     {
3755     #ifndef __GNUC__
3756     choke me
3757     #endif
3758    
3759     ;
3760     return 0;
3761     }
3762     _ACEOF
3763 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3764 michael 912 ac_compiler_gnu=yes
3765     else
3766 michael 967 ac_compiler_gnu=no
3767 michael 912 fi
3768     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770    
3771     fi
3772 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774     if test $ac_compiler_gnu = yes; then
3775     GCC=yes
3776     else
3777     GCC=
3778     fi
3779 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3780     ac_save_CFLAGS=$CFLAGS
3781 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3783 michael 967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3784 db 941 $as_echo_n "(cached) " >&6
3785 michael 912 else
3786     ac_save_c_werror_flag=$ac_c_werror_flag
3787     ac_c_werror_flag=yes
3788     ac_cv_prog_cc_g=no
3789     CFLAGS="-g"
3790 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 michael 912 /* end confdefs.h. */
3792    
3793     int
3794     main ()
3795     {
3796    
3797     ;
3798     return 0;
3799     }
3800     _ACEOF
3801 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3802 michael 912 ac_cv_prog_cc_g=yes
3803     else
3804 michael 967 CFLAGS=""
3805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 michael 912 /* end confdefs.h. */
3807    
3808     int
3809     main ()
3810     {
3811    
3812     ;
3813     return 0;
3814     }
3815     _ACEOF
3816 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3817    
3818 michael 912 else
3819 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3820 michael 912 CFLAGS="-g"
3821 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 michael 912 /* end confdefs.h. */
3823    
3824     int
3825     main ()
3826     {
3827    
3828     ;
3829     return 0;
3830     }
3831     _ACEOF
3832 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3833 michael 912 ac_cv_prog_cc_g=yes
3834     fi
3835     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836     fi
3837     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838     fi
3839     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840     ac_c_werror_flag=$ac_save_c_werror_flag
3841     fi
3842 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3844 michael 912 if test "$ac_test_CFLAGS" = set; then
3845     CFLAGS=$ac_save_CFLAGS
3846     elif test $ac_cv_prog_cc_g = yes; then
3847     if test "$GCC" = yes; then
3848     CFLAGS="-g -O2"
3849     else
3850     CFLAGS="-g"
3851     fi
3852     else
3853     if test "$GCC" = yes; then
3854     CFLAGS="-O2"
3855     else
3856     CFLAGS=
3857     fi
3858     fi
3859 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861 michael 967 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3862 db 941 $as_echo_n "(cached) " >&6
3863 michael 912 else
3864     ac_cv_prog_cc_c89=no
3865     ac_save_CC=$CC
3866 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 michael 912 /* end confdefs.h. */
3868     #include <stdarg.h>
3869     #include <stdio.h>
3870     #include <sys/types.h>
3871     #include <sys/stat.h>
3872     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873     struct buf { int x; };
3874     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875     static char *e (p, i)
3876     char **p;
3877     int i;
3878     {
3879     return p[i];
3880     }
3881     static char *f (char * (*g) (char **, int), char **p, ...)
3882     {
3883     char *s;
3884     va_list v;
3885     va_start (v,p);
3886     s = g (p, va_arg (v,int));
3887     va_end (v);
3888     return s;
3889     }
3890    
3891     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892     function prototypes and stuff, but not '\xHH' hex character constants.
3893     These don't provoke an error unfortunately, instead are silently treated
3894     as 'x'. The following induces an error, until -std is added to get
3895     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896     array size at least. It's necessary to write '\x00'==0 to get something
3897     that's true only with -std. */
3898     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3899    
3900     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901     inside strings and character constants. */
3902     #define FOO(x) 'x'
3903     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3904    
3905     int test (int i, double x);
3906     struct s1 {int (*f) (int a);};
3907     struct s2 {int (*f) (double a);};
3908     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909     int argc;
3910     char **argv;
3911     int
3912     main ()
3913     {
3914     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915     ;
3916     return 0;
3917     }
3918     _ACEOF
3919     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921     do
3922     CC="$ac_save_CC $ac_arg"
3923 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3924 michael 912 ac_cv_prog_cc_c89=$ac_arg
3925     fi
3926     rm -f core conftest.err conftest.$ac_objext
3927     test "x$ac_cv_prog_cc_c89" != "xno" && break
3928     done
3929     rm -f conftest.$ac_ext
3930     CC=$ac_save_CC
3931    
3932     fi
3933     # AC_CACHE_VAL
3934     case "x$ac_cv_prog_cc_c89" in
3935     x)
3936 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937 db 941 $as_echo "none needed" >&6; } ;;
3938 michael 912 xno)
3939 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940 db 941 $as_echo "unsupported" >&6; } ;;
3941 michael 912 *)
3942     CC="$CC $ac_cv_prog_cc_c89"
3943 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 michael 912 esac
3946 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3947 michael 912
3948 michael 967 fi
3949 michael 912
3950     ac_ext=c
3951     ac_cpp='$CPP $CPPFLAGS'
3952     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955    
3956     depcc="$CC" am_compiler_list=
3957    
3958 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3959 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3960 michael 967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3961 db 941 $as_echo_n "(cached) " >&6
3962 michael 912 else
3963     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964     # We make a subdir and do the tests there. Otherwise we can end up
3965     # making bogus files that we don't know about and never remove. For
3966     # instance it was reported that on HP-UX the gcc test will end up
3967     # making a dummy file named `D' -- because `-MD' means `put the output
3968     # in D'.
3969     mkdir conftest.dir
3970     # Copy depcomp to subdir because otherwise we won't find it if we're
3971     # using a relative directory.
3972     cp "$am_depcomp" conftest.dir
3973     cd conftest.dir
3974     # We will build objects and dependencies in a subdirectory because
3975     # it helps to detect inapplicable dependency modes. For instance
3976     # both Tru64's cc and ICC support -MD to output dependencies as a
3977     # side effect of compilation, but ICC will put the dependencies in
3978     # the current directory while Tru64 will put them in the object
3979     # directory.
3980     mkdir sub
3981    
3982     am_cv_CC_dependencies_compiler_type=none
3983     if test "$am_compiler_list" = ""; then
3984     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985     fi
3986 michael 945 am__universal=false
3987     case " $depcc " in #(
3988     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3989     esac
3990    
3991 michael 912 for depmode in $am_compiler_list; do
3992     # Setup a source with many dependencies, because some compilers
3993     # like to wrap large dependency lists on column 80 (with \), and
3994     # we should not choose a depcomp mode which is confused by this.
3995     #
3996     # We need to recreate these files for each test, as the compiler may
3997     # overwrite some of them when testing with obscure command lines.
3998     # This happens at least with the AIX C compiler.
3999     : > sub/conftest.c
4000     for i in 1 2 3 4 5 6; do
4001     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4003     # Solaris 8's {/usr,}/bin/sh.
4004     touch sub/conftst$i.h
4005     done
4006     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007    
4008 michael 945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4009     # mode. It turns out that the SunPro C++ compiler does not properly
4010     # handle `-M -o', and we need to detect this. Also, some Intel
4011     # versions had trouble with output in subdirs
4012     am__obj=sub/conftest.${OBJEXT-o}
4013     am__minus_obj="-o $am__obj"
4014 michael 912 case $depmode in
4015 michael 945 gcc)
4016     # This depmode causes a compiler race in universal mode.
4017     test "$am__universal" = false || continue
4018     ;;
4019 michael 912 nosideeffect)
4020     # after this tag, mechanisms are not by side-effect, so they'll
4021     # only be used when explicitly requested
4022     if test "x$enable_dependency_tracking" = xyes; then
4023     continue
4024     else
4025     break
4026     fi
4027     ;;
4028 michael 945 msvisualcpp | msvcmsys)
4029     # This compiler won't grok `-c -o', but also, the minuso test has
4030     # not run yet. These depmodes are late enough in the game, and
4031     # so weak that their functioning should not be impacted.
4032     am__obj=conftest.${OBJEXT-o}
4033     am__minus_obj=
4034     ;;
4035 michael 912 none) break ;;
4036     esac
4037     if depmode=$depmode \
4038 michael 945 source=sub/conftest.c object=$am__obj \
4039 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4040 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4041 michael 912 >/dev/null 2>conftest.err &&
4042     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4043     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4045 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046     # icc doesn't choke on unknown options, it will just issue warnings
4047     # or remarks (even with -Werror). So we grep stderr for any message
4048     # that says an option was ignored or not supported.
4049     # When given -MP, icc 7.0 and 7.1 complain thusly:
4050     # icc: Command line warning: ignoring option '-M'; no argument required
4051     # The diagnosis changed in icc 8.0:
4052     # icc: Command line remark: option '-MP' not supported
4053     if (grep 'ignoring option' conftest.err ||
4054     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055     am_cv_CC_dependencies_compiler_type=$depmode
4056     break
4057     fi
4058     fi
4059     done
4060    
4061     cd ..
4062     rm -rf conftest.dir
4063     else
4064     am_cv_CC_dependencies_compiler_type=none
4065     fi
4066    
4067     fi
4068 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4069 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4070 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4071    
4072     if
4073     test "x$enable_dependency_tracking" != xno \
4074     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4075     am__fastdepCC_TRUE=
4076     am__fastdepCC_FALSE='#'
4077     else
4078     am__fastdepCC_TRUE='#'
4079     am__fastdepCC_FALSE=
4080     fi
4081    
4082    
4083 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4084     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4085     if test "${ac_cv_prog_cc_c99+set}" = set; then :
4086     $as_echo_n "(cached) " >&6
4087     else
4088     ac_cv_prog_cc_c99=no
4089     ac_save_CC=$CC
4090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091     /* end confdefs.h. */
4092     #include <stdarg.h>
4093     #include <stdbool.h>
4094     #include <stdlib.h>
4095     #include <wchar.h>
4096     #include <stdio.h>
4097    
4098     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4099     #define debug(...) fprintf (stderr, __VA_ARGS__)
4100     #define showlist(...) puts (#__VA_ARGS__)
4101     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4102     static void
4103     test_varargs_macros (void)
4104     {
4105     int x = 1234;
4106     int y = 5678;
4107     debug ("Flag");
4108     debug ("X = %d\n", x);
4109     showlist (The first, second, and third items.);
4110     report (x>y, "x is %d but y is %d", x, y);
4111     }
4112    
4113     // Check long long types.
4114     #define BIG64 18446744073709551615ull
4115     #define BIG32 4294967295ul
4116     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4117     #if !BIG_OK
4118     your preprocessor is broken;
4119     #endif
4120     #if BIG_OK
4121     #else
4122     your preprocessor is broken;
4123     #endif
4124     static long long int bignum = -9223372036854775807LL;
4125     static unsigned long long int ubignum = BIG64;
4126    
4127     struct incomplete_array
4128     {
4129     int datasize;
4130     double data[];
4131     };
4132    
4133     struct named_init {
4134     int number;
4135     const wchar_t *name;
4136     double average;
4137     };
4138    
4139     typedef const char *ccp;
4140    
4141     static inline int
4142     test_restrict (ccp restrict text)
4143     {
4144     // See if C++-style comments work.
4145     // Iterate through items via the restricted pointer.
4146     // Also check for declarations in for loops.
4147     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4148     continue;
4149     return 0;
4150     }
4151    
4152     // Check varargs and va_copy.
4153     static void
4154     test_varargs (const char *format, ...)
4155     {
4156     va_list args;
4157     va_start (args, format);
4158     va_list args_copy;
4159     va_copy (args_copy, args);
4160    
4161     const char *str;
4162     int number;
4163     float fnumber;
4164    
4165     while (*format)
4166     {
4167     switch (*format++)
4168     {
4169     case 's': // string
4170     str = va_arg (args_copy, const char *);
4171     break;
4172     case 'd': // int
4173     number = va_arg (args_copy, int);
4174     break;
4175     case 'f': // float
4176     fnumber = va_arg (args_copy, double);
4177     break;
4178     default:
4179     break;
4180     }
4181     }
4182     va_end (args_copy);
4183     va_end (args);
4184     }
4185    
4186     int
4187     main ()
4188     {
4189    
4190     // Check bool.
4191     _Bool success = false;
4192    
4193     // Check restrict.
4194     if (test_restrict ("String literal") == 0)
4195     success = true;
4196     char *restrict newvar = "Another string";
4197    
4198     // Check varargs.
4199     test_varargs ("s, d' f .", "string", 65, 34.234);
4200     test_varargs_macros ();
4201    
4202     // Check flexible array members.
4203     struct incomplete_array *ia =
4204     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4205     ia->datasize = 10;
4206     for (int i = 0; i < ia->datasize; ++i)
4207     ia->data[i] = i * 1.234;
4208    
4209     // Check named initializers.
4210     struct named_init ni = {
4211     .number = 34,
4212     .name = L"Test wide string",
4213     .average = 543.34343,
4214     };
4215    
4216     ni.number = 58;
4217    
4218     int dynamic_array[ni.number];
4219     dynamic_array[ni.number - 1] = 543;
4220    
4221     // work around unused variable warnings
4222     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4223     || dynamic_array[ni.number - 1] != 543);
4224    
4225     ;
4226     return 0;
4227     }
4228     _ACEOF
4229     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4230     do
4231     CC="$ac_save_CC $ac_arg"
4232     if ac_fn_c_try_compile "$LINENO"; then :
4233     ac_cv_prog_cc_c99=$ac_arg
4234     fi
4235     rm -f core conftest.err conftest.$ac_objext
4236     test "x$ac_cv_prog_cc_c99" != "xno" && break
4237     done
4238     rm -f conftest.$ac_ext
4239     CC=$ac_save_CC
4240    
4241     fi
4242     # AC_CACHE_VAL
4243     case "x$ac_cv_prog_cc_c99" in
4244     x)
4245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246     $as_echo "none needed" >&6; } ;;
4247     xno)
4248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249     $as_echo "unsupported" >&6; } ;;
4250     *)
4251     CC="$CC $ac_cv_prog_cc_c99"
4252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4253     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4254     esac
4255     if test "x$ac_cv_prog_cc_c99" != xno; then :
4256    
4257     fi
4258    
4259    
4260     if test "$ac_cv_prog_cc_c99" = "no"; then :
4261     as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4262     fi
4263 michael 912 for ac_prog in 'bison -y' byacc
4264     do
4265     # Extract the first word of "$ac_prog", so it can be a program name with args.
4266     set dummy $ac_prog; ac_word=$2
4267 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4269 michael 967 if test "${ac_cv_prog_YACC+set}" = set; then :
4270 db 941 $as_echo_n "(cached) " >&6
4271 michael 912 else
4272     if test -n "$YACC"; then
4273     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4274     else
4275     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276     for as_dir in $PATH
4277     do
4278     IFS=$as_save_IFS
4279     test -z "$as_dir" && as_dir=.
4280 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4281 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282     ac_cv_prog_YACC="$ac_prog"
4283 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 michael 912 break 2
4285     fi
4286     done
4287 michael 967 done
4288 michael 912 IFS=$as_save_IFS
4289    
4290     fi
4291     fi
4292     YACC=$ac_cv_prog_YACC
4293     if test -n "$YACC"; then
4294 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4295 db 941 $as_echo "$YACC" >&6; }
4296 michael 912 else
4297 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 db 941 $as_echo "no" >&6; }
4299 michael 912 fi
4300    
4301    
4302     test -n "$YACC" && break
4303     done
4304     test -n "$YACC" || YACC="yacc"
4305    
4306    
4307     for ac_prog in flex lex
4308     do
4309     # Extract the first word of "$ac_prog", so it can be a program name with args.
4310     set dummy $ac_prog; ac_word=$2
4311 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4313 michael 967 if test "${ac_cv_prog_LEX+set}" = set; then :
4314 db 941 $as_echo_n "(cached) " >&6
4315 michael 912 else
4316     if test -n "$LEX"; then
4317     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4318     else
4319     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320     for as_dir in $PATH
4321     do
4322     IFS=$as_save_IFS
4323     test -z "$as_dir" && as_dir=.
4324 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4325 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_LEX="$ac_prog"
4327 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 michael 912 break 2
4329     fi
4330     done
4331 michael 967 done
4332 michael 912 IFS=$as_save_IFS
4333    
4334     fi
4335     fi
4336     LEX=$ac_cv_prog_LEX
4337     if test -n "$LEX"; then
4338 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4339 db 941 $as_echo "$LEX" >&6; }
4340 michael 912 else
4341 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 db 941 $as_echo "no" >&6; }
4343 michael 912 fi
4344    
4345    
4346     test -n "$LEX" && break
4347     done
4348     test -n "$LEX" || LEX=":"
4349    
4350     if test "x$LEX" != "x:"; then
4351     cat >conftest.l <<_ACEOF
4352     %%
4353     a { ECHO; }
4354     b { REJECT; }
4355     c { yymore (); }
4356     d { yyless (1); }
4357     e { yyless (input () != 0); }
4358     f { unput (yytext[0]); }
4359     . { BEGIN INITIAL; }
4360     %%
4361     #ifdef YYTEXT_POINTER
4362     extern char *yytext;
4363     #endif
4364     int
4365     main (void)
4366     {
4367     return ! yylex () + ! yywrap ();
4368     }
4369     _ACEOF
4370 michael 967 { { ac_try="$LEX conftest.l"
4371 michael 912 case "(($ac_try" in
4372     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373     *) ac_try_echo=$ac_try;;
4374     esac
4375 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376     $as_echo "$ac_try_echo"; } >&5
4377 michael 912 (eval "$LEX conftest.l") 2>&5
4378     ac_status=$?
4379 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380     test $ac_status = 0; }
4381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4382 db 941 $as_echo_n "checking lex output file root... " >&6; }
4383 michael 967 if test "${ac_cv_prog_lex_root+set}" = set; then :
4384 db 941 $as_echo_n "(cached) " >&6
4385 michael 912 else
4386    
4387     if test -f lex.yy.c; then
4388     ac_cv_prog_lex_root=lex.yy
4389     elif test -f lexyy.c; then
4390     ac_cv_prog_lex_root=lexyy
4391     else
4392 michael 967 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4393 michael 912 fi
4394     fi
4395 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4396 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4397 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4398    
4399     if test -z "${LEXLIB+set}"; then
4400 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4401 db 941 $as_echo_n "checking lex library... " >&6; }
4402 michael 967 if test "${ac_cv_lib_lex+set}" = set; then :
4403 db 941 $as_echo_n "(cached) " >&6
4404 michael 912 else
4405    
4406     ac_save_LIBS=$LIBS
4407     ac_cv_lib_lex='none needed'
4408     for ac_lib in '' -lfl -ll; do
4409     LIBS="$ac_lib $ac_save_LIBS"
4410 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411     /* end confdefs.h. */
4412 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4413     _ACEOF
4414 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4415 michael 912 ac_cv_lib_lex=$ac_lib
4416     fi
4417 michael 967 rm -f core conftest.err conftest.$ac_objext \
4418     conftest$ac_exeext conftest.$ac_ext
4419 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4420     done
4421     LIBS=$ac_save_LIBS
4422    
4423     fi
4424 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4425 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4426 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4427     fi
4428    
4429    
4430 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4431 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4432 michael 967 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4433 db 941 $as_echo_n "(cached) " >&6
4434 michael 912 else
4435     # POSIX says lex can declare yytext either as a pointer or an array; the
4436     # default is implementation-dependent. Figure out which it is, since
4437     # not all implementations provide the %pointer and %array declarations.
4438     ac_cv_prog_lex_yytext_pointer=no
4439     ac_save_LIBS=$LIBS
4440     LIBS="$LEXLIB $ac_save_LIBS"
4441 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442     /* end confdefs.h. */
4443 michael 912 #define YYTEXT_POINTER 1
4444     `cat $LEX_OUTPUT_ROOT.c`
4445     _ACEOF
4446 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4447 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4448     fi
4449 michael 967 rm -f core conftest.err conftest.$ac_objext \
4450     conftest$ac_exeext conftest.$ac_ext
4451 michael 912 LIBS=$ac_save_LIBS
4452    
4453     fi
4454 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4455 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4456 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4457    
4458 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4459 michael 912
4460     fi
4461     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4462    
4463     fi
4464     if test "$LEX" = :; then
4465     LEX=${am_missing_run}flex
4466     fi
4467 db 941
4468 michael 912
4469 michael 1015 # Initializing libtool.
4470 michael 945 case `pwd` in
4471     *\ * | *\ *)
4472 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4473 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4474     esac
4475    
4476    
4477    
4478     macro_version='2.2.6'
4479     macro_revision='1.3012'
4480    
4481    
4482    
4483    
4484    
4485    
4486    
4487    
4488    
4489    
4490    
4491    
4492    
4493     ltmain="$ac_aux_dir/ltmain.sh"
4494    
4495 michael 912 # Make sure we can run config.sub.
4496     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4497 michael 967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4498 michael 912
4499 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4500 db 941 $as_echo_n "checking build system type... " >&6; }
4501 michael 967 if test "${ac_cv_build+set}" = set; then :
4502 db 941 $as_echo_n "(cached) " >&6
4503 michael 912 else
4504     ac_build_alias=$build_alias
4505     test "x$ac_build_alias" = x &&
4506     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4507     test "x$ac_build_alias" = x &&
4508 michael 967 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4509 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4510 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4511 michael 912
4512     fi
4513 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4514 db 941 $as_echo "$ac_cv_build" >&6; }
4515 michael 912 case $ac_cv_build in
4516     *-*-*) ;;
4517 michael 967 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4518 michael 912 esac
4519     build=$ac_cv_build
4520     ac_save_IFS=$IFS; IFS='-'
4521     set x $ac_cv_build
4522     shift
4523     build_cpu=$1
4524     build_vendor=$2
4525     shift; shift
4526     # Remember, the first character of IFS is used to create $*,
4527     # except with old shells:
4528     build_os=$*
4529     IFS=$ac_save_IFS
4530     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4531    
4532    
4533 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4534 db 941 $as_echo_n "checking host system type... " >&6; }
4535 michael 967 if test "${ac_cv_host+set}" = set; then :
4536 db 941 $as_echo_n "(cached) " >&6
4537 michael 912 else
4538     if test "x$host_alias" = x; then
4539     ac_cv_host=$ac_cv_build
4540     else
4541     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4542 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4543 michael 912 fi
4544    
4545     fi
4546 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4547 db 941 $as_echo "$ac_cv_host" >&6; }
4548 michael 912 case $ac_cv_host in
4549     *-*-*) ;;
4550 michael 967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4551 michael 912 esac
4552     host=$ac_cv_host
4553     ac_save_IFS=$IFS; IFS='-'
4554     set x $ac_cv_host
4555     shift
4556     host_cpu=$1
4557     host_vendor=$2
4558     shift; shift
4559     # Remember, the first character of IFS is used to create $*,
4560     # except with old shells:
4561     host_os=$*
4562     IFS=$ac_save_IFS
4563     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4564    
4565    
4566 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4567 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4568 michael 967 if test "${ac_cv_path_SED+set}" = set; then :
4569 db 941 $as_echo_n "(cached) " >&6
4570 michael 912 else
4571 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4572     for ac_i in 1 2 3 4 5 6 7; do
4573     ac_script="$ac_script$as_nl$ac_script"
4574     done
4575     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4576 michael 967 { ac_script=; unset ac_script;}
4577 michael 945 if test -z "$SED"; then
4578     ac_path_SED_found=false
4579     # Loop through the user's path and test for each of PROGNAME-LIST
4580     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 michael 912 for as_dir in $PATH
4582     do
4583     IFS=$as_save_IFS
4584     test -z "$as_dir" && as_dir=.
4585 michael 967 for ac_prog in sed gsed; do
4586 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4587 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4588     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4589     # Check for GNU ac_path_SED and select it if it is found.
4590     # Check for GNU $ac_path_SED
4591     case `"$ac_path_SED" --version 2>&1` in
4592     *GNU*)
4593     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4594     *)
4595     ac_count=0
4596     $as_echo_n 0123456789 >"conftest.in"
4597     while :
4598     do
4599     cat "conftest.in" "conftest.in" >"conftest.tmp"
4600     mv "conftest.tmp" "conftest.in"
4601     cp "conftest.in" "conftest.nl"
4602     $as_echo '' >> "conftest.nl"
4603     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4606 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4607     # Best one so far, save it but keep looking for a better one
4608     ac_cv_path_SED="$ac_path_SED"
4609     ac_path_SED_max=$ac_count
4610     fi
4611     # 10*(2^10) chars as input seems more than enough
4612     test $ac_count -gt 10 && break
4613     done
4614     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615     esac
4616    
4617     $ac_path_SED_found && break 3
4618 michael 912 done
4619     done
4620 michael 967 done
4621 michael 912 IFS=$as_save_IFS
4622 michael 945 if test -z "$ac_cv_path_SED"; then
4623 michael 967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4624 michael 912 fi
4625 michael 945 else
4626     ac_cv_path_SED=$SED
4627     fi
4628 michael 912
4629     fi
4630 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4631 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4632     SED="$ac_cv_path_SED"
4633     rm -f conftest.sed
4634 michael 912
4635 michael 945 test -z "$SED" && SED=sed
4636     Xsed="$SED -e 1s/^X//"
4637 michael 912
4638    
4639 michael 945
4640    
4641    
4642    
4643    
4644    
4645    
4646    
4647    
4648 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4649 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4650 michael 967 if test "${ac_cv_path_GREP+set}" = set; then :
4651 db 941 $as_echo_n "(cached) " >&6
4652 michael 912 else
4653 db 941 if test -z "$GREP"; then
4654 michael 912 ac_path_GREP_found=false
4655 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4656     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4658     do
4659     IFS=$as_save_IFS
4660     test -z "$as_dir" && as_dir=.
4661 michael 967 for ac_prog in grep ggrep; do
4662 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4663     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4664     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4665     # Check for GNU ac_path_GREP and select it if it is found.
4666 michael 912 # Check for GNU $ac_path_GREP
4667     case `"$ac_path_GREP" --version 2>&1` in
4668     *GNU*)
4669     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4670     *)
4671     ac_count=0
4672 db 941 $as_echo_n 0123456789 >"conftest.in"
4673 michael 912 while :
4674     do
4675     cat "conftest.in" "conftest.in" >"conftest.tmp"
4676     mv "conftest.tmp" "conftest.in"
4677     cp "conftest.in" "conftest.nl"
4678 db 941 $as_echo 'GREP' >> "conftest.nl"
4679 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4683     # Best one so far, save it but keep looking for a better one
4684     ac_cv_path_GREP="$ac_path_GREP"
4685     ac_path_GREP_max=$ac_count
4686     fi
4687     # 10*(2^10) chars as input seems more than enough
4688     test $ac_count -gt 10 && break
4689     done
4690     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691     esac
4692    
4693 db 941 $ac_path_GREP_found && break 3
4694     done
4695 michael 912 done
4696 michael 967 done
4697 michael 912 IFS=$as_save_IFS
4698 db 941 if test -z "$ac_cv_path_GREP"; then
4699 michael 967 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4700 db 941 fi
4701 michael 912 else
4702     ac_cv_path_GREP=$GREP
4703     fi
4704    
4705     fi
4706 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4707 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4708 michael 912 GREP="$ac_cv_path_GREP"
4709    
4710    
4711 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4712 db 941 $as_echo_n "checking for egrep... " >&6; }
4713 michael 967 if test "${ac_cv_path_EGREP+set}" = set; then :
4714 db 941 $as_echo_n "(cached) " >&6
4715 michael 912 else
4716     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4717     then ac_cv_path_EGREP="$GREP -E"
4718     else
4719 db 941 if test -z "$EGREP"; then
4720 michael 912 ac_path_EGREP_found=false
4721 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4722     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4724     do
4725     IFS=$as_save_IFS
4726     test -z "$as_dir" && as_dir=.
4727 michael 967 for ac_prog in egrep; do
4728 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4729     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4730     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4731     # Check for GNU ac_path_EGREP and select it if it is found.
4732 michael 912 # Check for GNU $ac_path_EGREP
4733     case `"$ac_path_EGREP" --version 2>&1` in
4734     *GNU*)
4735     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4736     *)
4737     ac_count=0
4738 db 941 $as_echo_n 0123456789 >"conftest.in"
4739 michael 912 while :
4740     do
4741     cat "conftest.in" "conftest.in" >"conftest.tmp"
4742     mv "conftest.tmp" "conftest.in"
4743     cp "conftest.in" "conftest.nl"
4744 db 941 $as_echo 'EGREP' >> "conftest.nl"
4745 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4746     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4747 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4748 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4749     # Best one so far, save it but keep looking for a better one
4750     ac_cv_path_EGREP="$ac_path_EGREP"
4751     ac_path_EGREP_max=$ac_count
4752     fi
4753     # 10*(2^10) chars as input seems more than enough
4754     test $ac_count -gt 10 && break
4755     done
4756     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4757     esac
4758    
4759 db 941 $ac_path_EGREP_found && break 3
4760     done
4761 michael 912 done
4762 michael 967 done
4763 michael 912 IFS=$as_save_IFS
4764 db 941 if test -z "$ac_cv_path_EGREP"; then
4765 michael 967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4766 db 941 fi
4767 michael 912 else
4768     ac_cv_path_EGREP=$EGREP
4769     fi
4770    
4771     fi
4772     fi
4773 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4774 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4775 michael 912 EGREP="$ac_cv_path_EGREP"
4776    
4777    
4778 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4779 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4780 michael 967 if test "${ac_cv_path_FGREP+set}" = set; then :
4781 michael 945 $as_echo_n "(cached) " >&6
4782     else
4783     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4784     then ac_cv_path_FGREP="$GREP -F"
4785     else
4786     if test -z "$FGREP"; then
4787     ac_path_FGREP_found=false
4788     # Loop through the user's path and test for each of PROGNAME-LIST
4789     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791     do
4792     IFS=$as_save_IFS
4793     test -z "$as_dir" && as_dir=.
4794 michael 967 for ac_prog in fgrep; do
4795 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4796     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4797     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4798     # Check for GNU ac_path_FGREP and select it if it is found.
4799     # Check for GNU $ac_path_FGREP
4800     case `"$ac_path_FGREP" --version 2>&1` in
4801     *GNU*)
4802     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4803     *)
4804     ac_count=0
4805     $as_echo_n 0123456789 >"conftest.in"
4806     while :
4807     do
4808     cat "conftest.in" "conftest.in" >"conftest.tmp"
4809     mv "conftest.tmp" "conftest.in"
4810     cp "conftest.in" "conftest.nl"
4811     $as_echo 'FGREP' >> "conftest.nl"
4812     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4816     # Best one so far, save it but keep looking for a better one
4817     ac_cv_path_FGREP="$ac_path_FGREP"
4818     ac_path_FGREP_max=$ac_count
4819     fi
4820     # 10*(2^10) chars as input seems more than enough
4821     test $ac_count -gt 10 && break
4822     done
4823     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824     esac
4825 michael 912
4826 michael 945 $ac_path_FGREP_found && break 3
4827     done
4828     done
4829 michael 967 done
4830 michael 945 IFS=$as_save_IFS
4831     if test -z "$ac_cv_path_FGREP"; then
4832 michael 967 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4833 michael 945 fi
4834     else
4835     ac_cv_path_FGREP=$FGREP
4836     fi
4837    
4838     fi
4839     fi
4840 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4841 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4842     FGREP="$ac_cv_path_FGREP"
4843    
4844    
4845     test -z "$GREP" && GREP=grep
4846    
4847    
4848    
4849    
4850    
4851    
4852    
4853    
4854    
4855    
4856    
4857    
4858    
4859    
4860    
4861    
4862    
4863    
4864    
4865 michael 912 # Check whether --with-gnu-ld was given.
4866 michael 967 if test "${with_gnu_ld+set}" = set; then :
4867 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4868     else
4869     with_gnu_ld=no
4870     fi
4871    
4872     ac_prog=ld
4873     if test "$GCC" = yes; then
4874     # Check if gcc -print-prog-name=ld gives a path.
4875 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4876 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4877 michael 912 case $host in
4878     *-*-mingw*)
4879     # gcc leaves a trailing carriage return which upsets mingw
4880     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4881     *)
4882     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4883     esac
4884     case $ac_prog in
4885     # Accept absolute paths.
4886     [\\/]* | ?:[\\/]*)
4887     re_direlt='/[^/][^/]*/\.\./'
4888     # Canonicalize the pathname of ld
4889 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4890     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4891     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4892 michael 912 done
4893     test -z "$LD" && LD="$ac_prog"
4894     ;;
4895     "")
4896     # If it fails, then pretend we aren't using GCC.
4897     ac_prog=ld
4898     ;;
4899     *)
4900     # If it is relative, then search for the first ld in PATH.
4901     with_gnu_ld=unknown
4902     ;;
4903     esac
4904     elif test "$with_gnu_ld" = yes; then
4905 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4906 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4907 michael 912 else
4908 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4909 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4910 michael 912 fi
4911 michael 967 if test "${lt_cv_path_LD+set}" = set; then :
4912 db 941 $as_echo_n "(cached) " >&6
4913 michael 912 else
4914     if test -z "$LD"; then
4915     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4916     for ac_dir in $PATH; do
4917     IFS="$lt_save_ifs"
4918     test -z "$ac_dir" && ac_dir=.
4919     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4920     lt_cv_path_LD="$ac_dir/$ac_prog"
4921     # Check to see if the program is GNU ld. I'd rather use --version,
4922     # but apparently some variants of GNU ld only accept -v.
4923     # Break only if it was the GNU/non-GNU ld that we prefer.
4924     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4925     *GNU* | *'with BFD'*)
4926     test "$with_gnu_ld" != no && break
4927     ;;
4928     *)
4929     test "$with_gnu_ld" != yes && break
4930     ;;
4931     esac
4932     fi
4933     done
4934     IFS="$lt_save_ifs"
4935     else
4936     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4937     fi
4938     fi
4939    
4940     LD="$lt_cv_path_LD"
4941     if test -n "$LD"; then
4942 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4943 db 941 $as_echo "$LD" >&6; }
4944 michael 912 else
4945 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 db 941 $as_echo "no" >&6; }
4947 michael 912 fi
4948 michael 967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4950 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4951 michael 967 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4952 db 941 $as_echo_n "(cached) " >&6
4953 michael 912 else
4954     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4955     case `$LD -v 2>&1 </dev/null` in
4956     *GNU* | *'with BFD'*)
4957     lt_cv_prog_gnu_ld=yes
4958     ;;
4959     *)
4960     lt_cv_prog_gnu_ld=no
4961     ;;
4962     esac
4963     fi
4964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4965 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4966 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4967    
4968    
4969    
4970 michael 945
4971    
4972    
4973    
4974    
4975    
4976 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4977 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4978 michael 967 if test "${lt_cv_path_NM+set}" = set; then :
4979 db 941 $as_echo_n "(cached) " >&6
4980 michael 912 else
4981     if test -n "$NM"; then
4982     # Let the user override the test.
4983     lt_cv_path_NM="$NM"
4984     else
4985     lt_nm_to_check="${ac_tool_prefix}nm"
4986     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4987     lt_nm_to_check="$lt_nm_to_check nm"
4988     fi
4989     for lt_tmp_nm in $lt_nm_to_check; do
4990     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4991     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4992     IFS="$lt_save_ifs"
4993     test -z "$ac_dir" && ac_dir=.
4994     tmp_nm="$ac_dir/$lt_tmp_nm"
4995     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4996     # Check to see if the nm accepts a BSD-compat flag.
4997     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4998     # nm: unknown option "B" ignored
4999     # Tru64's nm complains that /dev/null is an invalid object file
5000     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5001     */dev/null* | *'Invalid file or object type'*)
5002     lt_cv_path_NM="$tmp_nm -B"
5003     break
5004     ;;
5005     *)
5006     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5007     */dev/null*)
5008     lt_cv_path_NM="$tmp_nm -p"
5009     break
5010     ;;
5011     *)
5012     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5013     continue # so that we can try to find one that supports BSD flags
5014     ;;
5015     esac
5016     ;;
5017     esac
5018     fi
5019     done
5020     IFS="$lt_save_ifs"
5021     done
5022 michael 945 : ${lt_cv_path_NM=no}
5023 michael 912 fi
5024     fi
5025 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5026 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5027 michael 945 if test "$lt_cv_path_NM" != "no"; then
5028     NM="$lt_cv_path_NM"
5029     else
5030     # Didn't find any BSD compatible name lister, look for dumpbin.
5031     if test -n "$ac_tool_prefix"; then
5032     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5033     do
5034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5035     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5036 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5038 michael 967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5039 michael 945 $as_echo_n "(cached) " >&6
5040     else
5041     if test -n "$DUMPBIN"; then
5042     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5043     else
5044     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045     for as_dir in $PATH
5046     do
5047     IFS=$as_save_IFS
5048     test -z "$as_dir" && as_dir=.
5049 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5050 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5052 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 michael 945 break 2
5054     fi
5055     done
5056 michael 967 done
5057 michael 945 IFS=$as_save_IFS
5058 michael 912
5059 michael 945 fi
5060     fi
5061     DUMPBIN=$ac_cv_prog_DUMPBIN
5062     if test -n "$DUMPBIN"; then
5063 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5064 michael 945 $as_echo "$DUMPBIN" >&6; }
5065     else
5066 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 michael 945 $as_echo "no" >&6; }
5068     fi
5069    
5070    
5071     test -n "$DUMPBIN" && break
5072     done
5073     fi
5074     if test -z "$DUMPBIN"; then
5075     ac_ct_DUMPBIN=$DUMPBIN
5076     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5077     do
5078     # Extract the first word of "$ac_prog", so it can be a program name with args.
5079     set dummy $ac_prog; ac_word=$2
5080 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5082 michael 967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5083 michael 945 $as_echo_n "(cached) " >&6
5084     else
5085     if test -n "$ac_ct_DUMPBIN"; then
5086     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5087     else
5088     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089     for as_dir in $PATH
5090     do
5091     IFS=$as_save_IFS
5092     test -z "$as_dir" && as_dir=.
5093 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5094 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5096 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 michael 945 break 2
5098     fi
5099     done
5100 michael 967 done
5101 michael 945 IFS=$as_save_IFS
5102    
5103     fi
5104     fi
5105     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5106     if test -n "$ac_ct_DUMPBIN"; then
5107 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5108 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5109     else
5110 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 michael 945 $as_echo "no" >&6; }
5112     fi
5113    
5114    
5115     test -n "$ac_ct_DUMPBIN" && break
5116     done
5117    
5118     if test "x$ac_ct_DUMPBIN" = x; then
5119     DUMPBIN=":"
5120     else
5121     case $cross_compiling:$ac_tool_warned in
5122     yes:)
5123 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5124 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125     ac_tool_warned=yes ;;
5126     esac
5127     DUMPBIN=$ac_ct_DUMPBIN
5128     fi
5129     fi
5130    
5131    
5132     if test "$DUMPBIN" != ":"; then
5133     NM="$DUMPBIN"
5134     fi
5135     fi
5136     test -z "$NM" && NM=nm
5137    
5138    
5139    
5140    
5141    
5142    
5143 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5144 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5145 michael 967 if test "${lt_cv_nm_interface+set}" = set; then :
5146 michael 945 $as_echo_n "(cached) " >&6
5147     else
5148     lt_cv_nm_interface="BSD nm"
5149     echo "int some_variable = 0;" > conftest.$ac_ext
5150 michael 1033 (eval echo "\"\$as_me:5150: $ac_compile\"" >&5)
5151 michael 945 (eval "$ac_compile" 2>conftest.err)
5152     cat conftest.err >&5
5153 michael 1033 (eval echo "\"\$as_me:5153: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5154 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5155     cat conftest.err >&5
5156 michael 1033 (eval echo "\"\$as_me:5156: output\"" >&5)
5157 michael 945 cat conftest.out >&5
5158     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5159     lt_cv_nm_interface="MS dumpbin"
5160     fi
5161     rm -f conftest*
5162     fi
5163 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5164 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5165    
5166 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5167 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5168 michael 912 LN_S=$as_ln_s
5169     if test "$LN_S" = "ln -s"; then
5170 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 db 941 $as_echo "yes" >&6; }
5172 michael 912 else
5173 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5174 db 941 $as_echo "no, using $LN_S" >&6; }
5175 michael 912 fi
5176    
5177 michael 945 # find the maximum length of command line arguments
5178 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5179 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5180 michael 967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5181 michael 945 $as_echo_n "(cached) " >&6
5182     else
5183     i=0
5184     teststring="ABCD"
5185    
5186     case $build_os in
5187     msdosdjgpp*)
5188     # On DJGPP, this test can blow up pretty badly due to problems in libc
5189     # (any single argument exceeding 2000 bytes causes a buffer overrun
5190     # during glob expansion). Even if it were fixed, the result of this
5191     # check would be larger than it should be.
5192     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5193     ;;
5194    
5195     gnu*)
5196     # Under GNU Hurd, this test is not required because there is
5197     # no limit to the length of command line arguments.
5198     # Libtool will interpret -1 as no limit whatsoever
5199     lt_cv_sys_max_cmd_len=-1;
5200     ;;
5201    
5202     cygwin* | mingw* | cegcc*)
5203     # On Win9x/ME, this test blows up -- it succeeds, but takes
5204     # about 5 minutes as the teststring grows exponentially.
5205     # Worse, since 9x/ME are not pre-emptively multitasking,
5206     # you end up with a "frozen" computer, even though with patience
5207     # the test eventually succeeds (with a max line length of 256k).
5208     # Instead, let's just punt: use the minimum linelength reported by
5209     # all of the supported platforms: 8192 (on NT/2K/XP).
5210     lt_cv_sys_max_cmd_len=8192;
5211     ;;
5212    
5213     amigaos*)
5214     # On AmigaOS with pdksh, this test takes hours, literally.
5215     # So we just punt and use a minimum line length of 8192.
5216     lt_cv_sys_max_cmd_len=8192;
5217     ;;
5218    
5219     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5220     # This has been around since 386BSD, at least. Likely further.
5221     if test -x /sbin/sysctl; then
5222     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5223     elif test -x /usr/sbin/sysctl; then
5224     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5225     else
5226     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5227     fi
5228     # And add a safety zone
5229     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5230     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5231     ;;
5232    
5233     interix*)
5234     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5235     lt_cv_sys_max_cmd_len=196608
5236     ;;
5237    
5238     osf*)
5239     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5240     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5241     # nice to cause kernel panics so lets avoid the loop below.
5242     # First set a reasonable default.
5243     lt_cv_sys_max_cmd_len=16384
5244     #
5245     if test -x /sbin/sysconfig; then
5246     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5247     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5248     esac
5249     fi
5250     ;;
5251     sco3.2v5*)
5252     lt_cv_sys_max_cmd_len=102400
5253     ;;
5254     sysv5* | sco5v6* | sysv4.2uw2*)
5255     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5256     if test -n "$kargmax"; then
5257     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5258     else
5259     lt_cv_sys_max_cmd_len=32768
5260     fi
5261     ;;
5262     *)
5263     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5264     if test -n "$lt_cv_sys_max_cmd_len"; then
5265     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5267     else
5268     # Make teststring a little bigger before we do anything with it.
5269     # a 1K string should be a reasonable start.
5270     for i in 1 2 3 4 5 6 7 8 ; do
5271     teststring=$teststring$teststring
5272     done
5273     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5274     # If test is not a shell built-in, we'll probably end up computing a
5275     # maximum length that is only half of the actual maximum length, but
5276     # we can't tell.
5277     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5278     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5279     test $i != 17 # 1/2 MB should be enough
5280     do
5281     i=`expr $i + 1`
5282     teststring=$teststring$teststring
5283     done
5284     # Only check the string length outside the loop.
5285     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5286     teststring=
5287     # Add a significant safety factor because C++ compilers can tack on
5288     # massive amounts of additional arguments before passing them to the
5289     # linker. It appears as though 1/2 is a usable value.
5290     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5291     fi
5292     ;;
5293     esac
5294    
5295     fi
5296    
5297     if test -n $lt_cv_sys_max_cmd_len ; then
5298 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5299 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5300     else
5301 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5302 michael 945 $as_echo "none" >&6; }
5303     fi
5304     max_cmd_len=$lt_cv_sys_max_cmd_len
5305    
5306    
5307    
5308    
5309    
5310    
5311     : ${CP="cp -f"}
5312     : ${MV="mv -f"}
5313     : ${RM="rm -f"}
5314    
5315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5316 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5317     # Try some XSI features
5318     xsi_shell=no
5319     ( _lt_dummy="a/b/c"
5320     test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5321     = c,a/b,, \
5322     && eval 'test $(( 1 + 1 )) -eq 2 \
5323     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5324     && xsi_shell=yes
5325 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5326 michael 945 $as_echo "$xsi_shell" >&6; }
5327    
5328    
5329 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5330 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5331     lt_shell_append=no
5332     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5333     >/dev/null 2>&1 \
5334     && lt_shell_append=yes
5335 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5336 michael 945 $as_echo "$lt_shell_append" >&6; }
5337    
5338    
5339     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5340     lt_unset=unset
5341     else
5342     lt_unset=false
5343     fi
5344    
5345    
5346    
5347    
5348    
5349     # test EBCDIC or ASCII
5350     case `echo X|tr X '\101'` in
5351     A) # ASCII based system
5352     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5353     lt_SP2NL='tr \040 \012'
5354     lt_NL2SP='tr \015\012 \040\040'
5355     ;;
5356     *) # EBCDIC based system
5357     lt_SP2NL='tr \100 \n'
5358     lt_NL2SP='tr \r\n \100\100'
5359     ;;
5360     esac
5361    
5362    
5363    
5364    
5365    
5366    
5367    
5368    
5369    
5370 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5371 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5372 michael 967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5373 michael 945 $as_echo_n "(cached) " >&6
5374     else
5375     lt_cv_ld_reload_flag='-r'
5376     fi
5377 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5378 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5379     reload_flag=$lt_cv_ld_reload_flag
5380     case $reload_flag in
5381     "" | " "*) ;;
5382     *) reload_flag=" $reload_flag" ;;
5383     esac
5384     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5385     case $host_os in
5386     darwin*)
5387     if test "$GCC" = yes; then
5388     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5389     else
5390     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5391     fi
5392     ;;
5393     esac
5394    
5395    
5396    
5397    
5398    
5399    
5400    
5401    
5402    
5403     if test -n "$ac_tool_prefix"; then
5404     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5405     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5406 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5408 michael 967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5409 michael 945 $as_echo_n "(cached) " >&6
5410     else
5411     if test -n "$OBJDUMP"; then
5412     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5413     else
5414     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415     for as_dir in $PATH
5416     do
5417     IFS=$as_save_IFS
5418     test -z "$as_dir" && as_dir=.
5419 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5420 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5422 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 michael 945 break 2
5424     fi
5425     done
5426 michael 967 done
5427 michael 945 IFS=$as_save_IFS
5428    
5429     fi
5430     fi
5431     OBJDUMP=$ac_cv_prog_OBJDUMP
5432     if test -n "$OBJDUMP"; then
5433 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5434 michael 945 $as_echo "$OBJDUMP" >&6; }
5435     else
5436 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 michael 945 $as_echo "no" >&6; }
5438     fi
5439    
5440    
5441     fi
5442     if test -z "$ac_cv_prog_OBJDUMP"; then
5443     ac_ct_OBJDUMP=$OBJDUMP
5444     # Extract the first word of "objdump", so it can be a program name with args.
5445     set dummy objdump; ac_word=$2
5446 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5448 michael 967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5449 michael 945 $as_echo_n "(cached) " >&6
5450     else
5451     if test -n "$ac_ct_OBJDUMP"; then
5452     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5453     else
5454     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455     for as_dir in $PATH
5456     do
5457     IFS=$as_save_IFS
5458     test -z "$as_dir" && as_dir=.
5459 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5460 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5462 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 michael 945 break 2
5464     fi
5465     done
5466 michael 967 done
5467 michael 945 IFS=$as_save_IFS
5468    
5469     fi
5470     fi
5471     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5472     if test -n "$ac_ct_OBJDUMP"; then
5473 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5474 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5475     else
5476 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 michael 945 $as_echo "no" >&6; }
5478     fi
5479    
5480     if test "x$ac_ct_OBJDUMP" = x; then
5481     OBJDUMP="false"
5482     else
5483     case $cross_compiling:$ac_tool_warned in
5484     yes:)
5485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487     ac_tool_warned=yes ;;
5488     esac
5489     OBJDUMP=$ac_ct_OBJDUMP
5490     fi
5491     else
5492     OBJDUMP="$ac_cv_prog_OBJDUMP"
5493     fi
5494    
5495     test -z "$OBJDUMP" && OBJDUMP=objdump
5496    
5497    
5498    
5499    
5500    
5501    
5502    
5503    
5504    
5505 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5506 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5507 michael 967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5508 db 941 $as_echo_n "(cached) " >&6
5509 michael 912 else
5510     lt_cv_file_magic_cmd='$MAGIC_CMD'
5511     lt_cv_file_magic_test_file=
5512     lt_cv_deplibs_check_method='unknown'
5513     # Need to set the preceding variable on all platforms that support
5514     # interlibrary dependencies.
5515     # 'none' -- dependencies not supported.
5516     # `unknown' -- same as none, but documents that we really don't know.
5517     # 'pass_all' -- all dependencies passed with no checks.
5518     # 'test_compile' -- check by making test program.
5519     # 'file_magic [[regex]]' -- check by looking for files in library path
5520     # which responds to the $file_magic_cmd with a given extended regex.
5521     # If you have `file' or equivalent on your system and you're not sure
5522     # whether `pass_all' will *always* work, you probably want this one.
5523    
5524     case $host_os in
5525 db 941 aix[4-9]*)
5526 michael 912 lt_cv_deplibs_check_method=pass_all
5527     ;;
5528    
5529     beos*)
5530     lt_cv_deplibs_check_method=pass_all
5531     ;;
5532    
5533     bsdi[45]*)
5534     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5535     lt_cv_file_magic_cmd='/usr/bin/file -L'
5536     lt_cv_file_magic_test_file=/shlib/libc.so
5537     ;;
5538    
5539     cygwin*)
5540     # func_win32_libid is a shell function defined in ltmain.sh
5541     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5542     lt_cv_file_magic_cmd='func_win32_libid'
5543     ;;
5544    
5545     mingw* | pw32*)
5546     # Base MSYS/MinGW do not provide the 'file' command needed by
5547     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5548     # unless we find 'file', for example because we are cross-compiling.
5549     if ( file / ) >/dev/null 2>&1; then
5550     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551     lt_cv_file_magic_cmd='func_win32_libid'
5552     else
5553     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5554     lt_cv_file_magic_cmd='$OBJDUMP -f'
5555     fi
5556     ;;
5557    
5558 michael 945 cegcc)
5559     # use the weaker test based on 'objdump'. See mingw*.
5560     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5561     lt_cv_file_magic_cmd='$OBJDUMP -f'
5562     ;;
5563    
5564 michael 912 darwin* | rhapsody*)
5565     lt_cv_deplibs_check_method=pass_all
5566     ;;
5567    
5568     freebsd* | dragonfly*)
5569 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5570 michael 912 case $host_cpu in
5571     i*86 )
5572     # Not sure whether the presence of OpenBSD here was a mistake.
5573     # Let's accept both of them until this is cleared up.
5574     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5575     lt_cv_file_magic_cmd=/usr/bin/file
5576     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5577     ;;
5578     esac
5579     else
5580     lt_cv_deplibs_check_method=pass_all
5581     fi
5582     ;;
5583    
5584     gnu*)
5585     lt_cv_deplibs_check_method=pass_all
5586     ;;
5587    
5588     hpux10.20* | hpux11*)
5589     lt_cv_file_magic_cmd=/usr/bin/file
5590     case $host_cpu in
5591     ia64*)
5592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5593     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5594     ;;
5595     hppa*64*)
5596     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]'
5597     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5598     ;;
5599     *)
5600     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5601     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5602     ;;
5603     esac
5604     ;;
5605    
5606     interix[3-9]*)
5607     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5609     ;;
5610    
5611     irix5* | irix6* | nonstopux*)
5612     case $LD in
5613     *-32|*"-32 ") libmagic=32-bit;;
5614     *-n32|*"-n32 ") libmagic=N32;;
5615     *-64|*"-64 ") libmagic=64-bit;;
5616     *) libmagic=never-match;;
5617     esac
5618     lt_cv_deplibs_check_method=pass_all
5619     ;;
5620    
5621     # This must be Linux ELF.
5622     linux* | k*bsd*-gnu)
5623     lt_cv_deplibs_check_method=pass_all
5624     ;;
5625    
5626     netbsd*)
5627 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5628 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5629     else
5630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5631     fi
5632     ;;
5633    
5634     newos6*)
5635     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5636     lt_cv_file_magic_cmd=/usr/bin/file
5637     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5638     ;;
5639    
5640 michael 945 *nto* | *qnx*)
5641     lt_cv_deplibs_check_method=pass_all
5642 michael 912 ;;
5643    
5644     openbsd*)
5645 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5646 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5647     else
5648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5649     fi
5650     ;;
5651    
5652     osf3* | osf4* | osf5*)
5653     lt_cv_deplibs_check_method=pass_all
5654     ;;
5655    
5656     rdos*)
5657     lt_cv_deplibs_check_method=pass_all
5658     ;;
5659    
5660     solaris*)
5661     lt_cv_deplibs_check_method=pass_all
5662     ;;
5663    
5664 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5665     lt_cv_deplibs_check_method=pass_all
5666     ;;
5667    
5668 michael 912 sysv4 | sysv4.3*)
5669     case $host_vendor in
5670     motorola)
5671     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]'
5672     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5673     ;;
5674     ncr)
5675     lt_cv_deplibs_check_method=pass_all
5676     ;;
5677     sequent)
5678     lt_cv_file_magic_cmd='/bin/file'
5679     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5680     ;;
5681     sni)
5682     lt_cv_file_magic_cmd='/bin/file'
5683     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5684     lt_cv_file_magic_test_file=/lib/libc.so
5685     ;;
5686     siemens)
5687     lt_cv_deplibs_check_method=pass_all
5688     ;;
5689     pc)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692     esac
5693     ;;
5694    
5695 michael 945 tpf*)
5696 michael 912 lt_cv_deplibs_check_method=pass_all
5697     ;;
5698     esac
5699    
5700     fi
5701 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5702 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5703 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5704     deplibs_check_method=$lt_cv_deplibs_check_method
5705     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5706    
5707    
5708    
5709    
5710 michael 945
5711    
5712    
5713    
5714    
5715    
5716    
5717    
5718     if test -n "$ac_tool_prefix"; then
5719     # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5720     set dummy ${ac_tool_prefix}ar; ac_word=$2
5721 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5723 michael 967 if test "${ac_cv_prog_AR+set}" = set; then :
5724 michael 945 $as_echo_n "(cached) " >&6
5725     else
5726     if test -n "$AR"; then
5727     ac_cv_prog_AR="$AR" # Let the user override the test.
5728     else
5729     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730     for as_dir in $PATH
5731     do
5732     IFS=$as_save_IFS
5733     test -z "$as_dir" && as_dir=.
5734 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5735 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736     ac_cv_prog_AR="${ac_tool_prefix}ar"
5737 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 michael 945 break 2
5739     fi
5740     done
5741 michael 967 done
5742 michael 945 IFS=$as_save_IFS
5743    
5744     fi
5745     fi
5746     AR=$ac_cv_prog_AR
5747     if test -n "$AR"; then
5748 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5749 michael 945 $as_echo "$AR" >&6; }
5750     else
5751 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 michael 945 $as_echo "no" >&6; }
5753     fi
5754    
5755    
5756     fi
5757     if test -z "$ac_cv_prog_AR"; then
5758     ac_ct_AR=$AR
5759     # Extract the first word of "ar", so it can be a program name with args.
5760     set dummy ar; ac_word=$2
5761 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5763 michael 967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5764 michael 945 $as_echo_n "(cached) " >&6
5765     else
5766     if test -n "$ac_ct_AR"; then
5767     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5768     else
5769     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770     for as_dir in $PATH
5771     do
5772     IFS=$as_save_IFS
5773     test -z "$as_dir" && as_dir=.
5774 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5775 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_prog_ac_ct_AR="ar"
5777 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 michael 945 break 2
5779     fi
5780     done
5781 michael 967 done
5782 michael 945 IFS=$as_save_IFS
5783    
5784     fi
5785     fi
5786     ac_ct_AR=$ac_cv_prog_ac_ct_AR
5787     if test -n "$ac_ct_AR"; then
5788 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5789 michael 945 $as_echo "$ac_ct_AR" >&6; }
5790     else
5791 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 michael 945 $as_echo "no" >&6; }
5793     fi
5794    
5795     if test "x$ac_ct_AR" = x; then
5796     AR="false"
5797     else
5798     case $cross_compiling:$ac_tool_warned in
5799     yes:)
5800 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802     ac_tool_warned=yes ;;
5803     esac
5804     AR=$ac_ct_AR
5805     fi
5806     else
5807     AR="$ac_cv_prog_AR"
5808     fi
5809    
5810     test -z "$AR" && AR=ar
5811     test -z "$AR_FLAGS" && AR_FLAGS=cru
5812    
5813    
5814    
5815    
5816    
5817    
5818    
5819    
5820    
5821    
5822    
5823     if test -n "$ac_tool_prefix"; then
5824     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5825     set dummy ${ac_tool_prefix}strip; ac_word=$2
5826 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5828 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
5829 michael 945 $as_echo_n "(cached) " >&6
5830     else
5831     if test -n "$STRIP"; then
5832     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5833     else
5834     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835     for as_dir in $PATH
5836     do
5837     IFS=$as_save_IFS
5838     test -z "$as_dir" && as_dir=.
5839 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5840 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5842 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 michael 945 break 2
5844     fi
5845     done
5846 michael 967 done
5847 michael 945 IFS=$as_save_IFS
5848    
5849     fi
5850     fi
5851     STRIP=$ac_cv_prog_STRIP
5852     if test -n "$STRIP"; then
5853 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5854 michael 945 $as_echo "$STRIP" >&6; }
5855     else
5856 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 michael 945 $as_echo "no" >&6; }
5858     fi
5859    
5860    
5861     fi
5862     if test -z "$ac_cv_prog_STRIP"; then
5863     ac_ct_STRIP=$STRIP
5864     # Extract the first word of "strip", so it can be a program name with args.
5865     set dummy strip; ac_word=$2
5866 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5868 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5869 michael 945 $as_echo_n "(cached) " >&6
5870     else
5871     if test -n "$ac_ct_STRIP"; then
5872     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5873     else
5874     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875     for as_dir in $PATH
5876     do
5877     IFS=$as_save_IFS
5878     test -z "$as_dir" && as_dir=.
5879 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5880 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881     ac_cv_prog_ac_ct_STRIP="strip"
5882 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 michael 945 break 2
5884     fi
5885     done
5886 michael 967 done
5887 michael 945 IFS=$as_save_IFS
5888    
5889     fi
5890     fi
5891     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5892     if test -n "$ac_ct_STRIP"; then
5893 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5894 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
5895     else
5896 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 michael 945 $as_echo "no" >&6; }
5898     fi
5899    
5900     if test "x$ac_ct_STRIP" = x; then
5901     STRIP=":"
5902     else
5903     case $cross_compiling:$ac_tool_warned in
5904     yes:)
5905 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907     ac_tool_warned=yes ;;
5908     esac
5909     STRIP=$ac_ct_STRIP
5910     fi
5911     else
5912     STRIP="$ac_cv_prog_STRIP"
5913     fi
5914    
5915     test -z "$STRIP" && STRIP=:
5916    
5917    
5918    
5919    
5920    
5921    
5922     if test -n "$ac_tool_prefix"; then
5923     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5924     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5925 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5927 michael 967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5928 michael 945 $as_echo_n "(cached) " >&6
5929     else
5930     if test -n "$RANLIB"; then
5931     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5932     else
5933     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934     for as_dir in $PATH
5935     do
5936     IFS=$as_save_IFS
5937     test -z "$as_dir" && as_dir=.
5938 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5939 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5941 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 michael 945 break 2
5943     fi
5944     done
5945 michael 967 done
5946 michael 945 IFS=$as_save_IFS
5947    
5948     fi
5949     fi
5950     RANLIB=$ac_cv_prog_RANLIB
5951     if test -n "$RANLIB"; then
5952 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5953 michael 945 $as_echo "$RANLIB" >&6; }
5954     else
5955 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 michael 945 $as_echo "no" >&6; }
5957     fi
5958    
5959    
5960     fi
5961     if test -z "$ac_cv_prog_RANLIB"; then
5962     ac_ct_RANLIB=$RANLIB
5963     # Extract the first word of "ranlib", so it can be a program name with args.
5964     set dummy ranlib; ac_word=$2
5965 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5967 michael 967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5968 michael 945 $as_echo_n "(cached) " >&6
5969     else
5970     if test -n "$ac_ct_RANLIB"; then
5971     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5972     else
5973     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974     for as_dir in $PATH
5975     do
5976     IFS=$as_save_IFS
5977     test -z "$as_dir" && as_dir=.
5978 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5979 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_prog_ac_ct_RANLIB="ranlib"
5981 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 michael 945 break 2
5983     fi
5984     done
5985 michael 967 done
5986 michael 945 IFS=$as_save_IFS
5987    
5988     fi
5989     fi
5990     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5991     if test -n "$ac_ct_RANLIB"; then
5992 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5993 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
5994     else
5995 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 michael 945 $as_echo "no" >&6; }
5997     fi
5998    
5999     if test "x$ac_ct_RANLIB" = x; then
6000     RANLIB=":"
6001     else
6002     case $cross_compiling:$ac_tool_warned in
6003     yes:)
6004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006     ac_tool_warned=yes ;;
6007     esac
6008     RANLIB=$ac_ct_RANLIB
6009     fi
6010     else
6011     RANLIB="$ac_cv_prog_RANLIB"
6012     fi
6013    
6014     test -z "$RANLIB" && RANLIB=:
6015    
6016    
6017    
6018    
6019    
6020    
6021     # Determine commands to create old-style static archives.
6022     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6023     old_postinstall_cmds='chmod 644 $oldlib'
6024     old_postuninstall_cmds=
6025    
6026     if test -n "$RANLIB"; then
6027     case $host_os in
6028     openbsd*)
6029     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6030     ;;
6031     *)
6032     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6033     ;;
6034     esac
6035     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6036     fi
6037    
6038    
6039    
6040    
6041    
6042    
6043    
6044    
6045    
6046    
6047    
6048    
6049    
6050    
6051    
6052    
6053    
6054    
6055    
6056    
6057    
6058    
6059    
6060    
6061    
6062    
6063    
6064    
6065    
6066    
6067    
6068    
6069    
6070    
6071 michael 912 # If no C compiler was specified, use CC.
6072     LTCC=${LTCC-"$CC"}
6073    
6074     # If no C compiler flags were specified, use CFLAGS.
6075     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6076    
6077     # Allow CC to be a program name with arguments.
6078     compiler=$CC
6079    
6080 michael 945
6081     # Check for command to grab the raw symbol name followed by C symbol from nm.
6082 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6083 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6084 michael 967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6085 michael 945 $as_echo_n "(cached) " >&6
6086     else
6087    
6088     # These are sane defaults that work on at least a few old systems.
6089     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6090    
6091     # Character class describing NM global symbol codes.
6092     symcode='[BCDEGRST]'
6093    
6094     # Regexp to match symbols that can be accessed directly from C.
6095     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6096    
6097     # Define system-specific variables.
6098     case $host_os in
6099     aix*)
6100     symcode='[BCDT]'
6101     ;;
6102     cygwin* | mingw* | pw32* | cegcc*)
6103     symcode='[ABCDGISTW]'
6104     ;;
6105     hpux*)
6106     if test "$host_cpu" = ia64; then
6107     symcode='[ABCDEGRST]'
6108     fi
6109     ;;
6110     irix* | nonstopux*)
6111     symcode='[BCDEGRST]'
6112     ;;
6113     osf*)
6114     symcode='[BCDEGQRST]'
6115     ;;
6116     solaris*)
6117     symcode='[BDRT]'
6118     ;;
6119     sco3.2v5*)
6120     symcode='[DT]'
6121     ;;
6122     sysv4.2uw2*)
6123     symcode='[DT]'
6124     ;;
6125     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6126     symcode='[ABDT]'
6127     ;;
6128     sysv4)
6129     symcode='[DFNSTU]'
6130     ;;
6131     esac
6132    
6133     # If we're using GNU nm, then use its standard symbol codes.
6134     case `$NM -V 2>&1` in
6135     *GNU* | *'with BFD'*)
6136     symcode='[ABCDGIRSTW]' ;;
6137     esac
6138    
6139     # Transform an extracted symbol line into a proper C declaration.
6140     # Some systems (esp. on ia64) link data and code symbols differently,
6141     # so use this general approach.
6142     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6143    
6144     # Transform an extracted symbol line into symbol name and symbol address
6145     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6146     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'"
6147    
6148     # Handle CRLF in mingw tool chain
6149     opt_cr=
6150     case $build_os in
6151     mingw*)
6152     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6153     ;;
6154     esac
6155    
6156     # Try without a prefix underscore, then with it.
6157     for ac_symprfx in "" "_"; do
6158    
6159     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6160     symxfrm="\\1 $ac_symprfx\\2 \\2"
6161    
6162     # Write the raw and C identifiers.
6163     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6164     # Fake it for dumpbin and say T for any non-static function
6165     # and D for any global variable.
6166     # Also find C++ and __fastcall symbols from MSVC++,
6167     # which start with @ or ?.
6168     lt_cv_sys_global_symbol_pipe="$AWK '"\
6169     " {last_section=section; section=\$ 3};"\
6170     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6171     " \$ 0!~/External *\|/{next};"\
6172     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6173     " {if(hide[section]) next};"\
6174     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6175     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6176     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6177     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6178     " ' prfx=^$ac_symprfx"
6179     else
6180     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181     fi
6182    
6183     # Check to see that the pipe works correctly.
6184     pipe_works=no
6185    
6186     rm -f conftest*
6187     cat > conftest.$ac_ext <<_LT_EOF
6188     #ifdef __cplusplus
6189     extern "C" {
6190     #endif
6191     char nm_test_var;
6192     void nm_test_func(void);
6193     void nm_test_func(void){}
6194     #ifdef __cplusplus
6195     }
6196     #endif
6197     int main(){nm_test_var='a';nm_test_func();return(0);}
6198     _LT_EOF
6199    
6200 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6201 michael 945 (eval $ac_compile) 2>&5
6202     ac_status=$?
6203 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204     test $ac_status = 0; }; then
6205 michael 945 # Now try to grab the symbols.
6206     nlist=conftest.nm
6207 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6208 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6209     ac_status=$?
6210 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211     test $ac_status = 0; } && test -s "$nlist"; then
6212 michael 945 # Try sorting and uniquifying the output.
6213     if sort "$nlist" | uniq > "$nlist"T; then
6214     mv -f "$nlist"T "$nlist"
6215     else
6216     rm -f "$nlist"T
6217     fi
6218    
6219     # Make sure that we snagged all the symbols we need.
6220     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6221     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6222     cat <<_LT_EOF > conftest.$ac_ext
6223     #ifdef __cplusplus
6224     extern "C" {
6225     #endif
6226    
6227     _LT_EOF
6228     # Now generate the symbol file.
6229     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6230    
6231     cat <<_LT_EOF >> conftest.$ac_ext
6232    
6233     /* The mapping between symbol names and symbols. */
6234     const struct {
6235     const char *name;
6236     void *address;
6237     }
6238     lt__PROGRAM__LTX_preloaded_symbols[] =
6239     {
6240     { "@PROGRAM@", (void *) 0 },
6241     _LT_EOF
6242     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6243     cat <<\_LT_EOF >> conftest.$ac_ext
6244     {0, (void *) 0}
6245     };
6246    
6247     /* This works around a problem in FreeBSD linker */
6248     #ifdef FREEBSD_WORKAROUND
6249     static const void *lt_preloaded_setup() {
6250     return lt__PROGRAM__LTX_preloaded_symbols;
6251     }
6252     #endif
6253    
6254     #ifdef __cplusplus
6255     }
6256     #endif
6257     _LT_EOF
6258     # Now try linking the two files.
6259     mv conftest.$ac_objext conftstm.$ac_objext
6260     lt_save_LIBS="$LIBS"
6261     lt_save_CFLAGS="$CFLAGS"
6262     LIBS="conftstm.$ac_objext"
6263     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6264 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6265 michael 945 (eval $ac_link) 2>&5
6266     ac_status=$?
6267 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6269 michael 945 pipe_works=yes
6270     fi
6271     LIBS="$lt_save_LIBS"
6272     CFLAGS="$lt_save_CFLAGS"
6273     else
6274     echo "cannot find nm_test_func in $nlist" >&5
6275     fi
6276     else
6277     echo "cannot find nm_test_var in $nlist" >&5
6278     fi
6279     else
6280     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6281     fi
6282     else
6283     echo "$progname: failed program was:" >&5
6284     cat conftest.$ac_ext >&5
6285     fi
6286     rm -rf conftest* conftst*
6287    
6288     # Do not use the global_symbol_pipe unless it works.
6289     if test "$pipe_works" = yes; then
6290     break
6291     else
6292     lt_cv_sys_global_symbol_pipe=
6293     fi
6294     done
6295    
6296     fi
6297    
6298     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6299     lt_cv_sys_global_symbol_to_cdecl=
6300     fi
6301     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6302 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6303 michael 945 $as_echo "failed" >&6; }
6304     else
6305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6306 michael 945 $as_echo "ok" >&6; }
6307     fi
6308    
6309    
6310    
6311    
6312    
6313    
6314    
6315    
6316    
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324    
6325    
6326    
6327    
6328    
6329    
6330 michael 912 # Check whether --enable-libtool-lock was given.
6331 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6332 michael 912 enableval=$enable_libtool_lock;
6333     fi
6334    
6335     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6336    
6337     # Some flags need to be propagated to the compiler or linker for good
6338     # libtool support.
6339     case $host in
6340     ia64-*-hpux*)
6341     # Find out which ABI we are using.
6342     echo 'int i;' > conftest.$ac_ext
6343 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 michael 912 (eval $ac_compile) 2>&5
6345     ac_status=$?
6346 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347     test $ac_status = 0; }; then
6348 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6349 michael 945 *ELF-32*)
6350     HPUX_IA64_MODE="32"
6351     ;;
6352     *ELF-64*)
6353     HPUX_IA64_MODE="64"
6354     ;;
6355 michael 912 esac
6356     fi
6357     rm -rf conftest*
6358     ;;
6359     *-*-irix6*)
6360     # Find out which ABI we are using.
6361 michael 1033 echo '#line 6361 "configure"' > conftest.$ac_ext
6362 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363 michael 912 (eval $ac_compile) 2>&5
6364     ac_status=$?
6365 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366     test $ac_status = 0; }; then
6367 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6368     case `/usr/bin/file conftest.$ac_objext` in
6369     *32-bit*)
6370     LD="${LD-ld} -melf32bsmip"
6371     ;;
6372     *N32*)
6373     LD="${LD-ld} -melf32bmipn32"
6374     ;;
6375     *64-bit*)
6376     LD="${LD-ld} -melf64bmip"
6377     ;;
6378     esac
6379     else
6380     case `/usr/bin/file conftest.$ac_objext` in
6381     *32-bit*)
6382     LD="${LD-ld} -32"
6383     ;;
6384     *N32*)
6385     LD="${LD-ld} -n32"
6386     ;;
6387     *64-bit*)
6388     LD="${LD-ld} -64"
6389     ;;
6390     esac
6391     fi
6392 michael 912 fi
6393     rm -rf conftest*
6394     ;;
6395    
6396     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6397 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6398 michael 912 # Find out which ABI we are using.
6399     echo 'int i;' > conftest.$ac_ext
6400 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 michael 912 (eval $ac_compile) 2>&5
6402     ac_status=$?
6403 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404     test $ac_status = 0; }; then
6405 michael 912 case `/usr/bin/file conftest.o` in
6406 michael 945 *32-bit*)
6407     case $host in
6408     x86_64-*kfreebsd*-gnu)
6409     LD="${LD-ld} -m elf_i386_fbsd"
6410     ;;
6411     x86_64-*linux*)
6412     LD="${LD-ld} -m elf_i386"
6413     ;;
6414     ppc64-*linux*|powerpc64-*linux*)
6415     LD="${LD-ld} -m elf32ppclinux"
6416     ;;
6417     s390x-*linux*)
6418     LD="${LD-ld} -m elf_s390"
6419     ;;
6420     sparc64-*linux*)
6421     LD="${LD-ld} -m elf32_sparc"
6422     ;;
6423     esac
6424     ;;
6425     *64-bit*)
6426     case $host in
6427     x86_64-*kfreebsd*-gnu)
6428     LD="${LD-ld} -m elf_x86_64_fbsd"
6429     ;;
6430     x86_64-*linux*)
6431     LD="${LD-ld} -m elf_x86_64"
6432     ;;
6433     ppc*-*linux*|powerpc*-*linux*)
6434     LD="${LD-ld} -m elf64ppc"
6435     ;;
6436     s390*-*linux*|s390*-*tpf*)
6437     LD="${LD-ld} -m elf64_s390"
6438     ;;
6439     sparc*-*linux*)
6440     LD="${LD-ld} -m elf64_sparc"
6441     ;;
6442     esac
6443     ;;
6444 michael 912 esac
6445     fi
6446     rm -rf conftest*
6447     ;;
6448    
6449     *-*-sco3.2v5*)
6450     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6451     SAVE_CFLAGS="$CFLAGS"
6452     CFLAGS="$CFLAGS -belf"
6453 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6454 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6455 michael 967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6456 db 941 $as_echo_n "(cached) " >&6
6457 michael 912 else
6458     ac_ext=c
6459     ac_cpp='$CPP $CPPFLAGS'
6460     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463    
6464 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 michael 912 /* end confdefs.h. */
6466    
6467     int
6468     main ()
6469     {
6470    
6471     ;
6472     return 0;
6473     }
6474     _ACEOF
6475 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6476 michael 912 lt_cv_cc_needs_belf=yes
6477     else
6478 michael 967 lt_cv_cc_needs_belf=no
6479 michael 912 fi
6480 michael 967 rm -f core conftest.err conftest.$ac_objext \
6481     conftest$ac_exeext conftest.$ac_ext
6482 michael 912 ac_ext=c
6483     ac_cpp='$CPP $CPPFLAGS'
6484     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6485     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6486     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487    
6488     fi
6489 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6490 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6491 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6492     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6493     CFLAGS="$SAVE_CFLAGS"
6494     fi
6495     ;;
6496     sparc*-*solaris*)
6497     # Find out which ABI we are using.
6498     echo 'int i;' > conftest.$ac_ext
6499 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 michael 912 (eval $ac_compile) 2>&5
6501     ac_status=$?
6502 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503     test $ac_status = 0; }; then
6504 michael 912 case `/usr/bin/file conftest.o` in
6505     *64-bit*)
6506     case $lt_cv_prog_gnu_ld in
6507     yes*) LD="${LD-ld} -m elf64_sparc" ;;
6508 db 941 *)
6509 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6510 db 941 LD="${LD-ld} -64"
6511     fi
6512     ;;
6513 michael 912 esac
6514     ;;
6515     esac
6516     fi
6517     rm -rf conftest*
6518     ;;
6519 michael 945 esac
6520 michael 912
6521 michael 945 need_locks="$enable_libtool_lock"
6522 michael 912
6523 michael 945
6524     case $host_os in
6525     rhapsody* | darwin*)
6526     if test -n "$ac_tool_prefix"; then
6527     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6528     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6529 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6531 michael 967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6532 michael 945 $as_echo_n "(cached) " >&6
6533     else
6534     if test -n "$DSYMUTIL"; then
6535     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6536     else
6537     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538     for as_dir in $PATH
6539     do
6540     IFS=$as_save_IFS
6541     test -z "$as_dir" && as_dir=.
6542 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6543 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6545 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 michael 945 break 2
6547     fi
6548     done
6549 michael 967 done
6550 michael 945 IFS=$as_save_IFS
6551    
6552     fi
6553     fi
6554     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6555     if test -n "$DSYMUTIL"; then
6556 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6557 michael 945 $as_echo "$DSYMUTIL" >&6; }
6558     else
6559 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 michael 945 $as_echo "no" >&6; }
6561     fi
6562    
6563    
6564     fi
6565     if test -z "$ac_cv_prog_DSYMUTIL"; then
6566     ac_ct_DSYMUTIL=$DSYMUTIL
6567     # Extract the first word of "dsymutil", so it can be a program name with args.
6568     set dummy dsymutil; ac_word=$2
6569 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6571 michael 967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6572 michael 945 $as_echo_n "(cached) " >&6
6573     else
6574     if test -n "$ac_ct_DSYMUTIL"; then
6575     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6576     else
6577     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578     for as_dir in $PATH
6579     do
6580     IFS=$as_save_IFS
6581     test -z "$as_dir" && as_dir=.
6582 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6583 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6585 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 michael 945 break 2
6587     fi
6588     done
6589 michael 967 done
6590 michael 945 IFS=$as_save_IFS
6591    
6592     fi
6593     fi
6594     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6595     if test -n "$ac_ct_DSYMUTIL"; then
6596 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6597 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6598     else
6599 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 michael 945 $as_echo "no" >&6; }
6601     fi
6602    
6603     if test "x$ac_ct_DSYMUTIL" = x; then
6604     DSYMUTIL=":"
6605     else
6606     case $cross_compiling:$ac_tool_warned in
6607     yes:)
6608 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610     ac_tool_warned=yes ;;
6611 michael 912 esac
6612 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
6613     fi
6614     else
6615     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6616     fi
6617 michael 912
6618 michael 945 if test -n "$ac_tool_prefix"; then
6619     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6620     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6621 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6623 michael 967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6624 michael 945 $as_echo_n "(cached) " >&6
6625     else
6626     if test -n "$NMEDIT"; then
6627     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6628     else
6629     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630     for as_dir in $PATH
6631     do
6632     IFS=$as_save_IFS
6633     test -z "$as_dir" && as_dir=.
6634 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6635 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6637 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 michael 945 break 2
6639     fi
6640     done
6641 michael 967 done
6642 michael 945 IFS=$as_save_IFS
6643 michael 912
6644 michael 945 fi
6645     fi
6646     NMEDIT=$ac_cv_prog_NMEDIT
6647     if test -n "$NMEDIT"; then
6648 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6649 michael 945 $as_echo "$NMEDIT" >&6; }
6650     else
6651 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 michael 945 $as_echo "no" >&6; }
6653     fi
6654 michael 912
6655 michael 945
6656     fi
6657     if test -z "$ac_cv_prog_NMEDIT"; then
6658     ac_ct_NMEDIT=$NMEDIT
6659     # Extract the first word of "nmedit", so it can be a program name with args.
6660     set dummy nmedit; ac_word=$2
6661 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6663 michael 967 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6664 michael 945 $as_echo_n "(cached) " >&6
6665     else
6666     if test -n "$ac_ct_NMEDIT"; then
6667     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6668     else
6669     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670     for as_dir in $PATH
6671     do
6672     IFS=$as_save_IFS
6673     test -z "$as_dir" && as_dir=.
6674 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6675 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6677 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 michael 945 break 2
6679     fi
6680     done
6681 michael 967 done
6682 michael 945 IFS=$as_save_IFS
6683    
6684     fi
6685     fi
6686     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6687     if test -n "$ac_ct_NMEDIT"; then
6688 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6689 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
6690     else
6691 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 michael 945 $as_echo "no" >&6; }
6693     fi
6694    
6695     if test "x$ac_ct_NMEDIT" = x; then
6696     NMEDIT=":"
6697     else
6698     case $cross_compiling:$ac_tool_warned in
6699     yes:)
6700 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702     ac_tool_warned=yes ;;
6703     esac
6704     NMEDIT=$ac_ct_NMEDIT
6705     fi
6706     else
6707     NMEDIT="$ac_cv_prog_NMEDIT"
6708     fi
6709    
6710     if test -n "$ac_tool_prefix"; then
6711     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6712     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6713 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6715 michael 967 if test "${ac_cv_prog_LIPO+set}" = set; then :
6716 michael 945 $as_echo_n "(cached) " >&6
6717     else
6718     if test -n "$LIPO"; then
6719     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6720     else
6721     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722     for as_dir in $PATH
6723     do
6724     IFS=$as_save_IFS
6725     test -z "$as_dir" && as_dir=.
6726 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6727 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6729 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 michael 945 break 2
6731     fi
6732     done
6733 michael 967 done
6734 michael 945 IFS=$as_save_IFS
6735    
6736     fi
6737     fi
6738     LIPO=$ac_cv_prog_LIPO
6739     if test -n "$LIPO"; then
6740 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6741 michael 945 $as_echo "$LIPO" >&6; }
6742     else
6743 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 michael 945 $as_echo "no" >&6; }
6745     fi
6746    
6747    
6748     fi
6749     if test -z "$ac_cv_prog_LIPO"; then
6750     ac_ct_LIPO=$LIPO
6751     # Extract the first word of "lipo", so it can be a program name with args.
6752     set dummy lipo; ac_word=$2
6753 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6755 michael 967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6756 michael 945 $as_echo_n "(cached) " >&6
6757     else
6758     if test -n "$ac_ct_LIPO"; then
6759     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6760     else
6761     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762     for as_dir in $PATH
6763     do
6764     IFS=$as_save_IFS
6765     test -z "$as_dir" && as_dir=.
6766 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6767 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768     ac_cv_prog_ac_ct_LIPO="lipo"
6769 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 michael 945 break 2
6771     fi
6772     done
6773 michael 967 done
6774 michael 945 IFS=$as_save_IFS
6775    
6776     fi
6777     fi
6778     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6779     if test -n "$ac_ct_LIPO"; then
6780 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6781 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
6782     else
6783 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 michael 945 $as_echo "no" >&6; }
6785     fi
6786    
6787     if test "x$ac_ct_LIPO" = x; then
6788     LIPO=":"
6789     else
6790     case $cross_compiling:$ac_tool_warned in
6791     yes:)
6792 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794     ac_tool_warned=yes ;;
6795     esac
6796     LIPO=$ac_ct_LIPO
6797     fi
6798     else
6799     LIPO="$ac_cv_prog_LIPO"
6800     fi
6801    
6802     if test -n "$ac_tool_prefix"; then
6803     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6804     set dummy ${ac_tool_prefix}otool; ac_word=$2
6805 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6807 michael 967 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6808 michael 945 $as_echo_n "(cached) " >&6
6809     else
6810     if test -n "$OTOOL"; then
6811     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6812     else
6813     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814     for as_dir in $PATH
6815     do
6816     IFS=$as_save_IFS
6817     test -z "$as_dir" && as_dir=.
6818 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6819 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6821 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 michael 945 break 2
6823     fi
6824     done
6825 michael 967 done
6826 michael 945 IFS=$as_save_IFS
6827    
6828     fi
6829     fi
6830     OTOOL=$ac_cv_prog_OTOOL
6831     if test -n "$OTOOL"; then
6832 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6833 michael 945 $as_echo "$OTOOL" >&6; }
6834     else
6835 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 michael 945 $as_echo "no" >&6; }
6837     fi
6838    
6839    
6840     fi
6841     if test -z "$ac_cv_prog_OTOOL"; then
6842     ac_ct_OTOOL=$OTOOL
6843     # Extract the first word of "otool", so it can be a program name with args.
6844     set dummy otool; ac_word=$2
6845 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6847 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6848 michael 945 $as_echo_n "(cached) " >&6
6849     else
6850     if test -n "$ac_ct_OTOOL"; then
6851     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6852     else
6853     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854     for as_dir in $PATH
6855     do
6856     IFS=$as_save_IFS
6857     test -z "$as_dir" && as_dir=.
6858 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6859 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_prog_ac_ct_OTOOL="otool"
6861 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 michael 945 break 2
6863     fi
6864     done
6865 michael 967 done
6866 michael 945 IFS=$as_save_IFS
6867    
6868     fi
6869     fi
6870     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6871     if test -n "$ac_ct_OTOOL"; then
6872 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6873 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
6874     else
6875 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 michael 945 $as_echo "no" >&6; }
6877     fi
6878    
6879     if test "x$ac_ct_OTOOL" = x; then
6880     OTOOL=":"
6881     else
6882     case $cross_compiling:$ac_tool_warned in
6883     yes:)
6884 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886     ac_tool_warned=yes ;;
6887     esac
6888     OTOOL=$ac_ct_OTOOL
6889     fi
6890     else
6891     OTOOL="$ac_cv_prog_OTOOL"
6892     fi
6893    
6894     if test -n "$ac_tool_prefix"; then
6895     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6896     set dummy ${ac_tool_prefix}otool64; ac_word=$2
6897 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6899 michael 967 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6900 michael 945 $as_echo_n "(cached) " >&6
6901     else
6902     if test -n "$OTOOL64"; then
6903     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6904     else
6905     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906     for as_dir in $PATH
6907     do
6908     IFS=$as_save_IFS
6909     test -z "$as_dir" && as_dir=.
6910 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6911 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6913 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 michael 945 break 2
6915     fi
6916     done
6917 michael 967 done
6918 michael 945 IFS=$as_save_IFS
6919    
6920     fi
6921     fi
6922     OTOOL64=$ac_cv_prog_OTOOL64
6923     if test -n "$OTOOL64"; then
6924 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6925 michael 945 $as_echo "$OTOOL64" >&6; }
6926     else
6927 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 michael 945 $as_echo "no" >&6; }
6929     fi
6930    
6931    
6932     fi
6933     if test -z "$ac_cv_prog_OTOOL64"; then
6934     ac_ct_OTOOL64=$OTOOL64
6935     # Extract the first word of "otool64", so it can be a program name with args.
6936     set dummy otool64; ac_word=$2
6937 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6939 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6940 michael 945 $as_echo_n "(cached) " >&6
6941     else
6942     if test -n "$ac_ct_OTOOL64"; then
6943     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6944     else
6945     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946     for as_dir in $PATH
6947     do
6948     IFS=$as_save_IFS
6949     test -z "$as_dir" && as_dir=.
6950 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6951 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_prog_ac_ct_OTOOL64="otool64"
6953 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 michael 945 break 2
6955     fi
6956     done
6957 michael 967 done
6958 michael 945 IFS=$as_save_IFS
6959    
6960     fi
6961     fi
6962     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6963     if test -n "$ac_ct_OTOOL64"; then
6964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6965 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
6966     else
6967 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 michael 945 $as_echo "no" >&6; }
6969     fi
6970    
6971     if test "x$ac_ct_OTOOL64" = x; then
6972     OTOOL64=":"
6973     else
6974     case $cross_compiling:$ac_tool_warned in
6975     yes:)
6976 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978     ac_tool_warned=yes ;;
6979     esac
6980     OTOOL64=$ac_ct_OTOOL64
6981     fi
6982     else
6983     OTOOL64="$ac_cv_prog_OTOOL64"
6984     fi
6985    
6986    
6987    
6988    
6989    
6990    
6991    
6992    
6993    
6994    
6995    
6996    
6997    
6998    
6999    
7000    
7001    
7002    
7003    
7004    
7005    
7006    
7007    
7008    
7009    
7010    
7011    
7012 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7013 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
7014 michael 967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7015 michael 945 $as_echo_n "(cached) " >&6
7016     else
7017     lt_cv_apple_cc_single_mod=no
7018     if test -z "${LT_MULTI_MODULE}"; then
7019     # By default we will add the -single_module flag. You can override
7020     # by either setting the environment variable LT_MULTI_MODULE
7021     # non-empty at configure time, or by adding -multi_module to the
7022     # link flags.
7023     rm -rf libconftest.dylib*
7024     echo "int foo(void){return 1;}" > conftest.c
7025     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7026     -dynamiclib -Wl,-single_module conftest.c" >&5
7027     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7028     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7029     _lt_result=$?
7030     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7031     lt_cv_apple_cc_single_mod=yes
7032     else
7033     cat conftest.err >&5
7034     fi
7035     rm -rf libconftest.dylib*
7036     rm -f conftest.*
7037     fi
7038     fi
7039 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7040 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7041 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7042 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7043 michael 967 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7044 michael 945 $as_echo_n "(cached) " >&6
7045     else
7046     lt_cv_ld_exported_symbols_list=no
7047     save_LDFLAGS=$LDFLAGS
7048     echo "_main" > conftest.sym
7049     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7050 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 michael 945 /* end confdefs.h. */
7052    
7053     int
7054     main ()
7055     {
7056    
7057     ;
7058     return 0;
7059     }
7060     _ACEOF
7061 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7062 michael 945 lt_cv_ld_exported_symbols_list=yes
7063     else
7064 michael 967 lt_cv_ld_exported_symbols_list=no
7065 michael 945 fi
7066 michael 967 rm -f core conftest.err conftest.$ac_objext \
7067     conftest$ac_exeext conftest.$ac_ext
7068 michael 945 LDFLAGS="$save_LDFLAGS"
7069    
7070     fi
7071 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7072 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7073     case $host_os in
7074     rhapsody* | darwin1.[012])
7075     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7076     darwin1.*)
7077     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7078     darwin*) # darwin 5.x on
7079     # if running on 10.5 or later, the deployment target defaults
7080     # to the OS version, if on x86, and 10.4, the deployment
7081     # target defaults to 10.4. Don't you love it?
7082     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7084     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7085     10.[012]*)
7086     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7087     10.*)
7088     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7089     esac
7090     ;;
7091     esac
7092     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7093     _lt_dar_single_mod='$single_module'
7094     fi
7095     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7096     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7097     else
7098     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7099     fi
7100     if test "$DSYMUTIL" != ":"; then
7101     _lt_dsymutil='~$DSYMUTIL $lib || :'
7102     else
7103     _lt_dsymutil=
7104     fi
7105     ;;
7106     esac
7107    
7108 michael 912 ac_ext=c
7109     ac_cpp='$CPP $CPPFLAGS'
7110     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7114 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7115 michael 912 # On Suns, sometimes $CPP names a directory.
7116     if test -n "$CPP" && test -d "$CPP"; then
7117     CPP=
7118     fi
7119     if test -z "$CPP"; then
7120 michael 967 if test "${ac_cv_prog_CPP+set}" = set; then :
7121 db 941 $as_echo_n "(cached) " >&6
7122 michael 912 else
7123     # Double quotes because CPP needs to be expanded
7124     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7125     do
7126     ac_preproc_ok=false
7127     for ac_c_preproc_warn_flag in '' yes
7128     do
7129     # Use a header file that comes with gcc, so configuring glibc
7130     # with a fresh cross-compiler works.
7131     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132     # <limits.h> exists even on freestanding compilers.
7133     # On the NeXT, cc -E runs the code through the compiler's parser,
7134     # not just through cpp. "Syntax error" is here to catch this case.
7135 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 michael 912 /* end confdefs.h. */
7137     #ifdef __STDC__
7138     # include <limits.h>
7139     #else
7140     # include <assert.h>
7141     #endif
7142     Syntax error
7143     _ACEOF
7144 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7145    
7146 michael 912 else
7147     # Broken: fails on valid input.
7148     continue
7149     fi
7150     rm -f conftest.err conftest.$ac_ext
7151    
7152     # OK, works on sane cases. Now check whether nonexistent headers
7153     # can be detected and how.
7154 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 michael 912 /* end confdefs.h. */
7156     #include <ac_nonexistent.h>
7157     _ACEOF
7158 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7159 michael 912 # Broken: success on invalid input.
7160     continue
7161     else
7162     # Passes both tests.
7163     ac_preproc_ok=:
7164     break
7165     fi
7166     rm -f conftest.err conftest.$ac_ext
7167    
7168     done
7169     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7170     rm -f conftest.err conftest.$ac_ext
7171 michael 967 if $ac_preproc_ok; then :
7172 michael 912 break
7173     fi
7174    
7175     done
7176     ac_cv_prog_CPP=$CPP
7177    
7178     fi
7179     CPP=$ac_cv_prog_CPP
7180     else
7181     ac_cv_prog_CPP=$CPP
7182     fi
7183 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7184 db 941 $as_echo "$CPP" >&6; }
7185 michael 912 ac_preproc_ok=false
7186     for ac_c_preproc_warn_flag in '' yes
7187     do
7188     # Use a header file that comes with gcc, so configuring glibc
7189     # with a fresh cross-compiler works.
7190     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7191     # <limits.h> exists even on freestanding compilers.
7192     # On the NeXT, cc -E runs the code through the compiler's parser,
7193     # not just through cpp. "Syntax error" is here to catch this case.
7194 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 michael 912 /* end confdefs.h. */
7196     #ifdef __STDC__
7197     # include <limits.h>
7198     #else
7199     # include <assert.h>
7200     #endif
7201     Syntax error
7202     _ACEOF
7203 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7204    
7205 michael 912 else
7206     # Broken: fails on valid input.
7207     continue
7208     fi
7209     rm -f conftest.err conftest.$ac_ext
7210    
7211     # OK, works on sane cases. Now check whether nonexistent headers
7212     # can be detected and how.
7213 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 michael 912 /* end confdefs.h. */
7215     #include <ac_nonexistent.h>
7216     _ACEOF
7217 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7218 michael 912 # Broken: success on invalid input.
7219     continue
7220     else
7221     # Passes both tests.
7222     ac_preproc_ok=:
7223     break
7224     fi
7225     rm -f conftest.err conftest.$ac_ext
7226    
7227     done
7228     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7229     rm -f conftest.err conftest.$ac_ext
7230 michael 967 if $ac_preproc_ok; then :
7231    
7232 michael 912 else
7233 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7234 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7235 michael 967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7236     See \`config.log' for more details." "$LINENO" 5; }
7237 michael 912 fi
7238    
7239     ac_ext=c
7240     ac_cpp='$CPP $CPPFLAGS'
7241     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244    
7245    
7246 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7247 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7248 michael 967 if test "${ac_cv_header_stdc+set}" = set; then :
7249 db 941 $as_echo_n "(cached) " >&6
7250 michael 912 else
7251 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 michael 912 /* end confdefs.h. */
7253     #include <stdlib.h>
7254     #include <stdarg.h>
7255     #include <string.h>
7256     #include <float.h>
7257    
7258     int
7259     main ()
7260     {
7261    
7262     ;
7263     return 0;
7264     }
7265     _ACEOF
7266 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7267 michael 912 ac_cv_header_stdc=yes
7268     else
7269 michael 967 ac_cv_header_stdc=no
7270 michael 912 fi
7271     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272    
7273     if test $ac_cv_header_stdc = yes; then
7274     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7275 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 michael 912 /* end confdefs.h. */
7277     #include <string.h>
7278    
7279     _ACEOF
7280     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7282    
7283 michael 912 else
7284     ac_cv_header_stdc=no
7285     fi
7286     rm -f conftest*
7287    
7288     fi
7289    
7290     if test $ac_cv_header_stdc = yes; then
7291     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 michael 912 /* end confdefs.h. */
7294     #include <stdlib.h>
7295    
7296     _ACEOF
7297     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7299    
7300 michael 912 else
7301     ac_cv_header_stdc=no
7302     fi
7303     rm -f conftest*
7304    
7305     fi
7306    
7307     if test $ac_cv_header_stdc = yes; then
7308     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7309 michael 967 if test "$cross_compiling" = yes; then :
7310 michael 912 :
7311     else
7312 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 michael 912 /* end confdefs.h. */
7314     #include <ctype.h>
7315     #include <stdlib.h>
7316     #if ((' ' & 0x0FF) == 0x020)
7317     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7318     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7319     #else
7320     # define ISLOWER(c) \
7321     (('a' <= (c) && (c) <= 'i') \
7322     || ('j' <= (c) && (c) <= 'r') \
7323     || ('s' <= (c) && (c) <= 'z'))
7324     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7325     #endif
7326    
7327     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7328     int
7329     main ()
7330     {
7331     int i;
7332     for (i = 0; i < 256; i++)
7333     if (XOR (islower (i), ISLOWER (i))
7334     || toupper (i) != TOUPPER (i))
7335     return 2;
7336     return 0;
7337     }
7338     _ACEOF
7339 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7340    
7341 michael 912 else
7342 michael 967 ac_cv_header_stdc=no
7343 michael 912 fi
7344 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7345     conftest.$ac_objext conftest.beam conftest.$ac_ext
7346 michael 912 fi
7347    
7348     fi
7349     fi
7350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7351 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7352 michael 912 if test $ac_cv_header_stdc = yes; then
7353    
7354 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7355 michael 912
7356     fi
7357    
7358     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7359     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7360     inttypes.h stdint.h unistd.h
7361 michael 967 do :
7362     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7363     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7364     "
7365     eval as_val=\$$as_ac_Header
7366     if test "x$as_val" = x""yes; then :
7367 michael 912 cat >>confdefs.h <<_ACEOF
7368 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369 michael 912 _ACEOF
7370    
7371     fi
7372    
7373     done
7374    
7375    
7376     for ac_header in dlfcn.h
7377 michael 967 do :
7378     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7379     "
7380     if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7381 michael 912 cat >>confdefs.h <<_ACEOF
7382 michael 967 #define HAVE_DLFCN_H 1
7383 michael 912 _ACEOF
7384    
7385     fi
7386    
7387     done
7388    
7389    
7390    
7391 michael 945 # Set options
7392     enable_dlopen=yes
7393 michael 977 # Check whether --enable-static was given.
7394     if test "${enable_static+set}" = set; then :
7395     enableval=$enable_static; p=${PACKAGE-default}
7396 michael 945 case $enableval in
7397 michael 977 yes) enable_static=yes ;;
7398     no) enable_static=no ;;
7399 michael 945 *)
7400 michael 977 enable_static=no
7401 michael 945 # Look at the argument we got. We use all the common list separators.
7402     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7403     for pkg in $enableval; do
7404     IFS="$lt_save_ifs"
7405     if test "X$pkg" = "X$p"; then
7406 michael 977 enable_static=yes
7407 michael 945 fi
7408     done
7409     IFS="$lt_save_ifs"
7410     ;;
7411     esac
7412 michael 912 else
7413 michael 977 enable_static=no
7414 michael 912 fi
7415    
7416    
7417    
7418    
7419    
7420    
7421    
7422    
7423    
7424 michael 977
7425    
7426     enable_win32_dll=no
7427    
7428    
7429     # Check whether --enable-shared was given.
7430     if test "${enable_shared+set}" = set; then :
7431     enableval=$enable_shared; p=${PACKAGE-default}
7432 michael 945 case $enableval in
7433 michael 977 yes) enable_shared=yes ;;
7434     no) enable_shared=no ;;
7435 michael 945 *)
7436 michael 977 enable_shared=no
7437 michael 945 # Look at the argument we got. We use all the common list separators.
7438     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439     for pkg in $enableval; do
7440     IFS="$lt_save_ifs"
7441     if test "X$pkg" = "X$p"; then
7442 michael 977 enable_shared=yes
7443 michael 945 fi
7444     done
7445     IFS="$lt_save_ifs"
7446 michael 912 ;;
7447     esac
7448     else
7449 michael 977 enable_shared=yes
7450 michael 912 fi
7451    
7452    
7453    
7454    
7455    
7456    
7457    
7458    
7459    
7460    
7461 michael 977
7462 michael 945 # Check whether --with-pic was given.
7463 michael 967 if test "${with_pic+set}" = set; then :
7464 michael 945 withval=$with_pic; pic_mode="$withval"
7465 michael 912 else
7466 michael 945 pic_mode=default
7467 michael 912 fi
7468    
7469    
7470 michael 945 test -z "$pic_mode" && pic_mode=default
7471 michael 912
7472    
7473    
7474    
7475    
7476    
7477    
7478 michael 945 # Check whether --enable-fast-install was given.
7479 michael 967 if test "${enable_fast_install+set}" = set; then :
7480 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
7481     case $enableval in
7482     yes) enable_fast_install=yes ;;
7483     no) enable_fast_install=no ;;
7484     *)
7485     enable_fast_install=no
7486     # Look at the argument we got. We use all the common list separators.
7487     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488     for pkg in $enableval; do
7489     IFS="$lt_save_ifs"
7490     if test "X$pkg" = "X$p"; then
7491     enable_fast_install=yes
7492     fi
7493     done
7494     IFS="$lt_save_ifs"
7495     ;;
7496     esac
7497 michael 912 else
7498 michael 945 enable_fast_install=yes
7499 michael 912 fi
7500    
7501    
7502    
7503    
7504    
7505    
7506    
7507    
7508    
7509    
7510    
7511 michael 945 # This can be used to rebuild libtool when needed
7512     LIBTOOL_DEPS="$ltmain"
7513 michael 912
7514 michael 945 # Always use our own libtool.
7515     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7516 michael 912
7517    
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527    
7528    
7529    
7530    
7531    
7532    
7533    
7534    
7535    
7536    
7537    
7538    
7539    
7540    
7541 michael 945 test -z "$LN_S" && LN_S="ln -s"
7542 michael 912
7543    
7544    
7545    
7546    
7547    
7548    
7549    
7550    
7551    
7552    
7553    
7554    
7555    
7556 michael 945 if test -n "${ZSH_VERSION+set}" ; then
7557     setopt NO_GLOB_SUBST
7558 michael 912 fi
7559    
7560 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7561 db 941 $as_echo_n "checking for objdir... " >&6; }
7562 michael 967 if test "${lt_cv_objdir+set}" = set; then :
7563 db 941 $as_echo_n "(cached) " >&6
7564 michael 912 else
7565     rm -f .libs 2>/dev/null
7566     mkdir .libs 2>/dev/null
7567     if test -d .libs; then
7568     lt_cv_objdir=.libs
7569     else
7570     # MS-DOS does not allow filenames that begin with a dot.
7571     lt_cv_objdir=_libs
7572     fi
7573     rmdir .libs 2>/dev/null
7574     fi
7575 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7576 db 941 $as_echo "$lt_cv_objdir" >&6; }
7577 michael 912 objdir=$lt_cv_objdir
7578    
7579    
7580    
7581    
7582    
7583 michael 945 cat >>confdefs.h <<_ACEOF
7584     #define LT_OBJDIR "$lt_cv_objdir/"
7585     _ACEOF
7586    
7587    
7588    
7589    
7590    
7591    
7592    
7593    
7594    
7595    
7596    
7597    
7598    
7599    
7600    
7601    
7602    
7603 michael 912 case $host_os in
7604     aix3*)
7605     # AIX sometimes has problems with the GCC collect2 program. For some
7606     # reason, if we set the COLLECT_NAMES environment variable, the problems
7607     # vanish in a puff of smoke.
7608     if test "X${COLLECT_NAMES+set}" != Xset; then
7609     COLLECT_NAMES=
7610     export COLLECT_NAMES
7611     fi
7612     ;;
7613     esac
7614    
7615     # Sed substitution that helps us do robust quoting. It backslashifies
7616     # metacharacters that are still active within double-quoted strings.
7617 michael 945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7618 michael 912
7619     # Same as above, but do not quote variable references.
7620 michael 945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7621 michael 912
7622     # Sed substitution to delay expansion of an escaped shell variable in a
7623     # double_quote_subst'ed string.
7624     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7625    
7626 michael 945 # Sed substitution to delay expansion of an escaped single quote.
7627     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7628    
7629 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
7630     no_glob_subst='s/\*/\\\*/g'
7631    
7632     # Global variables:
7633 michael 945 ofile=libtool
7634 michael 912 can_build_shared=yes
7635    
7636     # All known linkers require a `.a' archive for static linking (except MSVC,
7637     # which needs '.lib').
7638     libext=a
7639 michael 945
7640 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7641    
7642     old_CC="$CC"
7643     old_CFLAGS="$CFLAGS"
7644    
7645     # Set sane defaults for various variables
7646     test -z "$CC" && CC=cc
7647     test -z "$LTCC" && LTCC=$CC
7648     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7649     test -z "$LD" && LD=ld
7650     test -z "$ac_objext" && ac_objext=o
7651    
7652     for cc_temp in $compiler""; do
7653     case $cc_temp in
7654     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7656     \-*) ;;
7657     *) break;;
7658     esac
7659     done
7660 michael 945 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7661 michael 912
7662    
7663     # Only perform the check for file, if the check method requires it
7664 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7665 michael 912 case $deplibs_check_method in
7666     file_magic*)
7667     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7668 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7669 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7670 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7671 db 941 $as_echo_n "(cached) " >&6
7672 michael 912 else
7673     case $MAGIC_CMD in
7674     [\\/*] | ?:[\\/]*)
7675     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676     ;;
7677     *)
7678     lt_save_MAGIC_CMD="$MAGIC_CMD"
7679     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681     for ac_dir in $ac_dummy; do
7682     IFS="$lt_save_ifs"
7683     test -z "$ac_dir" && ac_dir=.
7684     if test -f $ac_dir/${ac_tool_prefix}file; then
7685     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7686     if test -n "$file_magic_test_file"; then
7687     case $deplibs_check_method in
7688     "file_magic "*)
7689     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692     $EGREP "$file_magic_regex" > /dev/null; then
7693     :
7694     else
7695 michael 945 cat <<_LT_EOF 1>&2
7696 michael 912
7697     *** Warning: the command libtool uses to detect shared libraries,
7698     *** $file_magic_cmd, produces output that libtool cannot recognize.
7699     *** The result is that libtool may fail to recognize shared libraries
7700     *** as such. This will affect the creation of libtool libraries that
7701     *** depend on shared libraries, but programs linked with such libtool
7702     *** libraries will work regardless of this problem. Nevertheless, you
7703     *** may want to report the problem to your system manager and/or to
7704     *** bug-libtool@gnu.org
7705    
7706 michael 945 _LT_EOF
7707 michael 912 fi ;;
7708     esac
7709     fi
7710     break
7711     fi
7712     done
7713     IFS="$lt_save_ifs"
7714     MAGIC_CMD="$lt_save_MAGIC_CMD"
7715     ;;
7716     esac
7717     fi
7718    
7719     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720     if test -n "$MAGIC_CMD"; then
7721 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722 db 941 $as_echo "$MAGIC_CMD" >&6; }
7723 michael 912 else
7724 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 db 941 $as_echo "no" >&6; }
7726 michael 912 fi
7727    
7728 michael 945
7729    
7730    
7731    
7732 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
7733     if test -n "$ac_tool_prefix"; then
7734 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7735 db 941 $as_echo_n "checking for file... " >&6; }
7736 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7737 db 941 $as_echo_n "(cached) " >&6
7738 michael 912 else
7739     case $MAGIC_CMD in
7740     [\\/*] | ?:[\\/]*)
7741     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742     ;;
7743     *)
7744     lt_save_MAGIC_CMD="$MAGIC_CMD"
7745     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7746     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7747     for ac_dir in $ac_dummy; do
7748     IFS="$lt_save_ifs"
7749     test -z "$ac_dir" && ac_dir=.
7750     if test -f $ac_dir/file; then
7751     lt_cv_path_MAGIC_CMD="$ac_dir/file"
7752     if test -n "$file_magic_test_file"; then
7753     case $deplibs_check_method in
7754     "file_magic "*)
7755     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7756     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7758     $EGREP "$file_magic_regex" > /dev/null; then
7759     :
7760     else
7761 michael 945 cat <<_LT_EOF 1>&2
7762 michael 912
7763     *** Warning: the command libtool uses to detect shared libraries,
7764     *** $file_magic_cmd, produces output that libtool cannot recognize.
7765     *** The result is that libtool may fail to recognize shared libraries
7766     *** as such. This will affect the creation of libtool libraries that
7767     *** depend on shared libraries, but programs linked with such libtool
7768     *** libraries will work regardless of this problem. Nevertheless, you
7769     *** may want to report the problem to your system manager and/or to
7770     *** bug-libtool@gnu.org
7771    
7772 michael 945 _LT_EOF
7773 michael 912 fi ;;
7774     esac
7775     fi
7776     break
7777     fi
7778     done
7779     IFS="$lt_save_ifs"
7780     MAGIC_CMD="$lt_save_MAGIC_CMD"
7781     ;;
7782     esac
7783     fi
7784    
7785     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786     if test -n "$MAGIC_CMD"; then
7787 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7788 db 941 $as_echo "$MAGIC_CMD" >&6; }
7789 michael 912 else
7790 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 db 941 $as_echo "no" >&6; }
7792 michael 912 fi
7793    
7794 michael 945
7795 michael 912 else
7796     MAGIC_CMD=:
7797     fi
7798     fi
7799    
7800     fi
7801     ;;
7802     esac
7803    
7804 michael 945 # Use C for the default configuration in the libtool script
7805 db 941
7806 michael 912 lt_save_CC="$CC"
7807     ac_ext=c
7808     ac_cpp='$CPP $CPPFLAGS'
7809     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812    
7813    
7814     # Source file extension for C test sources.
7815     ac_ext=c
7816    
7817     # Object file extension for compiled C test sources.
7818     objext=o
7819     objext=$objext
7820    
7821     # Code to be used in simple compile tests
7822     lt_simple_compile_test_code="int some_variable = 0;"
7823    
7824     # Code to be used in simple link tests
7825     lt_simple_link_test_code='int main(){return(0);}'
7826    
7827    
7828 michael 945
7829    
7830    
7831    
7832    
7833 michael 912 # If no C compiler was specified, use CC.
7834     LTCC=${LTCC-"$CC"}
7835    
7836     # If no C compiler flags were specified, use CFLAGS.
7837     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7838    
7839     # Allow CC to be a program name with arguments.
7840     compiler=$CC
7841    
7842 michael 945 # Save the default compiler, since it gets overwritten when the other
7843     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7844     compiler_DEFAULT=$CC
7845 michael 912
7846     # save warnings/boilerplate of simple test code
7847     ac_outfile=conftest.$ac_objext
7848     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7849     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850     _lt_compiler_boilerplate=`cat conftest.err`
7851 michael 945 $RM conftest*
7852 michael 912
7853     ac_outfile=conftest.$ac_objext
7854     echo "$lt_simple_link_test_code" >conftest.$ac_ext
7855     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7856     _lt_linker_boilerplate=`cat conftest.err`
7857 michael 945 $RM -r conftest*
7858 michael 912
7859    
7860 michael 945 if test -n "$compiler"; then
7861 michael 912
7862     lt_prog_compiler_no_builtin_flag=
7863    
7864     if test "$GCC" = yes; then
7865     lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7866    
7867 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7868 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7869 michael 967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7870 db 941 $as_echo_n "(cached) " >&6
7871 michael 912 else
7872     lt_cv_prog_compiler_rtti_exceptions=no
7873 michael 945 ac_outfile=conftest.$ac_objext
7874 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875     lt_compiler_flag="-fno-rtti -fno-exceptions"
7876     # Insert the option either (1) after the last *FLAGS variable, or
7877     # (2) before a word containing "conftest.", or (3) at the end.
7878     # Note that $ac_compile itself does not contain backslashes and begins
7879     # with a dollar sign (not a hyphen), so the echo should work correctly.
7880     # The option is referenced via a variable to avoid confusing sed.
7881     lt_compile=`echo "$ac_compile" | $SED \
7882     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884     -e 's:$: $lt_compiler_flag:'`
7885 michael 1033 (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886 michael 912 (eval "$lt_compile" 2>conftest.err)
7887     ac_status=$?
7888     cat conftest.err >&5
7889 michael 1033 echo "$as_me:7889: \$? = $ac_status" >&5
7890 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
7891     # The compiler can only warn and ignore the option if not recognized
7892     # So say no if there are warnings other than the usual output.
7893 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896     lt_cv_prog_compiler_rtti_exceptions=yes
7897     fi
7898     fi
7899 michael 945 $RM conftest*
7900 michael 912
7901     fi
7902 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7903 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7904 michael 912
7905     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7906     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7907     else
7908     :
7909     fi
7910    
7911     fi
7912    
7913 michael 945
7914    
7915    
7916    
7917    
7918     lt_prog_compiler_wl=
7919 michael 912 lt_prog_compiler_pic=
7920     lt_prog_compiler_static=
7921    
7922 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7923 db 941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7924 michael 912
7925     if test "$GCC" = yes; then
7926     lt_prog_compiler_wl='-Wl,'
7927     lt_prog_compiler_static='-static'
7928    
7929     case $host_os in
7930     aix*)
7931     # All AIX code is PIC.
7932     if test "$host_cpu" = ia64; then
7933     # AIX 5 now supports IA64 processor
7934     lt_prog_compiler_static='-Bstatic'
7935     fi
7936     ;;
7937    
7938     amigaos*)
7939 michael 945 case $host_cpu in
7940     powerpc)
7941     # see comment about AmigaOS4 .so support
7942     lt_prog_compiler_pic='-fPIC'
7943     ;;
7944     m68k)
7945     # FIXME: we need at least 68020 code to build shared libraries, but
7946     # adding the `-m68020' flag to GCC prevents building anything better,
7947     # like `-m68040'.
7948     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7949     ;;
7950     esac
7951 michael 912 ;;
7952    
7953     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7954     # PIC is the default for these OSes.
7955     ;;
7956    
7957 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7958 michael 912 # This hack is so that the source file can tell whether it is being
7959     # built for inclusion in a dll (and should export symbols for example).
7960     # Although the cygwin gcc ignores -fPIC, still need this for old-style
7961     # (--disable-auto-import) libraries
7962     lt_prog_compiler_pic='-DDLL_EXPORT'
7963     ;;
7964    
7965     darwin* | rhapsody*)
7966     # PIC is the default on this platform
7967     # Common symbols not allowed in MH_DYLIB files
7968     lt_prog_compiler_pic='-fno-common'
7969     ;;
7970    
7971 michael 945 hpux*)
7972     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7973     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7974     # sets the default TLS model and affects inlining.
7975     case $host_cpu in
7976     hppa*64*)
7977     # +Z the default
7978     ;;
7979     *)
7980     lt_prog_compiler_pic='-fPIC'
7981     ;;
7982     esac
7983     ;;
7984    
7985 michael 912 interix[3-9]*)
7986     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7987     # Instead, we relocate shared libraries at runtime.
7988     ;;
7989    
7990     msdosdjgpp*)
7991     # Just because we use GCC doesn't mean we suddenly get shared libraries
7992     # on systems that don't support them.
7993     lt_prog_compiler_can_build_shared=no
7994     enable_shared=no
7995     ;;
7996    
7997 michael 945 *nto* | *qnx*)
7998     # QNX uses GNU C++, but need to define -shared option too, otherwise
7999     # it will coredump.
8000     lt_prog_compiler_pic='-fPIC -shared'
8001     ;;
8002    
8003 michael 912 sysv4*MP*)
8004     if test -d /usr/nec; then
8005     lt_prog_compiler_pic=-Kconform_pic
8006     fi
8007     ;;
8008    
8009     *)
8010     lt_prog_compiler_pic='-fPIC'
8011     ;;
8012     esac
8013     else
8014     # PORTME Check for flag to pass linker flags through the system compiler.
8015     case $host_os in
8016     aix*)
8017     lt_prog_compiler_wl='-Wl,'
8018     if test "$host_cpu" = ia64; then
8019     # AIX 5 now supports IA64 processor
8020     lt_prog_compiler_static='-Bstatic'
8021     else
8022     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8023     fi
8024     ;;
8025    
8026 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8027 michael 912 # This hack is so that the source file can tell whether it is being
8028     # built for inclusion in a dll (and should export symbols for example).
8029     lt_prog_compiler_pic='-DDLL_EXPORT'
8030     ;;
8031    
8032     hpux9* | hpux10* | hpux11*)
8033     lt_prog_compiler_wl='-Wl,'
8034     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8035     # not for PA HP-UX.
8036     case $host_cpu in
8037     hppa*64*|ia64*)
8038     # +Z the default
8039     ;;
8040     *)
8041     lt_prog_compiler_pic='+Z'
8042     ;;
8043     esac
8044     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8045     lt_prog_compiler_static='${wl}-a ${wl}archive'
8046     ;;
8047    
8048     irix5* | irix6* | nonstopux*)
8049     lt_prog_compiler_wl='-Wl,'
8050     # PIC (with -KPIC) is the default.
8051     lt_prog_compiler_static='-non_shared'
8052     ;;
8053    
8054     linux* | k*bsd*-gnu)
8055     case $cc_basename in
8056 michael 945 # old Intel for x86_64 which still supported -KPIC.
8057     ecc*)
8058 michael 912 lt_prog_compiler_wl='-Wl,'
8059     lt_prog_compiler_pic='-KPIC'
8060     lt_prog_compiler_static='-static'
8061     ;;
8062 michael 945 # icc used to be incompatible with GCC.
8063     # ICC 10 doesn't accept -KPIC any more.
8064     icc* | ifort*)
8065     lt_prog_compiler_wl='-Wl,'
8066     lt_prog_compiler_pic='-fPIC'
8067     lt_prog_compiler_static='-static'
8068     ;;
8069     # Lahey Fortran 8.1.
8070     lf95*)
8071     lt_prog_compiler_wl='-Wl,'
8072     lt_prog_compiler_pic='--shared'
8073     lt_prog_compiler_static='--static'
8074     ;;
8075 michael 912 pgcc* | pgf77* | pgf90* | pgf95*)
8076     # Portland Group compilers (*not* the Pentium gcc compiler,
8077     # which looks to be a dead project)
8078     lt_prog_compiler_wl='-Wl,'
8079     lt_prog_compiler_pic='-fpic'
8080     lt_prog_compiler_static='-Bstatic'
8081     ;;
8082     ccc*)
8083     lt_prog_compiler_wl='-Wl,'
8084     # All Alpha code is PIC.
8085     lt_prog_compiler_static='-non_shared'
8086     ;;
8087 michael 945 xl*)
8088     # IBM XL C 8.0/Fortran 10.1 on PPC
8089     lt_prog_compiler_wl='-Wl,'
8090     lt_prog_compiler_pic='-qpic'
8091     lt_prog_compiler_static='-qstaticlink'
8092     ;;
8093 michael 912 *)
8094 michael 945 case `$CC -V 2>&1 | sed 5q` in
8095 michael 912 *Sun\ C*)
8096     # Sun C 5.9
8097     lt_prog_compiler_pic='-KPIC'
8098     lt_prog_compiler_static='-Bstatic'
8099     lt_prog_compiler_wl='-Wl,'
8100     ;;
8101     *Sun\ F*)
8102     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8103     lt_prog_compiler_pic='-KPIC'
8104     lt_prog_compiler_static='-Bstatic'
8105     lt_prog_compiler_wl=''
8106     ;;
8107     esac
8108     ;;
8109     esac
8110     ;;
8111    
8112 michael 945 newsos6)
8113     lt_prog_compiler_pic='-KPIC'
8114     lt_prog_compiler_static='-Bstatic'
8115     ;;
8116    
8117     *nto* | *qnx*)
8118     # QNX uses GNU C++, but need to define -shared option too, otherwise
8119     # it will coredump.
8120     lt_prog_compiler_pic='-fPIC -shared'
8121     ;;
8122    
8123 michael 912 osf3* | osf4* | osf5*)
8124     lt_prog_compiler_wl='-Wl,'
8125     # All OSF/1 code is PIC.
8126     lt_prog_compiler_static='-non_shared'
8127     ;;
8128    
8129     rdos*)
8130     lt_prog_compiler_static='-non_shared'
8131     ;;
8132    
8133     solaris*)
8134     lt_prog_compiler_pic='-KPIC'
8135     lt_prog_compiler_static='-Bstatic'
8136     case $cc_basename in
8137     f77* | f90* | f95*)
8138     lt_prog_compiler_wl='-Qoption ld ';;
8139     *)
8140     lt_prog_compiler_wl='-Wl,';;
8141     esac
8142     ;;
8143    
8144     sunos4*)
8145     lt_prog_compiler_wl='-Qoption ld '
8146     lt_prog_compiler_pic='-PIC'
8147     lt_prog_compiler_static='-Bstatic'
8148     ;;
8149    
8150     sysv4 | sysv4.2uw2* | sysv4.3*)
8151     lt_prog_compiler_wl='-Wl,'
8152     lt_prog_compiler_pic='-KPIC'
8153     lt_prog_compiler_static='-Bstatic'
8154     ;;
8155    
8156     sysv4*MP*)
8157     if test -d /usr/nec ;then
8158     lt_prog_compiler_pic='-Kconform_pic'
8159     lt_prog_compiler_static='-Bstatic'
8160     fi
8161     ;;
8162    
8163     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8164     lt_prog_compiler_wl='-Wl,'
8165     lt_prog_compiler_pic='-KPIC'
8166     lt_prog_compiler_static='-Bstatic'
8167     ;;
8168    
8169     unicos*)
8170     lt_prog_compiler_wl='-Wl,'
8171     lt_prog_compiler_can_build_shared=no
8172     ;;
8173    
8174     uts4*)
8175     lt_prog_compiler_pic='-pic'
8176     lt_prog_compiler_static='-Bstatic'
8177     ;;
8178    
8179     *)
8180     lt_prog_compiler_can_build_shared=no
8181     ;;
8182     esac
8183     fi
8184    
8185 michael 945 case $host_os in
8186     # For platforms which do not support PIC, -DPIC is meaningless:
8187     *djgpp*)
8188     lt_prog_compiler_pic=
8189     ;;
8190     *)
8191     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8192     ;;
8193     esac
8194 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8195 db 941 $as_echo "$lt_prog_compiler_pic" >&6; }
8196 michael 912
8197 michael 945
8198    
8199    
8200    
8201    
8202 michael 912 #
8203     # Check to make sure the PIC flag actually works.
8204     #
8205     if test -n "$lt_prog_compiler_pic"; then
8206 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8207 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8208 michael 967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8209 db 941 $as_echo_n "(cached) " >&6
8210 michael 912 else
8211 db 941 lt_cv_prog_compiler_pic_works=no
8212 michael 945 ac_outfile=conftest.$ac_objext
8213 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8215     # Insert the option either (1) after the last *FLAGS variable, or
8216     # (2) before a word containing "conftest.", or (3) at the end.
8217     # Note that $ac_compile itself does not contain backslashes and begins
8218     # with a dollar sign (not a hyphen), so the echo should work correctly.
8219     # The option is referenced via a variable to avoid confusing sed.
8220     lt_compile=`echo "$ac_compile" | $SED \
8221     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223     -e 's:$: $lt_compiler_flag:'`
8224 michael 1033 (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225 michael 912 (eval "$lt_compile" 2>conftest.err)
8226     ac_status=$?
8227     cat conftest.err >&5
8228 michael 1033 echo "$as_me:8228: \$? = $ac_status" >&5
8229 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8230     # The compiler can only warn and ignore the option if not recognized
8231     # So say no if there are warnings other than the usual output.
8232 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8233 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8235 db 941 lt_cv_prog_compiler_pic_works=yes
8236 michael 912 fi
8237     fi
8238 michael 945 $RM conftest*
8239 michael 912
8240     fi
8241 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8242 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8243 michael 912
8244 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8245 michael 912 case $lt_prog_compiler_pic in
8246     "" | " "*) ;;
8247     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8248     esac
8249     else
8250     lt_prog_compiler_pic=
8251     lt_prog_compiler_can_build_shared=no
8252     fi
8253    
8254     fi
8255    
8256 michael 945
8257    
8258    
8259    
8260    
8261 michael 912 #
8262     # Check to make sure the static flag actually works.
8263     #
8264     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8265 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8266 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8267 michael 967 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8268 db 941 $as_echo_n "(cached) " >&6
8269 michael 912 else
8270 db 941 lt_cv_prog_compiler_static_works=no
8271 michael 912 save_LDFLAGS="$LDFLAGS"
8272     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8273     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8274     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8275     # The linker can only warn and ignore the option if not recognized
8276     # So say no if there are warnings
8277     if test -s conftest.err; then
8278     # Append any errors to the config.log.
8279     cat conftest.err 1>&5
8280 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8281 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282     if diff conftest.exp conftest.er2 >/dev/null; then
8283 db 941 lt_cv_prog_compiler_static_works=yes
8284 michael 912 fi
8285     else
8286 db 941 lt_cv_prog_compiler_static_works=yes
8287 michael 912 fi
8288     fi
8289 michael 945 $RM -r conftest*
8290 michael 912 LDFLAGS="$save_LDFLAGS"
8291    
8292     fi
8293 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8294 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8295 michael 912
8296 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8297 michael 912 :
8298     else
8299     lt_prog_compiler_static=
8300     fi
8301    
8302    
8303 michael 945
8304    
8305    
8306    
8307    
8308 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8311 db 941 $as_echo_n "(cached) " >&6
8312 michael 912 else
8313     lt_cv_prog_compiler_c_o=no
8314 michael 945 $RM -r conftest 2>/dev/null
8315 michael 912 mkdir conftest
8316     cd conftest
8317     mkdir out
8318     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319    
8320     lt_compiler_flag="-o out/conftest2.$ac_objext"
8321     # Insert the option either (1) after the last *FLAGS variable, or
8322     # (2) before a word containing "conftest.", or (3) at the end.
8323     # Note that $ac_compile itself does not contain backslashes and begins
8324     # with a dollar sign (not a hyphen), so the echo should work correctly.
8325     lt_compile=`echo "$ac_compile" | $SED \
8326     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328     -e 's:$: $lt_compiler_flag:'`
8329 michael 1033 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8331     ac_status=$?
8332     cat out/conftest.err >&5
8333 michael 1033 echo "$as_me:8333: \$? = $ac_status" >&5
8334 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8335     then
8336     # The compiler can only warn and ignore the option if not recognized
8337     # So say no if there are warnings
8338 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8339 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341     lt_cv_prog_compiler_c_o=yes
8342     fi
8343     fi
8344     chmod u+w . 2>&5
8345 michael 945 $RM conftest*
8346 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8347     # template instantiation
8348 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349     $RM out/* && rmdir out
8350 michael 912 cd ..
8351 michael 945 $RM -r conftest
8352     $RM conftest*
8353 michael 912
8354     fi
8355 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8356 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8357 michael 912
8358    
8359 michael 945
8360    
8361    
8362    
8363 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8364 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8365 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8366 michael 945 $as_echo_n "(cached) " >&6
8367     else
8368     lt_cv_prog_compiler_c_o=no
8369     $RM -r conftest 2>/dev/null
8370     mkdir conftest
8371     cd conftest
8372     mkdir out
8373     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374    
8375     lt_compiler_flag="-o out/conftest2.$ac_objext"
8376     # Insert the option either (1) after the last *FLAGS variable, or
8377     # (2) before a word containing "conftest.", or (3) at the end.
8378     # Note that $ac_compile itself does not contain backslashes and begins
8379     # with a dollar sign (not a hyphen), so the echo should work correctly.
8380     lt_compile=`echo "$ac_compile" | $SED \
8381     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383     -e 's:$: $lt_compiler_flag:'`
8384 michael 1033 (eval echo "\"\$as_me:8384: $lt_compile\"" >&5)
8385 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8386     ac_status=$?
8387     cat out/conftest.err >&5
8388 michael 1033 echo "$as_me:8388: \$? = $ac_status" >&5
8389 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8390     then
8391     # The compiler can only warn and ignore the option if not recognized
8392     # So say no if there are warnings
8393     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8394     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8395     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8396     lt_cv_prog_compiler_c_o=yes
8397     fi
8398     fi
8399     chmod u+w . 2>&5
8400     $RM conftest*
8401     # SGI C++ compiler will create directory out/ii_files/ for
8402     # template instantiation
8403     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8404     $RM out/* && rmdir out
8405     cd ..
8406     $RM -r conftest
8407     $RM conftest*
8408    
8409     fi
8410 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8411 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8412    
8413    
8414    
8415    
8416 michael 912 hard_links="nottested"
8417     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8418     # do not overwrite the value of need_locks provided by the user
8419 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8420 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
8421 michael 912 hard_links=yes
8422 michael 945 $RM conftest*
8423 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424     touch conftest.a
8425     ln conftest.a conftest.b 2>&5 || hard_links=no
8426     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8428 db 941 $as_echo "$hard_links" >&6; }
8429 michael 912 if test "$hard_links" = no; then
8430 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8432 michael 912 need_locks=warn
8433     fi
8434     else
8435     need_locks=no
8436     fi
8437    
8438 michael 945
8439    
8440    
8441    
8442    
8443 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8444 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8445 michael 912
8446     runpath_var=
8447     allow_undefined_flag=
8448 michael 945 always_export_symbols=no
8449 michael 912 archive_cmds=
8450     archive_expsym_cmds=
8451 michael 945 compiler_needs_object=no
8452     enable_shared_with_static_runtimes=no
8453 michael 912 export_dynamic_flag_spec=
8454 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8455     hardcode_automatic=no
8456     hardcode_direct=no
8457     hardcode_direct_absolute=no
8458 michael 912 hardcode_libdir_flag_spec=
8459     hardcode_libdir_flag_spec_ld=
8460     hardcode_libdir_separator=
8461     hardcode_minus_L=no
8462     hardcode_shlibpath_var=unsupported
8463 michael 945 inherit_rpath=no
8464 michael 912 link_all_deplibs=unknown
8465     module_cmds=
8466     module_expsym_cmds=
8467 michael 945 old_archive_from_new_cmds=
8468     old_archive_from_expsyms_cmds=
8469     thread_safe_flag_spec=
8470     whole_archive_flag_spec=
8471 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
8472     # included in the symbol list
8473     include_expsyms=
8474     # exclude_expsyms can be an extended regexp of symbols to exclude
8475     # it will be wrapped by ` (' and `)$', so one must not match beginning or
8476     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8477     # as well as any symbol that contains `d'.
8478 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8479 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8480     # platforms (ab)use it in PIC code, but their linkers get confused if
8481     # the symbol is explicitly referenced. Since portable code cannot
8482     # rely on this symbol name, it's probably fine to never include it in
8483     # preloaded symbol tables.
8484 db 941 # Exclude shared library initialization/finalization symbols.
8485 michael 912 extract_expsyms_cmds=
8486    
8487     case $host_os in
8488 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8489 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8490     # When not using gcc, we currently assume that we are using
8491     # Microsoft Visual C++.
8492     if test "$GCC" != yes; then
8493     with_gnu_ld=no
8494     fi
8495     ;;
8496     interix*)
8497     # we just hope/assume this is gcc and not c89 (= MSVC++)
8498     with_gnu_ld=yes
8499     ;;
8500     openbsd*)
8501     with_gnu_ld=no
8502     ;;
8503     esac
8504    
8505     ld_shlibs=yes
8506     if test "$with_gnu_ld" = yes; then
8507     # If archive_cmds runs LD, not CC, wlarc should be empty
8508     wlarc='${wl}'
8509    
8510     # Set some defaults for GNU ld with shared library support. These
8511     # are reset later if shared libraries are not supported. Putting them
8512     # here allows them to be overridden if necessary.
8513     runpath_var=LD_RUN_PATH
8514 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8515 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
8516     # ancient GNU ld didn't support --whole-archive et. al.
8517 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8518     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519     else
8520     whole_archive_flag_spec=
8521 michael 912 fi
8522     supports_anon_versioning=no
8523 michael 945 case `$LD -v 2>&1` in
8524 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527     *\ 2.11.*) ;; # other 2.11 versions
8528     *) supports_anon_versioning=yes ;;
8529     esac
8530    
8531     # See if GNU ld supports shared libraries.
8532     case $host_os in
8533 db 941 aix[3-9]*)
8534 michael 912 # On AIX/PPC, the GNU linker is very broken
8535     if test "$host_cpu" != ia64; then
8536     ld_shlibs=no
8537 michael 945 cat <<_LT_EOF 1>&2
8538 michael 912
8539     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8540     *** to be unable to reliably create shared libraries on AIX.
8541     *** Therefore, libtool is disabling shared libraries support. If you
8542     *** really care for shared libraries, you may want to modify your PATH
8543     *** so that a non-GNU linker is found, and then restart.
8544    
8545 michael 945 _LT_EOF
8546 michael 912 fi
8547     ;;
8548    
8549     amigaos*)
8550 michael 945 case $host_cpu in
8551     powerpc)
8552     # see comment about AmigaOS4 .so support
8553     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554     archive_expsym_cmds=''
8555     ;;
8556     m68k)
8557     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)'
8558     hardcode_libdir_flag_spec='-L$libdir'
8559     hardcode_minus_L=yes
8560     ;;
8561     esac
8562 michael 912 ;;
8563    
8564     beos*)
8565 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566 michael 912 allow_undefined_flag=unsupported
8567     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568     # support --undefined. This deserves some investigation. FIXME
8569     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570     else
8571     ld_shlibs=no
8572     fi
8573     ;;
8574    
8575 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8576     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577 michael 912 # as there is no search path for DLLs.
8578     hardcode_libdir_flag_spec='-L$libdir'
8579     allow_undefined_flag=unsupported
8580     always_export_symbols=no
8581     enable_shared_with_static_runtimes=yes
8582 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8583 michael 912
8584 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8585 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586     # If the export-symbols file already is a .def file (1st line
8587     # is EXPORTS), use it as is; otherwise, prepend...
8588     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589     cp $export_symbols $output_objdir/$soname.def;
8590     else
8591     echo EXPORTS > $output_objdir/$soname.def;
8592     cat $export_symbols >> $output_objdir/$soname.def;
8593     fi~
8594     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595     else
8596     ld_shlibs=no
8597     fi
8598     ;;
8599    
8600     interix[3-9]*)
8601     hardcode_direct=no
8602     hardcode_shlibpath_var=no
8603     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604     export_dynamic_flag_spec='${wl}-E'
8605     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606     # Instead, shared libraries are loaded at an image base (0x10000000 by
8607     # default) and relocated if they conflict, which is a slow very memory
8608     # consuming and fragmenting process. To avoid this, we pick a random,
8609     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8611     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612     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'
8613     ;;
8614    
8615 michael 945 gnu* | linux* | tpf* | k*bsd*-gnu)
8616     tmp_diet=no
8617     if test "$host_os" = linux-dietlibc; then
8618     case $cc_basename in
8619     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8620     esac
8621     fi
8622     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8623     && test "$tmp_diet" = no
8624     then
8625 michael 912 tmp_addflag=
8626 michael 945 tmp_sharedflag='-shared'
8627 michael 912 case $cc_basename,$host_cpu in
8628 michael 945 pgcc*) # Portland Group C compiler
8629     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'
8630 michael 912 tmp_addflag=' $pic_flag'
8631     ;;
8632     pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8633 michael 945 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'
8634 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
8635 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8636 michael 912 tmp_addflag=' -i_dynamic' ;;
8637     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8638     tmp_addflag=' -i_dynamic -nofor_main' ;;
8639     ifc* | ifort*) # Intel Fortran compiler
8640     tmp_addflag=' -nofor_main' ;;
8641 michael 945 lf95*) # Lahey Fortran 8.1
8642     whole_archive_flag_spec=
8643     tmp_sharedflag='--shared' ;;
8644     xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8645     tmp_sharedflag='-qmkshrobj'
8646     tmp_addflag= ;;
8647 michael 912 esac
8648     case `$CC -V 2>&1 | sed 5q` in
8649     *Sun\ C*) # Sun C 5.9
8650 michael 945 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'
8651     compiler_needs_object=yes
8652 michael 912 tmp_sharedflag='-G' ;;
8653     *Sun\ F*) # Sun Fortran 8.3
8654     tmp_sharedflag='-G' ;;
8655     esac
8656     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657    
8658 michael 945 if test "x$supports_anon_versioning" = xyes; then
8659     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8660     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8661     echo "local: *; };" >> $output_objdir/$libname.ver~
8662     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8663     fi
8664    
8665     case $cc_basename in
8666     xlf*)
8667     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8668     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8669     hardcode_libdir_flag_spec=
8670     hardcode_libdir_flag_spec_ld='-rpath $libdir'
8671     archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8672     if test "x$supports_anon_versioning" = xyes; then
8673     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8674     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8675     echo "local: *; };" >> $output_objdir/$libname.ver~
8676     $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8677     fi
8678     ;;
8679     esac
8680 michael 912 else
8681 michael 945 ld_shlibs=no
8682 michael 912 fi
8683     ;;
8684    
8685     netbsd*)
8686 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8687 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8688     wlarc=
8689     else
8690     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692     fi
8693     ;;
8694    
8695     solaris*)
8696 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8697 michael 912 ld_shlibs=no
8698 michael 945 cat <<_LT_EOF 1>&2
8699 michael 912
8700     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8701     *** create shared libraries on Solaris systems. Therefore, libtool
8702     *** is disabling shared libraries support. We urge you to upgrade GNU
8703     *** binutils to release 2.9.1 or newer. Another option is to modify
8704     *** your PATH or compiler configuration so that the native linker is
8705     *** used, and then restart.
8706    
8707 michael 945 _LT_EOF
8708     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711     else
8712     ld_shlibs=no
8713     fi
8714     ;;
8715    
8716     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8717     case `$LD -v 2>&1` in
8718     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8719     ld_shlibs=no
8720     cat <<_LT_EOF 1>&2
8721    
8722     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8723     *** reliably create shared libraries on SCO systems. Therefore, libtool
8724     *** is disabling shared libraries support. We urge you to upgrade GNU
8725     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8726     *** your PATH or compiler configuration so that the native linker is
8727     *** used, and then restart.
8728    
8729     _LT_EOF
8730     ;;
8731     *)
8732 michael 945 # For security reasons, it is highly recommended that you always
8733     # use absolute paths for naming shared libraries, and exclude the
8734     # DT_RUNPATH tag from executables and libraries. But doing so
8735     # requires that you compile everything twice, which is a pain.
8736     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8738     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740 michael 912 else
8741     ld_shlibs=no
8742     fi
8743     ;;
8744     esac
8745     ;;
8746    
8747     sunos4*)
8748     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8749     wlarc=
8750     hardcode_direct=yes
8751     hardcode_shlibpath_var=no
8752     ;;
8753    
8754     *)
8755 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8758     else
8759     ld_shlibs=no
8760     fi
8761     ;;
8762     esac
8763    
8764     if test "$ld_shlibs" = no; then
8765     runpath_var=
8766     hardcode_libdir_flag_spec=
8767     export_dynamic_flag_spec=
8768     whole_archive_flag_spec=
8769     fi
8770     else
8771     # PORTME fill in a description of your system's linker (not GNU ld)
8772     case $host_os in
8773     aix3*)
8774     allow_undefined_flag=unsupported
8775     always_export_symbols=yes
8776     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'
8777     # Note: this linker hardcodes the directories in LIBPATH if there
8778     # are no directories specified by -L.
8779     hardcode_minus_L=yes
8780     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8781     # Neither direct hardcoding nor static linking is supported with a
8782     # broken collect2.
8783     hardcode_direct=unsupported
8784     fi
8785     ;;
8786    
8787 db 941 aix[4-9]*)
8788 michael 912 if test "$host_cpu" = ia64; then
8789     # On IA64, the linker does run time linking by default, so we don't
8790     # have to do anything special.
8791     aix_use_runtimelinking=no
8792     exp_sym_flag='-Bexport'
8793     no_entry_flag=""
8794     else
8795     # If we're using GNU nm, then we don't want the "-C" option.
8796     # -C means demangle to AIX nm, but means don't demangle with GNU nm
8797 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8798     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'
8799 michael 912 else
8800 michael 945 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'
8801 michael 912 fi
8802     aix_use_runtimelinking=no
8803    
8804     # Test if we are trying to use run time linking or normal
8805     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8806     # need to do runtime linking.
8807 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8808 michael 912 for ld_flag in $LDFLAGS; do
8809 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8810     aix_use_runtimelinking=yes
8811     break
8812     fi
8813 michael 912 done
8814     ;;
8815     esac
8816    
8817     exp_sym_flag='-bexport'
8818     no_entry_flag='-bnoentry'
8819     fi
8820    
8821     # When large executables or shared objects are built, AIX ld can
8822     # have problems creating the table of contents. If linking a library
8823     # or program results in "error TOC overflow" add -mminimal-toc to
8824     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8825     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8826    
8827     archive_cmds=''
8828     hardcode_direct=yes
8829 michael 945 hardcode_direct_absolute=yes
8830 michael 912 hardcode_libdir_separator=':'
8831     link_all_deplibs=yes
8832 michael 945 file_list_spec='${wl}-f,'
8833 michael 912
8834     if test "$GCC" = yes; then
8835     case $host_os in aix4.[012]|aix4.[012].*)
8836     # We only want to do this on AIX 4.2 and lower, the check
8837     # below for broken collect2 doesn't work under 4.3+
8838     collect2name=`${CC} -print-prog-name=collect2`
8839 michael 945 if test -f "$collect2name" &&
8840     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8841 michael 912 then
8842 michael 945 # We have reworked collect2
8843     :
8844 michael 912 else
8845 michael 945 # We have old collect2
8846     hardcode_direct=unsupported
8847     # It fails to find uninstalled libraries when the uninstalled
8848     # path is not listed in the libpath. Setting hardcode_minus_L
8849     # to unsupported forces relinking
8850     hardcode_minus_L=yes
8851     hardcode_libdir_flag_spec='-L$libdir'
8852     hardcode_libdir_separator=
8853 michael 912 fi
8854     ;;
8855     esac
8856     shared_flag='-shared'
8857     if test "$aix_use_runtimelinking" = yes; then
8858     shared_flag="$shared_flag "'${wl}-G'
8859     fi
8860 michael 945 link_all_deplibs=no
8861 michael 912 else
8862     # not using gcc
8863     if test "$host_cpu" = ia64; then
8864 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8865     # chokes on -Wl,-G. The following line is correct:
8866 michael 912 shared_flag='-G'
8867     else
8868     if test "$aix_use_runtimelinking" = yes; then
8869     shared_flag='${wl}-G'
8870     else
8871     shared_flag='${wl}-bM:SRE'
8872     fi
8873     fi
8874     fi
8875    
8876 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
8877 michael 912 # It seems that -bexpall does not export symbols beginning with
8878     # underscore (_), so it is better to generate a list of symbols to export.
8879     always_export_symbols=yes
8880     if test "$aix_use_runtimelinking" = yes; then
8881     # Warning - without using the other runtime loading flags (-brtl),
8882     # -berok will link without error, but may produce a broken library.
8883     allow_undefined_flag='-berok'
8884 michael 945 # Determine the default libpath from the value encoded in an
8885     # empty executable.
8886 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 michael 912 /* end confdefs.h. */
8888    
8889     int
8890     main ()
8891     {
8892    
8893     ;
8894     return 0;
8895     }
8896     _ACEOF
8897 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8898 michael 912
8899     lt_aix_libpath_sed='
8900     /Import File Strings/,/^$/ {
8901     /^0/ {
8902     s/^0 *\(.*\)$/\1/
8903     p
8904     }
8905     }'
8906     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8907     # Check for a 64-bit object if we didn't find anything.
8908     if test -z "$aix_libpath"; then
8909     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8910     fi
8911     fi
8912 michael 967 rm -f core conftest.err conftest.$ac_objext \
8913     conftest$ac_exeext conftest.$ac_ext
8914 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8915    
8916 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8917     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"
8918     else
8919 michael 912 if test "$host_cpu" = ia64; then
8920     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8921     allow_undefined_flag="-z nodefs"
8922     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"
8923     else
8924 michael 945 # Determine the default libpath from the value encoded in an
8925     # empty executable.
8926 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 michael 912 /* end confdefs.h. */
8928    
8929     int
8930     main ()
8931     {
8932    
8933     ;
8934     return 0;
8935     }
8936     _ACEOF
8937 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8938 michael 912
8939     lt_aix_libpath_sed='
8940     /Import File Strings/,/^$/ {
8941     /^0/ {
8942     s/^0 *\(.*\)$/\1/
8943     p
8944     }
8945     }'
8946     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947     # Check for a 64-bit object if we didn't find anything.
8948     if test -z "$aix_libpath"; then
8949     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8950     fi
8951     fi
8952 michael 967 rm -f core conftest.err conftest.$ac_objext \
8953     conftest$ac_exeext conftest.$ac_ext
8954 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8955    
8956     hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8957     # Warning - without using the other run time loading flags,
8958     # -berok will link without error, but may produce a broken library.
8959     no_undefined_flag=' ${wl}-bernotok'
8960     allow_undefined_flag=' ${wl}-berok'
8961     # Exported symbols can be pulled into shared objects from archives
8962     whole_archive_flag_spec='$convenience'
8963     archive_cmds_need_lc=yes
8964     # This is similar to how AIX traditionally builds its shared libraries.
8965     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'
8966     fi
8967     fi
8968     ;;
8969    
8970     amigaos*)
8971 michael 945 case $host_cpu in
8972     powerpc)
8973     # see comment about AmigaOS4 .so support
8974     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975     archive_expsym_cmds=''
8976     ;;
8977     m68k)
8978     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)'
8979     hardcode_libdir_flag_spec='-L$libdir'
8980     hardcode_minus_L=yes
8981     ;;
8982     esac
8983 michael 912 ;;
8984    
8985     bsdi[45]*)
8986     export_dynamic_flag_spec=-rdynamic
8987     ;;
8988    
8989 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8990 michael 912 # When not using gcc, we currently assume that we are using
8991     # Microsoft Visual C++.
8992     # hardcode_libdir_flag_spec is actually meaningless, as there is
8993     # no search path for DLLs.
8994     hardcode_libdir_flag_spec=' '
8995     allow_undefined_flag=unsupported
8996     # Tell ltmain to make .lib files, not .a files.
8997     libext=lib
8998     # Tell ltmain to make .dll files, not .so files.
8999     shrext_cmds=".dll"
9000     # FIXME: Setting linknames here is a bad hack.
9001 michael 945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9002 michael 912 # The linker will automatically build a .lib file if we build a DLL.
9003 michael 945 old_archive_from_new_cmds='true'
9004 michael 912 # FIXME: Should let the user specify the lib program.
9005     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9006     fix_srcfile_path='`cygpath -w "$srcfile"`'
9007     enable_shared_with_static_runtimes=yes
9008     ;;
9009    
9010     darwin* | rhapsody*)
9011 michael 945
9012    
9013     archive_cmds_need_lc=no
9014     hardcode_direct=no
9015     hardcode_automatic=yes
9016     hardcode_shlibpath_var=unsupported
9017     whole_archive_flag_spec=''
9018     link_all_deplibs=yes
9019     allow_undefined_flag="$_lt_dar_allow_undefined"
9020     case $cc_basename in
9021     ifort*) _lt_dar_can_shared=yes ;;
9022     *) _lt_dar_can_shared=$GCC ;;
9023     esac
9024     if test "$_lt_dar_can_shared" = "yes"; then
9025     output_verbose_link_cmd=echo
9026     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9027     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9028     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}"
9029     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}"
9030    
9031     else
9032     ld_shlibs=no
9033     fi
9034    
9035 michael 912 ;;
9036    
9037     dgux*)
9038     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039     hardcode_libdir_flag_spec='-L$libdir'
9040     hardcode_shlibpath_var=no
9041     ;;
9042    
9043     freebsd1*)
9044     ld_shlibs=no
9045     ;;
9046    
9047     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9048     # support. Future versions do this automatically, but an explicit c++rt0.o
9049     # does not break anything, and helps significantly (at the cost of a little
9050     # extra space).
9051     freebsd2.2*)
9052     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9053     hardcode_libdir_flag_spec='-R$libdir'
9054     hardcode_direct=yes
9055     hardcode_shlibpath_var=no
9056     ;;
9057    
9058     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9059     freebsd2*)
9060     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061     hardcode_direct=yes
9062     hardcode_minus_L=yes
9063     hardcode_shlibpath_var=no
9064     ;;
9065    
9066     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9067     freebsd* | dragonfly*)
9068     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9069     hardcode_libdir_flag_spec='-R$libdir'
9070     hardcode_direct=yes
9071     hardcode_shlibpath_var=no
9072     ;;
9073    
9074     hpux9*)
9075     if test "$GCC" = yes; then
9076 michael 945 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'
9077 michael 912 else
9078 michael 945 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'
9079 michael 912 fi
9080     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9081     hardcode_libdir_separator=:
9082     hardcode_direct=yes
9083    
9084     # hardcode_minus_L: Not really in the search PATH,
9085     # but as the default location of the library.
9086     hardcode_minus_L=yes
9087     export_dynamic_flag_spec='${wl}-E'
9088     ;;
9089    
9090     hpux10*)
9091     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9092     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9093     else
9094     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9095     fi
9096     if test "$with_gnu_ld" = no; then
9097     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9098 michael 945 hardcode_libdir_flag_spec_ld='+b $libdir'
9099 michael 912 hardcode_libdir_separator=:
9100     hardcode_direct=yes
9101 michael 945 hardcode_direct_absolute=yes
9102 michael 912 export_dynamic_flag_spec='${wl}-E'
9103     # hardcode_minus_L: Not really in the search PATH,
9104     # but as the default location of the library.
9105     hardcode_minus_L=yes
9106     fi
9107     ;;
9108    
9109     hpux11*)
9110     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9111     case $host_cpu in
9112     hppa*64*)
9113     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114     ;;
9115     ia64*)
9116 michael 945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9117 michael 912 ;;
9118     *)
9119     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120     ;;
9121     esac
9122     else
9123     case $host_cpu in
9124     hppa*64*)
9125     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126     ;;
9127     ia64*)
9128     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9129     ;;
9130     *)
9131     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132     ;;
9133     esac
9134     fi
9135     if test "$with_gnu_ld" = no; then
9136     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9137     hardcode_libdir_separator=:
9138    
9139     case $host_cpu in
9140     hppa*64*|ia64*)
9141     hardcode_direct=no
9142     hardcode_shlibpath_var=no
9143     ;;
9144     *)
9145     hardcode_direct=yes
9146 michael 945 hardcode_direct_absolute=yes
9147 michael 912 export_dynamic_flag_spec='${wl}-E'
9148    
9149     # hardcode_minus_L: Not really in the search PATH,
9150     # but as the default location of the library.
9151     hardcode_minus_L=yes
9152     ;;
9153     esac
9154     fi
9155     ;;
9156    
9157     irix5* | irix6* | nonstopux*)
9158     if test "$GCC" = yes; then
9159 michael 945 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'
9160     # Try to use the -exported_symbol ld option, if it does not
9161     # work, assume that -exports_file does not work either and
9162     # implicitly export all symbols.
9163     save_LDFLAGS="$LDFLAGS"
9164     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9165 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166     /* end confdefs.h. */
9167 michael 945 int foo(void) {}
9168     _ACEOF
9169 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9170 michael 945 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'
9171    
9172     fi
9173 michael 967 rm -f core conftest.err conftest.$ac_objext \
9174     conftest$ac_exeext conftest.$ac_ext
9175 michael 945 LDFLAGS="$save_LDFLAGS"
9176 michael 912 else
9177 michael 945 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'
9178     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'
9179 michael 912 fi
9180 michael 945 archive_cmds_need_lc='no'
9181 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182     hardcode_libdir_separator=:
9183 michael 945 inherit_rpath=yes
9184 michael 912 link_all_deplibs=yes
9185     ;;
9186    
9187     netbsd*)
9188 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9189 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9190     else
9191     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9192     fi
9193     hardcode_libdir_flag_spec='-R$libdir'
9194     hardcode_direct=yes
9195     hardcode_shlibpath_var=no
9196     ;;
9197    
9198     newsos6)
9199     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200     hardcode_direct=yes
9201     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202     hardcode_libdir_separator=:
9203     hardcode_shlibpath_var=no
9204     ;;
9205    
9206 michael 945 *nto* | *qnx*)
9207     ;;
9208    
9209 michael 912 openbsd*)
9210     if test -f /usr/libexec/ld.so; then
9211     hardcode_direct=yes
9212     hardcode_shlibpath_var=no
9213 michael 945 hardcode_direct_absolute=yes
9214     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9215 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9217     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9218     export_dynamic_flag_spec='${wl}-E'
9219     else
9220     case $host_os in
9221     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9222     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9223     hardcode_libdir_flag_spec='-R$libdir'
9224     ;;
9225     *)
9226     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9227     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228     ;;
9229     esac
9230 michael 945 fi
9231 michael 912 else
9232     ld_shlibs=no
9233     fi
9234     ;;
9235    
9236     os2*)
9237     hardcode_libdir_flag_spec='-L$libdir'
9238     hardcode_minus_L=yes
9239     allow_undefined_flag=unsupported
9240 michael 945 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'
9241     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9242 michael 912 ;;
9243    
9244     osf3*)
9245     if test "$GCC" = yes; then
9246     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 michael 945 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'
9248 michael 912 else
9249     allow_undefined_flag=' -expect_unresolved \*'
9250 michael 945 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'
9251 michael 912 fi
9252 michael 945 archive_cmds_need_lc='no'
9253 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254     hardcode_libdir_separator=:
9255     ;;
9256    
9257     osf4* | osf5*) # as osf3* with the addition of -msym flag
9258     if test "$GCC" = yes; then
9259     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9260 michael 945 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'
9261 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262     else
9263     allow_undefined_flag=' -expect_unresolved \*'
9264 michael 945 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'
9265     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~
9266     $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'
9267 michael 912
9268     # Both c and cxx compiler support -rpath directly
9269     hardcode_libdir_flag_spec='-rpath $libdir'
9270     fi
9271 michael 945 archive_cmds_need_lc='no'
9272 michael 912 hardcode_libdir_separator=:
9273     ;;
9274    
9275     solaris*)
9276 michael 945 no_undefined_flag=' -z defs'
9277 michael 912 if test "$GCC" = yes; then
9278     wlarc='${wl}'
9279 michael 945 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9280     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281     $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282 michael 912 else
9283 michael 945 case `$CC -V 2>&1` in
9284     *"Compilers 5.0"*)
9285     wlarc=''
9286     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9288     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9289     ;;
9290     *)
9291     wlarc='${wl}'
9292     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9293     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9294     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9295     ;;
9296     esac
9297 michael 912 fi
9298     hardcode_libdir_flag_spec='-R$libdir'
9299     hardcode_shlibpath_var=no
9300     case $host_os in
9301     solaris2.[0-5] | solaris2.[0-5].*) ;;
9302     *)
9303     # The compiler driver will combine and reorder linker options,
9304     # but understands `-z linker_flag'. GCC discards it without `$wl',
9305     # but is careful enough not to reorder.
9306 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
9307 michael 912 if test "$GCC" = yes; then
9308     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9309     else
9310     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9311     fi
9312     ;;
9313     esac
9314     link_all_deplibs=yes
9315     ;;
9316    
9317     sunos4*)
9318     if test "x$host_vendor" = xsequent; then
9319     # Use $CC to link under sequent, because it throws in some extra .o
9320     # files that make .init and .fini sections work.
9321     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322     else
9323     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9324     fi
9325     hardcode_libdir_flag_spec='-L$libdir'
9326     hardcode_direct=yes
9327     hardcode_minus_L=yes
9328     hardcode_shlibpath_var=no
9329     ;;
9330    
9331     sysv4)
9332     case $host_vendor in
9333     sni)
9334     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335     hardcode_direct=yes # is this really true???
9336     ;;
9337     siemens)
9338     ## LD is ld it makes a PLAMLIB
9339     ## CC just makes a GrossModule.
9340     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9341     reload_cmds='$CC -r -o $output$reload_objs'
9342     hardcode_direct=no
9343     ;;
9344     motorola)
9345     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9347     ;;
9348     esac
9349     runpath_var='LD_RUN_PATH'
9350     hardcode_shlibpath_var=no
9351     ;;
9352    
9353     sysv4.3*)
9354     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355     hardcode_shlibpath_var=no
9356     export_dynamic_flag_spec='-Bexport'
9357     ;;
9358    
9359     sysv4*MP*)
9360     if test -d /usr/nec; then
9361     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362     hardcode_shlibpath_var=no
9363     runpath_var=LD_RUN_PATH
9364     hardcode_runpath_var=yes
9365     ld_shlibs=yes
9366     fi
9367     ;;
9368    
9369     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9370     no_undefined_flag='${wl}-z,text'
9371     archive_cmds_need_lc=no
9372     hardcode_shlibpath_var=no
9373     runpath_var='LD_RUN_PATH'
9374    
9375     if test "$GCC" = yes; then
9376     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378     else
9379     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381     fi
9382     ;;
9383    
9384     sysv5* | sco3.2v5* | sco5v6*)
9385     # Note: We can NOT use -z defs as we might desire, because we do not
9386     # link with -lc, and that would cause any symbols used from libc to
9387     # always be unresolved, which means just about no library would
9388     # ever link correctly. If we're not using GNU ld we use -z text
9389     # though, which does catch some bad symbols but isn't as heavy-handed
9390     # as -z defs.
9391     no_undefined_flag='${wl}-z,text'
9392     allow_undefined_flag='${wl}-z,nodefs'
9393     archive_cmds_need_lc=no
9394     hardcode_shlibpath_var=no
9395 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9396 michael 912 hardcode_libdir_separator=':'
9397     link_all_deplibs=yes
9398     export_dynamic_flag_spec='${wl}-Bexport'
9399     runpath_var='LD_RUN_PATH'
9400    
9401     if test "$GCC" = yes; then
9402 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 michael 912 else
9405 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 michael 912 fi
9408     ;;
9409    
9410     uts4*)
9411     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412     hardcode_libdir_flag_spec='-L$libdir'
9413     hardcode_shlibpath_var=no
9414     ;;
9415    
9416     *)
9417     ld_shlibs=no
9418     ;;
9419     esac
9420 michael 945
9421     if test x$host_vendor = xsni; then
9422     case $host in
9423     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9424     export_dynamic_flag_spec='${wl}-Blargedynsym'
9425     ;;
9426     esac
9427     fi
9428 michael 912 fi
9429    
9430 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9431 db 941 $as_echo "$ld_shlibs" >&6; }
9432 michael 912 test "$ld_shlibs" = no && can_build_shared=no
9433    
9434 michael 945 with_gnu_ld=$with_gnu_ld
9435    
9436    
9437    
9438    
9439    
9440    
9441    
9442    
9443    
9444    
9445    
9446    
9447    
9448    
9449    
9450 michael 912 #
9451     # Do we need to explicitly link libc?
9452     #
9453     case "x$archive_cmds_need_lc" in
9454     x|xyes)
9455     # Assume -lc should be added
9456     archive_cmds_need_lc=yes
9457    
9458     if test "$enable_shared" = yes && test "$GCC" = yes; then
9459     case $archive_cmds in
9460     *'~'*)
9461     # FIXME: we may have to deal with multi-command sequences.
9462     ;;
9463     '$CC '*)
9464     # Test whether the compiler implicitly links with -lc since on some
9465     # systems, -lgcc has to come before -lc. If gcc already passes -lc
9466     # to ld, don't add -lc before -lgcc.
9467 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9468 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9469 michael 945 $RM conftest*
9470 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471    
9472 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9473 michael 912 (eval $ac_compile) 2>&5
9474     ac_status=$?
9475 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9476     test $ac_status = 0; } 2>conftest.err; then
9477 michael 912 soname=conftest
9478     lib=conftest
9479     libobjs=conftest.$ac_objext
9480     deplibs=
9481     wl=$lt_prog_compiler_wl
9482     pic_flag=$lt_prog_compiler_pic
9483     compiler_flags=-v
9484     linker_flags=-v
9485     verstring=
9486     output_objdir=.
9487     libname=conftest
9488     lt_save_allow_undefined_flag=$allow_undefined_flag
9489     allow_undefined_flag=
9490 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9491 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9492 michael 912 ac_status=$?
9493 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9494     test $ac_status = 0; }
9495 michael 912 then
9496     archive_cmds_need_lc=no
9497     else
9498     archive_cmds_need_lc=yes
9499     fi
9500     allow_undefined_flag=$lt_save_allow_undefined_flag
9501     else
9502     cat conftest.err 1>&5
9503     fi
9504 michael 945 $RM conftest*
9505 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9506 db 941 $as_echo "$archive_cmds_need_lc" >&6; }
9507 michael 912 ;;
9508     esac
9509     fi
9510     ;;
9511     esac
9512    
9513 michael 945
9514    
9515    
9516    
9517    
9518    
9519    
9520    
9521    
9522    
9523    
9524    
9525    
9526    
9527    
9528    
9529    
9530    
9531    
9532    
9533    
9534    
9535    
9536    
9537    
9538    
9539    
9540    
9541    
9542    
9543    
9544    
9545    
9546    
9547    
9548    
9549    
9550    
9551    
9552    
9553    
9554    
9555    
9556    
9557    
9558    
9559    
9560    
9561    
9562    
9563    
9564    
9565    
9566    
9567    
9568    
9569    
9570    
9571    
9572    
9573    
9574    
9575    
9576    
9577    
9578    
9579    
9580    
9581    
9582    
9583    
9584    
9585    
9586    
9587    
9588    
9589    
9590    
9591    
9592    
9593    
9594    
9595    
9596    
9597    
9598    
9599    
9600    
9601    
9602    
9603    
9604    
9605    
9606    
9607    
9608    
9609    
9610    
9611    
9612    
9613    
9614    
9615    
9616    
9617    
9618    
9619    
9620    
9621    
9622    
9623    
9624    
9625    
9626    
9627    
9628    
9629    
9630    
9631    
9632    
9633    
9634    
9635    
9636    
9637    
9638    
9639    
9640    
9641    
9642    
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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9670 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9671 michael 912
9672     if test "$GCC" = yes; then
9673     case $host_os in
9674     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9675     *) lt_awk_arg="/^libraries:/" ;;
9676     esac
9677     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9678 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9679 michael 912 # if the path contains ";" then we assume it to be the separator
9680     # otherwise default to the standard path separator (i.e. ":") - it is
9681     # assumed that no part of a normal pathname contains ";" but that should
9682     # okay in the real world where ";" in dirpaths is itself problematic.
9683 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9684 michael 912 else
9685 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9686 michael 912 fi
9687     # Ok, now we have the path, separated by spaces, we can step through it
9688     # and add multilib dir if necessary.
9689     lt_tmp_lt_search_path_spec=
9690     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9691     for lt_sys_path in $lt_search_path_spec; do
9692     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9693     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9694     else
9695     test -d "$lt_sys_path" && \
9696     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9697     fi
9698     done
9699 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9700 michael 912 BEGIN {RS=" "; FS="/|\n";} {
9701     lt_foo="";
9702     lt_count=0;
9703     for (lt_i = NF; lt_i > 0; lt_i--) {
9704     if ($lt_i != "" && $lt_i != ".") {
9705     if ($lt_i == "..") {
9706     lt_count++;
9707     } else {
9708     if (lt_count == 0) {
9709     lt_foo="/" $lt_i lt_foo;
9710     } else {
9711     lt_count--;
9712     }
9713     }
9714     }
9715     }
9716     if (lt_foo != "") { lt_freq[lt_foo]++; }
9717     if (lt_freq[lt_foo] == 1) { print lt_foo; }
9718     }'`
9719 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9720 michael 912 else
9721     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9722     fi
9723 michael 945 library_names_spec=
9724     libname_spec='lib$name'
9725     soname_spec=
9726     shrext_cmds=".so"
9727     postinstall_cmds=
9728     postuninstall_cmds=
9729     finish_cmds=
9730     finish_eval=
9731     shlibpath_var=
9732     shlibpath_overrides_runpath=unknown
9733     version_type=none
9734     dynamic_linker="$host_os ld.so"
9735     sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 michael 912 need_lib_prefix=unknown
9737     hardcode_into_libs=no
9738    
9739     # when you set need_version to no, make sure it does not cause -set_version
9740     # flags to be left without arguments
9741     need_version=unknown
9742    
9743     case $host_os in
9744     aix3*)
9745     version_type=linux
9746     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747     shlibpath_var=LIBPATH
9748    
9749     # AIX 3 has no versioning support, so we append a major version to the name.
9750     soname_spec='${libname}${release}${shared_ext}$major'
9751     ;;
9752    
9753 db 941 aix[4-9]*)
9754 michael 912 version_type=linux
9755     need_lib_prefix=no
9756     need_version=no
9757     hardcode_into_libs=yes
9758     if test "$host_cpu" = ia64; then
9759     # AIX 5 supports IA64
9760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761     shlibpath_var=LD_LIBRARY_PATH
9762     else
9763     # With GCC up to 2.95.x, collect2 would create an import file
9764     # for dependence libraries. The import file would start with
9765     # the line `#! .'. This would cause the generated library to
9766     # depend on `.', always an invalid library. This was fixed in
9767     # development snapshots of GCC prior to 3.0.
9768     case $host_os in
9769     aix4 | aix4.[01] | aix4.[01].*)
9770     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9771     echo ' yes '
9772 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9773 michael 912 :
9774     else
9775     can_build_shared=no
9776     fi
9777     ;;
9778     esac
9779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780     # soname into executable. Probably we can add versioning support to
9781     # collect2, so additional links can be useful in future.
9782     if test "$aix_use_runtimelinking" = yes; then
9783     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784     # instead of lib<name>.a to let people know that these are not
9785     # typical AIX shared libraries.
9786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787     else
9788     # We preserve .a as extension for shared libraries through AIX4.2
9789     # and later when we are not doing run time linking.
9790     library_names_spec='${libname}${release}.a $libname.a'
9791     soname_spec='${libname}${release}${shared_ext}$major'
9792     fi
9793     shlibpath_var=LIBPATH
9794     fi
9795     ;;
9796    
9797     amigaos*)
9798 michael 945 case $host_cpu in
9799     powerpc)
9800     # Since July 2007 AmigaOS4 officially supports .so libraries.
9801     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803     ;;
9804     m68k)
9805     library_names_spec='$libname.ixlibrary $libname.a'
9806     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807     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'
9808     ;;
9809     esac
9810 michael 912 ;;
9811    
9812     beos*)
9813     library_names_spec='${libname}${shared_ext}'
9814     dynamic_linker="$host_os ld.so"
9815     shlibpath_var=LIBRARY_PATH
9816     ;;
9817    
9818     bsdi[45]*)
9819     version_type=linux
9820     need_version=no
9821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822     soname_spec='${libname}${release}${shared_ext}$major'
9823     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824     shlibpath_var=LD_LIBRARY_PATH
9825     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827     # the default ld.so.conf also contains /usr/contrib/lib and
9828     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829     # libtool to hard-code these into programs
9830     ;;
9831    
9832 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9833 michael 912 version_type=windows
9834     shrext_cmds=".dll"
9835     need_version=no
9836     need_lib_prefix=no
9837    
9838     case $GCC,$host_os in
9839 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9840 michael 912 library_names_spec='$libname.dll.a'
9841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9842     postinstall_cmds='base_file=`basename \${file}`~
9843 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9844 michael 912 dldir=$destdir/`dirname \$dlpath`~
9845     test -d \$dldir || mkdir -p \$dldir~
9846     $install_prog $dir/$dlname \$dldir/$dlname~
9847 michael 945 chmod a+x \$dldir/$dlname~
9848     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9849     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9850     fi'
9851 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9852     dlpath=$dir/\$dldll~
9853 michael 945 $RM \$dlpath'
9854 michael 912 shlibpath_overrides_runpath=yes
9855    
9856     case $host_os in
9857     cygwin*)
9858     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9859     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9861     ;;
9862 michael 945 mingw* | cegcc*)
9863 michael 912 # MinGW DLLs use traditional 'lib' prefix
9864     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9866     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9867 michael 912 # It is most probably a Windows format PATH printed by
9868     # mingw gcc, but we are running on Cygwin. Gcc prints its search
9869     # path with ; separators, and with drive letters. We can handle the
9870     # drive letters (cygwin fileutils understands them), so leave them,
9871     # especially as we might pass files found there to a mingw objdump,
9872     # which wouldn't understand a cygwinified path. Ahh.
9873 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9874 michael 912 else
9875 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9876 michael 912 fi
9877     ;;
9878     pw32*)
9879     # pw32 DLLs use 'pw' prefix rather than 'lib'
9880     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881     ;;
9882     esac
9883     ;;
9884    
9885     *)
9886     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9887     ;;
9888     esac
9889     dynamic_linker='Win32 ld.exe'
9890     # FIXME: first we should search . and the directory the executable is in
9891     shlibpath_var=PATH
9892     ;;
9893    
9894     darwin* | rhapsody*)
9895     dynamic_linker="$host_os dyld"
9896     version_type=darwin
9897     need_lib_prefix=no
9898     need_version=no
9899 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9900 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
9901     shlibpath_overrides_runpath=yes
9902     shlibpath_var=DYLD_LIBRARY_PATH
9903     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9904    
9905     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9906     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9907     ;;
9908    
9909     dgux*)
9910     version_type=linux
9911     need_lib_prefix=no
9912     need_version=no
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     shlibpath_var=LD_LIBRARY_PATH
9916     ;;
9917    
9918     freebsd1*)
9919     dynamic_linker=no
9920     ;;
9921    
9922     freebsd* | dragonfly*)
9923     # DragonFly does not have aout. When/if they implement a new
9924     # versioning mechanism, adjust this.
9925     if test -x /usr/bin/objformat; then
9926     objformat=`/usr/bin/objformat`
9927     else
9928     case $host_os in
9929     freebsd[123]*) objformat=aout ;;
9930     *) objformat=elf ;;
9931     esac
9932     fi
9933     version_type=freebsd-$objformat
9934     case $version_type in
9935     freebsd-elf*)
9936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937     need_version=no
9938     need_lib_prefix=no
9939     ;;
9940     freebsd-*)
9941     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9942     need_version=yes
9943     ;;
9944     esac
9945     shlibpath_var=LD_LIBRARY_PATH
9946     case $host_os in
9947     freebsd2*)
9948     shlibpath_overrides_runpath=yes
9949     ;;
9950     freebsd3.[01]* | freebsdelf3.[01]*)
9951     shlibpath_overrides_runpath=yes
9952     hardcode_into_libs=yes
9953     ;;
9954     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9955     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9956     shlibpath_overrides_runpath=no
9957     hardcode_into_libs=yes
9958     ;;
9959     *) # from 4.6 on, and DragonFly
9960     shlibpath_overrides_runpath=yes
9961     hardcode_into_libs=yes
9962     ;;
9963     esac
9964     ;;
9965    
9966     gnu*)
9967     version_type=linux
9968     need_lib_prefix=no
9969     need_version=no
9970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9971     soname_spec='${libname}${release}${shared_ext}$major'
9972     shlibpath_var=LD_LIBRARY_PATH
9973     hardcode_into_libs=yes
9974     ;;
9975    
9976     hpux9* | hpux10* | hpux11*)
9977     # Give a soname corresponding to the major version so that dld.sl refuses to
9978     # link against other versions.
9979     version_type=sunos
9980     need_lib_prefix=no
9981     need_version=no
9982     case $host_cpu in
9983     ia64*)
9984     shrext_cmds='.so'
9985     hardcode_into_libs=yes
9986     dynamic_linker="$host_os dld.so"
9987     shlibpath_var=LD_LIBRARY_PATH
9988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990     soname_spec='${libname}${release}${shared_ext}$major'
9991     if test "X$HPUX_IA64_MODE" = X32; then
9992     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9993     else
9994     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9995     fi
9996     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9997     ;;
9998 michael 945 hppa*64*)
9999 michael 912 shrext_cmds='.sl'
10000 michael 945 hardcode_into_libs=yes
10001 michael 912 dynamic_linker="$host_os dld.sl"
10002 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005     soname_spec='${libname}${release}${shared_ext}$major'
10006     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10008     ;;
10009     *)
10010     shrext_cmds='.sl'
10011     dynamic_linker="$host_os dld.sl"
10012 michael 912 shlibpath_var=SHLIB_PATH
10013     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015     soname_spec='${libname}${release}${shared_ext}$major'
10016     ;;
10017     esac
10018     # HP-UX runs *really* slowly unless shared libraries are mode 555.
10019     postinstall_cmds='chmod 555 $lib'
10020     ;;
10021    
10022     interix[3-9]*)
10023     version_type=linux
10024     need_lib_prefix=no
10025     need_version=no
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     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10029     shlibpath_var=LD_LIBRARY_PATH
10030     shlibpath_overrides_runpath=no
10031     hardcode_into_libs=yes
10032     ;;
10033    
10034     irix5* | irix6* | nonstopux*)
10035     case $host_os in
10036     nonstopux*) version_type=nonstopux ;;
10037     *)
10038     if test "$lt_cv_prog_gnu_ld" = yes; then
10039     version_type=linux
10040     else
10041     version_type=irix
10042     fi ;;
10043     esac
10044     need_lib_prefix=no
10045     need_version=no
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10048     case $host_os in
10049     irix5* | nonstopux*)
10050     libsuff= shlibsuff=
10051     ;;
10052     *)
10053     case $LD in # libtool.m4 will add one of these switches to LD
10054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10055     libsuff= shlibsuff= libmagic=32-bit;;
10056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10057     libsuff=32 shlibsuff=N32 libmagic=N32;;
10058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10059     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10060     *) libsuff= shlibsuff= libmagic=never-match;;
10061     esac
10062     ;;
10063     esac
10064     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10065     shlibpath_overrides_runpath=no
10066     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10067     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10068     hardcode_into_libs=yes
10069     ;;
10070    
10071     # No shared lib support for Linux oldld, aout, or coff.
10072     linux*oldld* | linux*aout* | linux*coff*)
10073     dynamic_linker=no
10074     ;;
10075    
10076     # This must be Linux ELF.
10077     linux* | k*bsd*-gnu)
10078     version_type=linux
10079     need_lib_prefix=no
10080     need_version=no
10081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082     soname_spec='${libname}${release}${shared_ext}$major'
10083     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10084     shlibpath_var=LD_LIBRARY_PATH
10085     shlibpath_overrides_runpath=no
10086 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10087     save_LDFLAGS=$LDFLAGS
10088     save_libdir=$libdir
10089     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10090     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10091 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 michael 945 /* end confdefs.h. */
10093    
10094     int
10095     main ()
10096     {
10097    
10098     ;
10099     return 0;
10100     }
10101     _ACEOF
10102 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10103     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10104 michael 945 shlibpath_overrides_runpath=yes
10105     fi
10106     fi
10107 michael 967 rm -f core conftest.err conftest.$ac_objext \
10108     conftest$ac_exeext conftest.$ac_ext
10109 michael 945 LDFLAGS=$save_LDFLAGS
10110     libdir=$save_libdir
10111    
10112 michael 912 # This implies no fast_install, which is unacceptable.
10113     # Some rework will be needed to allow for fast_install
10114     # before this can be enabled.
10115     hardcode_into_libs=yes
10116    
10117 michael 945 # find out which ABI we are using
10118     libsuff=
10119     case "$host_cpu" in
10120     x86_64*|s390x*|powerpc64*)
10121 michael 1033 echo '#line 10121 "configure"' > conftest.$ac_ext
10122 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10123 michael 945 (eval $ac_compile) 2>&5
10124     ac_status=$?
10125 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126     test $ac_status = 0; }; then
10127 michael 945 case `/usr/bin/file conftest.$ac_objext` in
10128     *64-bit*)
10129     libsuff=64
10130     ;;
10131     esac
10132     fi
10133     rm -rf conftest*
10134     ;;
10135     esac
10136    
10137     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10138    
10139 michael 912 # Append ld.so.conf contents to the search path
10140     if test -f /etc/ld.so.conf; then
10141 michael 945 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' ' '`
10142     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10143 michael 912 fi
10144    
10145     # We used to test for /lib/ld.so.1 and disable shared libraries on
10146     # powerpc, because MkLinux only supported shared libraries with the
10147     # GNU dynamic linker. Since this was broken with cross compilers,
10148     # most powerpc-linux boxes support dynamic linking these days and
10149     # people can always --disable-shared, the test was removed, and we
10150     # assume the GNU/Linux dynamic linker is in use.
10151     dynamic_linker='GNU/Linux ld.so'
10152     ;;
10153    
10154     netbsd*)
10155     version_type=sunos
10156     need_lib_prefix=no
10157     need_version=no
10158 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10159 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10160     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10161     dynamic_linker='NetBSD (a.out) ld.so'
10162     else
10163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164     soname_spec='${libname}${release}${shared_ext}$major'
10165     dynamic_linker='NetBSD ld.elf_so'
10166     fi
10167     shlibpath_var=LD_LIBRARY_PATH
10168     shlibpath_overrides_runpath=yes
10169     hardcode_into_libs=yes
10170     ;;
10171    
10172     newsos6)
10173     version_type=linux
10174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175     shlibpath_var=LD_LIBRARY_PATH
10176     shlibpath_overrides_runpath=yes
10177     ;;
10178    
10179 michael 945 *nto* | *qnx*)
10180     version_type=qnx
10181 michael 912 need_lib_prefix=no
10182     need_version=no
10183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184     soname_spec='${libname}${release}${shared_ext}$major'
10185     shlibpath_var=LD_LIBRARY_PATH
10186 michael 945 shlibpath_overrides_runpath=no
10187     hardcode_into_libs=yes
10188     dynamic_linker='ldqnx.so'
10189 michael 912 ;;
10190    
10191     openbsd*)
10192     version_type=sunos
10193     sys_lib_dlsearch_path_spec="/usr/lib"
10194     need_lib_prefix=no
10195     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10196     case $host_os in
10197 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10198     *) need_version=no ;;
10199 michael 912 esac
10200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10201     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10202     shlibpath_var=LD_LIBRARY_PATH
10203 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10204 michael 912 case $host_os in
10205     openbsd2.[89] | openbsd2.[89].*)
10206     shlibpath_overrides_runpath=no
10207     ;;
10208     *)
10209     shlibpath_overrides_runpath=yes
10210     ;;
10211     esac
10212     else
10213     shlibpath_overrides_runpath=yes
10214     fi
10215     ;;
10216    
10217     os2*)
10218     libname_spec='$name'
10219     shrext_cmds=".dll"
10220     need_lib_prefix=no
10221     library_names_spec='$libname${shared_ext} $libname.a'
10222     dynamic_linker='OS/2 ld.exe'
10223     shlibpath_var=LIBPATH
10224     ;;
10225    
10226     osf3* | osf4* | osf5*)
10227     version_type=osf
10228     need_lib_prefix=no
10229     need_version=no
10230     soname_spec='${libname}${release}${shared_ext}$major'
10231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232     shlibpath_var=LD_LIBRARY_PATH
10233     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10234     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10235     ;;
10236    
10237     rdos*)
10238     dynamic_linker=no
10239     ;;
10240    
10241     solaris*)
10242     version_type=linux
10243     need_lib_prefix=no
10244     need_version=no
10245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246     soname_spec='${libname}${release}${shared_ext}$major'
10247     shlibpath_var=LD_LIBRARY_PATH
10248     shlibpath_overrides_runpath=yes
10249     hardcode_into_libs=yes
10250     # ldd complains unless libraries are executable
10251     postinstall_cmds='chmod +x $lib'
10252     ;;
10253    
10254     sunos4*)
10255     version_type=sunos
10256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10257     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10258     shlibpath_var=LD_LIBRARY_PATH
10259     shlibpath_overrides_runpath=yes
10260     if test "$with_gnu_ld" = yes; then
10261     need_lib_prefix=no
10262     fi
10263     need_version=yes
10264     ;;
10265    
10266     sysv4 | sysv4.3*)
10267     version_type=linux
10268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269     soname_spec='${libname}${release}${shared_ext}$major'
10270     shlibpath_var=LD_LIBRARY_PATH
10271     case $host_vendor in
10272     sni)
10273     shlibpath_overrides_runpath=no
10274     need_lib_prefix=no
10275     runpath_var=LD_RUN_PATH
10276     ;;
10277     siemens)
10278     need_lib_prefix=no
10279     ;;
10280     motorola)
10281     need_lib_prefix=no
10282     need_version=no
10283     shlibpath_overrides_runpath=no
10284     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10285     ;;
10286     esac
10287     ;;
10288    
10289     sysv4*MP*)
10290     if test -d /usr/nec ;then
10291     version_type=linux
10292     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10293     soname_spec='$libname${shared_ext}.$major'
10294     shlibpath_var=LD_LIBRARY_PATH
10295     fi
10296     ;;
10297    
10298     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10299     version_type=freebsd-elf
10300     need_lib_prefix=no
10301     need_version=no
10302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10303     soname_spec='${libname}${release}${shared_ext}$major'
10304     shlibpath_var=LD_LIBRARY_PATH
10305 michael 945 shlibpath_overrides_runpath=yes
10306 michael 912 hardcode_into_libs=yes
10307     if test "$with_gnu_ld" = yes; then
10308     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10309     else
10310     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10311     case $host_os in
10312     sco3.2v5*)
10313     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10314     ;;
10315     esac
10316     fi
10317     sys_lib_dlsearch_path_spec='/usr/lib'
10318     ;;
10319    
10320 michael 945 tpf*)
10321     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10322     version_type=linux
10323     need_lib_prefix=no
10324     need_version=no
10325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326     shlibpath_var=LD_LIBRARY_PATH
10327     shlibpath_overrides_runpath=no
10328     hardcode_into_libs=yes
10329     ;;
10330    
10331 michael 912 uts4*)
10332     version_type=linux
10333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334     soname_spec='${libname}${release}${shared_ext}$major'
10335     shlibpath_var=LD_LIBRARY_PATH
10336     ;;
10337    
10338     *)
10339     dynamic_linker=no
10340     ;;
10341     esac
10342 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10343 db 941 $as_echo "$dynamic_linker" >&6; }
10344 michael 912 test "$dynamic_linker" = no && can_build_shared=no
10345    
10346 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10347     if test "$GCC" = yes; then
10348     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10349     fi
10350    
10351 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10352 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10353 db 941 fi
10354     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10355 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10356 db 941 fi
10357    
10358    
10359 michael 912
10360 michael 945
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10445 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10446 michael 912 hardcode_action=
10447 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
10448     test -n "$runpath_var" ||
10449 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
10450    
10451 michael 945 # We can hardcode non-existent directories.
10452 michael 912 if test "$hardcode_direct" != no &&
10453     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10454     # have to relink, otherwise we might link with an installed library
10455     # when we should be linking with a yet-to-be-installed one
10456 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10457 michael 912 test "$hardcode_minus_L" != no; then
10458     # Linking always hardcodes the temporary library directory.
10459     hardcode_action=relink
10460     else
10461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10462     hardcode_action=immediate
10463     fi
10464     else
10465     # We cannot hardcode anything, or else we can only hardcode existing
10466     # directories.
10467     hardcode_action=unsupported
10468     fi
10469 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10470 db 941 $as_echo "$hardcode_action" >&6; }
10471 michael 912
10472 michael 945 if test "$hardcode_action" = relink ||
10473     test "$inherit_rpath" = yes; then
10474 michael 912 # Fast installation is not supported
10475     enable_fast_install=no
10476     elif test "$shlibpath_overrides_runpath" = yes ||
10477     test "$enable_shared" = no; then
10478     # Fast installation is not necessary
10479     enable_fast_install=needless
10480     fi
10481    
10482    
10483 michael 945
10484    
10485    
10486    
10487     if test "x$enable_dlopen" != xyes; then
10488 michael 912 enable_dlopen=unknown
10489     enable_dlopen_self=unknown
10490     enable_dlopen_self_static=unknown
10491     else
10492     lt_cv_dlopen=no
10493     lt_cv_dlopen_libs=
10494    
10495     case $host_os in
10496     beos*)
10497     lt_cv_dlopen="load_add_on"
10498     lt_cv_dlopen_libs=
10499     lt_cv_dlopen_self=yes
10500     ;;
10501    
10502 michael 945 mingw* | pw32* | cegcc*)
10503 michael 912 lt_cv_dlopen="LoadLibrary"
10504     lt_cv_dlopen_libs=
10505 michael 945 ;;
10506 michael 912
10507     cygwin*)
10508     lt_cv_dlopen="dlopen"
10509     lt_cv_dlopen_libs=
10510 michael 945 ;;
10511 michael 912
10512     darwin*)
10513     # if libdl is installed we need to link against it
10514 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10515 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10516 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10517 db 941 $as_echo_n "(cached) " >&6
10518 michael 912 else
10519     ac_check_lib_save_LIBS=$LIBS
10520     LIBS="-ldl $LIBS"
10521 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 michael 912 /* end confdefs.h. */
10523    
10524     /* Override any GCC internal prototype to avoid an error.
10525     Use char because int might match the return type of a GCC
10526     builtin and then its argument prototype would still apply. */
10527     #ifdef __cplusplus
10528     extern "C"
10529     #endif
10530     char dlopen ();
10531     int
10532     main ()
10533     {
10534     return dlopen ();
10535     ;
10536     return 0;
10537     }
10538     _ACEOF
10539 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10540 michael 912 ac_cv_lib_dl_dlopen=yes
10541     else
10542 michael 967 ac_cv_lib_dl_dlopen=no
10543 michael 912 fi
10544 michael 967 rm -f core conftest.err conftest.$ac_objext \
10545     conftest$ac_exeext conftest.$ac_ext
10546 michael 912 LIBS=$ac_check_lib_save_LIBS
10547     fi
10548 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10549 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10550 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10551 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10552     else
10553    
10554     lt_cv_dlopen="dyld"
10555     lt_cv_dlopen_libs=
10556     lt_cv_dlopen_self=yes
10557    
10558     fi
10559    
10560 michael 945 ;;
10561 michael 912
10562     *)
10563 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10564     if test "x$ac_cv_func_shl_load" = x""yes; then :
10565 michael 912 lt_cv_dlopen="shl_load"
10566     else
10567 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10568 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10569 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10570 db 941 $as_echo_n "(cached) " >&6
10571 michael 912 else
10572     ac_check_lib_save_LIBS=$LIBS
10573     LIBS="-ldld $LIBS"
10574 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 michael 912 /* end confdefs.h. */
10576    
10577     /* Override any GCC internal prototype to avoid an error.
10578     Use char because int might match the return type of a GCC
10579     builtin and then its argument prototype would still apply. */
10580     #ifdef __cplusplus
10581     extern "C"
10582     #endif
10583     char shl_load ();
10584     int
10585     main ()
10586     {
10587     return shl_load ();
10588     ;
10589     return 0;
10590     }
10591     _ACEOF
10592 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10593 michael 912 ac_cv_lib_dld_shl_load=yes
10594     else
10595 michael 967 ac_cv_lib_dld_shl_load=no
10596 michael 912 fi
10597 michael 967 rm -f core conftest.err conftest.$ac_objext \
10598     conftest$ac_exeext conftest.$ac_ext
10599 michael 912 LIBS=$ac_check_lib_save_LIBS
10600     fi
10601 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10602 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10603 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10604 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10605 michael 912 else
10606 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10607     if test "x$ac_cv_func_dlopen" = x""yes; then :
10608 michael 912 lt_cv_dlopen="dlopen"
10609     else
10610 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10611 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10612 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10613 db 941 $as_echo_n "(cached) " >&6
10614 michael 912 else
10615     ac_check_lib_save_LIBS=$LIBS
10616     LIBS="-ldl $LIBS"
10617 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 michael 912 /* end confdefs.h. */
10619    
10620     /* Override any GCC internal prototype to avoid an error.
10621     Use char because int might match the return type of a GCC
10622     builtin and then its argument prototype would still apply. */
10623     #ifdef __cplusplus
10624     extern "C"
10625     #endif
10626     char dlopen ();
10627     int
10628     main ()
10629     {
10630     return dlopen ();
10631     ;
10632     return 0;
10633     }
10634     _ACEOF
10635 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10636 michael 912 ac_cv_lib_dl_dlopen=yes
10637     else
10638 michael 967 ac_cv_lib_dl_dlopen=no
10639 michael 912 fi
10640 michael 967 rm -f core conftest.err conftest.$ac_objext \
10641     conftest$ac_exeext conftest.$ac_ext
10642 michael 912 LIBS=$ac_check_lib_save_LIBS
10643     fi
10644 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10645 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10646 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10647 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10648     else
10649 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10650 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10651 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10652 db 941 $as_echo_n "(cached) " >&6
10653 michael 912 else
10654     ac_check_lib_save_LIBS=$LIBS
10655     LIBS="-lsvld $LIBS"
10656 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 michael 912 /* end confdefs.h. */
10658    
10659     /* Override any GCC internal prototype to avoid an error.
10660     Use char because int might match the return type of a GCC
10661     builtin and then its argument prototype would still apply. */
10662     #ifdef __cplusplus
10663     extern "C"
10664     #endif
10665     char dlopen ();
10666     int
10667     main ()
10668     {
10669     return dlopen ();
10670     ;
10671     return 0;
10672     }
10673     _ACEOF
10674 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10675 michael 912 ac_cv_lib_svld_dlopen=yes
10676     else
10677 michael 967 ac_cv_lib_svld_dlopen=no
10678 michael 912 fi
10679 michael 967 rm -f core conftest.err conftest.$ac_objext \
10680     conftest$ac_exeext conftest.$ac_ext
10681 michael 912 LIBS=$ac_check_lib_save_LIBS
10682     fi
10683 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10684 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10685 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10686 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10687     else
10688 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10689 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10690 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10691 db 941 $as_echo_n "(cached) " >&6
10692 michael 912 else
10693     ac_check_lib_save_LIBS=$LIBS
10694     LIBS="-ldld $LIBS"
10695 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 michael 912 /* end confdefs.h. */
10697    
10698     /* Override any GCC internal prototype to avoid an error.
10699     Use char because int might match the return type of a GCC
10700     builtin and then its argument prototype would still apply. */
10701     #ifdef __cplusplus
10702     extern "C"
10703     #endif
10704     char dld_link ();
10705     int
10706     main ()
10707     {
10708     return dld_link ();
10709     ;
10710     return 0;
10711     }
10712     _ACEOF
10713 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10714 michael 912 ac_cv_lib_dld_dld_link=yes
10715     else
10716 michael 967 ac_cv_lib_dld_dld_link=no
10717 michael 912 fi
10718 michael 967 rm -f core conftest.err conftest.$ac_objext \
10719     conftest$ac_exeext conftest.$ac_ext
10720 michael 912 LIBS=$ac_check_lib_save_LIBS
10721     fi
10722 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10723 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10724 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10725 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10726 michael 912 fi
10727    
10728    
10729     fi
10730    
10731    
10732     fi
10733    
10734    
10735     fi
10736    
10737    
10738     fi
10739    
10740    
10741     fi
10742    
10743     ;;
10744     esac
10745    
10746     if test "x$lt_cv_dlopen" != xno; then
10747     enable_dlopen=yes
10748     else
10749     enable_dlopen=no
10750     fi
10751    
10752     case $lt_cv_dlopen in
10753     dlopen)
10754     save_CPPFLAGS="$CPPFLAGS"
10755     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10756    
10757     save_LDFLAGS="$LDFLAGS"
10758     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10759    
10760     save_LIBS="$LIBS"
10761     LIBS="$lt_cv_dlopen_libs $LIBS"
10762    
10763 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10764 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10765 michael 967 if test "${lt_cv_dlopen_self+set}" = set; then :
10766 db 941 $as_echo_n "(cached) " >&6
10767 michael 912 else
10768     if test "$cross_compiling" = yes; then :
10769     lt_cv_dlopen_self=cross
10770     else
10771     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10772     lt_status=$lt_dlunknown
10773 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10774 michael 1033 #line 10774 "configure"
10775 michael 912 #include "confdefs.h"
10776    
10777     #if HAVE_DLFCN_H
10778     #include <dlfcn.h>
10779     #endif
10780    
10781     #include <stdio.h>
10782    
10783     #ifdef RTLD_GLOBAL
10784     # define LT_DLGLOBAL RTLD_GLOBAL
10785     #else
10786     # ifdef DL_GLOBAL
10787     # define LT_DLGLOBAL DL_GLOBAL
10788     # else
10789     # define LT_DLGLOBAL 0
10790     # endif
10791     #endif
10792    
10793     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10794     find out it does not work in some platform. */
10795     #ifndef LT_DLLAZY_OR_NOW
10796     # ifdef RTLD_LAZY
10797     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10798     # else
10799     # ifdef DL_LAZY
10800     # define LT_DLLAZY_OR_NOW DL_LAZY
10801     # else
10802     # ifdef RTLD_NOW
10803     # define LT_DLLAZY_OR_NOW RTLD_NOW
10804     # else
10805     # ifdef DL_NOW
10806     # define LT_DLLAZY_OR_NOW DL_NOW
10807     # else
10808     # define LT_DLLAZY_OR_NOW 0
10809     # endif
10810     # endif
10811     # endif
10812     # endif
10813     #endif
10814    
10815     void fnord() { int i=42;}
10816     int main ()
10817     {
10818     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10819     int status = $lt_dlunknown;
10820    
10821     if (self)
10822     {
10823     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10824     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10825     /* dlclose (self); */
10826     }
10827     else
10828     puts (dlerror ());
10829    
10830 michael 945 return status;
10831 michael 912 }
10832 michael 945 _LT_EOF
10833 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10834 michael 912 (eval $ac_link) 2>&5
10835     ac_status=$?
10836 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10837     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10838 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10839     lt_status=$?
10840     case x$lt_status in
10841     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10842     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10843     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10844     esac
10845     else :
10846     # compilation failed
10847     lt_cv_dlopen_self=no
10848     fi
10849     fi
10850     rm -fr conftest*
10851    
10852    
10853     fi
10854 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10855 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
10856 michael 912
10857     if test "x$lt_cv_dlopen_self" = xyes; then
10858     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10859 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10860 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10861 michael 967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10862 db 941 $as_echo_n "(cached) " >&6
10863 michael 912 else
10864     if test "$cross_compiling" = yes; then :
10865     lt_cv_dlopen_self_static=cross
10866     else
10867     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10868     lt_status=$lt_dlunknown
10869 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10870 michael 1033 #line 10870 "configure"
10871 michael 912 #include "confdefs.h"
10872    
10873     #if HAVE_DLFCN_H
10874     #include <dlfcn.h>
10875     #endif
10876    
10877     #include <stdio.h>
10878    
10879     #ifdef RTLD_GLOBAL
10880     # define LT_DLGLOBAL RTLD_GLOBAL
10881     #else
10882     # ifdef DL_GLOBAL
10883     # define LT_DLGLOBAL DL_GLOBAL
10884     # else
10885     # define LT_DLGLOBAL 0
10886     # endif
10887     #endif
10888    
10889     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10890     find out it does not work in some platform. */
10891     #ifndef LT_DLLAZY_OR_NOW
10892     # ifdef RTLD_LAZY
10893     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10894     # else
10895     # ifdef DL_LAZY
10896     # define LT_DLLAZY_OR_NOW DL_LAZY
10897     # else
10898     # ifdef RTLD_NOW
10899     # define LT_DLLAZY_OR_NOW RTLD_NOW
10900     # else
10901     # ifdef DL_NOW
10902     # define LT_DLLAZY_OR_NOW DL_NOW
10903     # else
10904     # define LT_DLLAZY_OR_NOW 0
10905     # endif
10906     # endif
10907     # endif
10908     # endif
10909     #endif
10910    
10911     void fnord() { int i=42;}
10912     int main ()
10913     {
10914     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10915     int status = $lt_dlunknown;
10916    
10917     if (self)
10918     {
10919     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10920     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10921     /* dlclose (self); */
10922     }
10923     else
10924     puts (dlerror ());
10925    
10926 michael 945 return status;
10927 michael 912 }
10928 michael 945 _LT_EOF
10929 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10930 michael 912 (eval $ac_link) 2>&5
10931     ac_status=$?
10932 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10934 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10935     lt_status=$?
10936     case x$lt_status in
10937     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10938     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10939     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10940     esac
10941     else :
10942     # compilation failed
10943     lt_cv_dlopen_self_static=no
10944     fi
10945     fi
10946     rm -fr conftest*
10947    
10948    
10949     fi
10950 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10951 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10952 michael 912 fi
10953    
10954     CPPFLAGS="$save_CPPFLAGS"
10955     LDFLAGS="$save_LDFLAGS"
10956     LIBS="$save_LIBS"
10957     ;;
10958     esac
10959    
10960     case $lt_cv_dlopen_self in
10961     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10962     *) enable_dlopen_self=unknown ;;
10963     esac
10964    
10965     case $lt_cv_dlopen_self_static in
10966     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10967     *) enable_dlopen_self_static=unknown ;;
10968     esac
10969     fi
10970    
10971    
10972    
10973    
10974    
10975    
10976    
10977    
10978    
10979    
10980    
10981    
10982    
10983    
10984    
10985    
10986    
10987 michael 945 striplib=
10988     old_striplib=
10989 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10990 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10991     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10992     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10993     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10994 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 michael 945 $as_echo "yes" >&6; }
10996     else
10997     # FIXME - insert some real tests, host_os isn't really good enough
10998     case $host_os in
10999     darwin*)
11000     if test -n "$STRIP" ; then
11001     striplib="$STRIP -x"
11002     old_striplib="$STRIP -S"
11003 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 michael 945 $as_echo "yes" >&6; }
11005     else
11006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 michael 945 $as_echo "no" >&6; }
11008     fi
11009     ;;
11010     *)
11011 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 michael 945 $as_echo "no" >&6; }
11013     ;;
11014     esac
11015     fi
11016 michael 912
11017    
11018    
11019    
11020    
11021    
11022    
11023    
11024    
11025    
11026    
11027    
11028 michael 945 # Report which library types will actually be built
11029 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11030 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11031 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11032 michael 945 $as_echo "$can_build_shared" >&6; }
11033 michael 912
11034 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11035 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11036     test "$can_build_shared" = "no" && enable_shared=no
11037 michael 912
11038 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11039     # are all built from PIC.
11040 michael 912 case $host_os in
11041     aix3*)
11042 michael 945 test "$enable_shared" = yes && enable_static=no
11043     if test -n "$RANLIB"; then
11044     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11045     postinstall_cmds='$RANLIB $lib'
11046     fi
11047     ;;
11048 michael 912
11049 michael 945 aix[4-9]*)
11050     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11051     test "$enable_shared" = yes && enable_static=no
11052     fi
11053 michael 912 ;;
11054     esac
11055 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11056 michael 945 $as_echo "$enable_shared" >&6; }
11057 michael 912
11058 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11059 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11060     # Make sure either enable_shared or enable_static is yes.
11061     test "$enable_shared" = yes || enable_static=yes
11062 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11063 michael 945 $as_echo "$enable_static" >&6; }
11064 michael 912
11065    
11066    
11067    
11068 michael 945 fi
11069 michael 912 ac_ext=c
11070     ac_cpp='$CPP $CPPFLAGS'
11071     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11072     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11073     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11074    
11075     CC="$lt_save_CC"
11076    
11077    
11078    
11079    
11080    
11081    
11082    
11083    
11084    
11085    
11086    
11087    
11088    
11089 michael 945 ac_config_commands="$ac_config_commands libtool"
11090 michael 912
11091    
11092    
11093    
11094 michael 945 # Only expand once:
11095 michael 912
11096    
11097 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11098 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11099 michael 967 if test "${libltdl_cv_shlibext+set}" = set; then :
11100 michael 945 $as_echo_n "(cached) " >&6
11101 michael 912 else
11102    
11103 michael 945 module=yes
11104     eval libltdl_cv_shlibext=$shrext_cmds
11105 michael 912
11106     fi
11107 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11108 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11109     if test -n "$libltdl_cv_shlibext"; then
11110 michael 912
11111 michael 945 cat >>confdefs.h <<_ACEOF
11112     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11113     _ACEOF
11114 michael 912
11115     fi
11116    
11117 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11118 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11119 michael 967 if test "${lt_cv_module_path_var+set}" = set; then :
11120 db 941 $as_echo_n "(cached) " >&6
11121 michael 912 else
11122 michael 945 lt_cv_module_path_var="$shlibpath_var"
11123 michael 912 fi
11124 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11125 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11126     if test -n "$lt_cv_module_path_var"; then
11127    
11128     cat >>confdefs.h <<_ACEOF
11129     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11130     _ACEOF
11131    
11132 michael 912 fi
11133    
11134 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11135 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
11136 michael 967 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11137 db 941 $as_echo_n "(cached) " >&6
11138 michael 912 else
11139 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11140 michael 912 fi
11141 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11142 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11143     if test -n "$lt_cv_sys_dlsearch_path"; then
11144     sys_dlsearch_path=
11145     for dir in $lt_cv_sys_dlsearch_path; do
11146     if test -z "$sys_dlsearch_path"; then
11147     sys_dlsearch_path="$dir"
11148 michael 912 else
11149 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11150 michael 912 fi
11151 michael 945 done
11152 michael 912
11153 michael 945 cat >>confdefs.h <<_ACEOF
11154     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11155     _ACEOF
11156 michael 912
11157     fi
11158    
11159    
11160 michael 945 LT_DLLOADERS=
11161 michael 912
11162    
11163 michael 945 ac_ext=c
11164     ac_cpp='$CPP $CPPFLAGS'
11165     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11168 michael 912
11169    
11170 michael 945 LIBADD_DLOPEN=
11171 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11172 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
11173 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11174 michael 945 $as_echo_n "(cached) " >&6
11175     else
11176     ac_func_search_save_LIBS=$LIBS
11177 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 michael 912 /* end confdefs.h. */
11179    
11180 michael 945 /* Override any GCC internal prototype to avoid an error.
11181     Use char because int might match the return type of a GCC
11182     builtin and then its argument prototype would still apply. */
11183     #ifdef __cplusplus
11184     extern "C"
11185     #endif
11186     char dlopen ();
11187 michael 912 int
11188     main ()
11189     {
11190 michael 945 return dlopen ();
11191 michael 912 ;
11192     return 0;
11193     }
11194     _ACEOF
11195 michael 945 for ac_lib in '' dl; do
11196     if test -z "$ac_lib"; then
11197     ac_res="none required"
11198     else
11199     ac_res=-l$ac_lib
11200     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11201     fi
11202 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11203 michael 945 ac_cv_search_dlopen=$ac_res
11204 michael 912 fi
11205 michael 967 rm -f core conftest.err conftest.$ac_objext \
11206     conftest$ac_exeext
11207     if test "${ac_cv_search_dlopen+set}" = set; then :
11208 michael 945 break
11209     fi
11210     done
11211 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11212    
11213 michael 945 else
11214     ac_cv_search_dlopen=no
11215     fi
11216     rm conftest.$ac_ext
11217     LIBS=$ac_func_search_save_LIBS
11218     fi
11219 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11220 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
11221     ac_res=$ac_cv_search_dlopen
11222 michael 967 if test "$ac_res" != no; then :
11223 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11224 michael 912
11225 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11226 michael 912
11227 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
11228     LIBADD_DLOPEN="-ldl"
11229     fi
11230     libltdl_cv_lib_dl_dlopen="yes"
11231     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11232     else
11233 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 michael 912 /* end confdefs.h. */
11235 michael 945 #if HAVE_DLFCN_H
11236     # include <dlfcn.h>
11237     #endif
11238 michael 912
11239     int
11240     main ()
11241     {
11242 michael 945 dlopen(0, 0);
11243 michael 912 ;
11244     return 0;
11245     }
11246     _ACEOF
11247 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11248 michael 912
11249 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11250 michael 945
11251     libltdl_cv_func_dlopen="yes"
11252     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11253 michael 912 else
11254 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11255 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11256 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11257 michael 945 $as_echo_n "(cached) " >&6
11258     else
11259     ac_check_lib_save_LIBS=$LIBS
11260     LIBS="-lsvld $LIBS"
11261 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 michael 945 /* end confdefs.h. */
11263 michael 912
11264 michael 945 /* Override any GCC internal prototype to avoid an error.
11265     Use char because int might match the return type of a GCC
11266     builtin and then its argument prototype would still apply. */
11267     #ifdef __cplusplus
11268     extern "C"
11269     #endif
11270     char dlopen ();
11271     int
11272     main ()
11273     {
11274     return dlopen ();
11275     ;
11276     return 0;
11277     }
11278     _ACEOF
11279 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11280 michael 945 ac_cv_lib_svld_dlopen=yes
11281 michael 912 else
11282 michael 967 ac_cv_lib_svld_dlopen=no
11283 db 941 fi
11284 michael 967 rm -f core conftest.err conftest.$ac_objext \
11285     conftest$ac_exeext conftest.$ac_ext
11286 michael 945 LIBS=$ac_check_lib_save_LIBS
11287 michael 912 fi
11288 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11289 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11290 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11291 michael 912
11292 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11293 michael 912
11294 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11295     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11296 michael 912 fi
11297    
11298     fi
11299 michael 967 rm -f core conftest.err conftest.$ac_objext \
11300     conftest$ac_exeext conftest.$ac_ext
11301 michael 912 fi
11302    
11303 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11304     then
11305     lt_save_LIBS="$LIBS"
11306     LIBS="$LIBS $LIBADD_DLOPEN"
11307 michael 967 for ac_func in dlerror
11308     do :
11309     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11310     if test "x$ac_cv_func_dlerror" = x""yes; then :
11311 michael 945 cat >>confdefs.h <<_ACEOF
11312 michael 967 #define HAVE_DLERROR 1
11313 michael 945 _ACEOF
11314 michael 912
11315     fi
11316 michael 945 done
11317 michael 912
11318 michael 945 LIBS="$lt_save_LIBS"
11319 michael 912 fi
11320    
11321    
11322 michael 945 LIBADD_SHL_LOAD=
11323 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11324     if test "x$ac_cv_func_shl_load" = x""yes; then :
11325 michael 912
11326 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11327 michael 912
11328 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11329 michael 912 else
11330 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11331 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11332 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11333 db 941 $as_echo_n "(cached) " >&6
11334 michael 912 else
11335 michael 945 ac_check_lib_save_LIBS=$LIBS
11336     LIBS="-ldld $LIBS"
11337 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 michael 945 /* end confdefs.h. */
11339 michael 912
11340 michael 945 /* Override any GCC internal prototype to avoid an error.
11341     Use char because int might match the return type of a GCC
11342     builtin and then its argument prototype would still apply. */
11343     #ifdef __cplusplus
11344     extern "C"
11345     #endif
11346     char shl_load ();
11347     int
11348     main ()
11349     {
11350     return shl_load ();
11351     ;
11352     return 0;
11353     }
11354 michael 912 _ACEOF
11355 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11356 michael 945 ac_cv_lib_dld_shl_load=yes
11357 michael 912 else
11358 michael 967 ac_cv_lib_dld_shl_load=no
11359 michael 912 fi
11360 michael 967 rm -f core conftest.err conftest.$ac_objext \
11361     conftest$ac_exeext conftest.$ac_ext
11362 michael 945 LIBS=$ac_check_lib_save_LIBS
11363     fi
11364 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11365 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11366 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11367 michael 912
11368 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11369 michael 912
11370 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11371     LIBADD_SHL_LOAD="-ldld"
11372     fi
11373    
11374     fi
11375    
11376    
11377    
11378     case $host_os in
11379     darwin[1567].*)
11380     # We only want this for pre-Mac OS X 10.4.
11381 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11382     if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11383 michael 945
11384 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11385 michael 945
11386     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11387     fi
11388 michael 912
11389 michael 945 ;;
11390     beos*)
11391     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11392     ;;
11393     cygwin* | mingw* | os2* | pw32*)
11394 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11395     "
11396     if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11397     ac_have_decl=1
11398 michael 945 else
11399 michael 967 ac_have_decl=0
11400 michael 945 fi
11401 michael 912
11402 michael 945 cat >>confdefs.h <<_ACEOF
11403 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11404 michael 945 _ACEOF
11405 michael 912
11406 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11407     ;;
11408     esac
11409 michael 912
11410 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11411 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11412 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11413 michael 945 $as_echo_n "(cached) " >&6
11414     else
11415     ac_check_lib_save_LIBS=$LIBS
11416     LIBS="-ldld $LIBS"
11417 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 michael 945 /* end confdefs.h. */
11419 michael 912
11420 michael 945 /* Override any GCC internal prototype to avoid an error.
11421     Use char because int might match the return type of a GCC
11422     builtin and then its argument prototype would still apply. */
11423     #ifdef __cplusplus
11424     extern "C"
11425     #endif
11426     char dld_link ();
11427     int
11428     main ()
11429     {
11430     return dld_link ();
11431     ;
11432     return 0;
11433     }
11434     _ACEOF
11435 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11436 michael 945 ac_cv_lib_dld_dld_link=yes
11437     else
11438 michael 967 ac_cv_lib_dld_dld_link=no
11439 michael 945 fi
11440 michael 967 rm -f core conftest.err conftest.$ac_objext \
11441     conftest$ac_exeext conftest.$ac_ext
11442 michael 945 LIBS=$ac_check_lib_save_LIBS
11443     fi
11444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11445 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11446 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11447 michael 912
11448 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11449 michael 912
11450 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11451     fi
11452 michael 912
11453    
11454    
11455    
11456 michael 945 LT_DLPREOPEN=
11457     if test -n "$LT_DLLOADERS"
11458     then
11459     for lt_loader in $LT_DLLOADERS; do
11460     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11461     done
11462 michael 912
11463 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11464 michael 912
11465 michael 945 fi
11466 michael 912
11467    
11468 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11469 michael 912
11470    
11471 michael 945 ac_ext=c
11472     ac_cpp='$CPP $CPPFLAGS'
11473     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11476 michael 912
11477    
11478 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11479 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11480 michael 967 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11481 michael 945 $as_echo_n "(cached) " >&6
11482     else
11483     lt_cv_sys_symbol_underscore=no
11484     cat > conftest.$ac_ext <<_LT_EOF
11485     void nm_test_func(){}
11486     int main(){nm_test_func;return 0;}
11487     _LT_EOF
11488 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11489 michael 912 (eval $ac_compile) 2>&5
11490     ac_status=$?
11491 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492     test $ac_status = 0; }; then
11493 michael 945 # Now try to grab the symbols.
11494     ac_nlist=conftest.nm
11495 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11496 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11497 michael 912 ac_status=$?
11498 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499     test $ac_status = 0; } && test -s "$ac_nlist"; then
11500 michael 945 # See whether the symbols have a leading underscore.
11501     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11502     lt_cv_sys_symbol_underscore=yes
11503     else
11504     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11505     :
11506 michael 912 else
11507 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11508 michael 912 fi
11509     fi
11510 michael 945 else
11511     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11512     fi
11513     else
11514     echo "configure: failed program was:" >&5
11515     cat conftest.c >&5
11516 michael 912 fi
11517 michael 945 rm -rf conftest*
11518 michael 912
11519 michael 945 fi
11520 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11521 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11522     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11523 michael 912
11524    
11525 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11526     if test x"$libltdl_cv_func_dlopen" = xyes ||
11527     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11528 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11529 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11530 michael 967 if test "${libltdl_cv_need_uscore+set}" = set; then :
11531 michael 945 $as_echo_n "(cached) " >&6
11532     else
11533     libltdl_cv_need_uscore=unknown
11534     save_LIBS="$LIBS"
11535     LIBS="$LIBS $LIBADD_DLOPEN"
11536     if test "$cross_compiling" = yes; then :
11537     libltdl_cv_need_uscore=cross
11538     else
11539     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540     lt_status=$lt_dlunknown
11541     cat > conftest.$ac_ext <<_LT_EOF
11542 michael 1033 #line 11542 "configure"
11543 michael 945 #include "confdefs.h"
11544 michael 912
11545 michael 945 #if HAVE_DLFCN_H
11546     #include <dlfcn.h>
11547     #endif
11548 michael 912
11549 michael 945 #include <stdio.h>
11550 michael 912
11551 michael 945 #ifdef RTLD_GLOBAL
11552     # define LT_DLGLOBAL RTLD_GLOBAL
11553     #else
11554     # ifdef DL_GLOBAL
11555     # define LT_DLGLOBAL DL_GLOBAL
11556     # else
11557     # define LT_DLGLOBAL 0
11558     # endif
11559     #endif
11560    
11561     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562     find out it does not work in some platform. */
11563     #ifndef LT_DLLAZY_OR_NOW
11564     # ifdef RTLD_LAZY
11565     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11566     # else
11567     # ifdef DL_LAZY
11568     # define LT_DLLAZY_OR_NOW DL_LAZY
11569     # else
11570     # ifdef RTLD_NOW
11571     # define LT_DLLAZY_OR_NOW RTLD_NOW
11572     # else
11573     # ifdef DL_NOW
11574     # define LT_DLLAZY_OR_NOW DL_NOW
11575     # else
11576     # define LT_DLLAZY_OR_NOW 0
11577     # endif
11578     # endif
11579     # endif
11580     # endif
11581     #endif
11582    
11583     void fnord() { int i=42;}
11584     int main ()
11585     {
11586     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11587     int status = $lt_dlunknown;
11588    
11589     if (self)
11590     {
11591     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11592     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11593     /* dlclose (self); */
11594     }
11595 michael 912 else
11596 michael 945 puts (dlerror ());
11597    
11598     return status;
11599     }
11600     _LT_EOF
11601 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11602 michael 945 (eval $ac_link) 2>&5
11603     ac_status=$?
11604 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11606 michael 945 (./conftest; exit; ) >&5 2>/dev/null
11607     lt_status=$?
11608     case x$lt_status in
11609     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11610     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11611     x$lt_dlunknown|x*) ;;
11612 michael 912 esac
11613 michael 945 else :
11614     # compilation failed
11615    
11616 michael 912 fi
11617 michael 945 fi
11618     rm -fr conftest*
11619 michael 912
11620 michael 945 LIBS="$save_LIBS"
11621 michael 912
11622 michael 945 fi
11623 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11624 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
11625     fi
11626     fi
11627 michael 912
11628 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
11629 michael 912
11630 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11631 michael 912
11632 michael 945 fi
11633 michael 912
11634 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11635 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11636 michael 967 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11637 michael 945 $as_echo_n "(cached) " >&6
11638     else
11639     # PORTME does your system automatically load deplibs for dlopen?
11640     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11641     # For now, we just catch OSes we know something about -- in the
11642     # future, we'll try test this programmatically.
11643     lt_cv_sys_dlopen_deplibs=unknown
11644     case $host_os in
11645     aix3*|aix4.1.*|aix4.2.*)
11646     # Unknown whether this is true for these versions of AIX, but
11647     # we want this `case' here to explicitly catch those versions.
11648     lt_cv_sys_dlopen_deplibs=unknown
11649     ;;
11650     aix[4-9]*)
11651     lt_cv_sys_dlopen_deplibs=yes
11652     ;;
11653     amigaos*)
11654     case $host_cpu in
11655     powerpc)
11656     lt_cv_sys_dlopen_deplibs=no
11657 michael 912 ;;
11658     esac
11659     ;;
11660 michael 945 darwin*)
11661     # Assuming the user has installed a libdl from somewhere, this is true
11662     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11663     lt_cv_sys_dlopen_deplibs=yes
11664 michael 912 ;;
11665 michael 945 freebsd* | dragonfly*)
11666     lt_cv_sys_dlopen_deplibs=yes
11667 michael 912 ;;
11668 michael 945 gnu* | linux* | k*bsd*-gnu)
11669     # GNU and its variants, using gnu ld.so (Glibc)
11670     lt_cv_sys_dlopen_deplibs=yes
11671 michael 912 ;;
11672 michael 945 hpux10*|hpux11*)
11673     lt_cv_sys_dlopen_deplibs=yes
11674 michael 912 ;;
11675 michael 945 interix*)
11676     lt_cv_sys_dlopen_deplibs=yes
11677 michael 912 ;;
11678 michael 945 irix[12345]*|irix6.[01]*)
11679     # Catch all versions of IRIX before 6.2, and indicate that we don't
11680     # know how it worked for any of those versions.
11681     lt_cv_sys_dlopen_deplibs=unknown
11682 michael 912 ;;
11683 michael 945 irix*)
11684     # The case above catches anything before 6.2, and it's known that
11685     # at 6.2 and later dlopen does load deplibs.
11686     lt_cv_sys_dlopen_deplibs=yes
11687 michael 912 ;;
11688 michael 945 netbsd*)
11689     lt_cv_sys_dlopen_deplibs=yes
11690 michael 912 ;;
11691 michael 945 openbsd*)
11692     lt_cv_sys_dlopen_deplibs=yes
11693 michael 912 ;;
11694 michael 945 osf[1234]*)
11695     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11696     # it did *not* use an RPATH in a shared library to find objects the
11697     # library depends on, so we explicitly say `no'.
11698     lt_cv_sys_dlopen_deplibs=no
11699     ;;
11700     osf5.0|osf5.0a|osf5.1)
11701     # dlopen *does* load deplibs and with the right loader patch applied
11702     # it even uses RPATH in a shared library to search for shared objects
11703     # that the library depends on, but there's no easy way to know if that
11704     # patch is installed. Since this is the case, all we can really
11705     # say is unknown -- it depends on the patch being installed. If
11706     # it is, this changes to `yes'. Without it, it would be `no'.
11707     lt_cv_sys_dlopen_deplibs=unknown
11708     ;;
11709     osf*)
11710     # the two cases above should catch all versions of osf <= 5.1. Read
11711     # the comments above for what we know about them.
11712     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11713     # is used to find them so we can finally say `yes'.
11714     lt_cv_sys_dlopen_deplibs=yes
11715     ;;
11716     qnx*)
11717     lt_cv_sys_dlopen_deplibs=yes
11718     ;;
11719     solaris*)
11720     lt_cv_sys_dlopen_deplibs=yes
11721     ;;
11722     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11723     libltdl_cv_sys_dlopen_deplibs=yes
11724     ;;
11725 michael 912 esac
11726    
11727 michael 945 fi
11728 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11729 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11730     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11731 michael 912
11732 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11733 michael 912
11734 michael 945 fi
11735 michael 912
11736 michael 945 :
11737 michael 912
11738 michael 945 for ac_header in argz.h
11739 michael 967 do :
11740     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11741     "
11742     if test "x$ac_cv_header_argz_h" = x""yes; then :
11743 michael 945 cat >>confdefs.h <<_ACEOF
11744 michael 967 #define HAVE_ARGZ_H 1
11745 michael 945 _ACEOF
11746 michael 912
11747     fi
11748    
11749 michael 945 done
11750 michael 912
11751    
11752 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11753 michael 945 # include <argz.h>
11754     #endif
11755 michael 967 "
11756     if test "x$ac_cv_type_error_t" = x""yes; then :
11757 michael 912
11758 michael 945 cat >>confdefs.h <<_ACEOF
11759     #define HAVE_ERROR_T 1
11760     _ACEOF
11761 michael 912
11762    
11763 michael 945 else
11764 michael 912
11765 michael 967 $as_echo "#define error_t int" >>confdefs.h
11766 michael 912
11767    
11768 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
11769 michael 912
11770 michael 945 fi
11771 michael 912
11772    
11773 michael 945 ARGZ_H=
11774     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11775     argz_next argz_stringify
11776 michael 967 do :
11777     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11779     eval as_val=\$$as_ac_var
11780     if test "x$as_val" = x""yes; then :
11781 michael 945 cat >>confdefs.h <<_ACEOF
11782     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783     _ACEOF
11784 michael 912
11785 michael 945 else
11786     ARGZ_H=argz.h;
11787 michael 912
11788 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11789 michael 912
11790 michael 945 fi
11791     done
11792 michael 912
11793    
11794 michael 967 if test -z "$ARGZ_H"; then :
11795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11796 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
11797 michael 967 if test "${lt_cv_sys_argz_works+set}" = set; then :
11798 michael 945 $as_echo_n "(cached) " >&6
11799 michael 912 else
11800 michael 945 case $host_os in #(
11801     *cygwin*)
11802     lt_cv_sys_argz_works=no
11803     if test "$cross_compiling" != no; then
11804     lt_cv_sys_argz_works="guessing no"
11805     else
11806     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11807     save_IFS=$IFS
11808     IFS=-.
11809     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11810     IFS=$save_IFS
11811     lt_os_major=${2-0}
11812     lt_os_minor=${3-0}
11813     lt_os_micro=${4-0}
11814     if test "$lt_os_major" -gt 1 \
11815     || { test "$lt_os_major" -eq 1 \
11816     && { test "$lt_os_minor" -gt 5 \
11817     || { test "$lt_os_minor" -eq 5 \
11818     && test "$lt_os_micro" -gt 24; }; }; }; then
11819     lt_cv_sys_argz_works=yes
11820     fi
11821     fi
11822     ;; #(
11823     *) lt_cv_sys_argz_works=yes ;;
11824     esac
11825 michael 912 fi
11826 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11827 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
11828 michael 967 if test $lt_cv_sys_argz_works = yes; then :
11829 michael 912
11830 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11831 michael 912
11832 michael 945 else
11833     ARGZ_H=argz.h
11834 michael 912
11835    
11836 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11837 michael 912
11838 michael 945 fi
11839     fi
11840 michael 912
11841    
11842    
11843 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11844 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11845 michael 967 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11846 db 941 $as_echo_n "(cached) " >&6
11847 michael 912 else
11848 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11849     libltdl_cv_preloaded_symbols=yes
11850     else
11851     libltdl_cv_preloaded_symbols=no
11852     fi
11853 michael 912
11854     fi
11855 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11856 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11857     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11858 michael 912
11859 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11860 michael 912
11861     fi
11862    
11863    
11864    
11865 michael 945 # Set options
11866 michael 912
11867    
11868    
11869    
11870 db 941
11871 michael 912
11872    
11873    
11874    
11875    
11876    
11877    
11878 michael 945 # Check whether --with-included_ltdl was given.
11879 michael 967 if test "${with_included_ltdl+set}" = set; then :
11880 michael 945 withval=$with_included_ltdl;
11881     fi
11882 db 941
11883 michael 912
11884 michael 945 if test "x$with_included_ltdl" != xyes; then
11885     # We are not being forced to use the included libltdl sources, so
11886     # decide whether there is a useful installed version we can use.
11887 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11888 michael 912
11889 michael 967 "
11890     if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11891     ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11892 michael 945 #include <ltdl.h>
11893 michael 967 "
11894     if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11896 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11897 michael 967 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11898 michael 945 $as_echo_n "(cached) " >&6
11899     else
11900     ac_check_lib_save_LIBS=$LIBS
11901     LIBS="-lltdl $LIBS"
11902 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 michael 912 /* end confdefs.h. */
11904    
11905 michael 945 /* Override any GCC internal prototype to avoid an error.
11906     Use char because int might match the return type of a GCC
11907     builtin and then its argument prototype would still apply. */
11908     #ifdef __cplusplus
11909     extern "C"
11910     #endif
11911     char lt_dladvise_preload ();
11912 michael 912 int
11913     main ()
11914     {
11915 michael 945 return lt_dladvise_preload ();
11916 michael 912 ;
11917     return 0;
11918     }
11919     _ACEOF
11920 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11921 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11922 michael 912 else
11923 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
11924 michael 912 fi
11925 michael 967 rm -f core conftest.err conftest.$ac_objext \
11926     conftest$ac_exeext conftest.$ac_ext
11927 michael 945 LIBS=$ac_check_lib_save_LIBS
11928     fi
11929 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11930 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11931 michael 967 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11932 michael 945 with_included_ltdl=no
11933     else
11934     with_included_ltdl=yes
11935     fi
11936 michael 912
11937 michael 945 else
11938     with_included_ltdl=yes
11939     fi
11940 michael 912
11941 michael 945 else
11942     with_included_ltdl=yes
11943     fi
11944 michael 912
11945    
11946 michael 945 fi
11947 michael 912
11948    
11949    
11950    
11951    
11952    
11953    
11954    
11955    
11956 michael 945 # Check whether --with-ltdl_include was given.
11957 michael 967 if test "${with_ltdl_include+set}" = set; then :
11958 michael 945 withval=$with_ltdl_include;
11959     fi
11960 michael 912
11961    
11962 michael 945 if test -n "$with_ltdl_include"; then
11963     if test -f "$with_ltdl_include/ltdl.h"; then :
11964 michael 912 else
11965 michael 967 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11966 michael 912 fi
11967 michael 945 else
11968     with_ltdl_include=no
11969     fi
11970 michael 912
11971    
11972 michael 945 # Check whether --with-ltdl_lib was given.
11973 michael 967 if test "${with_ltdl_lib+set}" = set; then :
11974 michael 945 withval=$with_ltdl_lib;
11975     fi
11976 michael 912
11977    
11978 michael 945 if test -n "$with_ltdl_lib"; then
11979     if test -f "$with_ltdl_lib/libltdl.la"; then :
11980 michael 912 else
11981 michael 967 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11982 michael 912 fi
11983 michael 945 else
11984     with_ltdl_lib=no
11985     fi
11986 michael 912
11987 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11988     ,yes,no,no,)
11989     case $enable_ltdl_convenience in
11990 michael 967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11991 michael 945 "") enable_ltdl_convenience=yes
11992     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11993     esac
11994     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11995     LTDLDEPS=$LIBLTDL
11996     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11997 michael 912
11998    
11999    
12000    
12001    
12002 michael 945 # For backwards non-gettext consistent compatibility...
12003     INCLTDL="$LTDLINCL"
12004 michael 912
12005    
12006 michael 945 ;;
12007     ,no,no,no,)
12008     # If the included ltdl is not to be used, then use the
12009     # preinstalled libltdl we found.
12010 michael 912
12011 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12012 michael 912
12013 michael 945 LIBLTDL=-lltdl
12014     LTDLDEPS=
12015     LTDLINCL=
12016 michael 912 ;;
12017 michael 945 ,no*,no,*)
12018 michael 967 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12019 michael 912 ;;
12020 michael 945 *) with_included_ltdl=no
12021     LIBLTDL="-L$with_ltdl_lib -lltdl"
12022     LTDLDEPS=
12023     LTDLINCL="-I$with_ltdl_include"
12024     ;;
12025     esac
12026     INCLTDL="$LTDLINCL"
12027 michael 912
12028 michael 945 # Report our decision...
12029 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12030 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12031 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12032 michael 945 $as_echo "$LTDLINCL" >&6; }
12033 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12034 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12035 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12036 michael 945 $as_echo "$LIBLTDL" >&6; }
12037 michael 912
12038    
12039    
12040 michael 945 # Check whether --enable-ltdl-install was given.
12041 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12042 michael 945 enableval=$enable_ltdl_install;
12043     fi
12044 michael 912
12045    
12046 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12047     *yes*) ;;
12048     *) enable_ltdl_convenience=yes ;;
12049 michael 912 esac
12050    
12051 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12052     INSTALL_LTDL_TRUE=
12053     INSTALL_LTDL_FALSE='#'
12054 db 941 else
12055 michael 945 INSTALL_LTDL_TRUE='#'
12056     INSTALL_LTDL_FALSE=
12057 db 941 fi
12058    
12059 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12060     CONVENIENCE_LTDL_TRUE=
12061     CONVENIENCE_LTDL_FALSE='#'
12062 db 941 else
12063 michael 945 CONVENIENCE_LTDL_TRUE='#'
12064     CONVENIENCE_LTDL_FALSE=
12065 db 941 fi
12066    
12067    
12068 michael 912
12069 michael 945 subdirs="$subdirs libltdl"
12070 michael 912
12071    
12072    
12073    
12074    
12075 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12076     # the user used. This is so that ltdl.h can pick up the parent projects
12077     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12078     # definitions required by ltdl.c.
12079     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12080 michael 912
12081    
12082    
12083 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12084 michael 967 do :
12085     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12087     "
12088     eval as_val=\$$as_ac_Header
12089     if test "x$as_val" = x""yes; then :
12090 michael 945 cat >>confdefs.h <<_ACEOF
12091     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092     _ACEOF
12093 michael 912
12094 michael 945 fi
12095 michael 912
12096 michael 945 done
12097 michael 912
12098    
12099 michael 945 for ac_func in closedir opendir readdir
12100 michael 967 do :
12101     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12102     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12103     eval as_val=\$$as_ac_var
12104     if test "x$as_val" = x""yes; then :
12105 michael 945 cat >>confdefs.h <<_ACEOF
12106     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12107     _ACEOF
12108 michael 912
12109 michael 945 else
12110 michael 912
12111    
12112 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12113 michael 912
12114     fi
12115     done
12116    
12117 michael 945 for ac_func in strlcat strlcpy
12118 michael 967 do :
12119     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12121     eval as_val=\$$as_ac_var
12122     if test "x$as_val" = x""yes; then :
12123 michael 945 cat >>confdefs.h <<_ACEOF
12124     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12125     _ACEOF
12126 michael 912
12127     else
12128    
12129    
12130 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12131 michael 912
12132     fi
12133 michael 945 done
12134 michael 912
12135    
12136    
12137 michael 945 cat >>confdefs.h <<_ACEOF
12138     #define LT_LIBEXT "$libext"
12139     _ACEOF
12140 michael 912
12141    
12142 michael 945 name=ltdl
12143     LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12144 michael 912
12145    
12146    
12147    
12148    
12149    
12150    
12151    
12152 michael 945 # Only expand once:
12153 michael 912
12154    
12155    
12156     # Checks for libraries.
12157    
12158 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12159 db 941 $as_echo_n "checking for library containing socket... " >&6; }
12160 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12161 db 941 $as_echo_n "(cached) " >&6
12162 michael 912 else
12163     ac_func_search_save_LIBS=$LIBS
12164 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 michael 912 /* end confdefs.h. */
12166    
12167     /* Override any GCC internal prototype to avoid an error.
12168     Use char because int might match the return type of a GCC
12169     builtin and then its argument prototype would still apply. */
12170     #ifdef __cplusplus
12171     extern "C"
12172     #endif
12173     char socket ();
12174     int
12175     main ()
12176     {
12177     return socket ();
12178     ;
12179     return 0;
12180     }
12181     _ACEOF
12182     for ac_lib in '' socket; do
12183     if test -z "$ac_lib"; then
12184     ac_res="none required"
12185     else
12186     ac_res=-l$ac_lib
12187     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12188     fi
12189 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12190 michael 912 ac_cv_search_socket=$ac_res
12191     fi
12192 michael 967 rm -f core conftest.err conftest.$ac_objext \
12193     conftest$ac_exeext
12194     if test "${ac_cv_search_socket+set}" = set; then :
12195 michael 912 break
12196     fi
12197     done
12198 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12199    
12200 michael 912 else
12201     ac_cv_search_socket=no
12202     fi
12203     rm conftest.$ac_ext
12204     LIBS=$ac_func_search_save_LIBS
12205     fi
12206 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12207 db 941 $as_echo "$ac_cv_search_socket" >&6; }
12208 michael 912 ac_res=$ac_cv_search_socket
12209 michael 967 if test "$ac_res" != no; then :
12210 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12211    
12212     else
12213 michael 967 as_fn_error "socket library not found" "$LINENO" 5
12214 michael 912 fi
12215    
12216 michael 967 for ac_func in inet_aton inet_ntop inet_pton
12217     do :
12218     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12220     eval as_val=\$$as_ac_var
12221     if test "x$as_val" = x""yes; then :
12222 michael 912 cat >>confdefs.h <<_ACEOF
12223 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224 michael 912 _ACEOF
12225    
12226     fi
12227     done
12228    
12229 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12230 db 941 #include <sys/socket.h>
12231     #include <netdb.h>
12232    
12233 michael 967 "
12234     if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12235 db 941
12236 michael 912 cat >>confdefs.h <<_ACEOF
12237     #define HAVE_STRUCT_SOCKADDR_IN 1
12238     _ACEOF
12239    
12240    
12241     fi
12242 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12243 db 941 #include <sys/socket.h>
12244     #include <netdb.h>
12245    
12246 michael 967 "
12247     if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12248 db 941
12249 michael 912 cat >>confdefs.h <<_ACEOF
12250     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12251     _ACEOF
12252    
12253    
12254     fi
12255 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12256 db 941 #include <sys/socket.h>
12257     #include <netdb.h>
12258    
12259 michael 967 "
12260     if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12261 db 941
12262 michael 912 cat >>confdefs.h <<_ACEOF
12263     #define HAVE_STRUCT_ADDRINFO 1
12264     _ACEOF
12265    
12266    
12267     fi
12268    
12269 michael 967 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12270 db 941 <sys/socket.h>
12271 michael 967 "
12272     if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12273 michael 912
12274     cat >>confdefs.h <<_ACEOF
12275     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12276     _ACEOF
12277    
12278    
12279     fi
12280    
12281    
12282    
12283 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12284     if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12285 michael 912
12286     cat >>confdefs.h <<_ACEOF
12287     #define HAVE_STRUCT_SOCKADDR_IN6 1
12288     _ACEOF
12289    
12290    
12291     else
12292    
12293 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
12294 michael 912
12295     fi
12296    
12297    
12298    
12299     # Checks for typedefs, structures, and compiler characteristics.
12300 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12301 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12302 michael 967 if test "${ac_cv_c_bigendian+set}" = set; then :
12303 db 941 $as_echo_n "(cached) " >&6
12304 michael 912 else
12305 db 941 ac_cv_c_bigendian=unknown
12306 michael 942 # See if we're dealing with a universal compiler.
12307 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 michael 912 /* end confdefs.h. */
12309 michael 942 #ifndef __APPLE_CC__
12310     not a universal capable compiler
12311 db 941 #endif
12312     typedef int dummy;
12313    
12314     _ACEOF
12315 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12316 michael 942
12317     # Check for potential -arch flags. It is not universal unless
12318 michael 967 # there are at least two -arch flags with different values.
12319     ac_arch=
12320     ac_prev=
12321     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12322     if test -n "$ac_prev"; then
12323     case $ac_word in
12324     i?86 | x86_64 | ppc | ppc64)
12325     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12326     ac_arch=$ac_word
12327     else
12328     ac_cv_c_bigendian=universal
12329     break
12330     fi
12331     ;;
12332     esac
12333     ac_prev=
12334     elif test "x$ac_word" = "x-arch"; then
12335     ac_prev=arch
12336     fi
12337     done
12338 db 941 fi
12339     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340     if test $ac_cv_c_bigendian = unknown; then
12341     # See if sys/param.h defines the BYTE_ORDER macro.
12342 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 db 941 /* end confdefs.h. */
12344 michael 912 #include <sys/types.h>
12345 db 941 #include <sys/param.h>
12346 michael 912
12347     int
12348     main ()
12349     {
12350 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12351     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12352     && LITTLE_ENDIAN)
12353     bogus endian macros
12354     #endif
12355 michael 912
12356     ;
12357     return 0;
12358     }
12359     _ACEOF
12360 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12361 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
12362 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 michael 912 /* end confdefs.h. */
12364     #include <sys/types.h>
12365 db 941 #include <sys/param.h>
12366 michael 912
12367     int
12368     main ()
12369     {
12370     #if BYTE_ORDER != BIG_ENDIAN
12371 db 941 not big endian
12372     #endif
12373 michael 912
12374     ;
12375     return 0;
12376     }
12377     _ACEOF
12378 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12379 michael 912 ac_cv_c_bigendian=yes
12380     else
12381 michael 967 ac_cv_c_bigendian=no
12382 michael 912 fi
12383     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 db 941 fi
12385     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386     fi
12387     if test $ac_cv_c_bigendian = unknown; then
12388     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12389 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 michael 912 /* end confdefs.h. */
12391 db 941 #include <limits.h>
12392    
12393 michael 912 int
12394     main ()
12395     {
12396 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12397     bogus endian macros
12398     #endif
12399    
12400 michael 912 ;
12401     return 0;
12402     }
12403     _ACEOF
12404 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12405 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
12406 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 michael 912 /* end confdefs.h. */
12408 db 941 #include <limits.h>
12409    
12410 michael 912 int
12411     main ()
12412     {
12413 db 941 #ifndef _BIG_ENDIAN
12414     not big endian
12415     #endif
12416 michael 912
12417     ;
12418     return 0;
12419     }
12420     _ACEOF
12421 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12422 db 941 ac_cv_c_bigendian=yes
12423 michael 912 else
12424 michael 967 ac_cv_c_bigendian=no
12425 michael 912 fi
12426 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 michael 912 fi
12428     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 db 941 fi
12430     if test $ac_cv_c_bigendian = unknown; then
12431     # Compile a test program.
12432 michael 967 if test "$cross_compiling" = yes; then :
12433 db 941 # Try to guess by grepping values from an object file.
12434 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 michael 912 /* end confdefs.h. */
12436 db 941 short int ascii_mm[] =
12437     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12438     short int ascii_ii[] =
12439     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12440     int use_ascii (int i) {
12441     return ascii_mm[i] + ascii_ii[i];
12442     }
12443     short int ebcdic_ii[] =
12444     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12445     short int ebcdic_mm[] =
12446     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12447     int use_ebcdic (int i) {
12448     return ebcdic_mm[i] + ebcdic_ii[i];
12449     }
12450     extern int foo;
12451    
12452 michael 912 int
12453     main ()
12454     {
12455 db 941 return use_ascii (foo) == use_ebcdic (foo);
12456 michael 912 ;
12457     return 0;
12458     }
12459     _ACEOF
12460 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12461 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12462     ac_cv_c_bigendian=yes
12463     fi
12464     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12465     if test "$ac_cv_c_bigendian" = unknown; then
12466     ac_cv_c_bigendian=no
12467     else
12468     # finding both strings is unlikely to happen, but who knows?
12469     ac_cv_c_bigendian=unknown
12470     fi
12471     fi
12472 michael 912 fi
12473     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 db 941 else
12475 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 db 941 /* end confdefs.h. */
12477     $ac_includes_default
12478     int
12479     main ()
12480     {
12481    
12482     /* Are we little or big endian? From Harbison&Steele. */
12483     union
12484     {
12485     long int l;
12486     char c[sizeof (long int)];
12487     } u;
12488     u.l = 1;
12489     return u.c[sizeof (long int) - 1] == 1;
12490    
12491     ;
12492     return 0;
12493     }
12494     _ACEOF
12495 michael 967 if ac_fn_c_try_run "$LINENO"; then :
12496 db 941 ac_cv_c_bigendian=no
12497     else
12498 michael 967 ac_cv_c_bigendian=yes
12499 michael 912 fi
12500 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12501     conftest.$ac_objext conftest.beam conftest.$ac_ext
12502 db 941 fi
12503 michael 912
12504 db 941 fi
12505     fi
12506 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12507 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
12508     case $ac_cv_c_bigendian in #(
12509     yes)
12510 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12511 db 941 ;; #(
12512     no)
12513     ;; #(
12514     universal)
12515 michael 942
12516 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12517 michael 942
12518     ;; #(
12519 db 941 *)
12520 michael 967 as_fn_error "unknown endianness
12521     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12522 db 941 esac
12523    
12524    
12525 michael 912 # Checks for library functions.
12526    
12527    
12528    
12529 michael 967 for ac_func in $ac_func_list
12530     do :
12531     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12532     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12533     eval as_val=\$$as_ac_var
12534     if test "x$as_val" = x""yes; then :
12535 michael 912 cat >>confdefs.h <<_ACEOF
12536 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12537 michael 912 _ACEOF
12538    
12539     fi
12540     done
12541    
12542    
12543    
12544    
12545    
12546    
12547    
12548    
12549    
12550    
12551 michael 942
12552    
12553    
12554 michael 923 # Checks for header files.
12555 michael 912
12556    
12557    
12558 michael 967 for ac_header in $ac_header_list
12559     do :
12560     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12561     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12562     "
12563     eval as_val=\$$as_ac_Header
12564     if test "x$as_val" = x""yes; then :
12565 michael 912 cat >>confdefs.h <<_ACEOF
12566 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12567 michael 912 _ACEOF
12568    
12569     fi
12570    
12571     done
12572    
12573    
12574    
12575    
12576    
12577    
12578    
12579    
12580    
12581    
12582    
12583    
12584    
12585    
12586    
12587    
12588    
12589    
12590    
12591    
12592    
12593    
12594    
12595    
12596    
12597    
12598    
12599 michael 1015 # check for /dev/null so we can use it to hold evil fd's
12600 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12601 db 941 $as_echo_n "checking for /dev/null... " >&6; }
12602 michael 1010 if test -c /dev/null; then :
12603 michael 915
12604 michael 1010
12605 michael 967 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12606 michael 915
12607 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 db 941 $as_echo "yes" >&6; }
12609 michael 923 else
12610    
12611 michael 1010
12612 michael 967 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12613 michael 923
12614 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12615 db 941 $as_echo "no - using devnull.log" >&6; }
12616 michael 923 fi
12617    
12618    
12619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12620 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
12621 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12622 db 941 $as_echo_n "(cached) " >&6
12623 michael 923 else
12624     ac_func_search_save_LIBS=$LIBS
12625 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 michael 923 /* end confdefs.h. */
12627    
12628     /* Override any GCC internal prototype to avoid an error.
12629     Use char because int might match the return type of a GCC
12630     builtin and then its argument prototype would still apply. */
12631     #ifdef __cplusplus
12632     extern "C"
12633     #endif
12634     char crypt ();
12635     int
12636     main ()
12637     {
12638     return crypt ();
12639     ;
12640     return 0;
12641     }
12642     _ACEOF
12643 michael 977 for ac_lib in '' crypt; do
12644 michael 923 if test -z "$ac_lib"; then
12645     ac_res="none required"
12646     else
12647     ac_res=-l$ac_lib
12648     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12649     fi
12650 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12651 michael 923 ac_cv_search_crypt=$ac_res
12652     fi
12653 michael 967 rm -f core conftest.err conftest.$ac_objext \
12654     conftest$ac_exeext
12655     if test "${ac_cv_search_crypt+set}" = set; then :
12656 michael 923 break
12657     fi
12658     done
12659 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12660    
12661 michael 923 else
12662     ac_cv_search_crypt=no
12663     fi
12664     rm conftest.$ac_ext
12665     LIBS=$ac_func_search_save_LIBS
12666     fi
12667 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12668 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
12669 michael 923 ac_res=$ac_cv_search_crypt
12670 michael 967 if test "$ac_res" != no; then :
12671 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12672    
12673     fi
12674    
12675    
12676    
12677    
12678     # Check whether --with-zlib-path was given.
12679 michael 967 if test "${with_zlib_path+set}" = set; then :
12680 michael 923 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12681     fi
12682    
12683    
12684     # Check whether --enable-zlib was given.
12685 michael 967 if test "${enable_zlib+set}" = set; then :
12686 michael 923 enableval=$enable_zlib; zlib=$enableval
12687     else
12688     zlib=yes
12689     fi
12690    
12691    
12692 michael 1010 if test "$zlib" = "yes"; then :
12693    
12694 michael 967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12695     if test "x$ac_cv_header_zlib_h" = x""yes; then :
12696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12697 db 941 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12698 michael 967 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12699 db 941 $as_echo_n "(cached) " >&6
12700 michael 923 else
12701     ac_check_lib_save_LIBS=$LIBS
12702     LIBS="-lz $LIBS"
12703 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 michael 923 /* end confdefs.h. */
12705    
12706     /* Override any GCC internal prototype to avoid an error.
12707     Use char because int might match the return type of a GCC
12708     builtin and then its argument prototype would still apply. */
12709     #ifdef __cplusplus
12710     extern "C"
12711     #endif
12712     char zlibVersion ();
12713     int
12714     main ()
12715     {
12716     return zlibVersion ();
12717     ;
12718     return 0;
12719     }
12720     _ACEOF
12721 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12722 michael 923 ac_cv_lib_z_zlibVersion=yes
12723     else
12724 michael 967 ac_cv_lib_z_zlibVersion=no
12725 michael 923 fi
12726 michael 967 rm -f core conftest.err conftest.$ac_objext \
12727     conftest$ac_exeext conftest.$ac_ext
12728 michael 923 LIBS=$ac_check_lib_save_LIBS
12729     fi
12730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12731 db 941 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12732 michael 967 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12733 michael 923
12734     LIBS="-lz $LIBS"
12735    
12736 michael 967 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12737 michael 923
12738    
12739     else
12740     zlib=no
12741     fi
12742    
12743    
12744     else
12745     zlib=no
12746     fi
12747    
12748    
12749 michael 1010
12750 michael 923 fi
12751    
12752    
12753 michael 1009 # Check whether --with-libpcre-path was given.
12754     if test "${with_libpcre_path+set}" = set; then :
12755     withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12756     fi
12757    
12758    
12759     # Check whether --enable-libpcre was given.
12760     if test "${enable_libpcre+set}" = set; then :
12761     enableval=$enable_libpcre; libpcre=$enableval
12762     else
12763     libpcre=yes
12764     fi
12765    
12766    
12767 michael 1010 if test "$libpcre" = "yes"; then :
12768    
12769 michael 1009 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12770     if test "x$ac_cv_header_pcre_h" = x""yes; then :
12771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12772     $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12773     if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12774     $as_echo_n "(cached) " >&6
12775     else
12776     ac_check_lib_save_LIBS=$LIBS
12777     LIBS="-lpcre $LIBS"
12778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779     /* end confdefs.h. */
12780    
12781     /* Override any GCC internal prototype to avoid an error.
12782     Use char because int might match the return type of a GCC
12783     builtin and then its argument prototype would still apply. */
12784     #ifdef __cplusplus
12785     extern "C"
12786     #endif
12787     char pcre_study ();
12788     int
12789     main ()
12790     {
12791     return pcre_study ();
12792     ;
12793     return 0;
12794     }
12795     _ACEOF
12796     if ac_fn_c_try_link "$LINENO"; then :
12797     ac_cv_lib_pcre_pcre_study=yes
12798     else
12799     ac_cv_lib_pcre_pcre_study=no
12800     fi
12801     rm -f core conftest.err conftest.$ac_objext \
12802     conftest$ac_exeext conftest.$ac_ext
12803     LIBS=$ac_check_lib_save_LIBS
12804     fi
12805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12806     $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12807     if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12808    
12809     LIBS="-lpcre $LIBS"
12810    
12811     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12812    
12813    
12814     else
12815     libpcre=no
12816     fi
12817    
12818    
12819     else
12820     libpcre=no
12821     fi
12822    
12823    
12824 michael 1010
12825 michael 1009 fi
12826     if test "$libpcre" = yes; then
12827     ENABLE_PCRE_TRUE=
12828     ENABLE_PCRE_FALSE='#'
12829     else
12830     ENABLE_PCRE_TRUE='#'
12831     ENABLE_PCRE_FALSE=
12832     fi
12833    
12834    
12835    
12836 michael 912 # Check whether --enable-openssl was given.
12837 michael 967 if test "${enable_openssl+set}" = set; then :
12838 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
12839     else
12840     cf_enable_openssl="auto"
12841     fi
12842    
12843 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12844 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
12845 michael 912 if test "$cf_enable_openssl" != "no"; then
12846     cf_openssl_basedir=""
12847     if test "$cf_enable_openssl" != "auto" &&
12848     test "$cf_enable_openssl" != "yes"; then
12849     cf_openssl_basedir="${cf_enable_openssl}"
12850     else
12851     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12852     /opt /opt/openssl /usr/local/openssl; do
12853     if test -f "${dirs}/include/openssl/opensslv.h"; then
12854     cf_openssl_basedir="${dirs}"
12855     break
12856     fi
12857     done
12858     unset dirs
12859     fi
12860    
12861     if test ! -z "$cf_openssl_basedir"; then
12862     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12863     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12864     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12865     else
12866     cf_openssl_basedir=""
12867     fi
12868     else
12869     if test -f "/usr/include/openssl/opensslv.h"; then
12870     cf_openssl_basedir="/usr"
12871     fi
12872     fi
12873    
12874     if test ! -z "$cf_openssl_basedir"; then
12875     LIBS="-lcrypto -lssl $LIBS"
12876 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12877 db 941 $as_echo "$cf_openssl_basedir" >&6; }
12878 michael 912 cf_enable_openssl="yes"
12879 michael 924
12880 michael 967 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12881 michael 912
12882     else
12883 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12884     $as_echo "not found. Please check your path." >&6; }
12885 michael 912 cf_enable_openssl="no"
12886     fi
12887     unset cf_openssl_basedir
12888     else
12889 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12890 db 941 $as_echo "disabled" >&6; }
12891 michael 912 fi
12892 michael 1015
12893     if test "$cf_enable_openssl" != "no"; then :
12894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12895     $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12896     if test "$cross_compiling" = yes; then :
12897     cf_openssl_version_ok=no
12898     else
12899     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900     /* end confdefs.h. */
12901    
12902     #include <openssl/opensslv.h>
12903     #include <stdlib.h>
12904     int
12905     main ()
12906     {
12907     exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12908     ;
12909     return 0;
12910     }
12911     _ACEOF
12912     if ac_fn_c_try_run "$LINENO"; then :
12913     cf_openssl_version_ok=yes
12914     else
12915     cf_openssl_version_ok=no
12916     fi
12917     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12918     conftest.$ac_objext conftest.beam conftest.$ac_ext
12919     fi
12920    
12921    
12922     if test "$cf_openssl_version_ok" = "yes"; then :
12923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12924     $as_echo "found" >&6; }
12925    
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12927     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12928     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12929     $as_echo_n "(cached) " >&6
12930     else
12931     ac_check_lib_save_LIBS=$LIBS
12932     LIBS="-lcrypto $LIBS"
12933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934     /* end confdefs.h. */
12935    
12936     /* Override any GCC internal prototype to avoid an error.
12937     Use char because int might match the return type of a GCC
12938     builtin and then its argument prototype would still apply. */
12939     #ifdef __cplusplus
12940     extern "C"
12941     #endif
12942     char RSA_free ();
12943     int
12944     main ()
12945     {
12946     return RSA_free ();
12947     ;
12948     return 0;
12949     }
12950     _ACEOF
12951     if ac_fn_c_try_link "$LINENO"; then :
12952     ac_cv_lib_crypto_RSA_free=yes
12953     else
12954     ac_cv_lib_crypto_RSA_free=no
12955     fi
12956     rm -f core conftest.err conftest.$ac_objext \
12957     conftest$ac_exeext conftest.$ac_ext
12958     LIBS=$ac_check_lib_save_LIBS
12959     fi
12960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12961     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12962     if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12963     cat >>confdefs.h <<_ACEOF
12964     #define HAVE_LIBCRYPTO 1
12965     _ACEOF
12966    
12967     LIBS="-lcrypto $LIBS"
12968    
12969     fi
12970    
12971     if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12972     for ac_func in EVP_bf_cfb \
12973     EVP_cast5_cfb \
12974     EVP_idea_cfb \
12975     EVP_rc5_32_12_16_cfb \
12976     EVP_des_ede3_cfb \
12977     EVP_des_cfb
12978     do :
12979     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12981     eval as_val=\$$as_ac_var
12982     if test "x$as_val" = x""yes; then :
12983     cat >>confdefs.h <<_ACEOF
12984     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12985     _ACEOF
12986    
12987     fi
12988     done
12989    
12990     fi
12991    
12992     else
12993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
12994     $as_echo "no - OpenSSL support disabled" >&6; }
12995     cf_enable_openssl="no"
12996     fi
12997     fi
12998    
12999 michael 924 if test "$cf_enable_openssl" = yes; then
13000 michael 912 ENABLE_SSL_TRUE=
13001     ENABLE_SSL_FALSE='#'
13002     else
13003     ENABLE_SSL_TRUE='#'
13004     ENABLE_SSL_FALSE=
13005     fi
13006    
13007    
13008    
13009 michael 924 # Check whether --enable-assert was given.
13010 michael 967 if test "${enable_assert+set}" = set; then :
13011 michael 924 enableval=$enable_assert; assert=$enableval
13012     else
13013     assert=no
13014     fi
13015    
13016    
13017 michael 1010 if test "$assert" = "no"; then :
13018    
13019 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13020 michael 925
13021 michael 924 fi
13022    
13023    
13024 michael 925 # Check whether --enable-small-net was given.
13025 michael 967 if test "${enable_small_net+set}" = set; then :
13026 michael 925 enableval=$enable_small_net; small_net=$enableval
13027     else
13028     small_net=no
13029     fi
13030    
13031    
13032 michael 1015 if test "$small_net" = "yes"; then :
13033 michael 925
13034 michael 1015
13035 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13036 michael 925
13037    
13038 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13039 michael 925
13040    
13041 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13042 michael 925
13043    
13044 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13045 michael 925
13046    
13047 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13048 michael 925
13049    
13050 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13051 michael 925
13052    
13053 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13054 michael 925
13055    
13056 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13057 michael 925
13058 michael 998
13059     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13060    
13061    
13062     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13063    
13064 michael 925 else
13065    
13066 michael 1015
13067    
13068 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13069 michael 925
13070    
13071 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13072 michael 925
13073    
13074 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13075 michael 925
13076    
13077 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13078 michael 925
13079    
13080 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13081 michael 925
13082    
13083 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13084 michael 925
13085    
13086 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13087 michael 925
13088    
13089 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13090 michael 925
13091 michael 998
13092     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13093    
13094    
13095     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13096    
13097 michael 925 fi
13098    
13099 db 941
13100 michael 912 # Argument processing.
13101    
13102     desired_iopoll_mechanism="none"
13103     # Check whether --enable-kqueue was given.
13104 michael 967 if test "${enable_kqueue+set}" = set; then :
13105 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13106     fi
13107    
13108     # Check whether --enable-epoll was given.
13109 michael 967 if test "${enable_epoll+set}" = set; then :
13110 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13111     fi
13112    
13113     # Check whether --enable-devpoll was given.
13114 michael 967 if test "${enable_devpoll+set}" = set; then :
13115 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13116     fi
13117    
13118     # Check whether --enable-rtsigio was given.
13119 michael 967 if test "${enable_rtsigio+set}" = set; then :
13120 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13121     fi
13122    
13123     # Check whether --enable-poll was given.
13124 michael 967 if test "${enable_poll+set}" = set; then :
13125 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13126     fi
13127    
13128     # Check whether --enable-select was given.
13129 michael 967 if test "${enable_select+set}" = set; then :
13130 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13131     fi
13132    
13133 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13134 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13135 michael 912 iopoll_mechanism_none=0
13136    
13137     cat >>confdefs.h <<_ACEOF
13138     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13139     _ACEOF
13140    
13141     iopoll_mechanism_kqueue=1
13142    
13143     cat >>confdefs.h <<_ACEOF
13144     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13145     _ACEOF
13146    
13147 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 michael 912 /* end confdefs.h. */
13149     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13150     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13151     #define kevent innocuous_kevent
13152    
13153     /* System header to define __stub macros and hopefully few prototypes,
13154     which can conflict with char kevent (); below.
13155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13156     <limits.h> exists even on freestanding compilers. */
13157    
13158     #ifdef __STDC__
13159     # include <limits.h>
13160     #else
13161     # include <assert.h>
13162     #endif
13163    
13164     #undef kevent
13165    
13166     /* Override any GCC internal prototype to avoid an error.
13167     Use char because int might match the return type of a GCC
13168     builtin and then its argument prototype would still apply. */
13169     #ifdef __cplusplus
13170     extern "C"
13171     #endif
13172     char kevent ();
13173     /* The GNU C library defines this for functions which it implements
13174     to always fail with ENOSYS. Some functions are actually named
13175     something starting with __ and the normal name is an alias. */
13176     #if defined __stub_kevent || defined __stub___kevent
13177     choke me
13178     #endif
13179    
13180     int
13181     main ()
13182     {
13183     return kevent ();
13184     ;
13185     return 0;
13186     }
13187     _ACEOF
13188 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13189 michael 912 is_kqueue_mechanism_available="yes"
13190     else
13191 michael 967 is_kqueue_mechanism_available="no"
13192 michael 912 fi
13193 michael 967 rm -f core conftest.err conftest.$ac_objext \
13194     conftest$ac_exeext conftest.$ac_ext
13195 michael 912 iopoll_mechanism_epoll=2
13196    
13197     cat >>confdefs.h <<_ACEOF
13198     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13199     _ACEOF
13200    
13201 michael 967 if test "$cross_compiling" = yes; then :
13202     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13203 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13204 michael 967 as_fn_error "cannot run test program while cross compiling
13205     See \`config.log' for more details." "$LINENO" 5; }
13206 michael 912 else
13207 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208     /* end confdefs.h. */
13209 michael 912
13210     #include <sys/epoll.h>
13211     #include <sys/syscall.h>
13212     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13213     #if !defined(__NR_epoll_create)
13214     #if defined(__ia64__)
13215     #define __NR_epoll_create 1243
13216     #elif defined(__x86_64__)
13217     #define __NR_epoll_create 214
13218     #elif defined(__sparc64__) || defined(__sparc__)
13219     #define __NR_epoll_create 193
13220     #elif defined(__s390__) || defined(__m68k__)
13221     #define __NR_epoll_create 249
13222     #elif defined(__ppc64__) || defined(__ppc__)
13223     #define __NR_epoll_create 236
13224     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13225     #define __NR_epoll_create 224
13226     #elif defined(__alpha__)
13227     #define __NR_epoll_create 407
13228     #elif defined(__sh64__)
13229     #define __NR_epoll_create 282
13230     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13231     #define __NR_epoll_create 254
13232     #else
13233     #error No system call numbers defined for epoll family.
13234     #endif
13235     #endif
13236     _syscall1(int, epoll_create, int, size)
13237     #endif
13238     main() { return epoll_create(256) == -1 ? 1 : 0; }
13239    
13240     _ACEOF
13241 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13242 michael 912 is_epoll_mechanism_available="yes"
13243     else
13244 michael 967 is_epoll_mechanism_available="no"
13245 michael 912 fi
13246 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13247     conftest.$ac_objext conftest.beam conftest.$ac_ext
13248 michael 912 fi
13249    
13250     iopoll_mechanism_devpoll=3
13251    
13252     cat >>confdefs.h <<_ACEOF
13253     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13254     _ACEOF
13255    
13256 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 michael 912 /* end confdefs.h. */
13258     #include <devpoll.h>
13259     int
13260     main ()
13261     {
13262    
13263     ;
13264     return 0;
13265     }
13266     _ACEOF
13267 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13268 michael 912 is_devpoll_mechanism_available="yes"
13269     else
13270 michael 967 is_devpoll_mechanism_available="no"
13271 michael 912 fi
13272     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273     if test "$is_devpoll_mechanism_available" = "yes" ; then
13274    
13275 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13276 michael 912
13277     fi
13278 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 michael 912 /* end confdefs.h. */
13280     #include <sys/devpoll.h>
13281     int
13282     main ()
13283     {
13284    
13285     ;
13286     return 0;
13287     }
13288     _ACEOF
13289 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13290 michael 912 is_devpoll_mechanism_available="yes"
13291     else
13292 michael 967 is_devpoll_mechanism_available="no"
13293 michael 912 fi
13294     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295     if test "$is_devpoll_mechanism_available" = "yes" ; then
13296    
13297 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13298 michael 912
13299     fi
13300     iopoll_mechanism_rtsigio=4
13301    
13302     cat >>confdefs.h <<_ACEOF
13303     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13304     _ACEOF
13305    
13306 michael 967 if test "$cross_compiling" = yes; then :
13307     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13308 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13309 michael 967 as_fn_error "cannot run test program while cross compiling
13310     See \`config.log' for more details." "$LINENO" 5; }
13311 michael 912 else
13312 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 michael 912 /* end confdefs.h. */
13314    
13315     #include <fcntl.h>
13316     #ifdef F_SETSIG
13317     main () { return 0; } /* F_SETSIG defined */
13318     #else
13319     main () { return 1; } /* F_SETSIG not defined */
13320     #endif
13321    
13322     int
13323     main ()
13324     {
13325    
13326     ;
13327     return 0;
13328     }
13329     _ACEOF
13330 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13331 michael 912 is_rtsigio_mechanism_available="yes"
13332     else
13333 michael 967 is_rtsigio_mechanism_available="no"
13334 michael 912 fi
13335 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13336     conftest.$ac_objext conftest.beam conftest.$ac_ext
13337 michael 912 fi
13338    
13339     iopoll_mechanism_poll=5
13340    
13341     cat >>confdefs.h <<_ACEOF
13342     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13343     _ACEOF
13344    
13345 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 michael 912 /* end confdefs.h. */
13347     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13348     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13349     #define poll innocuous_poll
13350    
13351     /* System header to define __stub macros and hopefully few prototypes,
13352     which can conflict with char poll (); below.
13353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354     <limits.h> exists even on freestanding compilers. */
13355    
13356     #ifdef __STDC__
13357     # include <limits.h>
13358     #else
13359     # include <assert.h>
13360     #endif
13361    
13362     #undef poll
13363    
13364     /* Override any GCC internal prototype to avoid an error.
13365     Use char because int might match the return type of a GCC
13366     builtin and then its argument prototype would still apply. */
13367     #ifdef __cplusplus
13368     extern "C"
13369     #endif
13370     char poll ();
13371     /* The GNU C library defines this for functions which it implements
13372     to always fail with ENOSYS. Some functions are actually named
13373     something starting with __ and the normal name is an alias. */
13374     #if defined __stub_poll || defined __stub___poll
13375     choke me
13376     #endif
13377    
13378     int
13379     main ()
13380     {
13381     return poll ();
13382     ;
13383     return 0;
13384     }
13385     _ACEOF
13386 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13387 michael 912 is_poll_mechanism_available="yes"
13388     else
13389 michael 967 is_poll_mechanism_available="no"
13390 michael 912 fi
13391 michael 967 rm -f core conftest.err conftest.$ac_objext \
13392     conftest$ac_exeext conftest.$ac_ext
13393 michael 912 iopoll_mechanism_select=6
13394    
13395     cat >>confdefs.h <<_ACEOF
13396     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13397     _ACEOF
13398    
13399 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 michael 912 /* end confdefs.h. */
13401     /* Define select to an innocuous variant, in case <limits.h> declares select.
13402     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13403     #define select innocuous_select
13404    
13405     /* System header to define __stub macros and hopefully few prototypes,
13406     which can conflict with char select (); below.
13407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408     <limits.h> exists even on freestanding compilers. */
13409    
13410     #ifdef __STDC__
13411     # include <limits.h>
13412     #else
13413     # include <assert.h>
13414     #endif
13415    
13416     #undef select
13417    
13418     /* Override any GCC internal prototype to avoid an error.
13419     Use char because int might match the return type of a GCC
13420     builtin and then its argument prototype would still apply. */
13421     #ifdef __cplusplus
13422     extern "C"
13423     #endif
13424     char select ();
13425     /* The GNU C library defines this for functions which it implements
13426     to always fail with ENOSYS. Some functions are actually named
13427     something starting with __ and the normal name is an alias. */
13428     #if defined __stub_select || defined __stub___select
13429     choke me
13430     #endif
13431    
13432     int
13433     main ()
13434     {
13435     return select ();
13436     ;
13437     return 0;
13438     }
13439     _ACEOF
13440 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13441 michael 912 is_select_mechanism_available="yes"
13442     else
13443 michael 967 is_select_mechanism_available="no"
13444 michael 912 fi
13445 michael 967 rm -f core conftest.err conftest.$ac_objext \
13446     conftest$ac_exeext conftest.$ac_ext
13447 michael 912 optimal_iopoll_mechanism="none"
13448     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13449     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13450     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13451     optimal_iopoll_mechanism="$mechanism"
13452     break
13453     fi
13454     done
13455     if test "$desired_iopoll_mechanism" = "none" ; then
13456     if test "$optimal_iopoll_mechanism" = "none" ; then
13457 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13458 db 941 $as_echo "none" >&6; }
13459 michael 967 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13460 michael 912 else
13461     selected_iopoll_mechanism=$optimal_iopoll_mechanism
13462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13463 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13464 michael 912 fi
13465     else
13466     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13467     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13468     selected_iopoll_mechanism=$desired_iopoll_mechanism
13469 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13470 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13471 michael 912 else
13472 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13473 db 941 $as_echo "none" >&6; }
13474 michael 967 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13475 michael 912 fi
13476     fi
13477     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13478    
13479     cat >>confdefs.h <<_ACEOF
13480     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13481     _ACEOF
13482    
13483    
13484    
13485    
13486     # Check whether --with-nicklen was given.
13487 michael 967 if test "${with_nicklen+set}" = set; then :
13488 michael 912 withval=$with_nicklen; nicklen="$withval"
13489     else
13490     nicklen="9"
13491     fi
13492    
13493    
13494     cat >>confdefs.h <<_ACEOF
13495     #define NICKLEN ($nicklen+1)
13496     _ACEOF
13497    
13498    
13499    
13500    
13501     # Check whether --with-topiclen was given.
13502 michael 967 if test "${with_topiclen+set}" = set; then :
13503 michael 912 withval=$with_topiclen; topiclen="$withval"
13504     else
13505     topiclen="160"
13506     fi
13507    
13508    
13509     cat >>confdefs.h <<_ACEOF
13510 michael 1015 #define TOPICLEN ($topiclen)
13511 michael 912 _ACEOF
13512    
13513    
13514    
13515    
13516     # Check whether --with-syslog-facility was given.
13517 michael 967 if test "${with_syslog_facility+set}" = set; then :
13518 michael 912 withval=$with_syslog_facility; syslog_facility="$withval"
13519     else
13520     syslog_facility="LOG_LOCAL4"
13521     fi
13522    
13523    
13524     cat >>confdefs.h <<_ACEOF
13525     #define LOG_FACILITY $syslog_facility
13526     _ACEOF
13527    
13528    
13529    
13530     # Check whether --enable-efnet was given.
13531 michael 967 if test "${enable_efnet+set}" = set; then :
13532 michael 912 enableval=$enable_efnet; efnet="$enableval"
13533     else
13534     efnet="no"
13535     fi
13536    
13537     if test "$efnet" = "yes" ; then
13538     use_efnet="yes"
13539    
13540 michael 967 $as_echo "#define EFNET 1" >>confdefs.h
13541 michael 912
13542    
13543 michael 967 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13544 michael 912
13545     else
13546     use_efnet="no"
13547     fi
13548     if test "$use_efnet" = "yes"; then
13549     EFNET_TRUE=
13550     EFNET_FALSE='#'
13551     else
13552     EFNET_TRUE='#'
13553     EFNET_FALSE=
13554     fi
13555    
13556    
13557    
13558     # Check whether --enable-halfops was given.
13559 michael 967 if test "${enable_halfops+set}" = set; then :
13560 michael 912 enableval=$enable_halfops; halfops="$enableval"
13561     else
13562     halfops="no"
13563     fi
13564    
13565     if test "$halfops" = "yes" ; then
13566    
13567 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
13568 michael 912
13569     fi
13570    
13571    
13572     # Check whether --enable-debugging was given.
13573 michael 967 if test "${enable_debugging+set}" = set; then :
13574 michael 912 enableval=$enable_debugging; debugging="$enableval"
13575     else
13576     debugging="no"
13577     fi
13578    
13579     if test "$debugging" = "yes" ; then
13580    
13581 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
13582 michael 912
13583 michael 1017 CFLAGS="-Wall -g -O0"
13584 michael 912 else
13585    
13586 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13587 michael 912
13588     fi
13589    
13590    
13591     # Check whether --enable-warnings was given.
13592 michael 967 if test "${enable_warnings+set}" = set; then :
13593 michael 912 enableval=$enable_warnings; warnings="$enableval"
13594     else
13595     warnings="no"
13596     fi
13597    
13598     if test "$warnings" = "yes" ; then
13599 michael 1013 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13600 michael 912 fi
13601    
13602    
13603 michael 967 for ac_header in syslog.h sys/syslog.h
13604     do :
13605     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13606     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13607     eval as_val=\$$as_ac_Header
13608     if test "x$as_val" = x""yes; then :
13609 michael 912 cat >>confdefs.h <<_ACEOF
13610 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13611 michael 912 _ACEOF
13612    
13613     fi
13614    
13615     done
13616    
13617     # Check whether --enable-syslog was given.
13618 michael 967 if test "${enable_syslog+set}" = set; then :
13619 michael 912 enableval=$enable_syslog; syslog="$enableval"
13620     else
13621     syslog="no"
13622     fi
13623    
13624     if test "$enableval" != "no" ; then
13625     for option in $enableval ; do
13626     case "$option" in
13627     users)
13628 michael 967 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13629 michael 912 ;;
13630     oper)
13631 michael 967 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13632 michael 912 ;;
13633     yes) : ;;
13634 michael 967 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13635 michael 912 esac
13636     done
13637    
13638 michael 967 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13639 michael 912
13640     fi
13641    
13642    
13643    
13644     prefix_NONE=
13645     exec_prefix_NONE=
13646     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13647     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13648     eval ac_define_dir="\"$prefix\""
13649     eval ac_define_dir="\"$ac_define_dir\""
13650     PREFIX="$ac_define_dir"
13651    
13652    
13653     cat >>confdefs.h <<_ACEOF
13654     #define PREFIX "$ac_define_dir"
13655     _ACEOF
13656    
13657     test "$prefix_NONE" && prefix=NONE
13658     test "$exec_prefix_NONE" && exec_prefix=NONE
13659    
13660    
13661     prefix_NONE=
13662     exec_prefix_NONE=
13663     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13664     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13665     eval ac_define_dir="\"$sysconfdir\""
13666     eval ac_define_dir="\"$ac_define_dir\""
13667     SYSCONFDIR="$ac_define_dir"
13668    
13669    
13670     cat >>confdefs.h <<_ACEOF
13671     #define SYSCONFDIR "$ac_define_dir"
13672     _ACEOF
13673    
13674     test "$prefix_NONE" && prefix=NONE
13675     test "$exec_prefix_NONE" && exec_prefix=NONE
13676    
13677    
13678     prefix_NONE=
13679     exec_prefix_NONE=
13680     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13681     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13682     eval ac_define_dir="\"$libdir\""
13683     eval ac_define_dir="\"$ac_define_dir\""
13684     LIBDIR="$ac_define_dir"
13685    
13686    
13687     cat >>confdefs.h <<_ACEOF
13688     #define LIBDIR "$ac_define_dir"
13689     _ACEOF
13690    
13691     test "$prefix_NONE" && prefix=NONE
13692     test "$exec_prefix_NONE" && exec_prefix=NONE
13693    
13694    
13695     prefix_NONE=
13696     exec_prefix_NONE=
13697     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13698     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13699     eval ac_define_dir="\"$datadir\""
13700     eval ac_define_dir="\"$ac_define_dir\""
13701     DATADIR="$ac_define_dir"
13702    
13703    
13704     cat >>confdefs.h <<_ACEOF
13705     #define DATADIR "$ac_define_dir"
13706     _ACEOF
13707    
13708     test "$prefix_NONE" && prefix=NONE
13709     test "$exec_prefix_NONE" && exec_prefix=NONE
13710    
13711    
13712     prefix_NONE=
13713     exec_prefix_NONE=
13714     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13715     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13716     eval ac_define_dir="\"$localstatedir\""
13717     eval ac_define_dir="\"$ac_define_dir\""
13718     LOCALSTATEDIR="$ac_define_dir"
13719    
13720    
13721     cat >>confdefs.h <<_ACEOF
13722     #define LOCALSTATEDIR "$ac_define_dir"
13723     _ACEOF
13724    
13725     test "$prefix_NONE" && prefix=NONE
13726     test "$exec_prefix_NONE" && exec_prefix=NONE
13727    
13728 db 941
13729 michael 1009 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13730 michael 912
13731    
13732     cat >confcache <<\_ACEOF
13733     # This file is a shell script that caches the results of configure
13734     # tests run on this system so they can be shared between configure
13735     # scripts and configure runs, see configure's option --config-cache.
13736     # It is not useful on other systems. If it contains results you don't
13737     # want to keep, you may remove or edit it.
13738     #
13739     # config.status only pays attention to the cache file if you give it
13740     # the --recheck option to rerun configure.
13741     #
13742     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13743     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13744     # following values.
13745    
13746     _ACEOF
13747    
13748     # The following way of writing the cache mishandles newlines in values,
13749     # but we know of no workaround that is simple, portable, and efficient.
13750     # So, we kill variables containing newlines.
13751     # Ultrix sh set writes to stderr and can't be redirected directly,
13752     # and sets the high bit in the cache file unless we assign to the vars.
13753     (
13754     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13755     eval ac_val=\$$ac_var
13756     case $ac_val in #(
13757     *${as_nl}*)
13758     case $ac_var in #(
13759 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13760 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13761 michael 912 esac
13762     case $ac_var in #(
13763     _ | IFS | as_nl) ;; #(
13764 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13765 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
13766 michael 912 esac ;;
13767     esac
13768     done
13769    
13770     (set) 2>&1 |
13771     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13772     *${as_nl}ac_space=\ *)
13773 michael 967 # `set' does not quote correctly, so add quotes: double-quote
13774     # substitution turns \\\\ into \\, and sed turns \\ into \.
13775 michael 912 sed -n \
13776     "s/'/'\\\\''/g;
13777     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13778     ;; #(
13779     *)
13780     # `set' quotes correctly as required by POSIX, so do not add quotes.
13781     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13782     ;;
13783     esac |
13784     sort
13785     ) |
13786     sed '
13787     /^ac_cv_env_/b end
13788     t clear
13789     :clear
13790     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13791     t end
13792     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13793     :end' >>confcache
13794     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13795     if test -w "$cache_file"; then
13796     test "x$cache_file" != "x/dev/null" &&
13797 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13798 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13799 michael 912 cat confcache >$cache_file
13800     else
13801 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13802 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13803 michael 912 fi
13804     fi
13805     rm -f confcache
13806    
13807     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13808     # Let make expand exec_prefix.
13809     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13810    
13811     DEFS=-DHAVE_CONFIG_H
13812    
13813     ac_libobjs=
13814     ac_ltlibobjs=
13815     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13816     # 1. Remove the extension, and $U if already installed.
13817     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13818 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13819 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13820     # will be set to the directory where LIBOBJS objects are built.
13821 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13822     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13823 michael 912 done
13824     LIBOBJS=$ac_libobjs
13825    
13826     LTLIBOBJS=$ac_ltlibobjs
13827    
13828    
13829 michael 945 if test -n "$EXEEXT"; then
13830     am__EXEEXT_TRUE=
13831     am__EXEEXT_FALSE='#'
13832     else
13833     am__EXEEXT_TRUE='#'
13834     am__EXEEXT_FALSE=
13835     fi
13836    
13837 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13838 michael 967 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13839     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13840 michael 912 fi
13841     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13842 michael 967 as_fn_error "conditional \"AMDEP\" was never defined.
13843     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13844 michael 912 fi
13845     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13846 michael 967 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13847     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13848 michael 912 fi
13849 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13850 michael 967 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13851     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13852 michael 912 fi
13853 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13854 michael 967 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13855     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13856 michael 945 fi
13857     LT_CONFIG_H=config.h
13858 michael 942
13859 michael 945 _ltdl_libobjs=
13860     _ltdl_ltlibobjs=
13861     if test -n "$_LT_LIBOBJS"; then
13862     # Remove the extension.
13863     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13864     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13865     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13866     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13867     done
13868     fi
13869     ltdl_LIBOBJS=$_ltdl_libobjs
13870    
13871     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13872    
13873    
13874    
13875 michael 1009 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13876     as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13877     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13878     fi
13879 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13880 michael 967 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13881     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13882 michael 912 fi
13883     if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13884 michael 967 as_fn_error "conditional \"EFNET\" was never defined.
13885     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13886 michael 912 fi
13887    
13888     : ${CONFIG_STATUS=./config.status}
13889 db 941 ac_write_fail=0
13890 michael 912 ac_clean_files_save=$ac_clean_files
13891     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13893 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13894 michael 967 as_write_fail=0
13895     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13896 michael 912 #! $SHELL
13897     # Generated by $as_me.
13898     # Run this file to recreate the current configuration.
13899     # Compiler output produced by configure, useful for debugging
13900     # configure, is in config.log if it exists.
13901    
13902     debug=false
13903     ac_cs_recheck=false
13904     ac_cs_silent=false
13905 michael 967
13906 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
13907 michael 967 export SHELL
13908     _ASEOF
13909     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13910     ## -------------------- ##
13911     ## M4sh Initialization. ##
13912     ## -------------------- ##
13913 michael 912
13914     # Be more Bourne compatible
13915     DUALCASE=1; export DUALCASE # for MKS sh
13916 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13917 michael 912 emulate sh
13918     NULLCMD=:
13919 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13920 michael 912 # is contrary to our usage. Disable this feature.
13921     alias -g '${1+"$@"}'='"$@"'
13922     setopt NO_GLOB_SUBST
13923     else
13924 michael 967 case `(set -o) 2>/dev/null` in #(
13925     *posix*) :
13926     set -o posix ;; #(
13927     *) :
13928     ;;
13929 michael 912 esac
13930     fi
13931    
13932    
13933 db 941 as_nl='
13934     '
13935     export as_nl
13936     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13937     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13938     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13939     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13940 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
13941     # but without wasting forks for bash or zsh.
13942     if test -z "$BASH_VERSION$ZSH_VERSION" \
13943     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13944     as_echo='print -r --'
13945     as_echo_n='print -rn --'
13946     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13947 db 941 as_echo='printf %s\n'
13948     as_echo_n='printf %s'
13949     else
13950     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13951     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13952     as_echo_n='/usr/ucb/echo -n'
13953 michael 912 else
13954 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13955     as_echo_n_body='eval
13956     arg=$1;
13957 michael 967 case $arg in #(
13958 db 941 *"$as_nl"*)
13959     expr "X$arg" : "X\\(.*\\)$as_nl";
13960     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13961     esac;
13962     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13963     '
13964     export as_echo_n_body
13965     as_echo_n='sh -c $as_echo_n_body as_echo'
13966 michael 912 fi
13967 db 941 export as_echo_body
13968     as_echo='sh -c $as_echo_body as_echo'
13969 michael 912 fi
13970    
13971 db 941 # The user is always right.
13972     if test "${PATH_SEPARATOR+set}" != set; then
13973     PATH_SEPARATOR=:
13974     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13975     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13976     PATH_SEPARATOR=';'
13977     }
13978     fi
13979    
13980 michael 912
13981     # IFS
13982     # We need space, tab and new line, in precisely that order. Quoting is
13983     # there to prevent editors from complaining about space-tab.
13984     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13985     # splitting by setting IFS to empty value.)
13986     IFS=" "" $as_nl"
13987    
13988     # Find who we are. Look in the path if we contain no directory separator.
13989 michael 967 case $0 in #((
13990 michael 912 *[\\/]* ) as_myself=$0 ;;
13991     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992     for as_dir in $PATH
13993     do
13994     IFS=$as_save_IFS
13995     test -z "$as_dir" && as_dir=.
13996 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13997     done
13998 michael 912 IFS=$as_save_IFS
13999    
14000     ;;
14001     esac
14002     # We did not find ourselves, most probably we were run as `sh COMMAND'
14003     # in which case we are not to be found in the path.
14004     if test "x$as_myself" = x; then
14005     as_myself=$0
14006     fi
14007     if test ! -f "$as_myself"; then
14008 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14009 michael 967 exit 1
14010 michael 912 fi
14011    
14012 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14013     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14014     # suppresses any "Segmentation fault" message there. '((' could
14015     # trigger a bug in pdksh 5.2.14.
14016     for as_var in BASH_ENV ENV MAIL MAILPATH
14017     do eval test x\${$as_var+set} = xset \
14018     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14019 michael 912 done
14020     PS1='$ '
14021     PS2='> '
14022     PS4='+ '
14023    
14024     # NLS nuisances.
14025 db 941 LC_ALL=C
14026     export LC_ALL
14027     LANGUAGE=C
14028     export LANGUAGE
14029 michael 912
14030 michael 967 # CDPATH.
14031     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14032    
14033    
14034     # as_fn_error ERROR [LINENO LOG_FD]
14035     # ---------------------------------
14036     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14037     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14038     # script with status $?, using 1 if that was 0.
14039     as_fn_error ()
14040     {
14041     as_status=$?; test $as_status -eq 0 && as_status=1
14042     if test "$3"; then
14043     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14044     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14045     fi
14046     $as_echo "$as_me: error: $1" >&2
14047     as_fn_exit $as_status
14048     } # as_fn_error
14049    
14050    
14051     # as_fn_set_status STATUS
14052     # -----------------------
14053     # Set $? to STATUS, without forking.
14054     as_fn_set_status ()
14055     {
14056     return $1
14057     } # as_fn_set_status
14058    
14059     # as_fn_exit STATUS
14060     # -----------------
14061     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14062     as_fn_exit ()
14063     {
14064     set +e
14065     as_fn_set_status $1
14066     exit $1
14067     } # as_fn_exit
14068    
14069     # as_fn_unset VAR
14070     # ---------------
14071     # Portably unset VAR.
14072     as_fn_unset ()
14073     {
14074     { eval $1=; unset $1;}
14075     }
14076     as_unset=as_fn_unset
14077     # as_fn_append VAR VALUE
14078     # ----------------------
14079     # Append the text in VALUE to the end of the definition contained in VAR. Take
14080     # advantage of any shell optimizations that allow amortized linear growth over
14081     # repeated appends, instead of the typical quadratic growth present in naive
14082     # implementations.
14083     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14084     eval 'as_fn_append ()
14085     {
14086     eval $1+=\$2
14087     }'
14088     else
14089     as_fn_append ()
14090     {
14091     eval $1=\$$1\$2
14092     }
14093     fi # as_fn_append
14094    
14095     # as_fn_arith ARG...
14096     # ------------------
14097     # Perform arithmetic evaluation on the ARGs, and store the result in the
14098     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14099     # must be portable across $(()) and expr.
14100     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14101     eval 'as_fn_arith ()
14102     {
14103     as_val=$(( $* ))
14104     }'
14105     else
14106     as_fn_arith ()
14107     {
14108     as_val=`expr "$@" || test $? -eq 1`
14109     }
14110     fi # as_fn_arith
14111    
14112    
14113 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14114     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14115     as_expr=expr
14116     else
14117     as_expr=false
14118     fi
14119    
14120     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14121     as_basename=basename
14122     else
14123     as_basename=false
14124     fi
14125    
14126 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14127     as_dirname=dirname
14128     else
14129     as_dirname=false
14130     fi
14131 michael 912
14132     as_me=`$as_basename -- "$0" ||
14133     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14134     X"$0" : 'X\(//\)$' \| \
14135     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14136 db 941 $as_echo X/"$0" |
14137 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14138     s//\1/
14139     q
14140     }
14141     /^X\/\(\/\/\)$/{
14142     s//\1/
14143     q
14144     }
14145     /^X\/\(\/\).*/{
14146     s//\1/
14147     q
14148     }
14149     s/.*/./; q'`
14150    
14151 michael 967 # Avoid depending upon Character Ranges.
14152     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14153     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14154     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14155     as_cr_digits='0123456789'
14156     as_cr_alnum=$as_cr_Letters$as_cr_digits
14157 michael 912
14158     ECHO_C= ECHO_N= ECHO_T=
14159 michael 967 case `echo -n x` in #(((((
14160 michael 912 -n*)
14161 michael 967 case `echo 'xy\c'` in
14162 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14163 michael 967 xy) ECHO_C='\c';;
14164     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14165     ECHO_T=' ';;
14166 michael 912 esac;;
14167     *)
14168     ECHO_N='-n';;
14169     esac
14170    
14171     rm -f conf$$ conf$$.exe conf$$.file
14172     if test -d conf$$.dir; then
14173     rm -f conf$$.dir/conf$$.file
14174     else
14175     rm -f conf$$.dir
14176 db 941 mkdir conf$$.dir 2>/dev/null
14177 michael 912 fi
14178 db 941 if (echo >conf$$.file) 2>/dev/null; then
14179     if ln -s conf$$.file conf$$ 2>/dev/null; then
14180     as_ln_s='ln -s'
14181     # ... but there are two gotchas:
14182     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14183     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14184     # In both cases, we have to default to `cp -p'.
14185     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14186     as_ln_s='cp -p'
14187     elif ln conf$$.file conf$$ 2>/dev/null; then
14188     as_ln_s=ln
14189     else
14190 michael 912 as_ln_s='cp -p'
14191 db 941 fi
14192 michael 912 else
14193     as_ln_s='cp -p'
14194     fi
14195     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14196     rmdir conf$$.dir 2>/dev/null
14197    
14198 michael 967
14199     # as_fn_mkdir_p
14200     # -------------
14201     # Create "$as_dir" as a directory, including parents if necessary.
14202     as_fn_mkdir_p ()
14203     {
14204    
14205     case $as_dir in #(
14206     -*) as_dir=./$as_dir;;
14207     esac
14208     test -d "$as_dir" || eval $as_mkdir_p || {
14209     as_dirs=
14210     while :; do
14211     case $as_dir in #(
14212     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14213     *) as_qdir=$as_dir;;
14214     esac
14215     as_dirs="'$as_qdir' $as_dirs"
14216     as_dir=`$as_dirname -- "$as_dir" ||
14217     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14218     X"$as_dir" : 'X\(//\)[^/]' \| \
14219     X"$as_dir" : 'X\(//\)$' \| \
14220     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14221     $as_echo X"$as_dir" |
14222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14223     s//\1/
14224     q
14225     }
14226     /^X\(\/\/\)[^/].*/{
14227     s//\1/
14228     q
14229     }
14230     /^X\(\/\/\)$/{
14231     s//\1/
14232     q
14233     }
14234     /^X\(\/\).*/{
14235     s//\1/
14236     q
14237     }
14238     s/.*/./; q'`
14239     test -d "$as_dir" && break
14240     done
14241     test -z "$as_dirs" || eval "mkdir $as_dirs"
14242     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14243    
14244    
14245     } # as_fn_mkdir_p
14246 michael 912 if mkdir -p . 2>/dev/null; then
14247 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
14248 michael 912 else
14249     test -d ./-p && rmdir ./-p
14250     as_mkdir_p=false
14251     fi
14252    
14253     if test -x / >/dev/null 2>&1; then
14254     as_test_x='test -x'
14255     else
14256     if ls -dL / >/dev/null 2>&1; then
14257     as_ls_L_option=L
14258     else
14259     as_ls_L_option=
14260     fi
14261     as_test_x='
14262     eval sh -c '\''
14263     if test -d "$1"; then
14264 db 941 test -d "$1/.";
14265 michael 912 else
14266 michael 967 case $1 in #(
14267 db 941 -*)set "./$1";;
14268 michael 912 esac;
14269 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14270 michael 912 ???[sx]*):;;*)false;;esac;fi
14271     '\'' sh
14272     '
14273     fi
14274     as_executable_p=$as_test_x
14275    
14276     # Sed expression to map a string onto a valid CPP name.
14277     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14278    
14279     # Sed expression to map a string onto a valid variable name.
14280     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14281    
14282    
14283     exec 6>&1
14284 michael 967 ## ----------------------------------- ##
14285     ## Main body of $CONFIG_STATUS script. ##
14286     ## ----------------------------------- ##
14287     _ASEOF
14288     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14289 michael 912
14290 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291     # Save the log message, to keep $0 and so on meaningful, and to
14292 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
14293     # values after options handling.
14294     ac_log="
14295     This file was extended by ircd-hybrid $as_me 7.2.4, which was
14296 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
14297 michael 912
14298     CONFIG_FILES = $CONFIG_FILES
14299     CONFIG_HEADERS = $CONFIG_HEADERS
14300     CONFIG_LINKS = $CONFIG_LINKS
14301     CONFIG_COMMANDS = $CONFIG_COMMANDS
14302     $ $0 $@
14303    
14304     on `(hostname || uname -n) 2>/dev/null | sed 1q`
14305     "
14306    
14307     _ACEOF
14308    
14309 michael 942 case $ac_config_files in *"
14310     "*) set x $ac_config_files; shift; ac_config_files=$*;;
14311     esac
14312    
14313     case $ac_config_headers in *"
14314     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14315     esac
14316    
14317    
14318 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319 michael 912 # Files that config.status was made for.
14320 michael 967 config_files="$ac_config_files"
14321     config_headers="$ac_config_headers"
14322     config_commands="$ac_config_commands"
14323 michael 912
14324     _ACEOF
14325    
14326 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327 michael 912 ac_cs_usage="\
14328 michael 967 \`$as_me' instantiates files and other configuration actions
14329     from templates according to the current configuration. Unless the files
14330     and actions are specified as TAGs, all are instantiated by default.
14331 michael 912
14332 michael 967 Usage: $0 [OPTION]... [TAG]...
14333 michael 912
14334     -h, --help print this help, then exit
14335     -V, --version print version number and configuration settings, then exit
14336 michael 1033 --config print configuration, then exit
14337 michael 942 -q, --quiet, --silent
14338     do not print progress messages
14339 michael 912 -d, --debug don't remove temporary files
14340     --recheck update $as_me by reconfiguring in the same conditions
14341 michael 942 --file=FILE[:TEMPLATE]
14342 db 941 instantiate the configuration file FILE
14343 michael 942 --header=FILE[:TEMPLATE]
14344 db 941 instantiate the configuration header FILE
14345 michael 912
14346     Configuration files:
14347     $config_files
14348    
14349     Configuration headers:
14350     $config_headers
14351    
14352     Configuration commands:
14353     $config_commands
14354    
14355 michael 967 Report bugs to the package provider."
14356 michael 912
14357     _ACEOF
14358 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359 michael 1033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14360 michael 912 ac_cs_version="\\
14361     ircd-hybrid config.status 7.2.4
14362 michael 1033 configured by $0, generated by GNU Autoconf 2.65,
14363     with options \\"\$ac_cs_config\\"
14364 michael 912
14365 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
14366 michael 912 This config.status script is free software; the Free Software Foundation
14367     gives unlimited permission to copy, distribute and modify it."
14368    
14369     ac_pwd='$ac_pwd'
14370     srcdir='$srcdir'
14371     INSTALL='$INSTALL'
14372     MKDIR_P='$MKDIR_P'
14373 db 941 AWK='$AWK'
14374     test -n "\$AWK" || AWK=awk
14375 michael 912 _ACEOF
14376    
14377 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378     # The default lists apply if the user does not specify any file.
14379 michael 912 ac_need_defaults=:
14380     while test $# != 0
14381     do
14382     case $1 in
14383     --*=*)
14384     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14385     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14386     ac_shift=:
14387     ;;
14388     *)
14389     ac_option=$1
14390     ac_optarg=$2
14391     ac_shift=shift
14392     ;;
14393     esac
14394    
14395     case $ac_option in
14396     # Handling of the options.
14397     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14398     ac_cs_recheck=: ;;
14399     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14400 db 941 $as_echo "$ac_cs_version"; exit ;;
14401 michael 1033 --config | --confi | --conf | --con | --co | --c )
14402     $as_echo "$ac_cs_config"; exit ;;
14403 michael 912 --debug | --debu | --deb | --de | --d | -d )
14404     debug=: ;;
14405     --file | --fil | --fi | --f )
14406     $ac_shift
14407 db 941 case $ac_optarg in
14408     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14409     esac
14410 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
14411 michael 912 ac_need_defaults=false;;
14412     --header | --heade | --head | --hea )
14413     $ac_shift
14414 db 941 case $ac_optarg in
14415     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14416     esac
14417 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14418 michael 912 ac_need_defaults=false;;
14419     --he | --h)
14420     # Conflict between --help and --header
14421 michael 967 as_fn_error "ambiguous option: \`$1'
14422     Try \`$0 --help' for more information.";;
14423 michael 912 --help | --hel | -h )
14424 db 941 $as_echo "$ac_cs_usage"; exit ;;
14425 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14426     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14427     ac_cs_silent=: ;;
14428    
14429     # This is an error.
14430 michael 967 -*) as_fn_error "unrecognized option: \`$1'
14431     Try \`$0 --help' for more information." ;;
14432 michael 912
14433 michael 967 *) as_fn_append ac_config_targets " $1"
14434 michael 912 ac_need_defaults=false ;;
14435    
14436     esac
14437     shift
14438     done
14439    
14440     ac_configure_extra_args=
14441    
14442     if $ac_cs_silent; then
14443     exec 6>/dev/null
14444     ac_configure_extra_args="$ac_configure_extra_args --silent"
14445     fi
14446    
14447     _ACEOF
14448 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14449 michael 912 if \$ac_cs_recheck; then
14450 db 941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14451     shift
14452     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14453     CONFIG_SHELL='$SHELL'
14454 michael 912 export CONFIG_SHELL
14455 db 941 exec "\$@"
14456 michael 912 fi
14457    
14458     _ACEOF
14459 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 michael 912 exec 5>>config.log
14461     {
14462     echo
14463     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14464     ## Running $as_me. ##
14465     _ASBOX
14466 db 941 $as_echo "$ac_log"
14467 michael 912 } >&5
14468    
14469     _ACEOF
14470 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14471 michael 912 #
14472     # INIT-COMMANDS
14473     #
14474     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14475    
14476 michael 945
14477     # The HP-UX ksh and POSIX shell print the target directory to stdout
14478     # if CDPATH is set.
14479     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14480    
14481     sed_quote_subst='$sed_quote_subst'
14482     double_quote_subst='$double_quote_subst'
14483     delay_variable_subst='$delay_variable_subst'
14484     macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14485     macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14486 michael 977 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14487 michael 945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14488     pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14489     enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14490     host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14491     host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14492     host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14493     build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14494     build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14495     build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14496     SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14497     Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14498     GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14499     EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14500     FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14501     LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14502     NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14503     LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14504     max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14505     ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14506     exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14507     lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14508     lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14509     lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14510     reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14511     reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14512     OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14513     deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14514     file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14515     AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14516     AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14517     STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14518     RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14519     old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14520     old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14521     old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14522     CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14523     CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14524     compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14525     GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14526     lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14527     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14528     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"`'
14529     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"`'
14530     objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14531     SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14532     ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14533     MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14534     lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14535     lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14536     lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14537     lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14538     lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14539     need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14540     DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14541     NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14542     LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14543     OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14544     OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14545     libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14546     shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14547     extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14548     archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14549     enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14550     export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14551     whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14552     compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14553     old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14554     old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14555     archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14556     archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14557     module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14558     module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14559     with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14560     allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14561     no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14562     hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14563     hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14564     hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14565     hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14566     hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14567     hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14568     hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14569     hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14570     inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14571     link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14572     fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14573     always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14574     export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14575     exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14576     include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14577     prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14578     file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14579     variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14580     need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14581     need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14582     version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14583     runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14584     shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14585     shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14586     libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14587     library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14588     soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14589     postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14590     postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14591     finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14592     finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14593     hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14594     sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14595     sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14596     hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14597     enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14598     enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14599     enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14600     old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14601     striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14602    
14603     LTCC='$LTCC'
14604     LTCFLAGS='$LTCFLAGS'
14605     compiler='$compiler_DEFAULT'
14606    
14607     # Quote evaled strings.
14608     for var in SED \
14609     GREP \
14610     EGREP \
14611     FGREP \
14612     LD \
14613     NM \
14614     LN_S \
14615     lt_SP2NL \
14616     lt_NL2SP \
14617     reload_flag \
14618     OBJDUMP \
14619     deplibs_check_method \
14620     file_magic_cmd \
14621     AR \
14622     AR_FLAGS \
14623     STRIP \
14624     RANLIB \
14625     CC \
14626     CFLAGS \
14627     compiler \
14628     lt_cv_sys_global_symbol_pipe \
14629     lt_cv_sys_global_symbol_to_cdecl \
14630     lt_cv_sys_global_symbol_to_c_name_address \
14631     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14632     SHELL \
14633     ECHO \
14634     lt_prog_compiler_no_builtin_flag \
14635     lt_prog_compiler_wl \
14636     lt_prog_compiler_pic \
14637     lt_prog_compiler_static \
14638     lt_cv_prog_compiler_c_o \
14639     need_locks \
14640     DSYMUTIL \
14641     NMEDIT \
14642     LIPO \
14643     OTOOL \
14644     OTOOL64 \
14645     shrext_cmds \
14646     export_dynamic_flag_spec \
14647     whole_archive_flag_spec \
14648     compiler_needs_object \
14649     with_gnu_ld \
14650     allow_undefined_flag \
14651     no_undefined_flag \
14652     hardcode_libdir_flag_spec \
14653     hardcode_libdir_flag_spec_ld \
14654     hardcode_libdir_separator \
14655     fix_srcfile_path \
14656     exclude_expsyms \
14657     include_expsyms \
14658     file_list_spec \
14659     variables_saved_for_relink \
14660     libname_spec \
14661     library_names_spec \
14662     soname_spec \
14663     finish_eval \
14664     old_striplib \
14665     striplib; do
14666     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14667     *[\\\\\\\`\\"\\\$]*)
14668     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14669     ;;
14670     *)
14671     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14672     ;;
14673     esac
14674     done
14675    
14676     # Double-quote double-evaled strings.
14677     for var in reload_cmds \
14678     old_postinstall_cmds \
14679     old_postuninstall_cmds \
14680     old_archive_cmds \
14681     extract_expsyms_cmds \
14682     old_archive_from_new_cmds \
14683     old_archive_from_expsyms_cmds \
14684     archive_cmds \
14685     archive_expsym_cmds \
14686     module_cmds \
14687     module_expsym_cmds \
14688     export_symbols_cmds \
14689     prelink_cmds \
14690     postinstall_cmds \
14691     postuninstall_cmds \
14692     finish_cmds \
14693     sys_lib_search_path_spec \
14694     sys_lib_dlsearch_path_spec; do
14695     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14696     *[\\\\\\\`\\"\\\$]*)
14697     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14698     ;;
14699     *)
14700     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14701     ;;
14702     esac
14703     done
14704    
14705     # Fix-up fallback echo if it was mangled by the above quoting rules.
14706     case \$lt_ECHO in
14707     *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14708     ;;
14709     esac
14710    
14711     ac_aux_dir='$ac_aux_dir'
14712     xsi_shell='$xsi_shell'
14713     lt_shell_append='$lt_shell_append'
14714    
14715     # See if we are running on zsh, and set the options which allow our
14716     # commands through without removal of \ escapes INIT.
14717     if test -n "\${ZSH_VERSION+set}" ; then
14718     setopt NO_GLOB_SUBST
14719     fi
14720    
14721    
14722     PACKAGE='$PACKAGE'
14723     VERSION='$VERSION'
14724     TIMESTAMP='$TIMESTAMP'
14725     RM='$RM'
14726     ofile='$ofile'
14727    
14728    
14729    
14730    
14731 michael 912 _ACEOF
14732    
14733 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14734 michael 912
14735     # Handling of arguments.
14736     for ac_config_target in $ac_config_targets
14737     do
14738     case $ac_config_target in
14739     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14740     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14741 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14742 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14743     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14744     "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14745     "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14746     "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14747     "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14748     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14749     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14750     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14751     "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14752     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14753     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14754     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14755     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14756     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14757     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14758 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14759 michael 912
14760 michael 967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14761 michael 912 esac
14762     done
14763    
14764    
14765     # If the user did not use the arguments to specify the items to instantiate,
14766     # then the envvar interface is used. Set only those that are not.
14767     # We use the long form for the default assignment because of an extremely
14768     # bizarre bug on SunOS 4.1.3.
14769     if $ac_need_defaults; then
14770     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14771     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14772     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14773     fi
14774    
14775     # Have a temporary directory for convenience. Make it in the build tree
14776     # simply because there is no reason against having it here, and in addition,
14777     # creating and moving files from /tmp can sometimes cause problems.
14778     # Hook for its removal unless debugging.
14779     # Note that there is a small window in which the directory will not be cleaned:
14780     # after its creation but before its name has been assigned to `$tmp'.
14781     $debug ||
14782     {
14783     tmp=
14784     trap 'exit_status=$?
14785     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14786     ' 0
14787 michael 967 trap 'as_fn_exit 1' 1 2 13 15
14788 michael 912 }
14789     # Create a (secure) tmp directory for tmp files.
14790    
14791     {
14792     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14793     test -n "$tmp" && test -d "$tmp"
14794     } ||
14795     {
14796     tmp=./conf$$-$RANDOM
14797     (umask 077 && mkdir "$tmp")
14798 michael 967 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14799 michael 912
14800 db 941 # Set up the scripts for CONFIG_FILES section.
14801     # No need to generate them if there are no CONFIG_FILES.
14802     # This happens for instance with `./config.status config.h'.
14803 michael 912 if test -n "$CONFIG_FILES"; then
14804    
14805 db 941
14806 michael 967 ac_cr=`echo X | tr X '\015'`
14807     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14808     # But we know of no other shell where ac_cr would be empty at this
14809     # point, so we can use a bashism as a fallback.
14810     if test "x$ac_cr" = x; then
14811     eval ac_cr=\$\'\\r\'
14812     fi
14813 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14814     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14815 michael 967 ac_cs_awk_cr='\r'
14816 db 941 else
14817     ac_cs_awk_cr=$ac_cr
14818     fi
14819    
14820     echo 'BEGIN {' >"$tmp/subs1.awk" &&
14821 michael 912 _ACEOF
14822    
14823    
14824 db 941 {
14825     echo "cat >conf$$subs.awk <<_ACEOF" &&
14826     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14827     echo "_ACEOF"
14828     } >conf$$subs.sh ||
14829 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14830 db 941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14831 michael 912 ac_delim='%!_!# '
14832     for ac_last_try in false false false false false :; do
14833 db 941 . ./conf$$subs.sh ||
14834 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14835 michael 912
14836 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14837     if test $ac_delim_n = $ac_delim_num; then
14838 michael 912 break
14839     elif $ac_last_try; then
14840 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14841 michael 912 else
14842     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14843     fi
14844     done
14845 db 941 rm -f conf$$subs.sh
14846 michael 912
14847 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14849 michael 912 _ACEOF
14850 db 941 sed -n '
14851     h
14852     s/^/S["/; s/!.*/"]=/
14853     p
14854     g
14855     s/^[^!]*!//
14856     :repl
14857     t repl
14858     s/'"$ac_delim"'$//
14859     t delim
14860     :nl
14861     h
14862 michael 1033 s/\(.\{148\}\)..*/\1/
14863 db 941 t more1
14864     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14865     p
14866     n
14867     b repl
14868     :more1
14869     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14870     p
14871     g
14872     s/.\{148\}//
14873     t nl
14874     :delim
14875     h
14876 michael 1033 s/\(.\{148\}\)..*/\1/
14877 db 941 t more2
14878     s/["\\]/\\&/g; s/^/"/; s/$/"/
14879     p
14880     b
14881     :more2
14882     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14883     p
14884     g
14885     s/.\{148\}//
14886     t delim
14887     ' <conf$$subs.awk | sed '
14888     /^[^""]/{
14889     N
14890     s/\n//
14891     }
14892     ' >>$CONFIG_STATUS || ac_write_fail=1
14893     rm -f conf$$subs.awk
14894     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14895     _ACAWK
14896     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14897     for (key in S) S_is_set[key] = 1
14898     FS = ""
14899 michael 912
14900 db 941 }
14901     {
14902     line = $ 0
14903     nfields = split(line, field, "@")
14904     substed = 0
14905     len = length(field[1])
14906     for (i = 2; i < nfields; i++) {
14907     key = field[i]
14908     keylen = length(key)
14909     if (S_is_set[key]) {
14910     value = S[key]
14911     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14912     len += length(value) + length(field[++i])
14913     substed = 1
14914     } else
14915     len += 1 + keylen
14916     }
14917 michael 912
14918 db 941 print line
14919     }
14920    
14921     _ACAWK
14922 michael 912 _ACEOF
14923 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14925     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14926     else
14927     cat
14928     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14929 michael 967 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14930 michael 912 _ACEOF
14931    
14932     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14933     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14934     # trailing colons and then remove the whole line if VPATH becomes empty
14935     # (actually we leave an empty line to preserve line numbers).
14936     if test "x$srcdir" = x.; then
14937     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14938     s/:*\$(srcdir):*/:/
14939     s/:*\${srcdir}:*/:/
14940     s/:*@srcdir@:*/:/
14941     s/^\([^=]*=[ ]*\):*/\1/
14942     s/:*$//
14943     s/^[^=]*=[ ]*$//
14944     }'
14945     fi
14946    
14947 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948 michael 912 fi # test -n "$CONFIG_FILES"
14949    
14950 db 941 # Set up the scripts for CONFIG_HEADERS section.
14951     # No need to generate them if there are no CONFIG_HEADERS.
14952     # This happens for instance with `./config.status Makefile'.
14953     if test -n "$CONFIG_HEADERS"; then
14954     cat >"$tmp/defines.awk" <<\_ACAWK ||
14955     BEGIN {
14956     _ACEOF
14957 michael 912
14958 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14959     # here-document in config.status, that substitutes the proper values into
14960     # config.h.in to produce config.h.
14961    
14962     # Create a delimiter string that does not exist in confdefs.h, to ease
14963     # handling of long lines.
14964     ac_delim='%!_!# '
14965     for ac_last_try in false false :; do
14966     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14967     if test -z "$ac_t"; then
14968     break
14969     elif $ac_last_try; then
14970 michael 967 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14971 db 941 else
14972     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14973     fi
14974     done
14975    
14976     # For the awk script, D is an array of macro values keyed by name,
14977     # likewise P contains macro parameters if any. Preserve backslash
14978     # newline sequences.
14979    
14980     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14981     sed -n '
14982     s/.\{148\}/&'"$ac_delim"'/g
14983     t rset
14984     :rset
14985     s/^[ ]*#[ ]*define[ ][ ]*/ /
14986     t def
14987     d
14988     :def
14989     s/\\$//
14990     t bsnl
14991     s/["\\]/\\&/g
14992     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14993     D["\1"]=" \3"/p
14994     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14995     d
14996     :bsnl
14997     s/["\\]/\\&/g
14998     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14999     D["\1"]=" \3\\\\\\n"\\/p
15000     t cont
15001     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15002     t cont
15003     d
15004     :cont
15005     n
15006     s/.\{148\}/&'"$ac_delim"'/g
15007     t clear
15008     :clear
15009     s/\\$//
15010     t bsnlc
15011     s/["\\]/\\&/g; s/^/"/; s/$/"/p
15012     d
15013     :bsnlc
15014     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15015     b cont
15016     ' <confdefs.h | sed '
15017     s/'"$ac_delim"'/"\\\
15018     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15019    
15020     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15021     for (key in D) D_is_set[key] = 1
15022     FS = ""
15023     }
15024     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15025     line = \$ 0
15026     split(line, arg, " ")
15027     if (arg[1] == "#") {
15028     defundef = arg[2]
15029     mac1 = arg[3]
15030     } else {
15031     defundef = substr(arg[1], 2)
15032     mac1 = arg[2]
15033     }
15034     split(mac1, mac2, "(") #)
15035     macro = mac2[1]
15036 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15037 db 941 if (D_is_set[macro]) {
15038     # Preserve the white space surrounding the "#".
15039     print prefix "define", macro P[macro] D[macro]
15040     next
15041     } else {
15042     # Replace #undef with comments. This is necessary, for example,
15043     # in the case of _POSIX_SOURCE, which is predefined and required
15044     # on some systems where configure will not decide to define it.
15045     if (defundef == "undef") {
15046 michael 942 print "/*", prefix defundef, macro, "*/"
15047 db 941 next
15048     }
15049     }
15050     }
15051     { print }
15052     _ACAWK
15053     _ACEOF
15054     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055 michael 967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15056 db 941 fi # test -n "$CONFIG_HEADERS"
15057    
15058    
15059     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15060     shift
15061     for ac_tag
15062 michael 912 do
15063     case $ac_tag in
15064     :[FHLC]) ac_mode=$ac_tag; continue;;
15065     esac
15066     case $ac_mode$ac_tag in
15067     :[FHL]*:*);;
15068 michael 967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15069 michael 912 :[FH]-) ac_tag=-:-;;
15070     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15071     esac
15072     ac_save_IFS=$IFS
15073     IFS=:
15074     set x $ac_tag
15075     IFS=$ac_save_IFS
15076     shift
15077     ac_file=$1
15078     shift
15079    
15080     case $ac_mode in
15081     :L) ac_source=$1;;
15082     :[FH])
15083     ac_file_inputs=
15084     for ac_f
15085     do
15086     case $ac_f in
15087     -) ac_f="$tmp/stdin";;
15088     *) # Look for the file first in the build tree, then in the source tree
15089     # (if the path is not absolute). The absolute path cannot be DOS-style,
15090     # because $ac_f cannot contain `:'.
15091     test -f "$ac_f" ||
15092     case $ac_f in
15093     [\\/$]*) false;;
15094     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15095     esac ||
15096 michael 967 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15097 michael 912 esac
15098 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15099 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15100 michael 912 done
15101    
15102     # Let's still pretend it is `configure' which instantiates (i.e., don't
15103     # use $as_me), people would be surprised to read:
15104     # /* config.h. Generated by config.status. */
15105 db 941 configure_input='Generated from '`
15106     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15107     `' by configure.'
15108 michael 912 if test x"$ac_file" != x-; then
15109     configure_input="$ac_file. $configure_input"
15110 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15111 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15112 michael 912 fi
15113 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15114     case $configure_input in #(
15115     *\&* | *\|* | *\\* )
15116     ac_sed_conf_input=`$as_echo "$configure_input" |
15117     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15118     *) ac_sed_conf_input=$configure_input;;
15119     esac
15120 michael 912
15121     case $ac_tag in
15122 db 941 *:-:* | *:-) cat >"$tmp/stdin" \
15123 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15124 michael 912 esac
15125     ;;
15126     esac
15127    
15128     ac_dir=`$as_dirname -- "$ac_file" ||
15129     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15130     X"$ac_file" : 'X\(//\)[^/]' \| \
15131     X"$ac_file" : 'X\(//\)$' \| \
15132     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15133 db 941 $as_echo X"$ac_file" |
15134 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15135     s//\1/
15136     q
15137     }
15138     /^X\(\/\/\)[^/].*/{
15139     s//\1/
15140     q
15141     }
15142     /^X\(\/\/\)$/{
15143     s//\1/
15144     q
15145     }
15146     /^X\(\/\).*/{
15147     s//\1/
15148     q
15149     }
15150     s/.*/./; q'`
15151 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15152 michael 912 ac_builddir=.
15153    
15154     case "$ac_dir" in
15155     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15156     *)
15157 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15158 michael 912 # A ".." for each directory in $ac_dir_suffix.
15159 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15160 michael 912 case $ac_top_builddir_sub in
15161     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15162     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15163     esac ;;
15164     esac
15165     ac_abs_top_builddir=$ac_pwd
15166     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15167     # for backward compatibility:
15168     ac_top_builddir=$ac_top_build_prefix
15169    
15170     case $srcdir in
15171     .) # We are building in place.
15172     ac_srcdir=.
15173     ac_top_srcdir=$ac_top_builddir_sub
15174     ac_abs_top_srcdir=$ac_pwd ;;
15175     [\\/]* | ?:[\\/]* ) # Absolute name.
15176     ac_srcdir=$srcdir$ac_dir_suffix;
15177     ac_top_srcdir=$srcdir
15178     ac_abs_top_srcdir=$srcdir ;;
15179     *) # Relative name.
15180     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15181     ac_top_srcdir=$ac_top_build_prefix$srcdir
15182     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15183     esac
15184     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15185    
15186    
15187     case $ac_mode in
15188     :F)
15189     #
15190     # CONFIG_FILE
15191     #
15192    
15193     case $INSTALL in
15194     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15195     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15196     esac
15197     ac_MKDIR_P=$MKDIR_P
15198     case $MKDIR_P in
15199     [\\/$]* | ?:[\\/]* ) ;;
15200     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15201     esac
15202     _ACEOF
15203    
15204 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 michael 912 # If the template does not know about datarootdir, expand it.
15206     # FIXME: This hack should be removed a few years after 2.60.
15207     ac_datarootdir_hack=; ac_datarootdir_seen=
15208 db 941 ac_sed_dataroot='
15209     /datarootdir/ {
15210 michael 912 p
15211     q
15212     }
15213     /@datadir@/p
15214     /@docdir@/p
15215     /@infodir@/p
15216     /@localedir@/p
15217 michael 967 /@mandir@/p'
15218 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15219 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
15220     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15221 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15222 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15223 michael 912 _ACEOF
15224 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15225 michael 912 ac_datarootdir_hack='
15226     s&@datadir@&$datadir&g
15227     s&@docdir@&$docdir&g
15228     s&@infodir@&$infodir&g
15229     s&@localedir@&$localedir&g
15230     s&@mandir@&$mandir&g
15231 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
15232 michael 912 esac
15233     _ACEOF
15234    
15235     # Neutralize VPATH when `$srcdir' = `.'.
15236     # Shell code in configure.ac might set extrasub.
15237     # FIXME: do we really want to maintain this feature?
15238 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239     ac_sed_extra="$ac_vpsub
15240 michael 912 $extrasub
15241     _ACEOF
15242 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15243 michael 912 :t
15244     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15245 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
15246 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
15247 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15248 michael 912 s&@srcdir@&$ac_srcdir&;t t
15249     s&@abs_srcdir@&$ac_abs_srcdir&;t t
15250     s&@top_srcdir@&$ac_top_srcdir&;t t
15251     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15252     s&@builddir@&$ac_builddir&;t t
15253     s&@abs_builddir@&$ac_abs_builddir&;t t
15254     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15255     s&@INSTALL@&$ac_INSTALL&;t t
15256     s&@MKDIR_P@&$ac_MKDIR_P&;t t
15257     $ac_datarootdir_hack
15258 db 941 "
15259     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15260 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15261 michael 912
15262     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15263     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15264     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15265 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15266 michael 912 which seems to be undefined. Please make sure it is defined." >&5
15267 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15268 michael 912 which seems to be undefined. Please make sure it is defined." >&2;}
15269    
15270     rm -f "$tmp/stdin"
15271     case $ac_file in
15272 db 941 -) cat "$tmp/out" && rm -f "$tmp/out";;
15273     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15274     esac \
15275 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15276 michael 912 ;;
15277     :H)
15278     #
15279     # CONFIG_HEADER
15280     #
15281     if test x"$ac_file" != x-; then
15282 db 941 {
15283     $as_echo "/* $configure_input */" \
15284     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15285     } >"$tmp/config.h" \
15286 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15287 db 941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15288 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15289 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15290 michael 912 else
15291 db 941 rm -f "$ac_file"
15292     mv "$tmp/config.h" "$ac_file" \
15293 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15294 michael 912 fi
15295     else
15296 db 941 $as_echo "/* $configure_input */" \
15297     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15298 michael 967 || as_fn_error "could not create -" "$LINENO" 5
15299 michael 912 fi
15300 db 941 # Compute "$ac_file"'s index in $config_headers.
15301     _am_arg="$ac_file"
15302 michael 912 _am_stamp_count=1
15303     for _am_header in $config_headers :; do
15304     case $_am_header in
15305 db 941 $_am_arg | $_am_arg:* )
15306 michael 912 break ;;
15307     * )
15308     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15309     esac
15310     done
15311 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15312     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15313     X"$_am_arg" : 'X\(//\)[^/]' \| \
15314     X"$_am_arg" : 'X\(//\)$' \| \
15315     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15316     $as_echo X"$_am_arg" |
15317 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15318     s//\1/
15319     q
15320     }
15321     /^X\(\/\/\)[^/].*/{
15322     s//\1/
15323     q
15324     }
15325     /^X\(\/\/\)$/{
15326     s//\1/
15327     q
15328     }
15329     /^X\(\/\).*/{
15330     s//\1/
15331     q
15332     }
15333     s/.*/./; q'`/stamp-h$_am_stamp_count
15334     ;;
15335    
15336 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15337 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
15338 michael 912 ;;
15339     esac
15340    
15341    
15342     case $ac_file$ac_mode in
15343 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15344     # Autoconf 2.62 quotes --file arguments for eval, but not when files
15345     # are listed without --file. Let's play safe and only enable the eval
15346     # if we detect the quoting.
15347     case $CONFIG_FILES in
15348     *\'*) eval set x "$CONFIG_FILES" ;;
15349     *) set x $CONFIG_FILES ;;
15350     esac
15351     shift
15352     for mf
15353     do
15354     # Strip MF so we end up with the name of the file.
15355     mf=`echo "$mf" | sed -e 's/:.*$//'`
15356     # Check whether this is an Automake generated Makefile or not.
15357     # We used to match only the files named `Makefile.in', but
15358     # some people rename them; so instead we look at the file content.
15359     # Grep'ing the first line is not enough: some people post-process
15360     # each Makefile.in and add a new line on top of each file to say so.
15361     # Grep'ing the whole file is not good either: AIX grep has a line
15362     # limit of 2048, but all sed's we know have understand at least 4000.
15363     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15364     dirpart=`$as_dirname -- "$mf" ||
15365 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15366     X"$mf" : 'X\(//\)[^/]' \| \
15367     X"$mf" : 'X\(//\)$' \| \
15368     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15369 db 941 $as_echo X"$mf" |
15370 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15371     s//\1/
15372     q
15373     }
15374     /^X\(\/\/\)[^/].*/{
15375     s//\1/
15376     q
15377     }
15378     /^X\(\/\/\)$/{
15379     s//\1/
15380     q
15381     }
15382     /^X\(\/\).*/{
15383     s//\1/
15384     q
15385     }
15386     s/.*/./; q'`
15387 michael 945 else
15388     continue
15389     fi
15390     # Extract the definition of DEPDIR, am__include, and am__quote
15391     # from the Makefile without running `make'.
15392     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15393     test -z "$DEPDIR" && continue
15394     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15395     test -z "am__include" && continue
15396     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15397     # When using ansi2knr, U may be empty or an underscore; expand it
15398     U=`sed -n 's/^U = //p' < "$mf"`
15399     # Find all dependency output files, they are included files with
15400     # $(DEPDIR) in their names. We invoke sed twice because it is the
15401     # simplest approach to changing $(DEPDIR) to its actual value in the
15402     # expansion.
15403     for file in `sed -n "
15404     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15405     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15406     # Make sure the directory exists.
15407     test -f "$dirpart/$file" && continue
15408     fdir=`$as_dirname -- "$file" ||
15409 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15410     X"$file" : 'X\(//\)[^/]' \| \
15411     X"$file" : 'X\(//\)$' \| \
15412     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15413 db 941 $as_echo X"$file" |
15414 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15415     s//\1/
15416     q
15417     }
15418     /^X\(\/\/\)[^/].*/{
15419     s//\1/
15420     q
15421     }
15422     /^X\(\/\/\)$/{
15423     s//\1/
15424     q
15425     }
15426     /^X\(\/\).*/{
15427     s//\1/
15428     q
15429     }
15430     s/.*/./; q'`
15431 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15432 michael 945 # echo "creating $dirpart/$file"
15433     echo '# dummy' > "$dirpart/$file"
15434     done
15435 michael 912 done
15436 michael 945 }
15437 michael 912 ;;
15438 michael 945 "libtool":C)
15439 michael 912
15440 michael 945 # See if we are running on zsh, and set the options which allow our
15441     # commands through without removal of \ escapes.
15442     if test -n "${ZSH_VERSION+set}" ; then
15443     setopt NO_GLOB_SUBST
15444     fi
15445    
15446     cfgfile="${ofile}T"
15447     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15448     $RM "$cfgfile"
15449    
15450     cat <<_LT_EOF >> "$cfgfile"
15451     #! $SHELL
15452    
15453     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15454     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15455     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15456     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15457     #
15458     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15459     # 2006, 2007, 2008 Free Software Foundation, Inc.
15460     # Written by Gordon Matzigkeit, 1996
15461     #
15462     # This file is part of GNU Libtool.
15463     #
15464     # GNU Libtool is free software; you can redistribute it and/or
15465     # modify it under the terms of the GNU General Public License as
15466     # published by the Free Software Foundation; either version 2 of
15467     # the License, or (at your option) any later version.
15468     #
15469     # As a special exception to the GNU General Public License,
15470     # if you distribute this file as part of a program or library that
15471     # is built using GNU Libtool, you may include this file under the
15472     # same distribution terms that you use for the rest of that program.
15473     #
15474     # GNU Libtool is distributed in the hope that it will be useful,
15475     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15476     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15477     # GNU General Public License for more details.
15478     #
15479     # You should have received a copy of the GNU General Public License
15480     # along with GNU Libtool; see the file COPYING. If not, a copy
15481     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15482     # obtained by writing to the Free Software Foundation, Inc.,
15483     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15484    
15485    
15486     # The names of the tagged configurations supported by this script.
15487     available_tags=""
15488    
15489     # ### BEGIN LIBTOOL CONFIG
15490    
15491     # Which release of libtool.m4 was used?
15492     macro_version=$macro_version
15493     macro_revision=$macro_revision
15494    
15495 michael 977 # Whether or not to build static libraries.
15496     build_old_libs=$enable_static
15497    
15498 michael 945 # Whether or not to build shared libraries.
15499     build_libtool_libs=$enable_shared
15500    
15501     # What type of objects to build.
15502     pic_mode=$pic_mode
15503    
15504     # Whether or not to optimize for fast installation.
15505     fast_install=$enable_fast_install
15506    
15507     # The host system.
15508     host_alias=$host_alias
15509     host=$host
15510     host_os=$host_os
15511    
15512     # The build system.
15513     build_alias=$build_alias
15514     build=$build
15515     build_os=$build_os
15516    
15517     # A sed program that does not truncate output.
15518     SED=$lt_SED
15519    
15520     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15521     Xsed="\$SED -e 1s/^X//"
15522    
15523     # A grep program that handles long lines.
15524     GREP=$lt_GREP
15525    
15526     # An ERE matcher.
15527     EGREP=$lt_EGREP
15528    
15529     # A literal string matcher.
15530     FGREP=$lt_FGREP
15531    
15532     # A BSD- or MS-compatible name lister.
15533     NM=$lt_NM
15534    
15535     # Whether we need soft or hard links.
15536     LN_S=$lt_LN_S
15537    
15538     # What is the maximum length of a command?
15539     max_cmd_len=$max_cmd_len
15540    
15541     # Object file suffix (normally "o").
15542     objext=$ac_objext
15543    
15544     # Executable file suffix (normally "").
15545     exeext=$exeext
15546    
15547     # whether the shell understands "unset".
15548     lt_unset=$lt_unset
15549    
15550     # turn spaces into newlines.
15551     SP2NL=$lt_lt_SP2NL
15552    
15553     # turn newlines into spaces.
15554     NL2SP=$lt_lt_NL2SP
15555    
15556     # How to create reloadable object files.
15557     reload_flag=$lt_reload_flag
15558     reload_cmds=$lt_reload_cmds
15559    
15560     # An object symbol dumper.
15561     OBJDUMP=$lt_OBJDUMP
15562    
15563     # Method to check whether dependent libraries are shared objects.
15564     deplibs_check_method=$lt_deplibs_check_method
15565    
15566     # Command to use when deplibs_check_method == "file_magic".
15567     file_magic_cmd=$lt_file_magic_cmd
15568    
15569     # The archiver.
15570     AR=$lt_AR
15571     AR_FLAGS=$lt_AR_FLAGS
15572    
15573     # A symbol stripping program.
15574     STRIP=$lt_STRIP
15575    
15576     # Commands used to install an old-style archive.
15577     RANLIB=$lt_RANLIB
15578     old_postinstall_cmds=$lt_old_postinstall_cmds
15579     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15580    
15581     # A C compiler.
15582     LTCC=$lt_CC
15583    
15584     # LTCC compiler flags.
15585     LTCFLAGS=$lt_CFLAGS
15586    
15587     # Take the output of nm and produce a listing of raw symbols and C names.
15588     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15589    
15590     # Transform the output of nm in a proper C declaration.
15591     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15592    
15593     # Transform the output of nm in a C name address pair.
15594     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15595    
15596     # Transform the output of nm in a C name address pair when lib prefix is needed.
15597     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15598    
15599     # The name of the directory that contains temporary libtool files.
15600     objdir=$objdir
15601    
15602     # Shell to use when invoking shell scripts.
15603     SHELL=$lt_SHELL
15604    
15605     # An echo program that does not interpret backslashes.
15606     ECHO=$lt_ECHO
15607    
15608     # Used to examine libraries when file_magic_cmd begins with "file".
15609     MAGIC_CMD=$MAGIC_CMD
15610    
15611     # Must we lock files when doing compilation?
15612     need_locks=$lt_need_locks
15613    
15614     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15615     DSYMUTIL=$lt_DSYMUTIL
15616    
15617     # Tool to change global to local symbols on Mac OS X.
15618     NMEDIT=$lt_NMEDIT
15619    
15620     # Tool to manipulate fat objects and archives on Mac OS X.
15621     LIPO=$lt_LIPO
15622    
15623     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15624     OTOOL=$lt_OTOOL
15625    
15626     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15627     OTOOL64=$lt_OTOOL64
15628    
15629     # Old archive suffix (normally "a").
15630     libext=$libext
15631    
15632     # Shared library suffix (normally ".so").
15633     shrext_cmds=$lt_shrext_cmds
15634    
15635     # The commands to extract the exported symbol list from a shared archive.
15636     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15637    
15638     # Variables whose values should be saved in libtool wrapper scripts and
15639     # restored at link time.
15640     variables_saved_for_relink=$lt_variables_saved_for_relink
15641    
15642     # Do we need the "lib" prefix for modules?
15643     need_lib_prefix=$need_lib_prefix
15644    
15645     # Do we need a version for libraries?
15646     need_version=$need_version
15647    
15648     # Library versioning type.
15649     version_type=$version_type
15650    
15651     # Shared library runtime path variable.
15652     runpath_var=$runpath_var
15653    
15654     # Shared library path variable.
15655     shlibpath_var=$shlibpath_var
15656    
15657     # Is shlibpath searched before the hard-coded library search path?
15658     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15659    
15660     # Format of library name prefix.
15661     libname_spec=$lt_libname_spec
15662    
15663     # List of archive names. First name is the real one, the rest are links.
15664     # The last name is the one that the linker finds with -lNAME
15665     library_names_spec=$lt_library_names_spec
15666    
15667     # The coded name of the library, if different from the real name.
15668     soname_spec=$lt_soname_spec
15669    
15670     # Command to use after installation of a shared archive.
15671     postinstall_cmds=$lt_postinstall_cmds
15672    
15673     # Command to use after uninstallation of a shared archive.
15674     postuninstall_cmds=$lt_postuninstall_cmds
15675    
15676     # Commands used to finish a libtool library installation in a directory.
15677     finish_cmds=$lt_finish_cmds
15678    
15679     # As "finish_cmds", except a single script fragment to be evaled but
15680     # not shown.
15681     finish_eval=$lt_finish_eval
15682    
15683     # Whether we should hardcode library paths into libraries.
15684     hardcode_into_libs=$hardcode_into_libs
15685    
15686     # Compile-time system search path for libraries.
15687     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15688    
15689     # Run-time system search path for libraries.
15690     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15691    
15692     # Whether dlopen is supported.
15693     dlopen_support=$enable_dlopen
15694    
15695     # Whether dlopen of programs is supported.
15696     dlopen_self=$enable_dlopen_self
15697    
15698     # Whether dlopen of statically linked programs is supported.
15699     dlopen_self_static=$enable_dlopen_self_static
15700    
15701     # Commands to strip libraries.
15702     old_striplib=$lt_old_striplib
15703     striplib=$lt_striplib
15704    
15705    
15706     # The linker used to build libraries.
15707     LD=$lt_LD
15708    
15709     # Commands used to build an old-style archive.
15710     old_archive_cmds=$lt_old_archive_cmds
15711    
15712     # A language specific compiler.
15713     CC=$lt_compiler
15714    
15715     # Is the compiler the GNU compiler?
15716     with_gcc=$GCC
15717    
15718     # Compiler flag to turn off builtin functions.
15719     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15720    
15721     # How to pass a linker flag through the compiler.
15722     wl=$lt_lt_prog_compiler_wl
15723    
15724     # Additional compiler flags for building library objects.
15725     pic_flag=$lt_lt_prog_compiler_pic
15726    
15727     # Compiler flag to prevent dynamic linking.
15728     link_static_flag=$lt_lt_prog_compiler_static
15729    
15730     # Does compiler simultaneously support -c and -o options?
15731     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15732    
15733     # Whether or not to add -lc for building shared libraries.
15734     build_libtool_need_lc=$archive_cmds_need_lc
15735    
15736     # Whether or not to disallow shared libs when runtime libs are static.
15737     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15738    
15739     # Compiler flag to allow reflexive dlopens.
15740     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15741    
15742     # Compiler flag to generate shared objects directly from archives.
15743     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15744    
15745     # Whether the compiler copes with passing no objects directly.
15746     compiler_needs_object=$lt_compiler_needs_object
15747    
15748     # Create an old-style archive from a shared archive.
15749     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15750    
15751     # Create a temporary old-style archive to link instead of a shared archive.
15752     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15753    
15754     # Commands used to build a shared archive.
15755     archive_cmds=$lt_archive_cmds
15756     archive_expsym_cmds=$lt_archive_expsym_cmds
15757    
15758     # Commands used to build a loadable module if different from building
15759     # a shared archive.
15760     module_cmds=$lt_module_cmds
15761     module_expsym_cmds=$lt_module_expsym_cmds
15762    
15763     # Whether we are building with GNU ld or not.
15764     with_gnu_ld=$lt_with_gnu_ld
15765    
15766     # Flag that allows shared libraries with undefined symbols to be built.
15767     allow_undefined_flag=$lt_allow_undefined_flag
15768    
15769     # Flag that enforces no undefined symbols.
15770     no_undefined_flag=$lt_no_undefined_flag
15771    
15772     # Flag to hardcode \$libdir into a binary during linking.
15773     # This must work even if \$libdir does not exist
15774     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15775    
15776     # If ld is used when linking, flag to hardcode \$libdir into a binary
15777     # during linking. This must work even if \$libdir does not exist.
15778     hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15779    
15780     # Whether we need a single "-rpath" flag with a separated argument.
15781     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15782    
15783     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15784     # DIR into the resulting binary.
15785     hardcode_direct=$hardcode_direct
15786    
15787     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15788     # DIR into the resulting binary and the resulting library dependency is
15789     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15790     # library is relocated.
15791     hardcode_direct_absolute=$hardcode_direct_absolute
15792    
15793     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15794     # into the resulting binary.
15795     hardcode_minus_L=$hardcode_minus_L
15796    
15797     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15798     # into the resulting binary.
15799     hardcode_shlibpath_var=$hardcode_shlibpath_var
15800    
15801     # Set to "yes" if building a shared library automatically hardcodes DIR
15802     # into the library and all subsequent libraries and executables linked
15803     # against it.
15804     hardcode_automatic=$hardcode_automatic
15805    
15806     # Set to yes if linker adds runtime paths of dependent libraries
15807     # to runtime path list.
15808     inherit_rpath=$inherit_rpath
15809    
15810     # Whether libtool must link a program against all its dependency libraries.
15811     link_all_deplibs=$link_all_deplibs
15812    
15813     # Fix the shell variable \$srcfile for the compiler.
15814     fix_srcfile_path=$lt_fix_srcfile_path
15815    
15816     # Set to "yes" if exported symbols are required.
15817     always_export_symbols=$always_export_symbols
15818    
15819     # The commands to list exported symbols.
15820     export_symbols_cmds=$lt_export_symbols_cmds
15821    
15822     # Symbols that should not be listed in the preloaded symbols.
15823     exclude_expsyms=$lt_exclude_expsyms
15824    
15825     # Symbols that must always be exported.
15826     include_expsyms=$lt_include_expsyms
15827    
15828     # Commands necessary for linking programs (against libraries) with templates.
15829     prelink_cmds=$lt_prelink_cmds
15830    
15831     # Specify filename containing input files.
15832     file_list_spec=$lt_file_list_spec
15833    
15834     # How to hardcode a shared library path into an executable.
15835     hardcode_action=$hardcode_action
15836    
15837     # ### END LIBTOOL CONFIG
15838    
15839     _LT_EOF
15840    
15841     case $host_os in
15842     aix3*)
15843     cat <<\_LT_EOF >> "$cfgfile"
15844     # AIX sometimes has problems with the GCC collect2 program. For some
15845     # reason, if we set the COLLECT_NAMES environment variable, the problems
15846     # vanish in a puff of smoke.
15847     if test "X${COLLECT_NAMES+set}" != Xset; then
15848     COLLECT_NAMES=
15849     export COLLECT_NAMES
15850     fi
15851     _LT_EOF
15852     ;;
15853 michael 912 esac
15854 michael 945
15855    
15856     ltmain="$ac_aux_dir/ltmain.sh"
15857    
15858    
15859     # We use sed instead of cat because bash on DJGPP gets confused if
15860     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15861     # text mode, it properly converts lines to CR/LF. This bash problem
15862     # is reportedly fixed, but why not run on old versions too?
15863     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15864     || (rm -f "$cfgfile"; exit 1)
15865    
15866     case $xsi_shell in
15867     yes)
15868     cat << \_LT_EOF >> "$cfgfile"
15869    
15870     # func_dirname file append nondir_replacement
15871     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15872     # otherwise set result to NONDIR_REPLACEMENT.
15873     func_dirname ()
15874     {
15875     case ${1} in
15876     */*) func_dirname_result="${1%/*}${2}" ;;
15877     * ) func_dirname_result="${3}" ;;
15878     esac
15879     }
15880    
15881     # func_basename file
15882     func_basename ()
15883     {
15884     func_basename_result="${1##*/}"
15885     }
15886    
15887     # func_dirname_and_basename file append nondir_replacement
15888     # perform func_basename and func_dirname in a single function
15889     # call:
15890     # dirname: Compute the dirname of FILE. If nonempty,
15891     # add APPEND to the result, otherwise set result
15892     # to NONDIR_REPLACEMENT.
15893     # value returned in "$func_dirname_result"
15894     # basename: Compute filename of FILE.
15895     # value retuned in "$func_basename_result"
15896     # Implementation must be kept synchronized with func_dirname
15897     # and func_basename. For efficiency, we do not delegate to
15898     # those functions but instead duplicate the functionality here.
15899     func_dirname_and_basename ()
15900     {
15901     case ${1} in
15902     */*) func_dirname_result="${1%/*}${2}" ;;
15903     * ) func_dirname_result="${3}" ;;
15904     esac
15905     func_basename_result="${1##*/}"
15906     }
15907    
15908     # func_stripname prefix suffix name
15909     # strip PREFIX and SUFFIX off of NAME.
15910     # PREFIX and SUFFIX must not contain globbing or regex special
15911     # characters, hashes, percent signs, but SUFFIX may contain a leading
15912     # dot (in which case that matches only a dot).
15913     func_stripname ()
15914     {
15915     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15916     # positional parameters, so assign one to ordinary parameter first.
15917     func_stripname_result=${3}
15918     func_stripname_result=${func_stripname_result#"${1}"}
15919     func_stripname_result=${func_stripname_result%"${2}"}
15920     }
15921    
15922     # func_opt_split
15923     func_opt_split ()
15924     {
15925     func_opt_split_opt=${1%%=*}
15926     func_opt_split_arg=${1#*=}
15927     }
15928    
15929     # func_lo2o object
15930     func_lo2o ()
15931     {
15932     case ${1} in
15933     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15934     *) func_lo2o_result=${1} ;;
15935     esac
15936     }
15937    
15938     # func_xform libobj-or-source
15939     func_xform ()
15940     {
15941     func_xform_result=${1%.*}.lo
15942     }
15943    
15944     # func_arith arithmetic-term...
15945     func_arith ()
15946     {
15947     func_arith_result=$(( $* ))
15948     }
15949    
15950     # func_len string
15951     # STRING may not start with a hyphen.
15952     func_len ()
15953     {
15954     func_len_result=${#1}
15955     }
15956    
15957     _LT_EOF
15958     ;;
15959     *) # Bourne compatible functions.
15960     cat << \_LT_EOF >> "$cfgfile"
15961    
15962     # func_dirname file append nondir_replacement
15963     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15964     # otherwise set result to NONDIR_REPLACEMENT.
15965     func_dirname ()
15966     {
15967     # Extract subdirectory from the argument.
15968     func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15969     if test "X$func_dirname_result" = "X${1}"; then
15970     func_dirname_result="${3}"
15971     else
15972     func_dirname_result="$func_dirname_result${2}"
15973     fi
15974     }
15975    
15976     # func_basename file
15977     func_basename ()
15978     {
15979     func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15980     }
15981    
15982    
15983     # func_stripname prefix suffix name
15984     # strip PREFIX and SUFFIX off of NAME.
15985     # PREFIX and SUFFIX must not contain globbing or regex special
15986     # characters, hashes, percent signs, but SUFFIX may contain a leading
15987     # dot (in which case that matches only a dot).
15988     # func_strip_suffix prefix name
15989     func_stripname ()
15990     {
15991     case ${2} in
15992     .*) func_stripname_result=`$ECHO "X${3}" \
15993     | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15994     *) func_stripname_result=`$ECHO "X${3}" \
15995     | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15996     esac
15997     }
15998    
15999     # sed scripts:
16000     my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16001     my_sed_long_arg='1s/^-[^=]*=//'
16002    
16003     # func_opt_split
16004     func_opt_split ()
16005     {
16006     func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16007     func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16008     }
16009    
16010     # func_lo2o object
16011     func_lo2o ()
16012     {
16013     func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16014     }
16015    
16016     # func_xform libobj-or-source
16017     func_xform ()
16018     {
16019     func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16020     }
16021    
16022     # func_arith arithmetic-term...
16023     func_arith ()
16024     {
16025     func_arith_result=`expr "$@"`
16026     }
16027    
16028     # func_len string
16029     # STRING may not start with a hyphen.
16030     func_len ()
16031     {
16032     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16033     }
16034    
16035     _LT_EOF
16036     esac
16037    
16038     case $lt_shell_append in
16039     yes)
16040     cat << \_LT_EOF >> "$cfgfile"
16041    
16042     # func_append var value
16043     # Append VALUE to the end of shell variable VAR.
16044     func_append ()
16045     {
16046     eval "$1+=\$2"
16047     }
16048     _LT_EOF
16049     ;;
16050     *)
16051     cat << \_LT_EOF >> "$cfgfile"
16052    
16053     # func_append var value
16054     # Append VALUE to the end of shell variable VAR.
16055     func_append ()
16056     {
16057     eval "$1=\$$1\$2"
16058     }
16059    
16060     _LT_EOF
16061     ;;
16062     esac
16063    
16064    
16065     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16066     || (rm -f "$cfgfile"; exit 1)
16067    
16068     mv -f "$cfgfile" "$ofile" ||
16069     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16070     chmod +x "$ofile"
16071    
16072     ;;
16073    
16074     esac
16075 michael 912 done # for ac_tag
16076    
16077    
16078 michael 967 as_fn_exit 0
16079 michael 912 _ACEOF
16080     ac_clean_files=$ac_clean_files_save
16081    
16082 db 941 test $ac_write_fail = 0 ||
16083 michael 967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16084 michael 912
16085 db 941
16086 michael 912 # configure is writing to config.log, and then calls config.status.
16087     # config.status does its own redirection, appending to config.log.
16088     # Unfortunately, on DOS this fails, as config.log is still kept open
16089     # by configure, so config.status won't be able to write to it; its
16090     # output is simply discarded. So we exec the FD to /dev/null,
16091     # effectively closing config.log, so it can be properly (re)opened and
16092     # appended to by config.status. When coming back to configure, we
16093     # need to make the FD available again.
16094     if test "$no_create" != yes; then
16095     ac_cs_success=:
16096     ac_config_status_args=
16097     test "$silent" = yes &&
16098     ac_config_status_args="$ac_config_status_args --quiet"
16099     exec 5>/dev/null
16100     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16101     exec 5>>config.log
16102     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16103     # would make configure fail if this is the last instruction.
16104 michael 967 $ac_cs_success || as_fn_exit $?
16105 michael 912 fi
16106    
16107     #
16108     # CONFIG_SUBDIRS section.
16109     #
16110     if test "$no_recursion" != yes; then
16111    
16112 db 941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16113     # so they do not pile up.
16114 michael 912 ac_sub_configure_args=
16115     ac_prev=
16116     eval "set x $ac_configure_args"
16117     shift
16118     for ac_arg
16119     do
16120     if test -n "$ac_prev"; then
16121     ac_prev=
16122     continue
16123     fi
16124     case $ac_arg in
16125     -cache-file | --cache-file | --cache-fil | --cache-fi \
16126     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16127     ac_prev=cache_file ;;
16128     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16129     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16130     | --c=*)
16131     ;;
16132     --config-cache | -C)
16133     ;;
16134     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16135     ac_prev=srcdir ;;
16136     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16137     ;;
16138     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16139     ac_prev=prefix ;;
16140     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16141     ;;
16142 db 941 --disable-option-checking)
16143     ;;
16144 michael 912 *)
16145     case $ac_arg in
16146 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16147 michael 912 esac
16148 michael 967 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16149 michael 912 esac
16150     done
16151    
16152     # Always prepend --prefix to ensure using the same prefix
16153     # in subdir configurations.
16154     ac_arg="--prefix=$prefix"
16155     case $ac_arg in
16156 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16157 michael 912 esac
16158     ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16159    
16160     # Pass --silent
16161     if test "$silent" = yes; then
16162     ac_sub_configure_args="--silent $ac_sub_configure_args"
16163     fi
16164    
16165 db 941 # Always prepend --disable-option-checking to silence warnings, since
16166     # different subdirs can have different --enable and --with options.
16167     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16168    
16169 michael 912 ac_popdir=`pwd`
16170     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16171    
16172     # Do not complain, so a configure script can configure whichever
16173     # parts of a large source tree are present.
16174     test -d "$srcdir/$ac_dir" || continue
16175    
16176     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16177 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16178 db 941 $as_echo "$ac_msg" >&6
16179 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
16180 michael 912 ac_builddir=.
16181    
16182     case "$ac_dir" in
16183     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16184     *)
16185 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16186 michael 912 # A ".." for each directory in $ac_dir_suffix.
16187 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16188 michael 912 case $ac_top_builddir_sub in
16189     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16190     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16191     esac ;;
16192     esac
16193     ac_abs_top_builddir=$ac_pwd
16194     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16195     # for backward compatibility:
16196     ac_top_builddir=$ac_top_build_prefix
16197    
16198     case $srcdir in
16199     .) # We are building in place.
16200     ac_srcdir=.
16201     ac_top_srcdir=$ac_top_builddir_sub
16202     ac_abs_top_srcdir=$ac_pwd ;;
16203     [\\/]* | ?:[\\/]* ) # Absolute name.
16204     ac_srcdir=$srcdir$ac_dir_suffix;
16205     ac_top_srcdir=$srcdir
16206     ac_abs_top_srcdir=$srcdir ;;
16207     *) # Relative name.
16208     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16209     ac_top_srcdir=$ac_top_build_prefix$srcdir
16210     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16211     esac
16212     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16213    
16214    
16215     cd "$ac_dir"
16216    
16217     # Check for guested configure; otherwise get Cygnus style configure.
16218     if test -f "$ac_srcdir/configure.gnu"; then
16219     ac_sub_configure=$ac_srcdir/configure.gnu
16220     elif test -f "$ac_srcdir/configure"; then
16221     ac_sub_configure=$ac_srcdir/configure
16222     elif test -f "$ac_srcdir/configure.in"; then
16223     # This should be Cygnus configure.
16224     ac_sub_configure=$ac_aux_dir/configure
16225     else
16226 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16227 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16228 michael 912 ac_sub_configure=
16229     fi
16230    
16231     # The recursion is here.
16232     if test -n "$ac_sub_configure"; then
16233     # Make the cache file name correct relative to the subdirectory.
16234     case $cache_file in
16235     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16236     *) # Relative name.
16237     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16238     esac
16239    
16240 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16241 db 941 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16242 michael 912 # The eval makes quoting arguments work.
16243     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16244     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16245 michael 967 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16246 michael 912 fi
16247    
16248     cd "$ac_popdir"
16249     done
16250     fi
16251 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16252 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16253 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16254 db 941 fi
16255 michael 912

Properties

Name Value
svn:executable *