ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1504
Committed: Thu Aug 16 18:03:00 2012 UTC (13 years ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 490770 byte(s)
Log Message:
- automake 1.12.3

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1504 # From configure.ac Id: configure.ac 1494 2012-08-03 16:22:42Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 1494 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8beta3.
5 michael 912 #
6 michael 1039 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 1033 #
8 michael 1039 #
9 michael 1373 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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 1106 as_myself=
94 michael 967 case $0 in #((
95 michael 912 *[\\/]* ) as_myself=$0 ;;
96     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97     for as_dir in $PATH
98     do
99     IFS=$as_save_IFS
100     test -z "$as_dir" && as_dir=.
101 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102     done
103 michael 912 IFS=$as_save_IFS
104    
105     ;;
106     esac
107     # We did not find ourselves, most probably we were run as `sh COMMAND'
108     # in which case we are not to be found in the path.
109     if test "x$as_myself" = x; then
110     as_myself=$0
111     fi
112     if test ! -f "$as_myself"; then
113 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 michael 967 exit 1
115 michael 912 fi
116    
117 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
118     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119     # suppresses any "Segmentation fault" message there. '((' could
120     # trigger a bug in pdksh 5.2.14.
121     for as_var in BASH_ENV ENV MAIL MAILPATH
122     do eval test x\${$as_var+set} = xset \
123     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 michael 912 done
125     PS1='$ '
126     PS2='> '
127     PS4='+ '
128    
129     # NLS nuisances.
130 db 941 LC_ALL=C
131     export LC_ALL
132     LANGUAGE=C
133     export LANGUAGE
134 michael 912
135     # CDPATH.
136 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 michael 912
138 michael 1373 # Use a proper internal environment variable to ensure we don't fall
139     # into an infinite loop, continuously re-executing ourselves.
140     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143     # neutralization value for shells without unset; and this also
144     # works around shells that cannot unset nonexistent variables.
145     # Preserve -v and -x to the replacement shell.
146     BASH_ENV=/dev/null
147     ENV=/dev/null
148     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149     case $- in # ((((
150     *v*x* | *x*v* ) as_opts=-vx ;;
151     *v* ) as_opts=-v ;;
152     *x* ) as_opts=-x ;;
153     * ) as_opts= ;;
154     esac
155     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156     # Admittedly, this is quite paranoid, since all the known shells bail
157     # out after a failed `exec'.
158     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159     as_fn_exit 255
160     fi
161     # We don't want this to propagate to other subprocesses.
162     { _as_can_reexec=; unset _as_can_reexec;}
163 michael 912 if test "x$CONFIG_SHELL" = x; then
164 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165     emulate sh
166     NULLCMD=:
167     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168     # is contrary to our usage. Disable this feature.
169     alias -g '\${1+\"\$@\"}'='\"\$@\"'
170     setopt NO_GLOB_SUBST
171 michael 912 else
172 michael 967 case \`(set -o) 2>/dev/null\` in #(
173     *posix*) :
174     set -o posix ;; #(
175     *) :
176     ;;
177     esac
178 michael 912 fi
179 michael 967 "
180     as_required="as_fn_return () { (exit \$1); }
181     as_fn_success () { as_fn_return 0; }
182     as_fn_failure () { as_fn_return 1; }
183     as_fn_ret_success () { return 0; }
184     as_fn_ret_failure () { return 1; }
185 michael 912
186     exitcode=0
187 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 michael 912
193     else
194 michael 967 exitcode=1; echo positional parameters were not saved.
195 michael 912 fi
196 michael 1373 test x\$exitcode = x0 || exit 1
197     test -x / || exit 1"
198 michael 967 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 michael 1094
203     test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 michael 967 test \$(( 1 + 1 )) = 2 || exit 1"
211     if (eval "$as_required") 2>/dev/null; then :
212     as_have_required=yes
213 michael 912 else
214 michael 967 as_have_required=no
215 michael 912 fi
216 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 michael 912
218     else
219 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220     as_found=false
221 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222     do
223     IFS=$as_save_IFS
224     test -z "$as_dir" && as_dir=.
225 michael 967 as_found=:
226     case $as_dir in #(
227 michael 912 /*)
228     for as_base in sh bash ksh sh5; do
229 michael 967 # Try only shells that exist, to save several forks.
230     as_shell=$as_dir/$as_base
231     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233     CONFIG_SHELL=$as_shell as_have_required=yes
234     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235     break 2
236     fi
237     fi
238 michael 912 done;;
239     esac
240 michael 967 as_found=false
241 michael 912 done
242 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244     CONFIG_SHELL=$SHELL as_have_required=yes
245     fi; }
246 michael 912 IFS=$as_save_IFS
247    
248    
249 michael 967 if test "x$CONFIG_SHELL" != x; then :
250 michael 1373 export CONFIG_SHELL
251     # We cannot yet assume a decent shell, so we have to provide a
252     # neutralization value for shells without unset; and this also
253     # works around shells that cannot unset nonexistent variables.
254     # Preserve -v and -x to the replacement shell.
255     BASH_ENV=/dev/null
256     ENV=/dev/null
257     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258     case $- in # ((((
259     *v*x* | *x*v* ) as_opts=-vx ;;
260     *v* ) as_opts=-v ;;
261     *x* ) as_opts=-x ;;
262     * ) as_opts= ;;
263     esac
264     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265     # Admittedly, this is quite paranoid, since all the known shells bail
266     # out after a failed `exec'.
267     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268     exit 255
269 michael 912 fi
270    
271 michael 967 if test x$as_have_required = xno; then :
272     $as_echo "$0: This script requires a shell more modern than all"
273     $as_echo "$0: the shells that I found on your system."
274     if test x${ZSH_VERSION+set} = xset ; then
275     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277     else
278 michael 1039 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279     $0: bugs@ircd-hybrid.org about your system, including any
280     $0: error possibly output before this message. Then install
281     $0: a modern shell, or manually run the script under such a
282     $0: shell if you do have one."
283 michael 967 fi
284     exit 1
285 michael 912 fi
286     fi
287     fi
288 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
289     export SHELL
290     # Unset more variables known to interfere with behavior of common tools.
291     CLICOLOR_FORCE= GREP_OPTIONS=
292     unset CLICOLOR_FORCE GREP_OPTIONS
293 michael 912
294 michael 967 ## --------------------- ##
295     ## M4sh Shell Functions. ##
296     ## --------------------- ##
297     # as_fn_unset VAR
298     # ---------------
299     # Portably unset VAR.
300     as_fn_unset ()
301     {
302     { eval $1=; unset $1;}
303     }
304     as_unset=as_fn_unset
305 michael 912
306 michael 967 # as_fn_set_status STATUS
307     # -----------------------
308     # Set $? to STATUS, without forking.
309     as_fn_set_status ()
310     {
311     return $1
312     } # as_fn_set_status
313 michael 912
314 michael 967 # as_fn_exit STATUS
315     # -----------------
316     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317     as_fn_exit ()
318     {
319     set +e
320     as_fn_set_status $1
321     exit $1
322     } # as_fn_exit
323 michael 912
324 michael 967 # as_fn_mkdir_p
325     # -------------
326     # Create "$as_dir" as a directory, including parents if necessary.
327     as_fn_mkdir_p ()
328     {
329 michael 912
330 michael 967 case $as_dir in #(
331     -*) as_dir=./$as_dir;;
332     esac
333     test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336     case $as_dir in #(
337     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338     *) as_qdir=$as_dir;;
339     esac
340     as_dirs="'$as_qdir' $as_dirs"
341     as_dir=`$as_dirname -- "$as_dir" ||
342     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343     X"$as_dir" : 'X\(//\)[^/]' \| \
344     X"$as_dir" : 'X\(//\)$' \| \
345     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346     $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)[^/].*/{
352     s//\1/
353     q
354     }
355     /^X\(\/\/\)$/{
356     s//\1/
357     q
358     }
359     /^X\(\/\).*/{
360     s//\1/
361     q
362     }
363     s/.*/./; q'`
364     test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367 michael 1095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 michael 912
369    
370 michael 967 } # as_fn_mkdir_p
371 michael 1373
372     # as_fn_executable_p FILE
373     # -----------------------
374     # Test if FILE is an executable regular file.
375     as_fn_executable_p ()
376     {
377     test -f "$1" && test -x "$1"
378     } # as_fn_executable_p
379 michael 967 # as_fn_append VAR VALUE
380     # ----------------------
381     # Append the text in VALUE to the end of the definition contained in VAR. Take
382     # advantage of any shell optimizations that allow amortized linear growth over
383     # repeated appends, instead of the typical quadratic growth present in naive
384     # implementations.
385     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386     eval 'as_fn_append ()
387     {
388     eval $1+=\$2
389     }'
390     else
391     as_fn_append ()
392     {
393     eval $1=\$$1\$2
394     }
395     fi # as_fn_append
396 michael 912
397 michael 967 # as_fn_arith ARG...
398     # ------------------
399     # Perform arithmetic evaluation on the ARGs, and store the result in the
400     # global $as_val. Take advantage of shells that can avoid forks. The arguments
401     # must be portable across $(()) and expr.
402     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403     eval 'as_fn_arith ()
404     {
405     as_val=$(( $* ))
406     }'
407     else
408     as_fn_arith ()
409     {
410     as_val=`expr "$@" || test $? -eq 1`
411     }
412     fi # as_fn_arith
413 michael 912
414    
415 michael 1095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416     # ----------------------------------------
417 michael 967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 michael 1095 # script with STATUS, using 1 if that was 0.
420 michael 967 as_fn_error ()
421     {
422 michael 1095 as_status=$1; test $as_status -eq 0 && as_status=1
423     if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 michael 967 fi
427 michael 1095 $as_echo "$as_me: error: $2" >&2
428 michael 967 as_fn_exit $as_status
429     } # as_fn_error
430 michael 912
431 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
432     test "X`expr 00001 : '.*\(...\)'`" = X001; then
433     as_expr=expr
434 michael 912 else
435 michael 967 as_expr=false
436 michael 912 fi
437    
438 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439     as_basename=basename
440 michael 912 else
441 michael 967 as_basename=false
442 michael 912 fi
443    
444 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445     as_dirname=dirname
446 michael 912 else
447 michael 967 as_dirname=false
448 michael 912 fi
449    
450 michael 967 as_me=`$as_basename -- "$0" ||
451     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452     X"$0" : 'X\(//\)$' \| \
453     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454     $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456     s//\1/
457     q
458     }
459     /^X\/\(\/\/\)$/{
460     s//\1/
461     q
462     }
463     /^X\/\(\/\).*/{
464     s//\1/
465     q
466     }
467     s/.*/./; q'`
468 michael 912
469 michael 967 # Avoid depending upon Character Ranges.
470     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473     as_cr_digits='0123456789'
474     as_cr_alnum=$as_cr_Letters$as_cr_digits
475 michael 912
476    
477 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478     as_lineno_2=$LINENO as_lineno_2a=$LINENO
479     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 michael 912 sed -n '
483     p
484     /[$]LINENO/=
485     ' <$as_myself |
486     sed '
487     s/[$]LINENO.*/&-/
488     t lineno
489     b
490     :lineno
491     N
492     :loop
493     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494     t loop
495     s/-\n.*//
496     ' >$as_me.lineno &&
497     chmod +x "$as_me.lineno" ||
498 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 michael 912
500 michael 1373 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501     # already done that, so ensure we don't try to do so again and fall
502     # in an infinite loop. This has already happened in practice.
503     _as_can_reexec=no; export _as_can_reexec
504 michael 912 # Don't try to exec as it changes $[0], causing all sort of problems
505     # (the dirname of $[0] is not the place where we might find the
506     # original and so on. Autoconf is especially sensitive to this).
507     . "./$as_me.lineno"
508     # Exit status is that of the last command.
509     exit
510     }
511    
512     ECHO_C= ECHO_N= ECHO_T=
513 michael 967 case `echo -n x` in #(((((
514 michael 912 -n*)
515 michael 967 case `echo 'xy\c'` in
516 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 michael 967 xy) ECHO_C='\c';;
518     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519     ECHO_T=' ';;
520 michael 912 esac;;
521     *)
522     ECHO_N='-n';;
523     esac
524    
525     rm -f conf$$ conf$$.exe conf$$.file
526     if test -d conf$$.dir; then
527     rm -f conf$$.dir/conf$$.file
528     else
529     rm -f conf$$.dir
530 db 941 mkdir conf$$.dir 2>/dev/null
531 michael 912 fi
532 db 941 if (echo >conf$$.file) 2>/dev/null; then
533     if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 michael 1373 # In both cases, we have to default to `cp -pR'.
539 db 941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 michael 1373 as_ln_s='cp -pR'
541 db 941 elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543     else
544 michael 1373 as_ln_s='cp -pR'
545 db 941 fi
546 michael 912 else
547 michael 1373 as_ln_s='cp -pR'
548 michael 912 fi
549     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550     rmdir conf$$.dir 2>/dev/null
551    
552     if mkdir -p . 2>/dev/null; then
553 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
554 michael 912 else
555     test -d ./-p && rmdir ./-p
556     as_mkdir_p=false
557     fi
558    
559 michael 1373 as_test_x='test -x'
560     as_executable_p=as_fn_executable_p
561 michael 912
562     # Sed expression to map a string onto a valid CPP name.
563     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564    
565     # Sed expression to map a string onto a valid variable name.
566     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567    
568 michael 1084 lt_ltdl_dir='libltdl'
569 michael 912
570     SHELL=${CONFIG_SHELL-/bin/sh}
571    
572    
573 michael 1033 test -n "$DJDIR" || exec 7<&0 </dev/null
574     exec 6>&1
575 michael 912
576     # Name of the host.
577 michael 1095 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 michael 912 # so uname gets run too.
579     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580    
581     #
582     # Initializations.
583     #
584     ac_default_prefix=/usr/local
585     ac_clean_files=
586     ac_config_libobj_dir=.
587     LIBOBJS=
588     cross_compiling=no
589     subdirs=
590     MFLAGS=
591     MAKEFLAGS=
592    
593     # Identity of this package.
594     PACKAGE_NAME='ircd-hybrid'
595     PACKAGE_TARNAME='ircd-hybrid'
596 michael 1494 PACKAGE_VERSION='8beta3'
597     PACKAGE_STRING='ircd-hybrid 8beta3'
598 michael 1039 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 michael 967 PACKAGE_URL=''
600 michael 912
601     ac_unique_file="src/ircd.c"
602     # Factoring default headers for most tests.
603     ac_includes_default="\
604     #include <stdio.h>
605     #ifdef HAVE_SYS_TYPES_H
606     # include <sys/types.h>
607     #endif
608     #ifdef HAVE_SYS_STAT_H
609     # include <sys/stat.h>
610     #endif
611     #ifdef STDC_HEADERS
612     # include <stdlib.h>
613     # include <stddef.h>
614     #else
615     # ifdef HAVE_STDLIB_H
616     # include <stdlib.h>
617     # endif
618     #endif
619     #ifdef HAVE_STRING_H
620     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621     # include <memory.h>
622     # endif
623     # include <string.h>
624     #endif
625     #ifdef HAVE_STRINGS_H
626     # include <strings.h>
627     #endif
628     #ifdef HAVE_INTTYPES_H
629     # include <inttypes.h>
630     #endif
631     #ifdef HAVE_STDINT_H
632     # include <stdint.h>
633     #endif
634     #ifdef HAVE_UNISTD_H
635     # include <unistd.h>
636     #endif"
637    
638     ac_func_list=
639     ac_header_list=
640 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
641     ltdl_LIBOBJS
642     am__EXEEXT_FALSE
643     am__EXEEXT_TRUE
644     LTLIBOBJS
645 michael 942 LIBOBJS
646     LOCALSTATEDIR
647     DATADIR
648     LIBDIR
649     SYSCONFDIR
650     PREFIX
651     ENABLE_SSL_FALSE
652     ENABLE_SSL_TRUE
653 michael 945 LTDLOPEN
654     LT_CONFIG_H
655     CONVENIENCE_LTDL_FALSE
656     CONVENIENCE_LTDL_TRUE
657     INSTALL_LTDL_FALSE
658     INSTALL_LTDL_TRUE
659     ARGZ_H
660     sys_symbol_underscore
661     LIBADD_DL
662     LT_DLPREOPEN
663     LIBADD_DLD_LINK
664     LIBADD_SHL_LOAD
665     LIBADD_DLOPEN
666     LT_DLLOADERS
667     INCLTDL
668     LTDLINCL
669     LTDLDEPS
670     LIBLTDL
671 michael 942 CPP
672 michael 945 OTOOL64
673     OTOOL
674     LIPO
675 michael 942 NMEDIT
676     DSYMUTIL
677 michael 1106 MANIFEST_TOOL
678 michael 942 RANLIB
679 michael 1106 ac_ct_AR
680 michael 942 AR
681 michael 1106 DLLTOOL
682 michael 945 OBJDUMP
683 michael 942 LN_S
684 michael 945 NM
685     ac_ct_DUMPBIN
686     DUMPBIN
687     LD
688     FGREP
689 michael 942 EGREP
690     GREP
691     SED
692     host_os
693     host_vendor
694     host_cpu
695     host
696     build_os
697     build_vendor
698     build_cpu
699     build
700 michael 945 LIBTOOL
701 michael 942 LEXLIB
702     LEX_OUTPUT_ROOT
703     LEX
704     YFLAGS
705     YACC
706     am__fastdepCC_FALSE
707     am__fastdepCC_TRUE
708     CCDEPMODE
709 michael 1257 am__nodep
710 michael 942 AMDEPBACKSLASH
711     AMDEP_FALSE
712     AMDEP_TRUE
713     am__quote
714     am__include
715     DEPDIR
716     OBJEXT
717     EXEEXT
718     ac_ct_CC
719     CPPFLAGS
720     LDFLAGS
721     CFLAGS
722     CC
723     MAINT
724     MAINTAINER_MODE_FALSE
725     MAINTAINER_MODE_TRUE
726     am__untar
727     am__tar
728     AMTAR
729     am__leading_dot
730     SET_MAKE
731     AWK
732 michael 1462 mkdir_p
733 michael 942 MKDIR_P
734     INSTALL_STRIP_PROGRAM
735     STRIP
736     install_sh
737     MAKEINFO
738     AUTOHEADER
739     AUTOMAKE
740     AUTOCONF
741     ACLOCAL
742     VERSION
743     PACKAGE
744     CYGPATH_W
745     am__isrc
746     INSTALL_DATA
747     INSTALL_SCRIPT
748     INSTALL_PROGRAM
749     target_alias
750     host_alias
751     build_alias
752     LIBS
753     ECHO_T
754     ECHO_N
755     ECHO_C
756     DEFS
757     mandir
758     localedir
759     libdir
760     psdir
761     pdfdir
762     dvidir
763     htmldir
764     infodir
765     docdir
766     oldincludedir
767     includedir
768     localstatedir
769     sharedstatedir
770     sysconfdir
771     datadir
772     datarootdir
773     libexecdir
774     sbindir
775     bindir
776     program_transform_name
777     prefix
778     exec_prefix
779 michael 967 PACKAGE_URL
780 michael 942 PACKAGE_BUGREPORT
781     PACKAGE_STRING
782     PACKAGE_VERSION
783     PACKAGE_TARNAME
784     PACKAGE_NAME
785 michael 912 PATH_SEPARATOR
786 michael 942 SHELL'
787 michael 912 ac_subst_files=''
788 db 941 ac_user_opts='
789     enable_option_checking
790     enable_maintainer_mode
791 michael 945 enable_dependency_tracking
792 michael 977 enable_static
793 michael 945 enable_shared
794     with_pic
795 db 941 enable_fast_install
796     with_gnu_ld
797 michael 1106 with_sysroot
798 db 941 enable_libtool_lock
799 michael 945 with_included_ltdl
800     with_ltdl_include
801     with_ltdl_lib
802     enable_ltdl_install
803 michael 1009 enable_libpcre
804 db 941 enable_openssl
805     enable_assert
806     enable_small_net
807     enable_kqueue
808     enable_epoll
809     enable_devpoll
810     enable_rtsigio
811     enable_poll
812     enable_select
813     with_nicklen
814     with_topiclen
815     enable_halfops
816     enable_debugging
817     enable_warnings
818     '
819 michael 912 ac_precious_vars='build_alias
820     host_alias
821     target_alias
822     CC
823     CFLAGS
824     LDFLAGS
825     LIBS
826     CPPFLAGS
827     YACC
828     YFLAGS
829 michael 945 CPP'
830 michael 912
831 michael 1092
832 michael 912 # Initialize some variables set by options.
833     ac_init_help=
834     ac_init_version=false
835 db 941 ac_unrecognized_opts=
836     ac_unrecognized_sep=
837 michael 912 # The variables have the same names as the options, with
838     # dashes changed to underlines.
839     cache_file=/dev/null
840     exec_prefix=NONE
841     no_create=
842     no_recursion=
843     prefix=NONE
844     program_prefix=NONE
845     program_suffix=NONE
846     program_transform_name=s,x,x,
847     silent=
848     site=
849     srcdir=
850     verbose=
851     x_includes=NONE
852     x_libraries=NONE
853    
854     # Installation directory options.
855     # These are left unexpanded so users can "make install exec_prefix=/foo"
856     # and all the variables that are supposed to be based on exec_prefix
857     # by default will actually change.
858     # Use braces instead of parens because sh, perl, etc. also accept them.
859     # (The list follows the same order as the GNU Coding Standards.)
860     bindir='${exec_prefix}/bin'
861     sbindir='${exec_prefix}/sbin'
862     libexecdir='${exec_prefix}/libexec'
863     datarootdir='${prefix}/share'
864     datadir='${datarootdir}'
865     sysconfdir='${prefix}/etc'
866     sharedstatedir='${prefix}/com'
867     localstatedir='${prefix}/var'
868     includedir='${prefix}/include'
869     oldincludedir='/usr/include'
870     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871     infodir='${datarootdir}/info'
872     htmldir='${docdir}'
873     dvidir='${docdir}'
874     pdfdir='${docdir}'
875     psdir='${docdir}'
876     libdir='${exec_prefix}/lib'
877     localedir='${datarootdir}/locale'
878     mandir='${datarootdir}/man'
879    
880     ac_prev=
881     ac_dashdash=
882     for ac_option
883     do
884     # If the previous option needs an argument, assign it.
885     if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889     fi
890    
891     case $ac_option in
892 michael 1095 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893     *=) ac_optarg= ;;
894     *) ac_optarg=yes ;;
895 michael 912 esac
896    
897     # Accept the important Cygnus configure options, so we can diagnose typos.
898    
899     case $ac_dashdash$ac_option in
900     --)
901     ac_dashdash=yes ;;
902    
903     -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907    
908     -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912    
913     -cache-file | --cache-file | --cache-fil | --cache-fi \
914     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919    
920     --config-cache | -C)
921     cache_file=config.cache ;;
922    
923     -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925     -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927    
928     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929     | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934    
935     -disable-* | --disable-*)
936 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 michael 912 # Reject names that are not valid shell variable names.
938 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 michael 1095 as_fn_error $? "invalid feature name: $ac_useropt"
940 db 941 ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943     *"
944     "enable_$ac_useropt"
945     "*) ;;
946     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947     ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950 michael 912
951     -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955    
956     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960    
961     -enable-* | --enable-*)
962 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 michael 912 # Reject names that are not valid shell variable names.
964 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 michael 1095 as_fn_error $? "invalid feature name: $ac_useropt"
966 db 941 ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969     *"
970     "enable_$ac_useropt"
971     "*) ;;
972     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973     ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976 michael 912
977     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979     | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983     | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985    
986     -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989    
990     -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996    
997     -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999     -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001    
1002     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005     | --ht=*)
1006     htmldir=$ac_optarg ;;
1007    
1008     -includedir | --includedir | --includedi | --included | --include \
1009     | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012     | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014    
1015     -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019    
1020     -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024    
1025     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026     | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029     | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031    
1032     -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036    
1037     -localstatedir | --localstatedir | --localstatedi | --localstated \
1038     | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043    
1044     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048    
1049     -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052    
1053     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054     | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056    
1057     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060    
1061     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063     | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069    
1070     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074    
1075     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076     | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081    
1082     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083     | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088    
1089     -program-transform-name | --program-transform-name \
1090     | --program-transform-nam | --program-transform-na \
1091     | --program-transform-n | --program-transform- \
1092     | --program-transform | --program-transfor \
1093     | --program-transfo | --program-transf \
1094     | --program-trans | --program-tran \
1095     | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097     -program-transform-name=* | --program-transform-name=* \
1098     | --program-transform-nam=* | --program-transform-na=* \
1099     | --program-transform-n=* | --program-transform-=* \
1100     | --program-transform=* | --program-transfor=* \
1101     | --program-transfo=* | --program-transf=* \
1102     | --program-trans=* | --program-tran=* \
1103     | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105    
1106     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110    
1111     -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115    
1116     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117     | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119    
1120     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121     ac_prev=sbindir ;;
1122     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123     | --sbi=* | --sb=*)
1124     sbindir=$ac_optarg ;;
1125    
1126     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128     | --sharedst | --shareds | --shared | --share | --shar \
1129     | --sha | --sh)
1130     ac_prev=sharedstatedir ;;
1131     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134     | --sha=* | --sh=*)
1135     sharedstatedir=$ac_optarg ;;
1136    
1137     -site | --site | --sit)
1138     ac_prev=site ;;
1139     -site=* | --site=* | --sit=*)
1140     site=$ac_optarg ;;
1141    
1142     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143     ac_prev=srcdir ;;
1144     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145     srcdir=$ac_optarg ;;
1146    
1147     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148     | --syscon | --sysco | --sysc | --sys | --sy)
1149     ac_prev=sysconfdir ;;
1150     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152     sysconfdir=$ac_optarg ;;
1153    
1154     -target | --target | --targe | --targ | --tar | --ta | --t)
1155     ac_prev=target_alias ;;
1156     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157     target_alias=$ac_optarg ;;
1158    
1159     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160     verbose=yes ;;
1161    
1162     -version | --version | --versio | --versi | --vers | -V)
1163     ac_init_version=: ;;
1164    
1165     -with-* | --with-*)
1166 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 michael 912 # Reject names that are not valid shell variable names.
1168 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 michael 1095 as_fn_error $? "invalid package name: $ac_useropt"
1170 db 941 ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173     *"
1174     "with_$ac_useropt"
1175     "*) ;;
1176     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177     ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=\$ac_optarg ;;
1180 michael 912
1181     -without-* | --without-*)
1182 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 michael 912 # Reject names that are not valid shell variable names.
1184 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 michael 1095 as_fn_error $? "invalid package name: $ac_useropt"
1186 db 941 ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189     *"
1190     "with_$ac_useropt"
1191     "*) ;;
1192     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193     ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=no ;;
1196 michael 912
1197     --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200    
1201     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202     | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207    
1208     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214    
1215 michael 1095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216     Try \`$0 --help' for more information"
1217 michael 912 ;;
1218    
1219     *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222 michael 967 case $ac_envvar in #(
1223     '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 michael 1095 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 michael 967 esac
1226 michael 912 eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228    
1229     *)
1230     # FIXME: should be removed in autoconf 3.0.
1231 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 michael 1106 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 michael 912 ;;
1236    
1237     esac
1238     done
1239    
1240     if test -n "$ac_prev"; then
1241     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 michael 1095 as_fn_error $? "missing argument to $ac_option"
1243 michael 912 fi
1244    
1245 db 941 if test -n "$ac_unrecognized_opts"; then
1246     case $enable_option_checking in
1247     no) ;;
1248 michael 1095 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 db 941 esac
1251     fi
1252    
1253     # Check all directory arguments for consistency.
1254 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255     datadir sysconfdir sharedstatedir localstatedir includedir \
1256     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257     libdir localedir mandir
1258     do
1259     eval ac_val=\$$ac_var
1260 db 941 # Remove trailing slashes.
1261 michael 912 case $ac_val in
1262 db 941 */ )
1263     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264     eval $ac_var=\$ac_val;;
1265     esac
1266     # Be sure to have absolute directory names.
1267     case $ac_val in
1268 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270     esac
1271 michael 1095 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 michael 912 done
1273    
1274     # There might be people who depend on the old broken behavior: `$host'
1275     # used to hold the argument of --host etc.
1276     # FIXME: To remove some day.
1277     build=$build_alias
1278     host=$host_alias
1279     target=$target_alias
1280    
1281     # FIXME: To remove some day.
1282     if test "x$host_alias" != x; then
1283     if test "x$build_alias" = x; then
1284     cross_compiling=maybe
1285     elif test "x$build_alias" != "x$host_alias"; then
1286     cross_compiling=yes
1287     fi
1288     fi
1289    
1290     ac_tool_prefix=
1291     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292    
1293     test "$silent" = yes && exec 6>/dev/null
1294    
1295    
1296     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297     ac_ls_di=`ls -di .` &&
1298     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 michael 1095 as_fn_error $? "working directory cannot be determined"
1300 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 michael 1095 as_fn_error $? "pwd does not report name of working directory"
1302 michael 912
1303    
1304     # Find the source files, if location was not specified.
1305     if test -z "$srcdir"; then
1306     ac_srcdir_defaulted=yes
1307     # Try the directory containing this script, then the parent directory.
1308 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1309     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310     X"$as_myself" : 'X\(//\)[^/]' \| \
1311     X"$as_myself" : 'X\(//\)$' \| \
1312     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313     $as_echo X"$as_myself" |
1314 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315     s//\1/
1316     q
1317     }
1318     /^X\(\/\/\)[^/].*/{
1319     s//\1/
1320     q
1321     }
1322     /^X\(\/\/\)$/{
1323     s//\1/
1324     q
1325     }
1326     /^X\(\/\).*/{
1327     s//\1/
1328     q
1329     }
1330     s/.*/./; q'`
1331     srcdir=$ac_confdir
1332     if test ! -r "$srcdir/$ac_unique_file"; then
1333     srcdir=..
1334     fi
1335     else
1336     ac_srcdir_defaulted=no
1337     fi
1338     if test ! -r "$srcdir/$ac_unique_file"; then
1339     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 michael 1095 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 michael 912 fi
1342     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343     ac_abs_confdir=`(
1344 michael 1095 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 michael 912 pwd)`
1346     # When building in place, set srcdir=.
1347     if test "$ac_abs_confdir" = "$ac_pwd"; then
1348     srcdir=.
1349     fi
1350     # Remove unnecessary trailing slashes from srcdir.
1351     # Double slashes in file names in object file debugging info
1352     # mess up M-x gdb in Emacs.
1353     case $srcdir in
1354     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355     esac
1356     for ac_var in $ac_precious_vars; do
1357     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358     eval ac_env_${ac_var}_value=\$${ac_var}
1359     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361     done
1362    
1363     #
1364     # Report the --help message.
1365     #
1366     if test "$ac_init_help" = "long"; then
1367     # Omit some internal or obsolete options to make the list less imposing.
1368     # This message is too long to be a string in the A/UX 3.1 sh.
1369     cat <<_ACEOF
1370 michael 1494 \`configure' configures ircd-hybrid 8beta3 to adapt to many kinds of systems.
1371 michael 912
1372     Usage: $0 [OPTION]... [VAR=VALUE]...
1373    
1374     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375     VAR=VALUE. See below for descriptions of some of the useful variables.
1376    
1377     Defaults for the options are specified in brackets.
1378    
1379     Configuration:
1380     -h, --help display this help and exit
1381     --help=short display options specific to this package
1382     --help=recursive display the short help of all the included packages
1383     -V, --version display version information and exit
1384 michael 1095 -q, --quiet, --silent do not print \`checking ...' messages
1385 michael 912 --cache-file=FILE cache test results in FILE [disabled]
1386     -C, --config-cache alias for \`--cache-file=config.cache'
1387     -n, --no-create do not create output files
1388     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389    
1390     Installation directories:
1391     --prefix=PREFIX install architecture-independent files in PREFIX
1392 db 941 [$ac_default_prefix]
1393 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 db 941 [PREFIX]
1395 michael 912
1396     By default, \`make install' will install all the files in
1397     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399     for instance \`--prefix=\$HOME'.
1400    
1401     For better control, use the options below.
1402    
1403     Fine tuning of the installation directories:
1404 db 941 --bindir=DIR user executables [EPREFIX/bin]
1405     --sbindir=DIR system admin executables [EPREFIX/sbin]
1406     --libexecdir=DIR program executables [EPREFIX/libexec]
1407     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410     --libdir=DIR object code libraries [EPREFIX/lib]
1411     --includedir=DIR C header files [PREFIX/include]
1412     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415     --infodir=DIR info documentation [DATAROOTDIR/info]
1416     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417     --mandir=DIR man documentation [DATAROOTDIR/man]
1418     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1419     --htmldir=DIR html documentation [DOCDIR]
1420     --dvidir=DIR dvi documentation [DOCDIR]
1421     --pdfdir=DIR pdf documentation [DOCDIR]
1422     --psdir=DIR ps documentation [DOCDIR]
1423 michael 912 _ACEOF
1424    
1425     cat <<\_ACEOF
1426    
1427     Program names:
1428     --program-prefix=PREFIX prepend PREFIX to installed program names
1429     --program-suffix=SUFFIX append SUFFIX to installed program names
1430     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431    
1432     System types:
1433     --build=BUILD configure for building on BUILD [guessed]
1434     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435     _ACEOF
1436     fi
1437    
1438     if test -n "$ac_init_help"; then
1439     case $ac_init_help in
1440 michael 1494 short | recursive ) echo "Configuration of ircd-hybrid 8beta3:";;
1441 michael 912 esac
1442     cat <<\_ACEOF
1443    
1444     Optional Features:
1445 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1446 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 michael 1373 --enable-maintainer-mode
1449     enable make rules and dependencies not useful (and
1450     sometimes confusing) to the casual installer
1451     --enable-dependency-tracking
1452     do not reject slow dependency extractors
1453     --disable-dependency-tracking
1454     speeds up one-time build
1455 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1456 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 michael 912 --enable-fast-install[=PKGS]
1458     optimize for fast installation [default=yes]
1459     --disable-libtool-lock avoid locking (might break parallel builds)
1460 michael 945 --enable-ltdl-install install libltdl
1461 michael 1009 --disable-libpcre Disable PCRE support
1462 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1463     --disable-openssl Disable OpenSSL support.
1464 michael 924 --enable-assert Enable assert() statements
1465 michael 925 --enable-small-net Enable small network support.
1466 michael 912 --enable-kqueue Force kqueue usage.
1467     --enable-epoll Force epoll usage.
1468     --enable-devpoll Force devpoll usage.
1469     --enable-rtsigio Force rtsigio usage.
1470     --enable-poll Force poll usage.
1471     --enable-select Force select usage.
1472     --enable-halfops Enable halfops support.
1473     --enable-debugging Enable debugging.
1474     --enable-warnings Enable compiler warnings.
1475    
1476     Optional Packages:
1477     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 michael 1257 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1480 michael 912 both]
1481 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 michael 1106 --with-sysroot=DIR Search for dependent libraries within DIR
1483     (or the compiler's sysroot if not specified).
1484 michael 945 --with-included-ltdl use the GNU ltdl sources included here
1485     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1486     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1487 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1488     --with-topiclen=<value> Set topic length (default 160).
1489    
1490     Some influential environment variables:
1491     CC C compiler command
1492     CFLAGS C compiler flags
1493     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494     nonstandard directory <lib dir>
1495     LIBS libraries to pass to the linker, e.g. -l<library>
1496 michael 1033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 michael 912 you have headers in a nonstandard directory <include dir>
1498 michael 1106 YACC The `Yet Another Compiler Compiler' implementation to use.
1499     Defaults to the first program found out of: `bison -y', `byacc',
1500     `yacc'.
1501 michael 912 YFLAGS The list of arguments that will be passed by default to $YACC.
1502     This script will default YFLAGS to the empty string to avoid a
1503     default value of `-d' given by some make applications.
1504     CPP C preprocessor
1505    
1506     Use these variables to override the choices made by `configure' or to help
1507     it to find libraries and programs with nonstandard names/locations.
1508    
1509 michael 1039 Report bugs to <bugs@ircd-hybrid.org>.
1510 michael 912 _ACEOF
1511     ac_status=$?
1512     fi
1513    
1514     if test "$ac_init_help" = "recursive"; then
1515     # If there are subdirs, report their specific --help.
1516     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 db 941 test -d "$ac_dir" ||
1518     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519     continue
1520 michael 912 ac_builddir=.
1521    
1522     case "$ac_dir" in
1523     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524     *)
1525 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 michael 912 # A ".." for each directory in $ac_dir_suffix.
1527 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 michael 912 case $ac_top_builddir_sub in
1529     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531     esac ;;
1532     esac
1533     ac_abs_top_builddir=$ac_pwd
1534     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535     # for backward compatibility:
1536     ac_top_builddir=$ac_top_build_prefix
1537    
1538     case $srcdir in
1539     .) # We are building in place.
1540     ac_srcdir=.
1541     ac_top_srcdir=$ac_top_builddir_sub
1542     ac_abs_top_srcdir=$ac_pwd ;;
1543     [\\/]* | ?:[\\/]* ) # Absolute name.
1544     ac_srcdir=$srcdir$ac_dir_suffix;
1545     ac_top_srcdir=$srcdir
1546     ac_abs_top_srcdir=$srcdir ;;
1547     *) # Relative name.
1548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549     ac_top_srcdir=$ac_top_build_prefix$srcdir
1550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551     esac
1552     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553    
1554     cd "$ac_dir" || { ac_status=$?; continue; }
1555     # Check for guested configure.
1556     if test -f "$ac_srcdir/configure.gnu"; then
1557     echo &&
1558     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559     elif test -f "$ac_srcdir/configure"; then
1560     echo &&
1561     $SHELL "$ac_srcdir/configure" --help=recursive
1562     else
1563 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 michael 912 fi || ac_status=$?
1565     cd "$ac_pwd" || { ac_status=$?; break; }
1566     done
1567     fi
1568    
1569     test -n "$ac_init_help" && exit $ac_status
1570     if $ac_init_version; then
1571     cat <<\_ACEOF
1572 michael 1494 ircd-hybrid configure 8beta3
1573 michael 1373 generated by GNU Autoconf 2.69
1574 michael 912
1575 michael 1373 Copyright (C) 2012 Free Software Foundation, Inc.
1576 michael 912 This configure script is free software; the Free Software Foundation
1577     gives unlimited permission to copy, distribute and modify it.
1578     _ACEOF
1579     exit
1580     fi
1581 michael 967
1582     ## ------------------------ ##
1583     ## Autoconf initialization. ##
1584     ## ------------------------ ##
1585    
1586     # ac_fn_c_try_compile LINENO
1587     # --------------------------
1588     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589     ac_fn_c_try_compile ()
1590     {
1591     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592     rm -f conftest.$ac_objext
1593     if { { ac_try="$ac_compile"
1594     case "(($ac_try" in
1595     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596     *) ac_try_echo=$ac_try;;
1597     esac
1598     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599     $as_echo "$ac_try_echo"; } >&5
1600     (eval "$ac_compile") 2>conftest.err
1601     ac_status=$?
1602     if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606     fi
1607     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608     test $ac_status = 0; } && {
1609     test -z "$ac_c_werror_flag" ||
1610     test ! -s conftest.err
1611     } && test -s conftest.$ac_objext; then :
1612     ac_retval=0
1613     else
1614     $as_echo "$as_me: failed program was:" >&5
1615     sed 's/^/| /' conftest.$ac_ext >&5
1616    
1617     ac_retval=1
1618     fi
1619 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 michael 1033 as_fn_set_status $ac_retval
1621 michael 967
1622     } # ac_fn_c_try_compile
1623    
1624     # ac_fn_c_try_link LINENO
1625     # -----------------------
1626     # Try to link conftest.$ac_ext, and return whether this succeeded.
1627     ac_fn_c_try_link ()
1628     {
1629     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630     rm -f conftest.$ac_objext conftest$ac_exeext
1631     if { { ac_try="$ac_link"
1632     case "(($ac_try" in
1633     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634     *) ac_try_echo=$ac_try;;
1635     esac
1636     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637     $as_echo "$ac_try_echo"; } >&5
1638     (eval "$ac_link") 2>conftest.err
1639     ac_status=$?
1640     if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644     fi
1645     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646     test $ac_status = 0; } && {
1647     test -z "$ac_c_werror_flag" ||
1648     test ! -s conftest.err
1649     } && test -s conftest$ac_exeext && {
1650     test "$cross_compiling" = yes ||
1651 michael 1373 test -x conftest$ac_exeext
1652 michael 967 }; then :
1653     ac_retval=0
1654     else
1655     $as_echo "$as_me: failed program was:" >&5
1656     sed 's/^/| /' conftest.$ac_ext >&5
1657    
1658     ac_retval=1
1659     fi
1660     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662     # interfere with the next link command; also delete a directory that is
1663     # left behind by Apple's compiler. We do this before executing the actions.
1664     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 michael 1033 as_fn_set_status $ac_retval
1667 michael 967
1668     } # ac_fn_c_try_link
1669    
1670     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671     # -------------------------------------------------------
1672     # Tests whether HEADER exists and can be compiled using the include files in
1673     # INCLUDES, setting the cache variable VAR accordingly.
1674     ac_fn_c_check_header_compile ()
1675     {
1676     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678     $as_echo_n "checking for $2... " >&6; }
1679 michael 1106 if eval \${$3+:} false; then :
1680 michael 967 $as_echo_n "(cached) " >&6
1681     else
1682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683     /* end confdefs.h. */
1684     $4
1685     #include <$2>
1686     _ACEOF
1687     if ac_fn_c_try_compile "$LINENO"; then :
1688     eval "$3=yes"
1689     else
1690     eval "$3=no"
1691     fi
1692     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693     fi
1694     eval ac_res=\$$3
1695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696     $as_echo "$ac_res" >&6; }
1697 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 michael 967
1699     } # ac_fn_c_check_header_compile
1700    
1701     # ac_fn_c_try_cpp LINENO
1702     # ----------------------
1703     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704     ac_fn_c_try_cpp ()
1705     {
1706     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707     if { { ac_try="$ac_cpp conftest.$ac_ext"
1708     case "(($ac_try" in
1709     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710     *) ac_try_echo=$ac_try;;
1711     esac
1712     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713     $as_echo "$ac_try_echo"; } >&5
1714     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715     ac_status=$?
1716     if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720     fi
1721     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 michael 1095 test $ac_status = 0; } > conftest.i && {
1723 michael 967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724     test ! -s conftest.err
1725     }; then :
1726     ac_retval=0
1727     else
1728     $as_echo "$as_me: failed program was:" >&5
1729     sed 's/^/| /' conftest.$ac_ext >&5
1730    
1731     ac_retval=1
1732     fi
1733 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 michael 1033 as_fn_set_status $ac_retval
1735 michael 967
1736     } # ac_fn_c_try_cpp
1737    
1738     # ac_fn_c_try_run LINENO
1739     # ----------------------
1740     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741     # that executables *can* be run.
1742     ac_fn_c_try_run ()
1743     {
1744     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745     if { { ac_try="$ac_link"
1746     case "(($ac_try" in
1747     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748     *) ac_try_echo=$ac_try;;
1749     esac
1750     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751     $as_echo "$ac_try_echo"; } >&5
1752     (eval "$ac_link") 2>&5
1753     ac_status=$?
1754     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756     { { case "(($ac_try" in
1757     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758     *) ac_try_echo=$ac_try;;
1759     esac
1760     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761     $as_echo "$ac_try_echo"; } >&5
1762     (eval "$ac_try") 2>&5
1763     ac_status=$?
1764     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765     test $ac_status = 0; }; }; then :
1766     ac_retval=0
1767     else
1768     $as_echo "$as_me: program exited with status $ac_status" >&5
1769     $as_echo "$as_me: failed program was:" >&5
1770     sed 's/^/| /' conftest.$ac_ext >&5
1771    
1772     ac_retval=$ac_status
1773     fi
1774     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 michael 1033 as_fn_set_status $ac_retval
1777 michael 967
1778     } # ac_fn_c_try_run
1779    
1780     # ac_fn_c_check_func LINENO FUNC VAR
1781     # ----------------------------------
1782     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783     ac_fn_c_check_func ()
1784     {
1785     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787     $as_echo_n "checking for $2... " >&6; }
1788 michael 1106 if eval \${$3+:} false; then :
1789 michael 967 $as_echo_n "(cached) " >&6
1790     else
1791     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792     /* end confdefs.h. */
1793     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795     #define $2 innocuous_$2
1796    
1797     /* System header to define __stub macros and hopefully few prototypes,
1798     which can conflict with char $2 (); below.
1799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800     <limits.h> exists even on freestanding compilers. */
1801    
1802     #ifdef __STDC__
1803     # include <limits.h>
1804     #else
1805     # include <assert.h>
1806     #endif
1807    
1808     #undef $2
1809    
1810     /* Override any GCC internal prototype to avoid an error.
1811     Use char because int might match the return type of a GCC
1812     builtin and then its argument prototype would still apply. */
1813     #ifdef __cplusplus
1814     extern "C"
1815     #endif
1816     char $2 ();
1817     /* The GNU C library defines this for functions which it implements
1818     to always fail with ENOSYS. Some functions are actually named
1819     something starting with __ and the normal name is an alias. */
1820     #if defined __stub_$2 || defined __stub___$2
1821     choke me
1822     #endif
1823    
1824     int
1825     main ()
1826     {
1827     return $2 ();
1828     ;
1829     return 0;
1830     }
1831     _ACEOF
1832     if ac_fn_c_try_link "$LINENO"; then :
1833     eval "$3=yes"
1834     else
1835     eval "$3=no"
1836     fi
1837     rm -f core conftest.err conftest.$ac_objext \
1838     conftest$ac_exeext conftest.$ac_ext
1839     fi
1840     eval ac_res=\$$3
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842     $as_echo "$ac_res" >&6; }
1843 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 michael 967
1845     } # ac_fn_c_check_func
1846    
1847 michael 1095 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1848     # ---------------------------------------------
1849     # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1850     # accordingly.
1851 michael 967 ac_fn_c_check_decl ()
1852     {
1853     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 michael 1095 as_decl_name=`echo $2|sed 's/ *(.*//'`
1855     as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1857     $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1858 michael 1106 if eval \${$3+:} false; then :
1859 michael 967 $as_echo_n "(cached) " >&6
1860     else
1861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862     /* end confdefs.h. */
1863     $4
1864     int
1865     main ()
1866     {
1867 michael 1095 #ifndef $as_decl_name
1868     #ifdef __cplusplus
1869     (void) $as_decl_use;
1870     #else
1871     (void) $as_decl_name;
1872 michael 967 #endif
1873 michael 1095 #endif
1874 michael 967
1875     ;
1876     return 0;
1877     }
1878     _ACEOF
1879     if ac_fn_c_try_compile "$LINENO"; then :
1880     eval "$3=yes"
1881     else
1882     eval "$3=no"
1883     fi
1884     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885     fi
1886     eval ac_res=\$$3
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888     $as_echo "$ac_res" >&6; }
1889 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 michael 967
1891     } # ac_fn_c_check_decl
1892    
1893     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1894     # -------------------------------------------
1895     # Tests whether TYPE exists after having included INCLUDES, setting cache
1896     # variable VAR accordingly.
1897     ac_fn_c_check_type ()
1898     {
1899     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901     $as_echo_n "checking for $2... " >&6; }
1902 michael 1106 if eval \${$3+:} false; then :
1903 michael 967 $as_echo_n "(cached) " >&6
1904     else
1905     eval "$3=no"
1906     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907     /* end confdefs.h. */
1908     $4
1909     int
1910     main ()
1911     {
1912     if (sizeof ($2))
1913     return 0;
1914     ;
1915     return 0;
1916     }
1917     _ACEOF
1918     if ac_fn_c_try_compile "$LINENO"; then :
1919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920     /* end confdefs.h. */
1921     $4
1922     int
1923     main ()
1924     {
1925     if (sizeof (($2)))
1926     return 0;
1927     ;
1928     return 0;
1929     }
1930     _ACEOF
1931     if ac_fn_c_try_compile "$LINENO"; then :
1932    
1933     else
1934     eval "$3=yes"
1935     fi
1936     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937     fi
1938     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939     fi
1940     eval ac_res=\$$3
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942     $as_echo "$ac_res" >&6; }
1943 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 michael 967
1945     } # ac_fn_c_check_type
1946    
1947     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1948     # ----------------------------------------------------
1949     # Tries to find if the field MEMBER exists in type AGGR, after including
1950     # INCLUDES, setting cache variable VAR accordingly.
1951     ac_fn_c_check_member ()
1952     {
1953     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1955     $as_echo_n "checking for $2.$3... " >&6; }
1956 michael 1106 if eval \${$4+:} false; then :
1957 michael 967 $as_echo_n "(cached) " >&6
1958     else
1959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960     /* end confdefs.h. */
1961     $5
1962     int
1963     main ()
1964     {
1965     static $2 ac_aggr;
1966     if (ac_aggr.$3)
1967     return 0;
1968     ;
1969     return 0;
1970     }
1971     _ACEOF
1972     if ac_fn_c_try_compile "$LINENO"; then :
1973     eval "$4=yes"
1974     else
1975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976     /* end confdefs.h. */
1977     $5
1978     int
1979     main ()
1980     {
1981     static $2 ac_aggr;
1982     if (sizeof ac_aggr.$3)
1983     return 0;
1984     ;
1985     return 0;
1986     }
1987     _ACEOF
1988     if ac_fn_c_try_compile "$LINENO"; then :
1989     eval "$4=yes"
1990     else
1991     eval "$4=no"
1992     fi
1993     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994     fi
1995     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996     fi
1997     eval ac_res=\$$4
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999     $as_echo "$ac_res" >&6; }
2000 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 michael 967
2002     } # ac_fn_c_check_member
2003    
2004     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005     # -------------------------------------------------------
2006     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007     # the include files in INCLUDES and setting the cache variable VAR
2008     # accordingly.
2009     ac_fn_c_check_header_mongrel ()
2010     {
2011     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 michael 1106 if eval \${$3+:} false; then :
2013 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014     $as_echo_n "checking for $2... " >&6; }
2015 michael 1106 if eval \${$3+:} false; then :
2016 michael 967 $as_echo_n "(cached) " >&6
2017     fi
2018     eval ac_res=\$$3
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020     $as_echo "$ac_res" >&6; }
2021     else
2022     # Is the header compilable?
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024     $as_echo_n "checking $2 usability... " >&6; }
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026     /* end confdefs.h. */
2027     $4
2028     #include <$2>
2029     _ACEOF
2030     if ac_fn_c_try_compile "$LINENO"; then :
2031     ac_header_compiler=yes
2032     else
2033     ac_header_compiler=no
2034     fi
2035     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037     $as_echo "$ac_header_compiler" >&6; }
2038    
2039     # Is the header present?
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041     $as_echo_n "checking $2 presence... " >&6; }
2042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043     /* end confdefs.h. */
2044     #include <$2>
2045     _ACEOF
2046     if ac_fn_c_try_cpp "$LINENO"; then :
2047     ac_header_preproc=yes
2048     else
2049     ac_header_preproc=no
2050     fi
2051 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
2052 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053     $as_echo "$ac_header_preproc" >&6; }
2054    
2055     # So? What about this header?
2056     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057     yes:no: )
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062     ;;
2063     no:yes:* )
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 michael 1095 ( $as_echo "## ----------------------------------- ##
2075 michael 1039 ## Report this to bugs@ircd-hybrid.org ##
2076 michael 1095 ## ----------------------------------- ##"
2077 michael 1039 ) | sed "s/^/$as_me: WARNING: /" >&2
2078 michael 967 ;;
2079     esac
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081     $as_echo_n "checking for $2... " >&6; }
2082 michael 1106 if eval \${$3+:} false; then :
2083 michael 967 $as_echo_n "(cached) " >&6
2084     else
2085     eval "$3=\$ac_header_compiler"
2086     fi
2087     eval ac_res=\$$3
2088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089     $as_echo "$ac_res" >&6; }
2090     fi
2091 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 michael 967
2093     } # ac_fn_c_check_header_mongrel
2094 michael 912 cat >config.log <<_ACEOF
2095     This file contains any messages produced by compilers while
2096     running configure, to aid debugging if configure makes a mistake.
2097    
2098 michael 1494 It was created by ircd-hybrid $as_me 8beta3, which was
2099 michael 1373 generated by GNU Autoconf 2.69. Invocation command line was
2100 michael 912
2101     $ $0 $@
2102    
2103     _ACEOF
2104     exec 5>>config.log
2105     {
2106     cat <<_ASUNAME
2107     ## --------- ##
2108     ## Platform. ##
2109     ## --------- ##
2110    
2111     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116    
2117     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119    
2120     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127    
2128     _ASUNAME
2129    
2130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131     for as_dir in $PATH
2132     do
2133     IFS=$as_save_IFS
2134     test -z "$as_dir" && as_dir=.
2135 michael 967 $as_echo "PATH: $as_dir"
2136     done
2137 michael 912 IFS=$as_save_IFS
2138    
2139     } >&5
2140    
2141     cat >&5 <<_ACEOF
2142    
2143    
2144     ## ----------- ##
2145     ## Core tests. ##
2146     ## ----------- ##
2147    
2148     _ACEOF
2149    
2150    
2151     # Keep a trace of the command line.
2152     # Strip out --no-create and --no-recursion so they do not pile up.
2153     # Strip out --silent because we don't want to record it for future runs.
2154     # Also quote any args containing shell meta-characters.
2155     # Make two passes to allow for proper duplicate-argument suppression.
2156     ac_configure_args=
2157     ac_configure_args0=
2158     ac_configure_args1=
2159     ac_must_keep_next=false
2160     for ac_pass in 1 2
2161     do
2162     for ac_arg
2163     do
2164     case $ac_arg in
2165     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167     | -silent | --silent | --silen | --sile | --sil)
2168     continue ;;
2169     *\'*)
2170 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 michael 912 esac
2172     case $ac_pass in
2173 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 michael 912 2)
2175 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 michael 912 if test $ac_must_keep_next = true; then
2177     ac_must_keep_next=false # Got value, back to normal.
2178     else
2179     case $ac_arg in
2180     *=* | --config-cache | -C | -disable-* | --disable-* \
2181     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183     | -with-* | --with-* | -without-* | --without-* | --x)
2184     case "$ac_configure_args0 " in
2185     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186     esac
2187     ;;
2188     -* ) ac_must_keep_next=true ;;
2189     esac
2190     fi
2191 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2192 michael 912 ;;
2193     esac
2194     done
2195     done
2196 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2197     { ac_configure_args1=; unset ac_configure_args1;}
2198 michael 912
2199     # When interrupted or exit'd, cleanup temporary files, and complete
2200     # config.log. We remove comments because anyway the quotes in there
2201     # would cause problems or look ugly.
2202     # WARNING: Use '\'' to represent an apostrophe within the trap.
2203     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204     trap 'exit_status=$?
2205     # Save into config.log some information that might help in debugging.
2206     {
2207     echo
2208    
2209 michael 1095 $as_echo "## ---------------- ##
2210 michael 912 ## Cache variables. ##
2211 michael 1095 ## ---------------- ##"
2212 michael 912 echo
2213     # The following way of writing the cache mishandles newlines in values,
2214     (
2215     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216     eval ac_val=\$$ac_var
2217     case $ac_val in #(
2218     *${as_nl}*)
2219     case $ac_var in #(
2220 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 michael 912 esac
2223     case $ac_var in #(
2224     _ | IFS | as_nl) ;; #(
2225 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2227 michael 912 esac ;;
2228     esac
2229     done
2230     (set) 2>&1 |
2231     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232     *${as_nl}ac_space=\ *)
2233     sed -n \
2234     "s/'\''/'\''\\\\'\'''\''/g;
2235     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236     ;; #(
2237     *)
2238     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239     ;;
2240     esac |
2241     sort
2242     )
2243     echo
2244    
2245 michael 1095 $as_echo "## ----------------- ##
2246 michael 912 ## Output variables. ##
2247 michael 1095 ## ----------------- ##"
2248 michael 912 echo
2249     for ac_var in $ac_subst_vars
2250     do
2251     eval ac_val=\$$ac_var
2252     case $ac_val in
2253 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 michael 912 esac
2255 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2256 michael 912 done | sort
2257     echo
2258    
2259     if test -n "$ac_subst_files"; then
2260 michael 1095 $as_echo "## ------------------- ##
2261 michael 912 ## File substitutions. ##
2262 michael 1095 ## ------------------- ##"
2263 michael 912 echo
2264     for ac_var in $ac_subst_files
2265     do
2266     eval ac_val=\$$ac_var
2267     case $ac_val in
2268 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 michael 912 esac
2270 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2271 michael 912 done | sort
2272     echo
2273     fi
2274    
2275     if test -s confdefs.h; then
2276 michael 1095 $as_echo "## ----------- ##
2277 michael 912 ## confdefs.h. ##
2278 michael 1095 ## ----------- ##"
2279 michael 912 echo
2280     cat confdefs.h
2281     echo
2282     fi
2283     test "$ac_signal" != 0 &&
2284 db 941 $as_echo "$as_me: caught signal $ac_signal"
2285     $as_echo "$as_me: exit $exit_status"
2286 michael 912 } >&5
2287     rm -f core *.core core.conftest.* &&
2288     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289     exit $exit_status
2290     ' 0
2291     for ac_signal in 1 2 13 15; do
2292 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 michael 912 done
2294     ac_signal=0
2295    
2296     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297     rm -f -r conftest* confdefs.h
2298    
2299 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2300    
2301 michael 912 # Predefined preprocessor variables.
2302    
2303     cat >>confdefs.h <<_ACEOF
2304     #define PACKAGE_NAME "$PACKAGE_NAME"
2305     _ACEOF
2306    
2307     cat >>confdefs.h <<_ACEOF
2308     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309     _ACEOF
2310    
2311     cat >>confdefs.h <<_ACEOF
2312     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313     _ACEOF
2314    
2315     cat >>confdefs.h <<_ACEOF
2316     #define PACKAGE_STRING "$PACKAGE_STRING"
2317     _ACEOF
2318    
2319     cat >>confdefs.h <<_ACEOF
2320     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321     _ACEOF
2322    
2323 michael 967 cat >>confdefs.h <<_ACEOF
2324     #define PACKAGE_URL "$PACKAGE_URL"
2325     _ACEOF
2326 michael 912
2327 michael 967
2328 michael 912 # Let the site file select an alternate cache file if it wants to.
2329 db 941 # Prefer an explicitly selected file to automatically selected ones.
2330     ac_site_file1=NONE
2331     ac_site_file2=NONE
2332 michael 912 if test -n "$CONFIG_SITE"; then
2333 michael 1095 # We do not want a PATH search for config.site.
2334     case $CONFIG_SITE in #((
2335     -*) ac_site_file1=./$CONFIG_SITE;;
2336     */*) ac_site_file1=$CONFIG_SITE;;
2337     *) ac_site_file1=./$CONFIG_SITE;;
2338     esac
2339 michael 912 elif test "x$prefix" != xNONE; then
2340 db 941 ac_site_file1=$prefix/share/config.site
2341     ac_site_file2=$prefix/etc/config.site
2342 michael 912 else
2343 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2344     ac_site_file2=$ac_default_prefix/etc/config.site
2345 michael 912 fi
2346 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 michael 912 do
2348 db 941 test "x$ac_site_file" = xNONE && continue
2349 michael 1033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2353 michael 1095 . "$ac_site_file" \
2354     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356     as_fn_error $? "failed to load site script $ac_site_file
2357     See \`config.log' for more details" "$LINENO" 5; }
2358 michael 912 fi
2359     done
2360    
2361     if test -r "$cache_file"; then
2362 michael 1033 # Some versions of bash will fail to source /dev/null (special files
2363     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 michael 912 case $cache_file in
2368     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369     *) . "./$cache_file";;
2370     esac
2371     fi
2372     else
2373 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 michael 912 >$cache_file
2376     fi
2377    
2378 michael 967 as_fn_append ac_func_list " mmap"
2379     as_fn_append ac_func_list " strtok_r"
2380     as_fn_append ac_func_list " usleep"
2381     as_fn_append ac_func_list " strlcat"
2382     as_fn_append ac_func_list " strlcpy"
2383     as_fn_append ac_header_list " crypt.h"
2384     as_fn_append ac_header_list " sys/resource.h"
2385     as_fn_append ac_header_list " sys/param.h"
2386     as_fn_append ac_header_list " types.h"
2387     as_fn_append ac_header_list " socket.h"
2388     as_fn_append ac_header_list " sys/wait.h"
2389     as_fn_append ac_header_list " wait.h"
2390 michael 912 # Check that the precious variables saved in the cache have kept the same
2391     # value.
2392     ac_cache_corrupted=false
2393     for ac_var in $ac_precious_vars; do
2394     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395     eval ac_new_set=\$ac_env_${ac_var}_set
2396     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397     eval ac_new_val=\$ac_env_${ac_var}_value
2398     case $ac_old_set,$ac_new_set in
2399     set,)
2400 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 michael 912 ac_cache_corrupted=: ;;
2403     ,set)
2404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 michael 912 ac_cache_corrupted=: ;;
2407     ,);;
2408     *)
2409     if test "x$ac_old_val" != "x$ac_new_val"; then
2410 db 941 # differences in whitespace do not lead to failure.
2411     ac_old_val_w=`echo x $ac_old_val`
2412     ac_new_val_w=`echo x $ac_new_val`
2413     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416     ac_cache_corrupted=:
2417     else
2418 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420     eval $ac_var=\$ac_old_val
2421     fi
2422 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 michael 912 fi;;
2427     esac
2428     # Pass precious variables to config.status.
2429     if test "$ac_new_set" = set; then
2430     case $ac_new_val in
2431 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2433     esac
2434     case " $ac_configure_args " in
2435     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 michael 912 esac
2438     fi
2439     done
2440     if $ac_cache_corrupted; then
2441 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445 michael 1095 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 michael 912 fi
2447 michael 967 ## -------------------- ##
2448     ## Main body of script. ##
2449     ## -------------------- ##
2450 michael 912
2451     ac_ext=c
2452     ac_cpp='$CPP $CPPFLAGS'
2453     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456    
2457    
2458 michael 1373 am__api_version='1.12'
2459 michael 912
2460     ac_aux_dir=
2461     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2462 michael 1095 if test -f "$ac_dir/install-sh"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/install-sh -c"
2465     break
2466     elif test -f "$ac_dir/install.sh"; then
2467     ac_aux_dir=$ac_dir
2468     ac_install_sh="$ac_aux_dir/install.sh -c"
2469     break
2470     elif test -f "$ac_dir/shtool"; then
2471     ac_aux_dir=$ac_dir
2472     ac_install_sh="$ac_aux_dir/shtool install -c"
2473     break
2474     fi
2475 michael 912 done
2476     if test -z "$ac_aux_dir"; then
2477 michael 1095 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2478 michael 912 fi
2479    
2480     # These three variables are undocumented and unsupported,
2481     # and are intended to be withdrawn in a future Autoconf release.
2482     # They can cause serious problems if a builder's source tree is in a directory
2483     # whose full name contains unusual characters.
2484     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487    
2488    
2489     # Find a good install program. We prefer a C program (faster),
2490     # so one script is as good as another. But avoid the broken or
2491     # incompatible versions:
2492     # SysV /etc/install, /usr/sbin/install
2493     # SunOS /usr/etc/install
2494     # IRIX /sbin/install
2495     # AIX /bin/install
2496     # AmigaOS /C/install, which installs bootblocks on floppy discs
2497     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500     # OS/2's system install, which has a completely different semantic
2501     # ./install, which can be erroneously created by make from ./install.sh.
2502 db 941 # Reject install programs that cannot install multiple files.
2503 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2505 michael 912 if test -z "$INSTALL"; then
2506 michael 1106 if ${ac_cv_path_install+:} false; then :
2507 db 941 $as_echo_n "(cached) " >&6
2508 michael 912 else
2509     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510     for as_dir in $PATH
2511     do
2512     IFS=$as_save_IFS
2513     test -z "$as_dir" && as_dir=.
2514 michael 967 # Account for people who put trailing slashes in PATH elements.
2515     case $as_dir/ in #((
2516     ./ | .// | /[cC]/* | \
2517 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519 michael 912 /usr/ucb/* ) ;;
2520     *)
2521     # OSF1 and SCO ODT 3.0 have their own names for install.
2522     # Don't use installbsd from OSF since it installs stuff as root
2523     # by default.
2524     for ac_prog in ginstall scoinst install; do
2525     for ac_exec_ext in '' $ac_executable_extensions; do
2526 michael 1373 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 michael 912 if test $ac_prog = install &&
2528     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529     # AIX install. It has an incompatible calling convention.
2530     :
2531     elif test $ac_prog = install &&
2532     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533     # program-specific install script used by HP pwplus--don't use.
2534     :
2535     else
2536 db 941 rm -rf conftest.one conftest.two conftest.dir
2537     echo one > conftest.one
2538     echo two > conftest.two
2539     mkdir conftest.dir
2540     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541     test -s conftest.one && test -s conftest.two &&
2542     test -s conftest.dir/conftest.one &&
2543     test -s conftest.dir/conftest.two
2544     then
2545     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546     break 3
2547     fi
2548 michael 912 fi
2549     fi
2550     done
2551     done
2552     ;;
2553     esac
2554 db 941
2555 michael 967 done
2556 michael 912 IFS=$as_save_IFS
2557    
2558 db 941 rm -rf conftest.one conftest.two conftest.dir
2559 michael 912
2560     fi
2561     if test "${ac_cv_path_install+set}" = set; then
2562     INSTALL=$ac_cv_path_install
2563     else
2564     # As a last resort, use the slow shell script. Don't cache a
2565     # value for INSTALL within a source directory, because that will
2566     # break other packages using the cache if that directory is
2567     # removed, or if the value is a relative name.
2568     INSTALL=$ac_install_sh
2569     fi
2570     fi
2571 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572 db 941 $as_echo "$INSTALL" >&6; }
2573 michael 912
2574     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575     # It thinks the first close brace ends the variable substitution.
2576     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577    
2578     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579    
2580     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581    
2582 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2583 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2584 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2585     # name. Accept space and tab only in the latter.
2586     am_lf='
2587     '
2588     case `pwd` in
2589     *[\\\"\#\$\&\'\`$am_lf]*)
2590 michael 1095 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2591 michael 945 esac
2592     case $srcdir in
2593     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2594 michael 1373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2595 michael 945 esac
2596    
2597 michael 1373 # Do 'set' in a subshell so we don't clobber the current shell's
2598 michael 912 # arguments. Must try -L first in case configure is actually a
2599     # symlink; some systems play weird games with the mod time of symlinks
2600     # (eg FreeBSD returns the mod time of the symlink's containing
2601     # directory).
2602     if (
2603 michael 1373 am_has_slept=no
2604     for am_try in 1 2; do
2605     echo "timestamp, slept: $am_has_slept" > conftest.file
2606     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607     if test "$*" = "X"; then
2608     # -L didn't work.
2609     set X `ls -t "$srcdir/configure" conftest.file`
2610     fi
2611     if test "$*" != "X $srcdir/configure conftest.file" \
2612     && test "$*" != "X conftest.file $srcdir/configure"; then
2613 michael 912
2614 michael 1373 # If neither matched, then we have a broken ls. This can happen
2615     # if, for instance, CONFIG_SHELL is bash and it inherits a
2616     # broken ls alias from the environment. This has actually
2617     # happened. Such a system could not be considered "sane".
2618     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2619     alias in your environment" "$LINENO" 5
2620     fi
2621     if test "$2" = conftest.file || test $am_try -eq 2; then
2622     break
2623     fi
2624     # Just in case.
2625     sleep 1
2626     am_has_slept=yes
2627     done
2628 michael 912 test "$2" = conftest.file
2629     )
2630     then
2631     # Ok.
2632     :
2633     else
2634 michael 1095 as_fn_error $? "newly created file is older than distributed files!
2635 michael 967 Check your system clock" "$LINENO" 5
2636 michael 912 fi
2637 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638 db 941 $as_echo "yes" >&6; }
2639 michael 1373 # If we didn't sleep, we still need to ensure time stamps of config.status and
2640     # generated files are strictly newer.
2641     am_sleep_pid=
2642     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2643     ( sleep 1 ) &
2644     am_sleep_pid=$!
2645     fi
2646    
2647     rm -f conftest.file
2648    
2649 michael 912 test "$program_prefix" != NONE &&
2650     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2651     # Use a double $ so make ignores it.
2652     test "$program_suffix" != NONE &&
2653     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2654 db 941 # Double any \ or $.
2655 michael 912 # By default was `s,x,x', remove it if useless.
2656 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2657     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2658 michael 912
2659     # expand $ac_aux_dir to an absolute path
2660     am_aux_dir=`cd $ac_aux_dir && pwd`
2661    
2662 michael 945 if test x"${MISSING+set}" != xset; then
2663     case $am_aux_dir in
2664     *\ * | *\ *)
2665     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2666     *)
2667     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2668     esac
2669     fi
2670 michael 912 # Use eval to expand $SHELL
2671     if eval "$MISSING --run true"; then
2672     am_missing_run="$MISSING --run "
2673     else
2674     am_missing_run=
2675 michael 1373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2676     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2677 michael 912 fi
2678    
2679 michael 945 if test x"${install_sh}" != xset; then
2680     case $am_aux_dir in
2681     *\ * | *\ *)
2682     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2683     *)
2684     install_sh="\${SHELL} $am_aux_dir/install-sh"
2685     esac
2686     fi
2687    
2688 michael 1373 # Installed binaries are usually stripped using 'strip' when the user
2689     # run "make install-strip". However 'strip' might not be the right
2690 michael 945 # tool to use in cross-compilation environments, therefore Automake
2691 michael 1373 # will honor the 'STRIP' environment variable to overrule this program.
2692 michael 945 if test "$cross_compiling" != no; then
2693     if test -n "$ac_tool_prefix"; then
2694     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2695     set dummy ${ac_tool_prefix}strip; ac_word=$2
2696 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2698 michael 1106 if ${ac_cv_prog_STRIP+:} false; then :
2699 michael 945 $as_echo_n "(cached) " >&6
2700     else
2701     if test -n "$STRIP"; then
2702     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2703     else
2704     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705     for as_dir in $PATH
2706     do
2707     IFS=$as_save_IFS
2708     test -z "$as_dir" && as_dir=.
2709 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2710 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 michael 945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2712 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 michael 945 break 2
2714     fi
2715     done
2716 michael 967 done
2717 michael 945 IFS=$as_save_IFS
2718    
2719     fi
2720     fi
2721     STRIP=$ac_cv_prog_STRIP
2722     if test -n "$STRIP"; then
2723 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2724 michael 945 $as_echo "$STRIP" >&6; }
2725     else
2726 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 michael 945 $as_echo "no" >&6; }
2728     fi
2729    
2730    
2731     fi
2732     if test -z "$ac_cv_prog_STRIP"; then
2733     ac_ct_STRIP=$STRIP
2734     # Extract the first word of "strip", so it can be a program name with args.
2735     set dummy strip; ac_word=$2
2736 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2738 michael 1106 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2739 michael 945 $as_echo_n "(cached) " >&6
2740     else
2741     if test -n "$ac_ct_STRIP"; then
2742     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2743     else
2744     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745     for as_dir in $PATH
2746     do
2747     IFS=$as_save_IFS
2748     test -z "$as_dir" && as_dir=.
2749 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2750 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 michael 945 ac_cv_prog_ac_ct_STRIP="strip"
2752 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 michael 945 break 2
2754     fi
2755     done
2756 michael 967 done
2757 michael 945 IFS=$as_save_IFS
2758    
2759     fi
2760     fi
2761     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2762     if test -n "$ac_ct_STRIP"; then
2763 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2764 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2765     else
2766 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 michael 945 $as_echo "no" >&6; }
2768     fi
2769    
2770     if test "x$ac_ct_STRIP" = x; then
2771     STRIP=":"
2772     else
2773     case $cross_compiling:$ac_tool_warned in
2774     yes:)
2775 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2776 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2777     ac_tool_warned=yes ;;
2778     esac
2779     STRIP=$ac_ct_STRIP
2780     fi
2781     else
2782     STRIP="$ac_cv_prog_STRIP"
2783     fi
2784    
2785     fi
2786     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2787    
2788 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2789 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2790 michael 912 if test -z "$MKDIR_P"; then
2791 michael 1106 if ${ac_cv_path_mkdir+:} false; then :
2792 db 941 $as_echo_n "(cached) " >&6
2793 michael 912 else
2794     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2796     do
2797     IFS=$as_save_IFS
2798     test -z "$as_dir" && as_dir=.
2799 michael 967 for ac_prog in mkdir gmkdir; do
2800 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2801 michael 1373 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2802 michael 912 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2803     'mkdir (GNU coreutils) '* | \
2804     'mkdir (coreutils) '* | \
2805     'mkdir (fileutils) '4.1*)
2806     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2807     break 3;;
2808     esac
2809     done
2810     done
2811 michael 967 done
2812 michael 912 IFS=$as_save_IFS
2813    
2814     fi
2815    
2816 michael 1033 test -d ./--version && rmdir ./--version
2817 michael 912 if test "${ac_cv_path_mkdir+set}" = set; then
2818     MKDIR_P="$ac_cv_path_mkdir -p"
2819     else
2820     # As a last resort, use the slow shell script. Don't cache a
2821     # value for MKDIR_P within a source directory, because that will
2822     # break other packages using the cache if that directory is
2823     # removed, or if the value is a relative name.
2824     MKDIR_P="$ac_install_sh -d"
2825     fi
2826     fi
2827 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2828 db 941 $as_echo "$MKDIR_P" >&6; }
2829 michael 912
2830     for ac_prog in gawk mawk nawk awk
2831     do
2832     # Extract the first word of "$ac_prog", so it can be a program name with args.
2833     set dummy $ac_prog; ac_word=$2
2834 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2836 michael 1106 if ${ac_cv_prog_AWK+:} false; then :
2837 db 941 $as_echo_n "(cached) " >&6
2838 michael 912 else
2839     if test -n "$AWK"; then
2840     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2841     else
2842     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843     for as_dir in $PATH
2844     do
2845     IFS=$as_save_IFS
2846     test -z "$as_dir" && as_dir=.
2847 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2848 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 michael 912 ac_cv_prog_AWK="$ac_prog"
2850 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 michael 912 break 2
2852     fi
2853     done
2854 michael 967 done
2855 michael 912 IFS=$as_save_IFS
2856    
2857     fi
2858     fi
2859     AWK=$ac_cv_prog_AWK
2860     if test -n "$AWK"; then
2861 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2862 db 941 $as_echo "$AWK" >&6; }
2863 michael 912 else
2864 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 db 941 $as_echo "no" >&6; }
2866 michael 912 fi
2867    
2868    
2869     test -n "$AWK" && break
2870     done
2871    
2872 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2873 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2874     set x ${MAKE-make}
2875     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2876 michael 1106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2877 db 941 $as_echo_n "(cached) " >&6
2878 michael 912 else
2879     cat >conftest.make <<\_ACEOF
2880     SHELL = /bin/sh
2881     all:
2882     @echo '@@@%%%=$(MAKE)=@@@%%%'
2883     _ACEOF
2884 michael 1095 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2885 michael 912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2886     *@@@%%%=?*=@@@%%%*)
2887     eval ac_cv_prog_make_${ac_make}_set=yes;;
2888     *)
2889     eval ac_cv_prog_make_${ac_make}_set=no;;
2890     esac
2891     rm -f conftest.make
2892     fi
2893     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2894 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895 db 941 $as_echo "yes" >&6; }
2896 michael 912 SET_MAKE=
2897     else
2898 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 db 941 $as_echo "no" >&6; }
2900 michael 912 SET_MAKE="MAKE=${MAKE-make}"
2901     fi
2902    
2903     rm -rf .tst 2>/dev/null
2904     mkdir .tst 2>/dev/null
2905     if test -d .tst; then
2906     am__leading_dot=.
2907     else
2908     am__leading_dot=_
2909     fi
2910     rmdir .tst 2>/dev/null
2911    
2912     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2913     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2914     # is not polluted with repeated "-I."
2915     am__isrc=' -I$(srcdir)'
2916     # test to see if srcdir already configured
2917     if test -f $srcdir/config.status; then
2918 michael 1095 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2919 michael 912 fi
2920     fi
2921    
2922     # test whether we have cygpath
2923     if test -z "$CYGPATH_W"; then
2924     if (cygpath --version) >/dev/null 2>/dev/null; then
2925     CYGPATH_W='cygpath -w'
2926     else
2927     CYGPATH_W=echo
2928     fi
2929     fi
2930    
2931    
2932     # Define the identity of the package.
2933     PACKAGE='ircd-hybrid'
2934 michael 1494 VERSION='8beta3'
2935 michael 912
2936    
2937     cat >>confdefs.h <<_ACEOF
2938     #define PACKAGE "$PACKAGE"
2939     _ACEOF
2940    
2941    
2942     cat >>confdefs.h <<_ACEOF
2943     #define VERSION "$VERSION"
2944     _ACEOF
2945    
2946     # Some tools Automake needs.
2947    
2948     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2949    
2950    
2951     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2952    
2953    
2954     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2955    
2956    
2957     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2958    
2959    
2960     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2961    
2962 michael 1462 # For better backward compatibility. To be removed once Automake 1.9.x
2963     # dies out for good. For more background, see:
2964     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2965     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2966     mkdir_p='$(MKDIR_P)'
2967    
2968 michael 912 # We need awk for the "check" target. The system "awk" is bad on
2969     # some platforms.
2970 michael 1292 # Always define AMTAR for backward compatibility. Yes, it's still used
2971     # in the wild :-( We should find a proper way to deprecate it ...
2972     AMTAR='$${TAR-tar}'
2973 michael 912
2974 michael 1292 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2975 michael 912
2976    
2977    
2978    
2979    
2980    
2981 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2982 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2983 michael 912 # Check whether --enable-maintainer-mode was given.
2984 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
2985 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2986     else
2987     USE_MAINTAINER_MODE=no
2988     fi
2989    
2990 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2991 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2992 michael 912 if test $USE_MAINTAINER_MODE = yes; then
2993     MAINTAINER_MODE_TRUE=
2994     MAINTAINER_MODE_FALSE='#'
2995     else
2996     MAINTAINER_MODE_TRUE='#'
2997     MAINTAINER_MODE_FALSE=
2998     fi
2999    
3000     MAINT=$MAINTAINER_MODE_TRUE
3001    
3002    
3003     ac_config_headers="$ac_config_headers config.h"
3004    
3005    
3006    
3007 michael 1010 # Checks for programs.
3008     DEPDIR="${am__leading_dot}deps"
3009 michael 923
3010 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3011    
3012    
3013     am_make=${MAKE-make}
3014     cat > confinc << 'END'
3015     am__doit:
3016     @echo this is the am__doit target
3017     .PHONY: am__doit
3018     END
3019     # If we don't find an include directive, just comment out the code.
3020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3021     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3022     am__include="#"
3023     am__quote=
3024     _am_result=none
3025     # First try GNU make style include.
3026     echo "include confinc" > confmf
3027 michael 1373 # Ignore all kinds of additional output from 'make'.
3028 michael 1010 case `$am_make -s -f confmf 2> /dev/null` in #(
3029     *the\ am__doit\ target*)
3030     am__include=include
3031     am__quote=
3032     _am_result=GNU
3033     ;;
3034     esac
3035     # Now try BSD make style include.
3036     if test "$am__include" = "#"; then
3037     echo '.include "confinc"' > confmf
3038     case `$am_make -s -f confmf 2> /dev/null` in #(
3039     *the\ am__doit\ target*)
3040     am__include=.include
3041     am__quote="\""
3042     _am_result=BSD
3043     ;;
3044     esac
3045     fi
3046    
3047    
3048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3049     $as_echo "$_am_result" >&6; }
3050     rm -f confinc confmf
3051    
3052     # Check whether --enable-dependency-tracking was given.
3053     if test "${enable_dependency_tracking+set}" = set; then :
3054     enableval=$enable_dependency_tracking;
3055     fi
3056    
3057     if test "x$enable_dependency_tracking" != xno; then
3058     am_depcomp="$ac_aux_dir/depcomp"
3059     AMDEPBACKSLASH='\'
3060 michael 1257 am__nodep='_no'
3061 michael 1010 fi
3062     if test "x$enable_dependency_tracking" != xno; then
3063     AMDEP_TRUE=
3064     AMDEP_FALSE='#'
3065     else
3066     AMDEP_TRUE='#'
3067     AMDEP_FALSE=
3068     fi
3069    
3070    
3071 michael 912 ac_ext=c
3072     ac_cpp='$CPP $CPPFLAGS'
3073     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076     if test -n "$ac_tool_prefix"; then
3077     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3078     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3079 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3081 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3082 db 941 $as_echo_n "(cached) " >&6
3083 michael 912 else
3084     if test -n "$CC"; then
3085     ac_cv_prog_CC="$CC" # Let the user override the test.
3086     else
3087     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088     for as_dir in $PATH
3089     do
3090     IFS=$as_save_IFS
3091     test -z "$as_dir" && as_dir=.
3092 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3093 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 michael 912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3095 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 michael 912 break 2
3097     fi
3098     done
3099 michael 967 done
3100 michael 912 IFS=$as_save_IFS
3101    
3102     fi
3103     fi
3104     CC=$ac_cv_prog_CC
3105     if test -n "$CC"; then
3106 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 db 941 $as_echo "$CC" >&6; }
3108 michael 912 else
3109 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 db 941 $as_echo "no" >&6; }
3111 michael 912 fi
3112    
3113    
3114     fi
3115     if test -z "$ac_cv_prog_CC"; then
3116     ac_ct_CC=$CC
3117     # Extract the first word of "gcc", so it can be a program name with args.
3118     set dummy gcc; ac_word=$2
3119 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3121 michael 1106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 db 941 $as_echo_n "(cached) " >&6
3123 michael 912 else
3124     if test -n "$ac_ct_CC"; then
3125     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126     else
3127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128     for as_dir in $PATH
3129     do
3130     IFS=$as_save_IFS
3131     test -z "$as_dir" && as_dir=.
3132 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3133 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 michael 912 ac_cv_prog_ac_ct_CC="gcc"
3135 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 michael 912 break 2
3137     fi
3138     done
3139 michael 967 done
3140 michael 912 IFS=$as_save_IFS
3141    
3142     fi
3143     fi
3144     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145     if test -n "$ac_ct_CC"; then
3146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 db 941 $as_echo "$ac_ct_CC" >&6; }
3148 michael 912 else
3149 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 db 941 $as_echo "no" >&6; }
3151 michael 912 fi
3152    
3153     if test "x$ac_ct_CC" = x; then
3154     CC=""
3155     else
3156     case $cross_compiling:$ac_tool_warned in
3157     yes:)
3158 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 michael 912 ac_tool_warned=yes ;;
3161     esac
3162     CC=$ac_ct_CC
3163     fi
3164     else
3165     CC="$ac_cv_prog_CC"
3166     fi
3167    
3168     if test -z "$CC"; then
3169     if test -n "$ac_tool_prefix"; then
3170     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3171     set dummy ${ac_tool_prefix}cc; ac_word=$2
3172 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3174 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3175 db 941 $as_echo_n "(cached) " >&6
3176 michael 912 else
3177     if test -n "$CC"; then
3178     ac_cv_prog_CC="$CC" # Let the user override the test.
3179     else
3180     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181     for as_dir in $PATH
3182     do
3183     IFS=$as_save_IFS
3184     test -z "$as_dir" && as_dir=.
3185 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3186 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 michael 912 ac_cv_prog_CC="${ac_tool_prefix}cc"
3188 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 michael 912 break 2
3190     fi
3191     done
3192 michael 967 done
3193 michael 912 IFS=$as_save_IFS
3194    
3195     fi
3196     fi
3197     CC=$ac_cv_prog_CC
3198     if test -n "$CC"; then
3199 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 db 941 $as_echo "$CC" >&6; }
3201 michael 912 else
3202 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 db 941 $as_echo "no" >&6; }
3204 michael 912 fi
3205    
3206    
3207     fi
3208     fi
3209     if test -z "$CC"; then
3210     # Extract the first word of "cc", so it can be a program name with args.
3211     set dummy cc; ac_word=$2
3212 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3214 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3215 db 941 $as_echo_n "(cached) " >&6
3216 michael 912 else
3217     if test -n "$CC"; then
3218     ac_cv_prog_CC="$CC" # Let the user override the test.
3219     else
3220     ac_prog_rejected=no
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 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 michael 912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3229     ac_prog_rejected=yes
3230     continue
3231     fi
3232     ac_cv_prog_CC="cc"
3233 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 michael 912 break 2
3235     fi
3236     done
3237 michael 967 done
3238 michael 912 IFS=$as_save_IFS
3239    
3240     if test $ac_prog_rejected = yes; then
3241     # We found a bogon in the path, so make sure we never use it.
3242     set dummy $ac_cv_prog_CC
3243     shift
3244     if test $# != 0; then
3245     # We chose a different compiler from the bogus one.
3246     # However, it has the same basename, so the bogon will be chosen
3247     # first if we set CC to just the basename; use the full file name.
3248     shift
3249     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3250     fi
3251     fi
3252     fi
3253     fi
3254     CC=$ac_cv_prog_CC
3255     if test -n "$CC"; then
3256 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 db 941 $as_echo "$CC" >&6; }
3258 michael 912 else
3259 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 db 941 $as_echo "no" >&6; }
3261 michael 912 fi
3262    
3263    
3264     fi
3265     if test -z "$CC"; then
3266     if test -n "$ac_tool_prefix"; then
3267     for ac_prog in cl.exe
3268     do
3269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3273 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3274 db 941 $as_echo_n "(cached) " >&6
3275 michael 912 else
3276     if test -n "$CC"; then
3277     ac_cv_prog_CC="$CC" # Let the user override the test.
3278     else
3279     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280     for as_dir in $PATH
3281     do
3282     IFS=$as_save_IFS
3283     test -z "$as_dir" && as_dir=.
3284 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3285 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 michael 912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3287 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 michael 912 break 2
3289     fi
3290     done
3291 michael 967 done
3292 michael 912 IFS=$as_save_IFS
3293    
3294     fi
3295     fi
3296     CC=$ac_cv_prog_CC
3297     if test -n "$CC"; then
3298 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 db 941 $as_echo "$CC" >&6; }
3300 michael 912 else
3301 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 db 941 $as_echo "no" >&6; }
3303 michael 912 fi
3304    
3305    
3306     test -n "$CC" && break
3307     done
3308     fi
3309     if test -z "$CC"; then
3310     ac_ct_CC=$CC
3311     for ac_prog in cl.exe
3312     do
3313     # Extract the first word of "$ac_prog", so it can be a program name with args.
3314     set dummy $ac_prog; ac_word=$2
3315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3317 michael 1106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3318 db 941 $as_echo_n "(cached) " >&6
3319 michael 912 else
3320     if test -n "$ac_ct_CC"; then
3321     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322     else
3323     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324     for as_dir in $PATH
3325     do
3326     IFS=$as_save_IFS
3327     test -z "$as_dir" && as_dir=.
3328 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3329 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 michael 912 ac_cv_prog_ac_ct_CC="$ac_prog"
3331 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 michael 912 break 2
3333     fi
3334     done
3335 michael 967 done
3336 michael 912 IFS=$as_save_IFS
3337    
3338     fi
3339     fi
3340     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341     if test -n "$ac_ct_CC"; then
3342 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 db 941 $as_echo "$ac_ct_CC" >&6; }
3344 michael 912 else
3345 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 db 941 $as_echo "no" >&6; }
3347 michael 912 fi
3348    
3349    
3350     test -n "$ac_ct_CC" && break
3351     done
3352    
3353     if test "x$ac_ct_CC" = x; then
3354     CC=""
3355     else
3356     case $cross_compiling:$ac_tool_warned in
3357     yes:)
3358 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360 michael 912 ac_tool_warned=yes ;;
3361     esac
3362     CC=$ac_ct_CC
3363     fi
3364     fi
3365    
3366     fi
3367    
3368    
3369 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 michael 1095 as_fn_error $? "no acceptable C compiler found in \$PATH
3372     See \`config.log' for more details" "$LINENO" 5; }
3373 michael 912
3374     # Provide some information about the compiler.
3375 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3376 db 941 set X $ac_compile
3377     ac_compiler=$2
3378 michael 967 for ac_option in --version -v -V -qversion; do
3379     { { ac_try="$ac_compiler $ac_option >&5"
3380 michael 912 case "(($ac_try" in
3381     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382     *) ac_try_echo=$ac_try;;
3383     esac
3384 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385     $as_echo "$ac_try_echo"; } >&5
3386     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3387 michael 912 ac_status=$?
3388 michael 967 if test -s conftest.err; then
3389     sed '10a\
3390     ... rest of stderr output deleted ...
3391     10q' conftest.err >conftest.er1
3392     cat conftest.er1 >&5
3393     fi
3394 michael 1033 rm -f conftest.er1 conftest.err
3395 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396     test $ac_status = 0; }
3397     done
3398 michael 912
3399 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 michael 912 /* end confdefs.h. */
3401 michael 1033
3402 michael 912 int
3403     main ()
3404     {
3405    
3406     ;
3407     return 0;
3408     }
3409     _ACEOF
3410     ac_clean_files_save=$ac_clean_files
3411 michael 1033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3412 michael 912 # Try to create an executable without -o first, disregard a.out.
3413     # It will help us diagnose broken compilers, and finding out an intuition
3414     # of exeext.
3415 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3416     $as_echo_n "checking whether the C compiler works... " >&6; }
3417 db 941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3418    
3419     # The possible output files:
3420     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3421    
3422 michael 912 ac_rmfiles=
3423     for ac_file in $ac_files
3424     do
3425     case $ac_file in
3426 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3428     esac
3429     done
3430     rm -f $ac_rmfiles
3431    
3432 michael 967 if { { ac_try="$ac_link_default"
3433 michael 912 case "(($ac_try" in
3434     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435     *) ac_try_echo=$ac_try;;
3436     esac
3437 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438     $as_echo "$ac_try_echo"; } >&5
3439 michael 912 (eval "$ac_link_default") 2>&5
3440     ac_status=$?
3441 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442     test $ac_status = 0; }; then :
3443 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3444     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3445     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3446     # so that the user can short-circuit this test for compilers unknown to
3447     # Autoconf.
3448     for ac_file in $ac_files ''
3449     do
3450     test -f "$ac_file" || continue
3451     case $ac_file in
3452 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3453 michael 912 ;;
3454     [ab].out )
3455     # We found the default executable, but exeext='' is most
3456     # certainly right.
3457     break;;
3458     *.* )
3459 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3460 michael 912 then :; else
3461     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462     fi
3463     # We set ac_cv_exeext here because the later test for it is not
3464     # safe: cross compilers may not add the suffix if given an `-o'
3465     # argument, so we may need to know it at that point already.
3466     # Even if this section looks crufty: it has the advantage of
3467     # actually working.
3468     break;;
3469     * )
3470     break;;
3471     esac
3472     done
3473     test "$ac_cv_exeext" = no && ac_cv_exeext=
3474    
3475     else
3476     ac_file=''
3477     fi
3478 michael 967 if test -z "$ac_file"; then :
3479 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480     $as_echo "no" >&6; }
3481     $as_echo "$as_me: failed program was:" >&5
3482 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3483    
3484 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 michael 1095 as_fn_error 77 "C compiler cannot create executables
3487     See \`config.log' for more details" "$LINENO" 5; }
3488 michael 1033 else
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490     $as_echo "yes" >&6; }
3491 michael 912 fi
3492 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493     $as_echo_n "checking for C compiler default output file name... " >&6; }
3494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495     $as_echo "$ac_file" >&6; }
3496 michael 912 ac_exeext=$ac_cv_exeext
3497    
3498 michael 1033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3499 michael 912 ac_clean_files=$ac_clean_files_save
3500 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3501 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3502 michael 967 if { { ac_try="$ac_link"
3503 michael 912 case "(($ac_try" in
3504     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505     *) ac_try_echo=$ac_try;;
3506     esac
3507 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508     $as_echo "$ac_try_echo"; } >&5
3509 michael 912 (eval "$ac_link") 2>&5
3510     ac_status=$?
3511 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512     test $ac_status = 0; }; then :
3513 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3514     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3515     # work properly (i.e., refer to `conftest.exe'), while it won't with
3516     # `rm'.
3517     for ac_file in conftest.exe conftest conftest.*; do
3518     test -f "$ac_file" || continue
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_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522     break;;
3523     * ) break;;
3524     esac
3525     done
3526     else
3527 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 michael 1095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3530     See \`config.log' for more details" "$LINENO" 5; }
3531 michael 912 fi
3532 michael 1033 rm -f conftest conftest$ac_cv_exeext
3533 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3534 db 941 $as_echo "$ac_cv_exeext" >&6; }
3535 michael 912
3536     rm -f conftest.$ac_ext
3537     EXEEXT=$ac_cv_exeext
3538     ac_exeext=$EXEEXT
3539 michael 1033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540     /* end confdefs.h. */
3541     #include <stdio.h>
3542     int
3543     main ()
3544     {
3545     FILE *f = fopen ("conftest.out", "w");
3546     return ferror (f) || fclose (f) != 0;
3547    
3548     ;
3549     return 0;
3550     }
3551     _ACEOF
3552     ac_clean_files="$ac_clean_files conftest.out"
3553     # Check that the compiler produces executables we can run. If not, either
3554     # the compiler is broken, or we cross compile.
3555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3556     $as_echo_n "checking whether we are cross compiling... " >&6; }
3557     if test "$cross_compiling" != yes; then
3558     { { ac_try="$ac_link"
3559     case "(($ac_try" in
3560     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561     *) ac_try_echo=$ac_try;;
3562     esac
3563     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564     $as_echo "$ac_try_echo"; } >&5
3565     (eval "$ac_link") 2>&5
3566     ac_status=$?
3567     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568     test $ac_status = 0; }
3569     if { ac_try='./conftest$ac_cv_exeext'
3570     { { case "(($ac_try" in
3571     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572     *) ac_try_echo=$ac_try;;
3573     esac
3574     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575     $as_echo "$ac_try_echo"; } >&5
3576     (eval "$ac_try") 2>&5
3577     ac_status=$?
3578     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579     test $ac_status = 0; }; }; then
3580     cross_compiling=no
3581     else
3582     if test "$cross_compiling" = maybe; then
3583     cross_compiling=yes
3584     else
3585     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 michael 1095 as_fn_error $? "cannot run C compiled programs.
3588 michael 1033 If you meant to cross compile, use \`--host'.
3589 michael 1095 See \`config.log' for more details" "$LINENO" 5; }
3590 michael 1033 fi
3591     fi
3592     fi
3593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3594     $as_echo "$cross_compiling" >&6; }
3595    
3596     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3597     ac_clean_files=$ac_clean_files_save
3598 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3599 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3600 michael 1106 if ${ac_cv_objext+:} false; then :
3601 db 941 $as_echo_n "(cached) " >&6
3602 michael 912 else
3603 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 michael 912 /* end confdefs.h. */
3605    
3606     int
3607     main ()
3608     {
3609    
3610     ;
3611     return 0;
3612     }
3613     _ACEOF
3614     rm -f conftest.o conftest.obj
3615 michael 967 if { { ac_try="$ac_compile"
3616 michael 912 case "(($ac_try" in
3617     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618     *) ac_try_echo=$ac_try;;
3619     esac
3620 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621     $as_echo "$ac_try_echo"; } >&5
3622 michael 912 (eval "$ac_compile") 2>&5
3623     ac_status=$?
3624 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625     test $ac_status = 0; }; then :
3626 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3627     test -f "$ac_file" || continue;
3628     case $ac_file in
3629 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3630 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3631     break;;
3632     esac
3633     done
3634     else
3635 db 941 $as_echo "$as_me: failed program was:" >&5
3636 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3637    
3638 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 michael 1095 as_fn_error $? "cannot compute suffix of object files: cannot compile
3641     See \`config.log' for more details" "$LINENO" 5; }
3642 michael 912 fi
3643     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3644     fi
3645 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3646 db 941 $as_echo "$ac_cv_objext" >&6; }
3647 michael 912 OBJEXT=$ac_cv_objext
3648     ac_objext=$OBJEXT
3649 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 michael 1106 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 db 941 $as_echo_n "(cached) " >&6
3653 michael 912 else
3654 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 michael 912 /* end confdefs.h. */
3656    
3657     int
3658     main ()
3659     {
3660     #ifndef __GNUC__
3661     choke me
3662     #endif
3663    
3664     ;
3665     return 0;
3666     }
3667     _ACEOF
3668 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3669 michael 912 ac_compiler_gnu=yes
3670     else
3671 michael 967 ac_compiler_gnu=no
3672 michael 912 fi
3673     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675    
3676     fi
3677 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679     if test $ac_compiler_gnu = yes; then
3680     GCC=yes
3681     else
3682     GCC=
3683     fi
3684 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3685     ac_save_CFLAGS=$CFLAGS
3686 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 michael 1106 if ${ac_cv_prog_cc_g+:} false; then :
3689 db 941 $as_echo_n "(cached) " >&6
3690 michael 912 else
3691     ac_save_c_werror_flag=$ac_c_werror_flag
3692     ac_c_werror_flag=yes
3693     ac_cv_prog_cc_g=no
3694     CFLAGS="-g"
3695 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 michael 912 /* end confdefs.h. */
3697    
3698     int
3699     main ()
3700     {
3701    
3702     ;
3703     return 0;
3704     }
3705     _ACEOF
3706 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3707 michael 912 ac_cv_prog_cc_g=yes
3708     else
3709 michael 967 CFLAGS=""
3710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 michael 912 /* end confdefs.h. */
3712    
3713     int
3714     main ()
3715     {
3716    
3717     ;
3718     return 0;
3719     }
3720     _ACEOF
3721 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3722    
3723 michael 912 else
3724 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3725 michael 912 CFLAGS="-g"
3726 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 michael 912 /* end confdefs.h. */
3728    
3729     int
3730     main ()
3731     {
3732    
3733     ;
3734     return 0;
3735     }
3736     _ACEOF
3737 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3738 michael 912 ac_cv_prog_cc_g=yes
3739     fi
3740     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741     fi
3742     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743     fi
3744     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745     ac_c_werror_flag=$ac_save_c_werror_flag
3746     fi
3747 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 michael 912 if test "$ac_test_CFLAGS" = set; then
3750     CFLAGS=$ac_save_CFLAGS
3751     elif test $ac_cv_prog_cc_g = yes; then
3752     if test "$GCC" = yes; then
3753     CFLAGS="-g -O2"
3754     else
3755     CFLAGS="-g"
3756     fi
3757     else
3758     if test "$GCC" = yes; then
3759     CFLAGS="-O2"
3760     else
3761     CFLAGS=
3762     fi
3763     fi
3764 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 michael 1106 if ${ac_cv_prog_cc_c89+:} false; then :
3767 db 941 $as_echo_n "(cached) " >&6
3768 michael 912 else
3769     ac_cv_prog_cc_c89=no
3770     ac_save_CC=$CC
3771 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 michael 912 /* end confdefs.h. */
3773     #include <stdarg.h>
3774     #include <stdio.h>
3775 michael 1373 struct stat;
3776 michael 912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777     struct buf { int x; };
3778     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779     static char *e (p, i)
3780     char **p;
3781     int i;
3782     {
3783     return p[i];
3784     }
3785     static char *f (char * (*g) (char **, int), char **p, ...)
3786     {
3787     char *s;
3788     va_list v;
3789     va_start (v,p);
3790     s = g (p, va_arg (v,int));
3791     va_end (v);
3792     return s;
3793     }
3794    
3795     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796     function prototypes and stuff, but not '\xHH' hex character constants.
3797     These don't provoke an error unfortunately, instead are silently treated
3798     as 'x'. The following induces an error, until -std is added to get
3799     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800     array size at least. It's necessary to write '\x00'==0 to get something
3801     that's true only with -std. */
3802     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3803    
3804     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805     inside strings and character constants. */
3806     #define FOO(x) 'x'
3807     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3808    
3809     int test (int i, double x);
3810     struct s1 {int (*f) (int a);};
3811     struct s2 {int (*f) (double a);};
3812     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813     int argc;
3814     char **argv;
3815     int
3816     main ()
3817     {
3818     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3819     ;
3820     return 0;
3821     }
3822     _ACEOF
3823     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3825     do
3826     CC="$ac_save_CC $ac_arg"
3827 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3828 michael 912 ac_cv_prog_cc_c89=$ac_arg
3829     fi
3830     rm -f core conftest.err conftest.$ac_objext
3831     test "x$ac_cv_prog_cc_c89" != "xno" && break
3832     done
3833     rm -f conftest.$ac_ext
3834     CC=$ac_save_CC
3835    
3836     fi
3837     # AC_CACHE_VAL
3838     case "x$ac_cv_prog_cc_c89" in
3839     x)
3840 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 db 941 $as_echo "none needed" >&6; } ;;
3842 michael 912 xno)
3843 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 db 941 $as_echo "unsupported" >&6; } ;;
3845 michael 912 *)
3846     CC="$CC $ac_cv_prog_cc_c89"
3847 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 michael 912 esac
3850 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3851 michael 912
3852 michael 967 fi
3853 michael 912
3854     ac_ext=c
3855     ac_cpp='$CPP $CPPFLAGS'
3856     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859    
3860     depcc="$CC" am_compiler_list=
3861    
3862 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3863 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3864 michael 1106 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3865 db 941 $as_echo_n "(cached) " >&6
3866 michael 912 else
3867     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3868     # We make a subdir and do the tests there. Otherwise we can end up
3869     # making bogus files that we don't know about and never remove. For
3870     # instance it was reported that on HP-UX the gcc test will end up
3871 michael 1373 # making a dummy file named 'D' -- because '-MD' means "put the output
3872     # in D".
3873 michael 1257 rm -rf conftest.dir
3874 michael 912 mkdir conftest.dir
3875     # Copy depcomp to subdir because otherwise we won't find it if we're
3876     # using a relative directory.
3877     cp "$am_depcomp" conftest.dir
3878     cd conftest.dir
3879     # We will build objects and dependencies in a subdirectory because
3880     # it helps to detect inapplicable dependency modes. For instance
3881     # both Tru64's cc and ICC support -MD to output dependencies as a
3882     # side effect of compilation, but ICC will put the dependencies in
3883     # the current directory while Tru64 will put them in the object
3884     # directory.
3885     mkdir sub
3886    
3887     am_cv_CC_dependencies_compiler_type=none
3888     if test "$am_compiler_list" = ""; then
3889     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890     fi
3891 michael 945 am__universal=false
3892     case " $depcc " in #(
3893     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894     esac
3895    
3896 michael 912 for depmode in $am_compiler_list; do
3897     # Setup a source with many dependencies, because some compilers
3898     # like to wrap large dependency lists on column 80 (with \), and
3899     # we should not choose a depcomp mode which is confused by this.
3900     #
3901     # We need to recreate these files for each test, as the compiler may
3902     # overwrite some of them when testing with obscure command lines.
3903     # This happens at least with the AIX C compiler.
3904     : > sub/conftest.c
3905     for i in 1 2 3 4 5 6; do
3906     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 michael 1373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3908     # Solaris 10 /bin/sh.
3909     echo '/* dummy */' > sub/conftst$i.h
3910 michael 912 done
3911     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912    
3913 michael 1373 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3914 michael 945 # mode. It turns out that the SunPro C++ compiler does not properly
3915 michael 1373 # handle '-M -o', and we need to detect this. Also, some Intel
3916     # versions had trouble with output in subdirs.
3917 michael 945 am__obj=sub/conftest.${OBJEXT-o}
3918     am__minus_obj="-o $am__obj"
3919 michael 912 case $depmode in
3920 michael 945 gcc)
3921     # This depmode causes a compiler race in universal mode.
3922     test "$am__universal" = false || continue
3923     ;;
3924 michael 912 nosideeffect)
3925 michael 1373 # After this tag, mechanisms are not by side-effect, so they'll
3926     # only be used when explicitly requested.
3927 michael 912 if test "x$enable_dependency_tracking" = xyes; then
3928     continue
3929     else
3930     break
3931     fi
3932     ;;
3933 michael 1257 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3934 michael 1373 # This compiler won't grok '-c -o', but also, the minuso test has
3935 michael 945 # not run yet. These depmodes are late enough in the game, and
3936     # so weak that their functioning should not be impacted.
3937     am__obj=conftest.${OBJEXT-o}
3938     am__minus_obj=
3939     ;;
3940 michael 912 none) break ;;
3941     esac
3942     if depmode=$depmode \
3943 michael 945 source=sub/conftest.c object=$am__obj \
3944 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946 michael 912 >/dev/null 2>conftest.err &&
3947     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951     # icc doesn't choke on unknown options, it will just issue warnings
3952     # or remarks (even with -Werror). So we grep stderr for any message
3953     # that says an option was ignored or not supported.
3954     # When given -MP, icc 7.0 and 7.1 complain thusly:
3955     # icc: Command line warning: ignoring option '-M'; no argument required
3956     # The diagnosis changed in icc 8.0:
3957     # icc: Command line remark: option '-MP' not supported
3958     if (grep 'ignoring option' conftest.err ||
3959     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960     am_cv_CC_dependencies_compiler_type=$depmode
3961     break
3962     fi
3963     fi
3964     done
3965    
3966     cd ..
3967     rm -rf conftest.dir
3968     else
3969     am_cv_CC_dependencies_compiler_type=none
3970     fi
3971    
3972     fi
3973 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976    
3977     if
3978     test "x$enable_dependency_tracking" != xno \
3979     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3980     am__fastdepCC_TRUE=
3981     am__fastdepCC_FALSE='#'
3982     else
3983     am__fastdepCC_TRUE='#'
3984     am__fastdepCC_FALSE=
3985     fi
3986    
3987    
3988 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3989     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3990 michael 1106 if ${ac_cv_prog_cc_c99+:} false; then :
3991 michael 1010 $as_echo_n "(cached) " >&6
3992     else
3993     ac_cv_prog_cc_c99=no
3994     ac_save_CC=$CC
3995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996     /* end confdefs.h. */
3997     #include <stdarg.h>
3998     #include <stdbool.h>
3999     #include <stdlib.h>
4000     #include <wchar.h>
4001     #include <stdio.h>
4002    
4003     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4004     #define debug(...) fprintf (stderr, __VA_ARGS__)
4005     #define showlist(...) puts (#__VA_ARGS__)
4006     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4007     static void
4008     test_varargs_macros (void)
4009     {
4010     int x = 1234;
4011     int y = 5678;
4012     debug ("Flag");
4013     debug ("X = %d\n", x);
4014     showlist (The first, second, and third items.);
4015     report (x>y, "x is %d but y is %d", x, y);
4016     }
4017    
4018     // Check long long types.
4019     #define BIG64 18446744073709551615ull
4020     #define BIG32 4294967295ul
4021     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4022     #if !BIG_OK
4023     your preprocessor is broken;
4024     #endif
4025     #if BIG_OK
4026     #else
4027     your preprocessor is broken;
4028     #endif
4029     static long long int bignum = -9223372036854775807LL;
4030     static unsigned long long int ubignum = BIG64;
4031    
4032     struct incomplete_array
4033     {
4034     int datasize;
4035     double data[];
4036     };
4037    
4038     struct named_init {
4039     int number;
4040     const wchar_t *name;
4041     double average;
4042     };
4043    
4044     typedef const char *ccp;
4045    
4046     static inline int
4047     test_restrict (ccp restrict text)
4048     {
4049     // See if C++-style comments work.
4050     // Iterate through items via the restricted pointer.
4051     // Also check for declarations in for loops.
4052     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4053     continue;
4054     return 0;
4055     }
4056    
4057     // Check varargs and va_copy.
4058     static void
4059     test_varargs (const char *format, ...)
4060     {
4061     va_list args;
4062     va_start (args, format);
4063     va_list args_copy;
4064     va_copy (args_copy, args);
4065    
4066     const char *str;
4067     int number;
4068     float fnumber;
4069    
4070     while (*format)
4071     {
4072     switch (*format++)
4073     {
4074     case 's': // string
4075     str = va_arg (args_copy, const char *);
4076     break;
4077     case 'd': // int
4078     number = va_arg (args_copy, int);
4079     break;
4080     case 'f': // float
4081     fnumber = va_arg (args_copy, double);
4082     break;
4083     default:
4084     break;
4085     }
4086     }
4087     va_end (args_copy);
4088     va_end (args);
4089     }
4090    
4091     int
4092     main ()
4093     {
4094    
4095     // Check bool.
4096     _Bool success = false;
4097    
4098     // Check restrict.
4099     if (test_restrict ("String literal") == 0)
4100     success = true;
4101     char *restrict newvar = "Another string";
4102    
4103     // Check varargs.
4104     test_varargs ("s, d' f .", "string", 65, 34.234);
4105     test_varargs_macros ();
4106    
4107     // Check flexible array members.
4108     struct incomplete_array *ia =
4109     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4110     ia->datasize = 10;
4111     for (int i = 0; i < ia->datasize; ++i)
4112     ia->data[i] = i * 1.234;
4113    
4114     // Check named initializers.
4115     struct named_init ni = {
4116     .number = 34,
4117     .name = L"Test wide string",
4118     .average = 543.34343,
4119     };
4120    
4121     ni.number = 58;
4122    
4123     int dynamic_array[ni.number];
4124     dynamic_array[ni.number - 1] = 543;
4125    
4126     // work around unused variable warnings
4127     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4128     || dynamic_array[ni.number - 1] != 543);
4129    
4130     ;
4131     return 0;
4132     }
4133     _ACEOF
4134 michael 1373 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4135 michael 1010 do
4136     CC="$ac_save_CC $ac_arg"
4137     if ac_fn_c_try_compile "$LINENO"; then :
4138     ac_cv_prog_cc_c99=$ac_arg
4139     fi
4140     rm -f core conftest.err conftest.$ac_objext
4141     test "x$ac_cv_prog_cc_c99" != "xno" && break
4142     done
4143     rm -f conftest.$ac_ext
4144     CC=$ac_save_CC
4145    
4146     fi
4147     # AC_CACHE_VAL
4148     case "x$ac_cv_prog_cc_c99" in
4149     x)
4150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4151     $as_echo "none needed" >&6; } ;;
4152     xno)
4153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4154     $as_echo "unsupported" >&6; } ;;
4155     *)
4156     CC="$CC $ac_cv_prog_cc_c99"
4157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4158     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4159     esac
4160     if test "x$ac_cv_prog_cc_c99" != xno; then :
4161    
4162     fi
4163    
4164    
4165     if test "$ac_cv_prog_cc_c99" = "no"; then :
4166 michael 1348 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4167 michael 1010 fi
4168 michael 912 for ac_prog in 'bison -y' byacc
4169     do
4170     # Extract the first word of "$ac_prog", so it can be a program name with args.
4171     set dummy $ac_prog; ac_word=$2
4172 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4174 michael 1106 if ${ac_cv_prog_YACC+:} false; then :
4175 db 941 $as_echo_n "(cached) " >&6
4176 michael 912 else
4177     if test -n "$YACC"; then
4178     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4179     else
4180     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181     for as_dir in $PATH
4182     do
4183     IFS=$as_save_IFS
4184     test -z "$as_dir" && as_dir=.
4185 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4186 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 michael 912 ac_cv_prog_YACC="$ac_prog"
4188 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 michael 912 break 2
4190     fi
4191     done
4192 michael 967 done
4193 michael 912 IFS=$as_save_IFS
4194    
4195     fi
4196     fi
4197     YACC=$ac_cv_prog_YACC
4198     if test -n "$YACC"; then
4199 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4200 db 941 $as_echo "$YACC" >&6; }
4201 michael 912 else
4202 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 db 941 $as_echo "no" >&6; }
4204 michael 912 fi
4205    
4206    
4207     test -n "$YACC" && break
4208     done
4209     test -n "$YACC" || YACC="yacc"
4210    
4211    
4212     for ac_prog in flex lex
4213     do
4214     # Extract the first word of "$ac_prog", so it can be a program name with args.
4215     set dummy $ac_prog; ac_word=$2
4216 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4218 michael 1106 if ${ac_cv_prog_LEX+:} false; then :
4219 db 941 $as_echo_n "(cached) " >&6
4220 michael 912 else
4221     if test -n "$LEX"; then
4222     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4223     else
4224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225     for as_dir in $PATH
4226     do
4227     IFS=$as_save_IFS
4228     test -z "$as_dir" && as_dir=.
4229 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4230 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 michael 912 ac_cv_prog_LEX="$ac_prog"
4232 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 michael 912 break 2
4234     fi
4235     done
4236 michael 967 done
4237 michael 912 IFS=$as_save_IFS
4238    
4239     fi
4240     fi
4241     LEX=$ac_cv_prog_LEX
4242     if test -n "$LEX"; then
4243 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4244 db 941 $as_echo "$LEX" >&6; }
4245 michael 912 else
4246 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 db 941 $as_echo "no" >&6; }
4248 michael 912 fi
4249    
4250    
4251     test -n "$LEX" && break
4252     done
4253     test -n "$LEX" || LEX=":"
4254    
4255     if test "x$LEX" != "x:"; then
4256     cat >conftest.l <<_ACEOF
4257     %%
4258     a { ECHO; }
4259     b { REJECT; }
4260     c { yymore (); }
4261     d { yyless (1); }
4262 michael 1373 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4263     yyless ((input () != 0)); }
4264 michael 912 f { unput (yytext[0]); }
4265     . { BEGIN INITIAL; }
4266     %%
4267     #ifdef YYTEXT_POINTER
4268     extern char *yytext;
4269     #endif
4270     int
4271     main (void)
4272     {
4273     return ! yylex () + ! yywrap ();
4274     }
4275     _ACEOF
4276 michael 967 { { ac_try="$LEX conftest.l"
4277 michael 912 case "(($ac_try" in
4278     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279     *) ac_try_echo=$ac_try;;
4280     esac
4281 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282     $as_echo "$ac_try_echo"; } >&5
4283 michael 912 (eval "$LEX conftest.l") 2>&5
4284     ac_status=$?
4285 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286     test $ac_status = 0; }
4287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4288 db 941 $as_echo_n "checking lex output file root... " >&6; }
4289 michael 1106 if ${ac_cv_prog_lex_root+:} false; then :
4290 db 941 $as_echo_n "(cached) " >&6
4291 michael 912 else
4292    
4293     if test -f lex.yy.c; then
4294     ac_cv_prog_lex_root=lex.yy
4295     elif test -f lexyy.c; then
4296     ac_cv_prog_lex_root=lexyy
4297     else
4298 michael 1095 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4299 michael 912 fi
4300     fi
4301 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4302 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4303 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4304    
4305     if test -z "${LEXLIB+set}"; then
4306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4307 db 941 $as_echo_n "checking lex library... " >&6; }
4308 michael 1106 if ${ac_cv_lib_lex+:} false; then :
4309 db 941 $as_echo_n "(cached) " >&6
4310 michael 912 else
4311    
4312     ac_save_LIBS=$LIBS
4313     ac_cv_lib_lex='none needed'
4314     for ac_lib in '' -lfl -ll; do
4315     LIBS="$ac_lib $ac_save_LIBS"
4316 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317     /* end confdefs.h. */
4318 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4319     _ACEOF
4320 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4321 michael 912 ac_cv_lib_lex=$ac_lib
4322     fi
4323 michael 967 rm -f core conftest.err conftest.$ac_objext \
4324     conftest$ac_exeext conftest.$ac_ext
4325 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4326     done
4327     LIBS=$ac_save_LIBS
4328    
4329     fi
4330 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4331 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4332 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4333     fi
4334    
4335    
4336 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4337 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4338 michael 1106 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4339 db 941 $as_echo_n "(cached) " >&6
4340 michael 912 else
4341     # POSIX says lex can declare yytext either as a pointer or an array; the
4342     # default is implementation-dependent. Figure out which it is, since
4343     # not all implementations provide the %pointer and %array declarations.
4344     ac_cv_prog_lex_yytext_pointer=no
4345     ac_save_LIBS=$LIBS
4346     LIBS="$LEXLIB $ac_save_LIBS"
4347 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348     /* end confdefs.h. */
4349 michael 1106
4350     #define YYTEXT_POINTER 1
4351 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4352     _ACEOF
4353 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4354 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4355     fi
4356 michael 967 rm -f core conftest.err conftest.$ac_objext \
4357     conftest$ac_exeext conftest.$ac_ext
4358 michael 912 LIBS=$ac_save_LIBS
4359    
4360     fi
4361 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4362 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4363 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4364    
4365 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4366 michael 912
4367     fi
4368     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4369    
4370     fi
4371     if test "$LEX" = :; then
4372     LEX=${am_missing_run}flex
4373     fi
4374 db 941
4375 michael 912
4376 michael 1015 # Initializing libtool.
4377 michael 1084
4378    
4379    
4380    
4381    
4382    
4383    
4384 michael 945 case `pwd` in
4385     *\ * | *\ *)
4386 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4387 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4388     esac
4389    
4390    
4391    
4392 michael 1257 macro_version='2.4.2'
4393     macro_revision='1.3337'
4394 michael 945
4395    
4396    
4397    
4398    
4399    
4400    
4401    
4402    
4403    
4404    
4405    
4406    
4407     ltmain="$ac_aux_dir/ltmain.sh"
4408    
4409 michael 912 # Make sure we can run config.sub.
4410     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4411 michael 1095 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4412 michael 912
4413 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4414 db 941 $as_echo_n "checking build system type... " >&6; }
4415 michael 1106 if ${ac_cv_build+:} false; then :
4416 db 941 $as_echo_n "(cached) " >&6
4417 michael 912 else
4418     ac_build_alias=$build_alias
4419     test "x$ac_build_alias" = x &&
4420     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4421     test "x$ac_build_alias" = x &&
4422 michael 1095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4423 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4424 michael 1095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4425 michael 912
4426     fi
4427 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4428 db 941 $as_echo "$ac_cv_build" >&6; }
4429 michael 912 case $ac_cv_build in
4430     *-*-*) ;;
4431 michael 1095 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4432 michael 912 esac
4433     build=$ac_cv_build
4434     ac_save_IFS=$IFS; IFS='-'
4435     set x $ac_cv_build
4436     shift
4437     build_cpu=$1
4438     build_vendor=$2
4439     shift; shift
4440     # Remember, the first character of IFS is used to create $*,
4441     # except with old shells:
4442     build_os=$*
4443     IFS=$ac_save_IFS
4444     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4445    
4446    
4447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4448 db 941 $as_echo_n "checking host system type... " >&6; }
4449 michael 1106 if ${ac_cv_host+:} false; then :
4450 db 941 $as_echo_n "(cached) " >&6
4451 michael 912 else
4452     if test "x$host_alias" = x; then
4453     ac_cv_host=$ac_cv_build
4454     else
4455     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4456 michael 1095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4457 michael 912 fi
4458    
4459     fi
4460 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4461 db 941 $as_echo "$ac_cv_host" >&6; }
4462 michael 912 case $ac_cv_host in
4463     *-*-*) ;;
4464 michael 1095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4465 michael 912 esac
4466     host=$ac_cv_host
4467     ac_save_IFS=$IFS; IFS='-'
4468     set x $ac_cv_host
4469     shift
4470     host_cpu=$1
4471     host_vendor=$2
4472     shift; shift
4473     # Remember, the first character of IFS is used to create $*,
4474     # except with old shells:
4475     host_os=$*
4476     IFS=$ac_save_IFS
4477     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4478    
4479    
4480 michael 1094 # Backslashify metacharacters that are still active within
4481     # double-quoted strings.
4482     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4483    
4484     # Same as above, but do not quote variable references.
4485     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4486    
4487     # Sed substitution to delay expansion of an escaped shell variable in a
4488     # double_quote_subst'ed string.
4489     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4490    
4491     # Sed substitution to delay expansion of an escaped single quote.
4492     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4493    
4494     # Sed substitution to avoid accidental globbing in evaled expressions
4495     no_glob_subst='s/\*/\\\*/g'
4496    
4497     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4498     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4499     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4500    
4501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4502     $as_echo_n "checking how to print strings... " >&6; }
4503     # Test print first, because it will be a builtin if present.
4504 michael 1106 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4505 michael 1094 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4506     ECHO='print -r --'
4507     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4508     ECHO='printf %s\n'
4509     else
4510     # Use this function as a fallback that always works.
4511     func_fallback_echo ()
4512     {
4513     eval 'cat <<_LTECHO_EOF
4514     $1
4515     _LTECHO_EOF'
4516     }
4517     ECHO='func_fallback_echo'
4518     fi
4519    
4520     # func_echo_all arg...
4521     # Invoke $ECHO with all args, space-separated.
4522     func_echo_all ()
4523     {
4524     $ECHO ""
4525     }
4526    
4527     case "$ECHO" in
4528     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4529     $as_echo "printf" >&6; } ;;
4530     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4531     $as_echo "print -r" >&6; } ;;
4532     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4533     $as_echo "cat" >&6; } ;;
4534     esac
4535    
4536    
4537    
4538    
4539    
4540    
4541    
4542    
4543    
4544    
4545    
4546    
4547    
4548    
4549 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4550 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551 michael 1106 if ${ac_cv_path_SED+:} false; then :
4552 db 941 $as_echo_n "(cached) " >&6
4553 michael 912 else
4554 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4555     for ac_i in 1 2 3 4 5 6 7; do
4556     ac_script="$ac_script$as_nl$ac_script"
4557     done
4558     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4559 michael 967 { ac_script=; unset ac_script;}
4560 michael 945 if test -z "$SED"; then
4561     ac_path_SED_found=false
4562     # Loop through the user's path and test for each of PROGNAME-LIST
4563     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 michael 912 for as_dir in $PATH
4565     do
4566     IFS=$as_save_IFS
4567     test -z "$as_dir" && as_dir=.
4568 michael 967 for ac_prog in sed gsed; do
4569 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4570 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4571 michael 1373 as_fn_executable_p "$ac_path_SED" || continue
4572 michael 945 # Check for GNU ac_path_SED and select it if it is found.
4573     # Check for GNU $ac_path_SED
4574     case `"$ac_path_SED" --version 2>&1` in
4575     *GNU*)
4576     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4577     *)
4578     ac_count=0
4579     $as_echo_n 0123456789 >"conftest.in"
4580     while :
4581     do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo '' >> "conftest.nl"
4586     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4590     # Best one so far, save it but keep looking for a better one
4591     ac_cv_path_SED="$ac_path_SED"
4592     ac_path_SED_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596     done
4597     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598     esac
4599    
4600     $ac_path_SED_found && break 3
4601 michael 912 done
4602     done
4603 michael 967 done
4604 michael 912 IFS=$as_save_IFS
4605 michael 945 if test -z "$ac_cv_path_SED"; then
4606 michael 1095 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4607 michael 912 fi
4608 michael 945 else
4609     ac_cv_path_SED=$SED
4610     fi
4611 michael 912
4612     fi
4613 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4614 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4615     SED="$ac_cv_path_SED"
4616     rm -f conftest.sed
4617 michael 912
4618 michael 945 test -z "$SED" && SED=sed
4619     Xsed="$SED -e 1s/^X//"
4620 michael 912
4621    
4622 michael 945
4623    
4624    
4625    
4626    
4627    
4628    
4629    
4630    
4631 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4632 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4633 michael 1106 if ${ac_cv_path_GREP+:} false; then :
4634 db 941 $as_echo_n "(cached) " >&6
4635 michael 912 else
4636 db 941 if test -z "$GREP"; then
4637 michael 912 ac_path_GREP_found=false
4638 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4639     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641     do
4642     IFS=$as_save_IFS
4643     test -z "$as_dir" && as_dir=.
4644 michael 967 for ac_prog in grep ggrep; do
4645 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4646     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4647 michael 1373 as_fn_executable_p "$ac_path_GREP" || continue
4648 db 941 # Check for GNU ac_path_GREP and select it if it is found.
4649 michael 912 # Check for GNU $ac_path_GREP
4650     case `"$ac_path_GREP" --version 2>&1` in
4651     *GNU*)
4652     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4653     *)
4654     ac_count=0
4655 db 941 $as_echo_n 0123456789 >"conftest.in"
4656 michael 912 while :
4657     do
4658     cat "conftest.in" "conftest.in" >"conftest.tmp"
4659     mv "conftest.tmp" "conftest.in"
4660     cp "conftest.in" "conftest.nl"
4661 db 941 $as_echo 'GREP' >> "conftest.nl"
4662 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4665 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4666     # Best one so far, save it but keep looking for a better one
4667     ac_cv_path_GREP="$ac_path_GREP"
4668     ac_path_GREP_max=$ac_count
4669     fi
4670     # 10*(2^10) chars as input seems more than enough
4671     test $ac_count -gt 10 && break
4672     done
4673     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674     esac
4675    
4676 db 941 $ac_path_GREP_found && break 3
4677     done
4678 michael 912 done
4679 michael 967 done
4680 michael 912 IFS=$as_save_IFS
4681 db 941 if test -z "$ac_cv_path_GREP"; then
4682 michael 1095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683 db 941 fi
4684 michael 912 else
4685     ac_cv_path_GREP=$GREP
4686     fi
4687    
4688     fi
4689 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4690 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4691 michael 912 GREP="$ac_cv_path_GREP"
4692    
4693    
4694 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4695 db 941 $as_echo_n "checking for egrep... " >&6; }
4696 michael 1106 if ${ac_cv_path_EGREP+:} false; then :
4697 db 941 $as_echo_n "(cached) " >&6
4698 michael 912 else
4699     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4700     then ac_cv_path_EGREP="$GREP -E"
4701     else
4702 db 941 if test -z "$EGREP"; then
4703 michael 912 ac_path_EGREP_found=false
4704 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4705     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707     do
4708     IFS=$as_save_IFS
4709     test -z "$as_dir" && as_dir=.
4710 michael 967 for ac_prog in egrep; do
4711 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4712     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4713 michael 1373 as_fn_executable_p "$ac_path_EGREP" || continue
4714 db 941 # Check for GNU ac_path_EGREP and select it if it is found.
4715 michael 912 # Check for GNU $ac_path_EGREP
4716     case `"$ac_path_EGREP" --version 2>&1` in
4717     *GNU*)
4718     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4719     *)
4720     ac_count=0
4721 db 941 $as_echo_n 0123456789 >"conftest.in"
4722 michael 912 while :
4723     do
4724     cat "conftest.in" "conftest.in" >"conftest.tmp"
4725     mv "conftest.tmp" "conftest.in"
4726     cp "conftest.in" "conftest.nl"
4727 db 941 $as_echo 'EGREP' >> "conftest.nl"
4728 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4731 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4732     # Best one so far, save it but keep looking for a better one
4733     ac_cv_path_EGREP="$ac_path_EGREP"
4734     ac_path_EGREP_max=$ac_count
4735     fi
4736     # 10*(2^10) chars as input seems more than enough
4737     test $ac_count -gt 10 && break
4738     done
4739     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740     esac
4741    
4742 db 941 $ac_path_EGREP_found && break 3
4743     done
4744 michael 912 done
4745 michael 967 done
4746 michael 912 IFS=$as_save_IFS
4747 db 941 if test -z "$ac_cv_path_EGREP"; then
4748 michael 1095 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749 db 941 fi
4750 michael 912 else
4751     ac_cv_path_EGREP=$EGREP
4752     fi
4753    
4754     fi
4755     fi
4756 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4757 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4758 michael 912 EGREP="$ac_cv_path_EGREP"
4759    
4760    
4761 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4762 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4763 michael 1106 if ${ac_cv_path_FGREP+:} false; then :
4764 michael 945 $as_echo_n "(cached) " >&6
4765     else
4766     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4767     then ac_cv_path_FGREP="$GREP -F"
4768     else
4769     if test -z "$FGREP"; then
4770     ac_path_FGREP_found=false
4771     # Loop through the user's path and test for each of PROGNAME-LIST
4772     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774     do
4775     IFS=$as_save_IFS
4776     test -z "$as_dir" && as_dir=.
4777 michael 967 for ac_prog in fgrep; do
4778 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4779     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4780 michael 1373 as_fn_executable_p "$ac_path_FGREP" || continue
4781 michael 945 # Check for GNU ac_path_FGREP and select it if it is found.
4782     # Check for GNU $ac_path_FGREP
4783     case `"$ac_path_FGREP" --version 2>&1` in
4784     *GNU*)
4785     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4786     *)
4787     ac_count=0
4788     $as_echo_n 0123456789 >"conftest.in"
4789     while :
4790     do
4791     cat "conftest.in" "conftest.in" >"conftest.tmp"
4792     mv "conftest.tmp" "conftest.in"
4793     cp "conftest.in" "conftest.nl"
4794     $as_echo 'FGREP' >> "conftest.nl"
4795     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4798 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4799     # Best one so far, save it but keep looking for a better one
4800     ac_cv_path_FGREP="$ac_path_FGREP"
4801     ac_path_FGREP_max=$ac_count
4802     fi
4803     # 10*(2^10) chars as input seems more than enough
4804     test $ac_count -gt 10 && break
4805     done
4806     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807     esac
4808 michael 912
4809 michael 945 $ac_path_FGREP_found && break 3
4810     done
4811     done
4812 michael 967 done
4813 michael 945 IFS=$as_save_IFS
4814     if test -z "$ac_cv_path_FGREP"; then
4815 michael 1095 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816 michael 945 fi
4817     else
4818     ac_cv_path_FGREP=$FGREP
4819     fi
4820    
4821     fi
4822     fi
4823 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4824 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4825     FGREP="$ac_cv_path_FGREP"
4826    
4827    
4828     test -z "$GREP" && GREP=grep
4829    
4830    
4831    
4832    
4833    
4834    
4835    
4836    
4837    
4838    
4839    
4840    
4841    
4842    
4843    
4844    
4845    
4846    
4847    
4848 michael 912 # Check whether --with-gnu-ld was given.
4849 michael 967 if test "${with_gnu_ld+set}" = set; then :
4850 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4851     else
4852     with_gnu_ld=no
4853     fi
4854    
4855     ac_prog=ld
4856     if test "$GCC" = yes; then
4857     # Check if gcc -print-prog-name=ld gives a path.
4858 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4859 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4860 michael 912 case $host in
4861     *-*-mingw*)
4862     # gcc leaves a trailing carriage return which upsets mingw
4863     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4864     *)
4865     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4866     esac
4867     case $ac_prog in
4868     # Accept absolute paths.
4869     [\\/]* | ?:[\\/]*)
4870     re_direlt='/[^/][^/]*/\.\./'
4871     # Canonicalize the pathname of ld
4872 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4873     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4874     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4875 michael 912 done
4876     test -z "$LD" && LD="$ac_prog"
4877     ;;
4878     "")
4879     # If it fails, then pretend we aren't using GCC.
4880     ac_prog=ld
4881     ;;
4882     *)
4883     # If it is relative, then search for the first ld in PATH.
4884     with_gnu_ld=unknown
4885     ;;
4886     esac
4887     elif test "$with_gnu_ld" = yes; then
4888 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4889 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4890 michael 912 else
4891 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4892 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4893 michael 912 fi
4894 michael 1106 if ${lt_cv_path_LD+:} false; then :
4895 db 941 $as_echo_n "(cached) " >&6
4896 michael 912 else
4897     if test -z "$LD"; then
4898     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4899     for ac_dir in $PATH; do
4900     IFS="$lt_save_ifs"
4901     test -z "$ac_dir" && ac_dir=.
4902     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4903     lt_cv_path_LD="$ac_dir/$ac_prog"
4904     # Check to see if the program is GNU ld. I'd rather use --version,
4905     # but apparently some variants of GNU ld only accept -v.
4906     # Break only if it was the GNU/non-GNU ld that we prefer.
4907     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4908     *GNU* | *'with BFD'*)
4909     test "$with_gnu_ld" != no && break
4910     ;;
4911     *)
4912     test "$with_gnu_ld" != yes && break
4913     ;;
4914     esac
4915     fi
4916     done
4917     IFS="$lt_save_ifs"
4918     else
4919     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4920     fi
4921     fi
4922    
4923     LD="$lt_cv_path_LD"
4924     if test -n "$LD"; then
4925 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4926 db 941 $as_echo "$LD" >&6; }
4927 michael 912 else
4928 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 db 941 $as_echo "no" >&6; }
4930 michael 912 fi
4931 michael 1095 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4932 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4933 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4934 michael 1106 if ${lt_cv_prog_gnu_ld+:} false; then :
4935 db 941 $as_echo_n "(cached) " >&6
4936 michael 912 else
4937     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4938     case `$LD -v 2>&1 </dev/null` in
4939     *GNU* | *'with BFD'*)
4940     lt_cv_prog_gnu_ld=yes
4941     ;;
4942     *)
4943     lt_cv_prog_gnu_ld=no
4944     ;;
4945     esac
4946     fi
4947 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4948 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4949 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4950    
4951    
4952    
4953 michael 945
4954    
4955    
4956    
4957    
4958    
4959 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4960 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4961 michael 1106 if ${lt_cv_path_NM+:} false; then :
4962 db 941 $as_echo_n "(cached) " >&6
4963 michael 912 else
4964     if test -n "$NM"; then
4965     # Let the user override the test.
4966     lt_cv_path_NM="$NM"
4967     else
4968     lt_nm_to_check="${ac_tool_prefix}nm"
4969     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4970     lt_nm_to_check="$lt_nm_to_check nm"
4971     fi
4972     for lt_tmp_nm in $lt_nm_to_check; do
4973     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4974     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4975     IFS="$lt_save_ifs"
4976     test -z "$ac_dir" && ac_dir=.
4977     tmp_nm="$ac_dir/$lt_tmp_nm"
4978     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4979     # Check to see if the nm accepts a BSD-compat flag.
4980     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4981     # nm: unknown option "B" ignored
4982     # Tru64's nm complains that /dev/null is an invalid object file
4983     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4984     */dev/null* | *'Invalid file or object type'*)
4985     lt_cv_path_NM="$tmp_nm -B"
4986     break
4987     ;;
4988     *)
4989     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4990     */dev/null*)
4991     lt_cv_path_NM="$tmp_nm -p"
4992     break
4993     ;;
4994     *)
4995     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4996     continue # so that we can try to find one that supports BSD flags
4997     ;;
4998     esac
4999     ;;
5000     esac
5001     fi
5002     done
5003     IFS="$lt_save_ifs"
5004     done
5005 michael 945 : ${lt_cv_path_NM=no}
5006 michael 912 fi
5007     fi
5008 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5009 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5010 michael 945 if test "$lt_cv_path_NM" != "no"; then
5011     NM="$lt_cv_path_NM"
5012     else
5013     # Didn't find any BSD compatible name lister, look for dumpbin.
5014 michael 1094 if test -n "$DUMPBIN"; then :
5015     # Let the user override the test.
5016     else
5017     if test -n "$ac_tool_prefix"; then
5018     for ac_prog in dumpbin "link -dump"
5019 michael 945 do
5020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5021     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5022 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5024 michael 1106 if ${ac_cv_prog_DUMPBIN+:} false; then :
5025 michael 945 $as_echo_n "(cached) " >&6
5026     else
5027     if test -n "$DUMPBIN"; then
5028     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5029     else
5030     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031     for as_dir in $PATH
5032     do
5033     IFS=$as_save_IFS
5034     test -z "$as_dir" && as_dir=.
5035 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5036 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 michael 945 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5038 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 michael 945 break 2
5040     fi
5041     done
5042 michael 967 done
5043 michael 945 IFS=$as_save_IFS
5044 michael 912
5045 michael 945 fi
5046     fi
5047     DUMPBIN=$ac_cv_prog_DUMPBIN
5048     if test -n "$DUMPBIN"; then
5049 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5050 michael 945 $as_echo "$DUMPBIN" >&6; }
5051     else
5052 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 michael 945 $as_echo "no" >&6; }
5054     fi
5055    
5056    
5057     test -n "$DUMPBIN" && break
5058     done
5059     fi
5060     if test -z "$DUMPBIN"; then
5061     ac_ct_DUMPBIN=$DUMPBIN
5062 michael 1094 for ac_prog in dumpbin "link -dump"
5063 michael 945 do
5064     # Extract the first word of "$ac_prog", so it can be a program name with args.
5065     set dummy $ac_prog; ac_word=$2
5066 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5068 michael 1106 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5069 michael 945 $as_echo_n "(cached) " >&6
5070     else
5071     if test -n "$ac_ct_DUMPBIN"; then
5072     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5073     else
5074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075     for as_dir in $PATH
5076     do
5077     IFS=$as_save_IFS
5078     test -z "$as_dir" && as_dir=.
5079 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5080 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 michael 945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5082 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 michael 945 break 2
5084     fi
5085     done
5086 michael 967 done
5087 michael 945 IFS=$as_save_IFS
5088    
5089     fi
5090     fi
5091     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5092     if test -n "$ac_ct_DUMPBIN"; then
5093 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5094 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5095     else
5096 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 michael 945 $as_echo "no" >&6; }
5098     fi
5099    
5100    
5101     test -n "$ac_ct_DUMPBIN" && break
5102     done
5103    
5104     if test "x$ac_ct_DUMPBIN" = x; then
5105     DUMPBIN=":"
5106     else
5107     case $cross_compiling:$ac_tool_warned in
5108     yes:)
5109 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111     ac_tool_warned=yes ;;
5112     esac
5113     DUMPBIN=$ac_ct_DUMPBIN
5114     fi
5115     fi
5116    
5117 michael 1094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5118     *COFF*)
5119     DUMPBIN="$DUMPBIN -symbols"
5120     ;;
5121     *)
5122     DUMPBIN=:
5123     ;;
5124     esac
5125     fi
5126 michael 945
5127     if test "$DUMPBIN" != ":"; then
5128     NM="$DUMPBIN"
5129     fi
5130     fi
5131     test -z "$NM" && NM=nm
5132    
5133    
5134    
5135    
5136    
5137    
5138 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5139 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5140 michael 1106 if ${lt_cv_nm_interface+:} false; then :
5141 michael 945 $as_echo_n "(cached) " >&6
5142     else
5143     lt_cv_nm_interface="BSD nm"
5144     echo "int some_variable = 0;" > conftest.$ac_ext
5145 michael 1094 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5146 michael 945 (eval "$ac_compile" 2>conftest.err)
5147     cat conftest.err >&5
5148 michael 1094 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5149 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5150     cat conftest.err >&5
5151 michael 1094 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5152 michael 945 cat conftest.out >&5
5153     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5154     lt_cv_nm_interface="MS dumpbin"
5155     fi
5156     rm -f conftest*
5157     fi
5158 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5159 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5160    
5161 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5162 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5163 michael 912 LN_S=$as_ln_s
5164     if test "$LN_S" = "ln -s"; then
5165 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 db 941 $as_echo "yes" >&6; }
5167 michael 912 else
5168 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5169 db 941 $as_echo "no, using $LN_S" >&6; }
5170 michael 912 fi
5171    
5172 michael 945 # find the maximum length of command line arguments
5173 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5174 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5175 michael 1106 if ${lt_cv_sys_max_cmd_len+:} false; then :
5176 michael 945 $as_echo_n "(cached) " >&6
5177     else
5178     i=0
5179     teststring="ABCD"
5180    
5181     case $build_os in
5182     msdosdjgpp*)
5183     # On DJGPP, this test can blow up pretty badly due to problems in libc
5184     # (any single argument exceeding 2000 bytes causes a buffer overrun
5185     # during glob expansion). Even if it were fixed, the result of this
5186     # check would be larger than it should be.
5187     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5188     ;;
5189    
5190     gnu*)
5191     # Under GNU Hurd, this test is not required because there is
5192     # no limit to the length of command line arguments.
5193     # Libtool will interpret -1 as no limit whatsoever
5194     lt_cv_sys_max_cmd_len=-1;
5195     ;;
5196    
5197     cygwin* | mingw* | cegcc*)
5198     # On Win9x/ME, this test blows up -- it succeeds, but takes
5199     # about 5 minutes as the teststring grows exponentially.
5200     # Worse, since 9x/ME are not pre-emptively multitasking,
5201     # you end up with a "frozen" computer, even though with patience
5202     # the test eventually succeeds (with a max line length of 256k).
5203     # Instead, let's just punt: use the minimum linelength reported by
5204     # all of the supported platforms: 8192 (on NT/2K/XP).
5205     lt_cv_sys_max_cmd_len=8192;
5206     ;;
5207    
5208 michael 1094 mint*)
5209     # On MiNT this can take a long time and run out of memory.
5210     lt_cv_sys_max_cmd_len=8192;
5211     ;;
5212    
5213 michael 945 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 michael 1257 os2*)
5239     # The test takes a long time on OS/2.
5240     lt_cv_sys_max_cmd_len=8192
5241     ;;
5242    
5243 michael 945 osf*)
5244     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5245     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5246     # nice to cause kernel panics so lets avoid the loop below.
5247     # First set a reasonable default.
5248     lt_cv_sys_max_cmd_len=16384
5249     #
5250     if test -x /sbin/sysconfig; then
5251     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5252     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5253     esac
5254     fi
5255     ;;
5256     sco3.2v5*)
5257     lt_cv_sys_max_cmd_len=102400
5258     ;;
5259     sysv5* | sco5v6* | sysv4.2uw2*)
5260     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5261     if test -n "$kargmax"; then
5262     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5263     else
5264     lt_cv_sys_max_cmd_len=32768
5265     fi
5266     ;;
5267     *)
5268     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5269     if test -n "$lt_cv_sys_max_cmd_len"; then
5270     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272     else
5273     # Make teststring a little bigger before we do anything with it.
5274     # a 1K string should be a reasonable start.
5275     for i in 1 2 3 4 5 6 7 8 ; do
5276     teststring=$teststring$teststring
5277     done
5278     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5279     # If test is not a shell built-in, we'll probably end up computing a
5280     # maximum length that is only half of the actual maximum length, but
5281     # we can't tell.
5282 michael 1257 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5283 michael 1094 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5284 michael 945 test $i != 17 # 1/2 MB should be enough
5285     do
5286     i=`expr $i + 1`
5287     teststring=$teststring$teststring
5288     done
5289     # Only check the string length outside the loop.
5290     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5291     teststring=
5292     # Add a significant safety factor because C++ compilers can tack on
5293     # massive amounts of additional arguments before passing them to the
5294     # linker. It appears as though 1/2 is a usable value.
5295     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5296     fi
5297     ;;
5298     esac
5299    
5300     fi
5301    
5302     if test -n $lt_cv_sys_max_cmd_len ; then
5303 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5304 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5305     else
5306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5307 michael 945 $as_echo "none" >&6; }
5308     fi
5309     max_cmd_len=$lt_cv_sys_max_cmd_len
5310    
5311    
5312    
5313    
5314    
5315    
5316     : ${CP="cp -f"}
5317     : ${MV="mv -f"}
5318     : ${RM="rm -f"}
5319    
5320 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5321 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5322     # Try some XSI features
5323     xsi_shell=no
5324     ( _lt_dummy="a/b/c"
5325 michael 1106 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5326     = c,a/b,b/c, \
5327 michael 945 && eval 'test $(( 1 + 1 )) -eq 2 \
5328     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5329     && xsi_shell=yes
5330 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5331 michael 945 $as_echo "$xsi_shell" >&6; }
5332    
5333    
5334 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5335 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5336     lt_shell_append=no
5337     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5338     >/dev/null 2>&1 \
5339     && lt_shell_append=yes
5340 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5341 michael 945 $as_echo "$lt_shell_append" >&6; }
5342    
5343    
5344     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5345     lt_unset=unset
5346     else
5347     lt_unset=false
5348     fi
5349    
5350    
5351    
5352    
5353    
5354     # test EBCDIC or ASCII
5355     case `echo X|tr X '\101'` in
5356     A) # ASCII based system
5357     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5358     lt_SP2NL='tr \040 \012'
5359     lt_NL2SP='tr \015\012 \040\040'
5360     ;;
5361     *) # EBCDIC based system
5362     lt_SP2NL='tr \100 \n'
5363     lt_NL2SP='tr \r\n \100\100'
5364     ;;
5365     esac
5366    
5367    
5368    
5369    
5370    
5371    
5372    
5373    
5374    
5375 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5376     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5377     if ${lt_cv_to_host_file_cmd+:} false; then :
5378     $as_echo_n "(cached) " >&6
5379     else
5380     case $host in
5381     *-*-mingw* )
5382     case $build in
5383     *-*-mingw* ) # actually msys
5384     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5385     ;;
5386     *-*-cygwin* )
5387     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5388     ;;
5389     * ) # otherwise, assume *nix
5390     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5391     ;;
5392     esac
5393     ;;
5394     *-*-cygwin* )
5395     case $build in
5396     *-*-mingw* ) # actually msys
5397     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5398     ;;
5399     *-*-cygwin* )
5400     lt_cv_to_host_file_cmd=func_convert_file_noop
5401     ;;
5402     * ) # otherwise, assume *nix
5403     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5404     ;;
5405     esac
5406     ;;
5407     * ) # unhandled hosts (and "normal" native builds)
5408     lt_cv_to_host_file_cmd=func_convert_file_noop
5409     ;;
5410     esac
5411    
5412     fi
5413    
5414     to_host_file_cmd=$lt_cv_to_host_file_cmd
5415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5416     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5417    
5418    
5419    
5420    
5421    
5422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5423     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5424     if ${lt_cv_to_tool_file_cmd+:} false; then :
5425     $as_echo_n "(cached) " >&6
5426     else
5427     #assume ordinary cross tools, or native build.
5428     lt_cv_to_tool_file_cmd=func_convert_file_noop
5429     case $host in
5430     *-*-mingw* )
5431     case $build in
5432     *-*-mingw* ) # actually msys
5433     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5434     ;;
5435     esac
5436     ;;
5437     esac
5438    
5439     fi
5440    
5441     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5443     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5444    
5445    
5446    
5447    
5448    
5449 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5450 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5451 michael 1106 if ${lt_cv_ld_reload_flag+:} false; then :
5452 michael 945 $as_echo_n "(cached) " >&6
5453     else
5454     lt_cv_ld_reload_flag='-r'
5455     fi
5456 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5457 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5458     reload_flag=$lt_cv_ld_reload_flag
5459     case $reload_flag in
5460     "" | " "*) ;;
5461     *) reload_flag=" $reload_flag" ;;
5462     esac
5463     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464     case $host_os in
5465 michael 1106 cygwin* | mingw* | pw32* | cegcc*)
5466     if test "$GCC" != yes; then
5467     reload_cmds=false
5468     fi
5469     ;;
5470 michael 945 darwin*)
5471     if test "$GCC" = yes; then
5472     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5473     else
5474     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475     fi
5476     ;;
5477     esac
5478    
5479    
5480    
5481    
5482    
5483    
5484    
5485    
5486    
5487     if test -n "$ac_tool_prefix"; then
5488     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5489     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5490 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5492 michael 1106 if ${ac_cv_prog_OBJDUMP+:} false; then :
5493 michael 945 $as_echo_n "(cached) " >&6
5494     else
5495     if test -n "$OBJDUMP"; then
5496     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5497     else
5498     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499     for as_dir in $PATH
5500     do
5501     IFS=$as_save_IFS
5502     test -z "$as_dir" && as_dir=.
5503 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5504 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 michael 945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5506 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 michael 945 break 2
5508     fi
5509     done
5510 michael 967 done
5511 michael 945 IFS=$as_save_IFS
5512    
5513     fi
5514     fi
5515     OBJDUMP=$ac_cv_prog_OBJDUMP
5516     if test -n "$OBJDUMP"; then
5517 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5518 michael 945 $as_echo "$OBJDUMP" >&6; }
5519     else
5520 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 michael 945 $as_echo "no" >&6; }
5522     fi
5523    
5524    
5525     fi
5526     if test -z "$ac_cv_prog_OBJDUMP"; then
5527     ac_ct_OBJDUMP=$OBJDUMP
5528     # Extract the first word of "objdump", so it can be a program name with args.
5529     set dummy objdump; ac_word=$2
5530 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5532 michael 1106 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5533 michael 945 $as_echo_n "(cached) " >&6
5534     else
5535     if test -n "$ac_ct_OBJDUMP"; then
5536     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5537     else
5538     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539     for as_dir in $PATH
5540     do
5541     IFS=$as_save_IFS
5542     test -z "$as_dir" && as_dir=.
5543 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5544 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 michael 945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5546 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 michael 945 break 2
5548     fi
5549     done
5550 michael 967 done
5551 michael 945 IFS=$as_save_IFS
5552    
5553     fi
5554     fi
5555     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5556     if test -n "$ac_ct_OBJDUMP"; then
5557 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5558 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5559     else
5560 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 michael 945 $as_echo "no" >&6; }
5562     fi
5563    
5564     if test "x$ac_ct_OBJDUMP" = x; then
5565     OBJDUMP="false"
5566     else
5567     case $cross_compiling:$ac_tool_warned in
5568     yes:)
5569 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571     ac_tool_warned=yes ;;
5572     esac
5573     OBJDUMP=$ac_ct_OBJDUMP
5574     fi
5575     else
5576     OBJDUMP="$ac_cv_prog_OBJDUMP"
5577     fi
5578    
5579     test -z "$OBJDUMP" && OBJDUMP=objdump
5580    
5581    
5582    
5583    
5584    
5585    
5586    
5587    
5588    
5589 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5590 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5591 michael 1106 if ${lt_cv_deplibs_check_method+:} false; then :
5592 db 941 $as_echo_n "(cached) " >&6
5593 michael 912 else
5594     lt_cv_file_magic_cmd='$MAGIC_CMD'
5595     lt_cv_file_magic_test_file=
5596     lt_cv_deplibs_check_method='unknown'
5597     # Need to set the preceding variable on all platforms that support
5598     # interlibrary dependencies.
5599     # 'none' -- dependencies not supported.
5600     # `unknown' -- same as none, but documents that we really don't know.
5601     # 'pass_all' -- all dependencies passed with no checks.
5602     # 'test_compile' -- check by making test program.
5603     # 'file_magic [[regex]]' -- check by looking for files in library path
5604     # which responds to the $file_magic_cmd with a given extended regex.
5605     # If you have `file' or equivalent on your system and you're not sure
5606     # whether `pass_all' will *always* work, you probably want this one.
5607    
5608     case $host_os in
5609 db 941 aix[4-9]*)
5610 michael 912 lt_cv_deplibs_check_method=pass_all
5611     ;;
5612    
5613     beos*)
5614     lt_cv_deplibs_check_method=pass_all
5615     ;;
5616    
5617     bsdi[45]*)
5618     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5619     lt_cv_file_magic_cmd='/usr/bin/file -L'
5620     lt_cv_file_magic_test_file=/shlib/libc.so
5621     ;;
5622    
5623     cygwin*)
5624     # func_win32_libid is a shell function defined in ltmain.sh
5625     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5626     lt_cv_file_magic_cmd='func_win32_libid'
5627     ;;
5628    
5629     mingw* | pw32*)
5630     # Base MSYS/MinGW do not provide the 'file' command needed by
5631     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5632     # unless we find 'file', for example because we are cross-compiling.
5633 michael 1094 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5634     if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5635 michael 912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636     lt_cv_file_magic_cmd='func_win32_libid'
5637     else
5638 michael 1094 # Keep this pattern in sync with the one in func_win32_libid.
5639     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5640 michael 912 lt_cv_file_magic_cmd='$OBJDUMP -f'
5641     fi
5642     ;;
5643    
5644 michael 1094 cegcc*)
5645 michael 945 # use the weaker test based on 'objdump'. See mingw*.
5646     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5647     lt_cv_file_magic_cmd='$OBJDUMP -f'
5648     ;;
5649    
5650 michael 912 darwin* | rhapsody*)
5651     lt_cv_deplibs_check_method=pass_all
5652     ;;
5653    
5654     freebsd* | dragonfly*)
5655 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5656 michael 912 case $host_cpu in
5657     i*86 )
5658     # Not sure whether the presence of OpenBSD here was a mistake.
5659     # Let's accept both of them until this is cleared up.
5660     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5661     lt_cv_file_magic_cmd=/usr/bin/file
5662     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5663     ;;
5664     esac
5665     else
5666     lt_cv_deplibs_check_method=pass_all
5667     fi
5668     ;;
5669    
5670     gnu*)
5671     lt_cv_deplibs_check_method=pass_all
5672     ;;
5673    
5674 michael 1094 haiku*)
5675     lt_cv_deplibs_check_method=pass_all
5676     ;;
5677    
5678 michael 912 hpux10.20* | hpux11*)
5679     lt_cv_file_magic_cmd=/usr/bin/file
5680     case $host_cpu in
5681     ia64*)
5682     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5683     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5684     ;;
5685     hppa*64*)
5686 michael 1094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5687 michael 912 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5688     ;;
5689     *)
5690 michael 1094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5691 michael 912 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5692     ;;
5693     esac
5694     ;;
5695    
5696     interix[3-9]*)
5697     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5699     ;;
5700    
5701     irix5* | irix6* | nonstopux*)
5702     case $LD in
5703     *-32|*"-32 ") libmagic=32-bit;;
5704     *-n32|*"-n32 ") libmagic=N32;;
5705     *-64|*"-64 ") libmagic=64-bit;;
5706     *) libmagic=never-match;;
5707     esac
5708     lt_cv_deplibs_check_method=pass_all
5709     ;;
5710    
5711 michael 1257 # This must be glibc/ELF.
5712 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5713 michael 912 lt_cv_deplibs_check_method=pass_all
5714     ;;
5715    
5716     netbsd*)
5717 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5718 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719     else
5720     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721     fi
5722     ;;
5723    
5724     newos6*)
5725     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5726     lt_cv_file_magic_cmd=/usr/bin/file
5727     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5728     ;;
5729    
5730 michael 945 *nto* | *qnx*)
5731     lt_cv_deplibs_check_method=pass_all
5732 michael 912 ;;
5733    
5734     openbsd*)
5735 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5736 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5737     else
5738     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739     fi
5740     ;;
5741    
5742     osf3* | osf4* | osf5*)
5743     lt_cv_deplibs_check_method=pass_all
5744     ;;
5745    
5746     rdos*)
5747     lt_cv_deplibs_check_method=pass_all
5748     ;;
5749    
5750     solaris*)
5751     lt_cv_deplibs_check_method=pass_all
5752     ;;
5753    
5754 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5755     lt_cv_deplibs_check_method=pass_all
5756     ;;
5757    
5758 michael 912 sysv4 | sysv4.3*)
5759     case $host_vendor in
5760     motorola)
5761     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]'
5762     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5763     ;;
5764     ncr)
5765     lt_cv_deplibs_check_method=pass_all
5766     ;;
5767     sequent)
5768     lt_cv_file_magic_cmd='/bin/file'
5769     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5770     ;;
5771     sni)
5772     lt_cv_file_magic_cmd='/bin/file'
5773     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5774     lt_cv_file_magic_test_file=/lib/libc.so
5775     ;;
5776     siemens)
5777     lt_cv_deplibs_check_method=pass_all
5778     ;;
5779     pc)
5780     lt_cv_deplibs_check_method=pass_all
5781     ;;
5782     esac
5783     ;;
5784    
5785 michael 945 tpf*)
5786 michael 912 lt_cv_deplibs_check_method=pass_all
5787     ;;
5788     esac
5789    
5790     fi
5791 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5792 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5793 michael 1106
5794     file_magic_glob=
5795     want_nocaseglob=no
5796     if test "$build" = "$host"; then
5797     case $host_os in
5798     mingw* | pw32*)
5799     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5800     want_nocaseglob=yes
5801     else
5802     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5803     fi
5804     ;;
5805     esac
5806     fi
5807    
5808 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5809     deplibs_check_method=$lt_cv_deplibs_check_method
5810     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5811    
5812    
5813    
5814    
5815 michael 945
5816    
5817    
5818    
5819    
5820    
5821    
5822    
5823 michael 1106
5824    
5825    
5826    
5827    
5828    
5829    
5830    
5831    
5832    
5833 michael 945 if test -n "$ac_tool_prefix"; then
5834 michael 1106 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5835     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5836 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5838 michael 1106 if ${ac_cv_prog_DLLTOOL+:} false; then :
5839 michael 945 $as_echo_n "(cached) " >&6
5840     else
5841 michael 1106 if test -n "$DLLTOOL"; then
5842     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5843     else
5844     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845     for as_dir in $PATH
5846     do
5847     IFS=$as_save_IFS
5848     test -z "$as_dir" && as_dir=.
5849     for ac_exec_ext in '' $ac_executable_extensions; do
5850 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 michael 1106 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854     fi
5855     done
5856     done
5857     IFS=$as_save_IFS
5858    
5859     fi
5860     fi
5861     DLLTOOL=$ac_cv_prog_DLLTOOL
5862     if test -n "$DLLTOOL"; then
5863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5864     $as_echo "$DLLTOOL" >&6; }
5865     else
5866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867     $as_echo "no" >&6; }
5868     fi
5869    
5870    
5871     fi
5872     if test -z "$ac_cv_prog_DLLTOOL"; then
5873     ac_ct_DLLTOOL=$DLLTOOL
5874     # Extract the first word of "dlltool", so it can be a program name with args.
5875     set dummy dlltool; ac_word=$2
5876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877     $as_echo_n "checking for $ac_word... " >&6; }
5878     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5879     $as_echo_n "(cached) " >&6
5880     else
5881     if test -n "$ac_ct_DLLTOOL"; then
5882     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5883     else
5884     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885     for as_dir in $PATH
5886     do
5887     IFS=$as_save_IFS
5888     test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 michael 1106 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894     fi
5895     done
5896     done
5897     IFS=$as_save_IFS
5898    
5899     fi
5900     fi
5901     ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5902     if test -n "$ac_ct_DLLTOOL"; then
5903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5904     $as_echo "$ac_ct_DLLTOOL" >&6; }
5905     else
5906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907     $as_echo "no" >&6; }
5908     fi
5909    
5910     if test "x$ac_ct_DLLTOOL" = x; then
5911     DLLTOOL="false"
5912     else
5913     case $cross_compiling:$ac_tool_warned in
5914     yes:)
5915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917     ac_tool_warned=yes ;;
5918     esac
5919     DLLTOOL=$ac_ct_DLLTOOL
5920     fi
5921     else
5922     DLLTOOL="$ac_cv_prog_DLLTOOL"
5923     fi
5924    
5925     test -z "$DLLTOOL" && DLLTOOL=dlltool
5926    
5927    
5928    
5929    
5930    
5931    
5932    
5933    
5934    
5935    
5936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5937     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5938     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5939     $as_echo_n "(cached) " >&6
5940     else
5941     lt_cv_sharedlib_from_linklib_cmd='unknown'
5942    
5943     case $host_os in
5944     cygwin* | mingw* | pw32* | cegcc*)
5945     # two different shell functions defined in ltmain.sh
5946     # decide which to use based on capabilities of $DLLTOOL
5947     case `$DLLTOOL --help 2>&1` in
5948     *--identify-strict*)
5949     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5950     ;;
5951     *)
5952     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5953     ;;
5954     esac
5955     ;;
5956     *)
5957     # fallback: assume linklib IS sharedlib
5958     lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5959     ;;
5960     esac
5961    
5962     fi
5963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5964     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5965     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5966     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5967    
5968    
5969    
5970    
5971    
5972    
5973    
5974     if test -n "$ac_tool_prefix"; then
5975     for ac_prog in ar
5976     do
5977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5978     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980     $as_echo_n "checking for $ac_word... " >&6; }
5981     if ${ac_cv_prog_AR+:} false; then :
5982     $as_echo_n "(cached) " >&6
5983     else
5984 michael 945 if test -n "$AR"; then
5985     ac_cv_prog_AR="$AR" # Let the user override the test.
5986     else
5987     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988     for as_dir in $PATH
5989     do
5990     IFS=$as_save_IFS
5991     test -z "$as_dir" && as_dir=.
5992 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5993 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 michael 1106 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5995 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 michael 945 break 2
5997     fi
5998     done
5999 michael 967 done
6000 michael 945 IFS=$as_save_IFS
6001    
6002     fi
6003     fi
6004     AR=$ac_cv_prog_AR
6005     if test -n "$AR"; then
6006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6007 michael 945 $as_echo "$AR" >&6; }
6008     else
6009 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 michael 945 $as_echo "no" >&6; }
6011     fi
6012    
6013    
6014 michael 1106 test -n "$AR" && break
6015     done
6016 michael 945 fi
6017 michael 1106 if test -z "$AR"; then
6018 michael 945 ac_ct_AR=$AR
6019 michael 1106 for ac_prog in ar
6020     do
6021     # Extract the first word of "$ac_prog", so it can be a program name with args.
6022     set dummy $ac_prog; ac_word=$2
6023 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6025 michael 1106 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6026 michael 945 $as_echo_n "(cached) " >&6
6027     else
6028     if test -n "$ac_ct_AR"; then
6029     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6030     else
6031     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032     for as_dir in $PATH
6033     do
6034     IFS=$as_save_IFS
6035     test -z "$as_dir" && as_dir=.
6036 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6037 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 michael 1106 ac_cv_prog_ac_ct_AR="$ac_prog"
6039 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 michael 945 break 2
6041     fi
6042     done
6043 michael 967 done
6044 michael 945 IFS=$as_save_IFS
6045    
6046     fi
6047     fi
6048     ac_ct_AR=$ac_cv_prog_ac_ct_AR
6049     if test -n "$ac_ct_AR"; then
6050 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6051 michael 945 $as_echo "$ac_ct_AR" >&6; }
6052     else
6053 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 michael 945 $as_echo "no" >&6; }
6055     fi
6056    
6057 michael 1106
6058     test -n "$ac_ct_AR" && break
6059     done
6060    
6061 michael 945 if test "x$ac_ct_AR" = x; then
6062     AR="false"
6063     else
6064     case $cross_compiling:$ac_tool_warned in
6065     yes:)
6066 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068     ac_tool_warned=yes ;;
6069     esac
6070     AR=$ac_ct_AR
6071     fi
6072     fi
6073    
6074 michael 1106 : ${AR=ar}
6075     : ${AR_FLAGS=cru}
6076 michael 945
6077    
6078    
6079    
6080    
6081    
6082    
6083    
6084    
6085    
6086    
6087 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6088     $as_echo_n "checking for archiver @FILE support... " >&6; }
6089     if ${lt_cv_ar_at_file+:} false; then :
6090     $as_echo_n "(cached) " >&6
6091     else
6092     lt_cv_ar_at_file=no
6093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094     /* end confdefs.h. */
6095    
6096     int
6097     main ()
6098     {
6099    
6100     ;
6101     return 0;
6102     }
6103     _ACEOF
6104     if ac_fn_c_try_compile "$LINENO"; then :
6105     echo conftest.$ac_objext > conftest.lst
6106     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6107     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6108     (eval $lt_ar_try) 2>&5
6109     ac_status=$?
6110     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111     test $ac_status = 0; }
6112     if test "$ac_status" -eq 0; then
6113     # Ensure the archiver fails upon bogus file names.
6114     rm -f conftest.$ac_objext libconftest.a
6115     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6116     (eval $lt_ar_try) 2>&5
6117     ac_status=$?
6118     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119     test $ac_status = 0; }
6120     if test "$ac_status" -ne 0; then
6121     lt_cv_ar_at_file=@
6122     fi
6123     fi
6124     rm -f conftest.* libconftest.a
6125    
6126     fi
6127     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128    
6129     fi
6130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6131     $as_echo "$lt_cv_ar_at_file" >&6; }
6132    
6133     if test "x$lt_cv_ar_at_file" = xno; then
6134     archiver_list_spec=
6135     else
6136     archiver_list_spec=$lt_cv_ar_at_file
6137     fi
6138    
6139    
6140    
6141    
6142    
6143    
6144    
6145 michael 945 if test -n "$ac_tool_prefix"; then
6146     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6147     set dummy ${ac_tool_prefix}strip; ac_word=$2
6148 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6150 michael 1106 if ${ac_cv_prog_STRIP+:} false; then :
6151 michael 945 $as_echo_n "(cached) " >&6
6152     else
6153     if test -n "$STRIP"; then
6154     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6155     else
6156     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157     for as_dir in $PATH
6158     do
6159     IFS=$as_save_IFS
6160     test -z "$as_dir" && as_dir=.
6161 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6162 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163 michael 945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6164 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 michael 945 break 2
6166     fi
6167     done
6168 michael 967 done
6169 michael 945 IFS=$as_save_IFS
6170    
6171     fi
6172     fi
6173     STRIP=$ac_cv_prog_STRIP
6174     if test -n "$STRIP"; then
6175 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6176 michael 945 $as_echo "$STRIP" >&6; }
6177     else
6178 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 michael 945 $as_echo "no" >&6; }
6180     fi
6181    
6182    
6183     fi
6184     if test -z "$ac_cv_prog_STRIP"; then
6185     ac_ct_STRIP=$STRIP
6186     # Extract the first word of "strip", so it can be a program name with args.
6187     set dummy strip; ac_word=$2
6188 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6190 michael 1106 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6191 michael 945 $as_echo_n "(cached) " >&6
6192     else
6193     if test -n "$ac_ct_STRIP"; then
6194     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6195     else
6196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197     for as_dir in $PATH
6198     do
6199     IFS=$as_save_IFS
6200     test -z "$as_dir" && as_dir=.
6201 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6202 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 michael 945 ac_cv_prog_ac_ct_STRIP="strip"
6204 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 michael 945 break 2
6206     fi
6207     done
6208 michael 967 done
6209 michael 945 IFS=$as_save_IFS
6210    
6211     fi
6212     fi
6213     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6214     if test -n "$ac_ct_STRIP"; then
6215 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6216 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
6217     else
6218 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 michael 945 $as_echo "no" >&6; }
6220     fi
6221    
6222     if test "x$ac_ct_STRIP" = x; then
6223     STRIP=":"
6224     else
6225     case $cross_compiling:$ac_tool_warned in
6226     yes:)
6227 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229     ac_tool_warned=yes ;;
6230     esac
6231     STRIP=$ac_ct_STRIP
6232     fi
6233     else
6234     STRIP="$ac_cv_prog_STRIP"
6235     fi
6236    
6237     test -z "$STRIP" && STRIP=:
6238    
6239    
6240    
6241    
6242    
6243    
6244     if test -n "$ac_tool_prefix"; then
6245     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6246     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6247 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6249 michael 1106 if ${ac_cv_prog_RANLIB+:} false; then :
6250 michael 945 $as_echo_n "(cached) " >&6
6251     else
6252     if test -n "$RANLIB"; then
6253     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254     else
6255     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256     for as_dir in $PATH
6257     do
6258     IFS=$as_save_IFS
6259     test -z "$as_dir" && as_dir=.
6260 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6261 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262 michael 945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6263 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 michael 945 break 2
6265     fi
6266     done
6267 michael 967 done
6268 michael 945 IFS=$as_save_IFS
6269    
6270     fi
6271     fi
6272     RANLIB=$ac_cv_prog_RANLIB
6273     if test -n "$RANLIB"; then
6274 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6275 michael 945 $as_echo "$RANLIB" >&6; }
6276     else
6277 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 michael 945 $as_echo "no" >&6; }
6279     fi
6280    
6281    
6282     fi
6283     if test -z "$ac_cv_prog_RANLIB"; then
6284     ac_ct_RANLIB=$RANLIB
6285     # Extract the first word of "ranlib", so it can be a program name with args.
6286     set dummy ranlib; ac_word=$2
6287 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6289 michael 1106 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6290 michael 945 $as_echo_n "(cached) " >&6
6291     else
6292     if test -n "$ac_ct_RANLIB"; then
6293     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6294     else
6295     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296     for as_dir in $PATH
6297     do
6298     IFS=$as_save_IFS
6299     test -z "$as_dir" && as_dir=.
6300 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6301 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 michael 945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6303 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 michael 945 break 2
6305     fi
6306     done
6307 michael 967 done
6308 michael 945 IFS=$as_save_IFS
6309    
6310     fi
6311     fi
6312     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6313     if test -n "$ac_ct_RANLIB"; then
6314 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6315 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
6316     else
6317 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 michael 945 $as_echo "no" >&6; }
6319     fi
6320    
6321     if test "x$ac_ct_RANLIB" = x; then
6322     RANLIB=":"
6323     else
6324     case $cross_compiling:$ac_tool_warned in
6325     yes:)
6326 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328     ac_tool_warned=yes ;;
6329     esac
6330     RANLIB=$ac_ct_RANLIB
6331     fi
6332     else
6333     RANLIB="$ac_cv_prog_RANLIB"
6334     fi
6335    
6336     test -z "$RANLIB" && RANLIB=:
6337    
6338    
6339    
6340    
6341    
6342    
6343     # Determine commands to create old-style static archives.
6344     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6345     old_postinstall_cmds='chmod 644 $oldlib'
6346     old_postuninstall_cmds=
6347    
6348     if test -n "$RANLIB"; then
6349     case $host_os in
6350     openbsd*)
6351 michael 1257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6352 michael 945 ;;
6353     *)
6354 michael 1257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6355 michael 945 ;;
6356     esac
6357 michael 1257 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6358 michael 945 fi
6359    
6360 michael 1094 case $host_os in
6361     darwin*)
6362     lock_old_archive_extraction=yes ;;
6363     *)
6364     lock_old_archive_extraction=no ;;
6365     esac
6366 michael 945
6367    
6368    
6369    
6370    
6371    
6372    
6373    
6374    
6375    
6376    
6377    
6378    
6379    
6380    
6381    
6382    
6383    
6384    
6385    
6386    
6387    
6388    
6389    
6390    
6391    
6392    
6393    
6394    
6395    
6396    
6397    
6398    
6399 michael 1094
6400    
6401    
6402    
6403    
6404    
6405 michael 912 # If no C compiler was specified, use CC.
6406     LTCC=${LTCC-"$CC"}
6407    
6408     # If no C compiler flags were specified, use CFLAGS.
6409     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6410    
6411     # Allow CC to be a program name with arguments.
6412     compiler=$CC
6413    
6414 michael 945
6415     # Check for command to grab the raw symbol name followed by C symbol from nm.
6416 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6417 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6418 michael 1106 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6419 michael 945 $as_echo_n "(cached) " >&6
6420     else
6421    
6422     # These are sane defaults that work on at least a few old systems.
6423     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6424    
6425     # Character class describing NM global symbol codes.
6426     symcode='[BCDEGRST]'
6427    
6428     # Regexp to match symbols that can be accessed directly from C.
6429     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6430    
6431     # Define system-specific variables.
6432     case $host_os in
6433     aix*)
6434     symcode='[BCDT]'
6435     ;;
6436     cygwin* | mingw* | pw32* | cegcc*)
6437     symcode='[ABCDGISTW]'
6438     ;;
6439     hpux*)
6440     if test "$host_cpu" = ia64; then
6441     symcode='[ABCDEGRST]'
6442     fi
6443     ;;
6444     irix* | nonstopux*)
6445     symcode='[BCDEGRST]'
6446     ;;
6447     osf*)
6448     symcode='[BCDEGQRST]'
6449     ;;
6450     solaris*)
6451     symcode='[BDRT]'
6452     ;;
6453     sco3.2v5*)
6454     symcode='[DT]'
6455     ;;
6456     sysv4.2uw2*)
6457     symcode='[DT]'
6458     ;;
6459     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6460     symcode='[ABDT]'
6461     ;;
6462     sysv4)
6463     symcode='[DFNSTU]'
6464     ;;
6465     esac
6466    
6467     # If we're using GNU nm, then use its standard symbol codes.
6468     case `$NM -V 2>&1` in
6469     *GNU* | *'with BFD'*)
6470     symcode='[ABCDGIRSTW]' ;;
6471     esac
6472    
6473     # Transform an extracted symbol line into a proper C declaration.
6474     # Some systems (esp. on ia64) link data and code symbols differently,
6475     # so use this general approach.
6476     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6477    
6478     # Transform an extracted symbol line into symbol name and symbol address
6479 michael 1106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6480     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'"
6481 michael 945
6482     # Handle CRLF in mingw tool chain
6483     opt_cr=
6484     case $build_os in
6485     mingw*)
6486     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6487     ;;
6488     esac
6489    
6490     # Try without a prefix underscore, then with it.
6491     for ac_symprfx in "" "_"; do
6492    
6493     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6494     symxfrm="\\1 $ac_symprfx\\2 \\2"
6495    
6496     # Write the raw and C identifiers.
6497     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6498     # Fake it for dumpbin and say T for any non-static function
6499     # and D for any global variable.
6500     # Also find C++ and __fastcall symbols from MSVC++,
6501     # which start with @ or ?.
6502     lt_cv_sys_global_symbol_pipe="$AWK '"\
6503     " {last_section=section; section=\$ 3};"\
6504 michael 1257 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6505 michael 945 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6506     " \$ 0!~/External *\|/{next};"\
6507     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6508     " {if(hide[section]) next};"\
6509     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6510     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6511     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6512     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6513     " ' prfx=^$ac_symprfx"
6514     else
6515     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6516     fi
6517 michael 1106 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6518 michael 945
6519     # Check to see that the pipe works correctly.
6520     pipe_works=no
6521    
6522     rm -f conftest*
6523     cat > conftest.$ac_ext <<_LT_EOF
6524     #ifdef __cplusplus
6525     extern "C" {
6526     #endif
6527     char nm_test_var;
6528     void nm_test_func(void);
6529     void nm_test_func(void){}
6530     #ifdef __cplusplus
6531     }
6532     #endif
6533     int main(){nm_test_var='a';nm_test_func();return(0);}
6534     _LT_EOF
6535    
6536 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537 michael 945 (eval $ac_compile) 2>&5
6538     ac_status=$?
6539 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540     test $ac_status = 0; }; then
6541 michael 945 # Now try to grab the symbols.
6542     nlist=conftest.nm
6543 michael 1094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6544     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6545 michael 945 ac_status=$?
6546 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547     test $ac_status = 0; } && test -s "$nlist"; then
6548 michael 945 # Try sorting and uniquifying the output.
6549     if sort "$nlist" | uniq > "$nlist"T; then
6550     mv -f "$nlist"T "$nlist"
6551     else
6552     rm -f "$nlist"T
6553     fi
6554    
6555     # Make sure that we snagged all the symbols we need.
6556     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6557     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6558     cat <<_LT_EOF > conftest.$ac_ext
6559 michael 1106 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6560     #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6561     /* DATA imports from DLLs on WIN32 con't be const, because runtime
6562     relocations are performed -- see ld's documentation on pseudo-relocs. */
6563     # define LT_DLSYM_CONST
6564     #elif defined(__osf__)
6565     /* This system does not cope well with relocations in const data. */
6566     # define LT_DLSYM_CONST
6567     #else
6568     # define LT_DLSYM_CONST const
6569     #endif
6570    
6571 michael 945 #ifdef __cplusplus
6572     extern "C" {
6573     #endif
6574    
6575     _LT_EOF
6576     # Now generate the symbol file.
6577     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6578    
6579     cat <<_LT_EOF >> conftest.$ac_ext
6580    
6581     /* The mapping between symbol names and symbols. */
6582 michael 1106 LT_DLSYM_CONST struct {
6583 michael 945 const char *name;
6584     void *address;
6585     }
6586     lt__PROGRAM__LTX_preloaded_symbols[] =
6587     {
6588     { "@PROGRAM@", (void *) 0 },
6589     _LT_EOF
6590     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6591     cat <<\_LT_EOF >> conftest.$ac_ext
6592     {0, (void *) 0}
6593     };
6594    
6595     /* This works around a problem in FreeBSD linker */
6596     #ifdef FREEBSD_WORKAROUND
6597     static const void *lt_preloaded_setup() {
6598     return lt__PROGRAM__LTX_preloaded_symbols;
6599     }
6600     #endif
6601    
6602     #ifdef __cplusplus
6603     }
6604     #endif
6605     _LT_EOF
6606     # Now try linking the two files.
6607     mv conftest.$ac_objext conftstm.$ac_objext
6608 michael 1106 lt_globsym_save_LIBS=$LIBS
6609     lt_globsym_save_CFLAGS=$CFLAGS
6610 michael 945 LIBS="conftstm.$ac_objext"
6611     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6612 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6613 michael 945 (eval $ac_link) 2>&5
6614     ac_status=$?
6615 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6617 michael 945 pipe_works=yes
6618     fi
6619 michael 1106 LIBS=$lt_globsym_save_LIBS
6620     CFLAGS=$lt_globsym_save_CFLAGS
6621 michael 945 else
6622     echo "cannot find nm_test_func in $nlist" >&5
6623     fi
6624     else
6625     echo "cannot find nm_test_var in $nlist" >&5
6626     fi
6627     else
6628     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6629     fi
6630     else
6631     echo "$progname: failed program was:" >&5
6632     cat conftest.$ac_ext >&5
6633     fi
6634     rm -rf conftest* conftst*
6635    
6636     # Do not use the global_symbol_pipe unless it works.
6637     if test "$pipe_works" = yes; then
6638     break
6639     else
6640     lt_cv_sys_global_symbol_pipe=
6641     fi
6642     done
6643    
6644     fi
6645    
6646     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6647     lt_cv_sys_global_symbol_to_cdecl=
6648     fi
6649     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6650 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6651 michael 945 $as_echo "failed" >&6; }
6652     else
6653 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6654 michael 945 $as_echo "ok" >&6; }
6655     fi
6656    
6657 michael 1106 # Response file support.
6658     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659     nm_file_list_spec='@'
6660     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6661     nm_file_list_spec='@'
6662     fi
6663 michael 945
6664    
6665    
6666    
6667    
6668    
6669    
6670    
6671    
6672    
6673    
6674    
6675    
6676    
6677    
6678    
6679    
6680    
6681    
6682    
6683    
6684 michael 1106
6685    
6686    
6687    
6688    
6689    
6690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6691     $as_echo_n "checking for sysroot... " >&6; }
6692    
6693     # Check whether --with-sysroot was given.
6694     if test "${with_sysroot+set}" = set; then :
6695     withval=$with_sysroot;
6696     else
6697     with_sysroot=no
6698     fi
6699    
6700    
6701     lt_sysroot=
6702     case ${with_sysroot} in #(
6703     yes)
6704     if test "$GCC" = yes; then
6705     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6706     fi
6707     ;; #(
6708     /*)
6709     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6710     ;; #(
6711     no|'')
6712     ;; #(
6713     *)
6714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6715     $as_echo "${with_sysroot}" >&6; }
6716     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6717     ;;
6718     esac
6719    
6720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6721     $as_echo "${lt_sysroot:-no}" >&6; }
6722    
6723    
6724    
6725    
6726    
6727 michael 912 # Check whether --enable-libtool-lock was given.
6728 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6729 michael 912 enableval=$enable_libtool_lock;
6730     fi
6731    
6732     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6733    
6734     # Some flags need to be propagated to the compiler or linker for good
6735     # libtool support.
6736     case $host in
6737     ia64-*-hpux*)
6738     # Find out which ABI we are using.
6739     echo 'int i;' > conftest.$ac_ext
6740 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741 michael 912 (eval $ac_compile) 2>&5
6742     ac_status=$?
6743 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744     test $ac_status = 0; }; then
6745 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6746 michael 945 *ELF-32*)
6747     HPUX_IA64_MODE="32"
6748     ;;
6749     *ELF-64*)
6750     HPUX_IA64_MODE="64"
6751     ;;
6752 michael 912 esac
6753     fi
6754     rm -rf conftest*
6755     ;;
6756     *-*-irix6*)
6757     # Find out which ABI we are using.
6758 michael 1094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6759 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760 michael 912 (eval $ac_compile) 2>&5
6761     ac_status=$?
6762 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763     test $ac_status = 0; }; then
6764 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6765     case `/usr/bin/file conftest.$ac_objext` in
6766     *32-bit*)
6767     LD="${LD-ld} -melf32bsmip"
6768     ;;
6769     *N32*)
6770     LD="${LD-ld} -melf32bmipn32"
6771     ;;
6772     *64-bit*)
6773     LD="${LD-ld} -melf64bmip"
6774     ;;
6775     esac
6776     else
6777     case `/usr/bin/file conftest.$ac_objext` in
6778     *32-bit*)
6779     LD="${LD-ld} -32"
6780     ;;
6781     *N32*)
6782     LD="${LD-ld} -n32"
6783     ;;
6784     *64-bit*)
6785     LD="${LD-ld} -64"
6786     ;;
6787     esac
6788     fi
6789 michael 912 fi
6790     rm -rf conftest*
6791     ;;
6792    
6793     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6794 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6795 michael 912 # Find out which ABI we are using.
6796     echo 'int i;' > conftest.$ac_ext
6797 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6798 michael 912 (eval $ac_compile) 2>&5
6799     ac_status=$?
6800 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801     test $ac_status = 0; }; then
6802 michael 912 case `/usr/bin/file conftest.o` in
6803 michael 945 *32-bit*)
6804     case $host in
6805     x86_64-*kfreebsd*-gnu)
6806     LD="${LD-ld} -m elf_i386_fbsd"
6807     ;;
6808     x86_64-*linux*)
6809     LD="${LD-ld} -m elf_i386"
6810     ;;
6811     ppc64-*linux*|powerpc64-*linux*)
6812     LD="${LD-ld} -m elf32ppclinux"
6813     ;;
6814     s390x-*linux*)
6815     LD="${LD-ld} -m elf_s390"
6816     ;;
6817     sparc64-*linux*)
6818     LD="${LD-ld} -m elf32_sparc"
6819     ;;
6820     esac
6821     ;;
6822     *64-bit*)
6823     case $host in
6824     x86_64-*kfreebsd*-gnu)
6825     LD="${LD-ld} -m elf_x86_64_fbsd"
6826     ;;
6827     x86_64-*linux*)
6828     LD="${LD-ld} -m elf_x86_64"
6829     ;;
6830     ppc*-*linux*|powerpc*-*linux*)
6831     LD="${LD-ld} -m elf64ppc"
6832     ;;
6833     s390*-*linux*|s390*-*tpf*)
6834     LD="${LD-ld} -m elf64_s390"
6835     ;;
6836     sparc*-*linux*)
6837     LD="${LD-ld} -m elf64_sparc"
6838     ;;
6839     esac
6840     ;;
6841 michael 912 esac
6842     fi
6843     rm -rf conftest*
6844     ;;
6845    
6846     *-*-sco3.2v5*)
6847     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6848     SAVE_CFLAGS="$CFLAGS"
6849     CFLAGS="$CFLAGS -belf"
6850 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6851 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6852 michael 1106 if ${lt_cv_cc_needs_belf+:} false; then :
6853 db 941 $as_echo_n "(cached) " >&6
6854 michael 912 else
6855     ac_ext=c
6856     ac_cpp='$CPP $CPPFLAGS'
6857     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860    
6861 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 michael 912 /* end confdefs.h. */
6863    
6864     int
6865     main ()
6866     {
6867    
6868     ;
6869     return 0;
6870     }
6871     _ACEOF
6872 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6873 michael 912 lt_cv_cc_needs_belf=yes
6874     else
6875 michael 967 lt_cv_cc_needs_belf=no
6876 michael 912 fi
6877 michael 967 rm -f core conftest.err conftest.$ac_objext \
6878     conftest$ac_exeext conftest.$ac_ext
6879 michael 912 ac_ext=c
6880     ac_cpp='$CPP $CPPFLAGS'
6881     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6884    
6885     fi
6886 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6887 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6888 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6889     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6890     CFLAGS="$SAVE_CFLAGS"
6891     fi
6892     ;;
6893 michael 1257 *-*solaris*)
6894 michael 912 # Find out which ABI we are using.
6895     echo 'int i;' > conftest.$ac_ext
6896 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 michael 912 (eval $ac_compile) 2>&5
6898     ac_status=$?
6899 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900     test $ac_status = 0; }; then
6901 michael 912 case `/usr/bin/file conftest.o` in
6902     *64-bit*)
6903     case $lt_cv_prog_gnu_ld in
6904 michael 1257 yes*)
6905     case $host in
6906     i?86-*-solaris*)
6907     LD="${LD-ld} -m elf_x86_64"
6908     ;;
6909     sparc*-*-solaris*)
6910     LD="${LD-ld} -m elf64_sparc"
6911     ;;
6912     esac
6913     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6914     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6915     LD="${LD-ld}_sol2"
6916     fi
6917     ;;
6918 db 941 *)
6919 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6920 db 941 LD="${LD-ld} -64"
6921     fi
6922     ;;
6923 michael 912 esac
6924     ;;
6925     esac
6926     fi
6927     rm -rf conftest*
6928     ;;
6929 michael 945 esac
6930 michael 912
6931 michael 945 need_locks="$enable_libtool_lock"
6932 michael 912
6933 michael 1106 if test -n "$ac_tool_prefix"; then
6934     # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6935     set dummy ${ac_tool_prefix}mt; ac_word=$2
6936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937     $as_echo_n "checking for $ac_word... " >&6; }
6938     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6939     $as_echo_n "(cached) " >&6
6940     else
6941     if test -n "$MANIFEST_TOOL"; then
6942     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6943     else
6944     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945     for as_dir in $PATH
6946     do
6947     IFS=$as_save_IFS
6948     test -z "$as_dir" && as_dir=.
6949     for ac_exec_ext in '' $ac_executable_extensions; do
6950 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 michael 1106 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954     fi
6955     done
6956     done
6957     IFS=$as_save_IFS
6958 michael 945
6959 michael 1106 fi
6960     fi
6961     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6962     if test -n "$MANIFEST_TOOL"; then
6963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6964     $as_echo "$MANIFEST_TOOL" >&6; }
6965     else
6966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967     $as_echo "no" >&6; }
6968     fi
6969    
6970    
6971     fi
6972     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6973     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6974     # Extract the first word of "mt", so it can be a program name with args.
6975     set dummy mt; ac_word=$2
6976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977     $as_echo_n "checking for $ac_word... " >&6; }
6978     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6979     $as_echo_n "(cached) " >&6
6980     else
6981     if test -n "$ac_ct_MANIFEST_TOOL"; then
6982     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6983     else
6984     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985     for as_dir in $PATH
6986     do
6987     IFS=$as_save_IFS
6988     test -z "$as_dir" && as_dir=.
6989     for ac_exec_ext in '' $ac_executable_extensions; do
6990 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 michael 1106 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994     fi
6995     done
6996     done
6997     IFS=$as_save_IFS
6998    
6999     fi
7000     fi
7001     ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7002     if test -n "$ac_ct_MANIFEST_TOOL"; then
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7004     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7005     else
7006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007     $as_echo "no" >&6; }
7008     fi
7009    
7010     if test "x$ac_ct_MANIFEST_TOOL" = x; then
7011     MANIFEST_TOOL=":"
7012     else
7013     case $cross_compiling:$ac_tool_warned in
7014     yes:)
7015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017     ac_tool_warned=yes ;;
7018     esac
7019     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7020     fi
7021     else
7022     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7023     fi
7024    
7025     test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7027     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7028     if ${lt_cv_path_mainfest_tool+:} false; then :
7029     $as_echo_n "(cached) " >&6
7030     else
7031     lt_cv_path_mainfest_tool=no
7032     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7033     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7034     cat conftest.err >&5
7035     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7036     lt_cv_path_mainfest_tool=yes
7037     fi
7038     rm -f conftest*
7039     fi
7040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7041     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7042     if test "x$lt_cv_path_mainfest_tool" != xyes; then
7043     MANIFEST_TOOL=:
7044     fi
7045    
7046    
7047    
7048    
7049    
7050    
7051 michael 945 case $host_os in
7052     rhapsody* | darwin*)
7053     if test -n "$ac_tool_prefix"; then
7054     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7055     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7056 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7058 michael 1106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7059 michael 945 $as_echo_n "(cached) " >&6
7060     else
7061     if test -n "$DSYMUTIL"; then
7062     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7063     else
7064     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065     for as_dir in $PATH
7066     do
7067     IFS=$as_save_IFS
7068     test -z "$as_dir" && as_dir=.
7069 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7070 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 michael 945 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7072 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 michael 945 break 2
7074     fi
7075     done
7076 michael 967 done
7077 michael 945 IFS=$as_save_IFS
7078    
7079     fi
7080     fi
7081     DSYMUTIL=$ac_cv_prog_DSYMUTIL
7082     if test -n "$DSYMUTIL"; then
7083 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7084 michael 945 $as_echo "$DSYMUTIL" >&6; }
7085     else
7086 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 michael 945 $as_echo "no" >&6; }
7088     fi
7089    
7090    
7091     fi
7092     if test -z "$ac_cv_prog_DSYMUTIL"; then
7093     ac_ct_DSYMUTIL=$DSYMUTIL
7094     # Extract the first word of "dsymutil", so it can be a program name with args.
7095     set dummy dsymutil; ac_word=$2
7096 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7098 michael 1106 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7099 michael 945 $as_echo_n "(cached) " >&6
7100     else
7101     if test -n "$ac_ct_DSYMUTIL"; then
7102     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7103     else
7104     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105     for as_dir in $PATH
7106     do
7107     IFS=$as_save_IFS
7108     test -z "$as_dir" && as_dir=.
7109 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7110 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 michael 945 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7112 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 michael 945 break 2
7114     fi
7115     done
7116 michael 967 done
7117 michael 945 IFS=$as_save_IFS
7118    
7119     fi
7120     fi
7121     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7122     if test -n "$ac_ct_DSYMUTIL"; then
7123 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7124 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7125     else
7126 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 michael 945 $as_echo "no" >&6; }
7128     fi
7129    
7130     if test "x$ac_ct_DSYMUTIL" = x; then
7131     DSYMUTIL=":"
7132     else
7133     case $cross_compiling:$ac_tool_warned in
7134     yes:)
7135 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137     ac_tool_warned=yes ;;
7138 michael 912 esac
7139 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
7140     fi
7141     else
7142     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7143     fi
7144 michael 912
7145 michael 945 if test -n "$ac_tool_prefix"; then
7146     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7147     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7148 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7150 michael 1106 if ${ac_cv_prog_NMEDIT+:} false; then :
7151 michael 945 $as_echo_n "(cached) " >&6
7152     else
7153     if test -n "$NMEDIT"; then
7154     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7155     else
7156     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157     for as_dir in $PATH
7158     do
7159     IFS=$as_save_IFS
7160     test -z "$as_dir" && as_dir=.
7161 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7162 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 michael 945 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7164 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 michael 945 break 2
7166     fi
7167     done
7168 michael 967 done
7169 michael 945 IFS=$as_save_IFS
7170 michael 912
7171 michael 945 fi
7172     fi
7173     NMEDIT=$ac_cv_prog_NMEDIT
7174     if test -n "$NMEDIT"; then
7175 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7176 michael 945 $as_echo "$NMEDIT" >&6; }
7177     else
7178 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 michael 945 $as_echo "no" >&6; }
7180     fi
7181 michael 912
7182 michael 945
7183     fi
7184     if test -z "$ac_cv_prog_NMEDIT"; then
7185     ac_ct_NMEDIT=$NMEDIT
7186     # Extract the first word of "nmedit", so it can be a program name with args.
7187     set dummy nmedit; ac_word=$2
7188 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7190 michael 1106 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7191 michael 945 $as_echo_n "(cached) " >&6
7192     else
7193     if test -n "$ac_ct_NMEDIT"; then
7194     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7195     else
7196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197     for as_dir in $PATH
7198     do
7199     IFS=$as_save_IFS
7200     test -z "$as_dir" && as_dir=.
7201 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7202 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 michael 945 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7204 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 michael 945 break 2
7206     fi
7207     done
7208 michael 967 done
7209 michael 945 IFS=$as_save_IFS
7210    
7211     fi
7212     fi
7213     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7214     if test -n "$ac_ct_NMEDIT"; then
7215 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7216 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
7217     else
7218 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 michael 945 $as_echo "no" >&6; }
7220     fi
7221    
7222     if test "x$ac_ct_NMEDIT" = x; then
7223     NMEDIT=":"
7224     else
7225     case $cross_compiling:$ac_tool_warned in
7226     yes:)
7227 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229     ac_tool_warned=yes ;;
7230     esac
7231     NMEDIT=$ac_ct_NMEDIT
7232     fi
7233     else
7234     NMEDIT="$ac_cv_prog_NMEDIT"
7235     fi
7236    
7237     if test -n "$ac_tool_prefix"; then
7238     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7239     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7240 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7242 michael 1106 if ${ac_cv_prog_LIPO+:} false; then :
7243 michael 945 $as_echo_n "(cached) " >&6
7244     else
7245     if test -n "$LIPO"; then
7246     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7247     else
7248     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249     for as_dir in $PATH
7250     do
7251     IFS=$as_save_IFS
7252     test -z "$as_dir" && as_dir=.
7253 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7254 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 michael 945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7256 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 michael 945 break 2
7258     fi
7259     done
7260 michael 967 done
7261 michael 945 IFS=$as_save_IFS
7262    
7263     fi
7264     fi
7265     LIPO=$ac_cv_prog_LIPO
7266     if test -n "$LIPO"; then
7267 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7268 michael 945 $as_echo "$LIPO" >&6; }
7269     else
7270 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 michael 945 $as_echo "no" >&6; }
7272     fi
7273    
7274    
7275     fi
7276     if test -z "$ac_cv_prog_LIPO"; then
7277     ac_ct_LIPO=$LIPO
7278     # Extract the first word of "lipo", so it can be a program name with args.
7279     set dummy lipo; ac_word=$2
7280 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7282 michael 1106 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7283 michael 945 $as_echo_n "(cached) " >&6
7284     else
7285     if test -n "$ac_ct_LIPO"; then
7286     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287     else
7288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289     for as_dir in $PATH
7290     do
7291     IFS=$as_save_IFS
7292     test -z "$as_dir" && as_dir=.
7293 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7294 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 michael 945 ac_cv_prog_ac_ct_LIPO="lipo"
7296 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 michael 945 break 2
7298     fi
7299     done
7300 michael 967 done
7301 michael 945 IFS=$as_save_IFS
7302    
7303     fi
7304     fi
7305     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306     if test -n "$ac_ct_LIPO"; then
7307 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7308 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
7309     else
7310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 michael 945 $as_echo "no" >&6; }
7312     fi
7313    
7314     if test "x$ac_ct_LIPO" = x; then
7315     LIPO=":"
7316     else
7317     case $cross_compiling:$ac_tool_warned in
7318     yes:)
7319 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321     ac_tool_warned=yes ;;
7322     esac
7323     LIPO=$ac_ct_LIPO
7324     fi
7325     else
7326     LIPO="$ac_cv_prog_LIPO"
7327     fi
7328    
7329     if test -n "$ac_tool_prefix"; then
7330     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7331     set dummy ${ac_tool_prefix}otool; ac_word=$2
7332 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7334 michael 1106 if ${ac_cv_prog_OTOOL+:} false; then :
7335 michael 945 $as_echo_n "(cached) " >&6
7336     else
7337     if test -n "$OTOOL"; then
7338     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7339     else
7340     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341     for as_dir in $PATH
7342     do
7343     IFS=$as_save_IFS
7344     test -z "$as_dir" && as_dir=.
7345 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7346 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 michael 945 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7348 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 michael 945 break 2
7350     fi
7351     done
7352 michael 967 done
7353 michael 945 IFS=$as_save_IFS
7354    
7355     fi
7356     fi
7357     OTOOL=$ac_cv_prog_OTOOL
7358     if test -n "$OTOOL"; then
7359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7360 michael 945 $as_echo "$OTOOL" >&6; }
7361     else
7362 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 michael 945 $as_echo "no" >&6; }
7364     fi
7365    
7366    
7367     fi
7368     if test -z "$ac_cv_prog_OTOOL"; then
7369     ac_ct_OTOOL=$OTOOL
7370     # Extract the first word of "otool", so it can be a program name with args.
7371     set dummy otool; ac_word=$2
7372 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7374 michael 1106 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7375 michael 945 $as_echo_n "(cached) " >&6
7376     else
7377     if test -n "$ac_ct_OTOOL"; then
7378     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7379     else
7380     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381     for as_dir in $PATH
7382     do
7383     IFS=$as_save_IFS
7384     test -z "$as_dir" && as_dir=.
7385 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7386 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 michael 945 ac_cv_prog_ac_ct_OTOOL="otool"
7388 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 michael 945 break 2
7390     fi
7391     done
7392 michael 967 done
7393 michael 945 IFS=$as_save_IFS
7394    
7395     fi
7396     fi
7397     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7398     if test -n "$ac_ct_OTOOL"; then
7399 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7400 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
7401     else
7402 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 michael 945 $as_echo "no" >&6; }
7404     fi
7405    
7406     if test "x$ac_ct_OTOOL" = x; then
7407     OTOOL=":"
7408     else
7409     case $cross_compiling:$ac_tool_warned in
7410     yes:)
7411 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413     ac_tool_warned=yes ;;
7414     esac
7415     OTOOL=$ac_ct_OTOOL
7416     fi
7417     else
7418     OTOOL="$ac_cv_prog_OTOOL"
7419     fi
7420    
7421     if test -n "$ac_tool_prefix"; then
7422     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7423     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7424 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7426 michael 1106 if ${ac_cv_prog_OTOOL64+:} false; then :
7427 michael 945 $as_echo_n "(cached) " >&6
7428     else
7429     if test -n "$OTOOL64"; then
7430     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7431     else
7432     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433     for as_dir in $PATH
7434     do
7435     IFS=$as_save_IFS
7436     test -z "$as_dir" && as_dir=.
7437 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7438 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 michael 945 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7440 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 michael 945 break 2
7442     fi
7443     done
7444 michael 967 done
7445 michael 945 IFS=$as_save_IFS
7446    
7447     fi
7448     fi
7449     OTOOL64=$ac_cv_prog_OTOOL64
7450     if test -n "$OTOOL64"; then
7451 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7452 michael 945 $as_echo "$OTOOL64" >&6; }
7453     else
7454 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 michael 945 $as_echo "no" >&6; }
7456     fi
7457    
7458    
7459     fi
7460     if test -z "$ac_cv_prog_OTOOL64"; then
7461     ac_ct_OTOOL64=$OTOOL64
7462     # Extract the first word of "otool64", so it can be a program name with args.
7463     set dummy otool64; ac_word=$2
7464 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7466 michael 1106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7467 michael 945 $as_echo_n "(cached) " >&6
7468     else
7469     if test -n "$ac_ct_OTOOL64"; then
7470     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7471     else
7472     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473     for as_dir in $PATH
7474     do
7475     IFS=$as_save_IFS
7476     test -z "$as_dir" && as_dir=.
7477 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7478 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 michael 945 ac_cv_prog_ac_ct_OTOOL64="otool64"
7480 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 michael 945 break 2
7482     fi
7483     done
7484 michael 967 done
7485 michael 945 IFS=$as_save_IFS
7486    
7487     fi
7488     fi
7489     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7490     if test -n "$ac_ct_OTOOL64"; then
7491 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7492 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
7493     else
7494 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 michael 945 $as_echo "no" >&6; }
7496     fi
7497    
7498     if test "x$ac_ct_OTOOL64" = x; then
7499     OTOOL64=":"
7500     else
7501     case $cross_compiling:$ac_tool_warned in
7502     yes:)
7503 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505     ac_tool_warned=yes ;;
7506     esac
7507     OTOOL64=$ac_ct_OTOOL64
7508     fi
7509     else
7510     OTOOL64="$ac_cv_prog_OTOOL64"
7511     fi
7512    
7513    
7514    
7515    
7516    
7517    
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527    
7528    
7529    
7530    
7531    
7532    
7533    
7534    
7535    
7536    
7537    
7538    
7539 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7540 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
7541 michael 1106 if ${lt_cv_apple_cc_single_mod+:} false; then :
7542 michael 945 $as_echo_n "(cached) " >&6
7543     else
7544     lt_cv_apple_cc_single_mod=no
7545     if test -z "${LT_MULTI_MODULE}"; then
7546     # By default we will add the -single_module flag. You can override
7547     # by either setting the environment variable LT_MULTI_MODULE
7548     # non-empty at configure time, or by adding -multi_module to the
7549     # link flags.
7550     rm -rf libconftest.dylib*
7551     echo "int foo(void){return 1;}" > conftest.c
7552     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7553     -dynamiclib -Wl,-single_module conftest.c" >&5
7554     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7555     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7556     _lt_result=$?
7557 michael 1257 # If there is a non-empty error log, and "single_module"
7558     # appears in it, assume the flag caused a linker warning
7559     if test -s conftest.err && $GREP single_module conftest.err; then
7560     cat conftest.err >&5
7561     # Otherwise, if the output was created with a 0 exit code from
7562     # the compiler, it worked.
7563     elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7564 michael 945 lt_cv_apple_cc_single_mod=yes
7565     else
7566     cat conftest.err >&5
7567     fi
7568     rm -rf libconftest.dylib*
7569     rm -f conftest.*
7570     fi
7571     fi
7572 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7573 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7574 michael 1257
7575 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7576 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7577 michael 1106 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7578 michael 945 $as_echo_n "(cached) " >&6
7579     else
7580     lt_cv_ld_exported_symbols_list=no
7581     save_LDFLAGS=$LDFLAGS
7582     echo "_main" > conftest.sym
7583     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7584 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 michael 945 /* end confdefs.h. */
7586    
7587     int
7588     main ()
7589     {
7590    
7591     ;
7592     return 0;
7593     }
7594     _ACEOF
7595 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7596 michael 945 lt_cv_ld_exported_symbols_list=yes
7597     else
7598 michael 967 lt_cv_ld_exported_symbols_list=no
7599 michael 945 fi
7600 michael 967 rm -f core conftest.err conftest.$ac_objext \
7601     conftest$ac_exeext conftest.$ac_ext
7602 michael 945 LDFLAGS="$save_LDFLAGS"
7603    
7604     fi
7605 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7606 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7607 michael 1257
7608 michael 1094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7609     $as_echo_n "checking for -force_load linker flag... " >&6; }
7610 michael 1106 if ${lt_cv_ld_force_load+:} false; then :
7611 michael 1094 $as_echo_n "(cached) " >&6
7612     else
7613     lt_cv_ld_force_load=no
7614     cat > conftest.c << _LT_EOF
7615     int forced_loaded() { return 2;}
7616     _LT_EOF
7617     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7618     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7619     echo "$AR cru libconftest.a conftest.o" >&5
7620     $AR cru libconftest.a conftest.o 2>&5
7621     echo "$RANLIB libconftest.a" >&5
7622     $RANLIB libconftest.a 2>&5
7623     cat > conftest.c << _LT_EOF
7624     int main() { return 0;}
7625     _LT_EOF
7626     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7627     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7628     _lt_result=$?
7629 michael 1257 if test -s conftest.err && $GREP force_load conftest.err; then
7630     cat conftest.err >&5
7631     elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7632 michael 1094 lt_cv_ld_force_load=yes
7633     else
7634     cat conftest.err >&5
7635     fi
7636     rm -f conftest.err libconftest.a conftest conftest.c
7637     rm -rf conftest.dSYM
7638    
7639     fi
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7641     $as_echo "$lt_cv_ld_force_load" >&6; }
7642 michael 945 case $host_os in
7643     rhapsody* | darwin1.[012])
7644     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7645     darwin1.*)
7646     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7647     darwin*) # darwin 5.x on
7648     # if running on 10.5 or later, the deployment target defaults
7649     # to the OS version, if on x86, and 10.4, the deployment
7650     # target defaults to 10.4. Don't you love it?
7651     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7652     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7653     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7654     10.[012]*)
7655     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7656     10.*)
7657     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7658     esac
7659     ;;
7660     esac
7661     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7662     _lt_dar_single_mod='$single_module'
7663     fi
7664     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7665     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7666     else
7667     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7668     fi
7669 michael 1094 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7670 michael 945 _lt_dsymutil='~$DSYMUTIL $lib || :'
7671     else
7672     _lt_dsymutil=
7673     fi
7674     ;;
7675     esac
7676    
7677 michael 912 ac_ext=c
7678     ac_cpp='$CPP $CPPFLAGS'
7679     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7682 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7683 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7684 michael 912 # On Suns, sometimes $CPP names a directory.
7685     if test -n "$CPP" && test -d "$CPP"; then
7686     CPP=
7687     fi
7688     if test -z "$CPP"; then
7689 michael 1106 if ${ac_cv_prog_CPP+:} false; then :
7690 db 941 $as_echo_n "(cached) " >&6
7691 michael 912 else
7692     # Double quotes because CPP needs to be expanded
7693     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7694     do
7695     ac_preproc_ok=false
7696     for ac_c_preproc_warn_flag in '' yes
7697     do
7698     # Use a header file that comes with gcc, so configuring glibc
7699     # with a fresh cross-compiler works.
7700     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701     # <limits.h> exists even on freestanding compilers.
7702     # On the NeXT, cc -E runs the code through the compiler's parser,
7703     # not just through cpp. "Syntax error" is here to catch this case.
7704 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 michael 912 /* end confdefs.h. */
7706     #ifdef __STDC__
7707     # include <limits.h>
7708     #else
7709     # include <assert.h>
7710     #endif
7711     Syntax error
7712     _ACEOF
7713 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7714    
7715 michael 912 else
7716     # Broken: fails on valid input.
7717     continue
7718     fi
7719 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7720 michael 912
7721     # OK, works on sane cases. Now check whether nonexistent headers
7722     # can be detected and how.
7723 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 michael 912 /* end confdefs.h. */
7725     #include <ac_nonexistent.h>
7726     _ACEOF
7727 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7728 michael 912 # Broken: success on invalid input.
7729     continue
7730     else
7731     # Passes both tests.
7732     ac_preproc_ok=:
7733     break
7734     fi
7735 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7736 michael 912
7737     done
7738     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7739 michael 1095 rm -f conftest.i conftest.err conftest.$ac_ext
7740 michael 967 if $ac_preproc_ok; then :
7741 michael 912 break
7742     fi
7743    
7744     done
7745     ac_cv_prog_CPP=$CPP
7746    
7747     fi
7748     CPP=$ac_cv_prog_CPP
7749     else
7750     ac_cv_prog_CPP=$CPP
7751     fi
7752 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7753 db 941 $as_echo "$CPP" >&6; }
7754 michael 912 ac_preproc_ok=false
7755     for ac_c_preproc_warn_flag in '' yes
7756     do
7757     # Use a header file that comes with gcc, so configuring glibc
7758     # with a fresh cross-compiler works.
7759     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7760     # <limits.h> exists even on freestanding compilers.
7761     # On the NeXT, cc -E runs the code through the compiler's parser,
7762     # not just through cpp. "Syntax error" is here to catch this case.
7763 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 michael 912 /* end confdefs.h. */
7765     #ifdef __STDC__
7766     # include <limits.h>
7767     #else
7768     # include <assert.h>
7769     #endif
7770     Syntax error
7771     _ACEOF
7772 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7773    
7774 michael 912 else
7775     # Broken: fails on valid input.
7776     continue
7777     fi
7778 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7779 michael 912
7780     # OK, works on sane cases. Now check whether nonexistent headers
7781     # can be detected and how.
7782 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 michael 912 /* end confdefs.h. */
7784     #include <ac_nonexistent.h>
7785     _ACEOF
7786 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7787 michael 912 # Broken: success on invalid input.
7788     continue
7789     else
7790     # Passes both tests.
7791     ac_preproc_ok=:
7792     break
7793     fi
7794 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7795 michael 912
7796     done
7797     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7798 michael 1095 rm -f conftest.i conftest.err conftest.$ac_ext
7799 michael 967 if $ac_preproc_ok; then :
7800    
7801 michael 912 else
7802 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7803 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7804 michael 1095 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7805     See \`config.log' for more details" "$LINENO" 5; }
7806 michael 912 fi
7807    
7808     ac_ext=c
7809     ac_cpp='$CPP $CPPFLAGS'
7810     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813    
7814    
7815 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7816 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7817 michael 1106 if ${ac_cv_header_stdc+:} false; then :
7818 db 941 $as_echo_n "(cached) " >&6
7819 michael 912 else
7820 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 michael 912 /* end confdefs.h. */
7822     #include <stdlib.h>
7823     #include <stdarg.h>
7824     #include <string.h>
7825     #include <float.h>
7826    
7827     int
7828     main ()
7829     {
7830    
7831     ;
7832     return 0;
7833     }
7834     _ACEOF
7835 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7836 michael 912 ac_cv_header_stdc=yes
7837     else
7838 michael 967 ac_cv_header_stdc=no
7839 michael 912 fi
7840     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841    
7842     if test $ac_cv_header_stdc = yes; then
7843     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7844 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 michael 912 /* end confdefs.h. */
7846     #include <string.h>
7847    
7848     _ACEOF
7849     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7851    
7852 michael 912 else
7853     ac_cv_header_stdc=no
7854     fi
7855     rm -f conftest*
7856    
7857     fi
7858    
7859     if test $ac_cv_header_stdc = yes; then
7860     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7861 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 michael 912 /* end confdefs.h. */
7863     #include <stdlib.h>
7864    
7865     _ACEOF
7866     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7867 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7868    
7869 michael 912 else
7870     ac_cv_header_stdc=no
7871     fi
7872     rm -f conftest*
7873    
7874     fi
7875    
7876     if test $ac_cv_header_stdc = yes; then
7877     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7878 michael 967 if test "$cross_compiling" = yes; then :
7879 michael 912 :
7880     else
7881 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 michael 912 /* end confdefs.h. */
7883     #include <ctype.h>
7884     #include <stdlib.h>
7885     #if ((' ' & 0x0FF) == 0x020)
7886     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7887     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7888     #else
7889     # define ISLOWER(c) \
7890     (('a' <= (c) && (c) <= 'i') \
7891     || ('j' <= (c) && (c) <= 'r') \
7892     || ('s' <= (c) && (c) <= 'z'))
7893     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7894     #endif
7895    
7896     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7897     int
7898     main ()
7899     {
7900     int i;
7901     for (i = 0; i < 256; i++)
7902     if (XOR (islower (i), ISLOWER (i))
7903     || toupper (i) != TOUPPER (i))
7904     return 2;
7905     return 0;
7906     }
7907     _ACEOF
7908 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7909    
7910 michael 912 else
7911 michael 967 ac_cv_header_stdc=no
7912 michael 912 fi
7913 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914     conftest.$ac_objext conftest.beam conftest.$ac_ext
7915 michael 912 fi
7916    
7917     fi
7918     fi
7919 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7920 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7921 michael 912 if test $ac_cv_header_stdc = yes; then
7922    
7923 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7924 michael 912
7925     fi
7926    
7927     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7928     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7929     inttypes.h stdint.h unistd.h
7930 michael 967 do :
7931     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7932     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7933     "
7934 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7935 michael 912 cat >>confdefs.h <<_ACEOF
7936 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7937 michael 912 _ACEOF
7938    
7939     fi
7940    
7941     done
7942    
7943    
7944     for ac_header in dlfcn.h
7945 michael 967 do :
7946     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7947     "
7948 michael 1106 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7949 michael 912 cat >>confdefs.h <<_ACEOF
7950 michael 967 #define HAVE_DLFCN_H 1
7951 michael 912 _ACEOF
7952    
7953     fi
7954    
7955     done
7956    
7957    
7958    
7959 michael 1094
7960    
7961 michael 945 # Set options
7962     enable_dlopen=yes
7963 michael 977 # Check whether --enable-static was given.
7964     if test "${enable_static+set}" = set; then :
7965     enableval=$enable_static; p=${PACKAGE-default}
7966 michael 945 case $enableval in
7967 michael 977 yes) enable_static=yes ;;
7968     no) enable_static=no ;;
7969 michael 945 *)
7970 michael 977 enable_static=no
7971 michael 945 # Look at the argument we got. We use all the common list separators.
7972     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7973     for pkg in $enableval; do
7974     IFS="$lt_save_ifs"
7975     if test "X$pkg" = "X$p"; then
7976 michael 977 enable_static=yes
7977 michael 945 fi
7978     done
7979     IFS="$lt_save_ifs"
7980     ;;
7981     esac
7982 michael 912 else
7983 michael 977 enable_static=no
7984 michael 912 fi
7985    
7986    
7987    
7988    
7989    
7990    
7991    
7992    
7993    
7994 michael 977
7995    
7996     enable_win32_dll=no
7997    
7998    
7999     # Check whether --enable-shared was given.
8000     if test "${enable_shared+set}" = set; then :
8001     enableval=$enable_shared; p=${PACKAGE-default}
8002 michael 945 case $enableval in
8003 michael 977 yes) enable_shared=yes ;;
8004     no) enable_shared=no ;;
8005 michael 945 *)
8006 michael 977 enable_shared=no
8007 michael 945 # Look at the argument we got. We use all the common list separators.
8008     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009     for pkg in $enableval; do
8010     IFS="$lt_save_ifs"
8011     if test "X$pkg" = "X$p"; then
8012 michael 977 enable_shared=yes
8013 michael 945 fi
8014     done
8015     IFS="$lt_save_ifs"
8016 michael 912 ;;
8017     esac
8018     else
8019 michael 977 enable_shared=yes
8020 michael 912 fi
8021    
8022    
8023    
8024    
8025    
8026    
8027    
8028    
8029    
8030    
8031 michael 977
8032 michael 945 # Check whether --with-pic was given.
8033 michael 967 if test "${with_pic+set}" = set; then :
8034 michael 1257 withval=$with_pic; lt_p=${PACKAGE-default}
8035     case $withval in
8036     yes|no) pic_mode=$withval ;;
8037     *)
8038     pic_mode=default
8039     # Look at the argument we got. We use all the common list separators.
8040     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041     for lt_pkg in $withval; do
8042     IFS="$lt_save_ifs"
8043     if test "X$lt_pkg" = "X$lt_p"; then
8044     pic_mode=yes
8045     fi
8046     done
8047     IFS="$lt_save_ifs"
8048     ;;
8049     esac
8050 michael 912 else
8051 michael 945 pic_mode=default
8052 michael 912 fi
8053    
8054    
8055 michael 945 test -z "$pic_mode" && pic_mode=default
8056 michael 912
8057    
8058    
8059    
8060    
8061    
8062    
8063 michael 945 # Check whether --enable-fast-install was given.
8064 michael 967 if test "${enable_fast_install+set}" = set; then :
8065 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
8066     case $enableval in
8067     yes) enable_fast_install=yes ;;
8068     no) enable_fast_install=no ;;
8069     *)
8070     enable_fast_install=no
8071     # Look at the argument we got. We use all the common list separators.
8072     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073     for pkg in $enableval; do
8074     IFS="$lt_save_ifs"
8075     if test "X$pkg" = "X$p"; then
8076     enable_fast_install=yes
8077     fi
8078     done
8079     IFS="$lt_save_ifs"
8080     ;;
8081     esac
8082 michael 912 else
8083 michael 945 enable_fast_install=yes
8084 michael 912 fi
8085    
8086    
8087    
8088    
8089    
8090    
8091    
8092    
8093    
8094    
8095    
8096 michael 945 # This can be used to rebuild libtool when needed
8097     LIBTOOL_DEPS="$ltmain"
8098 michael 912
8099 michael 945 # Always use our own libtool.
8100     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8101 michael 912
8102    
8103    
8104    
8105    
8106    
8107    
8108    
8109    
8110    
8111    
8112    
8113    
8114    
8115    
8116    
8117    
8118    
8119    
8120    
8121    
8122    
8123    
8124    
8125    
8126 michael 1094
8127 michael 1257
8128    
8129    
8130    
8131 michael 945 test -z "$LN_S" && LN_S="ln -s"
8132 michael 912
8133    
8134    
8135    
8136    
8137    
8138    
8139    
8140    
8141    
8142    
8143    
8144    
8145    
8146 michael 945 if test -n "${ZSH_VERSION+set}" ; then
8147     setopt NO_GLOB_SUBST
8148 michael 912 fi
8149    
8150 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8151 db 941 $as_echo_n "checking for objdir... " >&6; }
8152 michael 1106 if ${lt_cv_objdir+:} false; then :
8153 db 941 $as_echo_n "(cached) " >&6
8154 michael 912 else
8155     rm -f .libs 2>/dev/null
8156     mkdir .libs 2>/dev/null
8157     if test -d .libs; then
8158     lt_cv_objdir=.libs
8159     else
8160     # MS-DOS does not allow filenames that begin with a dot.
8161     lt_cv_objdir=_libs
8162     fi
8163     rmdir .libs 2>/dev/null
8164     fi
8165 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8166 db 941 $as_echo "$lt_cv_objdir" >&6; }
8167 michael 912 objdir=$lt_cv_objdir
8168    
8169    
8170    
8171    
8172    
8173 michael 945 cat >>confdefs.h <<_ACEOF
8174     #define LT_OBJDIR "$lt_cv_objdir/"
8175     _ACEOF
8176    
8177    
8178    
8179    
8180 michael 912 case $host_os in
8181     aix3*)
8182     # AIX sometimes has problems with the GCC collect2 program. For some
8183     # reason, if we set the COLLECT_NAMES environment variable, the problems
8184     # vanish in a puff of smoke.
8185     if test "X${COLLECT_NAMES+set}" != Xset; then
8186     COLLECT_NAMES=
8187     export COLLECT_NAMES
8188     fi
8189     ;;
8190     esac
8191    
8192     # Global variables:
8193 michael 945 ofile=libtool
8194 michael 912 can_build_shared=yes
8195    
8196     # All known linkers require a `.a' archive for static linking (except MSVC,
8197     # which needs '.lib').
8198     libext=a
8199 michael 945
8200 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
8201    
8202     old_CC="$CC"
8203     old_CFLAGS="$CFLAGS"
8204    
8205     # Set sane defaults for various variables
8206     test -z "$CC" && CC=cc
8207     test -z "$LTCC" && LTCC=$CC
8208     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8209     test -z "$LD" && LD=ld
8210     test -z "$ac_objext" && ac_objext=o
8211    
8212     for cc_temp in $compiler""; do
8213     case $cc_temp in
8214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8216     \-*) ;;
8217     *) break;;
8218     esac
8219     done
8220 michael 1094 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8221 michael 912
8222    
8223     # Only perform the check for file, if the check method requires it
8224 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8225 michael 912 case $deplibs_check_method in
8226     file_magic*)
8227     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8228 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8229 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8230 michael 1106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8231 db 941 $as_echo_n "(cached) " >&6
8232 michael 912 else
8233     case $MAGIC_CMD in
8234     [\\/*] | ?:[\\/]*)
8235     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8236     ;;
8237     *)
8238     lt_save_MAGIC_CMD="$MAGIC_CMD"
8239     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8240     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8241     for ac_dir in $ac_dummy; do
8242     IFS="$lt_save_ifs"
8243     test -z "$ac_dir" && ac_dir=.
8244     if test -f $ac_dir/${ac_tool_prefix}file; then
8245     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8246     if test -n "$file_magic_test_file"; then
8247     case $deplibs_check_method in
8248     "file_magic "*)
8249     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8250     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8252     $EGREP "$file_magic_regex" > /dev/null; then
8253     :
8254     else
8255 michael 945 cat <<_LT_EOF 1>&2
8256 michael 912
8257     *** Warning: the command libtool uses to detect shared libraries,
8258     *** $file_magic_cmd, produces output that libtool cannot recognize.
8259     *** The result is that libtool may fail to recognize shared libraries
8260     *** as such. This will affect the creation of libtool libraries that
8261     *** depend on shared libraries, but programs linked with such libtool
8262     *** libraries will work regardless of this problem. Nevertheless, you
8263     *** may want to report the problem to your system manager and/or to
8264     *** bug-libtool@gnu.org
8265    
8266 michael 945 _LT_EOF
8267 michael 912 fi ;;
8268     esac
8269     fi
8270     break
8271     fi
8272     done
8273     IFS="$lt_save_ifs"
8274     MAGIC_CMD="$lt_save_MAGIC_CMD"
8275     ;;
8276     esac
8277     fi
8278    
8279     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280     if test -n "$MAGIC_CMD"; then
8281 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8282 db 941 $as_echo "$MAGIC_CMD" >&6; }
8283 michael 912 else
8284 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 db 941 $as_echo "no" >&6; }
8286 michael 912 fi
8287    
8288 michael 945
8289    
8290    
8291    
8292 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
8293     if test -n "$ac_tool_prefix"; then
8294 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8295 db 941 $as_echo_n "checking for file... " >&6; }
8296 michael 1106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8297 db 941 $as_echo_n "(cached) " >&6
8298 michael 912 else
8299     case $MAGIC_CMD in
8300     [\\/*] | ?:[\\/]*)
8301     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8302     ;;
8303     *)
8304     lt_save_MAGIC_CMD="$MAGIC_CMD"
8305     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8306     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8307     for ac_dir in $ac_dummy; do
8308     IFS="$lt_save_ifs"
8309     test -z "$ac_dir" && ac_dir=.
8310     if test -f $ac_dir/file; then
8311     lt_cv_path_MAGIC_CMD="$ac_dir/file"
8312     if test -n "$file_magic_test_file"; then
8313     case $deplibs_check_method in
8314     "file_magic "*)
8315     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8316     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8318     $EGREP "$file_magic_regex" > /dev/null; then
8319     :
8320     else
8321 michael 945 cat <<_LT_EOF 1>&2
8322 michael 912
8323     *** Warning: the command libtool uses to detect shared libraries,
8324     *** $file_magic_cmd, produces output that libtool cannot recognize.
8325     *** The result is that libtool may fail to recognize shared libraries
8326     *** as such. This will affect the creation of libtool libraries that
8327     *** depend on shared libraries, but programs linked with such libtool
8328     *** libraries will work regardless of this problem. Nevertheless, you
8329     *** may want to report the problem to your system manager and/or to
8330     *** bug-libtool@gnu.org
8331    
8332 michael 945 _LT_EOF
8333 michael 912 fi ;;
8334     esac
8335     fi
8336     break
8337     fi
8338     done
8339     IFS="$lt_save_ifs"
8340     MAGIC_CMD="$lt_save_MAGIC_CMD"
8341     ;;
8342     esac
8343     fi
8344    
8345     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8346     if test -n "$MAGIC_CMD"; then
8347 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8348 db 941 $as_echo "$MAGIC_CMD" >&6; }
8349 michael 912 else
8350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 db 941 $as_echo "no" >&6; }
8352 michael 912 fi
8353    
8354 michael 945
8355 michael 912 else
8356     MAGIC_CMD=:
8357     fi
8358     fi
8359    
8360     fi
8361     ;;
8362     esac
8363    
8364 michael 945 # Use C for the default configuration in the libtool script
8365 db 941
8366 michael 912 lt_save_CC="$CC"
8367     ac_ext=c
8368     ac_cpp='$CPP $CPPFLAGS'
8369     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372    
8373    
8374     # Source file extension for C test sources.
8375     ac_ext=c
8376    
8377     # Object file extension for compiled C test sources.
8378     objext=o
8379     objext=$objext
8380    
8381     # Code to be used in simple compile tests
8382     lt_simple_compile_test_code="int some_variable = 0;"
8383    
8384     # Code to be used in simple link tests
8385     lt_simple_link_test_code='int main(){return(0);}'
8386    
8387    
8388 michael 945
8389    
8390    
8391    
8392    
8393 michael 912 # If no C compiler was specified, use CC.
8394     LTCC=${LTCC-"$CC"}
8395    
8396     # If no C compiler flags were specified, use CFLAGS.
8397     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8398    
8399     # Allow CC to be a program name with arguments.
8400     compiler=$CC
8401    
8402 michael 945 # Save the default compiler, since it gets overwritten when the other
8403     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8404     compiler_DEFAULT=$CC
8405 michael 912
8406     # save warnings/boilerplate of simple test code
8407     ac_outfile=conftest.$ac_objext
8408     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8409     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8410     _lt_compiler_boilerplate=`cat conftest.err`
8411 michael 945 $RM conftest*
8412 michael 912
8413     ac_outfile=conftest.$ac_objext
8414     echo "$lt_simple_link_test_code" >conftest.$ac_ext
8415     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8416     _lt_linker_boilerplate=`cat conftest.err`
8417 michael 945 $RM -r conftest*
8418 michael 912
8419    
8420 michael 945 if test -n "$compiler"; then
8421 michael 912
8422     lt_prog_compiler_no_builtin_flag=
8423    
8424     if test "$GCC" = yes; then
8425 michael 1094 case $cc_basename in
8426     nvcc*)
8427     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8428     *)
8429     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8430     esac
8431 michael 912
8432 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8433 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8434 michael 1106 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8435 db 941 $as_echo_n "(cached) " >&6
8436 michael 912 else
8437     lt_cv_prog_compiler_rtti_exceptions=no
8438 michael 945 ac_outfile=conftest.$ac_objext
8439 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440     lt_compiler_flag="-fno-rtti -fno-exceptions"
8441     # Insert the option either (1) after the last *FLAGS variable, or
8442     # (2) before a word containing "conftest.", or (3) at the end.
8443     # Note that $ac_compile itself does not contain backslashes and begins
8444     # with a dollar sign (not a hyphen), so the echo should work correctly.
8445     # The option is referenced via a variable to avoid confusing sed.
8446     lt_compile=`echo "$ac_compile" | $SED \
8447     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449     -e 's:$: $lt_compiler_flag:'`
8450 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 michael 912 (eval "$lt_compile" 2>conftest.err)
8452     ac_status=$?
8453     cat conftest.err >&5
8454 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8456     # The compiler can only warn and ignore the option if not recognized
8457     # So say no if there are warnings other than the usual output.
8458 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8459 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8460     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8461     lt_cv_prog_compiler_rtti_exceptions=yes
8462     fi
8463     fi
8464 michael 945 $RM conftest*
8465 michael 912
8466     fi
8467 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8468 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8469 michael 912
8470     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8471     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8472     else
8473     :
8474     fi
8475    
8476     fi
8477    
8478 michael 945
8479    
8480    
8481    
8482    
8483     lt_prog_compiler_wl=
8484 michael 912 lt_prog_compiler_pic=
8485     lt_prog_compiler_static=
8486    
8487    
8488     if test "$GCC" = yes; then
8489     lt_prog_compiler_wl='-Wl,'
8490     lt_prog_compiler_static='-static'
8491    
8492     case $host_os in
8493     aix*)
8494     # All AIX code is PIC.
8495     if test "$host_cpu" = ia64; then
8496     # AIX 5 now supports IA64 processor
8497     lt_prog_compiler_static='-Bstatic'
8498     fi
8499     ;;
8500    
8501     amigaos*)
8502 michael 945 case $host_cpu in
8503     powerpc)
8504     # see comment about AmigaOS4 .so support
8505     lt_prog_compiler_pic='-fPIC'
8506     ;;
8507     m68k)
8508     # FIXME: we need at least 68020 code to build shared libraries, but
8509     # adding the `-m68020' flag to GCC prevents building anything better,
8510     # like `-m68040'.
8511     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8512     ;;
8513     esac
8514 michael 912 ;;
8515    
8516     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8517     # PIC is the default for these OSes.
8518     ;;
8519    
8520 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8521 michael 912 # This hack is so that the source file can tell whether it is being
8522     # built for inclusion in a dll (and should export symbols for example).
8523     # Although the cygwin gcc ignores -fPIC, still need this for old-style
8524     # (--disable-auto-import) libraries
8525     lt_prog_compiler_pic='-DDLL_EXPORT'
8526     ;;
8527    
8528     darwin* | rhapsody*)
8529     # PIC is the default on this platform
8530     # Common symbols not allowed in MH_DYLIB files
8531     lt_prog_compiler_pic='-fno-common'
8532     ;;
8533    
8534 michael 1094 haiku*)
8535     # PIC is the default for Haiku.
8536     # The "-static" flag exists, but is broken.
8537     lt_prog_compiler_static=
8538     ;;
8539    
8540 michael 945 hpux*)
8541     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8542     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8543     # sets the default TLS model and affects inlining.
8544     case $host_cpu in
8545     hppa*64*)
8546     # +Z the default
8547     ;;
8548     *)
8549     lt_prog_compiler_pic='-fPIC'
8550     ;;
8551     esac
8552     ;;
8553    
8554 michael 912 interix[3-9]*)
8555     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8556     # Instead, we relocate shared libraries at runtime.
8557     ;;
8558    
8559     msdosdjgpp*)
8560     # Just because we use GCC doesn't mean we suddenly get shared libraries
8561     # on systems that don't support them.
8562     lt_prog_compiler_can_build_shared=no
8563     enable_shared=no
8564     ;;
8565    
8566 michael 945 *nto* | *qnx*)
8567     # QNX uses GNU C++, but need to define -shared option too, otherwise
8568     # it will coredump.
8569     lt_prog_compiler_pic='-fPIC -shared'
8570     ;;
8571    
8572 michael 912 sysv4*MP*)
8573     if test -d /usr/nec; then
8574     lt_prog_compiler_pic=-Kconform_pic
8575     fi
8576     ;;
8577    
8578     *)
8579     lt_prog_compiler_pic='-fPIC'
8580     ;;
8581     esac
8582 michael 1094
8583     case $cc_basename in
8584     nvcc*) # Cuda Compiler Driver 2.2
8585     lt_prog_compiler_wl='-Xlinker '
8586 michael 1257 if test -n "$lt_prog_compiler_pic"; then
8587     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8588     fi
8589 michael 1094 ;;
8590     esac
8591 michael 912 else
8592     # PORTME Check for flag to pass linker flags through the system compiler.
8593     case $host_os in
8594     aix*)
8595     lt_prog_compiler_wl='-Wl,'
8596     if test "$host_cpu" = ia64; then
8597     # AIX 5 now supports IA64 processor
8598     lt_prog_compiler_static='-Bstatic'
8599     else
8600     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8601     fi
8602     ;;
8603    
8604 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8605 michael 912 # This hack is so that the source file can tell whether it is being
8606     # built for inclusion in a dll (and should export symbols for example).
8607     lt_prog_compiler_pic='-DDLL_EXPORT'
8608     ;;
8609    
8610     hpux9* | hpux10* | hpux11*)
8611     lt_prog_compiler_wl='-Wl,'
8612     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8613     # not for PA HP-UX.
8614     case $host_cpu in
8615     hppa*64*|ia64*)
8616     # +Z the default
8617     ;;
8618     *)
8619     lt_prog_compiler_pic='+Z'
8620     ;;
8621     esac
8622     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8623     lt_prog_compiler_static='${wl}-a ${wl}archive'
8624     ;;
8625    
8626     irix5* | irix6* | nonstopux*)
8627     lt_prog_compiler_wl='-Wl,'
8628     # PIC (with -KPIC) is the default.
8629     lt_prog_compiler_static='-non_shared'
8630     ;;
8631    
8632 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8633 michael 912 case $cc_basename in
8634 michael 945 # old Intel for x86_64 which still supported -KPIC.
8635     ecc*)
8636 michael 912 lt_prog_compiler_wl='-Wl,'
8637     lt_prog_compiler_pic='-KPIC'
8638     lt_prog_compiler_static='-static'
8639     ;;
8640 michael 945 # icc used to be incompatible with GCC.
8641     # ICC 10 doesn't accept -KPIC any more.
8642     icc* | ifort*)
8643     lt_prog_compiler_wl='-Wl,'
8644     lt_prog_compiler_pic='-fPIC'
8645     lt_prog_compiler_static='-static'
8646     ;;
8647     # Lahey Fortran 8.1.
8648     lf95*)
8649     lt_prog_compiler_wl='-Wl,'
8650     lt_prog_compiler_pic='--shared'
8651     lt_prog_compiler_static='--static'
8652     ;;
8653 michael 1106 nagfor*)
8654     # NAG Fortran compiler
8655     lt_prog_compiler_wl='-Wl,-Wl,,'
8656     lt_prog_compiler_pic='-PIC'
8657     lt_prog_compiler_static='-Bstatic'
8658     ;;
8659 michael 1094 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8660 michael 912 # Portland Group compilers (*not* the Pentium gcc compiler,
8661     # which looks to be a dead project)
8662     lt_prog_compiler_wl='-Wl,'
8663     lt_prog_compiler_pic='-fpic'
8664     lt_prog_compiler_static='-Bstatic'
8665     ;;
8666     ccc*)
8667     lt_prog_compiler_wl='-Wl,'
8668     # All Alpha code is PIC.
8669     lt_prog_compiler_static='-non_shared'
8670     ;;
8671 michael 1094 xl* | bgxl* | bgf* | mpixl*)
8672     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8673 michael 945 lt_prog_compiler_wl='-Wl,'
8674     lt_prog_compiler_pic='-qpic'
8675     lt_prog_compiler_static='-qstaticlink'
8676     ;;
8677 michael 912 *)
8678 michael 945 case `$CC -V 2>&1 | sed 5q` in
8679 michael 1257 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8680 michael 1094 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8681     lt_prog_compiler_pic='-KPIC'
8682     lt_prog_compiler_static='-Bstatic'
8683     lt_prog_compiler_wl=''
8684     ;;
8685 michael 1257 *Sun\ F* | *Sun*Fortran*)
8686     lt_prog_compiler_pic='-KPIC'
8687     lt_prog_compiler_static='-Bstatic'
8688     lt_prog_compiler_wl='-Qoption ld '
8689     ;;
8690 michael 912 *Sun\ C*)
8691     # Sun C 5.9
8692     lt_prog_compiler_pic='-KPIC'
8693     lt_prog_compiler_static='-Bstatic'
8694     lt_prog_compiler_wl='-Wl,'
8695     ;;
8696 michael 1257 *Intel*\ [CF]*Compiler*)
8697     lt_prog_compiler_wl='-Wl,'
8698     lt_prog_compiler_pic='-fPIC'
8699     lt_prog_compiler_static='-static'
8700     ;;
8701     *Portland\ Group*)
8702     lt_prog_compiler_wl='-Wl,'
8703     lt_prog_compiler_pic='-fpic'
8704     lt_prog_compiler_static='-Bstatic'
8705     ;;
8706 michael 912 esac
8707     ;;
8708     esac
8709     ;;
8710    
8711 michael 945 newsos6)
8712     lt_prog_compiler_pic='-KPIC'
8713     lt_prog_compiler_static='-Bstatic'
8714     ;;
8715    
8716     *nto* | *qnx*)
8717     # QNX uses GNU C++, but need to define -shared option too, otherwise
8718     # it will coredump.
8719     lt_prog_compiler_pic='-fPIC -shared'
8720     ;;
8721    
8722 michael 912 osf3* | osf4* | osf5*)
8723     lt_prog_compiler_wl='-Wl,'
8724     # All OSF/1 code is PIC.
8725     lt_prog_compiler_static='-non_shared'
8726     ;;
8727    
8728     rdos*)
8729     lt_prog_compiler_static='-non_shared'
8730     ;;
8731    
8732     solaris*)
8733     lt_prog_compiler_pic='-KPIC'
8734     lt_prog_compiler_static='-Bstatic'
8735     case $cc_basename in
8736 michael 1094 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8737 michael 912 lt_prog_compiler_wl='-Qoption ld ';;
8738     *)
8739     lt_prog_compiler_wl='-Wl,';;
8740     esac
8741     ;;
8742    
8743     sunos4*)
8744     lt_prog_compiler_wl='-Qoption ld '
8745     lt_prog_compiler_pic='-PIC'
8746     lt_prog_compiler_static='-Bstatic'
8747     ;;
8748    
8749     sysv4 | sysv4.2uw2* | sysv4.3*)
8750     lt_prog_compiler_wl='-Wl,'
8751     lt_prog_compiler_pic='-KPIC'
8752     lt_prog_compiler_static='-Bstatic'
8753     ;;
8754    
8755     sysv4*MP*)
8756     if test -d /usr/nec ;then
8757     lt_prog_compiler_pic='-Kconform_pic'
8758     lt_prog_compiler_static='-Bstatic'
8759     fi
8760     ;;
8761    
8762     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8763     lt_prog_compiler_wl='-Wl,'
8764     lt_prog_compiler_pic='-KPIC'
8765     lt_prog_compiler_static='-Bstatic'
8766     ;;
8767    
8768     unicos*)
8769     lt_prog_compiler_wl='-Wl,'
8770     lt_prog_compiler_can_build_shared=no
8771     ;;
8772    
8773     uts4*)
8774     lt_prog_compiler_pic='-pic'
8775     lt_prog_compiler_static='-Bstatic'
8776     ;;
8777    
8778     *)
8779     lt_prog_compiler_can_build_shared=no
8780     ;;
8781     esac
8782     fi
8783    
8784 michael 945 case $host_os in
8785     # For platforms which do not support PIC, -DPIC is meaningless:
8786     *djgpp*)
8787     lt_prog_compiler_pic=
8788     ;;
8789     *)
8790     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8791     ;;
8792     esac
8793 michael 912
8794 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8795     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8796     if ${lt_cv_prog_compiler_pic+:} false; then :
8797     $as_echo_n "(cached) " >&6
8798     else
8799     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8800     fi
8801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8802     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8803     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8804 michael 945
8805 michael 912 #
8806     # Check to make sure the PIC flag actually works.
8807     #
8808     if test -n "$lt_prog_compiler_pic"; then
8809 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8810 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8811 michael 1106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8812 db 941 $as_echo_n "(cached) " >&6
8813 michael 912 else
8814 db 941 lt_cv_prog_compiler_pic_works=no
8815 michael 945 ac_outfile=conftest.$ac_objext
8816 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8818     # Insert the option either (1) after the last *FLAGS variable, or
8819     # (2) before a word containing "conftest.", or (3) at the end.
8820     # Note that $ac_compile itself does not contain backslashes and begins
8821     # with a dollar sign (not a hyphen), so the echo should work correctly.
8822     # The option is referenced via a variable to avoid confusing sed.
8823     lt_compile=`echo "$ac_compile" | $SED \
8824     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826     -e 's:$: $lt_compiler_flag:'`
8827 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828 michael 912 (eval "$lt_compile" 2>conftest.err)
8829     ac_status=$?
8830     cat conftest.err >&5
8831 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8833     # The compiler can only warn and ignore the option if not recognized
8834     # So say no if there are warnings other than the usual output.
8835 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8836 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838 db 941 lt_cv_prog_compiler_pic_works=yes
8839 michael 912 fi
8840     fi
8841 michael 945 $RM conftest*
8842 michael 912
8843     fi
8844 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8845 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8846 michael 912
8847 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8848 michael 912 case $lt_prog_compiler_pic in
8849     "" | " "*) ;;
8850     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8851     esac
8852     else
8853     lt_prog_compiler_pic=
8854     lt_prog_compiler_can_build_shared=no
8855     fi
8856    
8857     fi
8858    
8859 michael 945
8860    
8861    
8862    
8863    
8864 michael 1106
8865    
8866    
8867    
8868    
8869 michael 912 #
8870     # Check to make sure the static flag actually works.
8871     #
8872     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8873 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8874 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8875 michael 1106 if ${lt_cv_prog_compiler_static_works+:} false; then :
8876 db 941 $as_echo_n "(cached) " >&6
8877 michael 912 else
8878 db 941 lt_cv_prog_compiler_static_works=no
8879 michael 912 save_LDFLAGS="$LDFLAGS"
8880     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8881     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8882     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8883     # The linker can only warn and ignore the option if not recognized
8884     # So say no if there are warnings
8885     if test -s conftest.err; then
8886     # Append any errors to the config.log.
8887     cat conftest.err 1>&5
8888 michael 1094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8889 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8890     if diff conftest.exp conftest.er2 >/dev/null; then
8891 db 941 lt_cv_prog_compiler_static_works=yes
8892 michael 912 fi
8893     else
8894 db 941 lt_cv_prog_compiler_static_works=yes
8895 michael 912 fi
8896     fi
8897 michael 945 $RM -r conftest*
8898 michael 912 LDFLAGS="$save_LDFLAGS"
8899    
8900     fi
8901 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8902 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8903 michael 912
8904 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8905 michael 912 :
8906     else
8907     lt_prog_compiler_static=
8908     fi
8909    
8910    
8911 michael 945
8912    
8913    
8914    
8915    
8916 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8917 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8918 michael 1106 if ${lt_cv_prog_compiler_c_o+:} false; then :
8919 db 941 $as_echo_n "(cached) " >&6
8920 michael 912 else
8921     lt_cv_prog_compiler_c_o=no
8922 michael 945 $RM -r conftest 2>/dev/null
8923 michael 912 mkdir conftest
8924     cd conftest
8925     mkdir out
8926     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927    
8928     lt_compiler_flag="-o out/conftest2.$ac_objext"
8929     # Insert the option either (1) after the last *FLAGS variable, or
8930     # (2) before a word containing "conftest.", or (3) at the end.
8931     # Note that $ac_compile itself does not contain backslashes and begins
8932     # with a dollar sign (not a hyphen), so the echo should work correctly.
8933     lt_compile=`echo "$ac_compile" | $SED \
8934     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936     -e 's:$: $lt_compiler_flag:'`
8937 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8939     ac_status=$?
8940     cat out/conftest.err >&5
8941 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8943     then
8944     # The compiler can only warn and ignore the option if not recognized
8945     # So say no if there are warnings
8946 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8947 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8948     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8949     lt_cv_prog_compiler_c_o=yes
8950     fi
8951     fi
8952     chmod u+w . 2>&5
8953 michael 945 $RM conftest*
8954 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8955     # template instantiation
8956 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8957     $RM out/* && rmdir out
8958 michael 912 cd ..
8959 michael 945 $RM -r conftest
8960     $RM conftest*
8961 michael 912
8962     fi
8963 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8964 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8965 michael 912
8966    
8967 michael 945
8968    
8969    
8970    
8971 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8972 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8973 michael 1106 if ${lt_cv_prog_compiler_c_o+:} false; then :
8974 michael 945 $as_echo_n "(cached) " >&6
8975     else
8976     lt_cv_prog_compiler_c_o=no
8977     $RM -r conftest 2>/dev/null
8978     mkdir conftest
8979     cd conftest
8980     mkdir out
8981     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8982    
8983     lt_compiler_flag="-o out/conftest2.$ac_objext"
8984     # Insert the option either (1) after the last *FLAGS variable, or
8985     # (2) before a word containing "conftest.", or (3) at the end.
8986     # Note that $ac_compile itself does not contain backslashes and begins
8987     # with a dollar sign (not a hyphen), so the echo should work correctly.
8988     lt_compile=`echo "$ac_compile" | $SED \
8989     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8990     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8991     -e 's:$: $lt_compiler_flag:'`
8992 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8993 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8994     ac_status=$?
8995     cat out/conftest.err >&5
8996 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8998     then
8999     # The compiler can only warn and ignore the option if not recognized
9000     # So say no if there are warnings
9001 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9002 michael 945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9003     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9004     lt_cv_prog_compiler_c_o=yes
9005     fi
9006     fi
9007     chmod u+w . 2>&5
9008     $RM conftest*
9009     # SGI C++ compiler will create directory out/ii_files/ for
9010     # template instantiation
9011     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9012     $RM out/* && rmdir out
9013     cd ..
9014     $RM -r conftest
9015     $RM conftest*
9016    
9017     fi
9018 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9019 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9020    
9021    
9022    
9023    
9024 michael 912 hard_links="nottested"
9025     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9026     # do not overwrite the value of need_locks provided by the user
9027 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9028 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
9029 michael 912 hard_links=yes
9030 michael 945 $RM conftest*
9031 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9032     touch conftest.a
9033     ln conftest.a conftest.b 2>&5 || hard_links=no
9034     ln conftest.a conftest.b 2>/dev/null && hard_links=no
9035 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9036 db 941 $as_echo "$hard_links" >&6; }
9037 michael 912 if test "$hard_links" = no; then
9038 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9039 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9040 michael 912 need_locks=warn
9041     fi
9042     else
9043     need_locks=no
9044     fi
9045    
9046 michael 945
9047    
9048    
9049    
9050    
9051 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9052 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9053 michael 912
9054     runpath_var=
9055     allow_undefined_flag=
9056 michael 945 always_export_symbols=no
9057 michael 912 archive_cmds=
9058     archive_expsym_cmds=
9059 michael 945 compiler_needs_object=no
9060     enable_shared_with_static_runtimes=no
9061 michael 912 export_dynamic_flag_spec=
9062 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9063     hardcode_automatic=no
9064     hardcode_direct=no
9065     hardcode_direct_absolute=no
9066 michael 912 hardcode_libdir_flag_spec=
9067     hardcode_libdir_separator=
9068     hardcode_minus_L=no
9069     hardcode_shlibpath_var=unsupported
9070 michael 945 inherit_rpath=no
9071 michael 912 link_all_deplibs=unknown
9072     module_cmds=
9073     module_expsym_cmds=
9074 michael 945 old_archive_from_new_cmds=
9075     old_archive_from_expsyms_cmds=
9076     thread_safe_flag_spec=
9077     whole_archive_flag_spec=
9078 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
9079     # included in the symbol list
9080     include_expsyms=
9081     # exclude_expsyms can be an extended regexp of symbols to exclude
9082     # it will be wrapped by ` (' and `)$', so one must not match beginning or
9083     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9084     # as well as any symbol that contains `d'.
9085 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9086 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9087     # platforms (ab)use it in PIC code, but their linkers get confused if
9088     # the symbol is explicitly referenced. Since portable code cannot
9089     # rely on this symbol name, it's probably fine to never include it in
9090     # preloaded symbol tables.
9091 db 941 # Exclude shared library initialization/finalization symbols.
9092 michael 912 extract_expsyms_cmds=
9093    
9094     case $host_os in
9095 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9096 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9097     # When not using gcc, we currently assume that we are using
9098     # Microsoft Visual C++.
9099     if test "$GCC" != yes; then
9100     with_gnu_ld=no
9101     fi
9102     ;;
9103     interix*)
9104     # we just hope/assume this is gcc and not c89 (= MSVC++)
9105     with_gnu_ld=yes
9106     ;;
9107     openbsd*)
9108     with_gnu_ld=no
9109     ;;
9110     esac
9111    
9112     ld_shlibs=yes
9113 michael 1094
9114     # On some targets, GNU ld is compatible enough with the native linker
9115     # that we're better off using the native interface for both.
9116     lt_use_gnu_ld_interface=no
9117 michael 912 if test "$with_gnu_ld" = yes; then
9118 michael 1094 case $host_os in
9119     aix*)
9120     # The AIX port of GNU ld has always aspired to compatibility
9121     # with the native linker. However, as the warning in the GNU ld
9122     # block says, versions before 2.19.5* couldn't really create working
9123     # shared libraries, regardless of the interface used.
9124     case `$LD -v 2>&1` in
9125     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9126     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9127     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9128     *)
9129     lt_use_gnu_ld_interface=yes
9130     ;;
9131     esac
9132     ;;
9133     *)
9134     lt_use_gnu_ld_interface=yes
9135     ;;
9136     esac
9137     fi
9138    
9139     if test "$lt_use_gnu_ld_interface" = yes; then
9140 michael 912 # If archive_cmds runs LD, not CC, wlarc should be empty
9141     wlarc='${wl}'
9142    
9143     # Set some defaults for GNU ld with shared library support. These
9144     # are reset later if shared libraries are not supported. Putting them
9145     # here allows them to be overridden if necessary.
9146     runpath_var=LD_RUN_PATH
9147 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9148 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
9149     # ancient GNU ld didn't support --whole-archive et. al.
9150 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9151     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9152     else
9153     whole_archive_flag_spec=
9154 michael 912 fi
9155     supports_anon_versioning=no
9156 michael 945 case `$LD -v 2>&1` in
9157 michael 1094 *GNU\ gold*) supports_anon_versioning=yes ;;
9158 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9159     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9160     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9161     *\ 2.11.*) ;; # other 2.11 versions
9162     *) supports_anon_versioning=yes ;;
9163     esac
9164    
9165     # See if GNU ld supports shared libraries.
9166     case $host_os in
9167 db 941 aix[3-9]*)
9168 michael 912 # On AIX/PPC, the GNU linker is very broken
9169     if test "$host_cpu" != ia64; then
9170     ld_shlibs=no
9171 michael 945 cat <<_LT_EOF 1>&2
9172 michael 912
9173 michael 1094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9174 michael 912 *** to be unable to reliably create shared libraries on AIX.
9175     *** Therefore, libtool is disabling shared libraries support. If you
9176 michael 1094 *** really care for shared libraries, you may want to install binutils
9177     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9178     *** You will then need to restart the configuration process.
9179 michael 912
9180 michael 945 _LT_EOF
9181 michael 912 fi
9182     ;;
9183    
9184     amigaos*)
9185 michael 945 case $host_cpu in
9186     powerpc)
9187     # see comment about AmigaOS4 .so support
9188     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189     archive_expsym_cmds=''
9190     ;;
9191     m68k)
9192     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)'
9193     hardcode_libdir_flag_spec='-L$libdir'
9194     hardcode_minus_L=yes
9195     ;;
9196     esac
9197 michael 912 ;;
9198    
9199     beos*)
9200 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9201 michael 912 allow_undefined_flag=unsupported
9202     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9203     # support --undefined. This deserves some investigation. FIXME
9204     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205     else
9206     ld_shlibs=no
9207     fi
9208     ;;
9209    
9210 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9211     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9212 michael 912 # as there is no search path for DLLs.
9213     hardcode_libdir_flag_spec='-L$libdir'
9214 michael 1094 export_dynamic_flag_spec='${wl}--export-all-symbols'
9215 michael 912 allow_undefined_flag=unsupported
9216     always_export_symbols=no
9217     enable_shared_with_static_runtimes=yes
9218 michael 1106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9219     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9220 michael 912
9221 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9222 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9223     # If the export-symbols file already is a .def file (1st line
9224     # is EXPORTS), use it as is; otherwise, prepend...
9225     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9226     cp $export_symbols $output_objdir/$soname.def;
9227     else
9228     echo EXPORTS > $output_objdir/$soname.def;
9229     cat $export_symbols >> $output_objdir/$soname.def;
9230     fi~
9231     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9232     else
9233     ld_shlibs=no
9234     fi
9235     ;;
9236    
9237 michael 1094 haiku*)
9238     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239     link_all_deplibs=yes
9240     ;;
9241    
9242 michael 912 interix[3-9]*)
9243     hardcode_direct=no
9244     hardcode_shlibpath_var=no
9245     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9246     export_dynamic_flag_spec='${wl}-E'
9247     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9248     # Instead, shared libraries are loaded at an image base (0x10000000 by
9249     # default) and relocated if they conflict, which is a slow very memory
9250     # consuming and fragmenting process. To avoid this, we pick a random,
9251     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9252     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9253     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9254     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'
9255     ;;
9256    
9257 michael 1094 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9258 michael 945 tmp_diet=no
9259     if test "$host_os" = linux-dietlibc; then
9260     case $cc_basename in
9261     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9262     esac
9263     fi
9264     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9265     && test "$tmp_diet" = no
9266     then
9267 michael 1106 tmp_addflag=' $pic_flag'
9268 michael 945 tmp_sharedflag='-shared'
9269 michael 912 case $cc_basename,$host_cpu in
9270 michael 945 pgcc*) # Portland Group C compiler
9271 michael 1094 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9272 michael 912 tmp_addflag=' $pic_flag'
9273     ;;
9274 michael 1094 pgf77* | pgf90* | pgf95* | pgfortran*)
9275     # Portland Group f77 and f90 compilers
9276     whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9277 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
9278 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9279 michael 912 tmp_addflag=' -i_dynamic' ;;
9280     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9281     tmp_addflag=' -i_dynamic -nofor_main' ;;
9282     ifc* | ifort*) # Intel Fortran compiler
9283     tmp_addflag=' -nofor_main' ;;
9284 michael 945 lf95*) # Lahey Fortran 8.1
9285     whole_archive_flag_spec=
9286     tmp_sharedflag='--shared' ;;
9287 michael 1094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9288 michael 945 tmp_sharedflag='-qmkshrobj'
9289     tmp_addflag= ;;
9290 michael 1094 nvcc*) # Cuda Compiler Driver 2.2
9291     whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9292     compiler_needs_object=yes
9293     ;;
9294 michael 912 esac
9295     case `$CC -V 2>&1 | sed 5q` in
9296     *Sun\ C*) # Sun C 5.9
9297 michael 1094 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9298 michael 945 compiler_needs_object=yes
9299 michael 912 tmp_sharedflag='-G' ;;
9300     *Sun\ F*) # Sun Fortran 8.3
9301     tmp_sharedflag='-G' ;;
9302     esac
9303     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304    
9305 michael 945 if test "x$supports_anon_versioning" = xyes; then
9306     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9307     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308     echo "local: *; };" >> $output_objdir/$libname.ver~
9309     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9310     fi
9311    
9312     case $cc_basename in
9313 michael 1094 xlf* | bgf* | bgxlf* | mpixlf*)
9314 michael 945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9315     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9316 michael 1257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 michael 1094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9318 michael 945 if test "x$supports_anon_versioning" = xyes; then
9319     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321     echo "local: *; };" >> $output_objdir/$libname.ver~
9322 michael 1094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9323 michael 945 fi
9324     ;;
9325     esac
9326 michael 912 else
9327 michael 945 ld_shlibs=no
9328 michael 912 fi
9329     ;;
9330    
9331     netbsd*)
9332 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9333 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9334     wlarc=
9335     else
9336 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338 michael 912 fi
9339     ;;
9340    
9341     solaris*)
9342 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9343 michael 912 ld_shlibs=no
9344 michael 945 cat <<_LT_EOF 1>&2
9345 michael 912
9346     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9347     *** create shared libraries on Solaris systems. Therefore, libtool
9348     *** is disabling shared libraries support. We urge you to upgrade GNU
9349     *** binutils to release 2.9.1 or newer. Another option is to modify
9350     *** your PATH or compiler configuration so that the native linker is
9351     *** used, and then restart.
9352    
9353 michael 945 _LT_EOF
9354     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357 michael 912 else
9358     ld_shlibs=no
9359     fi
9360     ;;
9361    
9362     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9363     case `$LD -v 2>&1` in
9364     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9365     ld_shlibs=no
9366     cat <<_LT_EOF 1>&2
9367    
9368     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9369     *** reliably create shared libraries on SCO systems. Therefore, libtool
9370     *** is disabling shared libraries support. We urge you to upgrade GNU
9371     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9372     *** your PATH or compiler configuration so that the native linker is
9373     *** used, and then restart.
9374    
9375     _LT_EOF
9376     ;;
9377     *)
9378 michael 945 # For security reasons, it is highly recommended that you always
9379     # use absolute paths for naming shared libraries, and exclude the
9380     # DT_RUNPATH tag from executables and libraries. But doing so
9381     # requires that you compile everything twice, which is a pain.
9382     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9386 michael 912 else
9387     ld_shlibs=no
9388     fi
9389     ;;
9390     esac
9391     ;;
9392    
9393     sunos4*)
9394     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395     wlarc=
9396     hardcode_direct=yes
9397     hardcode_shlibpath_var=no
9398     ;;
9399    
9400     *)
9401 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404 michael 912 else
9405     ld_shlibs=no
9406     fi
9407     ;;
9408     esac
9409    
9410     if test "$ld_shlibs" = no; then
9411     runpath_var=
9412     hardcode_libdir_flag_spec=
9413     export_dynamic_flag_spec=
9414     whole_archive_flag_spec=
9415     fi
9416     else
9417     # PORTME fill in a description of your system's linker (not GNU ld)
9418     case $host_os in
9419     aix3*)
9420     allow_undefined_flag=unsupported
9421     always_export_symbols=yes
9422     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'
9423     # Note: this linker hardcodes the directories in LIBPATH if there
9424     # are no directories specified by -L.
9425     hardcode_minus_L=yes
9426     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9427     # Neither direct hardcoding nor static linking is supported with a
9428     # broken collect2.
9429     hardcode_direct=unsupported
9430     fi
9431     ;;
9432    
9433 db 941 aix[4-9]*)
9434 michael 912 if test "$host_cpu" = ia64; then
9435     # On IA64, the linker does run time linking by default, so we don't
9436     # have to do anything special.
9437     aix_use_runtimelinking=no
9438     exp_sym_flag='-Bexport'
9439     no_entry_flag=""
9440     else
9441     # If we're using GNU nm, then we don't want the "-C" option.
9442     # -C means demangle to AIX nm, but means don't demangle with GNU nm
9443 michael 1094 # Also, AIX nm treats weak defined symbols like other global
9444     # defined symbols, whereas GNU nm marks them as "W".
9445 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9446 michael 1094 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9447 michael 912 else
9448 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'
9449 michael 912 fi
9450     aix_use_runtimelinking=no
9451    
9452     # Test if we are trying to use run time linking or normal
9453     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9454     # need to do runtime linking.
9455 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9456 michael 912 for ld_flag in $LDFLAGS; do
9457 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9458     aix_use_runtimelinking=yes
9459     break
9460     fi
9461 michael 912 done
9462     ;;
9463     esac
9464    
9465     exp_sym_flag='-bexport'
9466     no_entry_flag='-bnoentry'
9467     fi
9468    
9469     # When large executables or shared objects are built, AIX ld can
9470     # have problems creating the table of contents. If linking a library
9471     # or program results in "error TOC overflow" add -mminimal-toc to
9472     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9473     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9474    
9475     archive_cmds=''
9476     hardcode_direct=yes
9477 michael 945 hardcode_direct_absolute=yes
9478 michael 912 hardcode_libdir_separator=':'
9479     link_all_deplibs=yes
9480 michael 945 file_list_spec='${wl}-f,'
9481 michael 912
9482     if test "$GCC" = yes; then
9483     case $host_os in aix4.[012]|aix4.[012].*)
9484     # We only want to do this on AIX 4.2 and lower, the check
9485     # below for broken collect2 doesn't work under 4.3+
9486     collect2name=`${CC} -print-prog-name=collect2`
9487 michael 945 if test -f "$collect2name" &&
9488     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9489 michael 912 then
9490 michael 945 # We have reworked collect2
9491     :
9492 michael 912 else
9493 michael 945 # We have old collect2
9494     hardcode_direct=unsupported
9495     # It fails to find uninstalled libraries when the uninstalled
9496     # path is not listed in the libpath. Setting hardcode_minus_L
9497     # to unsupported forces relinking
9498     hardcode_minus_L=yes
9499     hardcode_libdir_flag_spec='-L$libdir'
9500     hardcode_libdir_separator=
9501 michael 912 fi
9502     ;;
9503     esac
9504     shared_flag='-shared'
9505     if test "$aix_use_runtimelinking" = yes; then
9506     shared_flag="$shared_flag "'${wl}-G'
9507     fi
9508     else
9509     # not using gcc
9510     if test "$host_cpu" = ia64; then
9511 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512     # chokes on -Wl,-G. The following line is correct:
9513 michael 912 shared_flag='-G'
9514     else
9515     if test "$aix_use_runtimelinking" = yes; then
9516     shared_flag='${wl}-G'
9517     else
9518     shared_flag='${wl}-bM:SRE'
9519     fi
9520     fi
9521     fi
9522    
9523 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
9524 michael 912 # It seems that -bexpall does not export symbols beginning with
9525     # underscore (_), so it is better to generate a list of symbols to export.
9526     always_export_symbols=yes
9527     if test "$aix_use_runtimelinking" = yes; then
9528     # Warning - without using the other runtime loading flags (-brtl),
9529     # -berok will link without error, but may produce a broken library.
9530     allow_undefined_flag='-berok'
9531 michael 945 # Determine the default libpath from the value encoded in an
9532     # empty executable.
9533 michael 1106 if test "${lt_cv_aix_libpath+set}" = set; then
9534     aix_libpath=$lt_cv_aix_libpath
9535     else
9536     if ${lt_cv_aix_libpath_+:} false; then :
9537     $as_echo_n "(cached) " >&6
9538     else
9539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 michael 912 /* end confdefs.h. */
9541    
9542     int
9543     main ()
9544     {
9545    
9546     ;
9547     return 0;
9548     }
9549     _ACEOF
9550 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9551 michael 912
9552 michael 1106 lt_aix_libpath_sed='
9553     /Import File Strings/,/^$/ {
9554     /^0/ {
9555     s/^0 *\([^ ]*\) *$/\1/
9556     p
9557     }
9558     }'
9559     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560     # Check for a 64-bit object if we didn't find anything.
9561     if test -z "$lt_cv_aix_libpath_"; then
9562     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563     fi
9564 michael 912 fi
9565 michael 967 rm -f core conftest.err conftest.$ac_objext \
9566     conftest$ac_exeext conftest.$ac_ext
9567 michael 1106 if test -z "$lt_cv_aix_libpath_"; then
9568     lt_cv_aix_libpath_="/usr/lib:/lib"
9569     fi
9570 michael 912
9571 michael 1106 fi
9572    
9573     aix_libpath=$lt_cv_aix_libpath_
9574     fi
9575    
9576 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 michael 1094 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9578 michael 945 else
9579 michael 912 if test "$host_cpu" = ia64; then
9580     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581     allow_undefined_flag="-z nodefs"
9582     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"
9583     else
9584 michael 945 # Determine the default libpath from the value encoded in an
9585     # empty executable.
9586 michael 1106 if test "${lt_cv_aix_libpath+set}" = set; then
9587     aix_libpath=$lt_cv_aix_libpath
9588     else
9589     if ${lt_cv_aix_libpath_+:} false; then :
9590     $as_echo_n "(cached) " >&6
9591     else
9592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 michael 912 /* end confdefs.h. */
9594    
9595     int
9596     main ()
9597     {
9598    
9599     ;
9600     return 0;
9601     }
9602     _ACEOF
9603 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9604 michael 912
9605 michael 1106 lt_aix_libpath_sed='
9606     /Import File Strings/,/^$/ {
9607     /^0/ {
9608     s/^0 *\([^ ]*\) *$/\1/
9609     p
9610     }
9611     }'
9612     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613     # Check for a 64-bit object if we didn't find anything.
9614     if test -z "$lt_cv_aix_libpath_"; then
9615     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616     fi
9617 michael 912 fi
9618 michael 967 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620 michael 1106 if test -z "$lt_cv_aix_libpath_"; then
9621     lt_cv_aix_libpath_="/usr/lib:/lib"
9622     fi
9623 michael 912
9624 michael 1106 fi
9625    
9626     aix_libpath=$lt_cv_aix_libpath_
9627     fi
9628    
9629 michael 912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9630     # Warning - without using the other run time loading flags,
9631     # -berok will link without error, but may produce a broken library.
9632     no_undefined_flag=' ${wl}-bernotok'
9633     allow_undefined_flag=' ${wl}-berok'
9634 michael 1094 if test "$with_gnu_ld" = yes; then
9635     # We only use this code for GNU lds that support --whole-archive.
9636     whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9637     else
9638     # Exported symbols can be pulled into shared objects from archives
9639     whole_archive_flag_spec='$convenience'
9640     fi
9641 michael 912 archive_cmds_need_lc=yes
9642     # This is similar to how AIX traditionally builds its shared libraries.
9643     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'
9644     fi
9645     fi
9646     ;;
9647    
9648     amigaos*)
9649 michael 945 case $host_cpu in
9650     powerpc)
9651     # see comment about AmigaOS4 .so support
9652     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653     archive_expsym_cmds=''
9654     ;;
9655     m68k)
9656     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)'
9657     hardcode_libdir_flag_spec='-L$libdir'
9658     hardcode_minus_L=yes
9659     ;;
9660     esac
9661 michael 912 ;;
9662    
9663     bsdi[45]*)
9664     export_dynamic_flag_spec=-rdynamic
9665     ;;
9666    
9667 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9668 michael 912 # When not using gcc, we currently assume that we are using
9669     # Microsoft Visual C++.
9670     # hardcode_libdir_flag_spec is actually meaningless, as there is
9671     # no search path for DLLs.
9672 michael 1106 case $cc_basename in
9673     cl*)
9674     # Native MSVC
9675     hardcode_libdir_flag_spec=' '
9676     allow_undefined_flag=unsupported
9677     always_export_symbols=yes
9678     file_list_spec='@'
9679     # Tell ltmain to make .lib files, not .a files.
9680     libext=lib
9681     # Tell ltmain to make .dll files, not .so files.
9682     shrext_cmds=".dll"
9683     # FIXME: Setting linknames here is a bad hack.
9684     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9685     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9686     sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9687     else
9688     sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9689     fi~
9690     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9691     linknames='
9692     # The linker will not automatically build a static lib if we build a DLL.
9693     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9694     enable_shared_with_static_runtimes=yes
9695 michael 1257 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9696 michael 1106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9697     # Don't use ranlib
9698     old_postinstall_cmds='chmod 644 $oldlib'
9699     postlink_cmds='lt_outputfile="@OUTPUT@"~
9700     lt_tool_outputfile="@TOOL_OUTPUT@"~
9701     case $lt_outputfile in
9702     *.exe|*.EXE) ;;
9703     *)
9704     lt_outputfile="$lt_outputfile.exe"
9705     lt_tool_outputfile="$lt_tool_outputfile.exe"
9706     ;;
9707     esac~
9708     if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9709     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9710     $RM "$lt_outputfile.manifest";
9711     fi'
9712     ;;
9713     *)
9714     # Assume MSVC wrapper
9715     hardcode_libdir_flag_spec=' '
9716     allow_undefined_flag=unsupported
9717     # Tell ltmain to make .lib files, not .a files.
9718     libext=lib
9719     # Tell ltmain to make .dll files, not .so files.
9720     shrext_cmds=".dll"
9721     # FIXME: Setting linknames here is a bad hack.
9722     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9723     # The linker will automatically build a .lib file if we build a DLL.
9724     old_archive_from_new_cmds='true'
9725     # FIXME: Should let the user specify the lib program.
9726     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9727     enable_shared_with_static_runtimes=yes
9728     ;;
9729     esac
9730 michael 912 ;;
9731    
9732     darwin* | rhapsody*)
9733 michael 945
9734    
9735     archive_cmds_need_lc=no
9736     hardcode_direct=no
9737     hardcode_automatic=yes
9738     hardcode_shlibpath_var=unsupported
9739 michael 1094 if test "$lt_cv_ld_force_load" = "yes"; then
9740     whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9741 michael 1257
9742 michael 1094 else
9743     whole_archive_flag_spec=''
9744     fi
9745 michael 945 link_all_deplibs=yes
9746     allow_undefined_flag="$_lt_dar_allow_undefined"
9747     case $cc_basename in
9748     ifort*) _lt_dar_can_shared=yes ;;
9749     *) _lt_dar_can_shared=$GCC ;;
9750     esac
9751     if test "$_lt_dar_can_shared" = "yes"; then
9752 michael 1094 output_verbose_link_cmd=func_echo_all
9753 michael 945 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9754     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9755     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}"
9756     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}"
9757    
9758     else
9759     ld_shlibs=no
9760     fi
9761    
9762 michael 912 ;;
9763    
9764     dgux*)
9765     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766     hardcode_libdir_flag_spec='-L$libdir'
9767     hardcode_shlibpath_var=no
9768     ;;
9769    
9770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771     # support. Future versions do this automatically, but an explicit c++rt0.o
9772     # does not break anything, and helps significantly (at the cost of a little
9773     # extra space).
9774     freebsd2.2*)
9775     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776     hardcode_libdir_flag_spec='-R$libdir'
9777     hardcode_direct=yes
9778     hardcode_shlibpath_var=no
9779     ;;
9780    
9781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9782 michael 1257 freebsd2.*)
9783 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784     hardcode_direct=yes
9785     hardcode_minus_L=yes
9786     hardcode_shlibpath_var=no
9787     ;;
9788    
9789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790     freebsd* | dragonfly*)
9791 michael 1106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9792 michael 912 hardcode_libdir_flag_spec='-R$libdir'
9793     hardcode_direct=yes
9794     hardcode_shlibpath_var=no
9795     ;;
9796    
9797     hpux9*)
9798     if test "$GCC" = yes; then
9799 michael 1106 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9800 michael 912 else
9801 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'
9802 michael 912 fi
9803     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804     hardcode_libdir_separator=:
9805     hardcode_direct=yes
9806    
9807     # hardcode_minus_L: Not really in the search PATH,
9808     # but as the default location of the library.
9809     hardcode_minus_L=yes
9810     export_dynamic_flag_spec='${wl}-E'
9811     ;;
9812    
9813     hpux10*)
9814 michael 1094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9815 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816 michael 912 else
9817     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818     fi
9819     if test "$with_gnu_ld" = no; then
9820     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821     hardcode_libdir_separator=:
9822     hardcode_direct=yes
9823 michael 945 hardcode_direct_absolute=yes
9824 michael 912 export_dynamic_flag_spec='${wl}-E'
9825     # hardcode_minus_L: Not really in the search PATH,
9826     # but as the default location of the library.
9827     hardcode_minus_L=yes
9828     fi
9829     ;;
9830    
9831     hpux11*)
9832 michael 1094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9833 michael 912 case $host_cpu in
9834     hppa*64*)
9835     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836     ;;
9837     ia64*)
9838 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9839 michael 912 ;;
9840     *)
9841 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9842 michael 912 ;;
9843     esac
9844     else
9845     case $host_cpu in
9846     hppa*64*)
9847     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848     ;;
9849     ia64*)
9850     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9851     ;;
9852     *)
9853 michael 1094
9854     # Older versions of the 11.00 compiler do not understand -b yet
9855     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9857     $as_echo_n "checking if $CC understands -b... " >&6; }
9858 michael 1106 if ${lt_cv_prog_compiler__b+:} false; then :
9859 michael 1094 $as_echo_n "(cached) " >&6
9860     else
9861     lt_cv_prog_compiler__b=no
9862     save_LDFLAGS="$LDFLAGS"
9863     LDFLAGS="$LDFLAGS -b"
9864     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9865     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9866     # The linker can only warn and ignore the option if not recognized
9867     # So say no if there are warnings
9868     if test -s conftest.err; then
9869     # Append any errors to the config.log.
9870     cat conftest.err 1>&5
9871     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9872     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9873     if diff conftest.exp conftest.er2 >/dev/null; then
9874     lt_cv_prog_compiler__b=yes
9875     fi
9876     else
9877     lt_cv_prog_compiler__b=yes
9878     fi
9879     fi
9880     $RM -r conftest*
9881     LDFLAGS="$save_LDFLAGS"
9882    
9883     fi
9884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9885     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9886    
9887     if test x"$lt_cv_prog_compiler__b" = xyes; then
9888     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9889     else
9890     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9891     fi
9892    
9893 michael 912 ;;
9894     esac
9895     fi
9896     if test "$with_gnu_ld" = no; then
9897     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898     hardcode_libdir_separator=:
9899    
9900     case $host_cpu in
9901     hppa*64*|ia64*)
9902     hardcode_direct=no
9903     hardcode_shlibpath_var=no
9904     ;;
9905     *)
9906     hardcode_direct=yes
9907 michael 945 hardcode_direct_absolute=yes
9908 michael 912 export_dynamic_flag_spec='${wl}-E'
9909    
9910     # hardcode_minus_L: Not really in the search PATH,
9911     # but as the default location of the library.
9912     hardcode_minus_L=yes
9913     ;;
9914     esac
9915     fi
9916     ;;
9917    
9918     irix5* | irix6* | nonstopux*)
9919     if test "$GCC" = yes; then
9920 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9921 michael 945 # Try to use the -exported_symbol ld option, if it does not
9922     # work, assume that -exports_file does not work either and
9923     # implicitly export all symbols.
9924 michael 1106 # This should be the same for all languages, so no per-tag cache variable.
9925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9926     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9927     if ${lt_cv_irix_exported_symbol+:} false; then :
9928     $as_echo_n "(cached) " >&6
9929     else
9930     save_LDFLAGS="$LDFLAGS"
9931     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 michael 967 /* end confdefs.h. */
9934 michael 1106 int foo (void) { return 0; }
9935 michael 945 _ACEOF
9936 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9937 michael 1106 lt_cv_irix_exported_symbol=yes
9938     else
9939     lt_cv_irix_exported_symbol=no
9940 michael 945 fi
9941 michael 967 rm -f core conftest.err conftest.$ac_objext \
9942     conftest$ac_exeext conftest.$ac_ext
9943 michael 1106 LDFLAGS="$save_LDFLAGS"
9944     fi
9945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9946     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9947     if test "$lt_cv_irix_exported_symbol" = yes; then
9948     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9949     fi
9950 michael 912 else
9951 michael 1094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9952     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9953 michael 912 fi
9954 michael 945 archive_cmds_need_lc='no'
9955 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956     hardcode_libdir_separator=:
9957 michael 945 inherit_rpath=yes
9958 michael 912 link_all_deplibs=yes
9959     ;;
9960    
9961     netbsd*)
9962 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9963 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9964     else
9965     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9966     fi
9967     hardcode_libdir_flag_spec='-R$libdir'
9968     hardcode_direct=yes
9969     hardcode_shlibpath_var=no
9970     ;;
9971    
9972     newsos6)
9973     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974     hardcode_direct=yes
9975     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976     hardcode_libdir_separator=:
9977     hardcode_shlibpath_var=no
9978     ;;
9979    
9980 michael 945 *nto* | *qnx*)
9981     ;;
9982    
9983 michael 912 openbsd*)
9984     if test -f /usr/libexec/ld.so; then
9985     hardcode_direct=yes
9986     hardcode_shlibpath_var=no
9987 michael 945 hardcode_direct_absolute=yes
9988     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9989 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9991     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992     export_dynamic_flag_spec='${wl}-E'
9993     else
9994     case $host_os in
9995     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9996     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9997     hardcode_libdir_flag_spec='-R$libdir'
9998     ;;
9999     *)
10000     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10001     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002     ;;
10003     esac
10004 michael 945 fi
10005 michael 912 else
10006     ld_shlibs=no
10007     fi
10008     ;;
10009    
10010     os2*)
10011     hardcode_libdir_flag_spec='-L$libdir'
10012     hardcode_minus_L=yes
10013     allow_undefined_flag=unsupported
10014 michael 1094 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'
10015 michael 945 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10016 michael 912 ;;
10017    
10018     osf3*)
10019     if test "$GCC" = yes; then
10020     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10021 michael 1094 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10022 michael 912 else
10023     allow_undefined_flag=' -expect_unresolved \*'
10024 michael 1094 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10025 michael 912 fi
10026 michael 945 archive_cmds_need_lc='no'
10027 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10028     hardcode_libdir_separator=:
10029     ;;
10030    
10031     osf4* | osf5*) # as osf3* with the addition of -msym flag
10032     if test "$GCC" = yes; then
10033     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034 michael 1106 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10035 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036     else
10037     allow_undefined_flag=' -expect_unresolved \*'
10038 michael 1094 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10039 michael 945 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~
10040 michael 1094 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10041 michael 912
10042     # Both c and cxx compiler support -rpath directly
10043     hardcode_libdir_flag_spec='-rpath $libdir'
10044     fi
10045 michael 945 archive_cmds_need_lc='no'
10046 michael 912 hardcode_libdir_separator=:
10047     ;;
10048    
10049     solaris*)
10050 michael 945 no_undefined_flag=' -z defs'
10051 michael 912 if test "$GCC" = yes; then
10052     wlarc='${wl}'
10053 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 michael 945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 michael 1106 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10056 michael 912 else
10057 michael 945 case `$CC -V 2>&1` in
10058     *"Compilers 5.0"*)
10059     wlarc=''
10060     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10063     ;;
10064     *)
10065     wlarc='${wl}'
10066     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10069     ;;
10070     esac
10071 michael 912 fi
10072     hardcode_libdir_flag_spec='-R$libdir'
10073     hardcode_shlibpath_var=no
10074     case $host_os in
10075     solaris2.[0-5] | solaris2.[0-5].*) ;;
10076     *)
10077     # The compiler driver will combine and reorder linker options,
10078     # but understands `-z linker_flag'. GCC discards it without `$wl',
10079     # but is careful enough not to reorder.
10080 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
10081 michael 912 if test "$GCC" = yes; then
10082     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10083     else
10084     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10085     fi
10086     ;;
10087     esac
10088     link_all_deplibs=yes
10089     ;;
10090    
10091     sunos4*)
10092     if test "x$host_vendor" = xsequent; then
10093     # Use $CC to link under sequent, because it throws in some extra .o
10094     # files that make .init and .fini sections work.
10095     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096     else
10097     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10098     fi
10099     hardcode_libdir_flag_spec='-L$libdir'
10100     hardcode_direct=yes
10101     hardcode_minus_L=yes
10102     hardcode_shlibpath_var=no
10103     ;;
10104    
10105     sysv4)
10106     case $host_vendor in
10107     sni)
10108     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109     hardcode_direct=yes # is this really true???
10110     ;;
10111     siemens)
10112     ## LD is ld it makes a PLAMLIB
10113     ## CC just makes a GrossModule.
10114     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10115     reload_cmds='$CC -r -o $output$reload_objs'
10116     hardcode_direct=no
10117     ;;
10118     motorola)
10119     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10121     ;;
10122     esac
10123     runpath_var='LD_RUN_PATH'
10124     hardcode_shlibpath_var=no
10125     ;;
10126    
10127     sysv4.3*)
10128     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129     hardcode_shlibpath_var=no
10130     export_dynamic_flag_spec='-Bexport'
10131     ;;
10132    
10133     sysv4*MP*)
10134     if test -d /usr/nec; then
10135     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136     hardcode_shlibpath_var=no
10137     runpath_var=LD_RUN_PATH
10138     hardcode_runpath_var=yes
10139     ld_shlibs=yes
10140     fi
10141     ;;
10142    
10143     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10144     no_undefined_flag='${wl}-z,text'
10145     archive_cmds_need_lc=no
10146     hardcode_shlibpath_var=no
10147     runpath_var='LD_RUN_PATH'
10148    
10149     if test "$GCC" = yes; then
10150     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152     else
10153     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155     fi
10156     ;;
10157    
10158     sysv5* | sco3.2v5* | sco5v6*)
10159     # Note: We can NOT use -z defs as we might desire, because we do not
10160     # link with -lc, and that would cause any symbols used from libc to
10161     # always be unresolved, which means just about no library would
10162     # ever link correctly. If we're not using GNU ld we use -z text
10163     # though, which does catch some bad symbols but isn't as heavy-handed
10164     # as -z defs.
10165     no_undefined_flag='${wl}-z,text'
10166     allow_undefined_flag='${wl}-z,nodefs'
10167     archive_cmds_need_lc=no
10168     hardcode_shlibpath_var=no
10169 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10170 michael 912 hardcode_libdir_separator=':'
10171     link_all_deplibs=yes
10172     export_dynamic_flag_spec='${wl}-Bexport'
10173     runpath_var='LD_RUN_PATH'
10174    
10175     if test "$GCC" = yes; then
10176 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 michael 912 else
10179 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 michael 912 fi
10182     ;;
10183    
10184     uts4*)
10185     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186     hardcode_libdir_flag_spec='-L$libdir'
10187     hardcode_shlibpath_var=no
10188     ;;
10189    
10190     *)
10191     ld_shlibs=no
10192     ;;
10193     esac
10194 michael 945
10195     if test x$host_vendor = xsni; then
10196     case $host in
10197     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10198     export_dynamic_flag_spec='${wl}-Blargedynsym'
10199     ;;
10200     esac
10201     fi
10202 michael 912 fi
10203    
10204 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10205 db 941 $as_echo "$ld_shlibs" >&6; }
10206 michael 912 test "$ld_shlibs" = no && can_build_shared=no
10207    
10208 michael 945 with_gnu_ld=$with_gnu_ld
10209    
10210    
10211    
10212    
10213    
10214    
10215    
10216    
10217    
10218    
10219    
10220    
10221    
10222    
10223    
10224 michael 912 #
10225     # Do we need to explicitly link libc?
10226     #
10227     case "x$archive_cmds_need_lc" in
10228     x|xyes)
10229     # Assume -lc should be added
10230     archive_cmds_need_lc=yes
10231    
10232     if test "$enable_shared" = yes && test "$GCC" = yes; then
10233     case $archive_cmds in
10234     *'~'*)
10235     # FIXME: we may have to deal with multi-command sequences.
10236     ;;
10237     '$CC '*)
10238     # Test whether the compiler implicitly links with -lc since on some
10239     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10240     # to ld, don't add -lc before -lgcc.
10241 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10242 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10243 michael 1106 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10244 michael 1094 $as_echo_n "(cached) " >&6
10245     else
10246     $RM conftest*
10247     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 michael 912
10249 michael 1094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10250 michael 912 (eval $ac_compile) 2>&5
10251     ac_status=$?
10252 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253     test $ac_status = 0; } 2>conftest.err; then
10254 michael 1094 soname=conftest
10255     lib=conftest
10256     libobjs=conftest.$ac_objext
10257     deplibs=
10258     wl=$lt_prog_compiler_wl
10259     pic_flag=$lt_prog_compiler_pic
10260     compiler_flags=-v
10261     linker_flags=-v
10262     verstring=
10263     output_objdir=.
10264     libname=conftest
10265     lt_save_allow_undefined_flag=$allow_undefined_flag
10266     allow_undefined_flag=
10267     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10268 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10269 michael 912 ac_status=$?
10270 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10271     test $ac_status = 0; }
10272 michael 1094 then
10273     lt_cv_archive_cmds_need_lc=no
10274     else
10275     lt_cv_archive_cmds_need_lc=yes
10276     fi
10277     allow_undefined_flag=$lt_save_allow_undefined_flag
10278     else
10279     cat conftest.err 1>&5
10280     fi
10281     $RM conftest*
10282    
10283     fi
10284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10285     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10286     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10287 michael 912 ;;
10288     esac
10289     fi
10290     ;;
10291     esac
10292    
10293 michael 945
10294    
10295    
10296    
10297    
10298    
10299    
10300    
10301    
10302    
10303    
10304    
10305    
10306    
10307    
10308    
10309    
10310    
10311    
10312    
10313    
10314    
10315    
10316    
10317    
10318    
10319    
10320    
10321    
10322    
10323    
10324    
10325    
10326    
10327    
10328    
10329    
10330    
10331    
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10445 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10446 michael 912
10447     if test "$GCC" = yes; then
10448     case $host_os in
10449     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10450     *) lt_awk_arg="/^libraries:/" ;;
10451     esac
10452 michael 1094 case $host_os in
10453     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10454     *) lt_sed_strip_eq="s,=/,/,g" ;;
10455     esac
10456     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10457     case $lt_search_path_spec in
10458     *\;*)
10459 michael 912 # if the path contains ";" then we assume it to be the separator
10460     # otherwise default to the standard path separator (i.e. ":") - it is
10461     # assumed that no part of a normal pathname contains ";" but that should
10462     # okay in the real world where ";" in dirpaths is itself problematic.
10463 michael 1094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10464     ;;
10465     *)
10466     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10467     ;;
10468     esac
10469 michael 912 # Ok, now we have the path, separated by spaces, we can step through it
10470     # and add multilib dir if necessary.
10471     lt_tmp_lt_search_path_spec=
10472     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10473     for lt_sys_path in $lt_search_path_spec; do
10474     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10475     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10476     else
10477     test -d "$lt_sys_path" && \
10478     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10479     fi
10480     done
10481 michael 1094 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10482 michael 912 BEGIN {RS=" "; FS="/|\n";} {
10483     lt_foo="";
10484     lt_count=0;
10485     for (lt_i = NF; lt_i > 0; lt_i--) {
10486     if ($lt_i != "" && $lt_i != ".") {
10487     if ($lt_i == "..") {
10488     lt_count++;
10489     } else {
10490     if (lt_count == 0) {
10491     lt_foo="/" $lt_i lt_foo;
10492     } else {
10493     lt_count--;
10494     }
10495     }
10496     }
10497     }
10498     if (lt_foo != "") { lt_freq[lt_foo]++; }
10499     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10500     }'`
10501 michael 1094 # AWK program above erroneously prepends '/' to C:/dos/paths
10502     # for these hosts.
10503     case $host_os in
10504     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10505     $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10506     esac
10507     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10508 michael 912 else
10509     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10510     fi
10511 michael 945 library_names_spec=
10512     libname_spec='lib$name'
10513     soname_spec=
10514     shrext_cmds=".so"
10515     postinstall_cmds=
10516     postuninstall_cmds=
10517     finish_cmds=
10518     finish_eval=
10519     shlibpath_var=
10520     shlibpath_overrides_runpath=unknown
10521     version_type=none
10522     dynamic_linker="$host_os ld.so"
10523     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10524 michael 912 need_lib_prefix=unknown
10525     hardcode_into_libs=no
10526    
10527     # when you set need_version to no, make sure it does not cause -set_version
10528     # flags to be left without arguments
10529     need_version=unknown
10530    
10531     case $host_os in
10532     aix3*)
10533 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10534 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10535     shlibpath_var=LIBPATH
10536    
10537     # AIX 3 has no versioning support, so we append a major version to the name.
10538     soname_spec='${libname}${release}${shared_ext}$major'
10539     ;;
10540    
10541 db 941 aix[4-9]*)
10542 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10543 michael 912 need_lib_prefix=no
10544     need_version=no
10545     hardcode_into_libs=yes
10546     if test "$host_cpu" = ia64; then
10547     # AIX 5 supports IA64
10548     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10549     shlibpath_var=LD_LIBRARY_PATH
10550     else
10551     # With GCC up to 2.95.x, collect2 would create an import file
10552     # for dependence libraries. The import file would start with
10553     # the line `#! .'. This would cause the generated library to
10554     # depend on `.', always an invalid library. This was fixed in
10555     # development snapshots of GCC prior to 3.0.
10556     case $host_os in
10557     aix4 | aix4.[01] | aix4.[01].*)
10558     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10559     echo ' yes '
10560 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10561 michael 912 :
10562     else
10563     can_build_shared=no
10564     fi
10565     ;;
10566     esac
10567     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10568     # soname into executable. Probably we can add versioning support to
10569     # collect2, so additional links can be useful in future.
10570     if test "$aix_use_runtimelinking" = yes; then
10571     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10572     # instead of lib<name>.a to let people know that these are not
10573     # typical AIX shared libraries.
10574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575     else
10576     # We preserve .a as extension for shared libraries through AIX4.2
10577     # and later when we are not doing run time linking.
10578     library_names_spec='${libname}${release}.a $libname.a'
10579     soname_spec='${libname}${release}${shared_ext}$major'
10580     fi
10581     shlibpath_var=LIBPATH
10582     fi
10583     ;;
10584    
10585     amigaos*)
10586 michael 945 case $host_cpu in
10587     powerpc)
10588     # Since July 2007 AmigaOS4 officially supports .so libraries.
10589     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591     ;;
10592     m68k)
10593     library_names_spec='$libname.ixlibrary $libname.a'
10594     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10595 michael 1094 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10596 michael 945 ;;
10597     esac
10598 michael 912 ;;
10599    
10600     beos*)
10601     library_names_spec='${libname}${shared_ext}'
10602     dynamic_linker="$host_os ld.so"
10603     shlibpath_var=LIBRARY_PATH
10604     ;;
10605    
10606     bsdi[45]*)
10607 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10608 michael 912 need_version=no
10609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610     soname_spec='${libname}${release}${shared_ext}$major'
10611     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10612     shlibpath_var=LD_LIBRARY_PATH
10613     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10614     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10615     # the default ld.so.conf also contains /usr/contrib/lib and
10616     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10617     # libtool to hard-code these into programs
10618     ;;
10619    
10620 michael 945 cygwin* | mingw* | pw32* | cegcc*)
10621 michael 912 version_type=windows
10622     shrext_cmds=".dll"
10623     need_version=no
10624     need_lib_prefix=no
10625    
10626 michael 1106 case $GCC,$cc_basename in
10627     yes,*)
10628     # gcc
10629 michael 912 library_names_spec='$libname.dll.a'
10630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10631     postinstall_cmds='base_file=`basename \${file}`~
10632 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10633 michael 912 dldir=$destdir/`dirname \$dlpath`~
10634     test -d \$dldir || mkdir -p \$dldir~
10635     $install_prog $dir/$dlname \$dldir/$dlname~
10636 michael 945 chmod a+x \$dldir/$dlname~
10637     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10638     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10639     fi'
10640 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641     dlpath=$dir/\$dldll~
10642 michael 945 $RM \$dlpath'
10643 michael 912 shlibpath_overrides_runpath=yes
10644    
10645     case $host_os in
10646     cygwin*)
10647     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10648     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10649 michael 1094
10650     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10651 michael 912 ;;
10652 michael 945 mingw* | cegcc*)
10653 michael 912 # MinGW DLLs use traditional 'lib' prefix
10654     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655     ;;
10656     pw32*)
10657     # pw32 DLLs use 'pw' prefix rather than 'lib'
10658     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659     ;;
10660     esac
10661 michael 1106 dynamic_linker='Win32 ld.exe'
10662 michael 912 ;;
10663    
10664 michael 1106 *,cl*)
10665     # Native MSVC
10666     libname_spec='$name'
10667     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668     library_names_spec='${libname}.dll.lib'
10669    
10670     case $build_os in
10671     mingw*)
10672     sys_lib_search_path_spec=
10673     lt_save_ifs=$IFS
10674     IFS=';'
10675     for lt_path in $LIB
10676     do
10677     IFS=$lt_save_ifs
10678     # Let DOS variable expansion print the short 8.3 style file name.
10679     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10680     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10681     done
10682     IFS=$lt_save_ifs
10683     # Convert to MSYS style.
10684     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10685     ;;
10686     cygwin*)
10687     # Convert to unix form, then to dos form, then back to unix form
10688     # but this time dos style (no spaces!) so that the unix form looks
10689     # like /cygdrive/c/PROGRA~1:/cygdr...
10690     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10691     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10692     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10693     ;;
10694     *)
10695     sys_lib_search_path_spec="$LIB"
10696     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10697     # It is most probably a Windows format PATH.
10698     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10699     else
10700     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10701     fi
10702     # FIXME: find the short name or the path components, as spaces are
10703     # common. (e.g. "Program Files" -> "PROGRA~1")
10704     ;;
10705     esac
10706    
10707     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10708     postinstall_cmds='base_file=`basename \${file}`~
10709     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10710     dldir=$destdir/`dirname \$dlpath`~
10711     test -d \$dldir || mkdir -p \$dldir~
10712     $install_prog $dir/$dlname \$dldir/$dlname'
10713     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10714     dlpath=$dir/\$dldll~
10715     $RM \$dlpath'
10716     shlibpath_overrides_runpath=yes
10717     dynamic_linker='Win32 link.exe'
10718     ;;
10719    
10720 michael 912 *)
10721 michael 1106 # Assume MSVC wrapper
10722 michael 912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10723 michael 1106 dynamic_linker='Win32 ld.exe'
10724 michael 912 ;;
10725     esac
10726     # FIXME: first we should search . and the directory the executable is in
10727     shlibpath_var=PATH
10728     ;;
10729    
10730     darwin* | rhapsody*)
10731     dynamic_linker="$host_os dyld"
10732     version_type=darwin
10733     need_lib_prefix=no
10734     need_version=no
10735 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10736 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
10737     shlibpath_overrides_runpath=yes
10738     shlibpath_var=DYLD_LIBRARY_PATH
10739     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10740    
10741     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10742     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10743     ;;
10744    
10745     dgux*)
10746 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10747 michael 912 need_lib_prefix=no
10748     need_version=no
10749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10750     soname_spec='${libname}${release}${shared_ext}$major'
10751     shlibpath_var=LD_LIBRARY_PATH
10752     ;;
10753    
10754     freebsd* | dragonfly*)
10755     # DragonFly does not have aout. When/if they implement a new
10756     # versioning mechanism, adjust this.
10757     if test -x /usr/bin/objformat; then
10758     objformat=`/usr/bin/objformat`
10759     else
10760     case $host_os in
10761 michael 1257 freebsd[23].*) objformat=aout ;;
10762 michael 912 *) objformat=elf ;;
10763     esac
10764     fi
10765     version_type=freebsd-$objformat
10766     case $version_type in
10767     freebsd-elf*)
10768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10769     need_version=no
10770     need_lib_prefix=no
10771     ;;
10772     freebsd-*)
10773     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10774     need_version=yes
10775     ;;
10776     esac
10777     shlibpath_var=LD_LIBRARY_PATH
10778     case $host_os in
10779 michael 1257 freebsd2.*)
10780 michael 912 shlibpath_overrides_runpath=yes
10781     ;;
10782     freebsd3.[01]* | freebsdelf3.[01]*)
10783     shlibpath_overrides_runpath=yes
10784     hardcode_into_libs=yes
10785     ;;
10786     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10787     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10788     shlibpath_overrides_runpath=no
10789     hardcode_into_libs=yes
10790     ;;
10791     *) # from 4.6 on, and DragonFly
10792     shlibpath_overrides_runpath=yes
10793     hardcode_into_libs=yes
10794     ;;
10795     esac
10796     ;;
10797    
10798     gnu*)
10799 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10800 michael 912 need_lib_prefix=no
10801     need_version=no
10802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10803     soname_spec='${libname}${release}${shared_ext}$major'
10804     shlibpath_var=LD_LIBRARY_PATH
10805 michael 1257 shlibpath_overrides_runpath=no
10806 michael 912 hardcode_into_libs=yes
10807     ;;
10808    
10809 michael 1094 haiku*)
10810 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10811 michael 1094 need_lib_prefix=no
10812     need_version=no
10813     dynamic_linker="$host_os runtime_loader"
10814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10815     soname_spec='${libname}${release}${shared_ext}$major'
10816     shlibpath_var=LIBRARY_PATH
10817     shlibpath_overrides_runpath=yes
10818     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10819     hardcode_into_libs=yes
10820     ;;
10821    
10822 michael 912 hpux9* | hpux10* | hpux11*)
10823     # Give a soname corresponding to the major version so that dld.sl refuses to
10824     # link against other versions.
10825     version_type=sunos
10826     need_lib_prefix=no
10827     need_version=no
10828     case $host_cpu in
10829     ia64*)
10830     shrext_cmds='.so'
10831     hardcode_into_libs=yes
10832     dynamic_linker="$host_os dld.so"
10833     shlibpath_var=LD_LIBRARY_PATH
10834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836     soname_spec='${libname}${release}${shared_ext}$major'
10837     if test "X$HPUX_IA64_MODE" = X32; then
10838     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10839     else
10840     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10841     fi
10842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10843     ;;
10844 michael 945 hppa*64*)
10845 michael 912 shrext_cmds='.sl'
10846 michael 945 hardcode_into_libs=yes
10847 michael 912 dynamic_linker="$host_os dld.sl"
10848 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851     soname_spec='${libname}${release}${shared_ext}$major'
10852     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10854     ;;
10855     *)
10856     shrext_cmds='.sl'
10857     dynamic_linker="$host_os dld.sl"
10858 michael 912 shlibpath_var=SHLIB_PATH
10859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861     soname_spec='${libname}${release}${shared_ext}$major'
10862     ;;
10863     esac
10864 michael 1094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10865 michael 912 postinstall_cmds='chmod 555 $lib'
10866 michael 1094 # or fails outright, so override atomically:
10867     install_override_mode=555
10868 michael 912 ;;
10869    
10870     interix[3-9]*)
10871 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10872 michael 912 need_lib_prefix=no
10873     need_version=no
10874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10875     soname_spec='${libname}${release}${shared_ext}$major'
10876     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10877     shlibpath_var=LD_LIBRARY_PATH
10878     shlibpath_overrides_runpath=no
10879     hardcode_into_libs=yes
10880     ;;
10881    
10882     irix5* | irix6* | nonstopux*)
10883     case $host_os in
10884     nonstopux*) version_type=nonstopux ;;
10885     *)
10886     if test "$lt_cv_prog_gnu_ld" = yes; then
10887 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10888 michael 912 else
10889     version_type=irix
10890     fi ;;
10891     esac
10892     need_lib_prefix=no
10893     need_version=no
10894     soname_spec='${libname}${release}${shared_ext}$major'
10895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10896     case $host_os in
10897     irix5* | nonstopux*)
10898     libsuff= shlibsuff=
10899     ;;
10900     *)
10901     case $LD in # libtool.m4 will add one of these switches to LD
10902     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10903     libsuff= shlibsuff= libmagic=32-bit;;
10904     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10905     libsuff=32 shlibsuff=N32 libmagic=N32;;
10906     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10907     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10908     *) libsuff= shlibsuff= libmagic=never-match;;
10909     esac
10910     ;;
10911     esac
10912     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10913     shlibpath_overrides_runpath=no
10914     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10915     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10916     hardcode_into_libs=yes
10917     ;;
10918    
10919     # No shared lib support for Linux oldld, aout, or coff.
10920     linux*oldld* | linux*aout* | linux*coff*)
10921     dynamic_linker=no
10922     ;;
10923    
10924 michael 1257 # This must be glibc/ELF.
10925 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10926 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10927 michael 912 need_lib_prefix=no
10928     need_version=no
10929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930     soname_spec='${libname}${release}${shared_ext}$major'
10931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10932     shlibpath_var=LD_LIBRARY_PATH
10933     shlibpath_overrides_runpath=no
10934 michael 1094
10935 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10936 michael 1106 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10937 michael 1094 $as_echo_n "(cached) " >&6
10938     else
10939     lt_cv_shlibpath_overrides_runpath=no
10940     save_LDFLAGS=$LDFLAGS
10941     save_libdir=$libdir
10942     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10943     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 michael 945 /* end confdefs.h. */
10946    
10947     int
10948     main ()
10949     {
10950    
10951     ;
10952     return 0;
10953     }
10954     _ACEOF
10955 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10956     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10957 michael 1094 lt_cv_shlibpath_overrides_runpath=yes
10958 michael 945 fi
10959     fi
10960 michael 967 rm -f core conftest.err conftest.$ac_objext \
10961     conftest$ac_exeext conftest.$ac_ext
10962 michael 1094 LDFLAGS=$save_LDFLAGS
10963     libdir=$save_libdir
10964 michael 945
10965 michael 1094 fi
10966    
10967     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10968    
10969 michael 912 # This implies no fast_install, which is unacceptable.
10970     # Some rework will be needed to allow for fast_install
10971     # before this can be enabled.
10972     hardcode_into_libs=yes
10973    
10974     # Append ld.so.conf contents to the search path
10975     if test -f /etc/ld.so.conf; then
10976 michael 1094 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10977 michael 1084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10978 michael 912 fi
10979    
10980     # We used to test for /lib/ld.so.1 and disable shared libraries on
10981     # powerpc, because MkLinux only supported shared libraries with the
10982     # GNU dynamic linker. Since this was broken with cross compilers,
10983     # most powerpc-linux boxes support dynamic linking these days and
10984     # people can always --disable-shared, the test was removed, and we
10985     # assume the GNU/Linux dynamic linker is in use.
10986     dynamic_linker='GNU/Linux ld.so'
10987     ;;
10988    
10989     netbsd*)
10990     version_type=sunos
10991     need_lib_prefix=no
10992     need_version=no
10993 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10994 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10995     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10996     dynamic_linker='NetBSD (a.out) ld.so'
10997     else
10998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10999     soname_spec='${libname}${release}${shared_ext}$major'
11000     dynamic_linker='NetBSD ld.elf_so'
11001     fi
11002     shlibpath_var=LD_LIBRARY_PATH
11003     shlibpath_overrides_runpath=yes
11004     hardcode_into_libs=yes
11005     ;;
11006    
11007     newsos6)
11008 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11009 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010     shlibpath_var=LD_LIBRARY_PATH
11011     shlibpath_overrides_runpath=yes
11012     ;;
11013    
11014 michael 945 *nto* | *qnx*)
11015     version_type=qnx
11016 michael 912 need_lib_prefix=no
11017     need_version=no
11018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019     soname_spec='${libname}${release}${shared_ext}$major'
11020     shlibpath_var=LD_LIBRARY_PATH
11021 michael 945 shlibpath_overrides_runpath=no
11022     hardcode_into_libs=yes
11023     dynamic_linker='ldqnx.so'
11024 michael 912 ;;
11025    
11026     openbsd*)
11027     version_type=sunos
11028     sys_lib_dlsearch_path_spec="/usr/lib"
11029     need_lib_prefix=no
11030     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11031     case $host_os in
11032 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11033     *) need_version=no ;;
11034 michael 912 esac
11035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11036     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11037     shlibpath_var=LD_LIBRARY_PATH
11038 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11039 michael 912 case $host_os in
11040     openbsd2.[89] | openbsd2.[89].*)
11041     shlibpath_overrides_runpath=no
11042     ;;
11043     *)
11044     shlibpath_overrides_runpath=yes
11045     ;;
11046     esac
11047     else
11048     shlibpath_overrides_runpath=yes
11049     fi
11050     ;;
11051    
11052     os2*)
11053     libname_spec='$name'
11054     shrext_cmds=".dll"
11055     need_lib_prefix=no
11056     library_names_spec='$libname${shared_ext} $libname.a'
11057     dynamic_linker='OS/2 ld.exe'
11058     shlibpath_var=LIBPATH
11059     ;;
11060    
11061     osf3* | osf4* | osf5*)
11062     version_type=osf
11063     need_lib_prefix=no
11064     need_version=no
11065     soname_spec='${libname}${release}${shared_ext}$major'
11066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067     shlibpath_var=LD_LIBRARY_PATH
11068     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11069     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11070     ;;
11071    
11072     rdos*)
11073     dynamic_linker=no
11074     ;;
11075    
11076     solaris*)
11077 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11078 michael 912 need_lib_prefix=no
11079     need_version=no
11080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081     soname_spec='${libname}${release}${shared_ext}$major'
11082     shlibpath_var=LD_LIBRARY_PATH
11083     shlibpath_overrides_runpath=yes
11084     hardcode_into_libs=yes
11085     # ldd complains unless libraries are executable
11086     postinstall_cmds='chmod +x $lib'
11087     ;;
11088    
11089     sunos4*)
11090     version_type=sunos
11091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11092     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11093     shlibpath_var=LD_LIBRARY_PATH
11094     shlibpath_overrides_runpath=yes
11095     if test "$with_gnu_ld" = yes; then
11096     need_lib_prefix=no
11097     fi
11098     need_version=yes
11099     ;;
11100    
11101     sysv4 | sysv4.3*)
11102 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11103 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104     soname_spec='${libname}${release}${shared_ext}$major'
11105     shlibpath_var=LD_LIBRARY_PATH
11106     case $host_vendor in
11107     sni)
11108     shlibpath_overrides_runpath=no
11109     need_lib_prefix=no
11110     runpath_var=LD_RUN_PATH
11111     ;;
11112     siemens)
11113     need_lib_prefix=no
11114     ;;
11115     motorola)
11116     need_lib_prefix=no
11117     need_version=no
11118     shlibpath_overrides_runpath=no
11119     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11120     ;;
11121     esac
11122     ;;
11123    
11124     sysv4*MP*)
11125     if test -d /usr/nec ;then
11126 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11127 michael 912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11128     soname_spec='$libname${shared_ext}.$major'
11129     shlibpath_var=LD_LIBRARY_PATH
11130     fi
11131     ;;
11132    
11133     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11134     version_type=freebsd-elf
11135     need_lib_prefix=no
11136     need_version=no
11137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11138     soname_spec='${libname}${release}${shared_ext}$major'
11139     shlibpath_var=LD_LIBRARY_PATH
11140 michael 945 shlibpath_overrides_runpath=yes
11141 michael 912 hardcode_into_libs=yes
11142     if test "$with_gnu_ld" = yes; then
11143     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11144     else
11145     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11146     case $host_os in
11147     sco3.2v5*)
11148     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11149     ;;
11150     esac
11151     fi
11152     sys_lib_dlsearch_path_spec='/usr/lib'
11153     ;;
11154    
11155 michael 945 tpf*)
11156     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11157 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11158 michael 945 need_lib_prefix=no
11159     need_version=no
11160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161     shlibpath_var=LD_LIBRARY_PATH
11162     shlibpath_overrides_runpath=no
11163     hardcode_into_libs=yes
11164     ;;
11165    
11166 michael 912 uts4*)
11167 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11168 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169     soname_spec='${libname}${release}${shared_ext}$major'
11170     shlibpath_var=LD_LIBRARY_PATH
11171     ;;
11172    
11173     *)
11174     dynamic_linker=no
11175     ;;
11176     esac
11177 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11178 db 941 $as_echo "$dynamic_linker" >&6; }
11179 michael 912 test "$dynamic_linker" = no && can_build_shared=no
11180    
11181 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11182     if test "$GCC" = yes; then
11183     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11184     fi
11185    
11186 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11187 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11188 db 941 fi
11189     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11190 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11191 db 941 fi
11192    
11193    
11194 michael 912
11195 michael 945
11196    
11197    
11198    
11199    
11200    
11201    
11202    
11203    
11204    
11205    
11206    
11207    
11208    
11209    
11210    
11211    
11212    
11213    
11214    
11215    
11216    
11217    
11218    
11219    
11220    
11221    
11222    
11223    
11224    
11225    
11226    
11227    
11228    
11229    
11230    
11231    
11232    
11233    
11234    
11235    
11236    
11237    
11238    
11239    
11240    
11241    
11242    
11243    
11244    
11245    
11246    
11247    
11248    
11249    
11250    
11251    
11252    
11253    
11254    
11255    
11256    
11257    
11258    
11259    
11260    
11261    
11262    
11263    
11264    
11265    
11266    
11267    
11268    
11269    
11270    
11271    
11272    
11273    
11274    
11275    
11276    
11277    
11278    
11279 michael 1094
11280    
11281    
11282    
11283    
11284 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11285 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11286 michael 912 hardcode_action=
11287 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
11288     test -n "$runpath_var" ||
11289 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
11290    
11291 michael 945 # We can hardcode non-existent directories.
11292 michael 912 if test "$hardcode_direct" != no &&
11293     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11294     # have to relink, otherwise we might link with an installed library
11295     # when we should be linking with a yet-to-be-installed one
11296 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11297 michael 912 test "$hardcode_minus_L" != no; then
11298     # Linking always hardcodes the temporary library directory.
11299     hardcode_action=relink
11300     else
11301     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11302     hardcode_action=immediate
11303     fi
11304     else
11305     # We cannot hardcode anything, or else we can only hardcode existing
11306     # directories.
11307     hardcode_action=unsupported
11308     fi
11309 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11310 db 941 $as_echo "$hardcode_action" >&6; }
11311 michael 912
11312 michael 945 if test "$hardcode_action" = relink ||
11313     test "$inherit_rpath" = yes; then
11314 michael 912 # Fast installation is not supported
11315     enable_fast_install=no
11316     elif test "$shlibpath_overrides_runpath" = yes ||
11317     test "$enable_shared" = no; then
11318     # Fast installation is not necessary
11319     enable_fast_install=needless
11320     fi
11321    
11322    
11323 michael 945
11324    
11325    
11326    
11327     if test "x$enable_dlopen" != xyes; then
11328 michael 912 enable_dlopen=unknown
11329     enable_dlopen_self=unknown
11330     enable_dlopen_self_static=unknown
11331     else
11332     lt_cv_dlopen=no
11333     lt_cv_dlopen_libs=
11334    
11335     case $host_os in
11336     beos*)
11337     lt_cv_dlopen="load_add_on"
11338     lt_cv_dlopen_libs=
11339     lt_cv_dlopen_self=yes
11340     ;;
11341    
11342 michael 945 mingw* | pw32* | cegcc*)
11343 michael 912 lt_cv_dlopen="LoadLibrary"
11344     lt_cv_dlopen_libs=
11345 michael 945 ;;
11346 michael 912
11347     cygwin*)
11348     lt_cv_dlopen="dlopen"
11349     lt_cv_dlopen_libs=
11350 michael 945 ;;
11351 michael 912
11352     darwin*)
11353     # if libdl is installed we need to link against it
11354 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11355 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11356 michael 1106 if ${ac_cv_lib_dl_dlopen+:} false; then :
11357 db 941 $as_echo_n "(cached) " >&6
11358 michael 912 else
11359     ac_check_lib_save_LIBS=$LIBS
11360     LIBS="-ldl $LIBS"
11361 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 michael 912 /* end confdefs.h. */
11363    
11364     /* Override any GCC internal prototype to avoid an error.
11365     Use char because int might match the return type of a GCC
11366     builtin and then its argument prototype would still apply. */
11367     #ifdef __cplusplus
11368     extern "C"
11369     #endif
11370     char dlopen ();
11371     int
11372     main ()
11373     {
11374     return dlopen ();
11375     ;
11376     return 0;
11377     }
11378     _ACEOF
11379 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11380 michael 912 ac_cv_lib_dl_dlopen=yes
11381     else
11382 michael 967 ac_cv_lib_dl_dlopen=no
11383 michael 912 fi
11384 michael 967 rm -f core conftest.err conftest.$ac_objext \
11385     conftest$ac_exeext conftest.$ac_ext
11386 michael 912 LIBS=$ac_check_lib_save_LIBS
11387     fi
11388 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11389 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11390 michael 1106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11391 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11392     else
11393    
11394     lt_cv_dlopen="dyld"
11395     lt_cv_dlopen_libs=
11396     lt_cv_dlopen_self=yes
11397    
11398     fi
11399    
11400 michael 945 ;;
11401 michael 912
11402     *)
11403 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11404 michael 1106 if test "x$ac_cv_func_shl_load" = xyes; then :
11405 michael 912 lt_cv_dlopen="shl_load"
11406     else
11407 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11408 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11409 michael 1106 if ${ac_cv_lib_dld_shl_load+:} false; then :
11410 db 941 $as_echo_n "(cached) " >&6
11411 michael 912 else
11412     ac_check_lib_save_LIBS=$LIBS
11413     LIBS="-ldld $LIBS"
11414 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 michael 912 /* end confdefs.h. */
11416    
11417     /* Override any GCC internal prototype to avoid an error.
11418     Use char because int might match the return type of a GCC
11419     builtin and then its argument prototype would still apply. */
11420     #ifdef __cplusplus
11421     extern "C"
11422     #endif
11423     char shl_load ();
11424     int
11425     main ()
11426     {
11427     return shl_load ();
11428     ;
11429     return 0;
11430     }
11431     _ACEOF
11432 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11433 michael 912 ac_cv_lib_dld_shl_load=yes
11434     else
11435 michael 967 ac_cv_lib_dld_shl_load=no
11436 michael 912 fi
11437 michael 967 rm -f core conftest.err conftest.$ac_objext \
11438     conftest$ac_exeext conftest.$ac_ext
11439 michael 912 LIBS=$ac_check_lib_save_LIBS
11440     fi
11441 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11442 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11443 michael 1106 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11444 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11445 michael 912 else
11446 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11447 michael 1106 if test "x$ac_cv_func_dlopen" = xyes; then :
11448 michael 912 lt_cv_dlopen="dlopen"
11449     else
11450 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11451 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11452 michael 1106 if ${ac_cv_lib_dl_dlopen+:} false; then :
11453 db 941 $as_echo_n "(cached) " >&6
11454 michael 912 else
11455     ac_check_lib_save_LIBS=$LIBS
11456     LIBS="-ldl $LIBS"
11457 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 michael 912 /* end confdefs.h. */
11459    
11460     /* Override any GCC internal prototype to avoid an error.
11461     Use char because int might match the return type of a GCC
11462     builtin and then its argument prototype would still apply. */
11463     #ifdef __cplusplus
11464     extern "C"
11465     #endif
11466     char dlopen ();
11467     int
11468     main ()
11469     {
11470     return dlopen ();
11471     ;
11472     return 0;
11473     }
11474     _ACEOF
11475 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11476 michael 912 ac_cv_lib_dl_dlopen=yes
11477     else
11478 michael 967 ac_cv_lib_dl_dlopen=no
11479 michael 912 fi
11480 michael 967 rm -f core conftest.err conftest.$ac_objext \
11481     conftest$ac_exeext conftest.$ac_ext
11482 michael 912 LIBS=$ac_check_lib_save_LIBS
11483     fi
11484 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11485 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11486 michael 1106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11487 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11488     else
11489 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11490 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11491 michael 1106 if ${ac_cv_lib_svld_dlopen+:} false; then :
11492 db 941 $as_echo_n "(cached) " >&6
11493 michael 912 else
11494     ac_check_lib_save_LIBS=$LIBS
11495     LIBS="-lsvld $LIBS"
11496 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 michael 912 /* end confdefs.h. */
11498    
11499     /* Override any GCC internal prototype to avoid an error.
11500     Use char because int might match the return type of a GCC
11501     builtin and then its argument prototype would still apply. */
11502     #ifdef __cplusplus
11503     extern "C"
11504     #endif
11505     char dlopen ();
11506     int
11507     main ()
11508     {
11509     return dlopen ();
11510     ;
11511     return 0;
11512     }
11513     _ACEOF
11514 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11515 michael 912 ac_cv_lib_svld_dlopen=yes
11516     else
11517 michael 967 ac_cv_lib_svld_dlopen=no
11518 michael 912 fi
11519 michael 967 rm -f core conftest.err conftest.$ac_objext \
11520     conftest$ac_exeext conftest.$ac_ext
11521 michael 912 LIBS=$ac_check_lib_save_LIBS
11522     fi
11523 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11524 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11525 michael 1106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11526 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11527     else
11528 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11529 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11530 michael 1106 if ${ac_cv_lib_dld_dld_link+:} false; then :
11531 db 941 $as_echo_n "(cached) " >&6
11532 michael 912 else
11533     ac_check_lib_save_LIBS=$LIBS
11534     LIBS="-ldld $LIBS"
11535 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 michael 912 /* end confdefs.h. */
11537    
11538     /* Override any GCC internal prototype to avoid an error.
11539     Use char because int might match the return type of a GCC
11540     builtin and then its argument prototype would still apply. */
11541     #ifdef __cplusplus
11542     extern "C"
11543     #endif
11544     char dld_link ();
11545     int
11546     main ()
11547     {
11548     return dld_link ();
11549     ;
11550     return 0;
11551     }
11552     _ACEOF
11553 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11554 michael 912 ac_cv_lib_dld_dld_link=yes
11555     else
11556 michael 967 ac_cv_lib_dld_dld_link=no
11557 michael 912 fi
11558 michael 967 rm -f core conftest.err conftest.$ac_objext \
11559     conftest$ac_exeext conftest.$ac_ext
11560 michael 912 LIBS=$ac_check_lib_save_LIBS
11561     fi
11562 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11563 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11564 michael 1106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11565 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11566 michael 912 fi
11567    
11568    
11569     fi
11570    
11571    
11572     fi
11573    
11574    
11575     fi
11576    
11577    
11578     fi
11579    
11580    
11581     fi
11582    
11583     ;;
11584     esac
11585    
11586     if test "x$lt_cv_dlopen" != xno; then
11587     enable_dlopen=yes
11588     else
11589     enable_dlopen=no
11590     fi
11591    
11592     case $lt_cv_dlopen in
11593     dlopen)
11594     save_CPPFLAGS="$CPPFLAGS"
11595     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11596    
11597     save_LDFLAGS="$LDFLAGS"
11598     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11599    
11600     save_LIBS="$LIBS"
11601     LIBS="$lt_cv_dlopen_libs $LIBS"
11602    
11603 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11604 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11605 michael 1106 if ${lt_cv_dlopen_self+:} false; then :
11606 db 941 $as_echo_n "(cached) " >&6
11607 michael 912 else
11608     if test "$cross_compiling" = yes; then :
11609     lt_cv_dlopen_self=cross
11610     else
11611     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612     lt_status=$lt_dlunknown
11613 michael 945 cat > conftest.$ac_ext <<_LT_EOF
11614 michael 1094 #line $LINENO "configure"
11615 michael 912 #include "confdefs.h"
11616    
11617     #if HAVE_DLFCN_H
11618     #include <dlfcn.h>
11619     #endif
11620    
11621     #include <stdio.h>
11622    
11623     #ifdef RTLD_GLOBAL
11624     # define LT_DLGLOBAL RTLD_GLOBAL
11625     #else
11626     # ifdef DL_GLOBAL
11627     # define LT_DLGLOBAL DL_GLOBAL
11628     # else
11629     # define LT_DLGLOBAL 0
11630     # endif
11631     #endif
11632    
11633     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634     find out it does not work in some platform. */
11635     #ifndef LT_DLLAZY_OR_NOW
11636     # ifdef RTLD_LAZY
11637     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11638     # else
11639     # ifdef DL_LAZY
11640     # define LT_DLLAZY_OR_NOW DL_LAZY
11641     # else
11642     # ifdef RTLD_NOW
11643     # define LT_DLLAZY_OR_NOW RTLD_NOW
11644     # else
11645     # ifdef DL_NOW
11646     # define LT_DLLAZY_OR_NOW DL_NOW
11647     # else
11648     # define LT_DLLAZY_OR_NOW 0
11649     # endif
11650     # endif
11651     # endif
11652     # endif
11653     #endif
11654    
11655 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
11656     correspondingly for the symbols needed. */
11657     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11658 michael 1106 int fnord () __attribute__((visibility("default")));
11659 michael 1094 #endif
11660    
11661 michael 1106 int fnord () { return 42; }
11662 michael 912 int main ()
11663     {
11664     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11665     int status = $lt_dlunknown;
11666    
11667     if (self)
11668     {
11669     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11670 michael 1094 else
11671     {
11672     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11673     else puts (dlerror ());
11674     }
11675 michael 912 /* dlclose (self); */
11676     }
11677     else
11678     puts (dlerror ());
11679    
11680 michael 945 return status;
11681 michael 912 }
11682 michael 945 _LT_EOF
11683 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684 michael 912 (eval $ac_link) 2>&5
11685     ac_status=$?
11686 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688 michael 912 (./conftest; exit; ) >&5 2>/dev/null
11689     lt_status=$?
11690     case x$lt_status in
11691     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11692     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11693     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11694     esac
11695     else :
11696     # compilation failed
11697     lt_cv_dlopen_self=no
11698     fi
11699     fi
11700     rm -fr conftest*
11701    
11702    
11703     fi
11704 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11705 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
11706 michael 912
11707     if test "x$lt_cv_dlopen_self" = xyes; then
11708     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11709 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11710 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11711 michael 1106 if ${lt_cv_dlopen_self_static+:} false; then :
11712 db 941 $as_echo_n "(cached) " >&6
11713 michael 912 else
11714     if test "$cross_compiling" = yes; then :
11715     lt_cv_dlopen_self_static=cross
11716     else
11717     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718     lt_status=$lt_dlunknown
11719 michael 945 cat > conftest.$ac_ext <<_LT_EOF
11720 michael 1094 #line $LINENO "configure"
11721 michael 912 #include "confdefs.h"
11722    
11723     #if HAVE_DLFCN_H
11724     #include <dlfcn.h>
11725     #endif
11726    
11727     #include <stdio.h>
11728    
11729     #ifdef RTLD_GLOBAL
11730     # define LT_DLGLOBAL RTLD_GLOBAL
11731     #else
11732     # ifdef DL_GLOBAL
11733     # define LT_DLGLOBAL DL_GLOBAL
11734     # else
11735     # define LT_DLGLOBAL 0
11736     # endif
11737     #endif
11738    
11739     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740     find out it does not work in some platform. */
11741     #ifndef LT_DLLAZY_OR_NOW
11742     # ifdef RTLD_LAZY
11743     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11744     # else
11745     # ifdef DL_LAZY
11746     # define LT_DLLAZY_OR_NOW DL_LAZY
11747     # else
11748     # ifdef RTLD_NOW
11749     # define LT_DLLAZY_OR_NOW RTLD_NOW
11750     # else
11751     # ifdef DL_NOW
11752     # define LT_DLLAZY_OR_NOW DL_NOW
11753     # else
11754     # define LT_DLLAZY_OR_NOW 0
11755     # endif
11756     # endif
11757     # endif
11758     # endif
11759     #endif
11760    
11761 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
11762     correspondingly for the symbols needed. */
11763     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764 michael 1106 int fnord () __attribute__((visibility("default")));
11765 michael 1094 #endif
11766    
11767 michael 1106 int fnord () { return 42; }
11768 michael 912 int main ()
11769     {
11770     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771     int status = $lt_dlunknown;
11772    
11773     if (self)
11774     {
11775     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11776 michael 1094 else
11777     {
11778     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11779     else puts (dlerror ());
11780     }
11781 michael 912 /* dlclose (self); */
11782     }
11783     else
11784     puts (dlerror ());
11785    
11786 michael 945 return status;
11787 michael 912 }
11788 michael 945 _LT_EOF
11789 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790 michael 912 (eval $ac_link) 2>&5
11791     ac_status=$?
11792 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11794 michael 912 (./conftest; exit; ) >&5 2>/dev/null
11795     lt_status=$?
11796     case x$lt_status in
11797     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11798     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11799     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11800     esac
11801     else :
11802     # compilation failed
11803     lt_cv_dlopen_self_static=no
11804     fi
11805     fi
11806     rm -fr conftest*
11807    
11808    
11809     fi
11810 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11811 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11812 michael 912 fi
11813    
11814     CPPFLAGS="$save_CPPFLAGS"
11815     LDFLAGS="$save_LDFLAGS"
11816     LIBS="$save_LIBS"
11817     ;;
11818     esac
11819    
11820     case $lt_cv_dlopen_self in
11821     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11822     *) enable_dlopen_self=unknown ;;
11823     esac
11824    
11825     case $lt_cv_dlopen_self_static in
11826     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11827     *) enable_dlopen_self_static=unknown ;;
11828     esac
11829     fi
11830    
11831    
11832    
11833    
11834    
11835    
11836    
11837    
11838    
11839    
11840    
11841    
11842    
11843    
11844    
11845    
11846    
11847 michael 945 striplib=
11848     old_striplib=
11849 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11850 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11851     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11852     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11853     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11854 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 michael 945 $as_echo "yes" >&6; }
11856     else
11857     # FIXME - insert some real tests, host_os isn't really good enough
11858     case $host_os in
11859     darwin*)
11860     if test -n "$STRIP" ; then
11861     striplib="$STRIP -x"
11862     old_striplib="$STRIP -S"
11863 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 michael 945 $as_echo "yes" >&6; }
11865     else
11866 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 michael 945 $as_echo "no" >&6; }
11868     fi
11869     ;;
11870     *)
11871 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 michael 945 $as_echo "no" >&6; }
11873     ;;
11874     esac
11875     fi
11876 michael 912
11877    
11878    
11879    
11880    
11881    
11882    
11883    
11884    
11885    
11886    
11887    
11888 michael 945 # Report which library types will actually be built
11889 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11890 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11891 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11892 michael 945 $as_echo "$can_build_shared" >&6; }
11893 michael 912
11894 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11895 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11896     test "$can_build_shared" = "no" && enable_shared=no
11897 michael 912
11898 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11899     # are all built from PIC.
11900 michael 912 case $host_os in
11901     aix3*)
11902 michael 945 test "$enable_shared" = yes && enable_static=no
11903     if test -n "$RANLIB"; then
11904     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11905     postinstall_cmds='$RANLIB $lib'
11906     fi
11907     ;;
11908 michael 912
11909 michael 945 aix[4-9]*)
11910     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11911     test "$enable_shared" = yes && enable_static=no
11912     fi
11913 michael 912 ;;
11914     esac
11915 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11916 michael 945 $as_echo "$enable_shared" >&6; }
11917 michael 912
11918 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11919 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11920     # Make sure either enable_shared or enable_static is yes.
11921     test "$enable_shared" = yes || enable_static=yes
11922 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11923 michael 945 $as_echo "$enable_static" >&6; }
11924 michael 912
11925    
11926    
11927    
11928 michael 945 fi
11929 michael 912 ac_ext=c
11930     ac_cpp='$CPP $CPPFLAGS'
11931     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11932     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11933     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11934    
11935     CC="$lt_save_CC"
11936    
11937    
11938    
11939    
11940    
11941    
11942    
11943    
11944    
11945    
11946    
11947    
11948    
11949 michael 1257
11950    
11951 michael 945 ac_config_commands="$ac_config_commands libtool"
11952 michael 912
11953    
11954    
11955    
11956 michael 945 # Only expand once:
11957 michael 912
11958    
11959 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11960 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11961 michael 1106 if ${libltdl_cv_shlibext+:} false; then :
11962 michael 945 $as_echo_n "(cached) " >&6
11963 michael 912 else
11964    
11965 michael 945 module=yes
11966     eval libltdl_cv_shlibext=$shrext_cmds
11967 michael 1257 module=no
11968     eval libltdl_cv_shrext=$shrext_cmds
11969 michael 912
11970     fi
11971 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11972 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11973     if test -n "$libltdl_cv_shlibext"; then
11974 michael 912
11975 michael 945 cat >>confdefs.h <<_ACEOF
11976     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11977     _ACEOF
11978 michael 912
11979     fi
11980 michael 1257 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11981 michael 912
11982 michael 1257 cat >>confdefs.h <<_ACEOF
11983     #define LT_SHARED_EXT "$libltdl_cv_shrext"
11984     _ACEOF
11985    
11986     fi
11987    
11988 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11989 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11990 michael 1106 if ${lt_cv_module_path_var+:} false; then :
11991 db 941 $as_echo_n "(cached) " >&6
11992 michael 912 else
11993 michael 945 lt_cv_module_path_var="$shlibpath_var"
11994 michael 912 fi
11995 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11996 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11997     if test -n "$lt_cv_module_path_var"; then
11998    
11999     cat >>confdefs.h <<_ACEOF
12000     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12001     _ACEOF
12002    
12003 michael 912 fi
12004    
12005 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12006 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
12007 michael 1106 if ${lt_cv_sys_dlsearch_path+:} false; then :
12008 db 941 $as_echo_n "(cached) " >&6
12009 michael 912 else
12010 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12011 michael 912 fi
12012 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12013 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12014     if test -n "$lt_cv_sys_dlsearch_path"; then
12015     sys_dlsearch_path=
12016     for dir in $lt_cv_sys_dlsearch_path; do
12017     if test -z "$sys_dlsearch_path"; then
12018     sys_dlsearch_path="$dir"
12019 michael 912 else
12020 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12021 michael 912 fi
12022 michael 945 done
12023 michael 912
12024 michael 945 cat >>confdefs.h <<_ACEOF
12025     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12026     _ACEOF
12027 michael 912
12028     fi
12029    
12030    
12031 michael 945 LT_DLLOADERS=
12032 michael 912
12033    
12034 michael 945 ac_ext=c
12035     ac_cpp='$CPP $CPPFLAGS'
12036     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 michael 912
12040    
12041 michael 945 LIBADD_DLOPEN=
12042 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12043 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
12044 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12045 michael 945 $as_echo_n "(cached) " >&6
12046     else
12047     ac_func_search_save_LIBS=$LIBS
12048 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 michael 912 /* end confdefs.h. */
12050    
12051 michael 945 /* Override any GCC internal prototype to avoid an error.
12052     Use char because int might match the return type of a GCC
12053     builtin and then its argument prototype would still apply. */
12054     #ifdef __cplusplus
12055     extern "C"
12056     #endif
12057     char dlopen ();
12058 michael 912 int
12059     main ()
12060     {
12061 michael 945 return dlopen ();
12062 michael 912 ;
12063     return 0;
12064     }
12065     _ACEOF
12066 michael 945 for ac_lib in '' dl; do
12067     if test -z "$ac_lib"; then
12068     ac_res="none required"
12069     else
12070     ac_res=-l$ac_lib
12071     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12072     fi
12073 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12074 michael 945 ac_cv_search_dlopen=$ac_res
12075 michael 912 fi
12076 michael 967 rm -f core conftest.err conftest.$ac_objext \
12077     conftest$ac_exeext
12078 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12079 michael 945 break
12080     fi
12081     done
12082 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12083 michael 967
12084 michael 945 else
12085     ac_cv_search_dlopen=no
12086     fi
12087     rm conftest.$ac_ext
12088     LIBS=$ac_func_search_save_LIBS
12089     fi
12090 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12091 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
12092     ac_res=$ac_cv_search_dlopen
12093 michael 967 if test "$ac_res" != no; then :
12094 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12095 michael 912
12096 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12097 michael 912
12098 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
12099     LIBADD_DLOPEN="-ldl"
12100     fi
12101     libltdl_cv_lib_dl_dlopen="yes"
12102     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12103     else
12104 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 michael 912 /* end confdefs.h. */
12106 michael 945 #if HAVE_DLFCN_H
12107     # include <dlfcn.h>
12108     #endif
12109 michael 912
12110     int
12111     main ()
12112     {
12113 michael 945 dlopen(0, 0);
12114 michael 912 ;
12115     return 0;
12116     }
12117     _ACEOF
12118 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12119 michael 912
12120 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12121 michael 945
12122     libltdl_cv_func_dlopen="yes"
12123     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12124 michael 912 else
12125 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12126 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12127 michael 1106 if ${ac_cv_lib_svld_dlopen+:} false; then :
12128 michael 945 $as_echo_n "(cached) " >&6
12129     else
12130     ac_check_lib_save_LIBS=$LIBS
12131     LIBS="-lsvld $LIBS"
12132 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 michael 945 /* end confdefs.h. */
12134 michael 912
12135 michael 945 /* Override any GCC internal prototype to avoid an error.
12136     Use char because int might match the return type of a GCC
12137     builtin and then its argument prototype would still apply. */
12138     #ifdef __cplusplus
12139     extern "C"
12140     #endif
12141     char dlopen ();
12142     int
12143     main ()
12144     {
12145     return dlopen ();
12146     ;
12147     return 0;
12148     }
12149     _ACEOF
12150 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12151 michael 945 ac_cv_lib_svld_dlopen=yes
12152 michael 912 else
12153 michael 967 ac_cv_lib_svld_dlopen=no
12154 db 941 fi
12155 michael 967 rm -f core conftest.err conftest.$ac_objext \
12156     conftest$ac_exeext conftest.$ac_ext
12157 michael 945 LIBS=$ac_check_lib_save_LIBS
12158 michael 912 fi
12159 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12160 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12161 michael 1106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12162 michael 912
12163 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12164 michael 912
12165 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12166     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12167 michael 912 fi
12168    
12169     fi
12170 michael 967 rm -f core conftest.err conftest.$ac_objext \
12171     conftest$ac_exeext conftest.$ac_ext
12172 michael 912 fi
12173    
12174 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12175     then
12176     lt_save_LIBS="$LIBS"
12177     LIBS="$LIBS $LIBADD_DLOPEN"
12178 michael 967 for ac_func in dlerror
12179     do :
12180     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12181 michael 1106 if test "x$ac_cv_func_dlerror" = xyes; then :
12182 michael 945 cat >>confdefs.h <<_ACEOF
12183 michael 967 #define HAVE_DLERROR 1
12184 michael 945 _ACEOF
12185 michael 912
12186     fi
12187 michael 945 done
12188 michael 912
12189 michael 945 LIBS="$lt_save_LIBS"
12190 michael 912 fi
12191    
12192    
12193 michael 945 LIBADD_SHL_LOAD=
12194 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12195 michael 1106 if test "x$ac_cv_func_shl_load" = xyes; then :
12196 michael 912
12197 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12198 michael 912
12199 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12200 michael 912 else
12201 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12202 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12203 michael 1106 if ${ac_cv_lib_dld_shl_load+:} false; then :
12204 db 941 $as_echo_n "(cached) " >&6
12205 michael 912 else
12206 michael 945 ac_check_lib_save_LIBS=$LIBS
12207     LIBS="-ldld $LIBS"
12208 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 michael 945 /* end confdefs.h. */
12210 michael 912
12211 michael 945 /* Override any GCC internal prototype to avoid an error.
12212     Use char because int might match the return type of a GCC
12213     builtin and then its argument prototype would still apply. */
12214     #ifdef __cplusplus
12215     extern "C"
12216     #endif
12217     char shl_load ();
12218     int
12219     main ()
12220     {
12221     return shl_load ();
12222     ;
12223     return 0;
12224     }
12225 michael 912 _ACEOF
12226 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12227 michael 945 ac_cv_lib_dld_shl_load=yes
12228 michael 912 else
12229 michael 967 ac_cv_lib_dld_shl_load=no
12230 michael 912 fi
12231 michael 967 rm -f core conftest.err conftest.$ac_objext \
12232     conftest$ac_exeext conftest.$ac_ext
12233 michael 945 LIBS=$ac_check_lib_save_LIBS
12234     fi
12235 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12236 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12237 michael 1106 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12238 michael 912
12239 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12240 michael 912
12241 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12242     LIBADD_SHL_LOAD="-ldld"
12243     fi
12244    
12245     fi
12246    
12247    
12248    
12249     case $host_os in
12250     darwin[1567].*)
12251     # We only want this for pre-Mac OS X 10.4.
12252 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12253 michael 1106 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12254 michael 945
12255 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12256 michael 945
12257     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12258     fi
12259 michael 912
12260 michael 945 ;;
12261     beos*)
12262     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12263     ;;
12264     cygwin* | mingw* | os2* | pw32*)
12265 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12266     "
12267 michael 1106 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12268 michael 967 ac_have_decl=1
12269 michael 945 else
12270 michael 967 ac_have_decl=0
12271 michael 945 fi
12272 michael 912
12273 michael 945 cat >>confdefs.h <<_ACEOF
12274 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12275 michael 945 _ACEOF
12276 michael 912
12277 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12278     ;;
12279     esac
12280 michael 912
12281 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12282 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12283 michael 1106 if ${ac_cv_lib_dld_dld_link+:} false; then :
12284 michael 945 $as_echo_n "(cached) " >&6
12285     else
12286     ac_check_lib_save_LIBS=$LIBS
12287     LIBS="-ldld $LIBS"
12288 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 michael 945 /* end confdefs.h. */
12290 michael 912
12291 michael 945 /* Override any GCC internal prototype to avoid an error.
12292     Use char because int might match the return type of a GCC
12293     builtin and then its argument prototype would still apply. */
12294     #ifdef __cplusplus
12295     extern "C"
12296     #endif
12297     char dld_link ();
12298     int
12299     main ()
12300     {
12301     return dld_link ();
12302     ;
12303     return 0;
12304     }
12305     _ACEOF
12306 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12307 michael 945 ac_cv_lib_dld_dld_link=yes
12308     else
12309 michael 967 ac_cv_lib_dld_dld_link=no
12310 michael 945 fi
12311 michael 967 rm -f core conftest.err conftest.$ac_objext \
12312     conftest$ac_exeext conftest.$ac_ext
12313 michael 945 LIBS=$ac_check_lib_save_LIBS
12314     fi
12315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12316 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12317 michael 1106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12318 michael 912
12319 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12320 michael 912
12321 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12322     fi
12323 michael 912
12324    
12325    
12326    
12327 michael 945 LT_DLPREOPEN=
12328     if test -n "$LT_DLLOADERS"
12329     then
12330     for lt_loader in $LT_DLLOADERS; do
12331     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12332     done
12333 michael 912
12334 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12335 michael 912
12336 michael 945 fi
12337 michael 912
12338    
12339 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12340 michael 912
12341    
12342 michael 945 ac_ext=c
12343     ac_cpp='$CPP $CPPFLAGS'
12344     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12345     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12346     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12347 michael 912
12348    
12349 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12350 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12351 michael 1106 if ${lt_cv_sys_symbol_underscore+:} false; then :
12352 michael 945 $as_echo_n "(cached) " >&6
12353     else
12354     lt_cv_sys_symbol_underscore=no
12355     cat > conftest.$ac_ext <<_LT_EOF
12356     void nm_test_func(){}
12357     int main(){nm_test_func;return 0;}
12358     _LT_EOF
12359 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12360 michael 912 (eval $ac_compile) 2>&5
12361     ac_status=$?
12362 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363     test $ac_status = 0; }; then
12364 michael 945 # Now try to grab the symbols.
12365     ac_nlist=conftest.nm
12366 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12367 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12368 michael 912 ac_status=$?
12369 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370     test $ac_status = 0; } && test -s "$ac_nlist"; then
12371 michael 945 # See whether the symbols have a leading underscore.
12372     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12373     lt_cv_sys_symbol_underscore=yes
12374     else
12375     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12376     :
12377 michael 912 else
12378 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12379 michael 912 fi
12380     fi
12381 michael 945 else
12382     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12383     fi
12384     else
12385     echo "configure: failed program was:" >&5
12386     cat conftest.c >&5
12387 michael 912 fi
12388 michael 945 rm -rf conftest*
12389 michael 912
12390 michael 945 fi
12391 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12392 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12393     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12394 michael 912
12395    
12396 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12397     if test x"$libltdl_cv_func_dlopen" = xyes ||
12398     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12399 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12400 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12401 michael 1106 if ${libltdl_cv_need_uscore+:} false; then :
12402 michael 945 $as_echo_n "(cached) " >&6
12403     else
12404     libltdl_cv_need_uscore=unknown
12405     save_LIBS="$LIBS"
12406     LIBS="$LIBS $LIBADD_DLOPEN"
12407     if test "$cross_compiling" = yes; then :
12408     libltdl_cv_need_uscore=cross
12409     else
12410     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12411     lt_status=$lt_dlunknown
12412     cat > conftest.$ac_ext <<_LT_EOF
12413 michael 1094 #line $LINENO "configure"
12414 michael 945 #include "confdefs.h"
12415 michael 912
12416 michael 945 #if HAVE_DLFCN_H
12417     #include <dlfcn.h>
12418     #endif
12419 michael 912
12420 michael 945 #include <stdio.h>
12421 michael 912
12422 michael 945 #ifdef RTLD_GLOBAL
12423     # define LT_DLGLOBAL RTLD_GLOBAL
12424     #else
12425     # ifdef DL_GLOBAL
12426     # define LT_DLGLOBAL DL_GLOBAL
12427     # else
12428     # define LT_DLGLOBAL 0
12429     # endif
12430     #endif
12431    
12432     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12433     find out it does not work in some platform. */
12434     #ifndef LT_DLLAZY_OR_NOW
12435     # ifdef RTLD_LAZY
12436     # define LT_DLLAZY_OR_NOW RTLD_LAZY
12437     # else
12438     # ifdef DL_LAZY
12439     # define LT_DLLAZY_OR_NOW DL_LAZY
12440     # else
12441     # ifdef RTLD_NOW
12442     # define LT_DLLAZY_OR_NOW RTLD_NOW
12443     # else
12444     # ifdef DL_NOW
12445     # define LT_DLLAZY_OR_NOW DL_NOW
12446     # else
12447     # define LT_DLLAZY_OR_NOW 0
12448     # endif
12449     # endif
12450     # endif
12451     # endif
12452     #endif
12453    
12454 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
12455     correspondingly for the symbols needed. */
12456     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12457 michael 1106 int fnord () __attribute__((visibility("default")));
12458 michael 1094 #endif
12459    
12460 michael 1106 int fnord () { return 42; }
12461 michael 945 int main ()
12462     {
12463     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464     int status = $lt_dlunknown;
12465    
12466     if (self)
12467     {
12468     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12469 michael 1094 else
12470     {
12471     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12472     else puts (dlerror ());
12473     }
12474 michael 945 /* dlclose (self); */
12475     }
12476 michael 912 else
12477 michael 945 puts (dlerror ());
12478    
12479     return status;
12480     }
12481     _LT_EOF
12482 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12483 michael 945 (eval $ac_link) 2>&5
12484     ac_status=$?
12485 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12487 michael 945 (./conftest; exit; ) >&5 2>/dev/null
12488     lt_status=$?
12489     case x$lt_status in
12490     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12491     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12492     x$lt_dlunknown|x*) ;;
12493 michael 912 esac
12494 michael 945 else :
12495     # compilation failed
12496    
12497 michael 912 fi
12498 michael 945 fi
12499     rm -fr conftest*
12500 michael 912
12501 michael 945 LIBS="$save_LIBS"
12502 michael 912
12503 michael 945 fi
12504 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12505 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
12506     fi
12507     fi
12508 michael 912
12509 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
12510 michael 912
12511 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12512 michael 912
12513 michael 945 fi
12514 michael 912
12515 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12516 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12517 michael 1106 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12518 michael 945 $as_echo_n "(cached) " >&6
12519     else
12520     # PORTME does your system automatically load deplibs for dlopen?
12521     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12522     # For now, we just catch OSes we know something about -- in the
12523     # future, we'll try test this programmatically.
12524     lt_cv_sys_dlopen_deplibs=unknown
12525     case $host_os in
12526     aix3*|aix4.1.*|aix4.2.*)
12527     # Unknown whether this is true for these versions of AIX, but
12528     # we want this `case' here to explicitly catch those versions.
12529     lt_cv_sys_dlopen_deplibs=unknown
12530     ;;
12531     aix[4-9]*)
12532     lt_cv_sys_dlopen_deplibs=yes
12533     ;;
12534     amigaos*)
12535     case $host_cpu in
12536     powerpc)
12537     lt_cv_sys_dlopen_deplibs=no
12538 michael 912 ;;
12539     esac
12540     ;;
12541 michael 945 darwin*)
12542     # Assuming the user has installed a libdl from somewhere, this is true
12543     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12544     lt_cv_sys_dlopen_deplibs=yes
12545 michael 912 ;;
12546 michael 945 freebsd* | dragonfly*)
12547     lt_cv_sys_dlopen_deplibs=yes
12548 michael 912 ;;
12549 michael 1094 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12550 michael 945 # GNU and its variants, using gnu ld.so (Glibc)
12551     lt_cv_sys_dlopen_deplibs=yes
12552 michael 912 ;;
12553 michael 945 hpux10*|hpux11*)
12554     lt_cv_sys_dlopen_deplibs=yes
12555 michael 912 ;;
12556 michael 945 interix*)
12557     lt_cv_sys_dlopen_deplibs=yes
12558 michael 912 ;;
12559 michael 945 irix[12345]*|irix6.[01]*)
12560     # Catch all versions of IRIX before 6.2, and indicate that we don't
12561     # know how it worked for any of those versions.
12562     lt_cv_sys_dlopen_deplibs=unknown
12563 michael 912 ;;
12564 michael 945 irix*)
12565     # The case above catches anything before 6.2, and it's known that
12566     # at 6.2 and later dlopen does load deplibs.
12567     lt_cv_sys_dlopen_deplibs=yes
12568 michael 912 ;;
12569 michael 945 netbsd*)
12570     lt_cv_sys_dlopen_deplibs=yes
12571 michael 912 ;;
12572 michael 945 openbsd*)
12573     lt_cv_sys_dlopen_deplibs=yes
12574 michael 912 ;;
12575 michael 945 osf[1234]*)
12576     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12577     # it did *not* use an RPATH in a shared library to find objects the
12578     # library depends on, so we explicitly say `no'.
12579     lt_cv_sys_dlopen_deplibs=no
12580     ;;
12581     osf5.0|osf5.0a|osf5.1)
12582     # dlopen *does* load deplibs and with the right loader patch applied
12583     # it even uses RPATH in a shared library to search for shared objects
12584     # that the library depends on, but there's no easy way to know if that
12585     # patch is installed. Since this is the case, all we can really
12586     # say is unknown -- it depends on the patch being installed. If
12587     # it is, this changes to `yes'. Without it, it would be `no'.
12588     lt_cv_sys_dlopen_deplibs=unknown
12589     ;;
12590     osf*)
12591     # the two cases above should catch all versions of osf <= 5.1. Read
12592     # the comments above for what we know about them.
12593     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12594     # is used to find them so we can finally say `yes'.
12595     lt_cv_sys_dlopen_deplibs=yes
12596     ;;
12597     qnx*)
12598     lt_cv_sys_dlopen_deplibs=yes
12599     ;;
12600     solaris*)
12601     lt_cv_sys_dlopen_deplibs=yes
12602     ;;
12603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12604     libltdl_cv_sys_dlopen_deplibs=yes
12605     ;;
12606 michael 912 esac
12607    
12608 michael 945 fi
12609 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12610 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12611     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12612 michael 912
12613 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12614 michael 912
12615 michael 945 fi
12616 michael 912
12617 michael 945 :
12618 michael 912
12619 michael 945 for ac_header in argz.h
12620 michael 967 do :
12621     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12622     "
12623 michael 1106 if test "x$ac_cv_header_argz_h" = xyes; then :
12624 michael 945 cat >>confdefs.h <<_ACEOF
12625 michael 967 #define HAVE_ARGZ_H 1
12626 michael 945 _ACEOF
12627 michael 912
12628     fi
12629    
12630 michael 945 done
12631 michael 912
12632    
12633 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12634 michael 945 # include <argz.h>
12635     #endif
12636 michael 967 "
12637 michael 1106 if test "x$ac_cv_type_error_t" = xyes; then :
12638 michael 912
12639 michael 945 cat >>confdefs.h <<_ACEOF
12640     #define HAVE_ERROR_T 1
12641     _ACEOF
12642 michael 912
12643    
12644 michael 945 else
12645 michael 912
12646 michael 967 $as_echo "#define error_t int" >>confdefs.h
12647 michael 912
12648    
12649 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
12650 michael 912
12651 michael 945 fi
12652 michael 912
12653    
12654 michael 945 ARGZ_H=
12655     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12656     argz_next argz_stringify
12657 michael 967 do :
12658     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12659     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12660 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12661 michael 945 cat >>confdefs.h <<_ACEOF
12662     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12663     _ACEOF
12664 michael 912
12665 michael 945 else
12666     ARGZ_H=argz.h;
12667 michael 912
12668 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12669 michael 912
12670 michael 945 fi
12671     done
12672 michael 912
12673    
12674 michael 967 if test -z "$ARGZ_H"; then :
12675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12676 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
12677 michael 1106 if ${lt_cv_sys_argz_works+:} false; then :
12678 michael 945 $as_echo_n "(cached) " >&6
12679 michael 912 else
12680 michael 945 case $host_os in #(
12681     *cygwin*)
12682     lt_cv_sys_argz_works=no
12683     if test "$cross_compiling" != no; then
12684     lt_cv_sys_argz_works="guessing no"
12685     else
12686     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12687     save_IFS=$IFS
12688     IFS=-.
12689     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12690     IFS=$save_IFS
12691     lt_os_major=${2-0}
12692     lt_os_minor=${3-0}
12693     lt_os_micro=${4-0}
12694     if test "$lt_os_major" -gt 1 \
12695     || { test "$lt_os_major" -eq 1 \
12696     && { test "$lt_os_minor" -gt 5 \
12697     || { test "$lt_os_minor" -eq 5 \
12698     && test "$lt_os_micro" -gt 24; }; }; }; then
12699     lt_cv_sys_argz_works=yes
12700     fi
12701     fi
12702     ;; #(
12703     *) lt_cv_sys_argz_works=yes ;;
12704     esac
12705 michael 912 fi
12706 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12707 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
12708 michael 1106 if test "$lt_cv_sys_argz_works" = yes; then :
12709 michael 912
12710 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12711 michael 912
12712 michael 945 else
12713     ARGZ_H=argz.h
12714 michael 912
12715    
12716 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12717 michael 912
12718 michael 945 fi
12719     fi
12720 michael 912
12721    
12722    
12723 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12724 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12725 michael 1106 if ${libltdl_cv_preloaded_symbols+:} false; then :
12726 db 941 $as_echo_n "(cached) " >&6
12727 michael 912 else
12728 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12729     libltdl_cv_preloaded_symbols=yes
12730     else
12731     libltdl_cv_preloaded_symbols=no
12732     fi
12733 michael 912
12734     fi
12735 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12736 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12737     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12738 michael 912
12739 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12740 michael 912
12741     fi
12742    
12743 michael 945 # Set options
12744 michael 912
12745    
12746    
12747    
12748 db 941
12749 michael 912
12750    
12751    
12752    
12753    
12754    
12755 michael 945 # Check whether --with-included_ltdl was given.
12756 michael 967 if test "${with_included_ltdl+set}" = set; then :
12757 michael 945 withval=$with_included_ltdl;
12758     fi
12759 db 941
12760 michael 912
12761 michael 945 if test "x$with_included_ltdl" != xyes; then
12762     # We are not being forced to use the included libltdl sources, so
12763     # decide whether there is a useful installed version we can use.
12764 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12765 michael 912
12766 michael 967 "
12767 michael 1106 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12768 michael 967 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12769 michael 945 #include <ltdl.h>
12770 michael 967 "
12771 michael 1106 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12772 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12773 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12774 michael 1106 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12775 michael 945 $as_echo_n "(cached) " >&6
12776     else
12777     ac_check_lib_save_LIBS=$LIBS
12778     LIBS="-lltdl $LIBS"
12779 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 michael 912 /* end confdefs.h. */
12781    
12782 michael 945 /* Override any GCC internal prototype to avoid an error.
12783     Use char because int might match the return type of a GCC
12784     builtin and then its argument prototype would still apply. */
12785     #ifdef __cplusplus
12786     extern "C"
12787     #endif
12788     char lt_dladvise_preload ();
12789 michael 912 int
12790     main ()
12791     {
12792 michael 945 return lt_dladvise_preload ();
12793 michael 912 ;
12794     return 0;
12795     }
12796     _ACEOF
12797 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12798 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12799 michael 912 else
12800 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
12801 michael 912 fi
12802 michael 967 rm -f core conftest.err conftest.$ac_objext \
12803     conftest$ac_exeext conftest.$ac_ext
12804 michael 945 LIBS=$ac_check_lib_save_LIBS
12805     fi
12806 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12807 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12808 michael 1106 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12809 michael 945 with_included_ltdl=no
12810     else
12811     with_included_ltdl=yes
12812     fi
12813 michael 912
12814 michael 945 else
12815     with_included_ltdl=yes
12816     fi
12817 michael 912
12818 michael 945 else
12819     with_included_ltdl=yes
12820     fi
12821 michael 912
12822    
12823 michael 945 fi
12824 michael 912
12825    
12826    
12827    
12828 michael 945 # Check whether --with-ltdl_include was given.
12829 michael 967 if test "${with_ltdl_include+set}" = set; then :
12830 michael 945 withval=$with_ltdl_include;
12831     fi
12832 michael 912
12833    
12834 michael 945 if test -n "$with_ltdl_include"; then
12835     if test -f "$with_ltdl_include/ltdl.h"; then :
12836 michael 912 else
12837 michael 1095 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12838 michael 912 fi
12839 michael 945 else
12840     with_ltdl_include=no
12841     fi
12842 michael 912
12843    
12844 michael 945 # Check whether --with-ltdl_lib was given.
12845 michael 967 if test "${with_ltdl_lib+set}" = set; then :
12846 michael 945 withval=$with_ltdl_lib;
12847     fi
12848 michael 912
12849    
12850 michael 945 if test -n "$with_ltdl_lib"; then
12851     if test -f "$with_ltdl_lib/libltdl.la"; then :
12852 michael 912 else
12853 michael 1095 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12854 michael 912 fi
12855 michael 945 else
12856     with_ltdl_lib=no
12857     fi
12858 michael 912
12859 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12860     ,yes,no,no,)
12861     case $enable_ltdl_convenience in
12862 michael 1095 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12863 michael 945 "") enable_ltdl_convenience=yes
12864     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12865     esac
12866     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12867     LTDLDEPS=$LIBLTDL
12868     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12869 michael 912
12870    
12871    
12872    
12873    
12874 michael 945 # For backwards non-gettext consistent compatibility...
12875     INCLTDL="$LTDLINCL"
12876 michael 912
12877    
12878 michael 945 ;;
12879     ,no,no,no,)
12880     # If the included ltdl is not to be used, then use the
12881     # preinstalled libltdl we found.
12882 michael 912
12883 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12884 michael 912
12885 michael 945 LIBLTDL=-lltdl
12886     LTDLDEPS=
12887     LTDLINCL=
12888 michael 912 ;;
12889 michael 945 ,no*,no,*)
12890 michael 1095 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12891 michael 912 ;;
12892 michael 945 *) with_included_ltdl=no
12893     LIBLTDL="-L$with_ltdl_lib -lltdl"
12894     LTDLDEPS=
12895     LTDLINCL="-I$with_ltdl_include"
12896     ;;
12897     esac
12898     INCLTDL="$LTDLINCL"
12899 michael 912
12900 michael 945 # Report our decision...
12901 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12902 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12903 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12904 michael 945 $as_echo "$LTDLINCL" >&6; }
12905 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12906 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12907 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12908 michael 945 $as_echo "$LIBLTDL" >&6; }
12909 michael 912
12910    
12911    
12912 michael 945 # Check whether --enable-ltdl-install was given.
12913 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12914 michael 945 enableval=$enable_ltdl_install;
12915     fi
12916 michael 912
12917    
12918 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12919     *yes*) ;;
12920     *) enable_ltdl_convenience=yes ;;
12921 michael 912 esac
12922    
12923 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12924     INSTALL_LTDL_TRUE=
12925     INSTALL_LTDL_FALSE='#'
12926 db 941 else
12927 michael 945 INSTALL_LTDL_TRUE='#'
12928     INSTALL_LTDL_FALSE=
12929 db 941 fi
12930    
12931 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12932     CONVENIENCE_LTDL_TRUE=
12933     CONVENIENCE_LTDL_FALSE='#'
12934 db 941 else
12935 michael 945 CONVENIENCE_LTDL_TRUE='#'
12936     CONVENIENCE_LTDL_FALSE=
12937 db 941 fi
12938    
12939    
12940 michael 912
12941    
12942    
12943    
12944 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12945     # the user used. This is so that ltdl.h can pick up the parent projects
12946     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12947     # definitions required by ltdl.c.
12948     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12949 michael 912
12950    
12951    
12952 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12953 michael 967 do :
12954     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12955     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12956     "
12957 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12958 michael 945 cat >>confdefs.h <<_ACEOF
12959     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960     _ACEOF
12961 michael 912
12962 michael 945 fi
12963 michael 912
12964 michael 945 done
12965 michael 912
12966    
12967 michael 945 for ac_func in closedir opendir readdir
12968 michael 967 do :
12969     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12970     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12971 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12972 michael 945 cat >>confdefs.h <<_ACEOF
12973     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974     _ACEOF
12975 michael 912
12976 michael 945 else
12977 michael 912
12978    
12979 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12980 michael 912
12981     fi
12982     done
12983    
12984 michael 945 for ac_func in strlcat strlcpy
12985 michael 967 do :
12986     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12987     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12988 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12989 michael 945 cat >>confdefs.h <<_ACEOF
12990     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12991     _ACEOF
12992 michael 912
12993     else
12994    
12995    
12996 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12997 michael 912
12998     fi
12999 michael 945 done
13000 michael 912
13001    
13002    
13003 michael 945 cat >>confdefs.h <<_ACEOF
13004     #define LT_LIBEXT "$libext"
13005     _ACEOF
13006 michael 912
13007    
13008 michael 1106 name=
13009     eval "lt_libprefix=\"$libname_spec\""
13010    
13011     cat >>confdefs.h <<_ACEOF
13012     #define LT_LIBPREFIX "$lt_libprefix"
13013     _ACEOF
13014    
13015    
13016 michael 945 name=ltdl
13017 michael 1106 eval "LTDLOPEN=\"$libname_spec\""
13018 michael 912
13019    
13020    
13021    
13022    
13023    
13024    
13025    
13026 michael 945 # Only expand once:
13027 michael 912
13028    
13029 michael 1053 LIBTOOL="$LIBTOOL --silent"
13030 michael 912
13031     # Checks for libraries.
13032    
13033 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13034 db 941 $as_echo_n "checking for library containing socket... " >&6; }
13035 michael 1106 if ${ac_cv_search_socket+:} false; then :
13036 db 941 $as_echo_n "(cached) " >&6
13037 michael 912 else
13038     ac_func_search_save_LIBS=$LIBS
13039 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 michael 912 /* end confdefs.h. */
13041    
13042     /* Override any GCC internal prototype to avoid an error.
13043     Use char because int might match the return type of a GCC
13044     builtin and then its argument prototype would still apply. */
13045     #ifdef __cplusplus
13046     extern "C"
13047     #endif
13048     char socket ();
13049     int
13050     main ()
13051     {
13052     return socket ();
13053     ;
13054     return 0;
13055     }
13056     _ACEOF
13057     for ac_lib in '' socket; do
13058     if test -z "$ac_lib"; then
13059     ac_res="none required"
13060     else
13061     ac_res=-l$ac_lib
13062     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13063     fi
13064 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13065 michael 912 ac_cv_search_socket=$ac_res
13066     fi
13067 michael 967 rm -f core conftest.err conftest.$ac_objext \
13068     conftest$ac_exeext
13069 michael 1106 if ${ac_cv_search_socket+:} false; then :
13070 michael 912 break
13071     fi
13072     done
13073 michael 1106 if ${ac_cv_search_socket+:} false; then :
13074 michael 967
13075 michael 912 else
13076     ac_cv_search_socket=no
13077     fi
13078     rm conftest.$ac_ext
13079     LIBS=$ac_func_search_save_LIBS
13080     fi
13081 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13082 db 941 $as_echo "$ac_cv_search_socket" >&6; }
13083 michael 912 ac_res=$ac_cv_search_socket
13084 michael 967 if test "$ac_res" != no; then :
13085 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13086    
13087     else
13088 michael 1095 as_fn_error $? "socket library not found" "$LINENO" 5
13089 michael 912 fi
13090    
13091 michael 1105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13092     $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13093 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13094 michael 1105 $as_echo_n "(cached) " >&6
13095     else
13096     ac_func_search_save_LIBS=$LIBS
13097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098     /* end confdefs.h. */
13099    
13100     /* Override any GCC internal prototype to avoid an error.
13101     Use char because int might match the return type of a GCC
13102     builtin and then its argument prototype would still apply. */
13103     #ifdef __cplusplus
13104     extern "C"
13105     #endif
13106     char inet_ntoa ();
13107     int
13108     main ()
13109     {
13110     return inet_ntoa ();
13111     ;
13112     return 0;
13113     }
13114     _ACEOF
13115     for ac_lib in '' nsl; do
13116     if test -z "$ac_lib"; then
13117     ac_res="none required"
13118     else
13119     ac_res=-l$ac_lib
13120     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13121     fi
13122     if ac_fn_c_try_link "$LINENO"; then :
13123     ac_cv_search_inet_ntoa=$ac_res
13124     fi
13125     rm -f core conftest.err conftest.$ac_objext \
13126     conftest$ac_exeext
13127 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13128 michael 1105 break
13129     fi
13130     done
13131 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13132 michael 1105
13133     else
13134     ac_cv_search_inet_ntoa=no
13135     fi
13136     rm conftest.$ac_ext
13137     LIBS=$ac_func_search_save_LIBS
13138     fi
13139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13140     $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13141     ac_res=$ac_cv_search_inet_ntoa
13142     if test "$ac_res" != no; then :
13143     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13144    
13145     fi
13146    
13147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13148     $as_echo_n "checking for library containing inet_aton... " >&6; }
13149 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13150 michael 1105 $as_echo_n "(cached) " >&6
13151     else
13152     ac_func_search_save_LIBS=$LIBS
13153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154     /* end confdefs.h. */
13155    
13156     /* Override any GCC internal prototype to avoid an error.
13157     Use char because int might match the return type of a GCC
13158     builtin and then its argument prototype would still apply. */
13159     #ifdef __cplusplus
13160     extern "C"
13161     #endif
13162     char inet_aton ();
13163     int
13164     main ()
13165     {
13166     return inet_aton ();
13167     ;
13168     return 0;
13169     }
13170     _ACEOF
13171     for ac_lib in '' resolv; do
13172     if test -z "$ac_lib"; then
13173     ac_res="none required"
13174     else
13175     ac_res=-l$ac_lib
13176     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13177     fi
13178     if ac_fn_c_try_link "$LINENO"; then :
13179     ac_cv_search_inet_aton=$ac_res
13180     fi
13181     rm -f core conftest.err conftest.$ac_objext \
13182     conftest$ac_exeext
13183 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13184 michael 1105 break
13185     fi
13186     done
13187 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13188 michael 1105
13189     else
13190     ac_cv_search_inet_aton=no
13191     fi
13192     rm conftest.$ac_ext
13193     LIBS=$ac_func_search_save_LIBS
13194     fi
13195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13196     $as_echo "$ac_cv_search_inet_aton" >&6; }
13197     ac_res=$ac_cv_search_inet_aton
13198     if test "$ac_res" != no; then :
13199     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13200    
13201     fi
13202    
13203 michael 967 for ac_func in inet_aton inet_ntop inet_pton
13204     do :
13205     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13207 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13208 michael 912 cat >>confdefs.h <<_ACEOF
13209 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13210 michael 912 _ACEOF
13211    
13212     fi
13213     done
13214    
13215 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13216 db 941 #include <sys/socket.h>
13217     #include <netdb.h>
13218    
13219 michael 967 "
13220 michael 1106 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13221 db 941
13222 michael 912 cat >>confdefs.h <<_ACEOF
13223     #define HAVE_STRUCT_SOCKADDR_IN 1
13224     _ACEOF
13225    
13226    
13227     fi
13228 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13229 db 941 #include <sys/socket.h>
13230     #include <netdb.h>
13231    
13232 michael 967 "
13233 michael 1106 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13234 db 941
13235 michael 912 cat >>confdefs.h <<_ACEOF
13236     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13237     _ACEOF
13238    
13239    
13240     fi
13241 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13242 db 941 #include <sys/socket.h>
13243     #include <netdb.h>
13244    
13245 michael 967 "
13246 michael 1106 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13247 db 941
13248 michael 912 cat >>confdefs.h <<_ACEOF
13249     #define HAVE_STRUCT_ADDRINFO 1
13250     _ACEOF
13251    
13252    
13253     fi
13254    
13255 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>
13256 db 941 <sys/socket.h>
13257 michael 967 "
13258 michael 1106 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13259 michael 912
13260     cat >>confdefs.h <<_ACEOF
13261     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13262     _ACEOF
13263    
13264    
13265     fi
13266    
13267    
13268    
13269 michael 1123 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13270     "
13271 michael 1106 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13272 michael 912
13273 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
13274 michael 912
13275     fi
13276    
13277    
13278    
13279     # Checks for typedefs, structures, and compiler characteristics.
13280 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13281 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13282 michael 1106 if ${ac_cv_c_bigendian+:} false; then :
13283 db 941 $as_echo_n "(cached) " >&6
13284 michael 912 else
13285 db 941 ac_cv_c_bigendian=unknown
13286 michael 942 # See if we're dealing with a universal compiler.
13287 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 michael 912 /* end confdefs.h. */
13289 michael 942 #ifndef __APPLE_CC__
13290     not a universal capable compiler
13291 db 941 #endif
13292     typedef int dummy;
13293    
13294     _ACEOF
13295 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13296 michael 942
13297     # Check for potential -arch flags. It is not universal unless
13298 michael 967 # there are at least two -arch flags with different values.
13299     ac_arch=
13300     ac_prev=
13301     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13302     if test -n "$ac_prev"; then
13303     case $ac_word in
13304     i?86 | x86_64 | ppc | ppc64)
13305     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13306     ac_arch=$ac_word
13307     else
13308     ac_cv_c_bigendian=universal
13309     break
13310     fi
13311     ;;
13312     esac
13313     ac_prev=
13314     elif test "x$ac_word" = "x-arch"; then
13315     ac_prev=arch
13316     fi
13317     done
13318 db 941 fi
13319     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320     if test $ac_cv_c_bigendian = unknown; then
13321     # See if sys/param.h defines the BYTE_ORDER macro.
13322 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 db 941 /* end confdefs.h. */
13324 michael 912 #include <sys/types.h>
13325 db 941 #include <sys/param.h>
13326 michael 912
13327     int
13328     main ()
13329     {
13330 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13331     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13332     && LITTLE_ENDIAN)
13333     bogus endian macros
13334     #endif
13335 michael 912
13336     ;
13337     return 0;
13338     }
13339     _ACEOF
13340 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13341 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
13342 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 michael 912 /* end confdefs.h. */
13344     #include <sys/types.h>
13345 db 941 #include <sys/param.h>
13346 michael 912
13347     int
13348     main ()
13349     {
13350     #if BYTE_ORDER != BIG_ENDIAN
13351 db 941 not big endian
13352     #endif
13353 michael 912
13354     ;
13355     return 0;
13356     }
13357     _ACEOF
13358 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13359 michael 912 ac_cv_c_bigendian=yes
13360     else
13361 michael 967 ac_cv_c_bigendian=no
13362 michael 912 fi
13363     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 db 941 fi
13365     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366     fi
13367     if test $ac_cv_c_bigendian = unknown; then
13368     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13369 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 michael 912 /* end confdefs.h. */
13371 db 941 #include <limits.h>
13372    
13373 michael 912 int
13374     main ()
13375     {
13376 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13377     bogus endian macros
13378     #endif
13379    
13380 michael 912 ;
13381     return 0;
13382     }
13383     _ACEOF
13384 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13385 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
13386 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 michael 912 /* end confdefs.h. */
13388 db 941 #include <limits.h>
13389    
13390 michael 912 int
13391     main ()
13392     {
13393 db 941 #ifndef _BIG_ENDIAN
13394     not big endian
13395     #endif
13396 michael 912
13397     ;
13398     return 0;
13399     }
13400     _ACEOF
13401 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13402 db 941 ac_cv_c_bigendian=yes
13403 michael 912 else
13404 michael 967 ac_cv_c_bigendian=no
13405 michael 912 fi
13406 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 michael 912 fi
13408     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 db 941 fi
13410     if test $ac_cv_c_bigendian = unknown; then
13411     # Compile a test program.
13412 michael 967 if test "$cross_compiling" = yes; then :
13413 db 941 # Try to guess by grepping values from an object file.
13414 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 michael 912 /* end confdefs.h. */
13416 db 941 short int ascii_mm[] =
13417     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13418     short int ascii_ii[] =
13419     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13420     int use_ascii (int i) {
13421     return ascii_mm[i] + ascii_ii[i];
13422     }
13423     short int ebcdic_ii[] =
13424     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13425     short int ebcdic_mm[] =
13426     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13427     int use_ebcdic (int i) {
13428     return ebcdic_mm[i] + ebcdic_ii[i];
13429     }
13430     extern int foo;
13431    
13432 michael 912 int
13433     main ()
13434     {
13435 db 941 return use_ascii (foo) == use_ebcdic (foo);
13436 michael 912 ;
13437     return 0;
13438     }
13439     _ACEOF
13440 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13441 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13442     ac_cv_c_bigendian=yes
13443     fi
13444     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13445     if test "$ac_cv_c_bigendian" = unknown; then
13446     ac_cv_c_bigendian=no
13447     else
13448     # finding both strings is unlikely to happen, but who knows?
13449     ac_cv_c_bigendian=unknown
13450     fi
13451     fi
13452 michael 912 fi
13453     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 db 941 else
13455 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 db 941 /* end confdefs.h. */
13457     $ac_includes_default
13458     int
13459     main ()
13460     {
13461    
13462     /* Are we little or big endian? From Harbison&Steele. */
13463     union
13464     {
13465     long int l;
13466     char c[sizeof (long int)];
13467     } u;
13468     u.l = 1;
13469     return u.c[sizeof (long int) - 1] == 1;
13470    
13471     ;
13472     return 0;
13473     }
13474     _ACEOF
13475 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13476 db 941 ac_cv_c_bigendian=no
13477     else
13478 michael 967 ac_cv_c_bigendian=yes
13479 michael 912 fi
13480 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13481     conftest.$ac_objext conftest.beam conftest.$ac_ext
13482 db 941 fi
13483 michael 912
13484 db 941 fi
13485     fi
13486 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13487 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
13488     case $ac_cv_c_bigendian in #(
13489     yes)
13490 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13491 db 941 ;; #(
13492     no)
13493     ;; #(
13494     universal)
13495 michael 942
13496 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13497 michael 942
13498     ;; #(
13499 db 941 *)
13500 michael 1095 as_fn_error $? "unknown endianness
13501 michael 967 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13502 db 941 esac
13503    
13504    
13505 michael 912 # Checks for library functions.
13506    
13507    
13508    
13509 michael 967 for ac_func in $ac_func_list
13510     do :
13511     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13512     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13513 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13514 michael 912 cat >>confdefs.h <<_ACEOF
13515 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13516 michael 912 _ACEOF
13517    
13518     fi
13519     done
13520    
13521    
13522    
13523    
13524    
13525    
13526    
13527    
13528    
13529    
13530 michael 942
13531    
13532    
13533 michael 923 # Checks for header files.
13534 michael 912
13535    
13536    
13537 michael 967 for ac_header in $ac_header_list
13538     do :
13539     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13540     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13541     "
13542 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13543 michael 912 cat >>confdefs.h <<_ACEOF
13544 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13545 michael 912 _ACEOF
13546    
13547     fi
13548    
13549     done
13550    
13551    
13552    
13553    
13554    
13555    
13556    
13557    
13558    
13559    
13560    
13561    
13562    
13563    
13564    
13565    
13566    
13567 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13568 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
13569 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13570 db 941 $as_echo_n "(cached) " >&6
13571 michael 923 else
13572     ac_func_search_save_LIBS=$LIBS
13573 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 michael 923 /* end confdefs.h. */
13575    
13576     /* Override any GCC internal prototype to avoid an error.
13577     Use char because int might match the return type of a GCC
13578     builtin and then its argument prototype would still apply. */
13579     #ifdef __cplusplus
13580     extern "C"
13581     #endif
13582     char crypt ();
13583     int
13584     main ()
13585     {
13586     return crypt ();
13587     ;
13588     return 0;
13589     }
13590     _ACEOF
13591 michael 977 for ac_lib in '' crypt; do
13592 michael 923 if test -z "$ac_lib"; then
13593     ac_res="none required"
13594     else
13595     ac_res=-l$ac_lib
13596     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13597     fi
13598 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13599 michael 923 ac_cv_search_crypt=$ac_res
13600     fi
13601 michael 967 rm -f core conftest.err conftest.$ac_objext \
13602     conftest$ac_exeext
13603 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13604 michael 923 break
13605     fi
13606     done
13607 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13608 michael 967
13609 michael 923 else
13610     ac_cv_search_crypt=no
13611     fi
13612     rm conftest.$ac_ext
13613     LIBS=$ac_func_search_save_LIBS
13614     fi
13615 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13616 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
13617 michael 923 ac_res=$ac_cv_search_crypt
13618 michael 967 if test "$ac_res" != no; then :
13619 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13620    
13621     fi
13622    
13623    
13624 michael 1009 # Check whether --enable-libpcre was given.
13625     if test "${enable_libpcre+set}" = set; then :
13626 michael 1349 enableval=$enable_libpcre;
13627 michael 1009 else
13628     ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13629 michael 1106 if test "x$ac_cv_header_pcre_h" = xyes; then :
13630 michael 1349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13631     $as_echo_n "checking for library containing pcre_study... " >&6; }
13632     if ${ac_cv_search_pcre_study+:} false; then :
13633 michael 1009 $as_echo_n "(cached) " >&6
13634     else
13635 michael 1349 ac_func_search_save_LIBS=$LIBS
13636 michael 1009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637     /* end confdefs.h. */
13638    
13639     /* Override any GCC internal prototype to avoid an error.
13640     Use char because int might match the return type of a GCC
13641     builtin and then its argument prototype would still apply. */
13642     #ifdef __cplusplus
13643     extern "C"
13644     #endif
13645     char pcre_study ();
13646     int
13647     main ()
13648     {
13649     return pcre_study ();
13650     ;
13651     return 0;
13652     }
13653     _ACEOF
13654 michael 1349 for ac_lib in '' pcre; do
13655     if test -z "$ac_lib"; then
13656     ac_res="none required"
13657     else
13658     ac_res=-l$ac_lib
13659     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13660     fi
13661     if ac_fn_c_try_link "$LINENO"; then :
13662     ac_cv_search_pcre_study=$ac_res
13663 michael 1009 fi
13664     rm -f core conftest.err conftest.$ac_objext \
13665 michael 1349 conftest$ac_exeext
13666     if ${ac_cv_search_pcre_study+:} false; then :
13667     break
13668 michael 1009 fi
13669 michael 1349 done
13670     if ${ac_cv_search_pcre_study+:} false; then :
13671 michael 1009
13672 michael 1349 else
13673     ac_cv_search_pcre_study=no
13674     fi
13675     rm conftest.$ac_ext
13676     LIBS=$ac_func_search_save_LIBS
13677     fi
13678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13679     $as_echo "$ac_cv_search_pcre_study" >&6; }
13680     ac_res=$ac_cv_search_pcre_study
13681     if test "$ac_res" != no; then :
13682     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13683 michael 1009
13684     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13685    
13686     fi
13687    
13688     fi
13689    
13690    
13691     fi
13692    
13693    
13694 michael 912 # Check whether --enable-openssl was given.
13695 michael 967 if test "${enable_openssl+set}" = set; then :
13696 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
13697     else
13698     cf_enable_openssl="auto"
13699     fi
13700    
13701 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13702 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
13703 michael 912 if test "$cf_enable_openssl" != "no"; then
13704     cf_openssl_basedir=""
13705     if test "$cf_enable_openssl" != "auto" &&
13706     test "$cf_enable_openssl" != "yes"; then
13707     cf_openssl_basedir="${cf_enable_openssl}"
13708     else
13709     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13710     /opt /opt/openssl /usr/local/openssl; do
13711     if test -f "${dirs}/include/openssl/opensslv.h"; then
13712     cf_openssl_basedir="${dirs}"
13713     break
13714     fi
13715     done
13716     unset dirs
13717     fi
13718    
13719     if test ! -z "$cf_openssl_basedir"; then
13720     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13721     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13722     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13723     else
13724     cf_openssl_basedir=""
13725     fi
13726     else
13727     if test -f "/usr/include/openssl/opensslv.h"; then
13728     cf_openssl_basedir="/usr"
13729     fi
13730     fi
13731    
13732     if test ! -z "$cf_openssl_basedir"; then
13733 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13734 db 941 $as_echo "$cf_openssl_basedir" >&6; }
13735 michael 912 cf_enable_openssl="yes"
13736     else
13737 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13738     $as_echo "not found. Please check your path." >&6; }
13739 michael 912 cf_enable_openssl="no"
13740     fi
13741     unset cf_openssl_basedir
13742     else
13743 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13744 db 941 $as_echo "disabled" >&6; }
13745 michael 912 fi
13746 michael 1015
13747     if test "$cf_enable_openssl" != "no"; then :
13748 michael 1304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13749     $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13750 michael 1015 if test "$cross_compiling" = yes; then :
13751     cf_openssl_version_ok=no
13752     else
13753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754     /* end confdefs.h. */
13755    
13756 michael 1106
13757 michael 1015 #include <openssl/opensslv.h>
13758     #include <stdlib.h>
13759     int
13760     main ()
13761     {
13762 michael 1304 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13763 michael 1015 ;
13764     return 0;
13765     }
13766     _ACEOF
13767     if ac_fn_c_try_run "$LINENO"; then :
13768     cf_openssl_version_ok=yes
13769     else
13770     cf_openssl_version_ok=no
13771     fi
13772     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13773     conftest.$ac_objext conftest.beam conftest.$ac_ext
13774     fi
13775    
13776    
13777     if test "$cf_openssl_version_ok" = "yes"; then :
13778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13779     $as_echo "found" >&6; }
13780    
13781 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13782     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13783     if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13784 michael 1304 $as_echo_n "(cached) " >&6
13785     else
13786     ac_check_lib_save_LIBS=$LIBS
13787 michael 1456 LIBS="-lcrypto $LIBS"
13788 michael 1304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789     /* end confdefs.h. */
13790    
13791     /* Override any GCC internal prototype to avoid an error.
13792     Use char because int might match the return type of a GCC
13793     builtin and then its argument prototype would still apply. */
13794     #ifdef __cplusplus
13795     extern "C"
13796     #endif
13797 michael 1456 char RSA_free ();
13798 michael 1304 int
13799     main ()
13800     {
13801 michael 1456 return RSA_free ();
13802 michael 1304 ;
13803     return 0;
13804     }
13805     _ACEOF
13806     if ac_fn_c_try_link "$LINENO"; then :
13807 michael 1456 ac_cv_lib_crypto_RSA_free=yes
13808 michael 1304 else
13809 michael 1456 ac_cv_lib_crypto_RSA_free=no
13810 michael 1304 fi
13811     rm -f core conftest.err conftest.$ac_objext \
13812     conftest$ac_exeext conftest.$ac_ext
13813     LIBS=$ac_check_lib_save_LIBS
13814     fi
13815 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13816     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13817     if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13818 michael 1304 cat >>confdefs.h <<_ACEOF
13819 michael 1456 #define HAVE_LIBCRYPTO 1
13820 michael 1304 _ACEOF
13821    
13822 michael 1456 LIBS="-lcrypto $LIBS"
13823 michael 1304
13824     fi
13825    
13826 michael 1456 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13828     $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13829     if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13830 michael 1015 $as_echo_n "(cached) " >&6
13831     else
13832     ac_check_lib_save_LIBS=$LIBS
13833 michael 1456 LIBS="-lssl $LIBS"
13834 michael 1015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835     /* end confdefs.h. */
13836    
13837     /* Override any GCC internal prototype to avoid an error.
13838     Use char because int might match the return type of a GCC
13839     builtin and then its argument prototype would still apply. */
13840     #ifdef __cplusplus
13841     extern "C"
13842     #endif
13843 michael 1456 char SSL_connect ();
13844 michael 1015 int
13845     main ()
13846     {
13847 michael 1456 return SSL_connect ();
13848 michael 1015 ;
13849     return 0;
13850     }
13851     _ACEOF
13852     if ac_fn_c_try_link "$LINENO"; then :
13853 michael 1456 ac_cv_lib_ssl_SSL_connect=yes
13854 michael 1015 else
13855 michael 1456 ac_cv_lib_ssl_SSL_connect=no
13856 michael 1015 fi
13857     rm -f core conftest.err conftest.$ac_objext \
13858     conftest$ac_exeext conftest.$ac_ext
13859     LIBS=$ac_check_lib_save_LIBS
13860     fi
13861 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13862     $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13863     if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13864 michael 1015 cat >>confdefs.h <<_ACEOF
13865 michael 1456 #define HAVE_LIBSSL 1
13866 michael 1015 _ACEOF
13867    
13868 michael 1456 LIBS="-lssl $LIBS"
13869 michael 1015
13870     fi
13871    
13872     fi
13873    
13874     else
13875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13876     $as_echo "no - OpenSSL support disabled" >&6; }
13877     cf_enable_openssl="no"
13878     fi
13879     fi
13880    
13881 michael 1456 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13882 michael 912 ENABLE_SSL_TRUE=
13883     ENABLE_SSL_FALSE='#'
13884     else
13885     ENABLE_SSL_TRUE='#'
13886     ENABLE_SSL_FALSE=
13887     fi
13888    
13889    
13890    
13891 michael 924 # Check whether --enable-assert was given.
13892 michael 967 if test "${enable_assert+set}" = set; then :
13893 michael 924 enableval=$enable_assert; assert=$enableval
13894     else
13895     assert=no
13896     fi
13897    
13898    
13899 michael 1010 if test "$assert" = "no"; then :
13900    
13901 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13902 michael 925
13903 michael 924 fi
13904    
13905    
13906 michael 925 # Check whether --enable-small-net was given.
13907 michael 967 if test "${enable_small_net+set}" = set; then :
13908 michael 925 enableval=$enable_small_net; small_net=$enableval
13909     else
13910     small_net=no
13911     fi
13912    
13913    
13914 michael 1015 if test "$small_net" = "yes"; then :
13915 michael 925
13916 michael 1015
13917 michael 1358 $as_echo "#define NICKNAMEHISTORYLENGTH 2048" >>confdefs.h
13918 michael 925
13919    
13920 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13921 michael 925
13922    
13923 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13924 michael 925
13925    
13926 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13927 michael 925
13928    
13929 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13930 michael 925
13931    
13932 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13933 michael 925
13934    
13935 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13936 michael 925
13937    
13938 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13939 michael 925
13940 michael 998
13941     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13942    
13943    
13944     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13945    
13946 michael 925 else
13947    
13948 michael 1015
13949    
13950 michael 1358 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13951 michael 925
13952    
13953 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13954 michael 925
13955    
13956 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13957 michael 925
13958    
13959 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13960 michael 925
13961    
13962 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13963 michael 925
13964    
13965 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13966 michael 925
13967    
13968 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13969 michael 925
13970    
13971 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13972 michael 925
13973 michael 998
13974     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13975    
13976    
13977     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13978    
13979 michael 925 fi
13980    
13981 db 941
13982 michael 912 # Argument processing.
13983    
13984     desired_iopoll_mechanism="none"
13985     # Check whether --enable-kqueue was given.
13986 michael 967 if test "${enable_kqueue+set}" = set; then :
13987 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13988     fi
13989    
13990     # Check whether --enable-epoll was given.
13991 michael 967 if test "${enable_epoll+set}" = set; then :
13992 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13993     fi
13994    
13995     # Check whether --enable-devpoll was given.
13996 michael 967 if test "${enable_devpoll+set}" = set; then :
13997 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13998     fi
13999    
14000     # Check whether --enable-rtsigio was given.
14001 michael 967 if test "${enable_rtsigio+set}" = set; then :
14002 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14003     fi
14004    
14005     # Check whether --enable-poll was given.
14006 michael 967 if test "${enable_poll+set}" = set; then :
14007 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14008     fi
14009    
14010     # Check whether --enable-select was given.
14011 michael 967 if test "${enable_select+set}" = set; then :
14012 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
14013     fi
14014    
14015 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14016 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14017 michael 912 iopoll_mechanism_none=0
14018    
14019     cat >>confdefs.h <<_ACEOF
14020     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14021     _ACEOF
14022    
14023     iopoll_mechanism_kqueue=1
14024    
14025     cat >>confdefs.h <<_ACEOF
14026     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14027     _ACEOF
14028    
14029 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 michael 912 /* end confdefs.h. */
14031     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14032     For example, HP-UX 11i <limits.h> declares gettimeofday. */
14033     #define kevent innocuous_kevent
14034    
14035     /* System header to define __stub macros and hopefully few prototypes,
14036     which can conflict with char kevent (); below.
14037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14038     <limits.h> exists even on freestanding compilers. */
14039    
14040     #ifdef __STDC__
14041     # include <limits.h>
14042     #else
14043     # include <assert.h>
14044     #endif
14045    
14046     #undef kevent
14047    
14048     /* Override any GCC internal prototype to avoid an error.
14049     Use char because int might match the return type of a GCC
14050     builtin and then its argument prototype would still apply. */
14051     #ifdef __cplusplus
14052     extern "C"
14053     #endif
14054     char kevent ();
14055     /* The GNU C library defines this for functions which it implements
14056     to always fail with ENOSYS. Some functions are actually named
14057     something starting with __ and the normal name is an alias. */
14058     #if defined __stub_kevent || defined __stub___kevent
14059     choke me
14060     #endif
14061    
14062     int
14063     main ()
14064     {
14065     return kevent ();
14066     ;
14067     return 0;
14068     }
14069     _ACEOF
14070 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14071 michael 912 is_kqueue_mechanism_available="yes"
14072     else
14073 michael 967 is_kqueue_mechanism_available="no"
14074 michael 912 fi
14075 michael 967 rm -f core conftest.err conftest.$ac_objext \
14076     conftest$ac_exeext conftest.$ac_ext
14077 michael 912 iopoll_mechanism_epoll=2
14078    
14079     cat >>confdefs.h <<_ACEOF
14080     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14081     _ACEOF
14082    
14083 michael 967 if test "$cross_compiling" = yes; then :
14084     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14085 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14086 michael 1095 as_fn_error $? "cannot run test program while cross compiling
14087     See \`config.log' for more details" "$LINENO" 5; }
14088 michael 912 else
14089 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090     /* end confdefs.h. */
14091 michael 912
14092     #include <sys/epoll.h>
14093     #include <sys/syscall.h>
14094     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14095     #if !defined(__NR_epoll_create)
14096     #if defined(__ia64__)
14097     #define __NR_epoll_create 1243
14098     #elif defined(__x86_64__)
14099     #define __NR_epoll_create 214
14100     #elif defined(__sparc64__) || defined(__sparc__)
14101     #define __NR_epoll_create 193
14102     #elif defined(__s390__) || defined(__m68k__)
14103     #define __NR_epoll_create 249
14104     #elif defined(__ppc64__) || defined(__ppc__)
14105     #define __NR_epoll_create 236
14106     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14107     #define __NR_epoll_create 224
14108     #elif defined(__alpha__)
14109     #define __NR_epoll_create 407
14110     #elif defined(__sh64__)
14111     #define __NR_epoll_create 282
14112     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14113     #define __NR_epoll_create 254
14114     #else
14115     #error No system call numbers defined for epoll family.
14116     #endif
14117     #endif
14118     _syscall1(int, epoll_create, int, size)
14119     #endif
14120    
14121 michael 1106 int
14122     main ()
14123     {
14124     return epoll_create(256) == -1 ? 1 : 0
14125     ;
14126     return 0;
14127     }
14128 michael 912 _ACEOF
14129 michael 967 if ac_fn_c_try_run "$LINENO"; then :
14130 michael 912 is_epoll_mechanism_available="yes"
14131     else
14132 michael 967 is_epoll_mechanism_available="no"
14133 michael 912 fi
14134 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14135     conftest.$ac_objext conftest.beam conftest.$ac_ext
14136 michael 912 fi
14137    
14138     iopoll_mechanism_devpoll=3
14139    
14140     cat >>confdefs.h <<_ACEOF
14141     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14142     _ACEOF
14143    
14144 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 michael 912 /* end confdefs.h. */
14146     #include <devpoll.h>
14147     int
14148     main ()
14149     {
14150    
14151     ;
14152     return 0;
14153     }
14154     _ACEOF
14155 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
14156 michael 912 is_devpoll_mechanism_available="yes"
14157     else
14158 michael 967 is_devpoll_mechanism_available="no"
14159 michael 912 fi
14160     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161     if test "$is_devpoll_mechanism_available" = "yes" ; then
14162    
14163 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14164 michael 912
14165     fi
14166 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 michael 912 /* end confdefs.h. */
14168     #include <sys/devpoll.h>
14169     int
14170     main ()
14171     {
14172    
14173     ;
14174     return 0;
14175     }
14176     _ACEOF
14177 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
14178 michael 912 is_devpoll_mechanism_available="yes"
14179     else
14180 michael 967 is_devpoll_mechanism_available="no"
14181 michael 912 fi
14182     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183     if test "$is_devpoll_mechanism_available" = "yes" ; then
14184    
14185 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14186 michael 912
14187     fi
14188     iopoll_mechanism_rtsigio=4
14189    
14190     cat >>confdefs.h <<_ACEOF
14191     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14192     _ACEOF
14193    
14194 michael 967 if test "$cross_compiling" = yes; then :
14195     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14196 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14197 michael 1095 as_fn_error $? "cannot run test program while cross compiling
14198     See \`config.log' for more details" "$LINENO" 5; }
14199 michael 912 else
14200 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 michael 912 /* end confdefs.h. */
14202    
14203 michael 1106 #define _GNU_SOURCE
14204 michael 912 #include <fcntl.h>
14205 michael 1106 static unsigned int have_f_setsig = 0;
14206 michael 912
14207     int
14208     main ()
14209     {
14210    
14211 michael 1106 #ifdef F_SETSIG
14212     have_f_setsig = 1;
14213     #endif
14214     return have_f_setsig == 0;
14215    
14216 michael 912 ;
14217     return 0;
14218     }
14219     _ACEOF
14220 michael 967 if ac_fn_c_try_run "$LINENO"; then :
14221 michael 912 is_rtsigio_mechanism_available="yes"
14222     else
14223 michael 967 is_rtsigio_mechanism_available="no"
14224 michael 912 fi
14225 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14226     conftest.$ac_objext conftest.beam conftest.$ac_ext
14227 michael 912 fi
14228    
14229     iopoll_mechanism_poll=5
14230    
14231     cat >>confdefs.h <<_ACEOF
14232     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14233     _ACEOF
14234    
14235 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 michael 912 /* end confdefs.h. */
14237     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14238     For example, HP-UX 11i <limits.h> declares gettimeofday. */
14239     #define poll innocuous_poll
14240    
14241     /* System header to define __stub macros and hopefully few prototypes,
14242     which can conflict with char poll (); below.
14243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14244     <limits.h> exists even on freestanding compilers. */
14245    
14246     #ifdef __STDC__
14247     # include <limits.h>
14248     #else
14249     # include <assert.h>
14250     #endif
14251    
14252     #undef poll
14253    
14254     /* Override any GCC internal prototype to avoid an error.
14255     Use char because int might match the return type of a GCC
14256     builtin and then its argument prototype would still apply. */
14257     #ifdef __cplusplus
14258     extern "C"
14259     #endif
14260     char poll ();
14261     /* The GNU C library defines this for functions which it implements
14262     to always fail with ENOSYS. Some functions are actually named
14263     something starting with __ and the normal name is an alias. */
14264     #if defined __stub_poll || defined __stub___poll
14265     choke me
14266     #endif
14267    
14268     int
14269     main ()
14270     {
14271     return poll ();
14272     ;
14273     return 0;
14274     }
14275     _ACEOF
14276 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14277 michael 912 is_poll_mechanism_available="yes"
14278     else
14279 michael 967 is_poll_mechanism_available="no"
14280 michael 912 fi
14281 michael 967 rm -f core conftest.err conftest.$ac_objext \
14282     conftest$ac_exeext conftest.$ac_ext
14283 michael 912 iopoll_mechanism_select=6
14284    
14285     cat >>confdefs.h <<_ACEOF
14286     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14287     _ACEOF
14288    
14289 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 michael 912 /* end confdefs.h. */
14291     /* Define select to an innocuous variant, in case <limits.h> declares select.
14292     For example, HP-UX 11i <limits.h> declares gettimeofday. */
14293     #define select innocuous_select
14294    
14295     /* System header to define __stub macros and hopefully few prototypes,
14296     which can conflict with char select (); below.
14297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14298     <limits.h> exists even on freestanding compilers. */
14299    
14300     #ifdef __STDC__
14301     # include <limits.h>
14302     #else
14303     # include <assert.h>
14304     #endif
14305    
14306     #undef select
14307    
14308     /* Override any GCC internal prototype to avoid an error.
14309     Use char because int might match the return type of a GCC
14310     builtin and then its argument prototype would still apply. */
14311     #ifdef __cplusplus
14312     extern "C"
14313     #endif
14314     char select ();
14315     /* The GNU C library defines this for functions which it implements
14316     to always fail with ENOSYS. Some functions are actually named
14317     something starting with __ and the normal name is an alias. */
14318     #if defined __stub_select || defined __stub___select
14319     choke me
14320     #endif
14321    
14322     int
14323     main ()
14324     {
14325     return select ();
14326     ;
14327     return 0;
14328     }
14329     _ACEOF
14330 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14331 michael 912 is_select_mechanism_available="yes"
14332     else
14333 michael 967 is_select_mechanism_available="no"
14334 michael 912 fi
14335 michael 967 rm -f core conftest.err conftest.$ac_objext \
14336     conftest$ac_exeext conftest.$ac_ext
14337 michael 912 optimal_iopoll_mechanism="none"
14338     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14339     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14340     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14341     optimal_iopoll_mechanism="$mechanism"
14342     break
14343     fi
14344     done
14345     if test "$desired_iopoll_mechanism" = "none" ; then
14346     if test "$optimal_iopoll_mechanism" = "none" ; then
14347 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14348 db 941 $as_echo "none" >&6; }
14349 michael 1095 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14350 michael 912 else
14351     selected_iopoll_mechanism=$optimal_iopoll_mechanism
14352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14353 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
14354 michael 912 fi
14355     else
14356     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14357     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14358     selected_iopoll_mechanism=$desired_iopoll_mechanism
14359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14360 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
14361 michael 912 else
14362 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14363 db 941 $as_echo "none" >&6; }
14364 michael 1095 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14365 michael 912 fi
14366     fi
14367     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14368    
14369     cat >>confdefs.h <<_ACEOF
14370     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14371     _ACEOF
14372    
14373    
14374    
14375    
14376     # Check whether --with-nicklen was given.
14377 michael 967 if test "${with_nicklen+set}" = set; then :
14378 michael 912 withval=$with_nicklen; nicklen="$withval"
14379     else
14380     nicklen="9"
14381     fi
14382    
14383    
14384     cat >>confdefs.h <<_ACEOF
14385 michael 1431 #define NICKLEN ($nicklen)
14386 michael 912 _ACEOF
14387    
14388    
14389    
14390    
14391     # Check whether --with-topiclen was given.
14392 michael 967 if test "${with_topiclen+set}" = set; then :
14393 michael 912 withval=$with_topiclen; topiclen="$withval"
14394     else
14395     topiclen="160"
14396     fi
14397    
14398    
14399     cat >>confdefs.h <<_ACEOF
14400 michael 1015 #define TOPICLEN ($topiclen)
14401 michael 912 _ACEOF
14402    
14403    
14404    
14405     # Check whether --enable-halfops was given.
14406 michael 967 if test "${enable_halfops+set}" = set; then :
14407 michael 912 enableval=$enable_halfops; halfops="$enableval"
14408     else
14409     halfops="no"
14410     fi
14411    
14412     if test "$halfops" = "yes" ; then
14413    
14414 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
14415 michael 912
14416     fi
14417    
14418    
14419     # Check whether --enable-debugging was given.
14420 michael 967 if test "${enable_debugging+set}" = set; then :
14421 michael 912 enableval=$enable_debugging; debugging="$enableval"
14422     else
14423     debugging="no"
14424     fi
14425    
14426     if test "$debugging" = "yes" ; then
14427    
14428 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
14429 michael 912
14430 michael 1017 CFLAGS="-Wall -g -O0"
14431 michael 912 else
14432    
14433 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
14434 michael 912
14435     fi
14436    
14437    
14438     # Check whether --enable-warnings was given.
14439 michael 967 if test "${enable_warnings+set}" = set; then :
14440 michael 912 enableval=$enable_warnings; warnings="$enableval"
14441     else
14442     warnings="no"
14443     fi
14444    
14445     if test "$warnings" = "yes" ; then
14446 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"
14447 michael 912 fi
14448    
14449    
14450    
14451     prefix_NONE=
14452     exec_prefix_NONE=
14453     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14454     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14455     eval ac_define_dir="\"$prefix\""
14456     eval ac_define_dir="\"$ac_define_dir\""
14457     PREFIX="$ac_define_dir"
14458    
14459    
14460     cat >>confdefs.h <<_ACEOF
14461     #define PREFIX "$ac_define_dir"
14462     _ACEOF
14463    
14464     test "$prefix_NONE" && prefix=NONE
14465     test "$exec_prefix_NONE" && exec_prefix=NONE
14466    
14467    
14468     prefix_NONE=
14469     exec_prefix_NONE=
14470     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14471     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14472     eval ac_define_dir="\"$sysconfdir\""
14473     eval ac_define_dir="\"$ac_define_dir\""
14474     SYSCONFDIR="$ac_define_dir"
14475    
14476    
14477     cat >>confdefs.h <<_ACEOF
14478     #define SYSCONFDIR "$ac_define_dir"
14479     _ACEOF
14480    
14481     test "$prefix_NONE" && prefix=NONE
14482     test "$exec_prefix_NONE" && exec_prefix=NONE
14483    
14484    
14485     prefix_NONE=
14486     exec_prefix_NONE=
14487     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14488     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14489     eval ac_define_dir="\"$libdir\""
14490     eval ac_define_dir="\"$ac_define_dir\""
14491     LIBDIR="$ac_define_dir"
14492    
14493    
14494     cat >>confdefs.h <<_ACEOF
14495     #define LIBDIR "$ac_define_dir"
14496     _ACEOF
14497    
14498     test "$prefix_NONE" && prefix=NONE
14499     test "$exec_prefix_NONE" && exec_prefix=NONE
14500    
14501    
14502     prefix_NONE=
14503     exec_prefix_NONE=
14504     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14505     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14506     eval ac_define_dir="\"$datadir\""
14507     eval ac_define_dir="\"$ac_define_dir\""
14508     DATADIR="$ac_define_dir"
14509    
14510    
14511     cat >>confdefs.h <<_ACEOF
14512     #define DATADIR "$ac_define_dir"
14513     _ACEOF
14514    
14515     test "$prefix_NONE" && prefix=NONE
14516     test "$exec_prefix_NONE" && exec_prefix=NONE
14517    
14518    
14519     prefix_NONE=
14520     exec_prefix_NONE=
14521     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14522     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14523     eval ac_define_dir="\"$localstatedir\""
14524     eval ac_define_dir="\"$ac_define_dir\""
14525     LOCALSTATEDIR="$ac_define_dir"
14526    
14527    
14528     cat >>confdefs.h <<_ACEOF
14529     #define LOCALSTATEDIR "$ac_define_dir"
14530     _ACEOF
14531    
14532     test "$prefix_NONE" && prefix=NONE
14533     test "$exec_prefix_NONE" && exec_prefix=NONE
14534    
14535 db 941
14536 michael 1310 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14537 michael 912
14538    
14539     cat >confcache <<\_ACEOF
14540     # This file is a shell script that caches the results of configure
14541     # tests run on this system so they can be shared between configure
14542     # scripts and configure runs, see configure's option --config-cache.
14543     # It is not useful on other systems. If it contains results you don't
14544     # want to keep, you may remove or edit it.
14545     #
14546     # config.status only pays attention to the cache file if you give it
14547     # the --recheck option to rerun configure.
14548     #
14549     # `ac_cv_env_foo' variables (set or unset) will be overridden when
14550     # loading this file, other *unset* `ac_cv_foo' will be assigned the
14551     # following values.
14552    
14553     _ACEOF
14554    
14555     # The following way of writing the cache mishandles newlines in values,
14556     # but we know of no workaround that is simple, portable, and efficient.
14557     # So, we kill variables containing newlines.
14558     # Ultrix sh set writes to stderr and can't be redirected directly,
14559     # and sets the high bit in the cache file unless we assign to the vars.
14560     (
14561     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14562     eval ac_val=\$$ac_var
14563     case $ac_val in #(
14564     *${as_nl}*)
14565     case $ac_var in #(
14566 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14567 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14568 michael 912 esac
14569     case $ac_var in #(
14570     _ | IFS | as_nl) ;; #(
14571 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14572 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
14573 michael 912 esac ;;
14574     esac
14575     done
14576    
14577     (set) 2>&1 |
14578     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14579     *${as_nl}ac_space=\ *)
14580 michael 967 # `set' does not quote correctly, so add quotes: double-quote
14581     # substitution turns \\\\ into \\, and sed turns \\ into \.
14582 michael 912 sed -n \
14583     "s/'/'\\\\''/g;
14584     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14585     ;; #(
14586     *)
14587     # `set' quotes correctly as required by POSIX, so do not add quotes.
14588     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14589     ;;
14590     esac |
14591     sort
14592     ) |
14593     sed '
14594     /^ac_cv_env_/b end
14595     t clear
14596     :clear
14597     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14598     t end
14599     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14600     :end' >>confcache
14601     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14602     if test -w "$cache_file"; then
14603 michael 1106 if test "x$cache_file" != "x/dev/null"; then
14604 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14605 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
14606 michael 1106 if test ! -f "$cache_file" || test -h "$cache_file"; then
14607     cat confcache >"$cache_file"
14608     else
14609     case $cache_file in #(
14610     */* | ?:*)
14611     mv -f confcache "$cache_file"$$ &&
14612     mv -f "$cache_file"$$ "$cache_file" ;; #(
14613     *)
14614     mv -f confcache "$cache_file" ;;
14615     esac
14616     fi
14617     fi
14618 michael 912 else
14619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14620 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14621 michael 912 fi
14622     fi
14623     rm -f confcache
14624    
14625     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14626     # Let make expand exec_prefix.
14627     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14628    
14629     DEFS=-DHAVE_CONFIG_H
14630    
14631     ac_libobjs=
14632     ac_ltlibobjs=
14633 michael 1095 U=
14634 michael 912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14635     # 1. Remove the extension, and $U if already installed.
14636     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14637 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14638 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14639     # will be set to the directory where LIBOBJS objects are built.
14640 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14641     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14642 michael 912 done
14643     LIBOBJS=$ac_libobjs
14644    
14645     LTLIBOBJS=$ac_ltlibobjs
14646    
14647    
14648 michael 1373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14649     $as_echo_n "checking that generated files are newer than configure... " >&6; }
14650     if test -n "$am_sleep_pid"; then
14651     # Hide warnings about reused PIDs.
14652     wait $am_sleep_pid 2>/dev/null
14653     fi
14654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14655     $as_echo "done" >&6; }
14656 michael 945 if test -n "$EXEEXT"; then
14657     am__EXEEXT_TRUE=
14658     am__EXEEXT_FALSE='#'
14659     else
14660     am__EXEEXT_TRUE='#'
14661     am__EXEEXT_FALSE=
14662     fi
14663    
14664 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14665 michael 1095 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14666 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 michael 912 fi
14668     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14669 michael 1095 as_fn_error $? "conditional \"AMDEP\" was never defined.
14670 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 michael 912 fi
14672     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14673 michael 1095 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14674 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 michael 912 fi
14676 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14677 michael 1095 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14678 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 michael 912 fi
14680 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14681 michael 1095 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14682 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 michael 945 fi
14684     LT_CONFIG_H=config.h
14685 michael 942
14686 michael 945 _ltdl_libobjs=
14687     _ltdl_ltlibobjs=
14688     if test -n "$_LT_LIBOBJS"; then
14689     # Remove the extension.
14690     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14691     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14692     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14693     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14694     done
14695     fi
14696     ltdl_LIBOBJS=$_ltdl_libobjs
14697    
14698     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14699    
14700    
14701    
14702 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14703 michael 1095 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14704 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14705 michael 912 fi
14706    
14707 michael 1106 : "${CONFIG_STATUS=./config.status}"
14708 db 941 ac_write_fail=0
14709 michael 912 ac_clean_files_save=$ac_clean_files
14710     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14711 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14712 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14713 michael 967 as_write_fail=0
14714     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14715 michael 912 #! $SHELL
14716     # Generated by $as_me.
14717     # Run this file to recreate the current configuration.
14718     # Compiler output produced by configure, useful for debugging
14719     # configure, is in config.log if it exists.
14720    
14721     debug=false
14722     ac_cs_recheck=false
14723     ac_cs_silent=false
14724 michael 967
14725 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
14726 michael 967 export SHELL
14727     _ASEOF
14728     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14729     ## -------------------- ##
14730     ## M4sh Initialization. ##
14731     ## -------------------- ##
14732 michael 912
14733     # Be more Bourne compatible
14734     DUALCASE=1; export DUALCASE # for MKS sh
14735 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14736 michael 912 emulate sh
14737     NULLCMD=:
14738 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14739 michael 912 # is contrary to our usage. Disable this feature.
14740     alias -g '${1+"$@"}'='"$@"'
14741     setopt NO_GLOB_SUBST
14742     else
14743 michael 967 case `(set -o) 2>/dev/null` in #(
14744     *posix*) :
14745     set -o posix ;; #(
14746     *) :
14747     ;;
14748 michael 912 esac
14749     fi
14750    
14751    
14752 db 941 as_nl='
14753     '
14754     export as_nl
14755     # Printing a long string crashes Solaris 7 /usr/bin/printf.
14756     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14757     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14758     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14759 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
14760     # but without wasting forks for bash or zsh.
14761     if test -z "$BASH_VERSION$ZSH_VERSION" \
14762     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14763     as_echo='print -r --'
14764     as_echo_n='print -rn --'
14765     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14766 db 941 as_echo='printf %s\n'
14767     as_echo_n='printf %s'
14768     else
14769     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14770     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14771     as_echo_n='/usr/ucb/echo -n'
14772 michael 912 else
14773 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14774     as_echo_n_body='eval
14775     arg=$1;
14776 michael 967 case $arg in #(
14777 db 941 *"$as_nl"*)
14778     expr "X$arg" : "X\\(.*\\)$as_nl";
14779     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14780     esac;
14781     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14782     '
14783     export as_echo_n_body
14784     as_echo_n='sh -c $as_echo_n_body as_echo'
14785 michael 912 fi
14786 db 941 export as_echo_body
14787     as_echo='sh -c $as_echo_body as_echo'
14788 michael 912 fi
14789    
14790 db 941 # The user is always right.
14791     if test "${PATH_SEPARATOR+set}" != set; then
14792     PATH_SEPARATOR=:
14793     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14794     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14795     PATH_SEPARATOR=';'
14796     }
14797     fi
14798    
14799 michael 912
14800     # IFS
14801     # We need space, tab and new line, in precisely that order. Quoting is
14802     # there to prevent editors from complaining about space-tab.
14803     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14804     # splitting by setting IFS to empty value.)
14805     IFS=" "" $as_nl"
14806    
14807     # Find who we are. Look in the path if we contain no directory separator.
14808 michael 1106 as_myself=
14809 michael 967 case $0 in #((
14810 michael 912 *[\\/]* ) as_myself=$0 ;;
14811     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812     for as_dir in $PATH
14813     do
14814     IFS=$as_save_IFS
14815     test -z "$as_dir" && as_dir=.
14816 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14817     done
14818 michael 912 IFS=$as_save_IFS
14819    
14820     ;;
14821     esac
14822     # We did not find ourselves, most probably we were run as `sh COMMAND'
14823     # in which case we are not to be found in the path.
14824     if test "x$as_myself" = x; then
14825     as_myself=$0
14826     fi
14827     if test ! -f "$as_myself"; then
14828 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14829 michael 967 exit 1
14830 michael 912 fi
14831    
14832 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14833     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14834     # suppresses any "Segmentation fault" message there. '((' could
14835     # trigger a bug in pdksh 5.2.14.
14836     for as_var in BASH_ENV ENV MAIL MAILPATH
14837     do eval test x\${$as_var+set} = xset \
14838     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14839 michael 912 done
14840     PS1='$ '
14841     PS2='> '
14842     PS4='+ '
14843    
14844     # NLS nuisances.
14845 db 941 LC_ALL=C
14846     export LC_ALL
14847     LANGUAGE=C
14848     export LANGUAGE
14849 michael 912
14850 michael 967 # CDPATH.
14851     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14852    
14853    
14854 michael 1095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14855     # ----------------------------------------
14856 michael 967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14857     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14858 michael 1095 # script with STATUS, using 1 if that was 0.
14859 michael 967 as_fn_error ()
14860     {
14861 michael 1095 as_status=$1; test $as_status -eq 0 && as_status=1
14862     if test "$4"; then
14863     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14864     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14865 michael 967 fi
14866 michael 1095 $as_echo "$as_me: error: $2" >&2
14867 michael 967 as_fn_exit $as_status
14868     } # as_fn_error
14869    
14870    
14871     # as_fn_set_status STATUS
14872     # -----------------------
14873     # Set $? to STATUS, without forking.
14874     as_fn_set_status ()
14875     {
14876     return $1
14877     } # as_fn_set_status
14878    
14879     # as_fn_exit STATUS
14880     # -----------------
14881     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14882     as_fn_exit ()
14883     {
14884     set +e
14885     as_fn_set_status $1
14886     exit $1
14887     } # as_fn_exit
14888    
14889     # as_fn_unset VAR
14890     # ---------------
14891     # Portably unset VAR.
14892     as_fn_unset ()
14893     {
14894     { eval $1=; unset $1;}
14895     }
14896     as_unset=as_fn_unset
14897     # as_fn_append VAR VALUE
14898     # ----------------------
14899     # Append the text in VALUE to the end of the definition contained in VAR. Take
14900     # advantage of any shell optimizations that allow amortized linear growth over
14901     # repeated appends, instead of the typical quadratic growth present in naive
14902     # implementations.
14903     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14904     eval 'as_fn_append ()
14905     {
14906     eval $1+=\$2
14907     }'
14908     else
14909     as_fn_append ()
14910     {
14911     eval $1=\$$1\$2
14912     }
14913     fi # as_fn_append
14914    
14915     # as_fn_arith ARG...
14916     # ------------------
14917     # Perform arithmetic evaluation on the ARGs, and store the result in the
14918     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14919     # must be portable across $(()) and expr.
14920     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14921     eval 'as_fn_arith ()
14922     {
14923     as_val=$(( $* ))
14924     }'
14925     else
14926     as_fn_arith ()
14927     {
14928     as_val=`expr "$@" || test $? -eq 1`
14929     }
14930     fi # as_fn_arith
14931    
14932    
14933 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14934     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14935     as_expr=expr
14936     else
14937     as_expr=false
14938     fi
14939    
14940     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14941     as_basename=basename
14942     else
14943     as_basename=false
14944     fi
14945    
14946 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14947     as_dirname=dirname
14948     else
14949     as_dirname=false
14950     fi
14951 michael 912
14952     as_me=`$as_basename -- "$0" ||
14953     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14954     X"$0" : 'X\(//\)$' \| \
14955     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14956 db 941 $as_echo X/"$0" |
14957 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14958     s//\1/
14959     q
14960     }
14961     /^X\/\(\/\/\)$/{
14962     s//\1/
14963     q
14964     }
14965     /^X\/\(\/\).*/{
14966     s//\1/
14967     q
14968     }
14969     s/.*/./; q'`
14970    
14971 michael 967 # Avoid depending upon Character Ranges.
14972     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14973     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14974     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14975     as_cr_digits='0123456789'
14976     as_cr_alnum=$as_cr_Letters$as_cr_digits
14977 michael 912
14978     ECHO_C= ECHO_N= ECHO_T=
14979 michael 967 case `echo -n x` in #(((((
14980 michael 912 -n*)
14981 michael 967 case `echo 'xy\c'` in
14982 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14983 michael 967 xy) ECHO_C='\c';;
14984     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14985     ECHO_T=' ';;
14986 michael 912 esac;;
14987     *)
14988     ECHO_N='-n';;
14989     esac
14990    
14991     rm -f conf$$ conf$$.exe conf$$.file
14992     if test -d conf$$.dir; then
14993     rm -f conf$$.dir/conf$$.file
14994     else
14995     rm -f conf$$.dir
14996 db 941 mkdir conf$$.dir 2>/dev/null
14997 michael 912 fi
14998 db 941 if (echo >conf$$.file) 2>/dev/null; then
14999     if ln -s conf$$.file conf$$ 2>/dev/null; then
15000     as_ln_s='ln -s'
15001     # ... but there are two gotchas:
15002     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15003     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15004 michael 1373 # In both cases, we have to default to `cp -pR'.
15005 db 941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15006 michael 1373 as_ln_s='cp -pR'
15007 db 941 elif ln conf$$.file conf$$ 2>/dev/null; then
15008     as_ln_s=ln
15009     else
15010 michael 1373 as_ln_s='cp -pR'
15011 db 941 fi
15012 michael 912 else
15013 michael 1373 as_ln_s='cp -pR'
15014 michael 912 fi
15015     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15016     rmdir conf$$.dir 2>/dev/null
15017    
15018 michael 967
15019     # as_fn_mkdir_p
15020     # -------------
15021     # Create "$as_dir" as a directory, including parents if necessary.
15022     as_fn_mkdir_p ()
15023     {
15024    
15025     case $as_dir in #(
15026     -*) as_dir=./$as_dir;;
15027     esac
15028     test -d "$as_dir" || eval $as_mkdir_p || {
15029     as_dirs=
15030     while :; do
15031     case $as_dir in #(
15032     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15033     *) as_qdir=$as_dir;;
15034     esac
15035     as_dirs="'$as_qdir' $as_dirs"
15036     as_dir=`$as_dirname -- "$as_dir" ||
15037     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15038     X"$as_dir" : 'X\(//\)[^/]' \| \
15039     X"$as_dir" : 'X\(//\)$' \| \
15040     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15041     $as_echo X"$as_dir" |
15042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15043     s//\1/
15044     q
15045     }
15046     /^X\(\/\/\)[^/].*/{
15047     s//\1/
15048     q
15049     }
15050     /^X\(\/\/\)$/{
15051     s//\1/
15052     q
15053     }
15054     /^X\(\/\).*/{
15055     s//\1/
15056     q
15057     }
15058     s/.*/./; q'`
15059     test -d "$as_dir" && break
15060     done
15061     test -z "$as_dirs" || eval "mkdir $as_dirs"
15062 michael 1095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15063 michael 967
15064    
15065     } # as_fn_mkdir_p
15066 michael 912 if mkdir -p . 2>/dev/null; then
15067 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
15068 michael 912 else
15069     test -d ./-p && rmdir ./-p
15070     as_mkdir_p=false
15071     fi
15072    
15073    
15074 michael 1373 # as_fn_executable_p FILE
15075     # -----------------------
15076     # Test if FILE is an executable regular file.
15077     as_fn_executable_p ()
15078     {
15079     test -f "$1" && test -x "$1"
15080     } # as_fn_executable_p
15081     as_test_x='test -x'
15082     as_executable_p=as_fn_executable_p
15083    
15084 michael 912 # Sed expression to map a string onto a valid CPP name.
15085     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15086    
15087     # Sed expression to map a string onto a valid variable name.
15088     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15089    
15090    
15091     exec 6>&1
15092 michael 967 ## ----------------------------------- ##
15093     ## Main body of $CONFIG_STATUS script. ##
15094     ## ----------------------------------- ##
15095     _ASEOF
15096     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15097 michael 912
15098 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15099     # Save the log message, to keep $0 and so on meaningful, and to
15100 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
15101     # values after options handling.
15102     ac_log="
15103 michael 1494 This file was extended by ircd-hybrid $as_me 8beta3, which was
15104 michael 1373 generated by GNU Autoconf 2.69. Invocation command line was
15105 michael 912
15106     CONFIG_FILES = $CONFIG_FILES
15107     CONFIG_HEADERS = $CONFIG_HEADERS
15108     CONFIG_LINKS = $CONFIG_LINKS
15109     CONFIG_COMMANDS = $CONFIG_COMMANDS
15110     $ $0 $@
15111    
15112     on `(hostname || uname -n) 2>/dev/null | sed 1q`
15113     "
15114    
15115     _ACEOF
15116    
15117 michael 942 case $ac_config_files in *"
15118     "*) set x $ac_config_files; shift; ac_config_files=$*;;
15119     esac
15120    
15121     case $ac_config_headers in *"
15122     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15123     esac
15124    
15125    
15126 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15127 michael 912 # Files that config.status was made for.
15128 michael 967 config_files="$ac_config_files"
15129     config_headers="$ac_config_headers"
15130     config_commands="$ac_config_commands"
15131 michael 912
15132     _ACEOF
15133    
15134 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 michael 912 ac_cs_usage="\
15136 michael 967 \`$as_me' instantiates files and other configuration actions
15137     from templates according to the current configuration. Unless the files
15138     and actions are specified as TAGs, all are instantiated by default.
15139 michael 912
15140 michael 967 Usage: $0 [OPTION]... [TAG]...
15141 michael 912
15142     -h, --help print this help, then exit
15143     -V, --version print version number and configuration settings, then exit
15144 michael 1033 --config print configuration, then exit
15145 michael 942 -q, --quiet, --silent
15146     do not print progress messages
15147 michael 912 -d, --debug don't remove temporary files
15148     --recheck update $as_me by reconfiguring in the same conditions
15149 michael 942 --file=FILE[:TEMPLATE]
15150 db 941 instantiate the configuration file FILE
15151 michael 942 --header=FILE[:TEMPLATE]
15152 db 941 instantiate the configuration header FILE
15153 michael 912
15154     Configuration files:
15155     $config_files
15156    
15157     Configuration headers:
15158     $config_headers
15159    
15160     Configuration commands:
15161     $config_commands
15162    
15163 michael 1039 Report bugs to <bugs@ircd-hybrid.org>."
15164 michael 912
15165     _ACEOF
15166 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167 michael 1033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15168 michael 912 ac_cs_version="\\
15169 michael 1494 ircd-hybrid config.status 8beta3
15170 michael 1373 configured by $0, generated by GNU Autoconf 2.69,
15171 michael 1033 with options \\"\$ac_cs_config\\"
15172 michael 912
15173 michael 1373 Copyright (C) 2012 Free Software Foundation, Inc.
15174 michael 912 This config.status script is free software; the Free Software Foundation
15175     gives unlimited permission to copy, distribute and modify it."
15176    
15177     ac_pwd='$ac_pwd'
15178     srcdir='$srcdir'
15179     INSTALL='$INSTALL'
15180     MKDIR_P='$MKDIR_P'
15181 db 941 AWK='$AWK'
15182     test -n "\$AWK" || AWK=awk
15183 michael 912 _ACEOF
15184    
15185 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186     # The default lists apply if the user does not specify any file.
15187 michael 912 ac_need_defaults=:
15188     while test $# != 0
15189     do
15190     case $1 in
15191 michael 1095 --*=?*)
15192 michael 912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15193     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15194     ac_shift=:
15195     ;;
15196 michael 1095 --*=)
15197     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15198     ac_optarg=
15199     ac_shift=:
15200     ;;
15201 michael 912 *)
15202     ac_option=$1
15203     ac_optarg=$2
15204     ac_shift=shift
15205     ;;
15206     esac
15207    
15208     case $ac_option in
15209     # Handling of the options.
15210     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15211     ac_cs_recheck=: ;;
15212     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15213 db 941 $as_echo "$ac_cs_version"; exit ;;
15214 michael 1033 --config | --confi | --conf | --con | --co | --c )
15215     $as_echo "$ac_cs_config"; exit ;;
15216 michael 912 --debug | --debu | --deb | --de | --d | -d )
15217     debug=: ;;
15218     --file | --fil | --fi | --f )
15219     $ac_shift
15220 db 941 case $ac_optarg in
15221     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15222 michael 1095 '') as_fn_error $? "missing file argument" ;;
15223 db 941 esac
15224 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
15225 michael 912 ac_need_defaults=false;;
15226     --header | --heade | --head | --hea )
15227     $ac_shift
15228 db 941 case $ac_optarg in
15229     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15230     esac
15231 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15232 michael 912 ac_need_defaults=false;;
15233     --he | --h)
15234     # Conflict between --help and --header
15235 michael 1095 as_fn_error $? "ambiguous option: \`$1'
15236 michael 967 Try \`$0 --help' for more information.";;
15237 michael 912 --help | --hel | -h )
15238 db 941 $as_echo "$ac_cs_usage"; exit ;;
15239 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15240     | -silent | --silent | --silen | --sile | --sil | --si | --s)
15241     ac_cs_silent=: ;;
15242    
15243     # This is an error.
15244 michael 1095 -*) as_fn_error $? "unrecognized option: \`$1'
15245 michael 967 Try \`$0 --help' for more information." ;;
15246 michael 912
15247 michael 967 *) as_fn_append ac_config_targets " $1"
15248 michael 912 ac_need_defaults=false ;;
15249    
15250     esac
15251     shift
15252     done
15253    
15254     ac_configure_extra_args=
15255    
15256     if $ac_cs_silent; then
15257     exec 6>/dev/null
15258     ac_configure_extra_args="$ac_configure_extra_args --silent"
15259     fi
15260    
15261     _ACEOF
15262 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 michael 912 if \$ac_cs_recheck; then
15264 michael 1373 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15265 db 941 shift
15266     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15267     CONFIG_SHELL='$SHELL'
15268 michael 912 export CONFIG_SHELL
15269 db 941 exec "\$@"
15270 michael 912 fi
15271    
15272     _ACEOF
15273 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15274 michael 912 exec 5>>config.log
15275     {
15276     echo
15277     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15278     ## Running $as_me. ##
15279     _ASBOX
15280 db 941 $as_echo "$ac_log"
15281 michael 912 } >&5
15282    
15283     _ACEOF
15284 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285 michael 912 #
15286     # INIT-COMMANDS
15287     #
15288     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15289    
15290 michael 945
15291     # The HP-UX ksh and POSIX shell print the target directory to stdout
15292     # if CDPATH is set.
15293     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15294    
15295     sed_quote_subst='$sed_quote_subst'
15296     double_quote_subst='$double_quote_subst'
15297     delay_variable_subst='$delay_variable_subst'
15298 michael 1094 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15299     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15300     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15301     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15302     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15303     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15304     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15305     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15306 michael 1257 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15307 michael 1094 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15308     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15309     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15310     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15311     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15312     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15313     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15314     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15315     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15316     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15317     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15318     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15319     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15320     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15321     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15322     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15323     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15324     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15325     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15326     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15327 michael 1106 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15328     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15329 michael 1094 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15330     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15331     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15332     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15333     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15334 michael 1106 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15335     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15336     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15337     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15338 michael 1094 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15339     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15340 michael 1106 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15341 michael 1094 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15342     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15343     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15344     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15345     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15346     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15347     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15348     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15349     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15350     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15351     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15352     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15353     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15354     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15355 michael 1106 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15356     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15357 michael 1094 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15358     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15359     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15360 michael 1106 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15361 michael 1094 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15362     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15363     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15364     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15365 michael 1106 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15366 michael 1094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15367     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15368     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15369     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15370     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15371     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15372     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15373     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15374     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15375     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15376     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15377     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15378     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15379     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15380     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15381     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15382     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15383     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15384     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15385     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15386     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15387     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15388     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15389     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15390     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15391     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15392     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15393     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15395     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15396     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15397     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15398     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15399     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15400     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15401     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15402 michael 1106 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15403 michael 1094 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15404     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15405     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15406     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15407     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15408     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15409     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15410     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15411     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15412     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15413     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15414     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15415     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15416     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15417     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15418     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15419     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15420     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15421     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15422     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15423     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15424     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15425     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15426     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15427     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15428 michael 945
15429     LTCC='$LTCC'
15430     LTCFLAGS='$LTCFLAGS'
15431     compiler='$compiler_DEFAULT'
15432    
15433 michael 1094 # A function that is used when there is no print builtin or printf.
15434     func_fallback_echo ()
15435     {
15436     eval 'cat <<_LTECHO_EOF
15437     \$1
15438     _LTECHO_EOF'
15439     }
15440    
15441 michael 945 # Quote evaled strings.
15442 michael 1094 for var in SHELL \
15443     ECHO \
15444 michael 1257 PATH_SEPARATOR \
15445 michael 1094 SED \
15446 michael 945 GREP \
15447     EGREP \
15448     FGREP \
15449     LD \
15450     NM \
15451     LN_S \
15452     lt_SP2NL \
15453     lt_NL2SP \
15454     reload_flag \
15455     OBJDUMP \
15456     deplibs_check_method \
15457     file_magic_cmd \
15458 michael 1106 file_magic_glob \
15459     want_nocaseglob \
15460     DLLTOOL \
15461     sharedlib_from_linklib_cmd \
15462 michael 945 AR \
15463     AR_FLAGS \
15464 michael 1106 archiver_list_spec \
15465 michael 945 STRIP \
15466     RANLIB \
15467     CC \
15468     CFLAGS \
15469     compiler \
15470     lt_cv_sys_global_symbol_pipe \
15471     lt_cv_sys_global_symbol_to_cdecl \
15472     lt_cv_sys_global_symbol_to_c_name_address \
15473     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15474 michael 1106 nm_file_list_spec \
15475 michael 945 lt_prog_compiler_no_builtin_flag \
15476 michael 1106 lt_prog_compiler_pic \
15477 michael 945 lt_prog_compiler_wl \
15478     lt_prog_compiler_static \
15479     lt_cv_prog_compiler_c_o \
15480     need_locks \
15481 michael 1106 MANIFEST_TOOL \
15482 michael 945 DSYMUTIL \
15483     NMEDIT \
15484     LIPO \
15485     OTOOL \
15486     OTOOL64 \
15487     shrext_cmds \
15488     export_dynamic_flag_spec \
15489     whole_archive_flag_spec \
15490     compiler_needs_object \
15491     with_gnu_ld \
15492     allow_undefined_flag \
15493     no_undefined_flag \
15494     hardcode_libdir_flag_spec \
15495     hardcode_libdir_separator \
15496     exclude_expsyms \
15497     include_expsyms \
15498     file_list_spec \
15499     variables_saved_for_relink \
15500     libname_spec \
15501     library_names_spec \
15502     soname_spec \
15503 michael 1094 install_override_mode \
15504 michael 945 finish_eval \
15505     old_striplib \
15506     striplib; do
15507 michael 1094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15508 michael 945 *[\\\\\\\`\\"\\\$]*)
15509 michael 1094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15510 michael 945 ;;
15511     *)
15512     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15513     ;;
15514     esac
15515     done
15516    
15517     # Double-quote double-evaled strings.
15518     for var in reload_cmds \
15519     old_postinstall_cmds \
15520     old_postuninstall_cmds \
15521     old_archive_cmds \
15522     extract_expsyms_cmds \
15523     old_archive_from_new_cmds \
15524     old_archive_from_expsyms_cmds \
15525     archive_cmds \
15526     archive_expsym_cmds \
15527     module_cmds \
15528     module_expsym_cmds \
15529     export_symbols_cmds \
15530     prelink_cmds \
15531 michael 1106 postlink_cmds \
15532 michael 945 postinstall_cmds \
15533     postuninstall_cmds \
15534     finish_cmds \
15535     sys_lib_search_path_spec \
15536     sys_lib_dlsearch_path_spec; do
15537 michael 1094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15538 michael 945 *[\\\\\\\`\\"\\\$]*)
15539 michael 1094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15540 michael 945 ;;
15541     *)
15542     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15543     ;;
15544     esac
15545     done
15546    
15547     ac_aux_dir='$ac_aux_dir'
15548     xsi_shell='$xsi_shell'
15549     lt_shell_append='$lt_shell_append'
15550    
15551     # See if we are running on zsh, and set the options which allow our
15552     # commands through without removal of \ escapes INIT.
15553     if test -n "\${ZSH_VERSION+set}" ; then
15554     setopt NO_GLOB_SUBST
15555     fi
15556    
15557    
15558     PACKAGE='$PACKAGE'
15559     VERSION='$VERSION'
15560     TIMESTAMP='$TIMESTAMP'
15561     RM='$RM'
15562     ofile='$ofile'
15563    
15564    
15565    
15566    
15567 michael 912 _ACEOF
15568    
15569 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15570 michael 912
15571     # Handling of arguments.
15572     for ac_config_target in $ac_config_targets
15573     do
15574     case $ac_config_target in
15575     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15576     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15577 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15578 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15579     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15580     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15581     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15582 michael 1092 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15583 michael 912 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15584     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15585     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15586     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15587     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15588     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15589     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15590 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15591 michael 912
15592 michael 1095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15593 michael 912 esac
15594     done
15595    
15596    
15597     # If the user did not use the arguments to specify the items to instantiate,
15598     # then the envvar interface is used. Set only those that are not.
15599     # We use the long form for the default assignment because of an extremely
15600     # bizarre bug on SunOS 4.1.3.
15601     if $ac_need_defaults; then
15602     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15603     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15604     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15605     fi
15606    
15607     # Have a temporary directory for convenience. Make it in the build tree
15608     # simply because there is no reason against having it here, and in addition,
15609     # creating and moving files from /tmp can sometimes cause problems.
15610     # Hook for its removal unless debugging.
15611     # Note that there is a small window in which the directory will not be cleaned:
15612     # after its creation but before its name has been assigned to `$tmp'.
15613     $debug ||
15614     {
15615 michael 1106 tmp= ac_tmp=
15616 michael 912 trap 'exit_status=$?
15617 michael 1106 : "${ac_tmp:=$tmp}"
15618     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15619 michael 912 ' 0
15620 michael 967 trap 'as_fn_exit 1' 1 2 13 15
15621 michael 912 }
15622     # Create a (secure) tmp directory for tmp files.
15623    
15624     {
15625     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15626 michael 1106 test -d "$tmp"
15627 michael 912 } ||
15628     {
15629     tmp=./conf$$-$RANDOM
15630     (umask 077 && mkdir "$tmp")
15631 michael 1095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15632 michael 1106 ac_tmp=$tmp
15633 michael 912
15634 db 941 # Set up the scripts for CONFIG_FILES section.
15635     # No need to generate them if there are no CONFIG_FILES.
15636     # This happens for instance with `./config.status config.h'.
15637 michael 912 if test -n "$CONFIG_FILES"; then
15638    
15639 db 941
15640 michael 967 ac_cr=`echo X | tr X '\015'`
15641     # On cygwin, bash can eat \r inside `` if the user requested igncr.
15642     # But we know of no other shell where ac_cr would be empty at this
15643     # point, so we can use a bashism as a fallback.
15644     if test "x$ac_cr" = x; then
15645     eval ac_cr=\$\'\\r\'
15646     fi
15647 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15648     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15649 michael 1095 ac_cs_awk_cr='\\r'
15650 db 941 else
15651     ac_cs_awk_cr=$ac_cr
15652     fi
15653    
15654 michael 1106 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15655 michael 912 _ACEOF
15656    
15657    
15658 db 941 {
15659     echo "cat >conf$$subs.awk <<_ACEOF" &&
15660     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15661     echo "_ACEOF"
15662     } >conf$$subs.sh ||
15663 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15664     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15665 michael 912 ac_delim='%!_!# '
15666     for ac_last_try in false false false false false :; do
15667 db 941 . ./conf$$subs.sh ||
15668 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15669 michael 912
15670 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15671     if test $ac_delim_n = $ac_delim_num; then
15672 michael 912 break
15673     elif $ac_last_try; then
15674 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15675 michael 912 else
15676     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15677     fi
15678     done
15679 db 941 rm -f conf$$subs.sh
15680 michael 912
15681 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682 michael 1106 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15683 michael 912 _ACEOF
15684 db 941 sed -n '
15685     h
15686     s/^/S["/; s/!.*/"]=/
15687     p
15688     g
15689     s/^[^!]*!//
15690     :repl
15691     t repl
15692     s/'"$ac_delim"'$//
15693     t delim
15694     :nl
15695     h
15696 michael 1033 s/\(.\{148\}\)..*/\1/
15697 db 941 t more1
15698     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15699     p
15700     n
15701     b repl
15702     :more1
15703     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15704     p
15705     g
15706     s/.\{148\}//
15707     t nl
15708     :delim
15709     h
15710 michael 1033 s/\(.\{148\}\)..*/\1/
15711 db 941 t more2
15712     s/["\\]/\\&/g; s/^/"/; s/$/"/
15713     p
15714     b
15715     :more2
15716     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15717     p
15718     g
15719     s/.\{148\}//
15720     t delim
15721     ' <conf$$subs.awk | sed '
15722     /^[^""]/{
15723     N
15724     s/\n//
15725     }
15726     ' >>$CONFIG_STATUS || ac_write_fail=1
15727     rm -f conf$$subs.awk
15728     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729     _ACAWK
15730 michael 1106 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15731 db 941 for (key in S) S_is_set[key] = 1
15732     FS = ""
15733 michael 912
15734 db 941 }
15735     {
15736     line = $ 0
15737     nfields = split(line, field, "@")
15738     substed = 0
15739     len = length(field[1])
15740     for (i = 2; i < nfields; i++) {
15741     key = field[i]
15742     keylen = length(key)
15743     if (S_is_set[key]) {
15744     value = S[key]
15745     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15746     len += length(value) + length(field[++i])
15747     substed = 1
15748     } else
15749     len += 1 + keylen
15750     }
15751 michael 912
15752 db 941 print line
15753     }
15754    
15755     _ACAWK
15756 michael 912 _ACEOF
15757 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15758     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15759     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15760     else
15761     cat
15762 michael 1106 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15763 michael 1095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15764 michael 912 _ACEOF
15765    
15766 michael 1095 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15767     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15768 michael 912 # trailing colons and then remove the whole line if VPATH becomes empty
15769     # (actually we leave an empty line to preserve line numbers).
15770     if test "x$srcdir" = x.; then
15771 michael 1095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15772     h
15773     s///
15774     s/^/:/
15775     s/[ ]*$/:/
15776     s/:\$(srcdir):/:/g
15777     s/:\${srcdir}:/:/g
15778     s/:@srcdir@:/:/g
15779     s/^:*//
15780 michael 912 s/:*$//
15781 michael 1095 x
15782     s/\(=[ ]*\).*/\1/
15783     G
15784     s/\n//
15785 michael 912 s/^[^=]*=[ ]*$//
15786     }'
15787     fi
15788    
15789 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15790 michael 912 fi # test -n "$CONFIG_FILES"
15791    
15792 db 941 # Set up the scripts for CONFIG_HEADERS section.
15793     # No need to generate them if there are no CONFIG_HEADERS.
15794     # This happens for instance with `./config.status Makefile'.
15795     if test -n "$CONFIG_HEADERS"; then
15796 michael 1106 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15797 db 941 BEGIN {
15798     _ACEOF
15799 michael 912
15800 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
15801     # here-document in config.status, that substitutes the proper values into
15802     # config.h.in to produce config.h.
15803    
15804     # Create a delimiter string that does not exist in confdefs.h, to ease
15805     # handling of long lines.
15806     ac_delim='%!_!# '
15807     for ac_last_try in false false :; do
15808 michael 1106 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15809     if test -z "$ac_tt"; then
15810 db 941 break
15811     elif $ac_last_try; then
15812 michael 1095 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15813 db 941 else
15814     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15815     fi
15816     done
15817    
15818     # For the awk script, D is an array of macro values keyed by name,
15819     # likewise P contains macro parameters if any. Preserve backslash
15820     # newline sequences.
15821    
15822     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15823     sed -n '
15824     s/.\{148\}/&'"$ac_delim"'/g
15825     t rset
15826     :rset
15827     s/^[ ]*#[ ]*define[ ][ ]*/ /
15828     t def
15829     d
15830     :def
15831     s/\\$//
15832     t bsnl
15833     s/["\\]/\\&/g
15834     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15835     D["\1"]=" \3"/p
15836     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15837     d
15838     :bsnl
15839     s/["\\]/\\&/g
15840     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15841     D["\1"]=" \3\\\\\\n"\\/p
15842     t cont
15843     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15844     t cont
15845     d
15846     :cont
15847     n
15848     s/.\{148\}/&'"$ac_delim"'/g
15849     t clear
15850     :clear
15851     s/\\$//
15852     t bsnlc
15853     s/["\\]/\\&/g; s/^/"/; s/$/"/p
15854     d
15855     :bsnlc
15856     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15857     b cont
15858     ' <confdefs.h | sed '
15859     s/'"$ac_delim"'/"\\\
15860     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15861    
15862     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863     for (key in D) D_is_set[key] = 1
15864     FS = ""
15865     }
15866     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15867     line = \$ 0
15868     split(line, arg, " ")
15869     if (arg[1] == "#") {
15870     defundef = arg[2]
15871     mac1 = arg[3]
15872     } else {
15873     defundef = substr(arg[1], 2)
15874     mac1 = arg[2]
15875     }
15876     split(mac1, mac2, "(") #)
15877     macro = mac2[1]
15878 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15879 db 941 if (D_is_set[macro]) {
15880     # Preserve the white space surrounding the "#".
15881     print prefix "define", macro P[macro] D[macro]
15882     next
15883     } else {
15884     # Replace #undef with comments. This is necessary, for example,
15885     # in the case of _POSIX_SOURCE, which is predefined and required
15886     # on some systems where configure will not decide to define it.
15887     if (defundef == "undef") {
15888 michael 942 print "/*", prefix defundef, macro, "*/"
15889 db 941 next
15890     }
15891     }
15892     }
15893     { print }
15894     _ACAWK
15895     _ACEOF
15896     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 michael 1095 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15898 db 941 fi # test -n "$CONFIG_HEADERS"
15899    
15900    
15901     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15902     shift
15903     for ac_tag
15904 michael 912 do
15905     case $ac_tag in
15906     :[FHLC]) ac_mode=$ac_tag; continue;;
15907     esac
15908     case $ac_mode$ac_tag in
15909     :[FHL]*:*);;
15910 michael 1095 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15911 michael 912 :[FH]-) ac_tag=-:-;;
15912     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15913     esac
15914     ac_save_IFS=$IFS
15915     IFS=:
15916     set x $ac_tag
15917     IFS=$ac_save_IFS
15918     shift
15919     ac_file=$1
15920     shift
15921    
15922     case $ac_mode in
15923     :L) ac_source=$1;;
15924     :[FH])
15925     ac_file_inputs=
15926     for ac_f
15927     do
15928     case $ac_f in
15929 michael 1106 -) ac_f="$ac_tmp/stdin";;
15930 michael 912 *) # Look for the file first in the build tree, then in the source tree
15931     # (if the path is not absolute). The absolute path cannot be DOS-style,
15932     # because $ac_f cannot contain `:'.
15933     test -f "$ac_f" ||
15934     case $ac_f in
15935     [\\/$]*) false;;
15936     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15937     esac ||
15938 michael 1095 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15939 michael 912 esac
15940 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15941 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15942 michael 912 done
15943    
15944     # Let's still pretend it is `configure' which instantiates (i.e., don't
15945     # use $as_me), people would be surprised to read:
15946     # /* config.h. Generated by config.status. */
15947 db 941 configure_input='Generated from '`
15948     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15949     `' by configure.'
15950 michael 912 if test x"$ac_file" != x-; then
15951     configure_input="$ac_file. $configure_input"
15952 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15953 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15954 michael 912 fi
15955 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15956     case $configure_input in #(
15957     *\&* | *\|* | *\\* )
15958     ac_sed_conf_input=`$as_echo "$configure_input" |
15959     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15960     *) ac_sed_conf_input=$configure_input;;
15961     esac
15962 michael 912
15963     case $ac_tag in
15964 michael 1106 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15965 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15966 michael 912 esac
15967     ;;
15968     esac
15969    
15970     ac_dir=`$as_dirname -- "$ac_file" ||
15971     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15972     X"$ac_file" : 'X\(//\)[^/]' \| \
15973     X"$ac_file" : 'X\(//\)$' \| \
15974     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15975 db 941 $as_echo X"$ac_file" |
15976 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15977     s//\1/
15978     q
15979     }
15980     /^X\(\/\/\)[^/].*/{
15981     s//\1/
15982     q
15983     }
15984     /^X\(\/\/\)$/{
15985     s//\1/
15986     q
15987     }
15988     /^X\(\/\).*/{
15989     s//\1/
15990     q
15991     }
15992     s/.*/./; q'`
15993 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15994 michael 912 ac_builddir=.
15995    
15996     case "$ac_dir" in
15997     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15998     *)
15999 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16000 michael 912 # A ".." for each directory in $ac_dir_suffix.
16001 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16002 michael 912 case $ac_top_builddir_sub in
16003     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16004     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16005     esac ;;
16006     esac
16007     ac_abs_top_builddir=$ac_pwd
16008     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16009     # for backward compatibility:
16010     ac_top_builddir=$ac_top_build_prefix
16011    
16012     case $srcdir in
16013     .) # We are building in place.
16014     ac_srcdir=.
16015     ac_top_srcdir=$ac_top_builddir_sub
16016     ac_abs_top_srcdir=$ac_pwd ;;
16017     [\\/]* | ?:[\\/]* ) # Absolute name.
16018     ac_srcdir=$srcdir$ac_dir_suffix;
16019     ac_top_srcdir=$srcdir
16020     ac_abs_top_srcdir=$srcdir ;;
16021     *) # Relative name.
16022     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16023     ac_top_srcdir=$ac_top_build_prefix$srcdir
16024     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16025     esac
16026     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16027    
16028    
16029     case $ac_mode in
16030     :F)
16031     #
16032     # CONFIG_FILE
16033     #
16034    
16035     case $INSTALL in
16036     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16037     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16038     esac
16039     ac_MKDIR_P=$MKDIR_P
16040     case $MKDIR_P in
16041     [\\/$]* | ?:[\\/]* ) ;;
16042     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16043     esac
16044     _ACEOF
16045    
16046 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047 michael 912 # If the template does not know about datarootdir, expand it.
16048     # FIXME: This hack should be removed a few years after 2.60.
16049     ac_datarootdir_hack=; ac_datarootdir_seen=
16050 db 941 ac_sed_dataroot='
16051     /datarootdir/ {
16052 michael 912 p
16053     q
16054     }
16055     /@datadir@/p
16056     /@docdir@/p
16057     /@infodir@/p
16058     /@localedir@/p
16059 michael 967 /@mandir@/p'
16060 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16061 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
16062     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16063 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16064 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16065 michael 912 _ACEOF
16066 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 michael 912 ac_datarootdir_hack='
16068     s&@datadir@&$datadir&g
16069     s&@docdir@&$docdir&g
16070     s&@infodir@&$infodir&g
16071     s&@localedir@&$localedir&g
16072     s&@mandir@&$mandir&g
16073 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
16074 michael 912 esac
16075     _ACEOF
16076    
16077     # Neutralize VPATH when `$srcdir' = `.'.
16078     # Shell code in configure.ac might set extrasub.
16079     # FIXME: do we really want to maintain this feature?
16080 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081     ac_sed_extra="$ac_vpsub
16082 michael 912 $extrasub
16083     _ACEOF
16084 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16085 michael 912 :t
16086     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16087 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
16088 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
16089 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16090 michael 912 s&@srcdir@&$ac_srcdir&;t t
16091     s&@abs_srcdir@&$ac_abs_srcdir&;t t
16092     s&@top_srcdir@&$ac_top_srcdir&;t t
16093     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16094     s&@builddir@&$ac_builddir&;t t
16095     s&@abs_builddir@&$ac_abs_builddir&;t t
16096     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16097     s&@INSTALL@&$ac_INSTALL&;t t
16098     s&@MKDIR_P@&$ac_MKDIR_P&;t t
16099     $ac_datarootdir_hack
16100 db 941 "
16101 michael 1106 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16102     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16103 michael 912
16104     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16105 michael 1106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16106     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16107     "$ac_tmp/out"`; test -z "$ac_out"; } &&
16108 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16109 michael 1095 which seems to be undefined. Please make sure it is defined" >&5
16110 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16111 michael 1095 which seems to be undefined. Please make sure it is defined" >&2;}
16112 michael 912
16113 michael 1106 rm -f "$ac_tmp/stdin"
16114 michael 912 case $ac_file in
16115 michael 1106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16116     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16117 db 941 esac \
16118 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16119 michael 912 ;;
16120     :H)
16121     #
16122     # CONFIG_HEADER
16123     #
16124     if test x"$ac_file" != x-; then
16125 db 941 {
16126     $as_echo "/* $configure_input */" \
16127 michael 1106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16128     } >"$ac_tmp/config.h" \
16129 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16130 michael 1106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16131 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16132 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16133 michael 912 else
16134 db 941 rm -f "$ac_file"
16135 michael 1106 mv "$ac_tmp/config.h" "$ac_file" \
16136 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16137 michael 912 fi
16138     else
16139 db 941 $as_echo "/* $configure_input */" \
16140 michael 1106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16141 michael 1095 || as_fn_error $? "could not create -" "$LINENO" 5
16142 michael 912 fi
16143 db 941 # Compute "$ac_file"'s index in $config_headers.
16144     _am_arg="$ac_file"
16145 michael 912 _am_stamp_count=1
16146     for _am_header in $config_headers :; do
16147     case $_am_header in
16148 db 941 $_am_arg | $_am_arg:* )
16149 michael 912 break ;;
16150     * )
16151     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16152     esac
16153     done
16154 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16155     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16156     X"$_am_arg" : 'X\(//\)[^/]' \| \
16157     X"$_am_arg" : 'X\(//\)$' \| \
16158     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16159     $as_echo X"$_am_arg" |
16160 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16161     s//\1/
16162     q
16163     }
16164     /^X\(\/\/\)[^/].*/{
16165     s//\1/
16166     q
16167     }
16168     /^X\(\/\/\)$/{
16169     s//\1/
16170     q
16171     }
16172     /^X\(\/\).*/{
16173     s//\1/
16174     q
16175     }
16176     s/.*/./; q'`/stamp-h$_am_stamp_count
16177     ;;
16178    
16179 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16180 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
16181 michael 912 ;;
16182     esac
16183    
16184    
16185     case $ac_file$ac_mode in
16186 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16187     # Autoconf 2.62 quotes --file arguments for eval, but not when files
16188     # are listed without --file. Let's play safe and only enable the eval
16189     # if we detect the quoting.
16190     case $CONFIG_FILES in
16191     *\'*) eval set x "$CONFIG_FILES" ;;
16192     *) set x $CONFIG_FILES ;;
16193     esac
16194     shift
16195     for mf
16196     do
16197     # Strip MF so we end up with the name of the file.
16198     mf=`echo "$mf" | sed -e 's/:.*$//'`
16199     # Check whether this is an Automake generated Makefile or not.
16200 michael 1373 # We used to match only the files named 'Makefile.in', but
16201 michael 945 # some people rename them; so instead we look at the file content.
16202     # Grep'ing the first line is not enough: some people post-process
16203     # each Makefile.in and add a new line on top of each file to say so.
16204     # Grep'ing the whole file is not good either: AIX grep has a line
16205     # limit of 2048, but all sed's we know have understand at least 4000.
16206     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16207     dirpart=`$as_dirname -- "$mf" ||
16208 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16209     X"$mf" : 'X\(//\)[^/]' \| \
16210     X"$mf" : 'X\(//\)$' \| \
16211     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16212 db 941 $as_echo X"$mf" |
16213 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16214     s//\1/
16215     q
16216     }
16217     /^X\(\/\/\)[^/].*/{
16218     s//\1/
16219     q
16220     }
16221     /^X\(\/\/\)$/{
16222     s//\1/
16223     q
16224     }
16225     /^X\(\/\).*/{
16226     s//\1/
16227     q
16228     }
16229     s/.*/./; q'`
16230 michael 945 else
16231     continue
16232     fi
16233     # Extract the definition of DEPDIR, am__include, and am__quote
16234 michael 1373 # from the Makefile without running 'make'.
16235 michael 945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16236     test -z "$DEPDIR" && continue
16237     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16238     test -z "am__include" && continue
16239     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16240     # Find all dependency output files, they are included files with
16241     # $(DEPDIR) in their names. We invoke sed twice because it is the
16242     # simplest approach to changing $(DEPDIR) to its actual value in the
16243     # expansion.
16244     for file in `sed -n "
16245     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16246 michael 1373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16247 michael 945 # Make sure the directory exists.
16248     test -f "$dirpart/$file" && continue
16249     fdir=`$as_dirname -- "$file" ||
16250 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251     X"$file" : 'X\(//\)[^/]' \| \
16252     X"$file" : 'X\(//\)$' \| \
16253     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16254 db 941 $as_echo X"$file" |
16255 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16256     s//\1/
16257     q
16258     }
16259     /^X\(\/\/\)[^/].*/{
16260     s//\1/
16261     q
16262     }
16263     /^X\(\/\/\)$/{
16264     s//\1/
16265     q
16266     }
16267     /^X\(\/\).*/{
16268     s//\1/
16269     q
16270     }
16271     s/.*/./; q'`
16272 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16273 michael 945 # echo "creating $dirpart/$file"
16274     echo '# dummy' > "$dirpart/$file"
16275     done
16276 michael 912 done
16277 michael 945 }
16278 michael 912 ;;
16279 michael 945 "libtool":C)
16280 michael 912
16281 michael 945 # See if we are running on zsh, and set the options which allow our
16282     # commands through without removal of \ escapes.
16283     if test -n "${ZSH_VERSION+set}" ; then
16284     setopt NO_GLOB_SUBST
16285     fi
16286    
16287     cfgfile="${ofile}T"
16288     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16289     $RM "$cfgfile"
16290    
16291     cat <<_LT_EOF >> "$cfgfile"
16292     #! $SHELL
16293    
16294     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16295     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16296     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16297     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16298     #
16299     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16300 michael 1257 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16301     # Foundation, Inc.
16302 michael 945 # Written by Gordon Matzigkeit, 1996
16303     #
16304     # This file is part of GNU Libtool.
16305     #
16306     # GNU Libtool is free software; you can redistribute it and/or
16307     # modify it under the terms of the GNU General Public License as
16308     # published by the Free Software Foundation; either version 2 of
16309     # the License, or (at your option) any later version.
16310     #
16311     # As a special exception to the GNU General Public License,
16312     # if you distribute this file as part of a program or library that
16313     # is built using GNU Libtool, you may include this file under the
16314     # same distribution terms that you use for the rest of that program.
16315     #
16316     # GNU Libtool is distributed in the hope that it will be useful,
16317     # but WITHOUT ANY WARRANTY; without even the implied warranty of
16318     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16319     # GNU General Public License for more details.
16320     #
16321     # You should have received a copy of the GNU General Public License
16322     # along with GNU Libtool; see the file COPYING. If not, a copy
16323     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16324     # obtained by writing to the Free Software Foundation, Inc.,
16325     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16326    
16327    
16328     # The names of the tagged configurations supported by this script.
16329     available_tags=""
16330    
16331     # ### BEGIN LIBTOOL CONFIG
16332    
16333     # Which release of libtool.m4 was used?
16334     macro_version=$macro_version
16335     macro_revision=$macro_revision
16336    
16337 michael 977 # Whether or not to build static libraries.
16338     build_old_libs=$enable_static
16339    
16340 michael 945 # Whether or not to build shared libraries.
16341     build_libtool_libs=$enable_shared
16342    
16343     # What type of objects to build.
16344     pic_mode=$pic_mode
16345    
16346     # Whether or not to optimize for fast installation.
16347     fast_install=$enable_fast_install
16348    
16349 michael 1094 # Shell to use when invoking shell scripts.
16350     SHELL=$lt_SHELL
16351    
16352     # An echo program that protects backslashes.
16353     ECHO=$lt_ECHO
16354    
16355 michael 1257 # The PATH separator for the build system.
16356     PATH_SEPARATOR=$lt_PATH_SEPARATOR
16357    
16358 michael 945 # The host system.
16359     host_alias=$host_alias
16360     host=$host
16361     host_os=$host_os
16362    
16363     # The build system.
16364     build_alias=$build_alias
16365     build=$build
16366     build_os=$build_os
16367    
16368     # A sed program that does not truncate output.
16369     SED=$lt_SED
16370    
16371     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16372     Xsed="\$SED -e 1s/^X//"
16373    
16374     # A grep program that handles long lines.
16375     GREP=$lt_GREP
16376    
16377     # An ERE matcher.
16378     EGREP=$lt_EGREP
16379    
16380     # A literal string matcher.
16381     FGREP=$lt_FGREP
16382    
16383     # A BSD- or MS-compatible name lister.
16384     NM=$lt_NM
16385    
16386     # Whether we need soft or hard links.
16387     LN_S=$lt_LN_S
16388    
16389     # What is the maximum length of a command?
16390     max_cmd_len=$max_cmd_len
16391    
16392     # Object file suffix (normally "o").
16393     objext=$ac_objext
16394    
16395     # Executable file suffix (normally "").
16396     exeext=$exeext
16397    
16398     # whether the shell understands "unset".
16399     lt_unset=$lt_unset
16400    
16401     # turn spaces into newlines.
16402     SP2NL=$lt_lt_SP2NL
16403    
16404     # turn newlines into spaces.
16405     NL2SP=$lt_lt_NL2SP
16406    
16407 michael 1106 # convert \$build file names to \$host format.
16408     to_host_file_cmd=$lt_cv_to_host_file_cmd
16409    
16410     # convert \$build files to toolchain format.
16411     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16412    
16413 michael 945 # An object symbol dumper.
16414     OBJDUMP=$lt_OBJDUMP
16415    
16416     # Method to check whether dependent libraries are shared objects.
16417     deplibs_check_method=$lt_deplibs_check_method
16418    
16419 michael 1106 # Command to use when deplibs_check_method = "file_magic".
16420 michael 945 file_magic_cmd=$lt_file_magic_cmd
16421    
16422 michael 1106 # How to find potential files when deplibs_check_method = "file_magic".
16423     file_magic_glob=$lt_file_magic_glob
16424    
16425     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16426     want_nocaseglob=$lt_want_nocaseglob
16427    
16428     # DLL creation program.
16429     DLLTOOL=$lt_DLLTOOL
16430    
16431     # Command to associate shared and link libraries.
16432     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16433    
16434 michael 945 # The archiver.
16435     AR=$lt_AR
16436 michael 1106
16437     # Flags to create an archive.
16438 michael 945 AR_FLAGS=$lt_AR_FLAGS
16439    
16440 michael 1106 # How to feed a file listing to the archiver.
16441     archiver_list_spec=$lt_archiver_list_spec
16442    
16443 michael 945 # A symbol stripping program.
16444     STRIP=$lt_STRIP
16445    
16446     # Commands used to install an old-style archive.
16447     RANLIB=$lt_RANLIB
16448     old_postinstall_cmds=$lt_old_postinstall_cmds
16449     old_postuninstall_cmds=$lt_old_postuninstall_cmds
16450    
16451 michael 1094 # Whether to use a lock for old archive extraction.
16452     lock_old_archive_extraction=$lock_old_archive_extraction
16453    
16454 michael 945 # A C compiler.
16455     LTCC=$lt_CC
16456    
16457     # LTCC compiler flags.
16458     LTCFLAGS=$lt_CFLAGS
16459    
16460     # Take the output of nm and produce a listing of raw symbols and C names.
16461     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16462    
16463     # Transform the output of nm in a proper C declaration.
16464     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16465    
16466     # Transform the output of nm in a C name address pair.
16467     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16468    
16469     # Transform the output of nm in a C name address pair when lib prefix is needed.
16470     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16471    
16472 michael 1106 # Specify filename containing input files for \$NM.
16473     nm_file_list_spec=$lt_nm_file_list_spec
16474    
16475     # The root where to search for dependent libraries,and in which our libraries should be installed.
16476     lt_sysroot=$lt_sysroot
16477    
16478 michael 945 # The name of the directory that contains temporary libtool files.
16479     objdir=$objdir
16480    
16481     # Used to examine libraries when file_magic_cmd begins with "file".
16482     MAGIC_CMD=$MAGIC_CMD
16483    
16484     # Must we lock files when doing compilation?
16485     need_locks=$lt_need_locks
16486    
16487 michael 1106 # Manifest tool.
16488     MANIFEST_TOOL=$lt_MANIFEST_TOOL
16489    
16490 michael 945 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16491     DSYMUTIL=$lt_DSYMUTIL
16492    
16493     # Tool to change global to local symbols on Mac OS X.
16494     NMEDIT=$lt_NMEDIT
16495    
16496     # Tool to manipulate fat objects and archives on Mac OS X.
16497     LIPO=$lt_LIPO
16498    
16499     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16500     OTOOL=$lt_OTOOL
16501    
16502     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16503     OTOOL64=$lt_OTOOL64
16504    
16505     # Old archive suffix (normally "a").
16506     libext=$libext
16507    
16508     # Shared library suffix (normally ".so").
16509     shrext_cmds=$lt_shrext_cmds
16510    
16511     # The commands to extract the exported symbol list from a shared archive.
16512     extract_expsyms_cmds=$lt_extract_expsyms_cmds
16513    
16514     # Variables whose values should be saved in libtool wrapper scripts and
16515     # restored at link time.
16516     variables_saved_for_relink=$lt_variables_saved_for_relink
16517    
16518     # Do we need the "lib" prefix for modules?
16519     need_lib_prefix=$need_lib_prefix
16520    
16521     # Do we need a version for libraries?
16522     need_version=$need_version
16523    
16524     # Library versioning type.
16525     version_type=$version_type
16526    
16527     # Shared library runtime path variable.
16528     runpath_var=$runpath_var
16529    
16530     # Shared library path variable.
16531     shlibpath_var=$shlibpath_var
16532    
16533     # Is shlibpath searched before the hard-coded library search path?
16534     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16535    
16536     # Format of library name prefix.
16537     libname_spec=$lt_libname_spec
16538    
16539     # List of archive names. First name is the real one, the rest are links.
16540     # The last name is the one that the linker finds with -lNAME
16541     library_names_spec=$lt_library_names_spec
16542    
16543     # The coded name of the library, if different from the real name.
16544     soname_spec=$lt_soname_spec
16545    
16546 michael 1094 # Permission mode override for installation of shared libraries.
16547     install_override_mode=$lt_install_override_mode
16548    
16549 michael 945 # Command to use after installation of a shared archive.
16550     postinstall_cmds=$lt_postinstall_cmds
16551    
16552     # Command to use after uninstallation of a shared archive.
16553     postuninstall_cmds=$lt_postuninstall_cmds
16554    
16555     # Commands used to finish a libtool library installation in a directory.
16556     finish_cmds=$lt_finish_cmds
16557    
16558     # As "finish_cmds", except a single script fragment to be evaled but
16559     # not shown.
16560     finish_eval=$lt_finish_eval
16561    
16562     # Whether we should hardcode library paths into libraries.
16563     hardcode_into_libs=$hardcode_into_libs
16564    
16565     # Compile-time system search path for libraries.
16566     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16567    
16568     # Run-time system search path for libraries.
16569     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16570    
16571     # Whether dlopen is supported.
16572     dlopen_support=$enable_dlopen
16573    
16574     # Whether dlopen of programs is supported.
16575     dlopen_self=$enable_dlopen_self
16576    
16577     # Whether dlopen of statically linked programs is supported.
16578     dlopen_self_static=$enable_dlopen_self_static
16579    
16580     # Commands to strip libraries.
16581     old_striplib=$lt_old_striplib
16582     striplib=$lt_striplib
16583    
16584    
16585     # The linker used to build libraries.
16586     LD=$lt_LD
16587    
16588 michael 1094 # How to create reloadable object files.
16589     reload_flag=$lt_reload_flag
16590     reload_cmds=$lt_reload_cmds
16591    
16592 michael 945 # Commands used to build an old-style archive.
16593     old_archive_cmds=$lt_old_archive_cmds
16594    
16595     # A language specific compiler.
16596     CC=$lt_compiler
16597    
16598     # Is the compiler the GNU compiler?
16599     with_gcc=$GCC
16600    
16601     # Compiler flag to turn off builtin functions.
16602     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16603    
16604 michael 1106 # Additional compiler flags for building library objects.
16605     pic_flag=$lt_lt_prog_compiler_pic
16606    
16607 michael 945 # How to pass a linker flag through the compiler.
16608     wl=$lt_lt_prog_compiler_wl
16609    
16610     # Compiler flag to prevent dynamic linking.
16611     link_static_flag=$lt_lt_prog_compiler_static
16612    
16613     # Does compiler simultaneously support -c and -o options?
16614     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16615    
16616     # Whether or not to add -lc for building shared libraries.
16617     build_libtool_need_lc=$archive_cmds_need_lc
16618    
16619     # Whether or not to disallow shared libs when runtime libs are static.
16620     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16621    
16622     # Compiler flag to allow reflexive dlopens.
16623     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16624    
16625     # Compiler flag to generate shared objects directly from archives.
16626     whole_archive_flag_spec=$lt_whole_archive_flag_spec
16627    
16628     # Whether the compiler copes with passing no objects directly.
16629     compiler_needs_object=$lt_compiler_needs_object
16630    
16631     # Create an old-style archive from a shared archive.
16632     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16633    
16634     # Create a temporary old-style archive to link instead of a shared archive.
16635     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16636    
16637     # Commands used to build a shared archive.
16638     archive_cmds=$lt_archive_cmds
16639     archive_expsym_cmds=$lt_archive_expsym_cmds
16640    
16641     # Commands used to build a loadable module if different from building
16642     # a shared archive.
16643     module_cmds=$lt_module_cmds
16644     module_expsym_cmds=$lt_module_expsym_cmds
16645    
16646     # Whether we are building with GNU ld or not.
16647     with_gnu_ld=$lt_with_gnu_ld
16648    
16649     # Flag that allows shared libraries with undefined symbols to be built.
16650     allow_undefined_flag=$lt_allow_undefined_flag
16651    
16652     # Flag that enforces no undefined symbols.
16653     no_undefined_flag=$lt_no_undefined_flag
16654    
16655     # Flag to hardcode \$libdir into a binary during linking.
16656     # This must work even if \$libdir does not exist
16657     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16658    
16659     # Whether we need a single "-rpath" flag with a separated argument.
16660     hardcode_libdir_separator=$lt_hardcode_libdir_separator
16661    
16662     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16663     # DIR into the resulting binary.
16664     hardcode_direct=$hardcode_direct
16665    
16666     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16667     # DIR into the resulting binary and the resulting library dependency is
16668     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16669     # library is relocated.
16670     hardcode_direct_absolute=$hardcode_direct_absolute
16671    
16672     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16673     # into the resulting binary.
16674     hardcode_minus_L=$hardcode_minus_L
16675    
16676     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16677     # into the resulting binary.
16678     hardcode_shlibpath_var=$hardcode_shlibpath_var
16679    
16680     # Set to "yes" if building a shared library automatically hardcodes DIR
16681     # into the library and all subsequent libraries and executables linked
16682     # against it.
16683     hardcode_automatic=$hardcode_automatic
16684    
16685     # Set to yes if linker adds runtime paths of dependent libraries
16686     # to runtime path list.
16687     inherit_rpath=$inherit_rpath
16688    
16689     # Whether libtool must link a program against all its dependency libraries.
16690     link_all_deplibs=$link_all_deplibs
16691    
16692     # Set to "yes" if exported symbols are required.
16693     always_export_symbols=$always_export_symbols
16694    
16695     # The commands to list exported symbols.
16696     export_symbols_cmds=$lt_export_symbols_cmds
16697    
16698     # Symbols that should not be listed in the preloaded symbols.
16699     exclude_expsyms=$lt_exclude_expsyms
16700    
16701     # Symbols that must always be exported.
16702     include_expsyms=$lt_include_expsyms
16703    
16704     # Commands necessary for linking programs (against libraries) with templates.
16705     prelink_cmds=$lt_prelink_cmds
16706    
16707 michael 1106 # Commands necessary for finishing linking programs.
16708     postlink_cmds=$lt_postlink_cmds
16709    
16710 michael 945 # Specify filename containing input files.
16711     file_list_spec=$lt_file_list_spec
16712    
16713     # How to hardcode a shared library path into an executable.
16714     hardcode_action=$hardcode_action
16715    
16716     # ### END LIBTOOL CONFIG
16717    
16718     _LT_EOF
16719    
16720     case $host_os in
16721     aix3*)
16722     cat <<\_LT_EOF >> "$cfgfile"
16723     # AIX sometimes has problems with the GCC collect2 program. For some
16724     # reason, if we set the COLLECT_NAMES environment variable, the problems
16725     # vanish in a puff of smoke.
16726     if test "X${COLLECT_NAMES+set}" != Xset; then
16727     COLLECT_NAMES=
16728     export COLLECT_NAMES
16729     fi
16730     _LT_EOF
16731     ;;
16732 michael 912 esac
16733 michael 945
16734    
16735     ltmain="$ac_aux_dir/ltmain.sh"
16736    
16737    
16738     # We use sed instead of cat because bash on DJGPP gets confused if
16739     # if finds mixed CR/LF and LF-only lines. Since sed operates in
16740     # text mode, it properly converts lines to CR/LF. This bash problem
16741     # is reportedly fixed, but why not run on old versions too?
16742 michael 1106 sed '$q' "$ltmain" >> "$cfgfile" \
16743     || (rm -f "$cfgfile"; exit 1)
16744 michael 945
16745 michael 1106 if test x"$xsi_shell" = xyes; then
16746     sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16747     func_dirname ()\
16748     {\
16749     \ case ${1} in\
16750     \ */*) func_dirname_result="${1%/*}${2}" ;;\
16751     \ * ) func_dirname_result="${3}" ;;\
16752     \ esac\
16753     } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16754     && mv -f "$cfgfile.tmp" "$cfgfile" \
16755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16756     test 0 -eq $? || _lt_function_replace_fail=:
16757 michael 945
16758    
16759 michael 1106 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16760     func_basename ()\
16761     {\
16762     \ func_basename_result="${1##*/}"\
16763     } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16764     && mv -f "$cfgfile.tmp" "$cfgfile" \
16765     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16766     test 0 -eq $? || _lt_function_replace_fail=:
16767 michael 945
16768    
16769 michael 1106 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16770     func_dirname_and_basename ()\
16771     {\
16772     \ case ${1} in\
16773     \ */*) func_dirname_result="${1%/*}${2}" ;;\
16774     \ * ) func_dirname_result="${3}" ;;\
16775     \ esac\
16776     \ func_basename_result="${1##*/}"\
16777     } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16778     && mv -f "$cfgfile.tmp" "$cfgfile" \
16779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780     test 0 -eq $? || _lt_function_replace_fail=:
16781 michael 945
16782    
16783 michael 1106 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16784     func_stripname ()\
16785     {\
16786     \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16787     \ # positional parameters, so assign one to ordinary parameter first.\
16788     \ func_stripname_result=${3}\
16789     \ func_stripname_result=${func_stripname_result#"${1}"}\
16790     \ func_stripname_result=${func_stripname_result%"${2}"}\
16791     } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16792     && mv -f "$cfgfile.tmp" "$cfgfile" \
16793     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16794     test 0 -eq $? || _lt_function_replace_fail=:
16795 michael 945
16796    
16797 michael 1106 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16798     func_split_long_opt ()\
16799     {\
16800     \ func_split_long_opt_name=${1%%=*}\
16801     \ func_split_long_opt_arg=${1#*=}\
16802     } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16803     && mv -f "$cfgfile.tmp" "$cfgfile" \
16804     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16805     test 0 -eq $? || _lt_function_replace_fail=:
16806 michael 945
16807    
16808 michael 1106 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16809     func_split_short_opt ()\
16810     {\
16811     \ func_split_short_opt_arg=${1#??}\
16812     \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16813     } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16814     && mv -f "$cfgfile.tmp" "$cfgfile" \
16815     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16816     test 0 -eq $? || _lt_function_replace_fail=:
16817 michael 945
16818    
16819 michael 1106 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16820     func_lo2o ()\
16821     {\
16822     \ case ${1} in\
16823     \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16824     \ *) func_lo2o_result=${1} ;;\
16825     \ esac\
16826     } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16827     && mv -f "$cfgfile.tmp" "$cfgfile" \
16828     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16829     test 0 -eq $? || _lt_function_replace_fail=:
16830 michael 945
16831    
16832 michael 1106 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16833     func_xform ()\
16834     {\
16835     func_xform_result=${1%.*}.lo\
16836     } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16837     && mv -f "$cfgfile.tmp" "$cfgfile" \
16838     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16839     test 0 -eq $? || _lt_function_replace_fail=:
16840 michael 945
16841    
16842 michael 1106 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16843     func_arith ()\
16844     {\
16845     func_arith_result=$(( $* ))\
16846     } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16847     && mv -f "$cfgfile.tmp" "$cfgfile" \
16848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16849     test 0 -eq $? || _lt_function_replace_fail=:
16850 michael 945
16851    
16852 michael 1106 sed -e '/^func_len ()$/,/^} # func_len /c\
16853     func_len ()\
16854     {\
16855     func_len_result=${#1}\
16856     } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16857     && mv -f "$cfgfile.tmp" "$cfgfile" \
16858     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16859     test 0 -eq $? || _lt_function_replace_fail=:
16860 michael 945
16861 michael 1106 fi
16862 michael 945
16863 michael 1106 if test x"$lt_shell_append" = xyes; then
16864     sed -e '/^func_append ()$/,/^} # func_append /c\
16865     func_append ()\
16866     {\
16867     eval "${1}+=\\${2}"\
16868     } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16869     && mv -f "$cfgfile.tmp" "$cfgfile" \
16870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16871     test 0 -eq $? || _lt_function_replace_fail=:
16872 michael 945
16873    
16874 michael 1106 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16875     func_append_quoted ()\
16876     {\
16877     \ func_quote_for_eval "${2}"\
16878     \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16879     } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16880     && mv -f "$cfgfile.tmp" "$cfgfile" \
16881     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16882     test 0 -eq $? || _lt_function_replace_fail=:
16883 michael 945
16884    
16885 michael 1106 # Save a `func_append' function call where possible by direct use of '+='
16886     sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16887     && mv -f "$cfgfile.tmp" "$cfgfile" \
16888     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16889     test 0 -eq $? || _lt_function_replace_fail=:
16890     else
16891     # Save a `func_append' function call even when '+=' is not available
16892     sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16893     && mv -f "$cfgfile.tmp" "$cfgfile" \
16894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16895     test 0 -eq $? || _lt_function_replace_fail=:
16896     fi
16897 michael 945
16898 michael 1106 if test x"$_lt_function_replace_fail" = x":"; then
16899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16900     $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16901     fi
16902 michael 945
16903    
16904 michael 1106 mv -f "$cfgfile" "$ofile" ||
16905 michael 945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16906     chmod +x "$ofile"
16907    
16908     ;;
16909    
16910     esac
16911 michael 912 done # for ac_tag
16912    
16913    
16914 michael 967 as_fn_exit 0
16915 michael 912 _ACEOF
16916     ac_clean_files=$ac_clean_files_save
16917    
16918 db 941 test $ac_write_fail = 0 ||
16919 michael 1095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16920 michael 912
16921 db 941
16922 michael 912 # configure is writing to config.log, and then calls config.status.
16923     # config.status does its own redirection, appending to config.log.
16924     # Unfortunately, on DOS this fails, as config.log is still kept open
16925     # by configure, so config.status won't be able to write to it; its
16926     # output is simply discarded. So we exec the FD to /dev/null,
16927     # effectively closing config.log, so it can be properly (re)opened and
16928     # appended to by config.status. When coming back to configure, we
16929     # need to make the FD available again.
16930     if test "$no_create" != yes; then
16931     ac_cs_success=:
16932     ac_config_status_args=
16933     test "$silent" = yes &&
16934     ac_config_status_args="$ac_config_status_args --quiet"
16935     exec 5>/dev/null
16936     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16937     exec 5>>config.log
16938     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16939     # would make configure fail if this is the last instruction.
16940 michael 1095 $ac_cs_success || as_fn_exit 1
16941 michael 912 fi
16942 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16943 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16944 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16945 db 941 fi
16946 michael 912

Properties

Name Value
svn:executable *