ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5333
Committed: Wed Jan 7 20:45:06 2015 UTC (11 years, 6 months ago) by michael
File size: 442015 byte(s)
Log Message:
- Move malloc.c to memory.c

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2 michael 5333 # From configure.ac Id: configure.ac 5314 2015-01-06 13:27:34Z michael .
3 michael 5052 # Guess values for system-dependent variables and create Makefiles.
4 michael 5266 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 michael 5052 #
6 michael 5266 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 5059 #
8 michael 5266 #
9 michael 5059 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10     #
11     #
12 michael 5052 # This configure script is free software; the Free Software Foundation
13     # gives unlimited permission to copy, distribute and modify it.
14 michael 5059 ## -------------------- ##
15     ## M4sh Initialization. ##
16     ## -------------------- ##
17 michael 5052
18 michael 5059 # Be more Bourne compatible
19     DUALCASE=1; export DUALCASE # for MKS sh
20     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 michael 5052 emulate sh
22     NULLCMD=:
23 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 michael 5052 # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27     else
28 michael 5059 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33     esac
34 michael 5052 fi
35    
36    
37 michael 5059 as_nl='
38     '
39     export as_nl
40     # Printing a long string crashes Solaris 7 /usr/bin/printf.
41     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44     # Prefer a ksh shell builtin over an external printf program on Solaris,
45     # but without wasting forks for bash or zsh.
46     if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='print -r --'
49     as_echo_n='print -rn --'
50     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51     as_echo='printf %s\n'
52     as_echo_n='printf %s'
53     else
54     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57 michael 5052 else
58 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60     arg=$1;
61     case $arg in #(
62     *"$as_nl"*)
63     expr "X$arg" : "X\\(.*\\)$as_nl";
64     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65     esac;
66     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70 michael 5052 fi
71 michael 5059 export as_echo_body
72     as_echo='sh -c $as_echo_body as_echo'
73 michael 5052 fi
74    
75 michael 5059 # 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 michael 5052 fi
83    
84    
85     # IFS
86     # We need space, tab and new line, in precisely that order. Quoting is
87     # there to prevent editors from complaining about space-tab.
88     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89     # splitting by setting IFS to empty value.)
90     IFS=" "" $as_nl"
91    
92     # Find who we are. Look in the path if we contain no directory separator.
93 michael 5059 as_myself=
94     case $0 in #((
95 michael 5052 *[\\/]* ) 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 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102     done
103 michael 5052 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 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114     exit 1
115 michael 5052 fi
116    
117 michael 5059 # 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 5052 done
125     PS1='$ '
126     PS2='> '
127     PS4='+ '
128    
129     # NLS nuisances.
130 michael 5059 LC_ALL=C
131     export LC_ALL
132     LANGUAGE=C
133     export LANGUAGE
134 michael 5052
135     # CDPATH.
136 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 michael 5052
138 michael 5059 # 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 5052 if test "x$CONFIG_SHELL" = x; then
164 michael 5059 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 5052 else
172 michael 5059 case \`(set -o) 2>/dev/null\` in #(
173     *posix*) :
174     set -o posix ;; #(
175     *) :
176     ;;
177     esac
178 michael 5052 fi
179 michael 5059 "
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 5052
186     exitcode=0
187 michael 5059 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 5052
193     else
194 michael 5059 exitcode=1; echo positional parameters were not saved.
195 michael 5052 fi
196 michael 5059 test x\$exitcode = x0 || exit 1
197     test -x / || exit 1"
198     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 michael 5052
203 michael 5059 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210     test \$(( 1 + 1 )) = 2 || exit 1"
211     if (eval "$as_required") 2>/dev/null; then :
212     as_have_required=yes
213 michael 5052 else
214 michael 5059 as_have_required=no
215 michael 5052 fi
216 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 michael 5052
218     else
219 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220     as_found=false
221     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 michael 5052 do
223     IFS=$as_save_IFS
224     test -z "$as_dir" && as_dir=.
225 michael 5059 as_found=:
226     case $as_dir in #(
227 michael 5052 /*)
228     for as_base in sh bash ksh sh5; do
229 michael 5059 # 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 5052 done;;
239     esac
240 michael 5059 as_found=false
241 michael 5052 done
242 michael 5059 $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 5052 IFS=$as_save_IFS
247    
248    
249 michael 5059 if test "x$CONFIG_SHELL" != x; then :
250     export CONFIG_SHELL
251     # We cannot yet assume a decent shell, so we have to provide a
252     # neutralization value for shells without unset; and this also
253     # works around shells that cannot unset nonexistent variables.
254     # Preserve -v and -x to the replacement shell.
255     BASH_ENV=/dev/null
256     ENV=/dev/null
257     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258     case $- in # ((((
259     *v*x* | *x*v* ) as_opts=-vx ;;
260     *v* ) as_opts=-v ;;
261     *x* ) as_opts=-x ;;
262     * ) as_opts= ;;
263     esac
264     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265     # Admittedly, this is quite paranoid, since all the known shells bail
266     # out after a failed `exec'.
267     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268     exit 255
269 michael 5052 fi
270    
271 michael 5059 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 5266 $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 5059 fi
284     exit 1
285 michael 5052 fi
286     fi
287     fi
288 michael 5059 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 5052
294 michael 5059 ## --------------------- ##
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 5052
306 michael 5059 # 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 5052
314 michael 5059 # 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 5052
324 michael 5059 # as_fn_mkdir_p
325     # -------------
326     # Create "$as_dir" as a directory, including parents if necessary.
327     as_fn_mkdir_p ()
328     {
329 michael 5052
330 michael 5059 case $as_dir in #(
331     -*) as_dir=./$as_dir;;
332     esac
333     test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336     case $as_dir in #(
337     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338     *) as_qdir=$as_dir;;
339     esac
340     as_dirs="'$as_qdir' $as_dirs"
341     as_dir=`$as_dirname -- "$as_dir" ||
342     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343     X"$as_dir" : 'X\(//\)[^/]' \| \
344     X"$as_dir" : 'X\(//\)$' \| \
345     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346     $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)[^/].*/{
352     s//\1/
353     q
354     }
355     /^X\(\/\/\)$/{
356     s//\1/
357     q
358     }
359     /^X\(\/\).*/{
360     s//\1/
361     q
362     }
363     s/.*/./; q'`
364     test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 michael 5052
369    
370 michael 5059 } # as_fn_mkdir_p
371 michael 5052
372 michael 5059 # as_fn_executable_p FILE
373     # -----------------------
374     # Test if FILE is an executable regular file.
375     as_fn_executable_p ()
376     {
377     test -f "$1" && test -x "$1"
378     } # as_fn_executable_p
379     # as_fn_append VAR VALUE
380     # ----------------------
381     # Append the text in VALUE to the end of the definition contained in VAR. Take
382     # advantage of any shell optimizations that allow amortized linear growth over
383     # repeated appends, instead of the typical quadratic growth present in naive
384     # implementations.
385     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386     eval 'as_fn_append ()
387     {
388     eval $1+=\$2
389     }'
390     else
391     as_fn_append ()
392     {
393     eval $1=\$$1\$2
394     }
395     fi # as_fn_append
396 michael 5052
397 michael 5059 # 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 5052
414    
415 michael 5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416     # ----------------------------------------
417     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419     # script with STATUS, using 1 if that was 0.
420     as_fn_error ()
421     {
422     as_status=$1; test $as_status -eq 0 && as_status=1
423     if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426     fi
427     $as_echo "$as_me: error: $2" >&2
428     as_fn_exit $as_status
429     } # as_fn_error
430 michael 5052
431 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
432     test "X`expr 00001 : '.*\(...\)'`" = X001; then
433     as_expr=expr
434 michael 5052 else
435 michael 5059 as_expr=false
436 michael 5052 fi
437    
438 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439     as_basename=basename
440 michael 5052 else
441 michael 5059 as_basename=false
442 michael 5052 fi
443    
444 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445     as_dirname=dirname
446 michael 5052 else
447 michael 5059 as_dirname=false
448 michael 5052 fi
449    
450 michael 5059 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 5052
469 michael 5059 # 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 5052
476    
477 michael 5059 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 5052 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 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 michael 5052
500 michael 5059 # 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 5052 # 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 5059 case `echo -n x` in #(((((
514 michael 5052 -n*)
515 michael 5059 case `echo 'xy\c'` in
516 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 michael 5059 xy) ECHO_C='\c';;
518     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519     ECHO_T=' ';;
520 michael 5052 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 michael 5059 mkdir conf$$.dir 2>/dev/null
531 michael 5052 fi
532 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
533     if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540     as_ln_s='cp -pR'
541     elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543     else
544     as_ln_s='cp -pR'
545     fi
546 michael 5052 else
547 michael 5059 as_ln_s='cp -pR'
548 michael 5052 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 5059 as_mkdir_p='mkdir -p "$as_dir"'
554 michael 5052 else
555     test -d ./-p && rmdir ./-p
556     as_mkdir_p=false
557     fi
558    
559 michael 5059 as_test_x='test -x'
560     as_executable_p=as_fn_executable_p
561 michael 5052
562     # Sed expression to map a string onto a valid CPP name.
563     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564    
565     # Sed expression to map a string onto a valid variable name.
566     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567    
568     SHELL=${CONFIG_SHELL-/bin/sh}
569    
570    
571 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
572     exec 6>&1
573 michael 5052
574     # Name of the host.
575 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 michael 5052 # so uname gets run too.
577     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578    
579     #
580     # Initializations.
581     #
582     ac_default_prefix=/usr/local
583     ac_clean_files=
584     ac_config_libobj_dir=.
585     LIBOBJS=
586     cross_compiling=no
587     subdirs=
588     MFLAGS=
589     MAKEFLAGS=
590    
591     # Identity of this package.
592 michael 5061 PACKAGE_NAME='hopm'
593     PACKAGE_TARNAME='hopm'
594 michael 5266 PACKAGE_VERSION='TRUNK'
595     PACKAGE_STRING='hopm TRUNK'
596     PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 michael 5059 PACKAGE_URL=''
598 michael 5052
599     ac_unique_file="src/opercmd.h"
600 michael 5061 ac_default_prefix=\${HOME}/hopm
601 michael 5052 # Factoring default headers for most tests.
602     ac_includes_default="\
603     #include <stdio.h>
604 michael 5059 #ifdef HAVE_SYS_TYPES_H
605 michael 5052 # include <sys/types.h>
606     #endif
607 michael 5059 #ifdef HAVE_SYS_STAT_H
608 michael 5052 # include <sys/stat.h>
609     #endif
610 michael 5059 #ifdef STDC_HEADERS
611 michael 5052 # include <stdlib.h>
612     # include <stddef.h>
613     #else
614 michael 5059 # ifdef HAVE_STDLIB_H
615 michael 5052 # include <stdlib.h>
616     # endif
617     #endif
618 michael 5059 #ifdef HAVE_STRING_H
619     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 michael 5052 # include <memory.h>
621     # endif
622     # include <string.h>
623     #endif
624 michael 5059 #ifdef HAVE_STRINGS_H
625 michael 5052 # include <strings.h>
626     #endif
627 michael 5059 #ifdef HAVE_INTTYPES_H
628 michael 5052 # include <inttypes.h>
629     #endif
630 michael 5059 #ifdef HAVE_STDINT_H
631 michael 5052 # include <stdint.h>
632     #endif
633 michael 5059 #ifdef HAVE_UNISTD_H
634 michael 5052 # include <unistd.h>
635     #endif"
636    
637 michael 5059 ac_subst_vars='am__EXEEXT_FALSE
638     am__EXEEXT_TRUE
639     LTLIBOBJS
640 michael 5052 LIBOBJS
641     LEXLIB
642     LEX_OUTPUT_ROOT
643 michael 5059 LEX
644     YFLAGS
645     YACC
646     CPP
647     OTOOL64
648     OTOOL
649     LIPO
650     NMEDIT
651     DSYMUTIL
652     MANIFEST_TOOL
653     RANLIB
654     ac_ct_AR
655     AR
656     DLLTOOL
657     OBJDUMP
658     LN_S
659     NM
660     ac_ct_DUMPBIN
661     DUMPBIN
662     LD
663     FGREP
664     EGREP
665     GREP
666     SED
667     host_os
668     host_vendor
669     host_cpu
670     host
671     build_os
672     build_vendor
673     build_cpu
674     build
675     LIBTOOL
676     am__fastdepCC_FALSE
677     am__fastdepCC_TRUE
678     CCDEPMODE
679     am__nodep
680     AMDEPBACKSLASH
681     AMDEP_FALSE
682     AMDEP_TRUE
683     am__quote
684     am__include
685     DEPDIR
686     OBJEXT
687     EXEEXT
688     ac_ct_CC
689     CPPFLAGS
690     LDFLAGS
691     CFLAGS
692     CC
693     MAINT
694     MAINTAINER_MODE_FALSE
695     MAINTAINER_MODE_TRUE
696     AM_BACKSLASH
697     AM_DEFAULT_VERBOSITY
698     AM_DEFAULT_V
699     AM_V
700     am__untar
701     am__tar
702     AMTAR
703     am__leading_dot
704     SET_MAKE
705     AWK
706     mkdir_p
707     MKDIR_P
708     INSTALL_STRIP_PROGRAM
709     STRIP
710     install_sh
711     MAKEINFO
712     AUTOHEADER
713     AUTOMAKE
714     AUTOCONF
715     ACLOCAL
716     VERSION
717     PACKAGE
718     CYGPATH_W
719     am__isrc
720     INSTALL_DATA
721     INSTALL_SCRIPT
722     INSTALL_PROGRAM
723     target_alias
724     host_alias
725     build_alias
726     LIBS
727     ECHO_T
728     ECHO_N
729     ECHO_C
730     DEFS
731     mandir
732     localedir
733     libdir
734     psdir
735     pdfdir
736     dvidir
737     htmldir
738     infodir
739     docdir
740     oldincludedir
741     includedir
742     localstatedir
743     sharedstatedir
744     sysconfdir
745     datadir
746     datarootdir
747     libexecdir
748     sbindir
749     bindir
750     program_transform_name
751     prefix
752     exec_prefix
753     PACKAGE_URL
754     PACKAGE_BUGREPORT
755     PACKAGE_STRING
756     PACKAGE_VERSION
757     PACKAGE_TARNAME
758     PACKAGE_NAME
759     PATH_SEPARATOR
760     SHELL'
761 michael 5052 ac_subst_files=''
762 michael 5059 ac_user_opts='
763     enable_option_checking
764     enable_silent_rules
765     enable_maintainer_mode
766     enable_dependency_tracking
767     enable_shared
768     enable_static
769     with_pic
770     enable_fast_install
771     with_aix_soname
772     with_gnu_ld
773     with_sysroot
774     enable_libtool_lock
775     '
776 michael 5052 ac_precious_vars='build_alias
777     host_alias
778     target_alias
779     CC
780     CFLAGS
781     LDFLAGS
782 michael 5059 LIBS
783 michael 5052 CPPFLAGS
784     CPP
785     YACC
786     YFLAGS'
787    
788 michael 5260
789 michael 5052 # Initialize some variables set by options.
790     ac_init_help=
791     ac_init_version=false
792 michael 5059 ac_unrecognized_opts=
793     ac_unrecognized_sep=
794 michael 5052 # The variables have the same names as the options, with
795     # dashes changed to underlines.
796     cache_file=/dev/null
797     exec_prefix=NONE
798     no_create=
799     no_recursion=
800     prefix=NONE
801     program_prefix=NONE
802     program_suffix=NONE
803     program_transform_name=s,x,x,
804     silent=
805     site=
806     srcdir=
807     verbose=
808     x_includes=NONE
809     x_libraries=NONE
810    
811     # Installation directory options.
812     # These are left unexpanded so users can "make install exec_prefix=/foo"
813     # and all the variables that are supposed to be based on exec_prefix
814     # by default will actually change.
815     # Use braces instead of parens because sh, perl, etc. also accept them.
816     # (The list follows the same order as the GNU Coding Standards.)
817     bindir='${exec_prefix}/bin'
818     sbindir='${exec_prefix}/sbin'
819     libexecdir='${exec_prefix}/libexec'
820     datarootdir='${prefix}/share'
821     datadir='${datarootdir}'
822     sysconfdir='${prefix}/etc'
823     sharedstatedir='${prefix}/com'
824     localstatedir='${prefix}/var'
825     includedir='${prefix}/include'
826     oldincludedir='/usr/include'
827     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828     infodir='${datarootdir}/info'
829     htmldir='${docdir}'
830     dvidir='${docdir}'
831     pdfdir='${docdir}'
832     psdir='${docdir}'
833     libdir='${exec_prefix}/lib'
834     localedir='${datarootdir}/locale'
835     mandir='${datarootdir}/man'
836    
837     ac_prev=
838     ac_dashdash=
839     for ac_option
840     do
841     # If the previous option needs an argument, assign it.
842     if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846     fi
847    
848     case $ac_option in
849 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850     *=) ac_optarg= ;;
851     *) ac_optarg=yes ;;
852 michael 5052 esac
853    
854     # Accept the important Cygnus configure options, so we can diagnose typos.
855    
856     case $ac_dashdash$ac_option in
857     --)
858     ac_dashdash=yes ;;
859    
860     -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864    
865     -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869    
870     -cache-file | --cache-file | --cache-fil | --cache-fi \
871     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876    
877     --config-cache | -C)
878     cache_file=config.cache ;;
879    
880     -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882     -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884    
885     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886     | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891    
892     -disable-* | --disable-*)
893 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 michael 5052 # Reject names that are not valid shell variable names.
895 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896     as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900     *"
901     "enable_$ac_useropt"
902     "*) ;;
903     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904     ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907 michael 5052
908     -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912    
913     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917    
918     -enable-* | --enable-*)
919 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 michael 5052 # Reject names that are not valid shell variable names.
921 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922     as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926     *"
927     "enable_$ac_useropt"
928     "*) ;;
929     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930     ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933 michael 5052
934     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936     | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940     | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942    
943     -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946    
947     -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953    
954     -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956     -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958    
959     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962     | --ht=*)
963     htmldir=$ac_optarg ;;
964    
965     -includedir | --includedir | --includedi | --included | --include \
966     | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969     | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971    
972     -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976    
977     -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979     -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981    
982     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983     | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986     | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988    
989     -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993    
994     -localstatedir | --localstatedir | --localstatedi | --localstated \
995     | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000    
1001     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005    
1006     -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009    
1010     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011     | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013    
1014     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017    
1018     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020     | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026    
1027     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031    
1032     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033     | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038    
1039     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040     | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045    
1046     -program-transform-name | --program-transform-name \
1047     | --program-transform-nam | --program-transform-na \
1048     | --program-transform-n | --program-transform- \
1049     | --program-transform | --program-transfor \
1050     | --program-transfo | --program-transf \
1051     | --program-trans | --program-tran \
1052     | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054     -program-transform-name=* | --program-transform-name=* \
1055     | --program-transform-nam=* | --program-transform-na=* \
1056     | --program-transform-n=* | --program-transform-=* \
1057     | --program-transform=* | --program-transfor=* \
1058     | --program-transfo=* | --program-transf=* \
1059     | --program-trans=* | --program-tran=* \
1060     | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062    
1063     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067    
1068     -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072    
1073     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074     | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076    
1077     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080     | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082    
1083     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085     | --sharedst | --shareds | --shared | --share | --shar \
1086     | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091     | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093    
1094     -site | --site | --sit)
1095     ac_prev=site ;;
1096     -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098    
1099     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103    
1104     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105     | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110    
1111     -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115    
1116     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118    
1119     -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121    
1122     -with-* | --with-*)
1123 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 michael 5052 # Reject names that are not valid shell variable names.
1125 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126     as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130     *"
1131     "with_$ac_useropt"
1132     "*) ;;
1133     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134     ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137 michael 5052
1138     -without-* | --without-*)
1139 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 michael 5052 # Reject names that are not valid shell variable names.
1141 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142     as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146     *"
1147     "with_$ac_useropt"
1148     "*) ;;
1149     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150     ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153 michael 5052
1154     --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157    
1158     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159     | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164    
1165     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171    
1172 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173     Try \`$0 --help' for more information"
1174 michael 5052 ;;
1175    
1176     *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179 michael 5059 case $ac_envvar in #(
1180     '' | [0-9]* | *[!_$as_cr_alnum]* )
1181     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183 michael 5052 eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185    
1186     *)
1187     # FIXME: should be removed in autoconf 3.0.
1188 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 michael 5052 ;;
1193    
1194     esac
1195     done
1196    
1197     if test -n "$ac_prev"; then
1198     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 michael 5059 as_fn_error $? "missing argument to $ac_option"
1200 michael 5052 fi
1201    
1202 michael 5059 if test -n "$ac_unrecognized_opts"; then
1203     case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207     esac
1208     fi
1209    
1210     # Check all directory arguments for consistency.
1211 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212     datadir sysconfdir sharedstatedir localstatedir includedir \
1213     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214     libdir localedir mandir
1215     do
1216     eval ac_val=\$$ac_var
1217 michael 5059 # Remove trailing slashes.
1218 michael 5052 case $ac_val in
1219 michael 5059 */ )
1220     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221     eval $ac_var=\$ac_val;;
1222     esac
1223     # Be sure to have absolute directory names.
1224     case $ac_val in
1225 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227     esac
1228 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 michael 5052 done
1230    
1231     # There might be people who depend on the old broken behavior: `$host'
1232     # used to hold the argument of --host etc.
1233     # FIXME: To remove some day.
1234     build=$build_alias
1235     host=$host_alias
1236     target=$target_alias
1237    
1238     # FIXME: To remove some day.
1239     if test "x$host_alias" != x; then
1240     if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242     elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244     fi
1245     fi
1246    
1247     ac_tool_prefix=
1248     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249    
1250     test "$silent" = yes && exec 6>/dev/null
1251    
1252    
1253     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254     ac_ls_di=`ls -di .` &&
1255     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 michael 5059 as_fn_error $? "working directory cannot be determined"
1257 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1259 michael 5052
1260    
1261     # Find the source files, if location was not specified.
1262     if test -z "$srcdir"; then
1263     ac_srcdir_defaulted=yes
1264     # Try the directory containing this script, then the parent directory.
1265 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1266     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267     X"$as_myself" : 'X\(//\)[^/]' \| \
1268     X"$as_myself" : 'X\(//\)$' \| \
1269     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270     $as_echo X"$as_myself" |
1271 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272     s//\1/
1273     q
1274     }
1275     /^X\(\/\/\)[^/].*/{
1276     s//\1/
1277     q
1278     }
1279     /^X\(\/\/\)$/{
1280     s//\1/
1281     q
1282     }
1283     /^X\(\/\).*/{
1284     s//\1/
1285     q
1286     }
1287     s/.*/./; q'`
1288     srcdir=$ac_confdir
1289     if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291     fi
1292     else
1293     ac_srcdir_defaulted=no
1294     fi
1295     if test ! -r "$srcdir/$ac_unique_file"; then
1296     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 michael 5052 fi
1299     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300     ac_abs_confdir=`(
1301 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 michael 5052 pwd)`
1303     # When building in place, set srcdir=.
1304     if test "$ac_abs_confdir" = "$ac_pwd"; then
1305     srcdir=.
1306     fi
1307     # Remove unnecessary trailing slashes from srcdir.
1308     # Double slashes in file names in object file debugging info
1309     # mess up M-x gdb in Emacs.
1310     case $srcdir in
1311     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312     esac
1313     for ac_var in $ac_precious_vars; do
1314     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315     eval ac_env_${ac_var}_value=\$${ac_var}
1316     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318     done
1319    
1320     #
1321     # Report the --help message.
1322     #
1323     if test "$ac_init_help" = "long"; then
1324     # Omit some internal or obsolete options to make the list less imposing.
1325     # This message is too long to be a string in the A/UX 3.1 sh.
1326     cat <<_ACEOF
1327 michael 5266 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1328 michael 5052
1329     Usage: $0 [OPTION]... [VAR=VALUE]...
1330    
1331     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332     VAR=VALUE. See below for descriptions of some of the useful variables.
1333    
1334     Defaults for the options are specified in brackets.
1335    
1336     Configuration:
1337     -h, --help display this help and exit
1338     --help=short display options specific to this package
1339     --help=recursive display the short help of all the included packages
1340     -V, --version display version information and exit
1341 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1342 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1343     -C, --config-cache alias for \`--cache-file=config.cache'
1344     -n, --no-create do not create output files
1345     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346    
1347     Installation directories:
1348     --prefix=PREFIX install architecture-independent files in PREFIX
1349 michael 5059 [$ac_default_prefix]
1350 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 michael 5059 [PREFIX]
1352 michael 5052
1353     By default, \`make install' will install all the files in
1354     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356     for instance \`--prefix=\$HOME'.
1357    
1358     For better control, use the options below.
1359    
1360     Fine tuning of the installation directories:
1361 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1362     --sbindir=DIR system admin executables [EPREFIX/sbin]
1363     --libexecdir=DIR program executables [EPREFIX/libexec]
1364     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367     --libdir=DIR object code libraries [EPREFIX/lib]
1368     --includedir=DIR C header files [PREFIX/include]
1369     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372     --infodir=DIR info documentation [DATAROOTDIR/info]
1373     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374     --mandir=DIR man documentation [DATAROOTDIR/man]
1375 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1376 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1377     --dvidir=DIR dvi documentation [DOCDIR]
1378     --pdfdir=DIR pdf documentation [DOCDIR]
1379     --psdir=DIR ps documentation [DOCDIR]
1380 michael 5052 _ACEOF
1381    
1382     cat <<\_ACEOF
1383    
1384     Program names:
1385     --program-prefix=PREFIX prepend PREFIX to installed program names
1386     --program-suffix=SUFFIX append SUFFIX to installed program names
1387     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388    
1389     System types:
1390     --build=BUILD configure for building on BUILD [guessed]
1391     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392     _ACEOF
1393     fi
1394    
1395     if test -n "$ac_init_help"; then
1396     case $ac_init_help in
1397 michael 5266 short | recursive ) echo "Configuration of hopm TRUNK:";;
1398 michael 5052 esac
1399     cat <<\_ACEOF
1400    
1401     Optional Features:
1402 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1403 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1406     --disable-silent-rules verbose build output (undo: "make V=0")
1407     --enable-maintainer-mode
1408     enable make rules and dependencies not useful (and
1409     sometimes confusing) to the casual installer
1410     --enable-dependency-tracking
1411     do not reject slow dependency extractors
1412     --disable-dependency-tracking
1413     speeds up one-time build
1414 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1415     --enable-static[=PKGS] build static libraries [default=yes]
1416     --enable-fast-install[=PKGS]
1417     optimize for fast installation [default=yes]
1418     --disable-libtool-lock avoid locking (might break parallel builds)
1419    
1420     Optional Packages:
1421     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424     both]
1425     --with-aix-soname=aix|svr4|both
1426     shared library versioning (aka "SONAME") variant to
1427     provide on AIX, [default=aix].
1428 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430     compiler's sysroot if not specified).
1431 michael 5052
1432     Some influential environment variables:
1433     CC C compiler command
1434     CFLAGS C compiler flags
1435     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436     nonstandard directory <lib dir>
1437 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1438     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 michael 5052 you have headers in a nonstandard directory <include dir>
1440     CPP C preprocessor
1441 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1442     Defaults to the first program found out of: `bison -y', `byacc',
1443     `yacc'.
1444 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1445     This script will default YFLAGS to the empty string to avoid a
1446     default value of `-d' given by some make applications.
1447    
1448     Use these variables to override the choices made by `configure' or to help
1449     it to find libraries and programs with nonstandard names/locations.
1450    
1451 michael 5266 Report bugs to <bugs@ircd-hybrid.org>.
1452 michael 5052 _ACEOF
1453     ac_status=$?
1454     fi
1455    
1456     if test "$ac_init_help" = "recursive"; then
1457     # If there are subdirs, report their specific --help.
1458     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 michael 5059 test -d "$ac_dir" ||
1460     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461     continue
1462 michael 5052 ac_builddir=.
1463    
1464     case "$ac_dir" in
1465     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466     *)
1467 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1469 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 michael 5052 case $ac_top_builddir_sub in
1471     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473     esac ;;
1474     esac
1475     ac_abs_top_builddir=$ac_pwd
1476     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477     # for backward compatibility:
1478     ac_top_builddir=$ac_top_build_prefix
1479    
1480     case $srcdir in
1481     .) # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485     [\\/]* | ?:[\\/]* ) # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489     *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493     esac
1494     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495    
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499     echo &&
1500     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502     echo &&
1503     $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 michael 5052 fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508     done
1509     fi
1510    
1511     test -n "$ac_init_help" && exit $ac_status
1512     if $ac_init_version; then
1513     cat <<\_ACEOF
1514 michael 5266 hopm configure TRUNK
1515 michael 5059 generated by GNU Autoconf 2.69
1516 michael 5052
1517 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1518 michael 5052 This configure script is free software; the Free Software Foundation
1519     gives unlimited permission to copy, distribute and modify it.
1520     _ACEOF
1521     exit
1522     fi
1523 michael 5059
1524     ## ------------------------ ##
1525     ## Autoconf initialization. ##
1526     ## ------------------------ ##
1527    
1528     # ac_fn_c_try_compile LINENO
1529     # --------------------------
1530     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531     ac_fn_c_try_compile ()
1532     {
1533     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534     rm -f conftest.$ac_objext
1535     if { { ac_try="$ac_compile"
1536     case "(($ac_try" in
1537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538     *) ac_try_echo=$ac_try;;
1539     esac
1540     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541     $as_echo "$ac_try_echo"; } >&5
1542     (eval "$ac_compile") 2>conftest.err
1543     ac_status=$?
1544     if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548     fi
1549     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550     test $ac_status = 0; } && {
1551     test -z "$ac_c_werror_flag" ||
1552     test ! -s conftest.err
1553     } && test -s conftest.$ac_objext; then :
1554     ac_retval=0
1555     else
1556     $as_echo "$as_me: failed program was:" >&5
1557     sed 's/^/| /' conftest.$ac_ext >&5
1558    
1559     ac_retval=1
1560     fi
1561     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562     as_fn_set_status $ac_retval
1563    
1564     } # ac_fn_c_try_compile
1565    
1566     # ac_fn_c_try_link LINENO
1567     # -----------------------
1568     # Try to link conftest.$ac_ext, and return whether this succeeded.
1569     ac_fn_c_try_link ()
1570     {
1571     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572     rm -f conftest.$ac_objext conftest$ac_exeext
1573     if { { ac_try="$ac_link"
1574     case "(($ac_try" in
1575     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576     *) ac_try_echo=$ac_try;;
1577     esac
1578     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579     $as_echo "$ac_try_echo"; } >&5
1580     (eval "$ac_link") 2>conftest.err
1581     ac_status=$?
1582     if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586     fi
1587     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588     test $ac_status = 0; } && {
1589     test -z "$ac_c_werror_flag" ||
1590     test ! -s conftest.err
1591     } && test -s conftest$ac_exeext && {
1592     test "$cross_compiling" = yes ||
1593     test -x conftest$ac_exeext
1594     }; then :
1595     ac_retval=0
1596     else
1597     $as_echo "$as_me: failed program was:" >&5
1598     sed 's/^/| /' conftest.$ac_ext >&5
1599    
1600     ac_retval=1
1601     fi
1602     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604     # interfere with the next link command; also delete a directory that is
1605     # left behind by Apple's compiler. We do this before executing the actions.
1606     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608     as_fn_set_status $ac_retval
1609    
1610     } # ac_fn_c_try_link
1611    
1612     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613     # -------------------------------------------------------
1614     # Tests whether HEADER exists and can be compiled using the include files in
1615     # INCLUDES, setting the cache variable VAR accordingly.
1616     ac_fn_c_check_header_compile ()
1617     {
1618     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620     $as_echo_n "checking for $2... " >&6; }
1621     if eval \${$3+:} false; then :
1622     $as_echo_n "(cached) " >&6
1623     else
1624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625     /* end confdefs.h. */
1626     $4
1627     #include <$2>
1628     _ACEOF
1629     if ac_fn_c_try_compile "$LINENO"; then :
1630     eval "$3=yes"
1631     else
1632     eval "$3=no"
1633     fi
1634     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635     fi
1636     eval ac_res=\$$3
1637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638     $as_echo "$ac_res" >&6; }
1639     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640    
1641     } # ac_fn_c_check_header_compile
1642    
1643     # ac_fn_c_try_cpp LINENO
1644     # ----------------------
1645     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646     ac_fn_c_try_cpp ()
1647     {
1648     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649     if { { ac_try="$ac_cpp conftest.$ac_ext"
1650     case "(($ac_try" in
1651     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652     *) ac_try_echo=$ac_try;;
1653     esac
1654     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655     $as_echo "$ac_try_echo"; } >&5
1656     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657     ac_status=$?
1658     if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662     fi
1663     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664     test $ac_status = 0; } > conftest.i && {
1665     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666     test ! -s conftest.err
1667     }; then :
1668     ac_retval=0
1669     else
1670     $as_echo "$as_me: failed program was:" >&5
1671     sed 's/^/| /' conftest.$ac_ext >&5
1672    
1673     ac_retval=1
1674     fi
1675     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676     as_fn_set_status $ac_retval
1677    
1678     } # ac_fn_c_try_cpp
1679    
1680     # ac_fn_c_try_run LINENO
1681     # ----------------------
1682     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683     # that executables *can* be run.
1684     ac_fn_c_try_run ()
1685     {
1686     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687     if { { ac_try="$ac_link"
1688     case "(($ac_try" in
1689     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690     *) ac_try_echo=$ac_try;;
1691     esac
1692     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693     $as_echo "$ac_try_echo"; } >&5
1694     (eval "$ac_link") 2>&5
1695     ac_status=$?
1696     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698     { { case "(($ac_try" in
1699     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700     *) ac_try_echo=$ac_try;;
1701     esac
1702     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703     $as_echo "$ac_try_echo"; } >&5
1704     (eval "$ac_try") 2>&5
1705     ac_status=$?
1706     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707     test $ac_status = 0; }; }; then :
1708     ac_retval=0
1709     else
1710     $as_echo "$as_me: program exited with status $ac_status" >&5
1711     $as_echo "$as_me: failed program was:" >&5
1712     sed 's/^/| /' conftest.$ac_ext >&5
1713    
1714     ac_retval=$ac_status
1715     fi
1716     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718     as_fn_set_status $ac_retval
1719    
1720     } # ac_fn_c_try_run
1721    
1722     # ac_fn_c_check_func LINENO FUNC VAR
1723     # ----------------------------------
1724     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725     ac_fn_c_check_func ()
1726     {
1727     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729     $as_echo_n "checking for $2... " >&6; }
1730     if eval \${$3+:} false; then :
1731     $as_echo_n "(cached) " >&6
1732     else
1733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734     /* end confdefs.h. */
1735     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737     #define $2 innocuous_$2
1738    
1739     /* System header to define __stub macros and hopefully few prototypes,
1740     which can conflict with char $2 (); below.
1741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742     <limits.h> exists even on freestanding compilers. */
1743    
1744     #ifdef __STDC__
1745     # include <limits.h>
1746     #else
1747     # include <assert.h>
1748     #endif
1749    
1750     #undef $2
1751    
1752     /* Override any GCC internal prototype to avoid an error.
1753     Use char because int might match the return type of a GCC
1754     builtin and then its argument prototype would still apply. */
1755     #ifdef __cplusplus
1756     extern "C"
1757     #endif
1758     char $2 ();
1759     /* The GNU C library defines this for functions which it implements
1760     to always fail with ENOSYS. Some functions are actually named
1761     something starting with __ and the normal name is an alias. */
1762     #if defined __stub_$2 || defined __stub___$2
1763     choke me
1764     #endif
1765    
1766     int
1767     main ()
1768     {
1769     return $2 ();
1770     ;
1771     return 0;
1772     }
1773     _ACEOF
1774     if ac_fn_c_try_link "$LINENO"; then :
1775     eval "$3=yes"
1776     else
1777     eval "$3=no"
1778     fi
1779     rm -f core conftest.err conftest.$ac_objext \
1780     conftest$ac_exeext conftest.$ac_ext
1781     fi
1782     eval ac_res=\$$3
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784     $as_echo "$ac_res" >&6; }
1785     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786    
1787     } # ac_fn_c_check_func
1788 michael 5052 cat >config.log <<_ACEOF
1789     This file contains any messages produced by compilers while
1790     running configure, to aid debugging if configure makes a mistake.
1791    
1792 michael 5266 It was created by hopm $as_me TRUNK, which was
1793 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1794 michael 5052
1795     $ $0 $@
1796    
1797     _ACEOF
1798     exec 5>>config.log
1799     {
1800     cat <<_ASUNAME
1801     ## --------- ##
1802     ## Platform. ##
1803     ## --------- ##
1804    
1805     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810    
1811     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1813    
1814     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821    
1822     _ASUNAME
1823    
1824     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825     for as_dir in $PATH
1826     do
1827     IFS=$as_save_IFS
1828     test -z "$as_dir" && as_dir=.
1829 michael 5059 $as_echo "PATH: $as_dir"
1830     done
1831 michael 5052 IFS=$as_save_IFS
1832    
1833     } >&5
1834    
1835     cat >&5 <<_ACEOF
1836    
1837    
1838     ## ----------- ##
1839     ## Core tests. ##
1840     ## ----------- ##
1841    
1842     _ACEOF
1843    
1844    
1845     # Keep a trace of the command line.
1846     # Strip out --no-create and --no-recursion so they do not pile up.
1847     # Strip out --silent because we don't want to record it for future runs.
1848     # Also quote any args containing shell meta-characters.
1849     # Make two passes to allow for proper duplicate-argument suppression.
1850     ac_configure_args=
1851     ac_configure_args0=
1852     ac_configure_args1=
1853     ac_must_keep_next=false
1854     for ac_pass in 1 2
1855     do
1856     for ac_arg
1857     do
1858     case $ac_arg in
1859     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861     | -silent | --silent | --silen | --sile | --sil)
1862     continue ;;
1863     *\'*)
1864 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 michael 5052 esac
1866     case $ac_pass in
1867 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1868 michael 5052 2)
1869 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1870 michael 5052 if test $ac_must_keep_next = true; then
1871     ac_must_keep_next=false # Got value, back to normal.
1872     else
1873     case $ac_arg in
1874     *=* | --config-cache | -C | -disable-* | --disable-* \
1875     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877     | -with-* | --with-* | -without-* | --without-* | --x)
1878     case "$ac_configure_args0 " in
1879     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880     esac
1881     ;;
1882     -* ) ac_must_keep_next=true ;;
1883     esac
1884     fi
1885 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1886 michael 5052 ;;
1887     esac
1888     done
1889     done
1890 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1891     { ac_configure_args1=; unset ac_configure_args1;}
1892 michael 5052
1893     # When interrupted or exit'd, cleanup temporary files, and complete
1894     # config.log. We remove comments because anyway the quotes in there
1895     # would cause problems or look ugly.
1896     # WARNING: Use '\'' to represent an apostrophe within the trap.
1897     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898     trap 'exit_status=$?
1899     # Save into config.log some information that might help in debugging.
1900     {
1901     echo
1902    
1903 michael 5059 $as_echo "## ---------------- ##
1904 michael 5052 ## Cache variables. ##
1905 michael 5059 ## ---------------- ##"
1906 michael 5052 echo
1907     # The following way of writing the cache mishandles newlines in values,
1908     (
1909     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910     eval ac_val=\$$ac_var
1911     case $ac_val in #(
1912     *${as_nl}*)
1913     case $ac_var in #(
1914 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 michael 5052 esac
1917     case $ac_var in #(
1918     _ | IFS | as_nl) ;; #(
1919 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920     *) { eval $ac_var=; unset $ac_var;} ;;
1921 michael 5052 esac ;;
1922     esac
1923     done
1924     (set) 2>&1 |
1925     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926     *${as_nl}ac_space=\ *)
1927     sed -n \
1928     "s/'\''/'\''\\\\'\'''\''/g;
1929     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930     ;; #(
1931     *)
1932     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933     ;;
1934     esac |
1935     sort
1936     )
1937     echo
1938    
1939 michael 5059 $as_echo "## ----------------- ##
1940 michael 5052 ## Output variables. ##
1941 michael 5059 ## ----------------- ##"
1942 michael 5052 echo
1943     for ac_var in $ac_subst_vars
1944     do
1945     eval ac_val=\$$ac_var
1946     case $ac_val in
1947 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 michael 5052 esac
1949 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1950 michael 5052 done | sort
1951     echo
1952    
1953     if test -n "$ac_subst_files"; then
1954 michael 5059 $as_echo "## ------------------- ##
1955 michael 5052 ## File substitutions. ##
1956 michael 5059 ## ------------------- ##"
1957 michael 5052 echo
1958     for ac_var in $ac_subst_files
1959     do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in
1962 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963 michael 5052 esac
1964 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1965 michael 5052 done | sort
1966     echo
1967     fi
1968    
1969     if test -s confdefs.h; then
1970 michael 5059 $as_echo "## ----------- ##
1971 michael 5052 ## confdefs.h. ##
1972 michael 5059 ## ----------- ##"
1973 michael 5052 echo
1974     cat confdefs.h
1975     echo
1976     fi
1977     test "$ac_signal" != 0 &&
1978 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
1979     $as_echo "$as_me: exit $exit_status"
1980 michael 5052 } >&5
1981     rm -f core *.core core.conftest.* &&
1982     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1983     exit $exit_status
1984     ' 0
1985     for ac_signal in 1 2 13 15; do
1986 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1987 michael 5052 done
1988     ac_signal=0
1989    
1990     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1991     rm -f -r conftest* confdefs.h
1992    
1993 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
1994    
1995 michael 5052 # Predefined preprocessor variables.
1996    
1997     cat >>confdefs.h <<_ACEOF
1998     #define PACKAGE_NAME "$PACKAGE_NAME"
1999     _ACEOF
2000    
2001     cat >>confdefs.h <<_ACEOF
2002     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2003     _ACEOF
2004    
2005     cat >>confdefs.h <<_ACEOF
2006     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2007     _ACEOF
2008    
2009     cat >>confdefs.h <<_ACEOF
2010     #define PACKAGE_STRING "$PACKAGE_STRING"
2011     _ACEOF
2012    
2013     cat >>confdefs.h <<_ACEOF
2014     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2015     _ACEOF
2016    
2017 michael 5059 cat >>confdefs.h <<_ACEOF
2018     #define PACKAGE_URL "$PACKAGE_URL"
2019     _ACEOF
2020 michael 5052
2021 michael 5059
2022 michael 5052 # Let the site file select an alternate cache file if it wants to.
2023 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2024     ac_site_file1=NONE
2025     ac_site_file2=NONE
2026 michael 5052 if test -n "$CONFIG_SITE"; then
2027 michael 5059 # We do not want a PATH search for config.site.
2028     case $CONFIG_SITE in #((
2029     -*) ac_site_file1=./$CONFIG_SITE;;
2030     */*) ac_site_file1=$CONFIG_SITE;;
2031     *) ac_site_file1=./$CONFIG_SITE;;
2032     esac
2033 michael 5052 elif test "x$prefix" != xNONE; then
2034 michael 5059 ac_site_file1=$prefix/share/config.site
2035     ac_site_file2=$prefix/etc/config.site
2036 michael 5052 else
2037 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2038     ac_site_file2=$ac_default_prefix/etc/config.site
2039 michael 5052 fi
2040 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041 michael 5052 do
2042 michael 5059 test "x$ac_site_file" = xNONE && continue
2043     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2047 michael 5059 . "$ac_site_file" \
2048     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050     as_fn_error $? "failed to load site script $ac_site_file
2051     See \`config.log' for more details" "$LINENO" 5; }
2052 michael 5052 fi
2053     done
2054    
2055     if test -r "$cache_file"; then
2056 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2057     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2058     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2060     $as_echo "$as_me: loading cache $cache_file" >&6;}
2061 michael 5052 case $cache_file in
2062     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2063     *) . "./$cache_file";;
2064     esac
2065     fi
2066     else
2067 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2068     $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 michael 5052 >$cache_file
2070     fi
2071    
2072     # Check that the precious variables saved in the cache have kept the same
2073     # value.
2074     ac_cache_corrupted=false
2075     for ac_var in $ac_precious_vars; do
2076     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077     eval ac_new_set=\$ac_env_${ac_var}_set
2078     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079     eval ac_new_val=\$ac_env_${ac_var}_value
2080     case $ac_old_set,$ac_new_set in
2081     set,)
2082 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084 michael 5052 ac_cache_corrupted=: ;;
2085     ,set)
2086 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2087     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088 michael 5052 ac_cache_corrupted=: ;;
2089     ,);;
2090     *)
2091     if test "x$ac_old_val" != "x$ac_new_val"; then
2092 michael 5059 # differences in whitespace do not lead to failure.
2093     ac_old_val_w=`echo x $ac_old_val`
2094     ac_new_val_w=`echo x $ac_new_val`
2095     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2097     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098     ac_cache_corrupted=:
2099     else
2100     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102     eval $ac_var=\$ac_old_val
2103     fi
2104     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2105     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2107     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2108 michael 5052 fi;;
2109     esac
2110     # Pass precious variables to config.status.
2111     if test "$ac_new_set" = set; then
2112     case $ac_new_val in
2113 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2115     esac
2116     case " $ac_configure_args " in
2117     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2119 michael 5052 esac
2120     fi
2121     done
2122     if $ac_cache_corrupted; then
2123 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2126     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2128 michael 5052 fi
2129 michael 5059 ## -------------------- ##
2130     ## Main body of script. ##
2131     ## -------------------- ##
2132 michael 5052
2133     ac_ext=c
2134     ac_cpp='$CPP $CPPFLAGS'
2135     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138    
2139    
2140 michael 5059 am__api_version='1.14'
2141    
2142 michael 5052 ac_aux_dir=
2143     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2144     if test -f "$ac_dir/install-sh"; then
2145     ac_aux_dir=$ac_dir
2146     ac_install_sh="$ac_aux_dir/install-sh -c"
2147     break
2148     elif test -f "$ac_dir/install.sh"; then
2149     ac_aux_dir=$ac_dir
2150     ac_install_sh="$ac_aux_dir/install.sh -c"
2151     break
2152     elif test -f "$ac_dir/shtool"; then
2153     ac_aux_dir=$ac_dir
2154     ac_install_sh="$ac_aux_dir/shtool install -c"
2155     break
2156     fi
2157     done
2158     if test -z "$ac_aux_dir"; then
2159 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2160 michael 5052 fi
2161    
2162     # These three variables are undocumented and unsupported,
2163     # and are intended to be withdrawn in a future Autoconf release.
2164     # They can cause serious problems if a builder's source tree is in a directory
2165     # whose full name contains unusual characters.
2166     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2169    
2170    
2171     # Find a good install program. We prefer a C program (faster),
2172     # so one script is as good as another. But avoid the broken or
2173     # incompatible versions:
2174     # SysV /etc/install, /usr/sbin/install
2175     # SunOS /usr/etc/install
2176     # IRIX /sbin/install
2177     # AIX /bin/install
2178     # AmigaOS /C/install, which installs bootblocks on floppy discs
2179     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2180     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2181     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2182     # OS/2's system install, which has a completely different semantic
2183     # ./install, which can be erroneously created by make from ./install.sh.
2184 michael 5059 # Reject install programs that cannot install multiple files.
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2186     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2187 michael 5052 if test -z "$INSTALL"; then
2188 michael 5059 if ${ac_cv_path_install+:} false; then :
2189     $as_echo_n "(cached) " >&6
2190 michael 5052 else
2191     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192     for as_dir in $PATH
2193     do
2194     IFS=$as_save_IFS
2195     test -z "$as_dir" && as_dir=.
2196 michael 5059 # Account for people who put trailing slashes in PATH elements.
2197     case $as_dir/ in #((
2198     ./ | .// | /[cC]/* | \
2199 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2201 michael 5052 /usr/ucb/* ) ;;
2202     *)
2203     # OSF1 and SCO ODT 3.0 have their own names for install.
2204     # Don't use installbsd from OSF since it installs stuff as root
2205     # by default.
2206     for ac_prog in ginstall scoinst install; do
2207     for ac_exec_ext in '' $ac_executable_extensions; do
2208 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2209 michael 5052 if test $ac_prog = install &&
2210     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211     # AIX install. It has an incompatible calling convention.
2212     :
2213     elif test $ac_prog = install &&
2214     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215     # program-specific install script used by HP pwplus--don't use.
2216     :
2217     else
2218 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2219     echo one > conftest.one
2220     echo two > conftest.two
2221     mkdir conftest.dir
2222     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2223     test -s conftest.one && test -s conftest.two &&
2224     test -s conftest.dir/conftest.one &&
2225     test -s conftest.dir/conftest.two
2226     then
2227     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2228     break 3
2229     fi
2230 michael 5052 fi
2231     fi
2232     done
2233     done
2234     ;;
2235     esac
2236 michael 5059
2237     done
2238 michael 5052 IFS=$as_save_IFS
2239    
2240 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2241 michael 5052
2242     fi
2243     if test "${ac_cv_path_install+set}" = set; then
2244     INSTALL=$ac_cv_path_install
2245     else
2246     # As a last resort, use the slow shell script. Don't cache a
2247     # value for INSTALL within a source directory, because that will
2248     # break other packages using the cache if that directory is
2249     # removed, or if the value is a relative name.
2250     INSTALL=$ac_install_sh
2251     fi
2252     fi
2253 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2254     $as_echo "$INSTALL" >&6; }
2255 michael 5052
2256     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2257     # It thinks the first close brace ends the variable substitution.
2258     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2259    
2260     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2261    
2262     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2263    
2264 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2265     $as_echo_n "checking whether build environment is sane... " >&6; }
2266     # Reject unsafe characters in $srcdir or the absolute working directory
2267     # name. Accept space and tab only in the latter.
2268     am_lf='
2269     '
2270     case `pwd` in
2271     *[\\\"\#\$\&\'\`$am_lf]*)
2272     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2273     esac
2274     case $srcdir in
2275     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2276     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2277     esac
2278    
2279     # Do 'set' in a subshell so we don't clobber the current shell's
2280 michael 5052 # arguments. Must try -L first in case configure is actually a
2281     # symlink; some systems play weird games with the mod time of symlinks
2282     # (eg FreeBSD returns the mod time of the symlink's containing
2283     # directory).
2284     if (
2285 michael 5059 am_has_slept=no
2286     for am_try in 1 2; do
2287     echo "timestamp, slept: $am_has_slept" > conftest.file
2288     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2289     if test "$*" = "X"; then
2290     # -L didn't work.
2291     set X `ls -t "$srcdir/configure" conftest.file`
2292     fi
2293     if test "$*" != "X $srcdir/configure conftest.file" \
2294     && test "$*" != "X conftest.file $srcdir/configure"; then
2295 michael 5052
2296 michael 5059 # If neither matched, then we have a broken ls. This can happen
2297     # if, for instance, CONFIG_SHELL is bash and it inherits a
2298     # broken ls alias from the environment. This has actually
2299     # happened. Such a system could not be considered "sane".
2300     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2301     alias in your environment" "$LINENO" 5
2302     fi
2303     if test "$2" = conftest.file || test $am_try -eq 2; then
2304     break
2305     fi
2306     # Just in case.
2307     sleep 1
2308     am_has_slept=yes
2309     done
2310 michael 5052 test "$2" = conftest.file
2311     )
2312     then
2313     # Ok.
2314     :
2315     else
2316 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2317     Check your system clock" "$LINENO" 5
2318 michael 5052 fi
2319 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2320     $as_echo "yes" >&6; }
2321     # If we didn't sleep, we still need to ensure time stamps of config.status and
2322     # generated files are strictly newer.
2323     am_sleep_pid=
2324     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2325     ( sleep 1 ) &
2326     am_sleep_pid=$!
2327     fi
2328    
2329     rm -f conftest.file
2330    
2331 michael 5052 test "$program_prefix" != NONE &&
2332     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333     # Use a double $ so make ignores it.
2334     test "$program_suffix" != NONE &&
2335     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 michael 5059 # Double any \ or $.
2337 michael 5052 # By default was `s,x,x', remove it if useless.
2338 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340 michael 5052
2341     # expand $ac_aux_dir to an absolute path
2342     am_aux_dir=`cd $ac_aux_dir && pwd`
2343    
2344 michael 5059 if test x"${MISSING+set}" != xset; then
2345     case $am_aux_dir in
2346     *\ * | *\ *)
2347     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348     *)
2349     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350     esac
2351     fi
2352 michael 5052 # Use eval to expand $SHELL
2353 michael 5059 if eval "$MISSING --is-lightweight"; then
2354     am_missing_run="$MISSING "
2355 michael 5052 else
2356     am_missing_run=
2357 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2358     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2359 michael 5052 fi
2360    
2361 michael 5059 if test x"${install_sh}" != xset; then
2362     case $am_aux_dir in
2363     *\ * | *\ *)
2364     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365     *)
2366     install_sh="\${SHELL} $am_aux_dir/install-sh"
2367     esac
2368     fi
2369    
2370     # Installed binaries are usually stripped using 'strip' when the user
2371     # run "make install-strip". However 'strip' might not be the right
2372     # tool to use in cross-compilation environments, therefore Automake
2373     # will honor the 'STRIP' environment variable to overrule this program.
2374     if test "$cross_compiling" != no; then
2375     if test -n "$ac_tool_prefix"; then
2376     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377     set dummy ${ac_tool_prefix}strip; ac_word=$2
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379     $as_echo_n "checking for $ac_word... " >&6; }
2380     if ${ac_cv_prog_STRIP+:} false; then :
2381     $as_echo_n "(cached) " >&6
2382 michael 5052 else
2383 michael 5059 if test -n "$STRIP"; then
2384     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385     else
2386     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387     for as_dir in $PATH
2388     do
2389     IFS=$as_save_IFS
2390     test -z "$as_dir" && as_dir=.
2391     for ac_exec_ext in '' $ac_executable_extensions; do
2392     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396     fi
2397     done
2398 michael 5052 done
2399 michael 5059 IFS=$as_save_IFS
2400    
2401     fi
2402     fi
2403     STRIP=$ac_cv_prog_STRIP
2404     if test -n "$STRIP"; then
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406     $as_echo "$STRIP" >&6; }
2407     else
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409     $as_echo "no" >&6; }
2410     fi
2411    
2412    
2413     fi
2414     if test -z "$ac_cv_prog_STRIP"; then
2415     ac_ct_STRIP=$STRIP
2416     # Extract the first word of "strip", so it can be a program name with args.
2417     set dummy strip; ac_word=$2
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419     $as_echo_n "checking for $ac_word... " >&6; }
2420     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421     $as_echo_n "(cached) " >&6
2422     else
2423     if test -n "$ac_ct_STRIP"; then
2424     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425     else
2426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427     for as_dir in $PATH
2428     do
2429     IFS=$as_save_IFS
2430     test -z "$as_dir" && as_dir=.
2431     for ac_exec_ext in '' $ac_executable_extensions; do
2432     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433     ac_cv_prog_ac_ct_STRIP="strip"
2434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436     fi
2437     done
2438     done
2439     IFS=$as_save_IFS
2440    
2441     fi
2442     fi
2443     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444     if test -n "$ac_ct_STRIP"; then
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446     $as_echo "$ac_ct_STRIP" >&6; }
2447     else
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449     $as_echo "no" >&6; }
2450     fi
2451    
2452     if test "x$ac_ct_STRIP" = x; then
2453     STRIP=":"
2454 michael 5052 else
2455 michael 5059 case $cross_compiling:$ac_tool_warned in
2456     yes:)
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459     ac_tool_warned=yes ;;
2460     esac
2461     STRIP=$ac_ct_STRIP
2462 michael 5052 fi
2463 michael 5059 else
2464     STRIP="$ac_cv_prog_STRIP"
2465 michael 5052 fi
2466    
2467 michael 5059 fi
2468     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469    
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472     if test -z "$MKDIR_P"; then
2473     if ${ac_cv_path_mkdir+:} false; then :
2474     $as_echo_n "(cached) " >&6
2475     else
2476     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478     do
2479     IFS=$as_save_IFS
2480     test -z "$as_dir" && as_dir=.
2481     for ac_prog in mkdir gmkdir; do
2482     for ac_exec_ext in '' $ac_executable_extensions; do
2483     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2484     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485     'mkdir (GNU coreutils) '* | \
2486     'mkdir (coreutils) '* | \
2487     'mkdir (fileutils) '4.1*)
2488     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489     break 3;;
2490     esac
2491     done
2492     done
2493     done
2494     IFS=$as_save_IFS
2495    
2496     fi
2497    
2498     test -d ./--version && rmdir ./--version
2499     if test "${ac_cv_path_mkdir+set}" = set; then
2500     MKDIR_P="$ac_cv_path_mkdir -p"
2501     else
2502     # As a last resort, use the slow shell script. Don't cache a
2503     # value for MKDIR_P within a source directory, because that will
2504     # break other packages using the cache if that directory is
2505     # removed, or if the value is a relative name.
2506     MKDIR_P="$ac_install_sh -d"
2507     fi
2508     fi
2509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510     $as_echo "$MKDIR_P" >&6; }
2511    
2512 michael 5052 for ac_prog in gawk mawk nawk awk
2513     do
2514     # Extract the first word of "$ac_prog", so it can be a program name with args.
2515     set dummy $ac_prog; ac_word=$2
2516 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517     $as_echo_n "checking for $ac_word... " >&6; }
2518     if ${ac_cv_prog_AWK+:} false; then :
2519     $as_echo_n "(cached) " >&6
2520 michael 5052 else
2521     if test -n "$AWK"; then
2522     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523     else
2524     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525     for as_dir in $PATH
2526     do
2527     IFS=$as_save_IFS
2528     test -z "$as_dir" && as_dir=.
2529 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2530     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 michael 5052 ac_cv_prog_AWK="$ac_prog"
2532 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 michael 5052 break 2
2534     fi
2535     done
2536 michael 5059 done
2537 michael 5052 IFS=$as_save_IFS
2538    
2539     fi
2540     fi
2541     AWK=$ac_cv_prog_AWK
2542     if test -n "$AWK"; then
2543 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2544     $as_echo "$AWK" >&6; }
2545 michael 5052 else
2546 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547     $as_echo "no" >&6; }
2548 michael 5052 fi
2549    
2550    
2551     test -n "$AWK" && break
2552     done
2553    
2554 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2555     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556     set x ${MAKE-make}
2557     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2558     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2559     $as_echo_n "(cached) " >&6
2560 michael 5052 else
2561     cat >conftest.make <<\_ACEOF
2562     SHELL = /bin/sh
2563     all:
2564     @echo '@@@%%%=$(MAKE)=@@@%%%'
2565     _ACEOF
2566 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2567 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568     *@@@%%%=?*=@@@%%%*)
2569     eval ac_cv_prog_make_${ac_make}_set=yes;;
2570     *)
2571     eval ac_cv_prog_make_${ac_make}_set=no;;
2572     esac
2573     rm -f conftest.make
2574     fi
2575     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2576 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577     $as_echo "yes" >&6; }
2578 michael 5052 SET_MAKE=
2579     else
2580 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581     $as_echo "no" >&6; }
2582 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2583     fi
2584    
2585     rm -rf .tst 2>/dev/null
2586     mkdir .tst 2>/dev/null
2587     if test -d .tst; then
2588     am__leading_dot=.
2589     else
2590     am__leading_dot=_
2591     fi
2592     rmdir .tst 2>/dev/null
2593    
2594 michael 5059 # Check whether --enable-silent-rules was given.
2595     if test "${enable_silent_rules+set}" = set; then :
2596     enableval=$enable_silent_rules;
2597 michael 5052 fi
2598    
2599 michael 5059 case $enable_silent_rules in # (((
2600     yes) AM_DEFAULT_VERBOSITY=0;;
2601     no) AM_DEFAULT_VERBOSITY=1;;
2602     *) AM_DEFAULT_VERBOSITY=1;;
2603     esac
2604     am_make=${MAKE-make}
2605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2606     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2607     if ${am_cv_make_support_nested_variables+:} false; then :
2608     $as_echo_n "(cached) " >&6
2609     else
2610     if $as_echo 'TRUE=$(BAR$(V))
2611     BAR0=false
2612     BAR1=true
2613     V=1
2614     am__doit:
2615     @$(TRUE)
2616     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2617     am_cv_make_support_nested_variables=yes
2618     else
2619     am_cv_make_support_nested_variables=no
2620     fi
2621     fi
2622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2623     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2624     if test $am_cv_make_support_nested_variables = yes; then
2625     AM_V='$(V)'
2626     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2627     else
2628     AM_V=$AM_DEFAULT_VERBOSITY
2629     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2630     fi
2631     AM_BACKSLASH='\'
2632    
2633     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635     # is not polluted with repeated "-I."
2636     am__isrc=' -I$(srcdir)'
2637     # test to see if srcdir already configured
2638     if test -f $srcdir/config.status; then
2639     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640     fi
2641     fi
2642    
2643 michael 5052 # test whether we have cygpath
2644     if test -z "$CYGPATH_W"; then
2645     if (cygpath --version) >/dev/null 2>/dev/null; then
2646     CYGPATH_W='cygpath -w'
2647     else
2648     CYGPATH_W=echo
2649     fi
2650     fi
2651    
2652    
2653     # Define the identity of the package.
2654 michael 5061 PACKAGE='hopm'
2655 michael 5266 VERSION='TRUNK'
2656 michael 5052
2657    
2658     cat >>confdefs.h <<_ACEOF
2659     #define PACKAGE "$PACKAGE"
2660     _ACEOF
2661    
2662    
2663     cat >>confdefs.h <<_ACEOF
2664     #define VERSION "$VERSION"
2665     _ACEOF
2666    
2667     # Some tools Automake needs.
2668    
2669     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670    
2671    
2672     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673    
2674    
2675     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676    
2677    
2678     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679    
2680    
2681     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682    
2683 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2684     # dies out for good. For more background, see:
2685     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2686     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2687     mkdir_p='$(MKDIR_P)'
2688 michael 5052
2689 michael 5059 # We need awk for the "check" target. The system "awk" is bad on
2690     # some platforms.
2691     # Always define AMTAR for backward compatibility. Yes, it's still used
2692     # in the wild :-( We should find a proper way to deprecate it ...
2693     AMTAR='$${TAR-tar}'
2694 michael 5052
2695    
2696 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2697     _am_tools='gnutar pax cpio none'
2698 michael 5052
2699 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2700 michael 5052
2701    
2702    
2703    
2704    
2705    
2706 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2707     # is OK; and we want to be able to make that assumption in our Makefile
2708     # recipes. So use an aggressive probe to check that the usage we want is
2709     # actually supported "in the wild" to an acceptable degree.
2710     # See automake bug#10828.
2711     # To make any issue more visible, cause the running configure to be aborted
2712     # by default if the 'rm' program in use doesn't match our expectations; the
2713     # user can still override this though.
2714     if rm -f && rm -fr && rm -rf; then : OK; else
2715     cat >&2 <<'END'
2716     Oops!
2717 michael 5052
2718 michael 5059 Your 'rm' program seems unable to run without file operands specified
2719     on the command line, even when the '-f' option is present. This is contrary
2720     to the behaviour of most rm programs out there, and not conforming with
2721     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2722 michael 5052
2723 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2724     of your $PATH and any error possibly output before this message. This
2725     can help us improve future automake versions.
2726 michael 5052
2727 michael 5059 END
2728     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2729     echo 'Configuration will proceed anyway, since you have set the' >&2
2730     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2731     echo >&2
2732     else
2733     cat >&2 <<'END'
2734     Aborting the configuration process, to ensure you take notice of the issue.
2735 michael 5052
2736 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2737     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2738 michael 5052
2739 michael 5059 If you want to complete the configuration process using your problematic
2740     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2741     to "yes", and re-run configure.
2742 michael 5052
2743 michael 5059 END
2744     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2745     fi
2746     fi
2747    
2748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2749     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2750 michael 5052 # Check whether --enable-maintainer-mode was given.
2751 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2752 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2753     else
2754     USE_MAINTAINER_MODE=no
2755     fi
2756    
2757 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2758     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2759     if test $USE_MAINTAINER_MODE = yes; then
2760 michael 5052 MAINTAINER_MODE_TRUE=
2761     MAINTAINER_MODE_FALSE='#'
2762     else
2763     MAINTAINER_MODE_TRUE='#'
2764     MAINTAINER_MODE_FALSE=
2765     fi
2766    
2767     MAINT=$MAINTAINER_MODE_TRUE
2768    
2769    
2770    
2771 michael 5314 ac_config_headers="$ac_config_headers src/setup.h"
2772    
2773    
2774    
2775 michael 5059 DEPDIR="${am__leading_dot}deps"
2776    
2777     ac_config_commands="$ac_config_commands depfiles"
2778    
2779    
2780     am_make=${MAKE-make}
2781     cat > confinc << 'END'
2782     am__doit:
2783     @echo this is the am__doit target
2784     .PHONY: am__doit
2785     END
2786     # If we don't find an include directive, just comment out the code.
2787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2788     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2789     am__include="#"
2790     am__quote=
2791     _am_result=none
2792     # First try GNU make style include.
2793     echo "include confinc" > confmf
2794     # Ignore all kinds of additional output from 'make'.
2795     case `$am_make -s -f confmf 2> /dev/null` in #(
2796     *the\ am__doit\ target*)
2797     am__include=include
2798     am__quote=
2799     _am_result=GNU
2800     ;;
2801     esac
2802     # Now try BSD make style include.
2803     if test "$am__include" = "#"; then
2804     echo '.include "confinc"' > confmf
2805     case `$am_make -s -f confmf 2> /dev/null` in #(
2806     *the\ am__doit\ target*)
2807     am__include=.include
2808     am__quote="\""
2809     _am_result=BSD
2810     ;;
2811     esac
2812     fi
2813    
2814    
2815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2816     $as_echo "$_am_result" >&6; }
2817     rm -f confinc confmf
2818    
2819     # Check whether --enable-dependency-tracking was given.
2820     if test "${enable_dependency_tracking+set}" = set; then :
2821     enableval=$enable_dependency_tracking;
2822     fi
2823    
2824     if test "x$enable_dependency_tracking" != xno; then
2825     am_depcomp="$ac_aux_dir/depcomp"
2826     AMDEPBACKSLASH='\'
2827     am__nodep='_no'
2828     fi
2829     if test "x$enable_dependency_tracking" != xno; then
2830     AMDEP_TRUE=
2831     AMDEP_FALSE='#'
2832     else
2833     AMDEP_TRUE='#'
2834     AMDEP_FALSE=
2835     fi
2836    
2837    
2838 michael 5052 ac_ext=c
2839     ac_cpp='$CPP $CPPFLAGS'
2840     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843     if test -n "$ac_tool_prefix"; then
2844     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2846 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847     $as_echo_n "checking for $ac_word... " >&6; }
2848     if ${ac_cv_prog_CC+:} false; then :
2849     $as_echo_n "(cached) " >&6
2850 michael 5052 else
2851     if test -n "$CC"; then
2852     ac_cv_prog_CC="$CC" # Let the user override the test.
2853     else
2854     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855     for as_dir in $PATH
2856     do
2857     IFS=$as_save_IFS
2858     test -z "$as_dir" && as_dir=.
2859 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2860     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2862 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 michael 5052 break 2
2864     fi
2865     done
2866 michael 5059 done
2867 michael 5052 IFS=$as_save_IFS
2868    
2869     fi
2870     fi
2871     CC=$ac_cv_prog_CC
2872     if test -n "$CC"; then
2873 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874     $as_echo "$CC" >&6; }
2875 michael 5052 else
2876 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877     $as_echo "no" >&6; }
2878 michael 5052 fi
2879    
2880    
2881     fi
2882     if test -z "$ac_cv_prog_CC"; then
2883     ac_ct_CC=$CC
2884     # Extract the first word of "gcc", so it can be a program name with args.
2885     set dummy gcc; ac_word=$2
2886 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887     $as_echo_n "checking for $ac_word... " >&6; }
2888     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2889     $as_echo_n "(cached) " >&6
2890 michael 5052 else
2891     if test -n "$ac_ct_CC"; then
2892     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893     else
2894     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895     for as_dir in $PATH
2896     do
2897     IFS=$as_save_IFS
2898     test -z "$as_dir" && as_dir=.
2899 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2900     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2902 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 michael 5052 break 2
2904     fi
2905     done
2906 michael 5059 done
2907 michael 5052 IFS=$as_save_IFS
2908    
2909     fi
2910     fi
2911     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912     if test -n "$ac_ct_CC"; then
2913 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914     $as_echo "$ac_ct_CC" >&6; }
2915 michael 5052 else
2916 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917     $as_echo "no" >&6; }
2918 michael 5052 fi
2919    
2920     if test "x$ac_ct_CC" = x; then
2921     CC=""
2922     else
2923     case $cross_compiling:$ac_tool_warned in
2924     yes:)
2925 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 michael 5052 ac_tool_warned=yes ;;
2928     esac
2929     CC=$ac_ct_CC
2930     fi
2931     else
2932     CC="$ac_cv_prog_CC"
2933     fi
2934    
2935     if test -z "$CC"; then
2936     if test -n "$ac_tool_prefix"; then
2937     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938     set dummy ${ac_tool_prefix}cc; ac_word=$2
2939 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940     $as_echo_n "checking for $ac_word... " >&6; }
2941     if ${ac_cv_prog_CC+:} false; then :
2942     $as_echo_n "(cached) " >&6
2943 michael 5052 else
2944     if test -n "$CC"; then
2945     ac_cv_prog_CC="$CC" # Let the user override the test.
2946     else
2947     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948     for as_dir in $PATH
2949     do
2950     IFS=$as_save_IFS
2951     test -z "$as_dir" && as_dir=.
2952 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2953     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
2955 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 michael 5052 break 2
2957     fi
2958     done
2959 michael 5059 done
2960 michael 5052 IFS=$as_save_IFS
2961    
2962     fi
2963     fi
2964     CC=$ac_cv_prog_CC
2965     if test -n "$CC"; then
2966 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967     $as_echo "$CC" >&6; }
2968 michael 5052 else
2969 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970     $as_echo "no" >&6; }
2971 michael 5052 fi
2972    
2973    
2974     fi
2975     fi
2976     if test -z "$CC"; then
2977     # Extract the first word of "cc", so it can be a program name with args.
2978     set dummy cc; ac_word=$2
2979 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980     $as_echo_n "checking for $ac_word... " >&6; }
2981     if ${ac_cv_prog_CC+:} false; then :
2982     $as_echo_n "(cached) " >&6
2983 michael 5052 else
2984     if test -n "$CC"; then
2985     ac_cv_prog_CC="$CC" # Let the user override the test.
2986     else
2987     ac_prog_rejected=no
2988     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989     for as_dir in $PATH
2990     do
2991     IFS=$as_save_IFS
2992     test -z "$as_dir" && as_dir=.
2993 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2994     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996     ac_prog_rejected=yes
2997     continue
2998     fi
2999     ac_cv_prog_CC="cc"
3000 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 michael 5052 break 2
3002     fi
3003     done
3004 michael 5059 done
3005 michael 5052 IFS=$as_save_IFS
3006    
3007     if test $ac_prog_rejected = yes; then
3008     # We found a bogon in the path, so make sure we never use it.
3009     set dummy $ac_cv_prog_CC
3010     shift
3011     if test $# != 0; then
3012     # We chose a different compiler from the bogus one.
3013     # However, it has the same basename, so the bogon will be chosen
3014     # first if we set CC to just the basename; use the full file name.
3015     shift
3016     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017     fi
3018     fi
3019     fi
3020     fi
3021     CC=$ac_cv_prog_CC
3022     if test -n "$CC"; then
3023 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024     $as_echo "$CC" >&6; }
3025 michael 5052 else
3026 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027     $as_echo "no" >&6; }
3028 michael 5052 fi
3029    
3030    
3031     fi
3032     if test -z "$CC"; then
3033     if test -n "$ac_tool_prefix"; then
3034     for ac_prog in cl.exe
3035     do
3036     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3038 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039     $as_echo_n "checking for $ac_word... " >&6; }
3040     if ${ac_cv_prog_CC+:} false; then :
3041     $as_echo_n "(cached) " >&6
3042 michael 5052 else
3043     if test -n "$CC"; then
3044     ac_cv_prog_CC="$CC" # Let the user override the test.
3045     else
3046     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047     for as_dir in $PATH
3048     do
3049     IFS=$as_save_IFS
3050     test -z "$as_dir" && as_dir=.
3051 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3052     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 michael 5052 break 2
3056     fi
3057     done
3058 michael 5059 done
3059 michael 5052 IFS=$as_save_IFS
3060    
3061     fi
3062     fi
3063     CC=$ac_cv_prog_CC
3064     if test -n "$CC"; then
3065 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066     $as_echo "$CC" >&6; }
3067 michael 5052 else
3068 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069     $as_echo "no" >&6; }
3070 michael 5052 fi
3071    
3072    
3073     test -n "$CC" && break
3074     done
3075     fi
3076     if test -z "$CC"; then
3077     ac_ct_CC=$CC
3078     for ac_prog in cl.exe
3079     do
3080     # Extract the first word of "$ac_prog", so it can be a program name with args.
3081     set dummy $ac_prog; ac_word=$2
3082 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083     $as_echo_n "checking for $ac_word... " >&6; }
3084     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3085     $as_echo_n "(cached) " >&6
3086 michael 5052 else
3087     if test -n "$ac_ct_CC"; then
3088     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089     else
3090     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091     for as_dir in $PATH
3092     do
3093     IFS=$as_save_IFS
3094     test -z "$as_dir" && as_dir=.
3095 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3096     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3098 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 michael 5052 break 2
3100     fi
3101     done
3102 michael 5059 done
3103 michael 5052 IFS=$as_save_IFS
3104    
3105     fi
3106     fi
3107     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108     if test -n "$ac_ct_CC"; then
3109 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3110     $as_echo "$ac_ct_CC" >&6; }
3111 michael 5052 else
3112 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113     $as_echo "no" >&6; }
3114 michael 5052 fi
3115    
3116    
3117     test -n "$ac_ct_CC" && break
3118     done
3119    
3120     if test "x$ac_ct_CC" = x; then
3121     CC=""
3122     else
3123     case $cross_compiling:$ac_tool_warned in
3124     yes:)
3125 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 michael 5052 ac_tool_warned=yes ;;
3128     esac
3129     CC=$ac_ct_CC
3130     fi
3131     fi
3132    
3133     fi
3134    
3135    
3136 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138     as_fn_error $? "no acceptable C compiler found in \$PATH
3139     See \`config.log' for more details" "$LINENO" 5; }
3140 michael 5052
3141     # Provide some information about the compiler.
3142 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3143     set X $ac_compile
3144     ac_compiler=$2
3145     for ac_option in --version -v -V -qversion; do
3146     { { ac_try="$ac_compiler $ac_option >&5"
3147 michael 5052 case "(($ac_try" in
3148     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149     *) ac_try_echo=$ac_try;;
3150     esac
3151 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152     $as_echo "$ac_try_echo"; } >&5
3153     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3154 michael 5052 ac_status=$?
3155 michael 5059 if test -s conftest.err; then
3156     sed '10a\
3157     ... rest of stderr output deleted ...
3158     10q' conftest.err >conftest.er1
3159     cat conftest.er1 >&5
3160     fi
3161     rm -f conftest.er1 conftest.err
3162     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163     test $ac_status = 0; }
3164     done
3165 michael 5052
3166 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 michael 5052 /* end confdefs.h. */
3168    
3169     int
3170     main ()
3171     {
3172    
3173     ;
3174     return 0;
3175     }
3176     _ACEOF
3177     ac_clean_files_save=$ac_clean_files
3178 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3179 michael 5052 # Try to create an executable without -o first, disregard a.out.
3180     # It will help us diagnose broken compilers, and finding out an intuition
3181     # of exeext.
3182 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3183     $as_echo_n "checking whether the C compiler works... " >&6; }
3184     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3185    
3186     # The possible output files:
3187     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188    
3189 michael 5052 ac_rmfiles=
3190     for ac_file in $ac_files
3191     do
3192     case $ac_file in
3193 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195     esac
3196     done
3197     rm -f $ac_rmfiles
3198    
3199 michael 5059 if { { ac_try="$ac_link_default"
3200 michael 5052 case "(($ac_try" in
3201     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202     *) ac_try_echo=$ac_try;;
3203     esac
3204 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205     $as_echo "$ac_try_echo"; } >&5
3206 michael 5052 (eval "$ac_link_default") 2>&5
3207     ac_status=$?
3208 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209     test $ac_status = 0; }; then :
3210 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3211     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3212     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3213     # so that the user can short-circuit this test for compilers unknown to
3214     # Autoconf.
3215 michael 5059 for ac_file in $ac_files ''
3216 michael 5052 do
3217     test -f "$ac_file" || continue
3218     case $ac_file in
3219 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220 michael 5052 ;;
3221     [ab].out )
3222     # We found the default executable, but exeext='' is most
3223     # certainly right.
3224     break;;
3225     *.* )
3226 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3227 michael 5052 then :; else
3228     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229     fi
3230     # We set ac_cv_exeext here because the later test for it is not
3231     # safe: cross compilers may not add the suffix if given an `-o'
3232     # argument, so we may need to know it at that point already.
3233     # Even if this section looks crufty: it has the advantage of
3234     # actually working.
3235     break;;
3236     * )
3237     break;;
3238     esac
3239     done
3240     test "$ac_cv_exeext" = no && ac_cv_exeext=
3241    
3242     else
3243 michael 5059 ac_file=''
3244     fi
3245     if test -z "$ac_file"; then :
3246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247     $as_echo "no" >&6; }
3248     $as_echo "$as_me: failed program was:" >&5
3249 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3250    
3251 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253     as_fn_error 77 "C compiler cannot create executables
3254     See \`config.log' for more details" "$LINENO" 5; }
3255     else
3256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257     $as_echo "yes" >&6; }
3258 michael 5052 fi
3259 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3260     $as_echo_n "checking for C compiler default output file name... " >&6; }
3261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262     $as_echo "$ac_file" >&6; }
3263 michael 5052 ac_exeext=$ac_cv_exeext
3264    
3265 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3266 michael 5052 ac_clean_files=$ac_clean_files_save
3267 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3268     $as_echo_n "checking for suffix of executables... " >&6; }
3269     if { { ac_try="$ac_link"
3270 michael 5052 case "(($ac_try" in
3271     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272     *) ac_try_echo=$ac_try;;
3273     esac
3274 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275     $as_echo "$ac_try_echo"; } >&5
3276 michael 5052 (eval "$ac_link") 2>&5
3277     ac_status=$?
3278 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279     test $ac_status = 0; }; then :
3280 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3281     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3282     # work properly (i.e., refer to `conftest.exe'), while it won't with
3283     # `rm'.
3284     for ac_file in conftest.exe conftest conftest.*; do
3285     test -f "$ac_file" || continue
3286     case $ac_file in
3287 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3288 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289     break;;
3290     * ) break;;
3291     esac
3292     done
3293     else
3294 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3297     See \`config.log' for more details" "$LINENO" 5; }
3298 michael 5052 fi
3299 michael 5059 rm -f conftest conftest$ac_cv_exeext
3300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3301     $as_echo "$ac_cv_exeext" >&6; }
3302 michael 5052
3303     rm -f conftest.$ac_ext
3304     EXEEXT=$ac_cv_exeext
3305     ac_exeext=$EXEEXT
3306 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307     /* end confdefs.h. */
3308     #include <stdio.h>
3309     int
3310     main ()
3311     {
3312     FILE *f = fopen ("conftest.out", "w");
3313     return ferror (f) || fclose (f) != 0;
3314    
3315     ;
3316     return 0;
3317     }
3318     _ACEOF
3319     ac_clean_files="$ac_clean_files conftest.out"
3320     # Check that the compiler produces executables we can run. If not, either
3321     # the compiler is broken, or we cross compile.
3322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3323     $as_echo_n "checking whether we are cross compiling... " >&6; }
3324     if test "$cross_compiling" != yes; then
3325     { { ac_try="$ac_link"
3326     case "(($ac_try" in
3327     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328     *) ac_try_echo=$ac_try;;
3329     esac
3330     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331     $as_echo "$ac_try_echo"; } >&5
3332     (eval "$ac_link") 2>&5
3333     ac_status=$?
3334     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335     test $ac_status = 0; }
3336     if { ac_try='./conftest$ac_cv_exeext'
3337     { { case "(($ac_try" in
3338     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339     *) ac_try_echo=$ac_try;;
3340     esac
3341     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342     $as_echo "$ac_try_echo"; } >&5
3343     (eval "$ac_try") 2>&5
3344     ac_status=$?
3345     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346     test $ac_status = 0; }; }; then
3347     cross_compiling=no
3348     else
3349     if test "$cross_compiling" = maybe; then
3350     cross_compiling=yes
3351     else
3352     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354     as_fn_error $? "cannot run C compiled programs.
3355     If you meant to cross compile, use \`--host'.
3356     See \`config.log' for more details" "$LINENO" 5; }
3357     fi
3358     fi
3359     fi
3360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3361     $as_echo "$cross_compiling" >&6; }
3362    
3363     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3364     ac_clean_files=$ac_clean_files_save
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3366     $as_echo_n "checking for suffix of object files... " >&6; }
3367     if ${ac_cv_objext+:} false; then :
3368     $as_echo_n "(cached) " >&6
3369 michael 5052 else
3370 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 michael 5052 /* end confdefs.h. */
3372    
3373     int
3374     main ()
3375     {
3376    
3377     ;
3378     return 0;
3379     }
3380     _ACEOF
3381     rm -f conftest.o conftest.obj
3382 michael 5059 if { { ac_try="$ac_compile"
3383 michael 5052 case "(($ac_try" in
3384     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385     *) ac_try_echo=$ac_try;;
3386     esac
3387 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388     $as_echo "$ac_try_echo"; } >&5
3389 michael 5052 (eval "$ac_compile") 2>&5
3390     ac_status=$?
3391 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392     test $ac_status = 0; }; then :
3393 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3394     test -f "$ac_file" || continue;
3395     case $ac_file in
3396 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398     break;;
3399     esac
3400     done
3401     else
3402 michael 5059 $as_echo "$as_me: failed program was:" >&5
3403 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3404    
3405 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407     as_fn_error $? "cannot compute suffix of object files: cannot compile
3408     See \`config.log' for more details" "$LINENO" 5; }
3409 michael 5052 fi
3410     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3411     fi
3412 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413     $as_echo "$ac_cv_objext" >&6; }
3414 michael 5052 OBJEXT=$ac_cv_objext
3415     ac_objext=$OBJEXT
3416 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3417     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3418     if ${ac_cv_c_compiler_gnu+:} false; then :
3419     $as_echo_n "(cached) " >&6
3420 michael 5052 else
3421 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 michael 5052 /* end confdefs.h. */
3423    
3424     int
3425     main ()
3426     {
3427     #ifndef __GNUC__
3428     choke me
3429     #endif
3430    
3431     ;
3432     return 0;
3433     }
3434     _ACEOF
3435 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3436 michael 5052 ac_compiler_gnu=yes
3437     else
3438 michael 5059 ac_compiler_gnu=no
3439 michael 5052 fi
3440     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442    
3443     fi
3444 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3445     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3446     if test $ac_compiler_gnu = yes; then
3447     GCC=yes
3448     else
3449     GCC=
3450     fi
3451 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3452     ac_save_CFLAGS=$CFLAGS
3453 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3454     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3455     if ${ac_cv_prog_cc_g+:} false; then :
3456     $as_echo_n "(cached) " >&6
3457 michael 5052 else
3458     ac_save_c_werror_flag=$ac_c_werror_flag
3459     ac_c_werror_flag=yes
3460     ac_cv_prog_cc_g=no
3461     CFLAGS="-g"
3462 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 michael 5052 /* end confdefs.h. */
3464    
3465     int
3466     main ()
3467     {
3468    
3469     ;
3470     return 0;
3471     }
3472     _ACEOF
3473 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3474 michael 5052 ac_cv_prog_cc_g=yes
3475     else
3476 michael 5059 CFLAGS=""
3477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 michael 5052 /* end confdefs.h. */
3479    
3480     int
3481     main ()
3482     {
3483    
3484     ;
3485     return 0;
3486     }
3487     _ACEOF
3488 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3489    
3490 michael 5052 else
3491 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3492 michael 5052 CFLAGS="-g"
3493 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 michael 5052 /* end confdefs.h. */
3495    
3496     int
3497     main ()
3498     {
3499    
3500     ;
3501     return 0;
3502     }
3503     _ACEOF
3504 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3505 michael 5052 ac_cv_prog_cc_g=yes
3506     fi
3507     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508     fi
3509     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510     fi
3511     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512     ac_c_werror_flag=$ac_save_c_werror_flag
3513     fi
3514 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3515     $as_echo "$ac_cv_prog_cc_g" >&6; }
3516 michael 5052 if test "$ac_test_CFLAGS" = set; then
3517     CFLAGS=$ac_save_CFLAGS
3518     elif test $ac_cv_prog_cc_g = yes; then
3519     if test "$GCC" = yes; then
3520     CFLAGS="-g -O2"
3521     else
3522     CFLAGS="-g"
3523     fi
3524     else
3525     if test "$GCC" = yes; then
3526     CFLAGS="-O2"
3527     else
3528     CFLAGS=
3529     fi
3530     fi
3531 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3532     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3533     if ${ac_cv_prog_cc_c89+:} false; then :
3534     $as_echo_n "(cached) " >&6
3535 michael 5052 else
3536     ac_cv_prog_cc_c89=no
3537     ac_save_CC=$CC
3538 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 michael 5052 /* end confdefs.h. */
3540     #include <stdarg.h>
3541     #include <stdio.h>
3542 michael 5059 struct stat;
3543 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3544     struct buf { int x; };
3545     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3546     static char *e (p, i)
3547     char **p;
3548     int i;
3549     {
3550     return p[i];
3551     }
3552     static char *f (char * (*g) (char **, int), char **p, ...)
3553     {
3554     char *s;
3555     va_list v;
3556     va_start (v,p);
3557     s = g (p, va_arg (v,int));
3558     va_end (v);
3559     return s;
3560     }
3561    
3562     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3563     function prototypes and stuff, but not '\xHH' hex character constants.
3564     These don't provoke an error unfortunately, instead are silently treated
3565     as 'x'. The following induces an error, until -std is added to get
3566     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3567     array size at least. It's necessary to write '\x00'==0 to get something
3568     that's true only with -std. */
3569     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570    
3571     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3572     inside strings and character constants. */
3573     #define FOO(x) 'x'
3574     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575    
3576     int test (int i, double x);
3577     struct s1 {int (*f) (int a);};
3578     struct s2 {int (*f) (double a);};
3579     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580     int argc;
3581     char **argv;
3582     int
3583     main ()
3584     {
3585     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586     ;
3587     return 0;
3588     }
3589     _ACEOF
3590     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3591     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592     do
3593     CC="$ac_save_CC $ac_arg"
3594 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3595 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3596     fi
3597     rm -f core conftest.err conftest.$ac_objext
3598     test "x$ac_cv_prog_cc_c89" != "xno" && break
3599     done
3600     rm -f conftest.$ac_ext
3601     CC=$ac_save_CC
3602    
3603     fi
3604     # AC_CACHE_VAL
3605     case "x$ac_cv_prog_cc_c89" in
3606     x)
3607 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3608     $as_echo "none needed" >&6; } ;;
3609 michael 5052 xno)
3610 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611     $as_echo "unsupported" >&6; } ;;
3612 michael 5052 *)
3613     CC="$CC $ac_cv_prog_cc_c89"
3614 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3616 michael 5052 esac
3617 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3618 michael 5052
3619 michael 5059 fi
3620 michael 5052
3621     ac_ext=c
3622     ac_cpp='$CPP $CPPFLAGS'
3623     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626    
3627 michael 5059 ac_ext=c
3628     ac_cpp='$CPP $CPPFLAGS'
3629     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3633     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3634     if ${am_cv_prog_cc_c_o+:} false; then :
3635     $as_echo_n "(cached) " >&6
3636     else
3637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638     /* end confdefs.h. */
3639 michael 5052
3640 michael 5059 int
3641     main ()
3642     {
3643 michael 5052
3644 michael 5059 ;
3645     return 0;
3646     }
3647     _ACEOF
3648     # Make sure it works both with $CC and with simple cc.
3649     # Following AC_PROG_CC_C_O, we do the test twice because some
3650     # compilers refuse to overwrite an existing .o file with -o,
3651     # though they will create one.
3652     am_cv_prog_cc_c_o=yes
3653     for am_i in 1 2; do
3654     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3655     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3656     ac_status=$?
3657     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658     (exit $ac_status); } \
3659     && test -f conftest2.$ac_objext; then
3660     : OK
3661     else
3662     am_cv_prog_cc_c_o=no
3663     break
3664     fi
3665     done
3666     rm -f core conftest*
3667     unset am_i
3668 michael 5052 fi
3669 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3670     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3671     if test "$am_cv_prog_cc_c_o" != yes; then
3672     # Losing compiler, so override with the script.
3673     # FIXME: It is wrong to rewrite CC.
3674     # But if we don't then we get into trouble of one sort or another.
3675     # A longer-term fix would be to have automake use am__CC in this case,
3676     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3677     CC="$am_aux_dir/compile $CC"
3678 michael 5052 fi
3679 michael 5059 ac_ext=c
3680     ac_cpp='$CPP $CPPFLAGS'
3681     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 michael 5052
3685    
3686     depcc="$CC" am_compiler_list=
3687    
3688 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3689     $as_echo_n "checking dependency style of $depcc... " >&6; }
3690     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3691     $as_echo_n "(cached) " >&6
3692 michael 5052 else
3693     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3694     # We make a subdir and do the tests there. Otherwise we can end up
3695     # making bogus files that we don't know about and never remove. For
3696     # instance it was reported that on HP-UX the gcc test will end up
3697 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3698     # in D".
3699     rm -rf conftest.dir
3700 michael 5052 mkdir conftest.dir
3701     # Copy depcomp to subdir because otherwise we won't find it if we're
3702     # using a relative directory.
3703     cp "$am_depcomp" conftest.dir
3704     cd conftest.dir
3705     # We will build objects and dependencies in a subdirectory because
3706     # it helps to detect inapplicable dependency modes. For instance
3707     # both Tru64's cc and ICC support -MD to output dependencies as a
3708     # side effect of compilation, but ICC will put the dependencies in
3709     # the current directory while Tru64 will put them in the object
3710     # directory.
3711     mkdir sub
3712    
3713     am_cv_CC_dependencies_compiler_type=none
3714     if test "$am_compiler_list" = ""; then
3715     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3716     fi
3717 michael 5059 am__universal=false
3718     case " $depcc " in #(
3719     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3720     esac
3721    
3722 michael 5052 for depmode in $am_compiler_list; do
3723     # Setup a source with many dependencies, because some compilers
3724     # like to wrap large dependency lists on column 80 (with \), and
3725     # we should not choose a depcomp mode which is confused by this.
3726     #
3727     # We need to recreate these files for each test, as the compiler may
3728     # overwrite some of them when testing with obscure command lines.
3729     # This happens at least with the AIX C compiler.
3730     : > sub/conftest.c
3731     for i in 1 2 3 4 5 6; do
3732     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3733 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3734     # Solaris 10 /bin/sh.
3735     echo '/* dummy */' > sub/conftst$i.h
3736 michael 5052 done
3737     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3738    
3739 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3740     # mode. It turns out that the SunPro C++ compiler does not properly
3741     # handle '-M -o', and we need to detect this. Also, some Intel
3742     # versions had trouble with output in subdirs.
3743     am__obj=sub/conftest.${OBJEXT-o}
3744     am__minus_obj="-o $am__obj"
3745 michael 5052 case $depmode in
3746 michael 5059 gcc)
3747     # This depmode causes a compiler race in universal mode.
3748     test "$am__universal" = false || continue
3749     ;;
3750 michael 5052 nosideeffect)
3751 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3752     # only be used when explicitly requested.
3753 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3754     continue
3755     else
3756     break
3757     fi
3758     ;;
3759 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3760     # This compiler won't grok '-c -o', but also, the minuso test has
3761     # not run yet. These depmodes are late enough in the game, and
3762     # so weak that their functioning should not be impacted.
3763     am__obj=conftest.${OBJEXT-o}
3764     am__minus_obj=
3765     ;;
3766 michael 5052 none) break ;;
3767     esac
3768     if depmode=$depmode \
3769 michael 5059 source=sub/conftest.c object=$am__obj \
3770 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3771 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3772 michael 5052 >/dev/null 2>conftest.err &&
3773 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3774 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3775 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3776 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3777     # icc doesn't choke on unknown options, it will just issue warnings
3778     # or remarks (even with -Werror). So we grep stderr for any message
3779     # that says an option was ignored or not supported.
3780     # When given -MP, icc 7.0 and 7.1 complain thusly:
3781     # icc: Command line warning: ignoring option '-M'; no argument required
3782     # The diagnosis changed in icc 8.0:
3783     # icc: Command line remark: option '-MP' not supported
3784     if (grep 'ignoring option' conftest.err ||
3785     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3786     am_cv_CC_dependencies_compiler_type=$depmode
3787     break
3788     fi
3789     fi
3790     done
3791    
3792     cd ..
3793     rm -rf conftest.dir
3794     else
3795     am_cv_CC_dependencies_compiler_type=none
3796     fi
3797    
3798     fi
3799 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3800     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3801 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3802    
3803 michael 5059 if
3804 michael 5052 test "x$enable_dependency_tracking" != xno \
3805     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3806     am__fastdepCC_TRUE=
3807     am__fastdepCC_FALSE='#'
3808     else
3809     am__fastdepCC_TRUE='#'
3810     am__fastdepCC_FALSE=
3811     fi
3812    
3813    
3814 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3815     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3816     if ${ac_cv_prog_cc_c99+:} false; then :
3817     $as_echo_n "(cached) " >&6
3818 michael 5052 else
3819 michael 5059 ac_cv_prog_cc_c99=no
3820     ac_save_CC=$CC
3821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822     /* end confdefs.h. */
3823     #include <stdarg.h>
3824     #include <stdbool.h>
3825     #include <stdlib.h>
3826     #include <wchar.h>
3827     #include <stdio.h>
3828    
3829     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3830     #define debug(...) fprintf (stderr, __VA_ARGS__)
3831     #define showlist(...) puts (#__VA_ARGS__)
3832     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3833     static void
3834     test_varargs_macros (void)
3835     {
3836     int x = 1234;
3837     int y = 5678;
3838     debug ("Flag");
3839     debug ("X = %d\n", x);
3840     showlist (The first, second, and third items.);
3841     report (x>y, "x is %d but y is %d", x, y);
3842     }
3843    
3844     // Check long long types.
3845     #define BIG64 18446744073709551615ull
3846     #define BIG32 4294967295ul
3847     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3848     #if !BIG_OK
3849     your preprocessor is broken;
3850     #endif
3851     #if BIG_OK
3852     #else
3853     your preprocessor is broken;
3854     #endif
3855     static long long int bignum = -9223372036854775807LL;
3856     static unsigned long long int ubignum = BIG64;
3857    
3858     struct incomplete_array
3859     {
3860     int datasize;
3861     double data[];
3862     };
3863    
3864     struct named_init {
3865     int number;
3866     const wchar_t *name;
3867     double average;
3868     };
3869    
3870     typedef const char *ccp;
3871    
3872     static inline int
3873     test_restrict (ccp restrict text)
3874     {
3875     // See if C++-style comments work.
3876     // Iterate through items via the restricted pointer.
3877     // Also check for declarations in for loops.
3878     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3879     continue;
3880     return 0;
3881     }
3882    
3883     // Check varargs and va_copy.
3884     static void
3885     test_varargs (const char *format, ...)
3886     {
3887     va_list args;
3888     va_start (args, format);
3889     va_list args_copy;
3890     va_copy (args_copy, args);
3891    
3892     const char *str;
3893     int number;
3894     float fnumber;
3895    
3896     while (*format)
3897     {
3898     switch (*format++)
3899     {
3900     case 's': // string
3901     str = va_arg (args_copy, const char *);
3902     break;
3903     case 'd': // int
3904     number = va_arg (args_copy, int);
3905     break;
3906     case 'f': // float
3907     fnumber = va_arg (args_copy, double);
3908     break;
3909     default:
3910     break;
3911     }
3912     }
3913     va_end (args_copy);
3914     va_end (args);
3915     }
3916    
3917     int
3918     main ()
3919     {
3920    
3921     // Check bool.
3922     _Bool success = false;
3923    
3924     // Check restrict.
3925     if (test_restrict ("String literal") == 0)
3926     success = true;
3927     char *restrict newvar = "Another string";
3928    
3929     // Check varargs.
3930     test_varargs ("s, d' f .", "string", 65, 34.234);
3931     test_varargs_macros ();
3932    
3933     // Check flexible array members.
3934     struct incomplete_array *ia =
3935     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3936     ia->datasize = 10;
3937     for (int i = 0; i < ia->datasize; ++i)
3938     ia->data[i] = i * 1.234;
3939    
3940     // Check named initializers.
3941     struct named_init ni = {
3942     .number = 34,
3943     .name = L"Test wide string",
3944     .average = 543.34343,
3945     };
3946    
3947     ni.number = 58;
3948    
3949     int dynamic_array[ni.number];
3950     dynamic_array[ni.number - 1] = 543;
3951    
3952     // work around unused variable warnings
3953     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3954     || dynamic_array[ni.number - 1] != 543);
3955    
3956     ;
3957     return 0;
3958     }
3959     _ACEOF
3960     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3961     do
3962     CC="$ac_save_CC $ac_arg"
3963     if ac_fn_c_try_compile "$LINENO"; then :
3964     ac_cv_prog_cc_c99=$ac_arg
3965 michael 5052 fi
3966 michael 5059 rm -f core conftest.err conftest.$ac_objext
3967     test "x$ac_cv_prog_cc_c99" != "xno" && break
3968     done
3969     rm -f conftest.$ac_ext
3970     CC=$ac_save_CC
3971 michael 5052
3972 michael 5059 fi
3973     # AC_CACHE_VAL
3974     case "x$ac_cv_prog_cc_c99" in
3975     x)
3976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977     $as_echo "none needed" >&6; } ;;
3978     xno)
3979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980     $as_echo "unsupported" >&6; } ;;
3981     *)
3982     CC="$CC $ac_cv_prog_cc_c99"
3983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3984     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3985     esac
3986     if test "x$ac_cv_prog_cc_c99" != xno; then :
3987 michael 5052
3988     fi
3989    
3990    
3991 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
3992     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
3993 michael 5052 fi
3994 michael 5059 case `pwd` in
3995     *\ * | *\ *)
3996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3997     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3998     esac
3999 michael 5052
4000    
4001 michael 5059
4002     macro_version='2.4.4'
4003     macro_revision='2.4.4'
4004    
4005    
4006    
4007    
4008    
4009    
4010    
4011    
4012    
4013    
4014    
4015    
4016    
4017     ltmain=$ac_aux_dir/ltmain.sh
4018    
4019 michael 5052 # Make sure we can run config.sub.
4020     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4021 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4022 michael 5052
4023 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4024     $as_echo_n "checking build system type... " >&6; }
4025     if ${ac_cv_build+:} false; then :
4026     $as_echo_n "(cached) " >&6
4027 michael 5052 else
4028     ac_build_alias=$build_alias
4029     test "x$ac_build_alias" = x &&
4030     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4031     test "x$ac_build_alias" = x &&
4032 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4033 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4034 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4035 michael 5052
4036     fi
4037 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4038     $as_echo "$ac_cv_build" >&6; }
4039 michael 5052 case $ac_cv_build in
4040     *-*-*) ;;
4041 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4042 michael 5052 esac
4043     build=$ac_cv_build
4044     ac_save_IFS=$IFS; IFS='-'
4045     set x $ac_cv_build
4046     shift
4047     build_cpu=$1
4048     build_vendor=$2
4049     shift; shift
4050     # Remember, the first character of IFS is used to create $*,
4051     # except with old shells:
4052     build_os=$*
4053     IFS=$ac_save_IFS
4054     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4055    
4056    
4057 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4058     $as_echo_n "checking host system type... " >&6; }
4059     if ${ac_cv_host+:} false; then :
4060     $as_echo_n "(cached) " >&6
4061 michael 5052 else
4062     if test "x$host_alias" = x; then
4063     ac_cv_host=$ac_cv_build
4064     else
4065     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4066 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4067 michael 5052 fi
4068    
4069     fi
4070 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4071     $as_echo "$ac_cv_host" >&6; }
4072 michael 5052 case $ac_cv_host in
4073     *-*-*) ;;
4074 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4075 michael 5052 esac
4076     host=$ac_cv_host
4077     ac_save_IFS=$IFS; IFS='-'
4078     set x $ac_cv_host
4079     shift
4080     host_cpu=$1
4081     host_vendor=$2
4082     shift; shift
4083     # Remember, the first character of IFS is used to create $*,
4084     # except with old shells:
4085     host_os=$*
4086     IFS=$ac_save_IFS
4087     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4088    
4089    
4090 michael 5059 # Backslashify metacharacters that are still active within
4091     # double-quoted strings.
4092     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4093    
4094     # Same as above, but do not quote variable references.
4095     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4096    
4097     # Sed substitution to delay expansion of an escaped shell variable in a
4098     # double_quote_subst'ed string.
4099     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4100    
4101     # Sed substitution to delay expansion of an escaped single quote.
4102     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4103    
4104     # Sed substitution to avoid accidental globbing in evaled expressions
4105     no_glob_subst='s/\*/\\\*/g'
4106    
4107     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4108     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4109     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4110    
4111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4112     $as_echo_n "checking how to print strings... " >&6; }
4113     # Test print first, because it will be a builtin if present.
4114     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4115     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4116     ECHO='print -r --'
4117     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4118     ECHO='printf %s\n'
4119 michael 5052 else
4120 michael 5059 # Use this function as a fallback that always works.
4121     func_fallback_echo ()
4122     {
4123     eval 'cat <<_LTECHO_EOF
4124     $1
4125     _LTECHO_EOF'
4126     }
4127     ECHO='func_fallback_echo'
4128     fi
4129    
4130     # func_echo_all arg...
4131     # Invoke $ECHO with all args, space-separated.
4132     func_echo_all ()
4133     {
4134     $ECHO ""
4135     }
4136    
4137     case $ECHO in
4138     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4139     $as_echo "printf" >&6; } ;;
4140     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4141     $as_echo "print -r" >&6; } ;;
4142     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4143     $as_echo "cat" >&6; } ;;
4144     esac
4145    
4146    
4147    
4148    
4149    
4150    
4151    
4152    
4153    
4154    
4155    
4156    
4157    
4158    
4159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4160     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4161     if ${ac_cv_path_SED+:} false; then :
4162     $as_echo_n "(cached) " >&6
4163     else
4164     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4165     for ac_i in 1 2 3 4 5 6 7; do
4166     ac_script="$ac_script$as_nl$ac_script"
4167     done
4168     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4169     { ac_script=; unset ac_script;}
4170     if test -z "$SED"; then
4171     ac_path_SED_found=false
4172     # Loop through the user's path and test for each of PROGNAME-LIST
4173     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 michael 5052 for as_dir in $PATH
4175     do
4176     IFS=$as_save_IFS
4177     test -z "$as_dir" && as_dir=.
4178 michael 5059 for ac_prog in sed gsed; do
4179 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4180 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4181     as_fn_executable_p "$ac_path_SED" || continue
4182     # Check for GNU ac_path_SED and select it if it is found.
4183     # Check for GNU $ac_path_SED
4184     case `"$ac_path_SED" --version 2>&1` in
4185     *GNU*)
4186     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4187     *)
4188     ac_count=0
4189     $as_echo_n 0123456789 >"conftest.in"
4190     while :
4191     do
4192     cat "conftest.in" "conftest.in" >"conftest.tmp"
4193     mv "conftest.tmp" "conftest.in"
4194     cp "conftest.in" "conftest.nl"
4195     $as_echo '' >> "conftest.nl"
4196     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198     as_fn_arith $ac_count + 1 && ac_count=$as_val
4199     if test $ac_count -gt ${ac_path_SED_max-0}; then
4200     # Best one so far, save it but keep looking for a better one
4201     ac_cv_path_SED="$ac_path_SED"
4202     ac_path_SED_max=$ac_count
4203     fi
4204     # 10*(2^10) chars as input seems more than enough
4205     test $ac_count -gt 10 && break
4206     done
4207     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208     esac
4209    
4210     $ac_path_SED_found && break 3
4211 michael 5052 done
4212     done
4213 michael 5059 done
4214     IFS=$as_save_IFS
4215     if test -z "$ac_cv_path_SED"; then
4216     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4217 michael 5052 fi
4218 michael 5059 else
4219     ac_cv_path_SED=$SED
4220     fi
4221 michael 5052
4222     fi
4223 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4224     $as_echo "$ac_cv_path_SED" >&6; }
4225     SED="$ac_cv_path_SED"
4226     rm -f conftest.sed
4227 michael 5052
4228 michael 5059 test -z "$SED" && SED=sed
4229     Xsed="$SED -e 1s/^X//"
4230 michael 5052
4231 michael 5059
4232    
4233    
4234    
4235    
4236    
4237    
4238    
4239    
4240    
4241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243     if ${ac_cv_path_GREP+:} false; then :
4244     $as_echo_n "(cached) " >&6
4245 michael 5052 else
4246 michael 5059 if test -z "$GREP"; then
4247 michael 5052 ac_path_GREP_found=false
4248 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4249     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251     do
4252     IFS=$as_save_IFS
4253     test -z "$as_dir" && as_dir=.
4254 michael 5059 for ac_prog in grep ggrep; do
4255     for ac_exec_ext in '' $ac_executable_extensions; do
4256     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257     as_fn_executable_p "$ac_path_GREP" || continue
4258     # Check for GNU ac_path_GREP and select it if it is found.
4259 michael 5052 # Check for GNU $ac_path_GREP
4260     case `"$ac_path_GREP" --version 2>&1` in
4261     *GNU*)
4262     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263     *)
4264     ac_count=0
4265 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4266 michael 5052 while :
4267     do
4268     cat "conftest.in" "conftest.in" >"conftest.tmp"
4269     mv "conftest.tmp" "conftest.in"
4270     cp "conftest.in" "conftest.nl"
4271 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4272 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276     # Best one so far, save it but keep looking for a better one
4277     ac_cv_path_GREP="$ac_path_GREP"
4278     ac_path_GREP_max=$ac_count
4279     fi
4280     # 10*(2^10) chars as input seems more than enough
4281     test $ac_count -gt 10 && break
4282     done
4283     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284     esac
4285    
4286 michael 5059 $ac_path_GREP_found && break 3
4287     done
4288 michael 5052 done
4289 michael 5059 done
4290 michael 5052 IFS=$as_save_IFS
4291 michael 5059 if test -z "$ac_cv_path_GREP"; then
4292     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293     fi
4294 michael 5052 else
4295     ac_cv_path_GREP=$GREP
4296     fi
4297    
4298     fi
4299 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300     $as_echo "$ac_cv_path_GREP" >&6; }
4301 michael 5052 GREP="$ac_cv_path_GREP"
4302    
4303    
4304 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305     $as_echo_n "checking for egrep... " >&6; }
4306     if ${ac_cv_path_EGREP+:} false; then :
4307     $as_echo_n "(cached) " >&6
4308 michael 5052 else
4309     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310     then ac_cv_path_EGREP="$GREP -E"
4311     else
4312 michael 5059 if test -z "$EGREP"; then
4313 michael 5052 ac_path_EGREP_found=false
4314 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4315     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317     do
4318     IFS=$as_save_IFS
4319     test -z "$as_dir" && as_dir=.
4320 michael 5059 for ac_prog in egrep; do
4321     for ac_exec_ext in '' $ac_executable_extensions; do
4322     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323     as_fn_executable_p "$ac_path_EGREP" || continue
4324     # Check for GNU ac_path_EGREP and select it if it is found.
4325 michael 5052 # Check for GNU $ac_path_EGREP
4326     case `"$ac_path_EGREP" --version 2>&1` in
4327     *GNU*)
4328     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329     *)
4330     ac_count=0
4331 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4332 michael 5052 while :
4333     do
4334     cat "conftest.in" "conftest.in" >"conftest.tmp"
4335     mv "conftest.tmp" "conftest.in"
4336     cp "conftest.in" "conftest.nl"
4337 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4338 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4341 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342     # Best one so far, save it but keep looking for a better one
4343     ac_cv_path_EGREP="$ac_path_EGREP"
4344     ac_path_EGREP_max=$ac_count
4345     fi
4346     # 10*(2^10) chars as input seems more than enough
4347     test $ac_count -gt 10 && break
4348     done
4349     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350     esac
4351    
4352 michael 5059 $ac_path_EGREP_found && break 3
4353     done
4354 michael 5052 done
4355 michael 5059 done
4356 michael 5052 IFS=$as_save_IFS
4357 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4358     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359     fi
4360     else
4361     ac_cv_path_EGREP=$EGREP
4362 michael 5052 fi
4363    
4364 michael 5059 fi
4365 michael 5052 fi
4366 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367     $as_echo "$ac_cv_path_EGREP" >&6; }
4368     EGREP="$ac_cv_path_EGREP"
4369 michael 5052
4370 michael 5059
4371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4372     $as_echo_n "checking for fgrep... " >&6; }
4373     if ${ac_cv_path_FGREP+:} false; then :
4374     $as_echo_n "(cached) " >&6
4375 michael 5052 else
4376 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4377     then ac_cv_path_FGREP="$GREP -F"
4378     else
4379     if test -z "$FGREP"; then
4380     ac_path_FGREP_found=false
4381     # Loop through the user's path and test for each of PROGNAME-LIST
4382     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384     do
4385     IFS=$as_save_IFS
4386     test -z "$as_dir" && as_dir=.
4387     for ac_prog in fgrep; do
4388     for ac_exec_ext in '' $ac_executable_extensions; do
4389     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4390     as_fn_executable_p "$ac_path_FGREP" || continue
4391     # Check for GNU ac_path_FGREP and select it if it is found.
4392     # Check for GNU $ac_path_FGREP
4393     case `"$ac_path_FGREP" --version 2>&1` in
4394     *GNU*)
4395     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4396     *)
4397     ac_count=0
4398     $as_echo_n 0123456789 >"conftest.in"
4399     while :
4400     do
4401     cat "conftest.in" "conftest.in" >"conftest.tmp"
4402     mv "conftest.tmp" "conftest.in"
4403     cp "conftest.in" "conftest.nl"
4404     $as_echo 'FGREP' >> "conftest.nl"
4405     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407     as_fn_arith $ac_count + 1 && ac_count=$as_val
4408     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4409     # Best one so far, save it but keep looking for a better one
4410     ac_cv_path_FGREP="$ac_path_FGREP"
4411     ac_path_FGREP_max=$ac_count
4412     fi
4413     # 10*(2^10) chars as input seems more than enough
4414     test $ac_count -gt 10 && break
4415     done
4416     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417     esac
4418    
4419     $ac_path_FGREP_found && break 3
4420     done
4421     done
4422     done
4423     IFS=$as_save_IFS
4424     if test -z "$ac_cv_path_FGREP"; then
4425     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426     fi
4427     else
4428     ac_cv_path_FGREP=$FGREP
4429 michael 5052 fi
4430    
4431     fi
4432     fi
4433 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4434     $as_echo "$ac_cv_path_FGREP" >&6; }
4435     FGREP="$ac_cv_path_FGREP"
4436 michael 5052
4437    
4438 michael 5059 test -z "$GREP" && GREP=grep
4439 michael 5052
4440 michael 5059
4441    
4442    
4443    
4444    
4445    
4446    
4447    
4448    
4449    
4450    
4451    
4452    
4453    
4454    
4455    
4456    
4457    
4458 michael 5052 # Check whether --with-gnu-ld was given.
4459 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4460     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4461 michael 5052 else
4462     with_gnu_ld=no
4463     fi
4464    
4465     ac_prog=ld
4466 michael 5059 if test yes = "$GCC"; then
4467 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4468 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4469     $as_echo_n "checking for ld used by $CC... " >&6; }
4470 michael 5052 case $host in
4471     *-*-mingw*)
4472 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4473 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4474     *)
4475     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4476     esac
4477     case $ac_prog in
4478     # Accept absolute paths.
4479     [\\/]* | ?:[\\/]*)
4480     re_direlt='/[^/][^/]*/\.\./'
4481     # Canonicalize the pathname of ld
4482 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4483     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4484     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4485 michael 5052 done
4486 michael 5059 test -z "$LD" && LD=$ac_prog
4487 michael 5052 ;;
4488     "")
4489     # If it fails, then pretend we aren't using GCC.
4490     ac_prog=ld
4491     ;;
4492     *)
4493     # If it is relative, then search for the first ld in PATH.
4494     with_gnu_ld=unknown
4495     ;;
4496     esac
4497 michael 5059 elif test yes = "$with_gnu_ld"; then
4498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4499     $as_echo_n "checking for GNU ld... " >&6; }
4500 michael 5052 else
4501 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4502     $as_echo_n "checking for non-GNU ld... " >&6; }
4503 michael 5052 fi
4504 michael 5059 if ${lt_cv_path_LD+:} false; then :
4505     $as_echo_n "(cached) " >&6
4506 michael 5052 else
4507     if test -z "$LD"; then
4508 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4509 michael 5052 for ac_dir in $PATH; do
4510 michael 5059 IFS=$lt_save_ifs
4511 michael 5052 test -z "$ac_dir" && ac_dir=.
4512     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4513 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4514 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4515     # but apparently some variants of GNU ld only accept -v.
4516     # Break only if it was the GNU/non-GNU ld that we prefer.
4517     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4518     *GNU* | *'with BFD'*)
4519 michael 5059 test no != "$with_gnu_ld" && break
4520 michael 5052 ;;
4521     *)
4522 michael 5059 test yes != "$with_gnu_ld" && break
4523 michael 5052 ;;
4524     esac
4525     fi
4526     done
4527 michael 5059 IFS=$lt_save_ifs
4528 michael 5052 else
4529 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4530 michael 5052 fi
4531     fi
4532    
4533 michael 5059 LD=$lt_cv_path_LD
4534 michael 5052 if test -n "$LD"; then
4535 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4536     $as_echo "$LD" >&6; }
4537 michael 5052 else
4538 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539     $as_echo "no" >&6; }
4540 michael 5052 fi
4541 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4543     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4544     if ${lt_cv_prog_gnu_ld+:} false; then :
4545     $as_echo_n "(cached) " >&6
4546 michael 5052 else
4547     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4548     case `$LD -v 2>&1 </dev/null` in
4549     *GNU* | *'with BFD'*)
4550     lt_cv_prog_gnu_ld=yes
4551     ;;
4552     *)
4553     lt_cv_prog_gnu_ld=no
4554     ;;
4555     esac
4556     fi
4557 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4558     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4559 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4560    
4561    
4562    
4563 michael 5059
4564    
4565    
4566    
4567    
4568    
4569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4570     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4571     if ${lt_cv_path_NM+:} false; then :
4572     $as_echo_n "(cached) " >&6
4573 michael 5052 else
4574     if test -n "$NM"; then
4575     # Let the user override the test.
4576 michael 5059 lt_cv_path_NM=$NM
4577 michael 5052 else
4578 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4579 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4580     lt_nm_to_check="$lt_nm_to_check nm"
4581     fi
4582     for lt_tmp_nm in $lt_nm_to_check; do
4583 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4584 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4585 michael 5059 IFS=$lt_save_ifs
4586 michael 5052 test -z "$ac_dir" && ac_dir=.
4587 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4588     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4589 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4590 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4591 michael 5052 # nm: unknown option "B" ignored
4592     # Tru64's nm complains that /dev/null is an invalid object file
4593 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4594     case $build_os in
4595     mingw*) lt_bad_file=conftest.nm/nofile ;;
4596     *) lt_bad_file=/dev/null ;;
4597     esac
4598     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4599     *$lt_bad_file* | *'Invalid file or object type'*)
4600 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4601 michael 5059 break 2
4602 michael 5052 ;;
4603     *)
4604     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605     */dev/null*)
4606     lt_cv_path_NM="$tmp_nm -p"
4607 michael 5059 break 2
4608 michael 5052 ;;
4609     *)
4610     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4611     continue # so that we can try to find one that supports BSD flags
4612     ;;
4613     esac
4614     ;;
4615     esac
4616     fi
4617     done
4618 michael 5059 IFS=$lt_save_ifs
4619 michael 5052 done
4620 michael 5059 : ${lt_cv_path_NM=no}
4621 michael 5052 fi
4622     fi
4623 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4624     $as_echo "$lt_cv_path_NM" >&6; }
4625     if test no != "$lt_cv_path_NM"; then
4626     NM=$lt_cv_path_NM
4627     else
4628     # Didn't find any BSD compatible name lister, look for dumpbin.
4629     if test -n "$DUMPBIN"; then :
4630     # Let the user override the test.
4631     else
4632     if test -n "$ac_tool_prefix"; then
4633     for ac_prog in dumpbin "link -dump"
4634     do
4635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638     $as_echo_n "checking for $ac_word... " >&6; }
4639     if ${ac_cv_prog_DUMPBIN+:} false; then :
4640     $as_echo_n "(cached) " >&6
4641     else
4642     if test -n "$DUMPBIN"; then
4643     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4644     else
4645     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646     for as_dir in $PATH
4647     do
4648     IFS=$as_save_IFS
4649     test -z "$as_dir" && as_dir=.
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655     fi
4656     done
4657     done
4658     IFS=$as_save_IFS
4659 michael 5052
4660 michael 5059 fi
4661     fi
4662     DUMPBIN=$ac_cv_prog_DUMPBIN
4663     if test -n "$DUMPBIN"; then
4664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4665     $as_echo "$DUMPBIN" >&6; }
4666     else
4667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668     $as_echo "no" >&6; }
4669     fi
4670    
4671    
4672     test -n "$DUMPBIN" && break
4673     done
4674     fi
4675     if test -z "$DUMPBIN"; then
4676     ac_ct_DUMPBIN=$DUMPBIN
4677     for ac_prog in dumpbin "link -dump"
4678     do
4679     # Extract the first word of "$ac_prog", so it can be a program name with args.
4680     set dummy $ac_prog; ac_word=$2
4681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682     $as_echo_n "checking for $ac_word... " >&6; }
4683     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4684     $as_echo_n "(cached) " >&6
4685     else
4686     if test -n "$ac_ct_DUMPBIN"; then
4687     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4688     else
4689     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690     for as_dir in $PATH
4691     do
4692     IFS=$as_save_IFS
4693     test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699     fi
4700     done
4701     done
4702     IFS=$as_save_IFS
4703    
4704     fi
4705     fi
4706     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4707     if test -n "$ac_ct_DUMPBIN"; then
4708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4709     $as_echo "$ac_ct_DUMPBIN" >&6; }
4710     else
4711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712     $as_echo "no" >&6; }
4713     fi
4714    
4715    
4716     test -n "$ac_ct_DUMPBIN" && break
4717     done
4718    
4719     if test "x$ac_ct_DUMPBIN" = x; then
4720     DUMPBIN=":"
4721     else
4722     case $cross_compiling:$ac_tool_warned in
4723     yes:)
4724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726     ac_tool_warned=yes ;;
4727     esac
4728     DUMPBIN=$ac_ct_DUMPBIN
4729     fi
4730     fi
4731    
4732     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4733     *COFF*)
4734     DUMPBIN="$DUMPBIN -symbols -headers"
4735     ;;
4736     *)
4737     DUMPBIN=:
4738     ;;
4739     esac
4740     fi
4741    
4742     if test : != "$DUMPBIN"; then
4743     NM=$DUMPBIN
4744     fi
4745     fi
4746     test -z "$NM" && NM=nm
4747    
4748    
4749    
4750    
4751    
4752    
4753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4754     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4755     if ${lt_cv_nm_interface+:} false; then :
4756     $as_echo_n "(cached) " >&6
4757     else
4758     lt_cv_nm_interface="BSD nm"
4759     echo "int some_variable = 0;" > conftest.$ac_ext
4760     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4761     (eval "$ac_compile" 2>conftest.err)
4762     cat conftest.err >&5
4763     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4764     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4765     cat conftest.err >&5
4766     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4767     cat conftest.out >&5
4768     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4769     lt_cv_nm_interface="MS dumpbin"
4770     fi
4771     rm -f conftest*
4772     fi
4773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4774     $as_echo "$lt_cv_nm_interface" >&6; }
4775    
4776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4777     $as_echo_n "checking whether ln -s works... " >&6; }
4778 michael 5052 LN_S=$as_ln_s
4779     if test "$LN_S" = "ln -s"; then
4780 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4781     $as_echo "yes" >&6; }
4782 michael 5052 else
4783 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4784     $as_echo "no, using $LN_S" >&6; }
4785 michael 5052 fi
4786    
4787 michael 5059 # find the maximum length of command line arguments
4788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4789     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4790     if ${lt_cv_sys_max_cmd_len+:} false; then :
4791     $as_echo_n "(cached) " >&6
4792 michael 5052 else
4793 michael 5059 i=0
4794     teststring=ABCD
4795    
4796     case $build_os in
4797     msdosdjgpp*)
4798     # On DJGPP, this test can blow up pretty badly due to problems in libc
4799     # (any single argument exceeding 2000 bytes causes a buffer overrun
4800     # during glob expansion). Even if it were fixed, the result of this
4801     # check would be larger than it should be.
4802     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4803     ;;
4804    
4805     gnu*)
4806     # Under GNU Hurd, this test is not required because there is
4807     # no limit to the length of command line arguments.
4808     # Libtool will interpret -1 as no limit whatsoever
4809     lt_cv_sys_max_cmd_len=-1;
4810     ;;
4811    
4812     cygwin* | mingw* | cegcc*)
4813     # On Win9x/ME, this test blows up -- it succeeds, but takes
4814     # about 5 minutes as the teststring grows exponentially.
4815     # Worse, since 9x/ME are not pre-emptively multitasking,
4816     # you end up with a "frozen" computer, even though with patience
4817     # the test eventually succeeds (with a max line length of 256k).
4818     # Instead, let's just punt: use the minimum linelength reported by
4819     # all of the supported platforms: 8192 (on NT/2K/XP).
4820     lt_cv_sys_max_cmd_len=8192;
4821     ;;
4822    
4823     mint*)
4824     # On MiNT this can take a long time and run out of memory.
4825     lt_cv_sys_max_cmd_len=8192;
4826     ;;
4827    
4828     amigaos*)
4829     # On AmigaOS with pdksh, this test takes hours, literally.
4830     # So we just punt and use a minimum line length of 8192.
4831     lt_cv_sys_max_cmd_len=8192;
4832     ;;
4833    
4834     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4835     # This has been around since 386BSD, at least. Likely further.
4836     if test -x /sbin/sysctl; then
4837     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4838     elif test -x /usr/sbin/sysctl; then
4839     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4840     else
4841     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4842     fi
4843     # And add a safety zone
4844     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4846     ;;
4847    
4848     interix*)
4849     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4850     lt_cv_sys_max_cmd_len=196608
4851     ;;
4852    
4853     os2*)
4854     # The test takes a long time on OS/2.
4855     lt_cv_sys_max_cmd_len=8192
4856     ;;
4857    
4858     osf*)
4859     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4860     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4861     # nice to cause kernel panics so lets avoid the loop below.
4862     # First set a reasonable default.
4863     lt_cv_sys_max_cmd_len=16384
4864     #
4865     if test -x /sbin/sysconfig; then
4866     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4867     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4868     esac
4869     fi
4870     ;;
4871     sco3.2v5*)
4872     lt_cv_sys_max_cmd_len=102400
4873     ;;
4874     sysv5* | sco5v6* | sysv4.2uw2*)
4875     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4876     if test -n "$kargmax"; then
4877     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4878     else
4879     lt_cv_sys_max_cmd_len=32768
4880     fi
4881     ;;
4882     *)
4883     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4884     if test -n "$lt_cv_sys_max_cmd_len" && \
4885     test undefined != "$lt_cv_sys_max_cmd_len"; then
4886     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4887     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4888     else
4889     # Make teststring a little bigger before we do anything with it.
4890     # a 1K string should be a reasonable start.
4891     for i in 1 2 3 4 5 6 7 8; do
4892     teststring=$teststring$teststring
4893     done
4894     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4895     # If test is not a shell built-in, we'll probably end up computing a
4896     # maximum length that is only half of the actual maximum length, but
4897     # we can't tell.
4898     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4899     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4900     test 17 != "$i" # 1/2 MB should be enough
4901     do
4902     i=`expr $i + 1`
4903     teststring=$teststring$teststring
4904     done
4905     # Only check the string length outside the loop.
4906     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4907     teststring=
4908     # Add a significant safety factor because C++ compilers can tack on
4909     # massive amounts of additional arguments before passing them to the
4910     # linker. It appears as though 1/2 is a usable value.
4911     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4912     fi
4913     ;;
4914     esac
4915    
4916     fi
4917    
4918     if test -n "$lt_cv_sys_max_cmd_len"; then
4919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4920     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4921     else
4922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4923     $as_echo "none" >&6; }
4924     fi
4925     max_cmd_len=$lt_cv_sys_max_cmd_len
4926    
4927    
4928    
4929    
4930    
4931    
4932     : ${CP="cp -f"}
4933     : ${MV="mv -f"}
4934     : ${RM="rm -f"}
4935    
4936     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4937     lt_unset=unset
4938     else
4939     lt_unset=false
4940     fi
4941    
4942    
4943    
4944    
4945    
4946     # test EBCDIC or ASCII
4947     case `echo X|tr X '\101'` in
4948     A) # ASCII based system
4949     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4950     lt_SP2NL='tr \040 \012'
4951     lt_NL2SP='tr \015\012 \040\040'
4952     ;;
4953     *) # EBCDIC based system
4954     lt_SP2NL='tr \100 \n'
4955     lt_NL2SP='tr \r\n \100\100'
4956     ;;
4957     esac
4958    
4959    
4960    
4961    
4962    
4963    
4964    
4965    
4966    
4967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4968     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4969     if ${lt_cv_to_host_file_cmd+:} false; then :
4970     $as_echo_n "(cached) " >&6
4971     else
4972     case $host in
4973     *-*-mingw* )
4974     case $build in
4975     *-*-mingw* ) # actually msys
4976     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4977     ;;
4978     *-*-cygwin* )
4979     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4980     ;;
4981     * ) # otherwise, assume *nix
4982     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4983     ;;
4984     esac
4985     ;;
4986     *-*-cygwin* )
4987     case $build in
4988     *-*-mingw* ) # actually msys
4989     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4990     ;;
4991     *-*-cygwin* )
4992     lt_cv_to_host_file_cmd=func_convert_file_noop
4993     ;;
4994     * ) # otherwise, assume *nix
4995     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4996     ;;
4997     esac
4998     ;;
4999     * ) # unhandled hosts (and "normal" native builds)
5000     lt_cv_to_host_file_cmd=func_convert_file_noop
5001     ;;
5002     esac
5003    
5004     fi
5005    
5006     to_host_file_cmd=$lt_cv_to_host_file_cmd
5007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5008     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5009    
5010    
5011    
5012    
5013    
5014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5015     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5016     if ${lt_cv_to_tool_file_cmd+:} false; then :
5017     $as_echo_n "(cached) " >&6
5018     else
5019     #assume ordinary cross tools, or native build.
5020     lt_cv_to_tool_file_cmd=func_convert_file_noop
5021     case $host in
5022     *-*-mingw* )
5023     case $build in
5024     *-*-mingw* ) # actually msys
5025     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5026     ;;
5027     esac
5028     ;;
5029     esac
5030    
5031     fi
5032    
5033     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5035     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5036    
5037    
5038    
5039    
5040    
5041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5042     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5043     if ${lt_cv_ld_reload_flag+:} false; then :
5044     $as_echo_n "(cached) " >&6
5045     else
5046     lt_cv_ld_reload_flag='-r'
5047     fi
5048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5049     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5050     reload_flag=$lt_cv_ld_reload_flag
5051     case $reload_flag in
5052     "" | " "*) ;;
5053     *) reload_flag=" $reload_flag" ;;
5054     esac
5055     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5056     case $host_os in
5057     cygwin* | mingw* | pw32* | cegcc*)
5058     if test yes != "$GCC"; then
5059     reload_cmds=false
5060     fi
5061     ;;
5062     darwin*)
5063     if test yes = "$GCC"; then
5064     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5065     else
5066     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067     fi
5068     ;;
5069     esac
5070    
5071    
5072    
5073    
5074    
5075    
5076    
5077    
5078    
5079     if test -n "$ac_tool_prefix"; then
5080     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5081     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083     $as_echo_n "checking for $ac_word... " >&6; }
5084     if ${ac_cv_prog_OBJDUMP+:} false; then :
5085     $as_echo_n "(cached) " >&6
5086     else
5087     if test -n "$OBJDUMP"; then
5088     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5089     else
5090     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091     for as_dir in $PATH
5092     do
5093     IFS=$as_save_IFS
5094     test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100     fi
5101     done
5102     done
5103     IFS=$as_save_IFS
5104    
5105     fi
5106     fi
5107     OBJDUMP=$ac_cv_prog_OBJDUMP
5108     if test -n "$OBJDUMP"; then
5109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5110     $as_echo "$OBJDUMP" >&6; }
5111     else
5112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113     $as_echo "no" >&6; }
5114     fi
5115    
5116    
5117     fi
5118     if test -z "$ac_cv_prog_OBJDUMP"; then
5119     ac_ct_OBJDUMP=$OBJDUMP
5120     # Extract the first word of "objdump", so it can be a program name with args.
5121     set dummy objdump; ac_word=$2
5122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123     $as_echo_n "checking for $ac_word... " >&6; }
5124     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5125     $as_echo_n "(cached) " >&6
5126     else
5127     if test -n "$ac_ct_OBJDUMP"; then
5128     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5129     else
5130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131     for as_dir in $PATH
5132     do
5133     IFS=$as_save_IFS
5134     test -z "$as_dir" && as_dir=.
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140     fi
5141     done
5142     done
5143     IFS=$as_save_IFS
5144    
5145     fi
5146     fi
5147     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5148     if test -n "$ac_ct_OBJDUMP"; then
5149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5150     $as_echo "$ac_ct_OBJDUMP" >&6; }
5151     else
5152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153     $as_echo "no" >&6; }
5154     fi
5155    
5156     if test "x$ac_ct_OBJDUMP" = x; then
5157     OBJDUMP="false"
5158     else
5159     case $cross_compiling:$ac_tool_warned in
5160     yes:)
5161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163     ac_tool_warned=yes ;;
5164     esac
5165     OBJDUMP=$ac_ct_OBJDUMP
5166     fi
5167     else
5168     OBJDUMP="$ac_cv_prog_OBJDUMP"
5169     fi
5170    
5171     test -z "$OBJDUMP" && OBJDUMP=objdump
5172    
5173    
5174    
5175    
5176    
5177    
5178    
5179    
5180    
5181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5182     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5183     if ${lt_cv_deplibs_check_method+:} false; then :
5184     $as_echo_n "(cached) " >&6
5185     else
5186 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5187     lt_cv_file_magic_test_file=
5188     lt_cv_deplibs_check_method='unknown'
5189     # Need to set the preceding variable on all platforms that support
5190     # interlibrary dependencies.
5191     # 'none' -- dependencies not supported.
5192 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5193 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5194     # 'test_compile' -- check by making test program.
5195     # 'file_magic [[regex]]' -- check by looking for files in library path
5196 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5197     # If you have 'file' or equivalent on your system and you're not sure
5198     # whether 'pass_all' will *always* work, you probably want this one.
5199 michael 5052
5200     case $host_os in
5201 michael 5059 aix[4-9]*)
5202 michael 5052 lt_cv_deplibs_check_method=pass_all
5203     ;;
5204    
5205     beos*)
5206     lt_cv_deplibs_check_method=pass_all
5207     ;;
5208    
5209     bsdi[45]*)
5210     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5211     lt_cv_file_magic_cmd='/usr/bin/file -L'
5212     lt_cv_file_magic_test_file=/shlib/libc.so
5213     ;;
5214    
5215     cygwin*)
5216     # func_win32_libid is a shell function defined in ltmain.sh
5217     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5218     lt_cv_file_magic_cmd='func_win32_libid'
5219     ;;
5220    
5221     mingw* | pw32*)
5222     # Base MSYS/MinGW do not provide the 'file' command needed by
5223 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5224     # unless we find 'file', for example because we are cross-compiling.
5225     if ( file / ) >/dev/null 2>&1; then
5226     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227     lt_cv_file_magic_cmd='func_win32_libid'
5228     else
5229     # Keep this pattern in sync with the one in func_win32_libid.
5230     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5231     lt_cv_file_magic_cmd='$OBJDUMP -f'
5232     fi
5233     ;;
5234    
5235     cegcc*)
5236     # use the weaker test based on 'objdump'. See mingw*.
5237     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5238 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5239     ;;
5240    
5241     darwin* | rhapsody*)
5242     lt_cv_deplibs_check_method=pass_all
5243     ;;
5244    
5245     freebsd* | dragonfly*)
5246 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5247 michael 5052 case $host_cpu in
5248     i*86 )
5249     # Not sure whether the presence of OpenBSD here was a mistake.
5250     # Let's accept both of them until this is cleared up.
5251     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5252     lt_cv_file_magic_cmd=/usr/bin/file
5253     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5254     ;;
5255     esac
5256     else
5257     lt_cv_deplibs_check_method=pass_all
5258     fi
5259     ;;
5260    
5261 michael 5059 haiku*)
5262 michael 5052 lt_cv_deplibs_check_method=pass_all
5263     ;;
5264    
5265     hpux10.20* | hpux11*)
5266     lt_cv_file_magic_cmd=/usr/bin/file
5267     case $host_cpu in
5268     ia64*)
5269     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5270     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5271     ;;
5272     hppa*64*)
5273 michael 5059 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]'
5274 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5275     ;;
5276     *)
5277 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5278 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5279     ;;
5280     esac
5281     ;;
5282    
5283 michael 5059 interix[3-9]*)
5284 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5286     ;;
5287    
5288     irix5* | irix6* | nonstopux*)
5289     case $LD in
5290     *-32|*"-32 ") libmagic=32-bit;;
5291     *-n32|*"-n32 ") libmagic=N32;;
5292     *-64|*"-64 ") libmagic=64-bit;;
5293     *) libmagic=never-match;;
5294     esac
5295     lt_cv_deplibs_check_method=pass_all
5296     ;;
5297    
5298 michael 5059 # This must be glibc/ELF.
5299     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5300 michael 5052 lt_cv_deplibs_check_method=pass_all
5301     ;;
5302    
5303 michael 5059 netbsd*)
5304     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5305 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5306     else
5307     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5308     fi
5309     ;;
5310    
5311     newos6*)
5312     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5313     lt_cv_file_magic_cmd=/usr/bin/file
5314     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5315     ;;
5316    
5317 michael 5059 *nto* | *qnx*)
5318     lt_cv_deplibs_check_method=pass_all
5319 michael 5052 ;;
5320    
5321 michael 5059 openbsd* | bitrig*)
5322     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5323 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5324     else
5325     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326     fi
5327     ;;
5328    
5329     osf3* | osf4* | osf5*)
5330     lt_cv_deplibs_check_method=pass_all
5331     ;;
5332    
5333 michael 5059 rdos*)
5334     lt_cv_deplibs_check_method=pass_all
5335     ;;
5336    
5337 michael 5052 solaris*)
5338     lt_cv_deplibs_check_method=pass_all
5339     ;;
5340    
5341 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5342     lt_cv_deplibs_check_method=pass_all
5343     ;;
5344    
5345 michael 5052 sysv4 | sysv4.3*)
5346     case $host_vendor in
5347     motorola)
5348     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]'
5349     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5350     ;;
5351     ncr)
5352     lt_cv_deplibs_check_method=pass_all
5353     ;;
5354     sequent)
5355     lt_cv_file_magic_cmd='/bin/file'
5356     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5357     ;;
5358     sni)
5359     lt_cv_file_magic_cmd='/bin/file'
5360     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5361     lt_cv_file_magic_test_file=/lib/libc.so
5362     ;;
5363     siemens)
5364     lt_cv_deplibs_check_method=pass_all
5365     ;;
5366     pc)
5367     lt_cv_deplibs_check_method=pass_all
5368     ;;
5369     esac
5370     ;;
5371    
5372 michael 5059 tpf*)
5373 michael 5052 lt_cv_deplibs_check_method=pass_all
5374     ;;
5375 michael 5059 os2*)
5376     lt_cv_deplibs_check_method=pass_all
5377     ;;
5378 michael 5052 esac
5379    
5380     fi
5381 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5382     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5383    
5384     file_magic_glob=
5385     want_nocaseglob=no
5386     if test "$build" = "$host"; then
5387     case $host_os in
5388     mingw* | pw32*)
5389     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5390     want_nocaseglob=yes
5391     else
5392     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5393     fi
5394     ;;
5395     esac
5396     fi
5397    
5398 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5399     deplibs_check_method=$lt_cv_deplibs_check_method
5400     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5401    
5402    
5403    
5404    
5405    
5406    
5407    
5408    
5409    
5410    
5411    
5412    
5413    
5414    
5415    
5416    
5417    
5418    
5419    
5420    
5421    
5422    
5423 michael 5059 if test -n "$ac_tool_prefix"; then
5424     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5425     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427     $as_echo_n "checking for $ac_word... " >&6; }
5428     if ${ac_cv_prog_DLLTOOL+:} false; then :
5429     $as_echo_n "(cached) " >&6
5430 michael 5052 else
5431 michael 5059 if test -n "$DLLTOOL"; then
5432     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5433     else
5434     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435     for as_dir in $PATH
5436 michael 5052 do
5437 michael 5059 IFS=$as_save_IFS
5438     test -z "$as_dir" && as_dir=.
5439     for ac_exec_ext in '' $ac_executable_extensions; do
5440     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444 michael 5052 fi
5445 michael 5059 done
5446     done
5447     IFS=$as_save_IFS
5448 michael 5052
5449     fi
5450     fi
5451 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5452     if test -n "$DLLTOOL"; then
5453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5454     $as_echo "$DLLTOOL" >&6; }
5455 michael 5052 else
5456 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457     $as_echo "no" >&6; }
5458 michael 5052 fi
5459    
5460    
5461     fi
5462 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5463     ac_ct_DLLTOOL=$DLLTOOL
5464     # Extract the first word of "dlltool", so it can be a program name with args.
5465     set dummy dlltool; ac_word=$2
5466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467     $as_echo_n "checking for $ac_word... " >&6; }
5468     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5469     $as_echo_n "(cached) " >&6
5470 michael 5052 else
5471 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5472     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5473     else
5474     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475     for as_dir in $PATH
5476 michael 5052 do
5477 michael 5059 IFS=$as_save_IFS
5478     test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484 michael 5052 fi
5485     done
5486 michael 5059 done
5487     IFS=$as_save_IFS
5488 michael 5052
5489     fi
5490     fi
5491 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5492     if test -n "$ac_ct_DLLTOOL"; then
5493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5494     $as_echo "$ac_ct_DLLTOOL" >&6; }
5495 michael 5052 else
5496 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497     $as_echo "no" >&6; }
5498 michael 5052 fi
5499    
5500 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5501     DLLTOOL="false"
5502     else
5503     case $cross_compiling:$ac_tool_warned in
5504     yes:)
5505     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507     ac_tool_warned=yes ;;
5508 michael 5052 esac
5509 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5510     fi
5511 michael 5052 else
5512 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5513 michael 5052 fi
5514    
5515 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5516 michael 5052
5517    
5518    
5519    
5520    
5521    
5522    
5523    
5524    
5525    
5526 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5527     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5528     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5529     $as_echo_n "(cached) " >&6
5530 michael 5052 else
5531 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5532 michael 5052
5533 michael 5059 case $host_os in
5534     cygwin* | mingw* | pw32* | cegcc*)
5535     # two different shell functions defined in ltmain.sh;
5536     # decide which one to use based on capabilities of $DLLTOOL
5537     case `$DLLTOOL --help 2>&1` in
5538     *--identify-strict*)
5539     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5540     ;;
5541     *)
5542     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5543     ;;
5544     esac
5545     ;;
5546     *)
5547     # fallback: assume linklib IS sharedlib
5548     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5549     ;;
5550 michael 5052 esac
5551    
5552     fi
5553 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5554     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5555     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5556     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5557 michael 5052
5558    
5559    
5560    
5561    
5562    
5563    
5564    
5565 michael 5059 if test -n "$ac_tool_prefix"; then
5566     for ac_prog in ar
5567 michael 5052 do
5568     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5569     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5570 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571     $as_echo_n "checking for $ac_word... " >&6; }
5572     if ${ac_cv_prog_AR+:} false; then :
5573     $as_echo_n "(cached) " >&6
5574 michael 5052 else
5575 michael 5059 if test -n "$AR"; then
5576     ac_cv_prog_AR="$AR" # Let the user override the test.
5577 michael 5052 else
5578     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579     for as_dir in $PATH
5580     do
5581     IFS=$as_save_IFS
5582     test -z "$as_dir" && as_dir=.
5583 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5584     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 michael 5052 break 2
5588     fi
5589     done
5590 michael 5059 done
5591 michael 5052 IFS=$as_save_IFS
5592    
5593     fi
5594     fi
5595 michael 5059 AR=$ac_cv_prog_AR
5596     if test -n "$AR"; then
5597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5598     $as_echo "$AR" >&6; }
5599 michael 5052 else
5600 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601     $as_echo "no" >&6; }
5602 michael 5052 fi
5603    
5604    
5605 michael 5059 test -n "$AR" && break
5606 michael 5052 done
5607     fi
5608 michael 5059 if test -z "$AR"; then
5609     ac_ct_AR=$AR
5610     for ac_prog in ar
5611 michael 5052 do
5612     # Extract the first word of "$ac_prog", so it can be a program name with args.
5613     set dummy $ac_prog; ac_word=$2
5614 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615     $as_echo_n "checking for $ac_word... " >&6; }
5616     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5617     $as_echo_n "(cached) " >&6
5618 michael 5052 else
5619 michael 5059 if test -n "$ac_ct_AR"; then
5620     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5621 michael 5052 else
5622     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623     for as_dir in $PATH
5624     do
5625     IFS=$as_save_IFS
5626     test -z "$as_dir" && as_dir=.
5627 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5628     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629     ac_cv_prog_ac_ct_AR="$ac_prog"
5630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 michael 5052 break 2
5632     fi
5633     done
5634 michael 5059 done
5635 michael 5052 IFS=$as_save_IFS
5636    
5637     fi
5638     fi
5639 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5640     if test -n "$ac_ct_AR"; then
5641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5642     $as_echo "$ac_ct_AR" >&6; }
5643 michael 5052 else
5644 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645     $as_echo "no" >&6; }
5646 michael 5052 fi
5647    
5648    
5649 michael 5059 test -n "$ac_ct_AR" && break
5650 michael 5052 done
5651    
5652 michael 5059 if test "x$ac_ct_AR" = x; then
5653     AR="false"
5654 michael 5052 else
5655     case $cross_compiling:$ac_tool_warned in
5656     yes:)
5657 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 michael 5052 ac_tool_warned=yes ;;
5660     esac
5661 michael 5059 AR=$ac_ct_AR
5662 michael 5052 fi
5663     fi
5664    
5665 michael 5059 : ${AR=ar}
5666     : ${AR_FLAGS=cru}
5667 michael 5052
5668    
5669    
5670    
5671    
5672    
5673    
5674    
5675    
5676    
5677    
5678 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5679     $as_echo_n "checking for archiver @FILE support... " >&6; }
5680     if ${lt_cv_ar_at_file+:} false; then :
5681     $as_echo_n "(cached) " >&6
5682 michael 5052 else
5683 michael 5059 lt_cv_ar_at_file=no
5684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 michael 5052 /* end confdefs.h. */
5686    
5687     int
5688     main ()
5689     {
5690    
5691     ;
5692     return 0;
5693     }
5694     _ACEOF
5695 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5696     echo conftest.$ac_objext > conftest.lst
5697     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5698     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5699     (eval $lt_ar_try) 2>&5
5700 michael 5052 ac_status=$?
5701 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5702     test $ac_status = 0; }
5703     if test 0 -eq "$ac_status"; then
5704     # Ensure the archiver fails upon bogus file names.
5705     rm -f conftest.$ac_objext libconftest.a
5706     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5707     (eval $lt_ar_try) 2>&5
5708 michael 5052 ac_status=$?
5709 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710     test $ac_status = 0; }
5711     if test 0 -ne "$ac_status"; then
5712     lt_cv_ar_at_file=@
5713     fi
5714     fi
5715     rm -f conftest.* libconftest.a
5716 michael 5052
5717     fi
5718     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719    
5720     fi
5721 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5722     $as_echo "$lt_cv_ar_at_file" >&6; }
5723 michael 5052
5724 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5725     archiver_list_spec=
5726 michael 5052 else
5727 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5728 michael 5052 fi
5729    
5730    
5731    
5732    
5733    
5734    
5735    
5736 michael 5059 if test -n "$ac_tool_prefix"; then
5737     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5738     set dummy ${ac_tool_prefix}strip; ac_word=$2
5739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740     $as_echo_n "checking for $ac_word... " >&6; }
5741     if ${ac_cv_prog_STRIP+:} false; then :
5742     $as_echo_n "(cached) " >&6
5743 michael 5052 else
5744 michael 5059 if test -n "$STRIP"; then
5745     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5746 michael 5052 else
5747 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748     for as_dir in $PATH
5749 michael 5052 do
5750 michael 5059 IFS=$as_save_IFS
5751     test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757 michael 5052 fi
5758 michael 5059 done
5759     done
5760     IFS=$as_save_IFS
5761 michael 5052
5762     fi
5763     fi
5764 michael 5059 STRIP=$ac_cv_prog_STRIP
5765     if test -n "$STRIP"; then
5766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5767     $as_echo "$STRIP" >&6; }
5768 michael 5052 else
5769 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770     $as_echo "no" >&6; }
5771 michael 5052 fi
5772    
5773    
5774     fi
5775 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5776     ac_ct_STRIP=$STRIP
5777     # Extract the first word of "strip", so it can be a program name with args.
5778     set dummy strip; ac_word=$2
5779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780     $as_echo_n "checking for $ac_word... " >&6; }
5781     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5782     $as_echo_n "(cached) " >&6
5783 michael 5052 else
5784 michael 5059 if test -n "$ac_ct_STRIP"; then
5785     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786     else
5787     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788     for as_dir in $PATH
5789 michael 5052 do
5790 michael 5059 IFS=$as_save_IFS
5791     test -z "$as_dir" && as_dir=.
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794     ac_cv_prog_ac_ct_STRIP="strip"
5795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797 michael 5052 fi
5798 michael 5059 done
5799     done
5800     IFS=$as_save_IFS
5801    
5802 michael 5052 fi
5803 michael 5059 fi
5804     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805     if test -n "$ac_ct_STRIP"; then
5806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5807     $as_echo "$ac_ct_STRIP" >&6; }
5808 michael 5052 else
5809 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810     $as_echo "no" >&6; }
5811 michael 5052 fi
5812    
5813 michael 5059 if test "x$ac_ct_STRIP" = x; then
5814     STRIP=":"
5815     else
5816     case $cross_compiling:$ac_tool_warned in
5817     yes:)
5818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5819     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5820     ac_tool_warned=yes ;;
5821 michael 5052 esac
5822 michael 5059 STRIP=$ac_ct_STRIP
5823 michael 5052 fi
5824     else
5825 michael 5059 STRIP="$ac_cv_prog_STRIP"
5826 michael 5052 fi
5827    
5828 michael 5059 test -z "$STRIP" && STRIP=:
5829 michael 5052
5830    
5831    
5832    
5833    
5834    
5835     if test -n "$ac_tool_prefix"; then
5836 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5837     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839     $as_echo_n "checking for $ac_word... " >&6; }
5840     if ${ac_cv_prog_RANLIB+:} false; then :
5841     $as_echo_n "(cached) " >&6
5842 michael 5052 else
5843 michael 5059 if test -n "$RANLIB"; then
5844     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5845 michael 5052 else
5846     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847     for as_dir in $PATH
5848     do
5849     IFS=$as_save_IFS
5850     test -z "$as_dir" && as_dir=.
5851 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5852     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 michael 5052 break 2
5856     fi
5857     done
5858 michael 5059 done
5859 michael 5052 IFS=$as_save_IFS
5860    
5861     fi
5862     fi
5863 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5864     if test -n "$RANLIB"; then
5865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5866     $as_echo "$RANLIB" >&6; }
5867 michael 5052 else
5868 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869     $as_echo "no" >&6; }
5870 michael 5052 fi
5871    
5872    
5873     fi
5874 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5875     ac_ct_RANLIB=$RANLIB
5876     # Extract the first word of "ranlib", so it can be a program name with args.
5877     set dummy ranlib; ac_word=$2
5878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879     $as_echo_n "checking for $ac_word... " >&6; }
5880     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5881     $as_echo_n "(cached) " >&6
5882 michael 5052 else
5883 michael 5059 if test -n "$ac_ct_RANLIB"; then
5884     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5885 michael 5052 else
5886     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887     for as_dir in $PATH
5888     do
5889     IFS=$as_save_IFS
5890     test -z "$as_dir" && as_dir=.
5891 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5892     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893     ac_cv_prog_ac_ct_RANLIB="ranlib"
5894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 michael 5052 break 2
5896     fi
5897     done
5898 michael 5059 done
5899 michael 5052 IFS=$as_save_IFS
5900    
5901     fi
5902     fi
5903 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5904     if test -n "$ac_ct_RANLIB"; then
5905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5906     $as_echo "$ac_ct_RANLIB" >&6; }
5907 michael 5052 else
5908 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909     $as_echo "no" >&6; }
5910 michael 5052 fi
5911    
5912 michael 5059 if test "x$ac_ct_RANLIB" = x; then
5913     RANLIB=":"
5914 michael 5052 else
5915     case $cross_compiling:$ac_tool_warned in
5916     yes:)
5917 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 michael 5052 ac_tool_warned=yes ;;
5920     esac
5921 michael 5059 RANLIB=$ac_ct_RANLIB
5922 michael 5052 fi
5923 michael 5059 else
5924     RANLIB="$ac_cv_prog_RANLIB"
5925 michael 5052 fi
5926    
5927 michael 5059 test -z "$RANLIB" && RANLIB=:
5928 michael 5052
5929    
5930    
5931    
5932    
5933    
5934 michael 5059 # Determine commands to create old-style static archives.
5935     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5936     old_postinstall_cmds='chmod 644 $oldlib'
5937     old_postuninstall_cmds=
5938    
5939     if test -n "$RANLIB"; then
5940     case $host_os in
5941     bitrig* | openbsd*)
5942     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5943     ;;
5944     *)
5945     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5946     ;;
5947     esac
5948     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5949 michael 5052 fi
5950    
5951 michael 5059 case $host_os in
5952     darwin*)
5953     lock_old_archive_extraction=yes ;;
5954     *)
5955     lock_old_archive_extraction=no ;;
5956 michael 5052 esac
5957    
5958    
5959    
5960    
5961    
5962    
5963    
5964    
5965    
5966    
5967    
5968    
5969    
5970    
5971    
5972    
5973    
5974    
5975    
5976    
5977    
5978 michael 5059
5979    
5980    
5981    
5982    
5983    
5984    
5985    
5986    
5987    
5988    
5989    
5990    
5991    
5992    
5993    
5994    
5995    
5996     # If no C compiler was specified, use CC.
5997     LTCC=${LTCC-"$CC"}
5998    
5999     # If no C compiler flags were specified, use CFLAGS.
6000     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6001    
6002     # Allow CC to be a program name with arguments.
6003     compiler=$CC
6004    
6005    
6006 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6007 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6008     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6009     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6010     $as_echo_n "(cached) " >&6
6011 michael 5052 else
6012    
6013     # These are sane defaults that work on at least a few old systems.
6014     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6015    
6016     # Character class describing NM global symbol codes.
6017     symcode='[BCDEGRST]'
6018    
6019     # Regexp to match symbols that can be accessed directly from C.
6020     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6021    
6022     # Define system-specific variables.
6023     case $host_os in
6024     aix*)
6025     symcode='[BCDT]'
6026     ;;
6027 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6028 michael 5052 symcode='[ABCDGISTW]'
6029     ;;
6030 michael 5059 hpux*)
6031     if test ia64 = "$host_cpu"; then
6032 michael 5052 symcode='[ABCDEGRST]'
6033     fi
6034     ;;
6035     irix* | nonstopux*)
6036     symcode='[BCDEGRST]'
6037     ;;
6038     osf*)
6039     symcode='[BCDEGQRST]'
6040     ;;
6041     solaris*)
6042     symcode='[BDRT]'
6043     ;;
6044     sco3.2v5*)
6045     symcode='[DT]'
6046     ;;
6047     sysv4.2uw2*)
6048     symcode='[DT]'
6049     ;;
6050     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6051     symcode='[ABDT]'
6052     ;;
6053     sysv4)
6054     symcode='[DFNSTU]'
6055     ;;
6056     esac
6057    
6058 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6059     case `$NM -V 2>&1` in
6060     *GNU* | *'with BFD'*)
6061     symcode='[ABCDGIRSTW]' ;;
6062     esac
6063    
6064     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6065     # Gets list of data symbols to import.
6066     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6067     # Adjust the below global symbol transforms to fixup imported variables.
6068     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6069     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6070     lt_c_name_lib_hook="\
6071     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6072     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6073     else
6074     # Disable hooks by default.
6075     lt_cv_sys_global_symbol_to_import=
6076     lt_cdecl_hook=
6077     lt_c_name_hook=
6078     lt_c_name_lib_hook=
6079     fi
6080    
6081     # Transform an extracted symbol line into a proper C declaration.
6082     # Some systems (esp. on ia64) link data and code symbols differently,
6083     # so use this general approach.
6084     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6085     $lt_cdecl_hook\
6086     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6087     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6088    
6089     # Transform an extracted symbol line into symbol name and symbol address
6090     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6091     $lt_c_name_hook\
6092     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6093     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6094    
6095     # Transform an extracted symbol line into symbol name with lib prefix and
6096     # symbol address.
6097     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6098     $lt_c_name_lib_hook\
6099     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6100     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6101     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6102    
6103 michael 5052 # Handle CRLF in mingw tool chain
6104     opt_cr=
6105     case $build_os in
6106     mingw*)
6107 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6108 michael 5052 ;;
6109     esac
6110    
6111 michael 5059 # Try without a prefix underscore, then with it.
6112 michael 5052 for ac_symprfx in "" "_"; do
6113    
6114     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6115     symxfrm="\\1 $ac_symprfx\\2 \\2"
6116    
6117     # Write the raw and C identifiers.
6118 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6119     # Fake it for dumpbin and say T for any non-static function,
6120     # D for any global variable and I for any imported variable.
6121     # Also find C++ and __fastcall symbols from MSVC++,
6122     # which start with @ or ?.
6123     lt_cv_sys_global_symbol_pipe="$AWK '"\
6124     " {last_section=section; section=\$ 3};"\
6125     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6126     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6127     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6128     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6129     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6130     " \$ 0!~/External *\|/{next};"\
6131     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6132     " {if(hide[section]) next};"\
6133     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6134     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6135     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6136     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6137     " ' prfx=^$ac_symprfx"
6138     else
6139     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6140     fi
6141     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6142 michael 5052
6143     # Check to see that the pipe works correctly.
6144     pipe_works=no
6145    
6146     rm -f conftest*
6147 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6148 michael 5052 #ifdef __cplusplus
6149     extern "C" {
6150     #endif
6151     char nm_test_var;
6152 michael 5059 void nm_test_func(void);
6153     void nm_test_func(void){}
6154 michael 5052 #ifdef __cplusplus
6155     }
6156     #endif
6157     int main(){nm_test_var='a';nm_test_func();return(0);}
6158 michael 5059 _LT_EOF
6159 michael 5052
6160 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6161 michael 5052 (eval $ac_compile) 2>&5
6162     ac_status=$?
6163 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164     test $ac_status = 0; }; then
6165 michael 5052 # Now try to grab the symbols.
6166     nlist=conftest.nm
6167 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6168     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6169 michael 5052 ac_status=$?
6170 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171     test $ac_status = 0; } && test -s "$nlist"; then
6172 michael 5052 # Try sorting and uniquifying the output.
6173     if sort "$nlist" | uniq > "$nlist"T; then
6174     mv -f "$nlist"T "$nlist"
6175     else
6176     rm -f "$nlist"T
6177     fi
6178    
6179     # Make sure that we snagged all the symbols we need.
6180 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6181     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6182     cat <<_LT_EOF > conftest.$ac_ext
6183     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6184     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6185     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6186     relocations are performed -- see ld's documentation on pseudo-relocs. */
6187     # define LT_DLSYM_CONST
6188     #elif defined __osf__
6189     /* This system does not cope well with relocations in const data. */
6190     # define LT_DLSYM_CONST
6191     #else
6192     # define LT_DLSYM_CONST const
6193     #endif
6194    
6195 michael 5052 #ifdef __cplusplus
6196     extern "C" {
6197     #endif
6198    
6199 michael 5059 _LT_EOF
6200 michael 5052 # Now generate the symbol file.
6201 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6202 michael 5052
6203 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6204 michael 5052
6205 michael 5059 /* The mapping between symbol names and symbols. */
6206     LT_DLSYM_CONST struct {
6207 michael 5052 const char *name;
6208 michael 5059 void *address;
6209 michael 5052 }
6210 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6211 michael 5052 {
6212 michael 5059 { "@PROGRAM@", (void *) 0 },
6213     _LT_EOF
6214     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6215     cat <<\_LT_EOF >> conftest.$ac_ext
6216     {0, (void *) 0}
6217 michael 5052 };
6218    
6219 michael 5059 /* This works around a problem in FreeBSD linker */
6220     #ifdef FREEBSD_WORKAROUND
6221     static const void *lt_preloaded_setup() {
6222     return lt__PROGRAM__LTX_preloaded_symbols;
6223     }
6224     #endif
6225    
6226 michael 5052 #ifdef __cplusplus
6227     }
6228     #endif
6229 michael 5059 _LT_EOF
6230 michael 5052 # Now try linking the two files.
6231     mv conftest.$ac_objext conftstm.$ac_objext
6232 michael 5059 lt_globsym_save_LIBS=$LIBS
6233     lt_globsym_save_CFLAGS=$CFLAGS
6234     LIBS=conftstm.$ac_objext
6235 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6236 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6237 michael 5052 (eval $ac_link) 2>&5
6238     ac_status=$?
6239 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6241 michael 5052 pipe_works=yes
6242     fi
6243 michael 5059 LIBS=$lt_globsym_save_LIBS
6244     CFLAGS=$lt_globsym_save_CFLAGS
6245 michael 5052 else
6246     echo "cannot find nm_test_func in $nlist" >&5
6247     fi
6248     else
6249     echo "cannot find nm_test_var in $nlist" >&5
6250     fi
6251     else
6252     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6253     fi
6254     else
6255     echo "$progname: failed program was:" >&5
6256     cat conftest.$ac_ext >&5
6257     fi
6258 michael 5059 rm -rf conftest* conftst*
6259 michael 5052
6260     # Do not use the global_symbol_pipe unless it works.
6261 michael 5059 if test yes = "$pipe_works"; then
6262 michael 5052 break
6263     else
6264     lt_cv_sys_global_symbol_pipe=
6265     fi
6266     done
6267    
6268     fi
6269    
6270     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6271     lt_cv_sys_global_symbol_to_cdecl=
6272     fi
6273     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6274 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6275     $as_echo "failed" >&6; }
6276 michael 5052 else
6277 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6278     $as_echo "ok" >&6; }
6279 michael 5052 fi
6280    
6281 michael 5059 # Response file support.
6282     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6283     nm_file_list_spec='@'
6284     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6285     nm_file_list_spec='@'
6286     fi
6287    
6288    
6289    
6290    
6291    
6292    
6293    
6294    
6295    
6296    
6297    
6298    
6299    
6300    
6301    
6302    
6303    
6304    
6305    
6306    
6307    
6308    
6309    
6310    
6311    
6312    
6313    
6314    
6315    
6316    
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6325     $as_echo_n "checking for sysroot... " >&6; }
6326    
6327     # Check whether --with-sysroot was given.
6328     if test "${with_sysroot+set}" = set; then :
6329     withval=$with_sysroot;
6330 michael 5052 else
6331 michael 5059 with_sysroot=no
6332     fi
6333    
6334    
6335     lt_sysroot=
6336     case $with_sysroot in #(
6337     yes)
6338     if test yes = "$GCC"; then
6339     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6340     fi
6341     ;; #(
6342     /*)
6343     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6344     ;; #(
6345     no|'')
6346     ;; #(
6347     *)
6348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6349     $as_echo "$with_sysroot" >&6; }
6350     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6351     ;;
6352     esac
6353    
6354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6355     $as_echo "${lt_sysroot:-no}" >&6; }
6356    
6357    
6358    
6359    
6360    
6361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6362     $as_echo_n "checking for a working dd... " >&6; }
6363     if ${ac_cv_path_lt_DD+:} false; then :
6364     $as_echo_n "(cached) " >&6
6365 michael 5052 else
6366 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6367     cat conftest.i conftest.i >conftest2.i
6368     : ${lt_DD:=$DD}
6369     if test -z "$lt_DD"; then
6370     ac_path_lt_DD_found=false
6371     # Loop through the user's path and test for each of PROGNAME-LIST
6372     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373     for as_dir in $PATH
6374     do
6375     IFS=$as_save_IFS
6376     test -z "$as_dir" && as_dir=.
6377     for ac_prog in dd; do
6378     for ac_exec_ext in '' $ac_executable_extensions; do
6379     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6380     as_fn_executable_p "$ac_path_lt_DD" || continue
6381     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6382     cmp -s conftest.i conftest.out \
6383     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6384 michael 5052 fi
6385 michael 5059 $ac_path_lt_DD_found && break 3
6386     done
6387     done
6388     done
6389     IFS=$as_save_IFS
6390     if test -z "$ac_cv_path_lt_DD"; then
6391     :
6392     fi
6393     else
6394     ac_cv_path_lt_DD=$lt_DD
6395 michael 5052 fi
6396    
6397 michael 5059 rm -f conftest.i conftest2.i conftest.out
6398     fi
6399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6400     $as_echo "$ac_cv_path_lt_DD" >&6; }
6401 michael 5052
6402    
6403 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6404     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6405     if ${lt_cv_truncate_bin+:} false; then :
6406     $as_echo_n "(cached) " >&6
6407     else
6408     printf 0123456789abcdef0123456789abcdef >conftest.i
6409     cat conftest.i conftest.i >conftest2.i
6410     lt_cv_truncate_bin=
6411     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6412     cmp -s conftest.i conftest.out \
6413     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6414     fi
6415     rm -f conftest.i conftest2.i conftest.out
6416     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6417     fi
6418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6419     $as_echo "$lt_cv_truncate_bin" >&6; }
6420 michael 5052
6421    
6422 michael 5059
6423    
6424    
6425    
6426     # Check whether --enable-libtool-lock was given.
6427     if test "${enable_libtool_lock+set}" = set; then :
6428     enableval=$enable_libtool_lock;
6429     fi
6430    
6431     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6432    
6433     # Some flags need to be propagated to the compiler or linker for good
6434     # libtool support.
6435     case $host in
6436     ia64-*-hpux*)
6437     # Find out what ABI is being produced by ac_compile, and set mode
6438     # options accordingly.
6439     echo 'int i;' > conftest.$ac_ext
6440     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441     (eval $ac_compile) 2>&5
6442     ac_status=$?
6443     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444     test $ac_status = 0; }; then
6445     case `/usr/bin/file conftest.$ac_objext` in
6446     *ELF-32*)
6447     HPUX_IA64_MODE=32
6448     ;;
6449     *ELF-64*)
6450     HPUX_IA64_MODE=64
6451     ;;
6452     esac
6453 michael 5052 fi
6454 michael 5059 rm -rf conftest*
6455 michael 5052 ;;
6456 michael 5059 *-*-irix6*)
6457     # Find out what ABI is being produced by ac_compile, and set linker
6458     # options accordingly.
6459     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6460     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461     (eval $ac_compile) 2>&5
6462     ac_status=$?
6463     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464     test $ac_status = 0; }; then
6465     if test yes = "$lt_cv_prog_gnu_ld"; then
6466     case `/usr/bin/file conftest.$ac_objext` in
6467     *32-bit*)
6468     LD="${LD-ld} -melf32bsmip"
6469     ;;
6470     *N32*)
6471     LD="${LD-ld} -melf32bmipn32"
6472     ;;
6473     *64-bit*)
6474     LD="${LD-ld} -melf64bmip"
6475     ;;
6476     esac
6477     else
6478     case `/usr/bin/file conftest.$ac_objext` in
6479     *32-bit*)
6480     LD="${LD-ld} -32"
6481     ;;
6482     *N32*)
6483     LD="${LD-ld} -n32"
6484     ;;
6485     *64-bit*)
6486     LD="${LD-ld} -64"
6487     ;;
6488     esac
6489     fi
6490     fi
6491     rm -rf conftest*
6492     ;;
6493 michael 5052
6494 michael 5059 mips64*-*linux*)
6495     # Find out what ABI is being produced by ac_compile, and set linker
6496     # options accordingly.
6497     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6498     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499     (eval $ac_compile) 2>&5
6500     ac_status=$?
6501     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502     test $ac_status = 0; }; then
6503     emul=elf
6504     case `/usr/bin/file conftest.$ac_objext` in
6505     *32-bit*)
6506     emul="${emul}32"
6507     ;;
6508     *64-bit*)
6509     emul="${emul}64"
6510     ;;
6511     esac
6512     case `/usr/bin/file conftest.$ac_objext` in
6513     *MSB*)
6514     emul="${emul}btsmip"
6515     ;;
6516     *LSB*)
6517     emul="${emul}ltsmip"
6518     ;;
6519     esac
6520     case `/usr/bin/file conftest.$ac_objext` in
6521     *N32*)
6522     emul="${emul}n32"
6523     ;;
6524     esac
6525     LD="${LD-ld} -m $emul"
6526     fi
6527     rm -rf conftest*
6528     ;;
6529 michael 5052
6530 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6531     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6532     # Find out what ABI is being produced by ac_compile, and set linker
6533     # options accordingly. Note that the listed cases only cover the
6534     # situations where additional linker options are needed (such as when
6535     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6536     # vice versa); the common cases where no linker options are needed do
6537     # not appear in the list.
6538     echo 'int i;' > conftest.$ac_ext
6539     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540     (eval $ac_compile) 2>&5
6541     ac_status=$?
6542     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543     test $ac_status = 0; }; then
6544     case `/usr/bin/file conftest.o` in
6545     *32-bit*)
6546     case $host in
6547     x86_64-*kfreebsd*-gnu)
6548     LD="${LD-ld} -m elf_i386_fbsd"
6549     ;;
6550     x86_64-*linux*)
6551     case `/usr/bin/file conftest.o` in
6552     *x86-64*)
6553     LD="${LD-ld} -m elf32_x86_64"
6554     ;;
6555     *)
6556     LD="${LD-ld} -m elf_i386"
6557     ;;
6558     esac
6559     ;;
6560     powerpc64le-*linux*)
6561     LD="${LD-ld} -m elf32lppclinux"
6562     ;;
6563     powerpc64-*linux*)
6564     LD="${LD-ld} -m elf32ppclinux"
6565     ;;
6566     s390x-*linux*)
6567     LD="${LD-ld} -m elf_s390"
6568     ;;
6569     sparc64-*linux*)
6570     LD="${LD-ld} -m elf32_sparc"
6571     ;;
6572     esac
6573     ;;
6574     *64-bit*)
6575     case $host in
6576     x86_64-*kfreebsd*-gnu)
6577     LD="${LD-ld} -m elf_x86_64_fbsd"
6578     ;;
6579     x86_64-*linux*)
6580     LD="${LD-ld} -m elf_x86_64"
6581     ;;
6582     powerpcle-*linux*)
6583     LD="${LD-ld} -m elf64lppc"
6584     ;;
6585     powerpc-*linux*)
6586     LD="${LD-ld} -m elf64ppc"
6587     ;;
6588     s390*-*linux*|s390*-*tpf*)
6589     LD="${LD-ld} -m elf64_s390"
6590     ;;
6591     sparc*-*linux*)
6592     LD="${LD-ld} -m elf64_sparc"
6593     ;;
6594     esac
6595     ;;
6596     esac
6597     fi
6598     rm -rf conftest*
6599     ;;
6600 michael 5052
6601 michael 5059 *-*-sco3.2v5*)
6602     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6603     SAVE_CFLAGS=$CFLAGS
6604     CFLAGS="$CFLAGS -belf"
6605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6606     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6607     if ${lt_cv_cc_needs_belf+:} false; then :
6608     $as_echo_n "(cached) " >&6
6609     else
6610     ac_ext=c
6611     ac_cpp='$CPP $CPPFLAGS'
6612     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 michael 5052
6616 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617     /* end confdefs.h. */
6618 michael 5052
6619 michael 5059 int
6620     main ()
6621     {
6622 michael 5052
6623 michael 5059 ;
6624     return 0;
6625     }
6626     _ACEOF
6627     if ac_fn_c_try_link "$LINENO"; then :
6628     lt_cv_cc_needs_belf=yes
6629     else
6630     lt_cv_cc_needs_belf=no
6631     fi
6632     rm -f core conftest.err conftest.$ac_objext \
6633     conftest$ac_exeext conftest.$ac_ext
6634     ac_ext=c
6635     ac_cpp='$CPP $CPPFLAGS'
6636     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 michael 5052
6640 michael 5059 fi
6641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6642     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6643     if test yes != "$lt_cv_cc_needs_belf"; then
6644     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6645     CFLAGS=$SAVE_CFLAGS
6646     fi
6647     ;;
6648     *-*solaris*)
6649     # Find out what ABI is being produced by ac_compile, and set linker
6650     # options accordingly.
6651     echo 'int i;' > conftest.$ac_ext
6652     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653     (eval $ac_compile) 2>&5
6654     ac_status=$?
6655     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656     test $ac_status = 0; }; then
6657     case `/usr/bin/file conftest.o` in
6658     *64-bit*)
6659     case $lt_cv_prog_gnu_ld in
6660     yes*)
6661     case $host in
6662     i?86-*-solaris*|x86_64-*-solaris*)
6663     LD="${LD-ld} -m elf_x86_64"
6664     ;;
6665     sparc*-*-solaris*)
6666     LD="${LD-ld} -m elf64_sparc"
6667     ;;
6668     esac
6669     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6670     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6671     LD=${LD-ld}_sol2
6672     fi
6673     ;;
6674     *)
6675     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6676     LD="${LD-ld} -64"
6677     fi
6678     ;;
6679     esac
6680     ;;
6681     esac
6682     fi
6683     rm -rf conftest*
6684     ;;
6685     esac
6686 michael 5052
6687 michael 5059 need_locks=$enable_libtool_lock
6688    
6689 michael 5052 if test -n "$ac_tool_prefix"; then
6690 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6691     set dummy ${ac_tool_prefix}mt; ac_word=$2
6692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693     $as_echo_n "checking for $ac_word... " >&6; }
6694     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6695     $as_echo_n "(cached) " >&6
6696 michael 5052 else
6697 michael 5059 if test -n "$MANIFEST_TOOL"; then
6698     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6699 michael 5052 else
6700     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701     for as_dir in $PATH
6702     do
6703     IFS=$as_save_IFS
6704     test -z "$as_dir" && as_dir=.
6705 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6706     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 michael 5052 break 2
6710     fi
6711     done
6712 michael 5059 done
6713     IFS=$as_save_IFS
6714    
6715     fi
6716     fi
6717     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6718     if test -n "$MANIFEST_TOOL"; then
6719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6720     $as_echo "$MANIFEST_TOOL" >&6; }
6721     else
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723     $as_echo "no" >&6; }
6724     fi
6725    
6726    
6727     fi
6728     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6729     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6730     # Extract the first word of "mt", so it can be a program name with args.
6731     set dummy mt; ac_word=$2
6732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733     $as_echo_n "checking for $ac_word... " >&6; }
6734     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6735     $as_echo_n "(cached) " >&6
6736     else
6737     if test -n "$ac_ct_MANIFEST_TOOL"; then
6738     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6739     else
6740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741     for as_dir in $PATH
6742     do
6743     IFS=$as_save_IFS
6744     test -z "$as_dir" && as_dir=.
6745     for ac_exec_ext in '' $ac_executable_extensions; do
6746     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750     fi
6751 michael 5052 done
6752 michael 5059 done
6753 michael 5052 IFS=$as_save_IFS
6754    
6755     fi
6756     fi
6757 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6758     if test -n "$ac_ct_MANIFEST_TOOL"; then
6759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6760     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6761 michael 5052 else
6762 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763     $as_echo "no" >&6; }
6764 michael 5052 fi
6765    
6766 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6767     MANIFEST_TOOL=":"
6768     else
6769     case $cross_compiling:$ac_tool_warned in
6770     yes:)
6771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773     ac_tool_warned=yes ;;
6774     esac
6775     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6776     fi
6777     else
6778     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6779     fi
6780 michael 5052
6781 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6783     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6784     if ${lt_cv_path_mainfest_tool+:} false; then :
6785     $as_echo_n "(cached) " >&6
6786     else
6787     lt_cv_path_mainfest_tool=no
6788     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6789     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6790     cat conftest.err >&5
6791     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6792     lt_cv_path_mainfest_tool=yes
6793     fi
6794     rm -f conftest*
6795 michael 5052 fi
6796 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6797     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6798     if test yes != "$lt_cv_path_mainfest_tool"; then
6799     MANIFEST_TOOL=:
6800     fi
6801    
6802    
6803    
6804    
6805    
6806    
6807     case $host_os in
6808     rhapsody* | darwin*)
6809     if test -n "$ac_tool_prefix"; then
6810     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6811     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813     $as_echo_n "checking for $ac_word... " >&6; }
6814     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6815     $as_echo_n "(cached) " >&6
6816 michael 5052 else
6817 michael 5059 if test -n "$DSYMUTIL"; then
6818     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6819 michael 5052 else
6820     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821     for as_dir in $PATH
6822     do
6823     IFS=$as_save_IFS
6824     test -z "$as_dir" && as_dir=.
6825 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6826     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 michael 5052 break 2
6830     fi
6831     done
6832 michael 5059 done
6833     IFS=$as_save_IFS
6834    
6835     fi
6836     fi
6837     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6838     if test -n "$DSYMUTIL"; then
6839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6840     $as_echo "$DSYMUTIL" >&6; }
6841     else
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843     $as_echo "no" >&6; }
6844     fi
6845    
6846    
6847     fi
6848     if test -z "$ac_cv_prog_DSYMUTIL"; then
6849     ac_ct_DSYMUTIL=$DSYMUTIL
6850     # Extract the first word of "dsymutil", so it can be a program name with args.
6851     set dummy dsymutil; ac_word=$2
6852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853     $as_echo_n "checking for $ac_word... " >&6; }
6854     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6855     $as_echo_n "(cached) " >&6
6856     else
6857     if test -n "$ac_ct_DSYMUTIL"; then
6858     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6859     else
6860     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861     for as_dir in $PATH
6862     do
6863     IFS=$as_save_IFS
6864     test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870     fi
6871 michael 5052 done
6872 michael 5059 done
6873 michael 5052 IFS=$as_save_IFS
6874    
6875     fi
6876     fi
6877 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6878     if test -n "$ac_ct_DSYMUTIL"; then
6879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6880     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6881 michael 5052 else
6882 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883     $as_echo "no" >&6; }
6884 michael 5052 fi
6885    
6886 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6887     DSYMUTIL=":"
6888 michael 5052 else
6889     case $cross_compiling:$ac_tool_warned in
6890     yes:)
6891 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 michael 5052 ac_tool_warned=yes ;;
6894     esac
6895 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6896 michael 5052 fi
6897     else
6898 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6899 michael 5052 fi
6900    
6901 michael 5059 if test -n "$ac_tool_prefix"; then
6902     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6903     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905     $as_echo_n "checking for $ac_word... " >&6; }
6906     if ${ac_cv_prog_NMEDIT+:} false; then :
6907     $as_echo_n "(cached) " >&6
6908 michael 5052 else
6909 michael 5059 if test -n "$NMEDIT"; then
6910     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6911 michael 5052 else
6912     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913     for as_dir in $PATH
6914     do
6915     IFS=$as_save_IFS
6916     test -z "$as_dir" && as_dir=.
6917 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6918     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 michael 5052 break 2
6922     fi
6923     done
6924 michael 5059 done
6925 michael 5052 IFS=$as_save_IFS
6926    
6927     fi
6928     fi
6929 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
6930     if test -n "$NMEDIT"; then
6931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6932     $as_echo "$NMEDIT" >&6; }
6933 michael 5052 else
6934 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935     $as_echo "no" >&6; }
6936 michael 5052 fi
6937    
6938    
6939     fi
6940 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
6941     ac_ct_NMEDIT=$NMEDIT
6942     # Extract the first word of "nmedit", so it can be a program name with args.
6943     set dummy nmedit; ac_word=$2
6944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945     $as_echo_n "checking for $ac_word... " >&6; }
6946     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6947     $as_echo_n "(cached) " >&6
6948 michael 5052 else
6949 michael 5059 if test -n "$ac_ct_NMEDIT"; then
6950     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6951 michael 5052 else
6952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953     for as_dir in $PATH
6954     do
6955     IFS=$as_save_IFS
6956     test -z "$as_dir" && as_dir=.
6957 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6958     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 michael 5052 break 2
6962     fi
6963     done
6964 michael 5059 done
6965 michael 5052 IFS=$as_save_IFS
6966    
6967     fi
6968     fi
6969 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6970     if test -n "$ac_ct_NMEDIT"; then
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6972     $as_echo "$ac_ct_NMEDIT" >&6; }
6973 michael 5052 else
6974 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975     $as_echo "no" >&6; }
6976 michael 5052 fi
6977    
6978 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
6979     NMEDIT=":"
6980 michael 5052 else
6981     case $cross_compiling:$ac_tool_warned in
6982     yes:)
6983 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 michael 5052 ac_tool_warned=yes ;;
6986     esac
6987 michael 5059 NMEDIT=$ac_ct_NMEDIT
6988 michael 5052 fi
6989     else
6990 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
6991 michael 5052 fi
6992    
6993 michael 5059 if test -n "$ac_tool_prefix"; then
6994     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6995     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997     $as_echo_n "checking for $ac_word... " >&6; }
6998     if ${ac_cv_prog_LIPO+:} false; then :
6999     $as_echo_n "(cached) " >&6
7000 michael 5052 else
7001 michael 5059 if test -n "$LIPO"; then
7002     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7003 michael 5052 else
7004     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005     for as_dir in $PATH
7006     do
7007     IFS=$as_save_IFS
7008     test -z "$as_dir" && as_dir=.
7009 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7010     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 michael 5052 break 2
7014     fi
7015     done
7016 michael 5059 done
7017     IFS=$as_save_IFS
7018    
7019     fi
7020     fi
7021     LIPO=$ac_cv_prog_LIPO
7022     if test -n "$LIPO"; then
7023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7024     $as_echo "$LIPO" >&6; }
7025     else
7026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027     $as_echo "no" >&6; }
7028     fi
7029    
7030    
7031     fi
7032     if test -z "$ac_cv_prog_LIPO"; then
7033     ac_ct_LIPO=$LIPO
7034     # Extract the first word of "lipo", so it can be a program name with args.
7035     set dummy lipo; ac_word=$2
7036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037     $as_echo_n "checking for $ac_word... " >&6; }
7038     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7039     $as_echo_n "(cached) " >&6
7040     else
7041     if test -n "$ac_ct_LIPO"; then
7042     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7043     else
7044     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045     for as_dir in $PATH
7046     do
7047     IFS=$as_save_IFS
7048     test -z "$as_dir" && as_dir=.
7049     for ac_exec_ext in '' $ac_executable_extensions; do
7050     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051     ac_cv_prog_ac_ct_LIPO="lipo"
7052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053     break 2
7054     fi
7055 michael 5052 done
7056 michael 5059 done
7057 michael 5052 IFS=$as_save_IFS
7058    
7059     fi
7060     fi
7061 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7062     if test -n "$ac_ct_LIPO"; then
7063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7064     $as_echo "$ac_ct_LIPO" >&6; }
7065 michael 5052 else
7066 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067     $as_echo "no" >&6; }
7068 michael 5052 fi
7069    
7070 michael 5059 if test "x$ac_ct_LIPO" = x; then
7071     LIPO=":"
7072     else
7073     case $cross_compiling:$ac_tool_warned in
7074     yes:)
7075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077     ac_tool_warned=yes ;;
7078     esac
7079     LIPO=$ac_ct_LIPO
7080     fi
7081     else
7082     LIPO="$ac_cv_prog_LIPO"
7083     fi
7084 michael 5052
7085 michael 5059 if test -n "$ac_tool_prefix"; then
7086     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7087     set dummy ${ac_tool_prefix}otool; ac_word=$2
7088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089     $as_echo_n "checking for $ac_word... " >&6; }
7090     if ${ac_cv_prog_OTOOL+:} false; then :
7091     $as_echo_n "(cached) " >&6
7092     else
7093     if test -n "$OTOOL"; then
7094     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7095     else
7096     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097     for as_dir in $PATH
7098     do
7099     IFS=$as_save_IFS
7100     test -z "$as_dir" && as_dir=.
7101     for ac_exec_ext in '' $ac_executable_extensions; do
7102     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106     fi
7107     done
7108     done
7109     IFS=$as_save_IFS
7110    
7111 michael 5052 fi
7112 michael 5059 fi
7113     OTOOL=$ac_cv_prog_OTOOL
7114     if test -n "$OTOOL"; then
7115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7116     $as_echo "$OTOOL" >&6; }
7117 michael 5052 else
7118 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119     $as_echo "no" >&6; }
7120     fi
7121    
7122    
7123     fi
7124     if test -z "$ac_cv_prog_OTOOL"; then
7125     ac_ct_OTOOL=$OTOOL
7126     # Extract the first word of "otool", so it can be a program name with args.
7127     set dummy otool; ac_word=$2
7128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129     $as_echo_n "checking for $ac_word... " >&6; }
7130     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7131     $as_echo_n "(cached) " >&6
7132 michael 5052 else
7133 michael 5059 if test -n "$ac_ct_OTOOL"; then
7134     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7135     else
7136 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137     for as_dir in $PATH
7138     do
7139     IFS=$as_save_IFS
7140     test -z "$as_dir" && as_dir=.
7141 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7142     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_ac_ct_OTOOL="otool"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 michael 5052 break 2
7146     fi
7147     done
7148 michael 5059 done
7149     IFS=$as_save_IFS
7150    
7151     fi
7152     fi
7153     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7154     if test -n "$ac_ct_OTOOL"; then
7155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7156     $as_echo "$ac_ct_OTOOL" >&6; }
7157     else
7158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159     $as_echo "no" >&6; }
7160     fi
7161    
7162     if test "x$ac_ct_OTOOL" = x; then
7163     OTOOL=":"
7164     else
7165     case $cross_compiling:$ac_tool_warned in
7166     yes:)
7167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169     ac_tool_warned=yes ;;
7170     esac
7171     OTOOL=$ac_ct_OTOOL
7172     fi
7173     else
7174     OTOOL="$ac_cv_prog_OTOOL"
7175     fi
7176    
7177     if test -n "$ac_tool_prefix"; then
7178     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7179     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181     $as_echo_n "checking for $ac_word... " >&6; }
7182     if ${ac_cv_prog_OTOOL64+:} false; then :
7183     $as_echo_n "(cached) " >&6
7184     else
7185     if test -n "$OTOOL64"; then
7186     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7187     else
7188     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189     for as_dir in $PATH
7190     do
7191     IFS=$as_save_IFS
7192     test -z "$as_dir" && as_dir=.
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198     fi
7199 michael 5052 done
7200 michael 5059 done
7201 michael 5052 IFS=$as_save_IFS
7202    
7203     fi
7204     fi
7205 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7206     if test -n "$OTOOL64"; then
7207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7208     $as_echo "$OTOOL64" >&6; }
7209 michael 5052 else
7210 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211     $as_echo "no" >&6; }
7212 michael 5052 fi
7213    
7214 michael 5059
7215     fi
7216     if test -z "$ac_cv_prog_OTOOL64"; then
7217     ac_ct_OTOOL64=$OTOOL64
7218     # Extract the first word of "otool64", so it can be a program name with args.
7219     set dummy otool64; ac_word=$2
7220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221     $as_echo_n "checking for $ac_word... " >&6; }
7222     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7223     $as_echo_n "(cached) " >&6
7224     else
7225     if test -n "$ac_ct_OTOOL64"; then
7226     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7227     else
7228     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229     for as_dir in $PATH
7230     do
7231     IFS=$as_save_IFS
7232     test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_prog_ac_ct_OTOOL64="otool64"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238     fi
7239     done
7240     done
7241     IFS=$as_save_IFS
7242    
7243     fi
7244     fi
7245     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7246     if test -n "$ac_ct_OTOOL64"; then
7247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7248     $as_echo "$ac_ct_OTOOL64" >&6; }
7249     else
7250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251     $as_echo "no" >&6; }
7252     fi
7253    
7254     if test "x$ac_ct_OTOOL64" = x; then
7255     OTOOL64=":"
7256 michael 5052 else
7257     case $cross_compiling:$ac_tool_warned in
7258     yes:)
7259 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 michael 5052 ac_tool_warned=yes ;;
7262     esac
7263 michael 5059 OTOOL64=$ac_ct_OTOOL64
7264 michael 5052 fi
7265     else
7266 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7267 michael 5052 fi
7268    
7269    
7270    
7271 michael 5059
7272    
7273    
7274    
7275    
7276    
7277    
7278    
7279    
7280    
7281    
7282    
7283    
7284    
7285    
7286    
7287    
7288    
7289    
7290    
7291    
7292    
7293    
7294    
7295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7296     $as_echo_n "checking for -single_module linker flag... " >&6; }
7297     if ${lt_cv_apple_cc_single_mod+:} false; then :
7298     $as_echo_n "(cached) " >&6
7299     else
7300     lt_cv_apple_cc_single_mod=no
7301     if test -z "$LT_MULTI_MODULE"; then
7302     # By default we will add the -single_module flag. You can override
7303     # by either setting the environment variable LT_MULTI_MODULE
7304     # non-empty at configure time, or by adding -multi_module to the
7305     # link flags.
7306     rm -rf libconftest.dylib*
7307     echo "int foo(void){return 1;}" > conftest.c
7308     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7309     -dynamiclib -Wl,-single_module conftest.c" >&5
7310     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7311     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7312     _lt_result=$?
7313     # If there is a non-empty error log, and "single_module"
7314     # appears in it, assume the flag caused a linker warning
7315     if test -s conftest.err && $GREP single_module conftest.err; then
7316     cat conftest.err >&5
7317     # Otherwise, if the output was created with a 0 exit code from
7318     # the compiler, it worked.
7319     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7320     lt_cv_apple_cc_single_mod=yes
7321     else
7322     cat conftest.err >&5
7323     fi
7324     rm -rf libconftest.dylib*
7325     rm -f conftest.*
7326     fi
7327     fi
7328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7329     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7330    
7331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7332     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7333     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7334     $as_echo_n "(cached) " >&6
7335     else
7336     lt_cv_ld_exported_symbols_list=no
7337     save_LDFLAGS=$LDFLAGS
7338     echo "_main" > conftest.sym
7339     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341     /* end confdefs.h. */
7342    
7343     int
7344     main ()
7345     {
7346    
7347     ;
7348     return 0;
7349     }
7350     _ACEOF
7351     if ac_fn_c_try_link "$LINENO"; then :
7352     lt_cv_ld_exported_symbols_list=yes
7353     else
7354     lt_cv_ld_exported_symbols_list=no
7355     fi
7356     rm -f core conftest.err conftest.$ac_objext \
7357     conftest$ac_exeext conftest.$ac_ext
7358     LDFLAGS=$save_LDFLAGS
7359    
7360     fi
7361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7362     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7363    
7364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7365     $as_echo_n "checking for -force_load linker flag... " >&6; }
7366     if ${lt_cv_ld_force_load+:} false; then :
7367     $as_echo_n "(cached) " >&6
7368     else
7369     lt_cv_ld_force_load=no
7370     cat > conftest.c << _LT_EOF
7371     int forced_loaded() { return 2;}
7372     _LT_EOF
7373     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7374     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7375     echo "$AR cru libconftest.a conftest.o" >&5
7376     $AR cru libconftest.a conftest.o 2>&5
7377     echo "$RANLIB libconftest.a" >&5
7378     $RANLIB libconftest.a 2>&5
7379     cat > conftest.c << _LT_EOF
7380     int main() { return 0;}
7381     _LT_EOF
7382     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7383     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7384     _lt_result=$?
7385     if test -s conftest.err && $GREP force_load conftest.err; then
7386     cat conftest.err >&5
7387     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7388     lt_cv_ld_force_load=yes
7389     else
7390     cat conftest.err >&5
7391     fi
7392     rm -f conftest.err libconftest.a conftest conftest.c
7393     rm -rf conftest.dSYM
7394    
7395     fi
7396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7397     $as_echo "$lt_cv_ld_force_load" >&6; }
7398     case $host_os in
7399     rhapsody* | darwin1.[012])
7400     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7401     darwin1.*)
7402     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7403     darwin*) # darwin 5.x on
7404     # if running on 10.5 or later, the deployment target defaults
7405     # to the OS version, if on x86, and 10.4, the deployment
7406     # target defaults to 10.4. Don't you love it?
7407     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7408     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7409     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7410     10.[012][,.]*)
7411     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7412     10.*)
7413     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7414     esac
7415     ;;
7416     esac
7417     if test yes = "$lt_cv_apple_cc_single_mod"; then
7418     _lt_dar_single_mod='$single_module'
7419     fi
7420     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7421     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7422     else
7423     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7424     fi
7425     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7426     _lt_dsymutil='~$DSYMUTIL $lib || :'
7427     else
7428     _lt_dsymutil=
7429     fi
7430     ;;
7431     esac
7432    
7433     ac_ext=c
7434     ac_cpp='$CPP $CPPFLAGS'
7435     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7439     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7440     # On Suns, sometimes $CPP names a directory.
7441     if test -n "$CPP" && test -d "$CPP"; then
7442     CPP=
7443     fi
7444     if test -z "$CPP"; then
7445     if ${ac_cv_prog_CPP+:} false; then :
7446     $as_echo_n "(cached) " >&6
7447     else
7448     # Double quotes because CPP needs to be expanded
7449     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7450     do
7451     ac_preproc_ok=false
7452     for ac_c_preproc_warn_flag in '' yes
7453     do
7454     # Use a header file that comes with gcc, so configuring glibc
7455     # with a fresh cross-compiler works.
7456     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457     # <limits.h> exists even on freestanding compilers.
7458     # On the NeXT, cc -E runs the code through the compiler's parser,
7459     # not just through cpp. "Syntax error" is here to catch this case.
7460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461     /* end confdefs.h. */
7462     #ifdef __STDC__
7463     # include <limits.h>
7464     #else
7465     # include <assert.h>
7466     #endif
7467     Syntax error
7468     _ACEOF
7469     if ac_fn_c_try_cpp "$LINENO"; then :
7470    
7471     else
7472     # Broken: fails on valid input.
7473     continue
7474     fi
7475     rm -f conftest.err conftest.i conftest.$ac_ext
7476    
7477     # OK, works on sane cases. Now check whether nonexistent headers
7478     # can be detected and how.
7479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480     /* end confdefs.h. */
7481     #include <ac_nonexistent.h>
7482     _ACEOF
7483     if ac_fn_c_try_cpp "$LINENO"; then :
7484     # Broken: success on invalid input.
7485     continue
7486     else
7487     # Passes both tests.
7488     ac_preproc_ok=:
7489     break
7490     fi
7491     rm -f conftest.err conftest.i conftest.$ac_ext
7492    
7493     done
7494     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7495     rm -f conftest.i conftest.err conftest.$ac_ext
7496     if $ac_preproc_ok; then :
7497     break
7498     fi
7499    
7500     done
7501     ac_cv_prog_CPP=$CPP
7502    
7503     fi
7504     CPP=$ac_cv_prog_CPP
7505     else
7506     ac_cv_prog_CPP=$CPP
7507     fi
7508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7509     $as_echo "$CPP" >&6; }
7510     ac_preproc_ok=false
7511     for ac_c_preproc_warn_flag in '' yes
7512     do
7513     # Use a header file that comes with gcc, so configuring glibc
7514     # with a fresh cross-compiler works.
7515     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516     # <limits.h> exists even on freestanding compilers.
7517     # On the NeXT, cc -E runs the code through the compiler's parser,
7518     # not just through cpp. "Syntax error" is here to catch this case.
7519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520     /* end confdefs.h. */
7521     #ifdef __STDC__
7522     # include <limits.h>
7523     #else
7524     # include <assert.h>
7525     #endif
7526     Syntax error
7527     _ACEOF
7528     if ac_fn_c_try_cpp "$LINENO"; then :
7529    
7530     else
7531     # Broken: fails on valid input.
7532     continue
7533     fi
7534     rm -f conftest.err conftest.i conftest.$ac_ext
7535    
7536     # OK, works on sane cases. Now check whether nonexistent headers
7537     # can be detected and how.
7538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539     /* end confdefs.h. */
7540     #include <ac_nonexistent.h>
7541     _ACEOF
7542     if ac_fn_c_try_cpp "$LINENO"; then :
7543     # Broken: success on invalid input.
7544     continue
7545     else
7546     # Passes both tests.
7547     ac_preproc_ok=:
7548     break
7549     fi
7550     rm -f conftest.err conftest.i conftest.$ac_ext
7551    
7552     done
7553     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7554     rm -f conftest.i conftest.err conftest.$ac_ext
7555     if $ac_preproc_ok; then :
7556    
7557     else
7558     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7559     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7560     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7561     See \`config.log' for more details" "$LINENO" 5; }
7562     fi
7563    
7564     ac_ext=c
7565     ac_cpp='$CPP $CPPFLAGS'
7566     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569    
7570    
7571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7572     $as_echo_n "checking for ANSI C header files... " >&6; }
7573     if ${ac_cv_header_stdc+:} false; then :
7574     $as_echo_n "(cached) " >&6
7575     else
7576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577     /* end confdefs.h. */
7578     #include <stdlib.h>
7579     #include <stdarg.h>
7580     #include <string.h>
7581     #include <float.h>
7582    
7583     int
7584     main ()
7585     {
7586    
7587     ;
7588     return 0;
7589     }
7590     _ACEOF
7591     if ac_fn_c_try_compile "$LINENO"; then :
7592     ac_cv_header_stdc=yes
7593     else
7594     ac_cv_header_stdc=no
7595     fi
7596     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597    
7598     if test $ac_cv_header_stdc = yes; then
7599     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7600     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601     /* end confdefs.h. */
7602     #include <string.h>
7603    
7604     _ACEOF
7605     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606     $EGREP "memchr" >/dev/null 2>&1; then :
7607    
7608     else
7609     ac_cv_header_stdc=no
7610     fi
7611     rm -f conftest*
7612    
7613     fi
7614    
7615     if test $ac_cv_header_stdc = yes; then
7616     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618     /* end confdefs.h. */
7619     #include <stdlib.h>
7620    
7621     _ACEOF
7622     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623     $EGREP "free" >/dev/null 2>&1; then :
7624    
7625     else
7626     ac_cv_header_stdc=no
7627     fi
7628     rm -f conftest*
7629    
7630     fi
7631    
7632     if test $ac_cv_header_stdc = yes; then
7633     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7634     if test "$cross_compiling" = yes; then :
7635     :
7636     else
7637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638     /* end confdefs.h. */
7639     #include <ctype.h>
7640     #include <stdlib.h>
7641     #if ((' ' & 0x0FF) == 0x020)
7642     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7643     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7644     #else
7645     # define ISLOWER(c) \
7646     (('a' <= (c) && (c) <= 'i') \
7647     || ('j' <= (c) && (c) <= 'r') \
7648     || ('s' <= (c) && (c) <= 'z'))
7649     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7650     #endif
7651    
7652     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7653     int
7654     main ()
7655     {
7656     int i;
7657     for (i = 0; i < 256; i++)
7658     if (XOR (islower (i), ISLOWER (i))
7659     || toupper (i) != TOUPPER (i))
7660     return 2;
7661     return 0;
7662     }
7663     _ACEOF
7664     if ac_fn_c_try_run "$LINENO"; then :
7665    
7666     else
7667     ac_cv_header_stdc=no
7668     fi
7669     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7670     conftest.$ac_objext conftest.beam conftest.$ac_ext
7671     fi
7672    
7673     fi
7674     fi
7675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7676     $as_echo "$ac_cv_header_stdc" >&6; }
7677     if test $ac_cv_header_stdc = yes; then
7678    
7679     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7680    
7681     fi
7682    
7683     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7684     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7685     inttypes.h stdint.h unistd.h
7686     do :
7687     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7688     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7689     "
7690     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7691     cat >>confdefs.h <<_ACEOF
7692     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7693     _ACEOF
7694    
7695     fi
7696    
7697     done
7698    
7699    
7700     for ac_header in dlfcn.h
7701     do :
7702     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7703     "
7704     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7705     cat >>confdefs.h <<_ACEOF
7706     #define HAVE_DLFCN_H 1
7707     _ACEOF
7708    
7709     fi
7710    
7711     done
7712    
7713    
7714    
7715    
7716    
7717     # Set options
7718    
7719    
7720    
7721     enable_dlopen=no
7722    
7723    
7724     enable_win32_dll=no
7725    
7726    
7727     # Check whether --enable-shared was given.
7728     if test "${enable_shared+set}" = set; then :
7729     enableval=$enable_shared; p=${PACKAGE-default}
7730     case $enableval in
7731     yes) enable_shared=yes ;;
7732     no) enable_shared=no ;;
7733     *)
7734     enable_shared=no
7735     # Look at the argument we got. We use all the common list separators.
7736     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7737     for pkg in $enableval; do
7738     IFS=$lt_save_ifs
7739     if test "X$pkg" = "X$p"; then
7740     enable_shared=yes
7741     fi
7742     done
7743     IFS=$lt_save_ifs
7744     ;;
7745     esac
7746     else
7747     enable_shared=yes
7748     fi
7749    
7750    
7751    
7752    
7753    
7754    
7755    
7756    
7757    
7758     # Check whether --enable-static was given.
7759     if test "${enable_static+set}" = set; then :
7760     enableval=$enable_static; p=${PACKAGE-default}
7761     case $enableval in
7762     yes) enable_static=yes ;;
7763     no) enable_static=no ;;
7764     *)
7765     enable_static=no
7766     # Look at the argument we got. We use all the common list separators.
7767     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7768     for pkg in $enableval; do
7769     IFS=$lt_save_ifs
7770     if test "X$pkg" = "X$p"; then
7771     enable_static=yes
7772     fi
7773     done
7774     IFS=$lt_save_ifs
7775     ;;
7776     esac
7777     else
7778     enable_static=yes
7779     fi
7780    
7781    
7782    
7783    
7784    
7785    
7786    
7787    
7788    
7789    
7790     # Check whether --with-pic was given.
7791     if test "${with_pic+set}" = set; then :
7792     withval=$with_pic; lt_p=${PACKAGE-default}
7793     case $withval in
7794     yes|no) pic_mode=$withval ;;
7795     *)
7796     pic_mode=default
7797     # Look at the argument we got. We use all the common list separators.
7798     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7799     for lt_pkg in $withval; do
7800     IFS=$lt_save_ifs
7801     if test "X$lt_pkg" = "X$lt_p"; then
7802     pic_mode=yes
7803     fi
7804     done
7805     IFS=$lt_save_ifs
7806     ;;
7807     esac
7808     else
7809     pic_mode=default
7810     fi
7811    
7812    
7813    
7814    
7815    
7816    
7817    
7818    
7819     # Check whether --enable-fast-install was given.
7820     if test "${enable_fast_install+set}" = set; then :
7821     enableval=$enable_fast_install; p=${PACKAGE-default}
7822     case $enableval in
7823     yes) enable_fast_install=yes ;;
7824     no) enable_fast_install=no ;;
7825     *)
7826     enable_fast_install=no
7827     # Look at the argument we got. We use all the common list separators.
7828     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7829     for pkg in $enableval; do
7830     IFS=$lt_save_ifs
7831     if test "X$pkg" = "X$p"; then
7832     enable_fast_install=yes
7833     fi
7834     done
7835     IFS=$lt_save_ifs
7836     ;;
7837     esac
7838     else
7839     enable_fast_install=yes
7840     fi
7841    
7842    
7843    
7844    
7845    
7846    
7847    
7848    
7849     shared_archive_member_spec=
7850     case $host,$enable_shared in
7851     power*-*-aix[5-9]*,yes)
7852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7853     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7854    
7855     # Check whether --with-aix-soname was given.
7856     if test "${with_aix_soname+set}" = set; then :
7857     withval=$with_aix_soname; case $withval in
7858     aix|svr4|both)
7859     ;;
7860     *)
7861     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7862     ;;
7863     esac
7864     lt_cv_with_aix_soname=$with_aix_soname
7865     else
7866     if ${lt_cv_with_aix_soname+:} false; then :
7867     $as_echo_n "(cached) " >&6
7868     else
7869     lt_cv_with_aix_soname=aix
7870     fi
7871    
7872     with_aix_soname=$lt_cv_with_aix_soname
7873     fi
7874    
7875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7876     $as_echo "$with_aix_soname" >&6; }
7877     if test aix != "$with_aix_soname"; then
7878     # For the AIX way of multilib, we name the shared archive member
7879     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7880     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7881     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7882     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7883     if test 64 = "${OBJECT_MODE-32}"; then
7884     shared_archive_member_spec=shr_64
7885     else
7886     shared_archive_member_spec=shr
7887     fi
7888     fi
7889     ;;
7890     *)
7891     with_aix_soname=aix
7892     ;;
7893     esac
7894    
7895    
7896    
7897    
7898    
7899    
7900    
7901    
7902    
7903    
7904     # This can be used to rebuild libtool when needed
7905     LIBTOOL_DEPS=$ltmain
7906    
7907     # Always use our own libtool.
7908     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7909    
7910    
7911    
7912    
7913    
7914    
7915    
7916    
7917    
7918    
7919    
7920    
7921    
7922    
7923    
7924    
7925    
7926    
7927    
7928    
7929    
7930    
7931    
7932    
7933    
7934    
7935    
7936    
7937    
7938    
7939     test -z "$LN_S" && LN_S="ln -s"
7940    
7941    
7942    
7943    
7944    
7945    
7946    
7947    
7948    
7949    
7950    
7951    
7952    
7953    
7954     if test -n "${ZSH_VERSION+set}"; then
7955     setopt NO_GLOB_SUBST
7956     fi
7957    
7958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7959     $as_echo_n "checking for objdir... " >&6; }
7960     if ${lt_cv_objdir+:} false; then :
7961     $as_echo_n "(cached) " >&6
7962     else
7963     rm -f .libs 2>/dev/null
7964     mkdir .libs 2>/dev/null
7965     if test -d .libs; then
7966     lt_cv_objdir=.libs
7967     else
7968     # MS-DOS does not allow filenames that begin with a dot.
7969     lt_cv_objdir=_libs
7970     fi
7971     rmdir .libs 2>/dev/null
7972     fi
7973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7974     $as_echo "$lt_cv_objdir" >&6; }
7975     objdir=$lt_cv_objdir
7976    
7977    
7978    
7979    
7980    
7981     cat >>confdefs.h <<_ACEOF
7982     #define LT_OBJDIR "$lt_cv_objdir/"
7983     _ACEOF
7984    
7985    
7986    
7987    
7988     case $host_os in
7989     aix3*)
7990     # AIX sometimes has problems with the GCC collect2 program. For some
7991     # reason, if we set the COLLECT_NAMES environment variable, the problems
7992     # vanish in a puff of smoke.
7993     if test set != "${COLLECT_NAMES+set}"; then
7994     COLLECT_NAMES=
7995     export COLLECT_NAMES
7996     fi
7997     ;;
7998     esac
7999    
8000     # Global variables:
8001     ofile=libtool
8002     can_build_shared=yes
8003    
8004     # All known linkers require a '.a' archive for static linking (except MSVC,
8005     # which needs '.lib').
8006     libext=a
8007    
8008     with_gnu_ld=$lt_cv_prog_gnu_ld
8009    
8010     old_CC=$CC
8011     old_CFLAGS=$CFLAGS
8012    
8013 michael 5052 # Set sane defaults for various variables
8014     test -z "$CC" && CC=cc
8015     test -z "$LTCC" && LTCC=$CC
8016     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8017     test -z "$LD" && LD=ld
8018     test -z "$ac_objext" && ac_objext=o
8019    
8020     for cc_temp in $compiler""; do
8021     case $cc_temp in
8022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8024     \-*) ;;
8025     *) break;;
8026     esac
8027     done
8028 michael 5059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8029 michael 5052
8030    
8031     # Only perform the check for file, if the check method requires it
8032 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8033 michael 5052 case $deplibs_check_method in
8034     file_magic*)
8035     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8036 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8037     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8038     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039     $as_echo_n "(cached) " >&6
8040 michael 5052 else
8041     case $MAGIC_CMD in
8042     [\\/*] | ?:[\\/]*)
8043 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044 michael 5052 ;;
8045     *)
8046 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8047     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049     for ac_dir in $ac_dummy; do
8050 michael 5059 IFS=$lt_save_ifs
8051 michael 5052 test -z "$ac_dir" && ac_dir=.
8052 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8053     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8054 michael 5052 if test -n "$file_magic_test_file"; then
8055     case $deplibs_check_method in
8056     "file_magic "*)
8057     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060     $EGREP "$file_magic_regex" > /dev/null; then
8061     :
8062     else
8063 michael 5059 cat <<_LT_EOF 1>&2
8064 michael 5052
8065     *** Warning: the command libtool uses to detect shared libraries,
8066     *** $file_magic_cmd, produces output that libtool cannot recognize.
8067     *** The result is that libtool may fail to recognize shared libraries
8068     *** as such. This will affect the creation of libtool libraries that
8069     *** depend on shared libraries, but programs linked with such libtool
8070     *** libraries will work regardless of this problem. Nevertheless, you
8071     *** may want to report the problem to your system manager and/or to
8072     *** bug-libtool@gnu.org
8073    
8074 michael 5059 _LT_EOF
8075 michael 5052 fi ;;
8076     esac
8077     fi
8078     break
8079     fi
8080     done
8081 michael 5059 IFS=$lt_save_ifs
8082     MAGIC_CMD=$lt_save_MAGIC_CMD
8083 michael 5052 ;;
8084     esac
8085     fi
8086    
8087 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088 michael 5052 if test -n "$MAGIC_CMD"; then
8089 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090     $as_echo "$MAGIC_CMD" >&6; }
8091 michael 5052 else
8092 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093     $as_echo "no" >&6; }
8094 michael 5052 fi
8095    
8096 michael 5059
8097    
8098    
8099    
8100 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8101     if test -n "$ac_tool_prefix"; then
8102 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8103     $as_echo_n "checking for file... " >&6; }
8104     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105     $as_echo_n "(cached) " >&6
8106 michael 5052 else
8107     case $MAGIC_CMD in
8108     [\\/*] | ?:[\\/]*)
8109 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8110 michael 5052 ;;
8111     *)
8112 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8113     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8114 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115     for ac_dir in $ac_dummy; do
8116 michael 5059 IFS=$lt_save_ifs
8117 michael 5052 test -z "$ac_dir" && ac_dir=.
8118 michael 5059 if test -f "$ac_dir/file"; then
8119     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8120 michael 5052 if test -n "$file_magic_test_file"; then
8121     case $deplibs_check_method in
8122     "file_magic "*)
8123     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8125 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126     $EGREP "$file_magic_regex" > /dev/null; then
8127     :
8128     else
8129 michael 5059 cat <<_LT_EOF 1>&2
8130 michael 5052
8131     *** Warning: the command libtool uses to detect shared libraries,
8132     *** $file_magic_cmd, produces output that libtool cannot recognize.
8133     *** The result is that libtool may fail to recognize shared libraries
8134     *** as such. This will affect the creation of libtool libraries that
8135     *** depend on shared libraries, but programs linked with such libtool
8136     *** libraries will work regardless of this problem. Nevertheless, you
8137     *** may want to report the problem to your system manager and/or to
8138     *** bug-libtool@gnu.org
8139    
8140 michael 5059 _LT_EOF
8141 michael 5052 fi ;;
8142     esac
8143     fi
8144     break
8145     fi
8146     done
8147 michael 5059 IFS=$lt_save_ifs
8148     MAGIC_CMD=$lt_save_MAGIC_CMD
8149 michael 5052 ;;
8150     esac
8151     fi
8152    
8153 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8154 michael 5052 if test -n "$MAGIC_CMD"; then
8155 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156     $as_echo "$MAGIC_CMD" >&6; }
8157 michael 5052 else
8158 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159     $as_echo "no" >&6; }
8160 michael 5052 fi
8161    
8162 michael 5059
8163 michael 5052 else
8164     MAGIC_CMD=:
8165     fi
8166     fi
8167    
8168     fi
8169     ;;
8170     esac
8171    
8172 michael 5059 # Use C for the default configuration in the libtool script
8173 michael 5052
8174 michael 5059 lt_save_CC=$CC
8175 michael 5052 ac_ext=c
8176     ac_cpp='$CPP $CPPFLAGS'
8177     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180    
8181    
8182     # Source file extension for C test sources.
8183     ac_ext=c
8184    
8185     # Object file extension for compiled C test sources.
8186     objext=o
8187     objext=$objext
8188    
8189     # Code to be used in simple compile tests
8190 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8191 michael 5052
8192     # Code to be used in simple link tests
8193 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8194 michael 5052
8195    
8196 michael 5059
8197    
8198    
8199    
8200    
8201 michael 5052 # If no C compiler was specified, use CC.
8202     LTCC=${LTCC-"$CC"}
8203    
8204     # If no C compiler flags were specified, use CFLAGS.
8205     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8206    
8207     # Allow CC to be a program name with arguments.
8208     compiler=$CC
8209    
8210 michael 5059 # Save the default compiler, since it gets overwritten when the other
8211     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8212     compiler_DEFAULT=$CC
8213 michael 5052
8214     # save warnings/boilerplate of simple test code
8215     ac_outfile=conftest.$ac_objext
8216 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8217 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8218     _lt_compiler_boilerplate=`cat conftest.err`
8219 michael 5059 $RM conftest*
8220 michael 5052
8221     ac_outfile=conftest.$ac_objext
8222 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8223 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224     _lt_linker_boilerplate=`cat conftest.err`
8225 michael 5059 $RM -r conftest*
8226 michael 5052
8227    
8228 michael 5059 if test -n "$compiler"; then
8229 michael 5052
8230     lt_prog_compiler_no_builtin_flag=
8231    
8232 michael 5059 if test yes = "$GCC"; then
8233     case $cc_basename in
8234     nvcc*)
8235     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8236     *)
8237     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8238     esac
8239 michael 5052
8240 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8243     $as_echo_n "(cached) " >&6
8244 michael 5052 else
8245     lt_cv_prog_compiler_rtti_exceptions=no
8246 michael 5059 ac_outfile=conftest.$ac_objext
8247     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8249 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8250     # (2) before a word containing "conftest.", or (3) at the end.
8251     # Note that $ac_compile itself does not contain backslashes and begins
8252     # with a dollar sign (not a hyphen), so the echo should work correctly.
8253     # The option is referenced via a variable to avoid confusing sed.
8254     lt_compile=`echo "$ac_compile" | $SED \
8255     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257     -e 's:$: $lt_compiler_flag:'`
8258 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 michael 5052 (eval "$lt_compile" 2>conftest.err)
8260     ac_status=$?
8261     cat conftest.err >&5
8262 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8264     # The compiler can only warn and ignore the option if not recognized
8265     # So say no if there are warnings other than the usual output.
8266 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269     lt_cv_prog_compiler_rtti_exceptions=yes
8270     fi
8271     fi
8272 michael 5059 $RM conftest*
8273 michael 5052
8274     fi
8275 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8277 michael 5052
8278 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8279 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8280     else
8281     :
8282     fi
8283    
8284     fi
8285    
8286 michael 5059
8287    
8288    
8289    
8290    
8291     lt_prog_compiler_wl=
8292 michael 5052 lt_prog_compiler_pic=
8293     lt_prog_compiler_static=
8294    
8295    
8296 michael 5059 if test yes = "$GCC"; then
8297 michael 5052 lt_prog_compiler_wl='-Wl,'
8298     lt_prog_compiler_static='-static'
8299    
8300     case $host_os in
8301     aix*)
8302     # All AIX code is PIC.
8303 michael 5059 if test ia64 = "$host_cpu"; then
8304 michael 5052 # AIX 5 now supports IA64 processor
8305     lt_prog_compiler_static='-Bstatic'
8306     fi
8307 michael 5059 lt_prog_compiler_pic='-fPIC'
8308 michael 5052 ;;
8309    
8310     amigaos*)
8311 michael 5059 case $host_cpu in
8312     powerpc)
8313     # see comment about AmigaOS4 .so support
8314     lt_prog_compiler_pic='-fPIC'
8315     ;;
8316     m68k)
8317     # FIXME: we need at least 68020 code to build shared libraries, but
8318     # adding the '-m68020' flag to GCC prevents building anything better,
8319     # like '-m68040'.
8320     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8321     ;;
8322     esac
8323 michael 5052 ;;
8324    
8325 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8326 michael 5052 # PIC is the default for these OSes.
8327     ;;
8328    
8329 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8330 michael 5052 # This hack is so that the source file can tell whether it is being
8331     # built for inclusion in a dll (and should export symbols for example).
8332 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8333     # (--disable-auto-import) libraries
8334 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8335 michael 5059 case $host_os in
8336     os2*)
8337     lt_prog_compiler_static='$wl-static'
8338     ;;
8339     esac
8340 michael 5052 ;;
8341    
8342     darwin* | rhapsody*)
8343     # PIC is the default on this platform
8344     # Common symbols not allowed in MH_DYLIB files
8345     lt_prog_compiler_pic='-fno-common'
8346     ;;
8347    
8348 michael 5059 haiku*)
8349     # PIC is the default for Haiku.
8350     # The "-static" flag exists, but is broken.
8351     lt_prog_compiler_static=
8352     ;;
8353    
8354     hpux*)
8355     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8356     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8357     # sets the default TLS model and affects inlining.
8358     case $host_cpu in
8359     hppa*64*)
8360     # +Z the default
8361     ;;
8362     *)
8363     lt_prog_compiler_pic='-fPIC'
8364     ;;
8365     esac
8366     ;;
8367    
8368     interix[3-9]*)
8369 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8370     # Instead, we relocate shared libraries at runtime.
8371     ;;
8372    
8373     msdosdjgpp*)
8374     # Just because we use GCC doesn't mean we suddenly get shared libraries
8375     # on systems that don't support them.
8376     lt_prog_compiler_can_build_shared=no
8377     enable_shared=no
8378     ;;
8379    
8380 michael 5059 *nto* | *qnx*)
8381     # QNX uses GNU C++, but need to define -shared option too, otherwise
8382     # it will coredump.
8383     lt_prog_compiler_pic='-fPIC -shared'
8384     ;;
8385    
8386 michael 5052 sysv4*MP*)
8387     if test -d /usr/nec; then
8388     lt_prog_compiler_pic=-Kconform_pic
8389     fi
8390     ;;
8391    
8392     *)
8393     lt_prog_compiler_pic='-fPIC'
8394     ;;
8395     esac
8396 michael 5059
8397     case $cc_basename in
8398     nvcc*) # Cuda Compiler Driver 2.2
8399     lt_prog_compiler_wl='-Xlinker '
8400     if test -n "$lt_prog_compiler_pic"; then
8401     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8402     fi
8403     ;;
8404     esac
8405 michael 5052 else
8406     # PORTME Check for flag to pass linker flags through the system compiler.
8407     case $host_os in
8408     aix*)
8409     lt_prog_compiler_wl='-Wl,'
8410 michael 5059 if test ia64 = "$host_cpu"; then
8411 michael 5052 # AIX 5 now supports IA64 processor
8412     lt_prog_compiler_static='-Bstatic'
8413     else
8414     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8415     fi
8416     ;;
8417    
8418 michael 5059 darwin* | rhapsody*)
8419     # PIC is the default on this platform
8420     # Common symbols not allowed in MH_DYLIB files
8421     lt_prog_compiler_pic='-fno-common'
8422     case $cc_basename in
8423     nagfor*)
8424     # NAG Fortran compiler
8425     lt_prog_compiler_wl='-Wl,-Wl,,'
8426     lt_prog_compiler_pic='-PIC'
8427     lt_prog_compiler_static='-Bstatic'
8428     ;;
8429     esac
8430     ;;
8431    
8432     mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 michael 5052 # This hack is so that the source file can tell whether it is being
8434     # built for inclusion in a dll (and should export symbols for example).
8435     lt_prog_compiler_pic='-DDLL_EXPORT'
8436 michael 5059 case $host_os in
8437     os2*)
8438     lt_prog_compiler_static='$wl-static'
8439     ;;
8440     esac
8441 michael 5052 ;;
8442    
8443     hpux9* | hpux10* | hpux11*)
8444     lt_prog_compiler_wl='-Wl,'
8445     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8446     # not for PA HP-UX.
8447     case $host_cpu in
8448     hppa*64*|ia64*)
8449     # +Z the default
8450     ;;
8451     *)
8452     lt_prog_compiler_pic='+Z'
8453     ;;
8454     esac
8455     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8456 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8457 michael 5052 ;;
8458    
8459     irix5* | irix6* | nonstopux*)
8460     lt_prog_compiler_wl='-Wl,'
8461     # PIC (with -KPIC) is the default.
8462     lt_prog_compiler_static='-non_shared'
8463     ;;
8464    
8465 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8466 michael 5052 case $cc_basename in
8467 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8468     ecc*)
8469 michael 5052 lt_prog_compiler_wl='-Wl,'
8470     lt_prog_compiler_pic='-KPIC'
8471     lt_prog_compiler_static='-static'
8472     ;;
8473 michael 5059 # icc used to be incompatible with GCC.
8474     # ICC 10 doesn't accept -KPIC any more.
8475     icc* | ifort*)
8476     lt_prog_compiler_wl='-Wl,'
8477     lt_prog_compiler_pic='-fPIC'
8478     lt_prog_compiler_static='-static'
8479     ;;
8480     # Lahey Fortran 8.1.
8481     lf95*)
8482     lt_prog_compiler_wl='-Wl,'
8483     lt_prog_compiler_pic='--shared'
8484     lt_prog_compiler_static='--static'
8485     ;;
8486     nagfor*)
8487     # NAG Fortran compiler
8488     lt_prog_compiler_wl='-Wl,-Wl,,'
8489     lt_prog_compiler_pic='-PIC'
8490     lt_prog_compiler_static='-Bstatic'
8491     ;;
8492     tcc*)
8493     # Fabrice Bellard et al's Tiny C Compiler
8494     lt_prog_compiler_wl='-Wl,'
8495     lt_prog_compiler_pic='-fPIC'
8496     lt_prog_compiler_static='-static'
8497     ;;
8498     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8499 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8500     # which looks to be a dead project)
8501     lt_prog_compiler_wl='-Wl,'
8502     lt_prog_compiler_pic='-fpic'
8503     lt_prog_compiler_static='-Bstatic'
8504     ;;
8505     ccc*)
8506     lt_prog_compiler_wl='-Wl,'
8507     # All Alpha code is PIC.
8508     lt_prog_compiler_static='-non_shared'
8509     ;;
8510 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8511     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8512     lt_prog_compiler_wl='-Wl,'
8513     lt_prog_compiler_pic='-qpic'
8514     lt_prog_compiler_static='-qstaticlink'
8515     ;;
8516     *)
8517     case `$CC -V 2>&1 | sed 5q` in
8518     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8519     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8520     lt_prog_compiler_pic='-KPIC'
8521     lt_prog_compiler_static='-Bstatic'
8522     lt_prog_compiler_wl=''
8523     ;;
8524     *Sun\ F* | *Sun*Fortran*)
8525     lt_prog_compiler_pic='-KPIC'
8526     lt_prog_compiler_static='-Bstatic'
8527     lt_prog_compiler_wl='-Qoption ld '
8528     ;;
8529     *Sun\ C*)
8530     # Sun C 5.9
8531     lt_prog_compiler_pic='-KPIC'
8532     lt_prog_compiler_static='-Bstatic'
8533     lt_prog_compiler_wl='-Wl,'
8534     ;;
8535     *Intel*\ [CF]*Compiler*)
8536     lt_prog_compiler_wl='-Wl,'
8537     lt_prog_compiler_pic='-fPIC'
8538     lt_prog_compiler_static='-static'
8539     ;;
8540     *Portland\ Group*)
8541     lt_prog_compiler_wl='-Wl,'
8542     lt_prog_compiler_pic='-fpic'
8543     lt_prog_compiler_static='-Bstatic'
8544     ;;
8545     esac
8546     ;;
8547 michael 5052 esac
8548     ;;
8549    
8550 michael 5059 newsos6)
8551     lt_prog_compiler_pic='-KPIC'
8552     lt_prog_compiler_static='-Bstatic'
8553     ;;
8554    
8555     *nto* | *qnx*)
8556     # QNX uses GNU C++, but need to define -shared option too, otherwise
8557     # it will coredump.
8558     lt_prog_compiler_pic='-fPIC -shared'
8559     ;;
8560    
8561 michael 5052 osf3* | osf4* | osf5*)
8562     lt_prog_compiler_wl='-Wl,'
8563     # All OSF/1 code is PIC.
8564     lt_prog_compiler_static='-non_shared'
8565     ;;
8566    
8567 michael 5059 rdos*)
8568     lt_prog_compiler_static='-non_shared'
8569     ;;
8570    
8571 michael 5052 solaris*)
8572     lt_prog_compiler_pic='-KPIC'
8573     lt_prog_compiler_static='-Bstatic'
8574     case $cc_basename in
8575 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8576 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8577     *)
8578     lt_prog_compiler_wl='-Wl,';;
8579     esac
8580     ;;
8581    
8582     sunos4*)
8583     lt_prog_compiler_wl='-Qoption ld '
8584     lt_prog_compiler_pic='-PIC'
8585     lt_prog_compiler_static='-Bstatic'
8586     ;;
8587    
8588     sysv4 | sysv4.2uw2* | sysv4.3*)
8589     lt_prog_compiler_wl='-Wl,'
8590     lt_prog_compiler_pic='-KPIC'
8591     lt_prog_compiler_static='-Bstatic'
8592     ;;
8593    
8594     sysv4*MP*)
8595 michael 5059 if test -d /usr/nec; then
8596 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8597     lt_prog_compiler_static='-Bstatic'
8598     fi
8599     ;;
8600    
8601     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8602     lt_prog_compiler_wl='-Wl,'
8603     lt_prog_compiler_pic='-KPIC'
8604     lt_prog_compiler_static='-Bstatic'
8605     ;;
8606    
8607     unicos*)
8608     lt_prog_compiler_wl='-Wl,'
8609     lt_prog_compiler_can_build_shared=no
8610     ;;
8611    
8612     uts4*)
8613     lt_prog_compiler_pic='-pic'
8614     lt_prog_compiler_static='-Bstatic'
8615     ;;
8616    
8617     *)
8618     lt_prog_compiler_can_build_shared=no
8619     ;;
8620     esac
8621     fi
8622    
8623 michael 5059 case $host_os in
8624     # For platforms that do not support PIC, -DPIC is meaningless:
8625     *djgpp*)
8626     lt_prog_compiler_pic=
8627     ;;
8628     *)
8629     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8630     ;;
8631     esac
8632 michael 5052
8633 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8634     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8635     if ${lt_cv_prog_compiler_pic+:} false; then :
8636     $as_echo_n "(cached) " >&6
8637     else
8638     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8639     fi
8640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8641     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8642     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8643    
8644 michael 5052 #
8645     # Check to make sure the PIC flag actually works.
8646     #
8647     if test -n "$lt_prog_compiler_pic"; then
8648 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8649     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8650     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8651     $as_echo_n "(cached) " >&6
8652 michael 5052 else
8653 michael 5059 lt_cv_prog_compiler_pic_works=no
8654     ac_outfile=conftest.$ac_objext
8655     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8657 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8658     # (2) before a word containing "conftest.", or (3) at the end.
8659     # Note that $ac_compile itself does not contain backslashes and begins
8660     # with a dollar sign (not a hyphen), so the echo should work correctly.
8661     # The option is referenced via a variable to avoid confusing sed.
8662     lt_compile=`echo "$ac_compile" | $SED \
8663     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665     -e 's:$: $lt_compiler_flag:'`
8666 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667 michael 5052 (eval "$lt_compile" 2>conftest.err)
8668     ac_status=$?
8669     cat conftest.err >&5
8670 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8672     # The compiler can only warn and ignore the option if not recognized
8673     # So say no if there are warnings other than the usual output.
8674 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8675 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8676     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8677 michael 5059 lt_cv_prog_compiler_pic_works=yes
8678 michael 5052 fi
8679     fi
8680 michael 5059 $RM conftest*
8681 michael 5052
8682     fi
8683 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8684     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8685 michael 5052
8686 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8687 michael 5052 case $lt_prog_compiler_pic in
8688     "" | " "*) ;;
8689     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8690     esac
8691     else
8692     lt_prog_compiler_pic=
8693     lt_prog_compiler_can_build_shared=no
8694     fi
8695    
8696     fi
8697    
8698 michael 5059
8699    
8700    
8701    
8702    
8703    
8704    
8705    
8706    
8707    
8708 michael 5052 #
8709     # Check to make sure the static flag actually works.
8710     #
8711     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8712 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8713     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8714     if ${lt_cv_prog_compiler_static_works+:} false; then :
8715     $as_echo_n "(cached) " >&6
8716 michael 5052 else
8717 michael 5059 lt_cv_prog_compiler_static_works=no
8718     save_LDFLAGS=$LDFLAGS
8719 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8720 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8721 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8722     # The linker can only warn and ignore the option if not recognized
8723     # So say no if there are warnings
8724     if test -s conftest.err; then
8725     # Append any errors to the config.log.
8726     cat conftest.err 1>&5
8727 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8728 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8729     if diff conftest.exp conftest.er2 >/dev/null; then
8730 michael 5059 lt_cv_prog_compiler_static_works=yes
8731 michael 5052 fi
8732     else
8733 michael 5059 lt_cv_prog_compiler_static_works=yes
8734 michael 5052 fi
8735     fi
8736 michael 5059 $RM -r conftest*
8737     LDFLAGS=$save_LDFLAGS
8738 michael 5052
8739     fi
8740 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8741     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8742 michael 5052
8743 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8744 michael 5052 :
8745     else
8746     lt_prog_compiler_static=
8747     fi
8748    
8749    
8750 michael 5059
8751    
8752    
8753    
8754    
8755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8756     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8757     if ${lt_cv_prog_compiler_c_o+:} false; then :
8758     $as_echo_n "(cached) " >&6
8759 michael 5052 else
8760     lt_cv_prog_compiler_c_o=no
8761 michael 5059 $RM -r conftest 2>/dev/null
8762 michael 5052 mkdir conftest
8763     cd conftest
8764     mkdir out
8765 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766 michael 5052
8767     lt_compiler_flag="-o out/conftest2.$ac_objext"
8768     # Insert the option either (1) after the last *FLAGS variable, or
8769     # (2) before a word containing "conftest.", or (3) at the end.
8770     # Note that $ac_compile itself does not contain backslashes and begins
8771     # with a dollar sign (not a hyphen), so the echo should work correctly.
8772     lt_compile=`echo "$ac_compile" | $SED \
8773     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775     -e 's:$: $lt_compiler_flag:'`
8776 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8778     ac_status=$?
8779     cat out/conftest.err >&5
8780 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8782     then
8783     # The compiler can only warn and ignore the option if not recognized
8784     # So say no if there are warnings
8785 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8786 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8787     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8788     lt_cv_prog_compiler_c_o=yes
8789     fi
8790     fi
8791     chmod u+w . 2>&5
8792 michael 5059 $RM conftest*
8793 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8794     # template instantiation
8795 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8796     $RM out/* && rmdir out
8797 michael 5052 cd ..
8798 michael 5059 $RM -r conftest
8799     $RM conftest*
8800 michael 5052
8801     fi
8802 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8803     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8804 michael 5052
8805    
8806 michael 5059
8807    
8808    
8809    
8810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8811     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8812     if ${lt_cv_prog_compiler_c_o+:} false; then :
8813     $as_echo_n "(cached) " >&6
8814     else
8815     lt_cv_prog_compiler_c_o=no
8816     $RM -r conftest 2>/dev/null
8817     mkdir conftest
8818     cd conftest
8819     mkdir out
8820     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821    
8822     lt_compiler_flag="-o out/conftest2.$ac_objext"
8823     # Insert the option either (1) after the last *FLAGS variable, or
8824     # (2) before a word containing "conftest.", or (3) at the end.
8825     # Note that $ac_compile itself does not contain backslashes and begins
8826     # with a dollar sign (not a hyphen), so the echo should work correctly.
8827     lt_compile=`echo "$ac_compile" | $SED \
8828     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830     -e 's:$: $lt_compiler_flag:'`
8831     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832     (eval "$lt_compile" 2>out/conftest.err)
8833     ac_status=$?
8834     cat out/conftest.err >&5
8835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8837     then
8838     # The compiler can only warn and ignore the option if not recognized
8839     # So say no if there are warnings
8840     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8841     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8842     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8843     lt_cv_prog_compiler_c_o=yes
8844     fi
8845     fi
8846     chmod u+w . 2>&5
8847     $RM conftest*
8848     # SGI C++ compiler will create directory out/ii_files/ for
8849     # template instantiation
8850     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8851     $RM out/* && rmdir out
8852     cd ..
8853     $RM -r conftest
8854     $RM conftest*
8855    
8856     fi
8857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8858     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8859    
8860    
8861    
8862    
8863     hard_links=nottested
8864     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8865 michael 5052 # do not overwrite the value of need_locks provided by the user
8866 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8867     $as_echo_n "checking if we can lock with hard links... " >&6; }
8868 michael 5052 hard_links=yes
8869 michael 5059 $RM conftest*
8870 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871     touch conftest.a
8872     ln conftest.a conftest.b 2>&5 || hard_links=no
8873     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8874 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8875     $as_echo "$hard_links" >&6; }
8876     if test no = "$hard_links"; then
8877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8878     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8879 michael 5052 need_locks=warn
8880     fi
8881     else
8882     need_locks=no
8883     fi
8884    
8885    
8886 michael 5059
8887    
8888    
8889    
8890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8891     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8892    
8893 michael 5052 runpath_var=
8894     allow_undefined_flag=
8895 michael 5059 always_export_symbols=no
8896 michael 5052 archive_cmds=
8897     archive_expsym_cmds=
8898 michael 5059 compiler_needs_object=no
8899     enable_shared_with_static_runtimes=no
8900 michael 5052 export_dynamic_flag_spec=
8901 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8902     hardcode_automatic=no
8903     hardcode_direct=no
8904     hardcode_direct_absolute=no
8905 michael 5052 hardcode_libdir_flag_spec=
8906     hardcode_libdir_separator=
8907     hardcode_minus_L=no
8908     hardcode_shlibpath_var=unsupported
8909 michael 5059 inherit_rpath=no
8910 michael 5052 link_all_deplibs=unknown
8911     module_cmds=
8912     module_expsym_cmds=
8913 michael 5059 old_archive_from_new_cmds=
8914     old_archive_from_expsyms_cmds=
8915     thread_safe_flag_spec=
8916     whole_archive_flag_spec=
8917 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
8918     # included in the symbol list
8919     include_expsyms=
8920     # exclude_expsyms can be an extended regexp of symbols to exclude
8921 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8922     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8923     # as well as any symbol that contains 'd'.
8924     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8925 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8926     # platforms (ab)use it in PIC code, but their linkers get confused if
8927     # the symbol is explicitly referenced. Since portable code cannot
8928     # rely on this symbol name, it's probably fine to never include it in
8929     # preloaded symbol tables.
8930 michael 5059 # Exclude shared library initialization/finalization symbols.
8931 michael 5052 extract_expsyms_cmds=
8932    
8933     case $host_os in
8934 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
8935 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8936     # When not using gcc, we currently assume that we are using
8937     # Microsoft Visual C++.
8938 michael 5059 if test yes != "$GCC"; then
8939 michael 5052 with_gnu_ld=no
8940     fi
8941     ;;
8942     interix*)
8943     # we just hope/assume this is gcc and not c89 (= MSVC++)
8944     with_gnu_ld=yes
8945     ;;
8946 michael 5059 openbsd* | bitrig*)
8947 michael 5052 with_gnu_ld=no
8948     ;;
8949     esac
8950    
8951     ld_shlibs=yes
8952 michael 5059
8953     # On some targets, GNU ld is compatible enough with the native linker
8954     # that we're better off using the native interface for both.
8955     lt_use_gnu_ld_interface=no
8956     if test yes = "$with_gnu_ld"; then
8957     case $host_os in
8958     aix*)
8959     # The AIX port of GNU ld has always aspired to compatibility
8960     # with the native linker. However, as the warning in the GNU ld
8961     # block says, versions before 2.19.5* couldn't really create working
8962     # shared libraries, regardless of the interface used.
8963     case `$LD -v 2>&1` in
8964     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8965     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8966     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8967     *)
8968     lt_use_gnu_ld_interface=yes
8969     ;;
8970     esac
8971     ;;
8972     *)
8973     lt_use_gnu_ld_interface=yes
8974     ;;
8975     esac
8976     fi
8977    
8978     if test yes = "$lt_use_gnu_ld_interface"; then
8979 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
8980 michael 5059 wlarc='$wl'
8981 michael 5052
8982     # Set some defaults for GNU ld with shared library support. These
8983     # are reset later if shared libraries are not supported. Putting them
8984     # here allows them to be overridden if necessary.
8985     runpath_var=LD_RUN_PATH
8986 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8987     export_dynamic_flag_spec='$wl--export-dynamic'
8988 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
8989 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8990     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8991     else
8992     whole_archive_flag_spec=
8993 michael 5052 fi
8994     supports_anon_versioning=no
8995 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8996     *GNU\ gold*) supports_anon_versioning=yes ;;
8997 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000     *\ 2.11.*) ;; # other 2.11 versions
9001     *) supports_anon_versioning=yes ;;
9002     esac
9003    
9004     # See if GNU ld supports shared libraries.
9005     case $host_os in
9006 michael 5059 aix[3-9]*)
9007 michael 5052 # On AIX/PPC, the GNU linker is very broken
9008 michael 5059 if test ia64 != "$host_cpu"; then
9009 michael 5052 ld_shlibs=no
9010 michael 5059 cat <<_LT_EOF 1>&2
9011 michael 5052
9012 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9013 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9014     *** Therefore, libtool is disabling shared libraries support. If you
9015 michael 5059 *** really care for shared libraries, you may want to install binutils
9016     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9017     *** You will then need to restart the configuration process.
9018 michael 5052
9019 michael 5059 _LT_EOF
9020 michael 5052 fi
9021     ;;
9022    
9023     amigaos*)
9024 michael 5059 case $host_cpu in
9025     powerpc)
9026     # see comment about AmigaOS4 .so support
9027     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9028     archive_expsym_cmds=''
9029     ;;
9030     m68k)
9031     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)'
9032     hardcode_libdir_flag_spec='-L$libdir'
9033     hardcode_minus_L=yes
9034     ;;
9035     esac
9036 michael 5052 ;;
9037    
9038     beos*)
9039 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 michael 5052 allow_undefined_flag=unsupported
9041     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9042     # support --undefined. This deserves some investigation. FIXME
9043 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9044 michael 5052 else
9045     ld_shlibs=no
9046     fi
9047     ;;
9048    
9049 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9050     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9051 michael 5052 # as there is no search path for DLLs.
9052     hardcode_libdir_flag_spec='-L$libdir'
9053 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9054 michael 5052 allow_undefined_flag=unsupported
9055     always_export_symbols=no
9056     enable_shared_with_static_runtimes=yes
9057 michael 5059 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'
9058     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9059 michael 5052
9060 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9061     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9062     # If the export-symbols file already is a .def file, use it as
9063     # is; otherwise, prepend EXPORTS...
9064     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9065     cp $export_symbols $output_objdir/$soname.def;
9066     else
9067     echo EXPORTS > $output_objdir/$soname.def;
9068     cat $export_symbols >> $output_objdir/$soname.def;
9069     fi~
9070     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9071 michael 5052 else
9072     ld_shlibs=no
9073     fi
9074     ;;
9075    
9076 michael 5059 haiku*)
9077     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9078     link_all_deplibs=yes
9079     ;;
9080    
9081     os2*)
9082     hardcode_libdir_flag_spec='-L$libdir'
9083     hardcode_minus_L=yes
9084     allow_undefined_flag=unsupported
9085     shrext_cmds=.dll
9086     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9087     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9088     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9089     $ECHO EXPORTS >> $output_objdir/$libname.def~
9090     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9091     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9092     emximp -o $lib $output_objdir/$libname.def'
9093     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9094     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9095     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9096     $ECHO EXPORTS >> $output_objdir/$libname.def~
9097     prefix_cmds="$SED"~
9098     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9099     prefix_cmds="$prefix_cmds -e 1d";
9100     fi~
9101     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9102     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9103     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9104     emximp -o $lib $output_objdir/$libname.def'
9105     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9106     enable_shared_with_static_runtimes=yes
9107     ;;
9108    
9109     interix[3-9]*)
9110 michael 5052 hardcode_direct=no
9111     hardcode_shlibpath_var=no
9112 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9113     export_dynamic_flag_spec='$wl-E'
9114 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9115     # Instead, shared libraries are loaded at an image base (0x10000000 by
9116     # default) and relocated if they conflict, which is a slow very memory
9117     # consuming and fragmenting process. To avoid this, we pick a random,
9118     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9119     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9120 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9121     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'
9122 michael 5052 ;;
9123    
9124 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9125     tmp_diet=no
9126     if test linux-dietlibc = "$host_os"; then
9127     case $cc_basename in
9128     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9129     esac
9130     fi
9131     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9132     && test no = "$tmp_diet"
9133     then
9134     tmp_addflag=' $pic_flag'
9135     tmp_sharedflag='-shared'
9136 michael 5052 case $cc_basename,$host_cpu in
9137 michael 5059 pgcc*) # Portland Group C compiler
9138     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'
9139 michael 5052 tmp_addflag=' $pic_flag'
9140     ;;
9141 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9142     # Portland Group f77 and f90 compilers
9143     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'
9144 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9145 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9146 michael 5052 tmp_addflag=' -i_dynamic' ;;
9147     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9148     tmp_addflag=' -i_dynamic -nofor_main' ;;
9149     ifc* | ifort*) # Intel Fortran compiler
9150     tmp_addflag=' -nofor_main' ;;
9151 michael 5059 lf95*) # Lahey Fortran 8.1
9152     whole_archive_flag_spec=
9153     tmp_sharedflag='--shared' ;;
9154     nagfor*) # NAGFOR 5.3
9155     tmp_sharedflag='-Wl,-shared' ;;
9156     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157     tmp_sharedflag='-qmkshrobj'
9158     tmp_addflag= ;;
9159     nvcc*) # Cuda Compiler Driver 2.2
9160     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'
9161     compiler_needs_object=yes
9162     ;;
9163 michael 5052 esac
9164 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9165     *Sun\ C*) # Sun C 5.9
9166     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'
9167     compiler_needs_object=yes
9168     tmp_sharedflag='-G' ;;
9169     *Sun\ F*) # Sun Fortran 8.3
9170     tmp_sharedflag='-G' ;;
9171     esac
9172     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9173 michael 5052
9174 michael 5059 if test yes = "$supports_anon_versioning"; then
9175     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177     echo "local: *; };" >> $output_objdir/$libname.ver~
9178     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9179     fi
9180    
9181     case $cc_basename in
9182     tcc*)
9183     export_dynamic_flag_spec='-rdynamic'
9184     ;;
9185     xlf* | bgf* | bgxlf* | mpixlf*)
9186     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9187     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9188     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9189     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9190     if test yes = "$supports_anon_versioning"; then
9191     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9192     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9193     echo "local: *; };" >> $output_objdir/$libname.ver~
9194     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9195     fi
9196     ;;
9197     esac
9198 michael 5052 else
9199 michael 5059 ld_shlibs=no
9200 michael 5052 fi
9201     ;;
9202    
9203 michael 5059 netbsd*)
9204     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9206     wlarc=
9207     else
9208 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9209     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9210 michael 5052 fi
9211     ;;
9212    
9213     solaris*)
9214 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9215 michael 5052 ld_shlibs=no
9216 michael 5059 cat <<_LT_EOF 1>&2
9217 michael 5052
9218     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9219     *** create shared libraries on Solaris systems. Therefore, libtool
9220     *** is disabling shared libraries support. We urge you to upgrade GNU
9221     *** binutils to release 2.9.1 or newer. Another option is to modify
9222     *** your PATH or compiler configuration so that the native linker is
9223     *** used, and then restart.
9224    
9225 michael 5059 _LT_EOF
9226     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9228     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9229 michael 5052 else
9230     ld_shlibs=no
9231     fi
9232     ;;
9233    
9234     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9235     case `$LD -v 2>&1` in
9236     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9237     ld_shlibs=no
9238     cat <<_LT_EOF 1>&2
9239    
9240 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9241 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9242     *** is disabling shared libraries support. We urge you to upgrade GNU
9243     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9244     *** your PATH or compiler configuration so that the native linker is
9245     *** used, and then restart.
9246    
9247     _LT_EOF
9248     ;;
9249     *)
9250 michael 5059 # For security reasons, it is highly recommended that you always
9251     # use absolute paths for naming shared libraries, and exclude the
9252     # DT_RUNPATH tag from executables and libraries. But doing so
9253     # requires that you compile everything twice, which is a pain.
9254     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9256     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9258 michael 5052 else
9259     ld_shlibs=no
9260     fi
9261     ;;
9262     esac
9263     ;;
9264    
9265     sunos4*)
9266     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267     wlarc=
9268     hardcode_direct=yes
9269     hardcode_shlibpath_var=no
9270     ;;
9271    
9272     *)
9273 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9275     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9276 michael 5052 else
9277     ld_shlibs=no
9278     fi
9279     ;;
9280     esac
9281    
9282 michael 5059 if test no = "$ld_shlibs"; then
9283 michael 5052 runpath_var=
9284     hardcode_libdir_flag_spec=
9285     export_dynamic_flag_spec=
9286     whole_archive_flag_spec=
9287     fi
9288     else
9289     # PORTME fill in a description of your system's linker (not GNU ld)
9290     case $host_os in
9291     aix3*)
9292     allow_undefined_flag=unsupported
9293     always_export_symbols=yes
9294     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'
9295     # Note: this linker hardcodes the directories in LIBPATH if there
9296     # are no directories specified by -L.
9297     hardcode_minus_L=yes
9298 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9299 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9300     # broken collect2.
9301     hardcode_direct=unsupported
9302     fi
9303     ;;
9304    
9305 michael 5059 aix[4-9]*)
9306     if test ia64 = "$host_cpu"; then
9307 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9308     # have to do anything special.
9309     aix_use_runtimelinking=no
9310     exp_sym_flag='-Bexport'
9311 michael 5059 no_entry_flag=
9312 michael 5052 else
9313     # If we're using GNU nm, then we don't want the "-C" option.
9314 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9315     # Without the "-l" option, or with the "-B" option, AIX nm treats
9316     # weak defined symbols like other global defined symbols, whereas
9317     # GNU nm marks them as "W".
9318     # While the 'weak' keyword is ignored in the Export File, we need
9319     # it in the Import File for the 'aix-soname' feature, so we have
9320     # to replace the "-B" option with "-P" for AIX nm.
9321     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9322     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9323 michael 5052 else
9324 michael 5059 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9325 michael 5052 fi
9326     aix_use_runtimelinking=no
9327    
9328     # Test if we are trying to use run time linking or normal
9329     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9330 michael 5059 # have runtime linking enabled, and use it for executables.
9331     # For shared libraries, we enable/disable runtime linking
9332     # depending on the kind of the shared library created -
9333     # when "with_aix_soname,aix_use_runtimelinking" is:
9334     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9335     # "aix,yes" lib.so shared, rtl:yes, for executables
9336     # lib.a static archive
9337     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9338     # lib.a(lib.so.V) shared, rtl:no, for executables
9339     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9340     # lib.a(lib.so.V) shared, rtl:no
9341     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9342     # lib.a static archive
9343     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9344 michael 5052 for ld_flag in $LDFLAGS; do
9345 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9346     aix_use_runtimelinking=yes
9347     break
9348     fi
9349 michael 5052 done
9350 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9351     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9352     # so we don't have lib.a shared libs to link our executables.
9353     # We have to force runtime linking in this case.
9354     aix_use_runtimelinking=yes
9355     LDFLAGS="$LDFLAGS -Wl,-brtl"
9356     fi
9357 michael 5052 ;;
9358     esac
9359    
9360     exp_sym_flag='-bexport'
9361     no_entry_flag='-bnoentry'
9362     fi
9363    
9364     # When large executables or shared objects are built, AIX ld can
9365     # have problems creating the table of contents. If linking a library
9366     # or program results in "error TOC overflow" add -mminimal-toc to
9367     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9368     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9369    
9370     archive_cmds=''
9371     hardcode_direct=yes
9372 michael 5059 hardcode_direct_absolute=yes
9373 michael 5052 hardcode_libdir_separator=':'
9374     link_all_deplibs=yes
9375 michael 5059 file_list_spec='$wl-f,'
9376     case $with_aix_soname,$aix_use_runtimelinking in
9377     aix,*) ;; # traditional, no import file
9378     svr4,* | *,yes) # use import file
9379     # The Import File defines what to hardcode.
9380     hardcode_direct=no
9381     hardcode_direct_absolute=no
9382     ;;
9383     esac
9384 michael 5052
9385 michael 5059 if test yes = "$GCC"; then
9386 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9387     # We only want to do this on AIX 4.2 and lower, the check
9388     # below for broken collect2 doesn't work under 4.3+
9389 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9390     if test -f "$collect2name" &&
9391     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9392 michael 5052 then
9393 michael 5059 # We have reworked collect2
9394     :
9395 michael 5052 else
9396 michael 5059 # We have old collect2
9397     hardcode_direct=unsupported
9398     # It fails to find uninstalled libraries when the uninstalled
9399     # path is not listed in the libpath. Setting hardcode_minus_L
9400     # to unsupported forces relinking
9401     hardcode_minus_L=yes
9402     hardcode_libdir_flag_spec='-L$libdir'
9403     hardcode_libdir_separator=
9404 michael 5052 fi
9405     ;;
9406     esac
9407     shared_flag='-shared'
9408 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9409     shared_flag="$shared_flag "'$wl-G'
9410 michael 5052 fi
9411 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9412     # shared library, or the linker may eventually find shared libraries
9413     # /with/ Import File - we do not want to mix them.
9414     shared_flag_aix='-shared'
9415     shared_flag_svr4='-shared $wl-G'
9416 michael 5052 else
9417     # not using gcc
9418 michael 5059 if test ia64 = "$host_cpu"; then
9419     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9420     # chokes on -Wl,-G. The following line is correct:
9421 michael 5052 shared_flag='-G'
9422     else
9423 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9424     shared_flag='$wl-G'
9425 michael 5052 else
9426 michael 5059 shared_flag='$wl-bM:SRE'
9427 michael 5052 fi
9428 michael 5059 shared_flag_aix='$wl-bM:SRE'
9429     shared_flag_svr4='$wl-G'
9430 michael 5052 fi
9431     fi
9432    
9433 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9434 michael 5052 # It seems that -bexpall does not export symbols beginning with
9435     # underscore (_), so it is better to generate a list of symbols to export.
9436     always_export_symbols=yes
9437 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9438 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9439     # -berok will link without error, but may produce a broken library.
9440     allow_undefined_flag='-berok'
9441 michael 5059 # Determine the default libpath from the value encoded in an
9442     # empty executable.
9443     if test set = "${lt_cv_aix_libpath+set}"; then
9444     aix_libpath=$lt_cv_aix_libpath
9445     else
9446     if ${lt_cv_aix_libpath_+:} false; then :
9447     $as_echo_n "(cached) " >&6
9448     else
9449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 michael 5052 /* end confdefs.h. */
9451    
9452     int
9453     main ()
9454     {
9455    
9456     ;
9457     return 0;
9458     }
9459     _ACEOF
9460 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9461 michael 5052
9462 michael 5059 lt_aix_libpath_sed='
9463     /Import File Strings/,/^$/ {
9464     /^0/ {
9465     s/^0 *\([^ ]*\) *$/\1/
9466     p
9467     }
9468     }'
9469     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9470     # Check for a 64-bit object if we didn't find anything.
9471     if test -z "$lt_cv_aix_libpath_"; then
9472     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473     fi
9474     fi
9475     rm -f core conftest.err conftest.$ac_objext \
9476     conftest$ac_exeext conftest.$ac_ext
9477     if test -z "$lt_cv_aix_libpath_"; then
9478     lt_cv_aix_libpath_=/usr/lib:/lib
9479     fi
9480 michael 5052
9481 michael 5059 fi
9482 michael 5052
9483 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9484 michael 5052 fi
9485    
9486 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9487     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9488     else
9489     if test ia64 = "$host_cpu"; then
9490     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9491 michael 5052 allow_undefined_flag="-z nodefs"
9492 michael 5059 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"
9493 michael 5052 else
9494 michael 5059 # Determine the default libpath from the value encoded in an
9495     # empty executable.
9496     if test set = "${lt_cv_aix_libpath+set}"; then
9497     aix_libpath=$lt_cv_aix_libpath
9498     else
9499     if ${lt_cv_aix_libpath_+:} false; then :
9500     $as_echo_n "(cached) " >&6
9501     else
9502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 michael 5052 /* end confdefs.h. */
9504    
9505     int
9506     main ()
9507     {
9508    
9509     ;
9510     return 0;
9511     }
9512     _ACEOF
9513 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9514 michael 5052
9515 michael 5059 lt_aix_libpath_sed='
9516     /Import File Strings/,/^$/ {
9517     /^0/ {
9518     s/^0 *\([^ ]*\) *$/\1/
9519     p
9520     }
9521     }'
9522     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523     # Check for a 64-bit object if we didn't find anything.
9524     if test -z "$lt_cv_aix_libpath_"; then
9525     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526     fi
9527     fi
9528     rm -f core conftest.err conftest.$ac_objext \
9529     conftest$ac_exeext conftest.$ac_ext
9530     if test -z "$lt_cv_aix_libpath_"; then
9531     lt_cv_aix_libpath_=/usr/lib:/lib
9532     fi
9533 michael 5052
9534 michael 5059 fi
9535 michael 5052
9536 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9537 michael 5052 fi
9538    
9539 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9540 michael 5052 # Warning - without using the other run time loading flags,
9541     # -berok will link without error, but may produce a broken library.
9542 michael 5059 no_undefined_flag=' $wl-bernotok'
9543     allow_undefined_flag=' $wl-berok'
9544     if test yes = "$with_gnu_ld"; then
9545     # We only use this code for GNU lds that support --whole-archive.
9546     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9547     else
9548     # Exported symbols can be pulled into shared objects from archives
9549     whole_archive_flag_spec='$convenience'
9550     fi
9551 michael 5052 archive_cmds_need_lc=yes
9552 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9553     # -brtl affects multiple linker settings, -berok does not and is overridden later
9554     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9555     if test svr4 != "$with_aix_soname"; then
9556     # This is similar to how AIX traditionally builds its shared libraries.
9557     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9558     fi
9559     if test aix != "$with_aix_soname"; then
9560     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9561     else
9562     # used by -dlpreopen to get the symbols
9563     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9564     fi
9565     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9566 michael 5052 fi
9567     fi
9568     ;;
9569    
9570     amigaos*)
9571 michael 5059 case $host_cpu in
9572     powerpc)
9573     # see comment about AmigaOS4 .so support
9574     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575     archive_expsym_cmds=''
9576     ;;
9577     m68k)
9578     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)'
9579     hardcode_libdir_flag_spec='-L$libdir'
9580     hardcode_minus_L=yes
9581     ;;
9582     esac
9583 michael 5052 ;;
9584    
9585     bsdi[45]*)
9586     export_dynamic_flag_spec=-rdynamic
9587     ;;
9588    
9589 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9590 michael 5052 # When not using gcc, we currently assume that we are using
9591     # Microsoft Visual C++.
9592     # hardcode_libdir_flag_spec is actually meaningless, as there is
9593     # no search path for DLLs.
9594 michael 5059 case $cc_basename in
9595     cl*)
9596     # Native MSVC
9597     hardcode_libdir_flag_spec=' '
9598     allow_undefined_flag=unsupported
9599     always_export_symbols=yes
9600     file_list_spec='@'
9601     # Tell ltmain to make .lib files, not .a files.
9602     libext=lib
9603     # Tell ltmain to make .dll files, not .so files.
9604     shrext_cmds=.dll
9605     # FIXME: Setting linknames here is a bad hack.
9606     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9607     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9608     cp "$export_symbols" "$output_objdir/$soname.def";
9609     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9610     else
9611     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9612     fi~
9613     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9614     linknames='
9615     # The linker will not automatically build a static lib if we build a DLL.
9616     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9617     enable_shared_with_static_runtimes=yes
9618     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9619     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9620     # Don't use ranlib
9621     old_postinstall_cmds='chmod 644 $oldlib'
9622     postlink_cmds='lt_outputfile="@OUTPUT@"~
9623     lt_tool_outputfile="@TOOL_OUTPUT@"~
9624     case $lt_outputfile in
9625     *.exe|*.EXE) ;;
9626     *)
9627     lt_outputfile=$lt_outputfile.exe
9628     lt_tool_outputfile=$lt_tool_outputfile.exe
9629     ;;
9630     esac~
9631     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9632     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9633     $RM "$lt_outputfile.manifest";
9634     fi'
9635     ;;
9636     *)
9637     # Assume MSVC wrapper
9638     hardcode_libdir_flag_spec=' '
9639     allow_undefined_flag=unsupported
9640     # Tell ltmain to make .lib files, not .a files.
9641     libext=lib
9642     # Tell ltmain to make .dll files, not .so files.
9643     shrext_cmds=.dll
9644     # FIXME: Setting linknames here is a bad hack.
9645     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9646     # The linker will automatically build a .lib file if we build a DLL.
9647     old_archive_from_new_cmds='true'
9648     # FIXME: Should let the user specify the lib program.
9649     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9650     enable_shared_with_static_runtimes=yes
9651     ;;
9652     esac
9653 michael 5052 ;;
9654    
9655     darwin* | rhapsody*)
9656 michael 5059
9657    
9658     archive_cmds_need_lc=no
9659     hardcode_direct=no
9660     hardcode_automatic=yes
9661     hardcode_shlibpath_var=unsupported
9662     if test yes = "$lt_cv_ld_force_load"; then
9663     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\"`'
9664    
9665     else
9666     whole_archive_flag_spec=''
9667     fi
9668     link_all_deplibs=yes
9669     allow_undefined_flag=$_lt_dar_allow_undefined
9670     case $cc_basename in
9671     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9672     *) _lt_dar_can_shared=$GCC ;;
9673     esac
9674     if test yes = "$_lt_dar_can_shared"; then
9675     output_verbose_link_cmd=func_echo_all
9676     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9677     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9678     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"
9679     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"
9680    
9681     else
9682     ld_shlibs=no
9683     fi
9684    
9685 michael 5052 ;;
9686    
9687     dgux*)
9688     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689     hardcode_libdir_flag_spec='-L$libdir'
9690     hardcode_shlibpath_var=no
9691     ;;
9692    
9693     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9694     # support. Future versions do this automatically, but an explicit c++rt0.o
9695     # does not break anything, and helps significantly (at the cost of a little
9696     # extra space).
9697     freebsd2.2*)
9698     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9699     hardcode_libdir_flag_spec='-R$libdir'
9700     hardcode_direct=yes
9701     hardcode_shlibpath_var=no
9702     ;;
9703    
9704     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9705 michael 5059 freebsd2.*)
9706 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707     hardcode_direct=yes
9708     hardcode_minus_L=yes
9709     hardcode_shlibpath_var=no
9710     ;;
9711    
9712     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9713     freebsd* | dragonfly*)
9714 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9715 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9716     hardcode_direct=yes
9717     hardcode_shlibpath_var=no
9718     ;;
9719    
9720     hpux9*)
9721 michael 5059 if test yes = "$GCC"; then
9722     archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9723 michael 5052 else
9724 michael 5059 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9725 michael 5052 fi
9726 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9727 michael 5052 hardcode_libdir_separator=:
9728     hardcode_direct=yes
9729    
9730     # hardcode_minus_L: Not really in the search PATH,
9731     # but as the default location of the library.
9732     hardcode_minus_L=yes
9733 michael 5059 export_dynamic_flag_spec='$wl-E'
9734 michael 5052 ;;
9735    
9736     hpux10*)
9737 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9738     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9739 michael 5052 else
9740     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9741     fi
9742 michael 5059 if test no = "$with_gnu_ld"; then
9743     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9744 michael 5052 hardcode_libdir_separator=:
9745     hardcode_direct=yes
9746 michael 5059 hardcode_direct_absolute=yes
9747     export_dynamic_flag_spec='$wl-E'
9748 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9749     # but as the default location of the library.
9750     hardcode_minus_L=yes
9751     fi
9752     ;;
9753    
9754     hpux11*)
9755 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9756 michael 5052 case $host_cpu in
9757     hppa*64*)
9758 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 michael 5052 ;;
9760     ia64*)
9761 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9762 michael 5052 ;;
9763     *)
9764 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 michael 5052 ;;
9766     esac
9767     else
9768     case $host_cpu in
9769     hppa*64*)
9770 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 michael 5052 ;;
9772     ia64*)
9773 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774 michael 5052 ;;
9775     *)
9776 michael 5059
9777     # Older versions of the 11.00 compiler do not understand -b yet
9778     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9780     $as_echo_n "checking if $CC understands -b... " >&6; }
9781     if ${lt_cv_prog_compiler__b+:} false; then :
9782     $as_echo_n "(cached) " >&6
9783     else
9784     lt_cv_prog_compiler__b=no
9785     save_LDFLAGS=$LDFLAGS
9786     LDFLAGS="$LDFLAGS -b"
9787     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9788     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9789     # The linker can only warn and ignore the option if not recognized
9790     # So say no if there are warnings
9791     if test -s conftest.err; then
9792     # Append any errors to the config.log.
9793     cat conftest.err 1>&5
9794     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9795     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9796     if diff conftest.exp conftest.er2 >/dev/null; then
9797     lt_cv_prog_compiler__b=yes
9798     fi
9799     else
9800     lt_cv_prog_compiler__b=yes
9801     fi
9802     fi
9803     $RM -r conftest*
9804     LDFLAGS=$save_LDFLAGS
9805    
9806     fi
9807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9808     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9809    
9810     if test yes = "$lt_cv_prog_compiler__b"; then
9811     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812     else
9813     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9814     fi
9815    
9816 michael 5052 ;;
9817     esac
9818     fi
9819 michael 5059 if test no = "$with_gnu_ld"; then
9820     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9821 michael 5052 hardcode_libdir_separator=:
9822    
9823     case $host_cpu in
9824     hppa*64*|ia64*)
9825     hardcode_direct=no
9826     hardcode_shlibpath_var=no
9827     ;;
9828     *)
9829     hardcode_direct=yes
9830 michael 5059 hardcode_direct_absolute=yes
9831     export_dynamic_flag_spec='$wl-E'
9832 michael 5052
9833     # hardcode_minus_L: Not really in the search PATH,
9834     # but as the default location of the library.
9835     hardcode_minus_L=yes
9836     ;;
9837     esac
9838     fi
9839     ;;
9840    
9841     irix5* | irix6* | nonstopux*)
9842 michael 5059 if test yes = "$GCC"; then
9843     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'
9844     # Try to use the -exported_symbol ld option, if it does not
9845     # work, assume that -exports_file does not work either and
9846     # implicitly export all symbols.
9847     # This should be the same for all languages, so no per-tag cache variable.
9848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9849     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9850     if ${lt_cv_irix_exported_symbol+:} false; then :
9851     $as_echo_n "(cached) " >&6
9852     else
9853     save_LDFLAGS=$LDFLAGS
9854     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856     /* end confdefs.h. */
9857     int foo (void) { return 0; }
9858     _ACEOF
9859     if ac_fn_c_try_link "$LINENO"; then :
9860     lt_cv_irix_exported_symbol=yes
9861     else
9862     lt_cv_irix_exported_symbol=no
9863     fi
9864     rm -f core conftest.err conftest.$ac_objext \
9865     conftest$ac_exeext conftest.$ac_ext
9866     LDFLAGS=$save_LDFLAGS
9867     fi
9868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9869     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9870     if test yes = "$lt_cv_irix_exported_symbol"; then
9871     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'
9872     fi
9873 michael 5052 else
9874 michael 5059 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'
9875     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'
9876 michael 5052 fi
9877 michael 5059 archive_cmds_need_lc='no'
9878     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9879 michael 5052 hardcode_libdir_separator=:
9880 michael 5059 inherit_rpath=yes
9881 michael 5052 link_all_deplibs=yes
9882     ;;
9883    
9884 michael 5059 linux*)
9885     case $cc_basename in
9886     tcc*)
9887     # Fabrice Bellard et al's Tiny C Compiler
9888     ld_shlibs=yes
9889     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9890     ;;
9891     esac
9892     ;;
9893    
9894     netbsd*)
9895     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9897     else
9898     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9899     fi
9900     hardcode_libdir_flag_spec='-R$libdir'
9901     hardcode_direct=yes
9902     hardcode_shlibpath_var=no
9903     ;;
9904    
9905     newsos6)
9906     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907     hardcode_direct=yes
9908 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9909 michael 5052 hardcode_libdir_separator=:
9910     hardcode_shlibpath_var=no
9911     ;;
9912    
9913 michael 5059 *nto* | *qnx*)
9914     ;;
9915    
9916     openbsd* | bitrig*)
9917     if test -f /usr/libexec/ld.so; then
9918     hardcode_direct=yes
9919     hardcode_shlibpath_var=no
9920     hardcode_direct_absolute=yes
9921     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9922     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9923     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9924     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9925     export_dynamic_flag_spec='$wl-E'
9926     else
9927     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9929     fi
9930 michael 5052 else
9931 michael 5059 ld_shlibs=no
9932 michael 5052 fi
9933     ;;
9934    
9935     os2*)
9936     hardcode_libdir_flag_spec='-L$libdir'
9937     hardcode_minus_L=yes
9938     allow_undefined_flag=unsupported
9939 michael 5059 shrext_cmds=.dll
9940     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9941     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9942     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9943     $ECHO EXPORTS >> $output_objdir/$libname.def~
9944     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9945     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9946     emximp -o $lib $output_objdir/$libname.def'
9947     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9948     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9949     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9950     $ECHO EXPORTS >> $output_objdir/$libname.def~
9951     prefix_cmds="$SED"~
9952     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9953     prefix_cmds="$prefix_cmds -e 1d";
9954     fi~
9955     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9956     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9957     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9958     emximp -o $lib $output_objdir/$libname.def'
9959     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9960     enable_shared_with_static_runtimes=yes
9961 michael 5052 ;;
9962    
9963     osf3*)
9964 michael 5059 if test yes = "$GCC"; then
9965     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9966     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'
9967 michael 5052 else
9968     allow_undefined_flag=' -expect_unresolved \*'
9969 michael 5059 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'
9970 michael 5052 fi
9971 michael 5059 archive_cmds_need_lc='no'
9972     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9973 michael 5052 hardcode_libdir_separator=:
9974     ;;
9975    
9976     osf4* | osf5*) # as osf3* with the addition of -msym flag
9977 michael 5059 if test yes = "$GCC"; then
9978     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9979     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'
9980     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9981 michael 5052 else
9982     allow_undefined_flag=' -expect_unresolved \*'
9983 michael 5059 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'
9984     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~
9985     $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'
9986 michael 5052
9987     # Both c and cxx compiler support -rpath directly
9988     hardcode_libdir_flag_spec='-rpath $libdir'
9989     fi
9990 michael 5059 archive_cmds_need_lc='no'
9991 michael 5052 hardcode_libdir_separator=:
9992     ;;
9993    
9994     solaris*)
9995 michael 5059 no_undefined_flag=' -z defs'
9996     if test yes = "$GCC"; then
9997     wlarc='$wl'
9998     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9999     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000     $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'
10001 michael 5052 else
10002 michael 5059 case `$CC -V 2>&1` in
10003     *"Compilers 5.0"*)
10004     wlarc=''
10005     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10008     ;;
10009     *)
10010     wlarc='$wl'
10011     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10014     ;;
10015     esac
10016 michael 5052 fi
10017     hardcode_libdir_flag_spec='-R$libdir'
10018     hardcode_shlibpath_var=no
10019     case $host_os in
10020     solaris2.[0-5] | solaris2.[0-5].*) ;;
10021     *)
10022 michael 5059 # The compiler driver will combine and reorder linker options,
10023     # but understands '-z linker_flag'. GCC discards it without '$wl',
10024     # but is careful enough not to reorder.
10025     # Supported since Solaris 2.6 (maybe 2.5.1?)
10026     if test yes = "$GCC"; then
10027     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10028     else
10029     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10030     fi
10031     ;;
10032 michael 5052 esac
10033     link_all_deplibs=yes
10034     ;;
10035    
10036     sunos4*)
10037 michael 5059 if test sequent = "$host_vendor"; then
10038 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10039     # files that make .init and .fini sections work.
10040 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041 michael 5052 else
10042     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10043     fi
10044     hardcode_libdir_flag_spec='-L$libdir'
10045     hardcode_direct=yes
10046     hardcode_minus_L=yes
10047     hardcode_shlibpath_var=no
10048     ;;
10049    
10050     sysv4)
10051     case $host_vendor in
10052     sni)
10053     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054     hardcode_direct=yes # is this really true???
10055     ;;
10056     siemens)
10057     ## LD is ld it makes a PLAMLIB
10058     ## CC just makes a GrossModule.
10059     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10060     reload_cmds='$CC -r -o $output$reload_objs'
10061     hardcode_direct=no
10062     ;;
10063     motorola)
10064     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10066     ;;
10067     esac
10068     runpath_var='LD_RUN_PATH'
10069     hardcode_shlibpath_var=no
10070     ;;
10071    
10072     sysv4.3*)
10073     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074     hardcode_shlibpath_var=no
10075     export_dynamic_flag_spec='-Bexport'
10076     ;;
10077    
10078     sysv4*MP*)
10079     if test -d /usr/nec; then
10080     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081     hardcode_shlibpath_var=no
10082     runpath_var=LD_RUN_PATH
10083     hardcode_runpath_var=yes
10084     ld_shlibs=yes
10085     fi
10086     ;;
10087    
10088 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10089     no_undefined_flag='$wl-z,text'
10090 michael 5052 archive_cmds_need_lc=no
10091     hardcode_shlibpath_var=no
10092     runpath_var='LD_RUN_PATH'
10093    
10094 michael 5059 if test yes = "$GCC"; then
10095     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 michael 5052 else
10098 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 michael 5052 fi
10101     ;;
10102    
10103     sysv5* | sco3.2v5* | sco5v6*)
10104 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10105 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10106     # always be unresolved, which means just about no library would
10107     # ever link correctly. If we're not using GNU ld we use -z text
10108     # though, which does catch some bad symbols but isn't as heavy-handed
10109     # as -z defs.
10110 michael 5059 no_undefined_flag='$wl-z,text'
10111     allow_undefined_flag='$wl-z,nodefs'
10112 michael 5052 archive_cmds_need_lc=no
10113     hardcode_shlibpath_var=no
10114 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10115 michael 5052 hardcode_libdir_separator=':'
10116     link_all_deplibs=yes
10117 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10118 michael 5052 runpath_var='LD_RUN_PATH'
10119    
10120 michael 5059 if test yes = "$GCC"; then
10121     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 michael 5052 else
10124 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 michael 5052 fi
10127     ;;
10128    
10129     uts4*)
10130     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131     hardcode_libdir_flag_spec='-L$libdir'
10132     hardcode_shlibpath_var=no
10133     ;;
10134    
10135     *)
10136     ld_shlibs=no
10137     ;;
10138     esac
10139 michael 5059
10140     if test sni = "$host_vendor"; then
10141     case $host in
10142     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10143     export_dynamic_flag_spec='$wl-Blargedynsym'
10144     ;;
10145     esac
10146     fi
10147 michael 5052 fi
10148    
10149 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10150     $as_echo "$ld_shlibs" >&6; }
10151     test no = "$ld_shlibs" && can_build_shared=no
10152 michael 5052
10153 michael 5059 with_gnu_ld=$with_gnu_ld
10154    
10155    
10156    
10157    
10158    
10159    
10160    
10161    
10162    
10163    
10164    
10165    
10166    
10167    
10168    
10169 michael 5052 #
10170     # Do we need to explicitly link libc?
10171     #
10172     case "x$archive_cmds_need_lc" in
10173     x|xyes)
10174     # Assume -lc should be added
10175     archive_cmds_need_lc=yes
10176    
10177 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10178 michael 5052 case $archive_cmds in
10179     *'~'*)
10180     # FIXME: we may have to deal with multi-command sequences.
10181     ;;
10182     '$CC '*)
10183     # Test whether the compiler implicitly links with -lc since on some
10184     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10185     # to ld, don't add -lc before -lgcc.
10186 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10187     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10188     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10189     $as_echo_n "(cached) " >&6
10190     else
10191     $RM conftest*
10192     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193 michael 5052
10194 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10195 michael 5052 (eval $ac_compile) 2>&5
10196     ac_status=$?
10197 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198     test $ac_status = 0; } 2>conftest.err; then
10199     soname=conftest
10200     lib=conftest
10201     libobjs=conftest.$ac_objext
10202     deplibs=
10203     wl=$lt_prog_compiler_wl
10204     pic_flag=$lt_prog_compiler_pic
10205     compiler_flags=-v
10206     linker_flags=-v
10207     verstring=
10208     output_objdir=.
10209     libname=conftest
10210     lt_save_allow_undefined_flag=$allow_undefined_flag
10211     allow_undefined_flag=
10212     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10213     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10214 michael 5052 ac_status=$?
10215 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216     test $ac_status = 0; }
10217     then
10218     lt_cv_archive_cmds_need_lc=no
10219     else
10220     lt_cv_archive_cmds_need_lc=yes
10221     fi
10222     allow_undefined_flag=$lt_save_allow_undefined_flag
10223     else
10224     cat conftest.err 1>&5
10225     fi
10226     $RM conftest*
10227    
10228     fi
10229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10230     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10231     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10232 michael 5052 ;;
10233     esac
10234     fi
10235     ;;
10236     esac
10237    
10238 michael 5059
10239    
10240    
10241    
10242    
10243    
10244    
10245    
10246    
10247    
10248    
10249    
10250    
10251    
10252    
10253    
10254    
10255    
10256    
10257    
10258    
10259    
10260    
10261    
10262    
10263    
10264    
10265    
10266    
10267    
10268    
10269    
10270    
10271    
10272    
10273    
10274    
10275    
10276    
10277    
10278    
10279    
10280    
10281    
10282    
10283    
10284    
10285    
10286    
10287    
10288    
10289    
10290    
10291    
10292    
10293    
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10390     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10391    
10392     if test yes = "$GCC"; then
10393     case $host_os in
10394     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10395     *) lt_awk_arg='/^libraries:/' ;;
10396     esac
10397     case $host_os in
10398     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10399     *) lt_sed_strip_eq='s|=/|/|g' ;;
10400     esac
10401     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10402     case $lt_search_path_spec in
10403     *\;*)
10404     # if the path contains ";" then we assume it to be the separator
10405     # otherwise default to the standard path separator (i.e. ":") - it is
10406     # assumed that no part of a normal pathname contains ";" but that should
10407     # okay in the real world where ";" in dirpaths is itself problematic.
10408     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10409     ;;
10410     *)
10411     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10412     ;;
10413     esac
10414     # Ok, now we have the path, separated by spaces, we can step through it
10415     # and add multilib dir if necessary...
10416     lt_tmp_lt_search_path_spec=
10417     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10418     # ...but if some path component already ends with the multilib dir we assume
10419     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10420     case "$lt_multi_os_dir; $lt_search_path_spec " in
10421     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10422     lt_multi_os_dir=
10423     ;;
10424     esac
10425     for lt_sys_path in $lt_search_path_spec; do
10426     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10427     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10428     elif test -n "$lt_multi_os_dir"; then
10429     test -d "$lt_sys_path" && \
10430     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10431     fi
10432     done
10433     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10434     BEGIN {RS = " "; FS = "/|\n";} {
10435     lt_foo = "";
10436     lt_count = 0;
10437     for (lt_i = NF; lt_i > 0; lt_i--) {
10438     if ($lt_i != "" && $lt_i != ".") {
10439     if ($lt_i == "..") {
10440     lt_count++;
10441     } else {
10442     if (lt_count == 0) {
10443     lt_foo = "/" $lt_i lt_foo;
10444     } else {
10445     lt_count--;
10446     }
10447     }
10448     }
10449     }
10450     if (lt_foo != "") { lt_freq[lt_foo]++; }
10451     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10452     }'`
10453     # AWK program above erroneously prepends '/' to C:/dos/paths
10454     # for these hosts.
10455     case $host_os in
10456     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10457     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10458     esac
10459     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10460     else
10461     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10462     fi
10463 michael 5052 library_names_spec=
10464     libname_spec='lib$name'
10465     soname_spec=
10466 michael 5059 shrext_cmds=.so
10467 michael 5052 postinstall_cmds=
10468     postuninstall_cmds=
10469     finish_cmds=
10470     finish_eval=
10471     shlibpath_var=
10472     shlibpath_overrides_runpath=unknown
10473     version_type=none
10474     dynamic_linker="$host_os ld.so"
10475     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10476     need_lib_prefix=unknown
10477     hardcode_into_libs=no
10478    
10479     # when you set need_version to no, make sure it does not cause -set_version
10480     # flags to be left without arguments
10481     need_version=unknown
10482    
10483     case $host_os in
10484     aix3*)
10485 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10486     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10487 michael 5052 shlibpath_var=LIBPATH
10488    
10489     # AIX 3 has no versioning support, so we append a major version to the name.
10490 michael 5059 soname_spec='$libname$release$shared_ext$major'
10491 michael 5052 ;;
10492    
10493 michael 5059 aix[4-9]*)
10494     version_type=linux # correct to gnu/linux during the next big refactor
10495 michael 5052 need_lib_prefix=no
10496     need_version=no
10497     hardcode_into_libs=yes
10498 michael 5059 if test ia64 = "$host_cpu"; then
10499 michael 5052 # AIX 5 supports IA64
10500 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10501 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10502     else
10503     # With GCC up to 2.95.x, collect2 would create an import file
10504     # for dependence libraries. The import file would start with
10505 michael 5059 # the line '#! .'. This would cause the generated library to
10506     # depend on '.', always an invalid library. This was fixed in
10507 michael 5052 # development snapshots of GCC prior to 3.0.
10508     case $host_os in
10509     aix4 | aix4.[01] | aix4.[01].*)
10510     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10511     echo ' yes '
10512 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10513 michael 5052 :
10514     else
10515     can_build_shared=no
10516     fi
10517     ;;
10518     esac
10519 michael 5059 # Using Import Files as archive members, it is possible to support
10520     # filename-based versioning of shared library archives on AIX. While
10521     # this would work for both with and without runtime linking, it will
10522     # prevent static linking of such archives. So we do filename-based
10523     # shared library versioning with .so extension only, which is used
10524     # when both runtime linking and shared linking is enabled.
10525     # Unfortunately, runtime linking may impact performance, so we do
10526     # not want this to be the default eventually. Also, we use the
10527     # versioned .so libs for executables only if there is the -brtl
10528     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10529     # To allow for filename-based versioning support, we need to create
10530     # libNAME.so.V as an archive file, containing:
10531     # *) an Import File, referring to the versioned filename of the
10532     # archive as well as the shared archive member, telling the
10533     # bitwidth (32 or 64) of that shared object, and providing the
10534     # list of exported symbols of that shared object, eventually
10535     # decorated with the 'weak' keyword
10536     # *) the shared object with the F_LOADONLY flag set, to really avoid
10537     # it being seen by the linker.
10538     # At run time we better use the real file rather than another symlink,
10539     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10540    
10541     case $with_aix_soname,$aix_use_runtimelinking in
10542     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10543 michael 5052 # soname into executable. Probably we can add versioning support to
10544     # collect2, so additional links can be useful in future.
10545 michael 5059 aix,yes) # traditional libtool
10546     dynamic_linker='AIX unversionable lib.so'
10547 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10548     # instead of lib<name>.a to let people know that these are not
10549     # typical AIX shared libraries.
10550 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10551     ;;
10552     aix,no) # traditional AIX only
10553     dynamic_linker='AIX lib.a(lib.so.V)'
10554 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10555     # and later when we are not doing run time linking.
10556 michael 5059 library_names_spec='$libname$release.a $libname.a'
10557     soname_spec='$libname$release$shared_ext$major'
10558     ;;
10559     svr4,*) # full svr4 only
10560     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10561     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10562     # We do not specify a path in Import Files, so LIBPATH fires.
10563     shlibpath_overrides_runpath=yes
10564     ;;
10565     *,yes) # both, prefer svr4
10566     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10567     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10568     # unpreferred sharedlib libNAME.a needs extra handling
10569     postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10570     postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10571     # We do not specify a path in Import Files, so LIBPATH fires.
10572     shlibpath_overrides_runpath=yes
10573     ;;
10574     *,no) # both, prefer aix
10575     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10576     library_names_spec='$libname$release.a $libname.a'
10577     soname_spec='$libname$release$shared_ext$major'
10578     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10579     postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10580     postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10581     ;;
10582     esac
10583 michael 5052 shlibpath_var=LIBPATH
10584     fi
10585     ;;
10586    
10587     amigaos*)
10588 michael 5059 case $host_cpu in
10589     powerpc)
10590     # Since July 2007 AmigaOS4 officially supports .so libraries.
10591     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10592     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10593     ;;
10594     m68k)
10595     library_names_spec='$libname.ixlibrary $libname.a'
10596     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10597     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10598     ;;
10599     esac
10600 michael 5052 ;;
10601    
10602     beos*)
10603 michael 5059 library_names_spec='$libname$shared_ext'
10604 michael 5052 dynamic_linker="$host_os ld.so"
10605     shlibpath_var=LIBRARY_PATH
10606     ;;
10607    
10608     bsdi[45]*)
10609 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10610 michael 5052 need_version=no
10611 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10612     soname_spec='$libname$release$shared_ext$major'
10613 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10614     shlibpath_var=LD_LIBRARY_PATH
10615     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10616     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10617     # the default ld.so.conf also contains /usr/contrib/lib and
10618     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10619     # libtool to hard-code these into programs
10620     ;;
10621    
10622 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10623 michael 5052 version_type=windows
10624 michael 5059 shrext_cmds=.dll
10625 michael 5052 need_version=no
10626     need_lib_prefix=no
10627    
10628 michael 5059 case $GCC,$cc_basename in
10629     yes,*)
10630     # gcc
10631 michael 5052 library_names_spec='$libname.dll.a'
10632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10634     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10635 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10636     test -d \$dldir || mkdir -p \$dldir~
10637     $install_prog $dir/$dlname \$dldir/$dlname~
10638 michael 5059 chmod a+x \$dldir/$dlname~
10639     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10641     fi'
10642 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643     dlpath=$dir/\$dldll~
10644 michael 5059 $RM \$dlpath'
10645 michael 5052 shlibpath_overrides_runpath=yes
10646    
10647     case $host_os in
10648     cygwin*)
10649     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10651    
10652     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10653 michael 5052 ;;
10654 michael 5059 mingw* | cegcc*)
10655 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10656 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10657 michael 5052 ;;
10658     pw32*)
10659     # pw32 DLLs use 'pw' prefix rather than 'lib'
10660 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10661 michael 5052 ;;
10662     esac
10663 michael 5059 dynamic_linker='Win32 ld.exe'
10664 michael 5052 ;;
10665    
10666 michael 5059 *,cl*)
10667     # Native MSVC
10668     libname_spec='$name'
10669     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10670     library_names_spec='$libname.dll.lib'
10671    
10672     case $build_os in
10673     mingw*)
10674     sys_lib_search_path_spec=
10675     lt_save_ifs=$IFS
10676     IFS=';'
10677     for lt_path in $LIB
10678     do
10679     IFS=$lt_save_ifs
10680     # Let DOS variable expansion print the short 8.3 style file name.
10681     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10682     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10683     done
10684     IFS=$lt_save_ifs
10685     # Convert to MSYS style.
10686     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10687     ;;
10688     cygwin*)
10689     # Convert to unix form, then to dos form, then back to unix form
10690     # but this time dos style (no spaces!) so that the unix form looks
10691     # like /cygdrive/c/PROGRA~1:/cygdr...
10692     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10693     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10694     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10695     ;;
10696     *)
10697     sys_lib_search_path_spec=$LIB
10698     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10699     # It is most probably a Windows format PATH.
10700     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10701     else
10702     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703     fi
10704     # FIXME: find the short name or the path components, as spaces are
10705     # common. (e.g. "Program Files" -> "PROGRA~1")
10706     ;;
10707     esac
10708    
10709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710     postinstall_cmds='base_file=`basename \$file`~
10711     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10712     dldir=$destdir/`dirname \$dlpath`~
10713     test -d \$dldir || mkdir -p \$dldir~
10714     $install_prog $dir/$dlname \$dldir/$dlname'
10715     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10716     dlpath=$dir/\$dldll~
10717     $RM \$dlpath'
10718     shlibpath_overrides_runpath=yes
10719     dynamic_linker='Win32 link.exe'
10720     ;;
10721    
10722 michael 5052 *)
10723 michael 5059 # Assume MSVC wrapper
10724     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10725     dynamic_linker='Win32 ld.exe'
10726 michael 5052 ;;
10727     esac
10728     # FIXME: first we should search . and the directory the executable is in
10729     shlibpath_var=PATH
10730     ;;
10731    
10732     darwin* | rhapsody*)
10733     dynamic_linker="$host_os dyld"
10734     version_type=darwin
10735     need_lib_prefix=no
10736     need_version=no
10737 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10738     soname_spec='$libname$release$major$shared_ext'
10739 michael 5052 shlibpath_overrides_runpath=yes
10740     shlibpath_var=DYLD_LIBRARY_PATH
10741     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10742 michael 5059
10743     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10744 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10745     ;;
10746    
10747     dgux*)
10748 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10749 michael 5052 need_lib_prefix=no
10750     need_version=no
10751 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10752     soname_spec='$libname$release$shared_ext$major'
10753 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10754     ;;
10755    
10756     freebsd* | dragonfly*)
10757     # DragonFly does not have aout. When/if they implement a new
10758     # versioning mechanism, adjust this.
10759     if test -x /usr/bin/objformat; then
10760     objformat=`/usr/bin/objformat`
10761     else
10762     case $host_os in
10763 michael 5059 freebsd[23].*) objformat=aout ;;
10764 michael 5052 *) objformat=elf ;;
10765     esac
10766     fi
10767     version_type=freebsd-$objformat
10768     case $version_type in
10769     freebsd-elf*)
10770 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10771 michael 5052 need_version=no
10772     need_lib_prefix=no
10773     ;;
10774     freebsd-*)
10775 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10776 michael 5052 need_version=yes
10777     ;;
10778     esac
10779     shlibpath_var=LD_LIBRARY_PATH
10780     case $host_os in
10781 michael 5059 freebsd2.*)
10782 michael 5052 shlibpath_overrides_runpath=yes
10783     ;;
10784     freebsd3.[01]* | freebsdelf3.[01]*)
10785     shlibpath_overrides_runpath=yes
10786     hardcode_into_libs=yes
10787     ;;
10788     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10789     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10790     shlibpath_overrides_runpath=no
10791     hardcode_into_libs=yes
10792     ;;
10793 michael 5059 *) # from 4.6 on, and DragonFly
10794 michael 5052 shlibpath_overrides_runpath=yes
10795     hardcode_into_libs=yes
10796     ;;
10797     esac
10798     ;;
10799    
10800 michael 5059 haiku*)
10801     version_type=linux # correct to gnu/linux during the next big refactor
10802 michael 5052 need_lib_prefix=no
10803     need_version=no
10804 michael 5059 dynamic_linker="$host_os runtime_loader"
10805     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806     soname_spec='$libname$release$shared_ext$major'
10807     shlibpath_var=LIBRARY_PATH
10808     shlibpath_overrides_runpath=no
10809     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10810 michael 5052 hardcode_into_libs=yes
10811     ;;
10812    
10813     hpux9* | hpux10* | hpux11*)
10814     # Give a soname corresponding to the major version so that dld.sl refuses to
10815     # link against other versions.
10816     version_type=sunos
10817     need_lib_prefix=no
10818     need_version=no
10819     case $host_cpu in
10820     ia64*)
10821     shrext_cmds='.so'
10822     hardcode_into_libs=yes
10823     dynamic_linker="$host_os dld.so"
10824     shlibpath_var=LD_LIBRARY_PATH
10825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10826 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827     soname_spec='$libname$release$shared_ext$major'
10828     if test 32 = "$HPUX_IA64_MODE"; then
10829 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10830     else
10831     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10832     fi
10833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10834     ;;
10835 michael 5059 hppa*64*)
10836 michael 5052 shrext_cmds='.sl'
10837 michael 5059 hardcode_into_libs=yes
10838 michael 5052 dynamic_linker="$host_os dld.sl"
10839 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10840     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10841     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10842     soname_spec='$libname$release$shared_ext$major'
10843     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10844     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10845     ;;
10846     *)
10847     shrext_cmds='.sl'
10848     dynamic_linker="$host_os dld.sl"
10849 michael 5052 shlibpath_var=SHLIB_PATH
10850     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10851 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10852     soname_spec='$libname$release$shared_ext$major'
10853 michael 5052 ;;
10854     esac
10855 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10856 michael 5052 postinstall_cmds='chmod 555 $lib'
10857 michael 5059 # or fails outright, so override atomically:
10858     install_override_mode=555
10859 michael 5052 ;;
10860    
10861 michael 5059 interix[3-9]*)
10862     version_type=linux # correct to gnu/linux during the next big refactor
10863 michael 5052 need_lib_prefix=no
10864     need_version=no
10865 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866     soname_spec='$libname$release$shared_ext$major'
10867 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10868     shlibpath_var=LD_LIBRARY_PATH
10869     shlibpath_overrides_runpath=no
10870     hardcode_into_libs=yes
10871     ;;
10872    
10873     irix5* | irix6* | nonstopux*)
10874     case $host_os in
10875     nonstopux*) version_type=nonstopux ;;
10876     *)
10877 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10878     version_type=linux # correct to gnu/linux during the next big refactor
10879 michael 5052 else
10880     version_type=irix
10881     fi ;;
10882     esac
10883     need_lib_prefix=no
10884     need_version=no
10885 michael 5059 soname_spec='$libname$release$shared_ext$major'
10886     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10887 michael 5052 case $host_os in
10888     irix5* | nonstopux*)
10889     libsuff= shlibsuff=
10890     ;;
10891     *)
10892     case $LD in # libtool.m4 will add one of these switches to LD
10893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10894     libsuff= shlibsuff= libmagic=32-bit;;
10895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10896     libsuff=32 shlibsuff=N32 libmagic=N32;;
10897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10898     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10899     *) libsuff= shlibsuff= libmagic=never-match;;
10900     esac
10901     ;;
10902     esac
10903     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10904     shlibpath_overrides_runpath=no
10905 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10906     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10907 michael 5052 hardcode_into_libs=yes
10908     ;;
10909    
10910     # No shared lib support for Linux oldld, aout, or coff.
10911     linux*oldld* | linux*aout* | linux*coff*)
10912     dynamic_linker=no
10913     ;;
10914    
10915 michael 5059 linux*android*)
10916     version_type=none # Android doesn't support versioned libraries.
10917 michael 5052 need_lib_prefix=no
10918     need_version=no
10919 michael 5059 library_names_spec='$libname$release$shared_ext'
10920     soname_spec='$libname$release$shared_ext'
10921     finish_cmds=
10922     shlibpath_var=LD_LIBRARY_PATH
10923     shlibpath_overrides_runpath=yes
10924    
10925     # This implies no fast_install, which is unacceptable.
10926     # Some rework will be needed to allow for fast_install
10927     # before this can be enabled.
10928     hardcode_into_libs=yes
10929    
10930     dynamic_linker='Android linker'
10931     # Don't embed -rpath directories since the linker doesn't support them.
10932     hardcode_libdir_flag_spec='-L$libdir'
10933     ;;
10934    
10935     # This must be glibc/ELF.
10936     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10937     version_type=linux # correct to gnu/linux during the next big refactor
10938     need_lib_prefix=no
10939     need_version=no
10940     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941     soname_spec='$libname$release$shared_ext$major'
10942 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10943     shlibpath_var=LD_LIBRARY_PATH
10944     shlibpath_overrides_runpath=no
10945 michael 5059
10946     # Some binutils ld are patched to set DT_RUNPATH
10947     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10948     $as_echo_n "(cached) " >&6
10949     else
10950     lt_cv_shlibpath_overrides_runpath=no
10951     save_LDFLAGS=$LDFLAGS
10952     save_libdir=$libdir
10953     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10954     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956     /* end confdefs.h. */
10957    
10958     int
10959     main ()
10960     {
10961    
10962     ;
10963     return 0;
10964     }
10965     _ACEOF
10966     if ac_fn_c_try_link "$LINENO"; then :
10967     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10968     lt_cv_shlibpath_overrides_runpath=yes
10969     fi
10970     fi
10971     rm -f core conftest.err conftest.$ac_objext \
10972     conftest$ac_exeext conftest.$ac_ext
10973     LDFLAGS=$save_LDFLAGS
10974     libdir=$save_libdir
10975    
10976     fi
10977    
10978     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10979    
10980 michael 5052 # This implies no fast_install, which is unacceptable.
10981     # Some rework will be needed to allow for fast_install
10982     # before this can be enabled.
10983     hardcode_into_libs=yes
10984    
10985     # Append ld.so.conf contents to the search path
10986     if test -f /etc/ld.so.conf; then
10987 michael 5059 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' ' '`
10988 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10989     fi
10990    
10991     # We used to test for /lib/ld.so.1 and disable shared libraries on
10992     # powerpc, because MkLinux only supported shared libraries with the
10993     # GNU dynamic linker. Since this was broken with cross compilers,
10994     # most powerpc-linux boxes support dynamic linking these days and
10995     # people can always --disable-shared, the test was removed, and we
10996     # assume the GNU/Linux dynamic linker is in use.
10997     dynamic_linker='GNU/Linux ld.so'
10998     ;;
10999    
11000     netbsd*)
11001     version_type=sunos
11002     need_lib_prefix=no
11003     need_version=no
11004 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11005     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11006 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11007     dynamic_linker='NetBSD (a.out) ld.so'
11008     else
11009 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010     soname_spec='$libname$release$shared_ext$major'
11011 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11012     fi
11013     shlibpath_var=LD_LIBRARY_PATH
11014     shlibpath_overrides_runpath=yes
11015     hardcode_into_libs=yes
11016     ;;
11017    
11018     newsos6)
11019 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11020     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11022     shlibpath_overrides_runpath=yes
11023     ;;
11024    
11025 michael 5059 *nto* | *qnx*)
11026     version_type=qnx
11027 michael 5052 need_lib_prefix=no
11028     need_version=no
11029 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11030     soname_spec='$libname$release$shared_ext$major'
11031 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11032 michael 5059 shlibpath_overrides_runpath=no
11033     hardcode_into_libs=yes
11034     dynamic_linker='ldqnx.so'
11035 michael 5052 ;;
11036    
11037 michael 5059 openbsd* | bitrig*)
11038 michael 5052 version_type=sunos
11039 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11040 michael 5052 need_lib_prefix=no
11041 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11042     need_version=no
11043     else
11044     need_version=yes
11045     fi
11046     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11047 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11048     shlibpath_var=LD_LIBRARY_PATH
11049 michael 5059 shlibpath_overrides_runpath=yes
11050 michael 5052 ;;
11051    
11052     os2*)
11053     libname_spec='$name'
11054 michael 5059 version_type=windows
11055     shrext_cmds=.dll
11056     need_version=no
11057 michael 5052 need_lib_prefix=no
11058 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11059     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11060     v=$($ECHO $release$versuffix | tr -d .-);
11061     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11062     $ECHO $n$v`$shared_ext'
11063     library_names_spec='${libname}_dll.$libext'
11064 michael 5052 dynamic_linker='OS/2 ld.exe'
11065 michael 5059 shlibpath_var=BEGINLIBPATH
11066     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11067     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11068     postinstall_cmds='base_file=`basename \$file`~
11069     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11070     dldir=$destdir/`dirname \$dlpath`~
11071     test -d \$dldir || mkdir -p \$dldir~
11072     $install_prog $dir/$dlname \$dldir/$dlname~
11073     chmod a+x \$dldir/$dlname~
11074     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11075     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11076     fi'
11077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11078     dlpath=$dir/\$dldll~
11079     $RM \$dlpath'
11080 michael 5052 ;;
11081    
11082     osf3* | osf4* | osf5*)
11083     version_type=osf
11084     need_lib_prefix=no
11085     need_version=no
11086 michael 5059 soname_spec='$libname$release$shared_ext$major'
11087     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11089     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11090 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11091 michael 5052 ;;
11092    
11093 michael 5059 rdos*)
11094     dynamic_linker=no
11095     ;;
11096    
11097 michael 5052 solaris*)
11098 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11099 michael 5052 need_lib_prefix=no
11100     need_version=no
11101 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102     soname_spec='$libname$release$shared_ext$major'
11103 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11104     shlibpath_overrides_runpath=yes
11105     hardcode_into_libs=yes
11106     # ldd complains unless libraries are executable
11107     postinstall_cmds='chmod +x $lib'
11108     ;;
11109    
11110     sunos4*)
11111     version_type=sunos
11112 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11113 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11114     shlibpath_var=LD_LIBRARY_PATH
11115     shlibpath_overrides_runpath=yes
11116 michael 5059 if test yes = "$with_gnu_ld"; then
11117 michael 5052 need_lib_prefix=no
11118     fi
11119     need_version=yes
11120     ;;
11121    
11122     sysv4 | sysv4.3*)
11123 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11124     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125     soname_spec='$libname$release$shared_ext$major'
11126 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11127     case $host_vendor in
11128     sni)
11129     shlibpath_overrides_runpath=no
11130     need_lib_prefix=no
11131     runpath_var=LD_RUN_PATH
11132     ;;
11133     siemens)
11134     need_lib_prefix=no
11135     ;;
11136     motorola)
11137     need_lib_prefix=no
11138     need_version=no
11139     shlibpath_overrides_runpath=no
11140     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11141     ;;
11142     esac
11143     ;;
11144    
11145     sysv4*MP*)
11146 michael 5059 if test -d /usr/nec; then
11147     version_type=linux # correct to gnu/linux during the next big refactor
11148     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11149     soname_spec='$libname$shared_ext.$major'
11150 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11151     fi
11152     ;;
11153    
11154     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11155 michael 5059 version_type=sco
11156 michael 5052 need_lib_prefix=no
11157     need_version=no
11158 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11159     soname_spec='$libname$release$shared_ext$major'
11160 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11161 michael 5059 shlibpath_overrides_runpath=yes
11162 michael 5052 hardcode_into_libs=yes
11163 michael 5059 if test yes = "$with_gnu_ld"; then
11164 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11165     else
11166     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11167     case $host_os in
11168     sco3.2v5*)
11169     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11170     ;;
11171     esac
11172     fi
11173     sys_lib_dlsearch_path_spec='/usr/lib'
11174     ;;
11175    
11176 michael 5059 tpf*)
11177     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11178     version_type=linux # correct to gnu/linux during the next big refactor
11179     need_lib_prefix=no
11180     need_version=no
11181     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11182     shlibpath_var=LD_LIBRARY_PATH
11183     shlibpath_overrides_runpath=no
11184     hardcode_into_libs=yes
11185     ;;
11186    
11187 michael 5052 uts4*)
11188 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11189     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190     soname_spec='$libname$release$shared_ext$major'
11191 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11192     ;;
11193    
11194     *)
11195     dynamic_linker=no
11196     ;;
11197     esac
11198 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11199     $as_echo "$dynamic_linker" >&6; }
11200     test no = "$dynamic_linker" && can_build_shared=no
11201 michael 5052
11202     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11203 michael 5059 if test yes = "$GCC"; then
11204 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11205     fi
11206    
11207 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11208     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11209     fi
11210     if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11211     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11212     fi
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    
11280    
11281    
11282    
11283    
11284    
11285    
11286    
11287    
11288    
11289    
11290    
11291    
11292    
11293    
11294    
11295    
11296    
11297    
11298    
11299    
11300    
11301    
11302    
11303    
11304    
11305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11306     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11307 michael 5052 hardcode_action=
11308 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11309     test -n "$runpath_var" ||
11310     test yes = "$hardcode_automatic"; then
11311 michael 5052
11312 michael 5059 # We can hardcode non-existent directories.
11313     if test no != "$hardcode_direct" &&
11314 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11315     # have to relink, otherwise we might link with an installed library
11316     # when we should be linking with a yet-to-be-installed one
11317 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11318     test no != "$hardcode_minus_L"; then
11319 michael 5052 # Linking always hardcodes the temporary library directory.
11320     hardcode_action=relink
11321     else
11322     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11323     hardcode_action=immediate
11324     fi
11325     else
11326     # We cannot hardcode anything, or else we can only hardcode existing
11327     # directories.
11328     hardcode_action=unsupported
11329     fi
11330 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11331     $as_echo "$hardcode_action" >&6; }
11332 michael 5052
11333 michael 5059 if test relink = "$hardcode_action" ||
11334     test yes = "$inherit_rpath"; then
11335 michael 5052 # Fast installation is not supported
11336     enable_fast_install=no
11337 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11338     test no = "$enable_shared"; then
11339 michael 5052 # Fast installation is not necessary
11340     enable_fast_install=needless
11341     fi
11342    
11343    
11344 michael 5059
11345    
11346    
11347    
11348     if test yes != "$enable_dlopen"; then
11349 michael 5052 enable_dlopen=unknown
11350     enable_dlopen_self=unknown
11351     enable_dlopen_self_static=unknown
11352     else
11353     lt_cv_dlopen=no
11354     lt_cv_dlopen_libs=
11355    
11356     case $host_os in
11357     beos*)
11358 michael 5059 lt_cv_dlopen=load_add_on
11359 michael 5052 lt_cv_dlopen_libs=
11360     lt_cv_dlopen_self=yes
11361     ;;
11362    
11363 michael 5059 mingw* | pw32* | cegcc*)
11364     lt_cv_dlopen=LoadLibrary
11365 michael 5052 lt_cv_dlopen_libs=
11366 michael 5059 ;;
11367 michael 5052
11368     cygwin*)
11369 michael 5059 lt_cv_dlopen=dlopen
11370 michael 5052 lt_cv_dlopen_libs=
11371 michael 5059 ;;
11372 michael 5052
11373     darwin*)
11374 michael 5059 # if libdl is installed we need to link against it
11375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11376     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11377     if ${ac_cv_lib_dl_dlopen+:} false; then :
11378     $as_echo_n "(cached) " >&6
11379 michael 5052 else
11380     ac_check_lib_save_LIBS=$LIBS
11381     LIBS="-ldl $LIBS"
11382 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 michael 5052 /* end confdefs.h. */
11384    
11385     /* Override any GCC internal prototype to avoid an error.
11386     Use char because int might match the return type of a GCC
11387     builtin and then its argument prototype would still apply. */
11388     #ifdef __cplusplus
11389     extern "C"
11390     #endif
11391     char dlopen ();
11392     int
11393     main ()
11394     {
11395     return dlopen ();
11396     ;
11397     return 0;
11398     }
11399     _ACEOF
11400 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11401 michael 5052 ac_cv_lib_dl_dlopen=yes
11402     else
11403 michael 5059 ac_cv_lib_dl_dlopen=no
11404 michael 5052 fi
11405     rm -f core conftest.err conftest.$ac_objext \
11406 michael 5059 conftest$ac_exeext conftest.$ac_ext
11407 michael 5052 LIBS=$ac_check_lib_save_LIBS
11408     fi
11409 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11410     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11411     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11412     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11413 michael 5052 else
11414    
11415 michael 5059 lt_cv_dlopen=dyld
11416 michael 5052 lt_cv_dlopen_libs=
11417     lt_cv_dlopen_self=yes
11418    
11419     fi
11420    
11421 michael 5059 ;;
11422 michael 5052
11423 michael 5059 tpf*)
11424     # Don't try to run any link tests for TPF. We know it's impossible
11425     # because TPF is a cross-compiler, and we know how we open DSOs.
11426     lt_cv_dlopen=dlopen
11427     lt_cv_dlopen_libs=
11428     lt_cv_dlopen_self=no
11429     ;;
11430    
11431 michael 5052 *)
11432 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11433     if test "x$ac_cv_func_shl_load" = xyes; then :
11434     lt_cv_dlopen=shl_load
11435 michael 5052 else
11436 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11437     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11438     if ${ac_cv_lib_dld_shl_load+:} false; then :
11439     $as_echo_n "(cached) " >&6
11440 michael 5052 else
11441     ac_check_lib_save_LIBS=$LIBS
11442     LIBS="-ldld $LIBS"
11443 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 michael 5052 /* end confdefs.h. */
11445    
11446     /* Override any GCC internal prototype to avoid an error.
11447     Use char because int might match the return type of a GCC
11448     builtin and then its argument prototype would still apply. */
11449     #ifdef __cplusplus
11450     extern "C"
11451     #endif
11452     char shl_load ();
11453     int
11454     main ()
11455     {
11456     return shl_load ();
11457     ;
11458     return 0;
11459     }
11460     _ACEOF
11461 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11462 michael 5052 ac_cv_lib_dld_shl_load=yes
11463     else
11464 michael 5059 ac_cv_lib_dld_shl_load=no
11465 michael 5052 fi
11466     rm -f core conftest.err conftest.$ac_objext \
11467 michael 5059 conftest$ac_exeext conftest.$ac_ext
11468 michael 5052 LIBS=$ac_check_lib_save_LIBS
11469     fi
11470 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11471     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11472     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11473     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11474 michael 5052 else
11475 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11476     if test "x$ac_cv_func_dlopen" = xyes; then :
11477     lt_cv_dlopen=dlopen
11478 michael 5052 else
11479 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11480     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11481     if ${ac_cv_lib_dl_dlopen+:} false; then :
11482     $as_echo_n "(cached) " >&6
11483 michael 5052 else
11484     ac_check_lib_save_LIBS=$LIBS
11485     LIBS="-ldl $LIBS"
11486 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 michael 5052 /* end confdefs.h. */
11488    
11489     /* Override any GCC internal prototype to avoid an error.
11490     Use char because int might match the return type of a GCC
11491     builtin and then its argument prototype would still apply. */
11492     #ifdef __cplusplus
11493     extern "C"
11494     #endif
11495     char dlopen ();
11496     int
11497     main ()
11498     {
11499     return dlopen ();
11500     ;
11501     return 0;
11502     }
11503     _ACEOF
11504 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11505 michael 5052 ac_cv_lib_dl_dlopen=yes
11506     else
11507 michael 5059 ac_cv_lib_dl_dlopen=no
11508 michael 5052 fi
11509     rm -f core conftest.err conftest.$ac_objext \
11510 michael 5059 conftest$ac_exeext conftest.$ac_ext
11511 michael 5052 LIBS=$ac_check_lib_save_LIBS
11512     fi
11513 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11514     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11515     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11516     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11517 michael 5052 else
11518 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11519     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11520     if ${ac_cv_lib_svld_dlopen+:} false; then :
11521     $as_echo_n "(cached) " >&6
11522 michael 5052 else
11523     ac_check_lib_save_LIBS=$LIBS
11524     LIBS="-lsvld $LIBS"
11525 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 michael 5052 /* end confdefs.h. */
11527    
11528     /* Override any GCC internal prototype to avoid an error.
11529     Use char because int might match the return type of a GCC
11530     builtin and then its argument prototype would still apply. */
11531     #ifdef __cplusplus
11532     extern "C"
11533     #endif
11534     char dlopen ();
11535     int
11536     main ()
11537     {
11538     return dlopen ();
11539     ;
11540     return 0;
11541     }
11542     _ACEOF
11543 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11544 michael 5052 ac_cv_lib_svld_dlopen=yes
11545     else
11546 michael 5059 ac_cv_lib_svld_dlopen=no
11547 michael 5052 fi
11548     rm -f core conftest.err conftest.$ac_objext \
11549 michael 5059 conftest$ac_exeext conftest.$ac_ext
11550 michael 5052 LIBS=$ac_check_lib_save_LIBS
11551     fi
11552 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11553     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11554     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11555     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11556 michael 5052 else
11557 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11558     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11559     if ${ac_cv_lib_dld_dld_link+:} false; then :
11560     $as_echo_n "(cached) " >&6
11561 michael 5052 else
11562     ac_check_lib_save_LIBS=$LIBS
11563     LIBS="-ldld $LIBS"
11564 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 michael 5052 /* end confdefs.h. */
11566    
11567     /* Override any GCC internal prototype to avoid an error.
11568     Use char because int might match the return type of a GCC
11569     builtin and then its argument prototype would still apply. */
11570     #ifdef __cplusplus
11571     extern "C"
11572     #endif
11573     char dld_link ();
11574     int
11575     main ()
11576     {
11577     return dld_link ();
11578     ;
11579     return 0;
11580     }
11581     _ACEOF
11582 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11583 michael 5052 ac_cv_lib_dld_dld_link=yes
11584     else
11585 michael 5059 ac_cv_lib_dld_dld_link=no
11586 michael 5052 fi
11587     rm -f core conftest.err conftest.$ac_objext \
11588 michael 5059 conftest$ac_exeext conftest.$ac_ext
11589 michael 5052 LIBS=$ac_check_lib_save_LIBS
11590     fi
11591 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11592     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11593     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11594     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11595 michael 5052 fi
11596    
11597    
11598     fi
11599    
11600    
11601     fi
11602    
11603    
11604     fi
11605    
11606    
11607     fi
11608    
11609    
11610     fi
11611    
11612     ;;
11613     esac
11614    
11615 michael 5059 if test no = "$lt_cv_dlopen"; then
11616     enable_dlopen=no
11617     else
11618 michael 5052 enable_dlopen=yes
11619     fi
11620    
11621     case $lt_cv_dlopen in
11622     dlopen)
11623 michael 5059 save_CPPFLAGS=$CPPFLAGS
11624     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11625 michael 5052
11626 michael 5059 save_LDFLAGS=$LDFLAGS
11627 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11628    
11629 michael 5059 save_LIBS=$LIBS
11630 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11631    
11632 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11633     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11634     if ${lt_cv_dlopen_self+:} false; then :
11635     $as_echo_n "(cached) " >&6
11636 michael 5052 else
11637 michael 5059 if test yes = "$cross_compiling"; then :
11638 michael 5052 lt_cv_dlopen_self=cross
11639     else
11640     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11641     lt_status=$lt_dlunknown
11642 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11643     #line $LINENO "configure"
11644 michael 5052 #include "confdefs.h"
11645    
11646     #if HAVE_DLFCN_H
11647     #include <dlfcn.h>
11648     #endif
11649    
11650     #include <stdio.h>
11651    
11652     #ifdef RTLD_GLOBAL
11653     # define LT_DLGLOBAL RTLD_GLOBAL
11654     #else
11655     # ifdef DL_GLOBAL
11656     # define LT_DLGLOBAL DL_GLOBAL
11657     # else
11658     # define LT_DLGLOBAL 0
11659     # endif
11660     #endif
11661    
11662     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11663     find out it does not work in some platform. */
11664     #ifndef LT_DLLAZY_OR_NOW
11665     # ifdef RTLD_LAZY
11666     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11667     # else
11668     # ifdef DL_LAZY
11669     # define LT_DLLAZY_OR_NOW DL_LAZY
11670     # else
11671     # ifdef RTLD_NOW
11672     # define LT_DLLAZY_OR_NOW RTLD_NOW
11673     # else
11674     # ifdef DL_NOW
11675     # define LT_DLLAZY_OR_NOW DL_NOW
11676     # else
11677     # define LT_DLLAZY_OR_NOW 0
11678     # endif
11679     # endif
11680     # endif
11681     # endif
11682     #endif
11683    
11684 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11685     correspondingly for the symbols needed. */
11686     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11687     int fnord () __attribute__((visibility("default")));
11688 michael 5052 #endif
11689    
11690 michael 5059 int fnord () { return 42; }
11691 michael 5052 int main ()
11692     {
11693     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11694     int status = $lt_dlunknown;
11695    
11696     if (self)
11697     {
11698     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11699 michael 5059 else
11700     {
11701     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11702     else puts (dlerror ());
11703     }
11704 michael 5052 /* dlclose (self); */
11705     }
11706     else
11707     puts (dlerror ());
11708    
11709 michael 5059 return status;
11710 michael 5052 }
11711 michael 5059 _LT_EOF
11712     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11713 michael 5052 (eval $ac_link) 2>&5
11714     ac_status=$?
11715 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11716     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11717 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11718     lt_status=$?
11719     case x$lt_status in
11720     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11721     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11722     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11723     esac
11724     else :
11725     # compilation failed
11726     lt_cv_dlopen_self=no
11727     fi
11728     fi
11729     rm -fr conftest*
11730    
11731    
11732     fi
11733 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11734     $as_echo "$lt_cv_dlopen_self" >&6; }
11735 michael 5052
11736 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11737 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11738 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11739     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11740     if ${lt_cv_dlopen_self_static+:} false; then :
11741     $as_echo_n "(cached) " >&6
11742 michael 5052 else
11743 michael 5059 if test yes = "$cross_compiling"; then :
11744 michael 5052 lt_cv_dlopen_self_static=cross
11745     else
11746     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747     lt_status=$lt_dlunknown
11748 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11749     #line $LINENO "configure"
11750 michael 5052 #include "confdefs.h"
11751    
11752     #if HAVE_DLFCN_H
11753     #include <dlfcn.h>
11754     #endif
11755    
11756     #include <stdio.h>
11757    
11758     #ifdef RTLD_GLOBAL
11759     # define LT_DLGLOBAL RTLD_GLOBAL
11760     #else
11761     # ifdef DL_GLOBAL
11762     # define LT_DLGLOBAL DL_GLOBAL
11763     # else
11764     # define LT_DLGLOBAL 0
11765     # endif
11766     #endif
11767    
11768     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769     find out it does not work in some platform. */
11770     #ifndef LT_DLLAZY_OR_NOW
11771     # ifdef RTLD_LAZY
11772     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11773     # else
11774     # ifdef DL_LAZY
11775     # define LT_DLLAZY_OR_NOW DL_LAZY
11776     # else
11777     # ifdef RTLD_NOW
11778     # define LT_DLLAZY_OR_NOW RTLD_NOW
11779     # else
11780     # ifdef DL_NOW
11781     # define LT_DLLAZY_OR_NOW DL_NOW
11782     # else
11783     # define LT_DLLAZY_OR_NOW 0
11784     # endif
11785     # endif
11786     # endif
11787     # endif
11788     #endif
11789    
11790 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11791     correspondingly for the symbols needed. */
11792     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11793     int fnord () __attribute__((visibility("default")));
11794 michael 5052 #endif
11795    
11796 michael 5059 int fnord () { return 42; }
11797 michael 5052 int main ()
11798     {
11799     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11800     int status = $lt_dlunknown;
11801    
11802     if (self)
11803     {
11804     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11805 michael 5059 else
11806     {
11807     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11808     else puts (dlerror ());
11809     }
11810 michael 5052 /* dlclose (self); */
11811     }
11812     else
11813     puts (dlerror ());
11814    
11815 michael 5059 return status;
11816 michael 5052 }
11817 michael 5059 _LT_EOF
11818     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11819 michael 5052 (eval $ac_link) 2>&5
11820     ac_status=$?
11821 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11823 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11824     lt_status=$?
11825     case x$lt_status in
11826     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11827     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11828     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11829     esac
11830     else :
11831     # compilation failed
11832     lt_cv_dlopen_self_static=no
11833     fi
11834     fi
11835     rm -fr conftest*
11836    
11837    
11838     fi
11839 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11840     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11841 michael 5052 fi
11842    
11843 michael 5059 CPPFLAGS=$save_CPPFLAGS
11844     LDFLAGS=$save_LDFLAGS
11845     LIBS=$save_LIBS
11846 michael 5052 ;;
11847     esac
11848    
11849     case $lt_cv_dlopen_self in
11850     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11851     *) enable_dlopen_self=unknown ;;
11852     esac
11853    
11854     case $lt_cv_dlopen_self_static in
11855     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11856     *) enable_dlopen_self_static=unknown ;;
11857     esac
11858     fi
11859    
11860    
11861    
11862    
11863    
11864    
11865    
11866    
11867    
11868    
11869    
11870    
11871    
11872    
11873    
11874    
11875    
11876 michael 5059 striplib=
11877     old_striplib=
11878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11879     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11880     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11881     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11882     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884     $as_echo "yes" >&6; }
11885 michael 5052 else
11886 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11887 michael 5052 case $host_os in
11888 michael 5059 darwin*)
11889     if test -n "$STRIP"; then
11890     striplib="$STRIP -x"
11891     old_striplib="$STRIP -S"
11892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893     $as_echo "yes" >&6; }
11894 michael 5052 else
11895 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896     $as_echo "no" >&6; }
11897 michael 5052 fi
11898     ;;
11899     *)
11900 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901     $as_echo "no" >&6; }
11902 michael 5052 ;;
11903     esac
11904     fi
11905    
11906    
11907    
11908    
11909    
11910    
11911    
11912    
11913    
11914    
11915    
11916    
11917 michael 5059 # Report what library types will actually be built
11918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11919     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11921     $as_echo "$can_build_shared" >&6; }
11922 michael 5052
11923 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11924     $as_echo_n "checking whether to build shared libraries... " >&6; }
11925     test no = "$can_build_shared" && enable_shared=no
11926 michael 5052
11927 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
11928     # are all built from PIC.
11929 michael 5052 case $host_os in
11930 michael 5059 aix3*)
11931     test yes = "$enable_shared" && enable_static=no
11932     if test -n "$RANLIB"; then
11933     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11934     postinstall_cmds='$RANLIB $lib'
11935 michael 5052 fi
11936     ;;
11937    
11938 michael 5059 aix[4-9]*)
11939     if test ia64 != "$host_cpu"; then
11940     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11941     yes,aix,yes) ;; # shared object as lib.so file only
11942     yes,svr4,*) ;; # shared object as lib.so archive member only
11943     yes,*) enable_static=no ;; # shared object in lib.a archive as well
11944 michael 5052 esac
11945     fi
11946     ;;
11947     esac
11948 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11949     $as_echo "$enable_shared" >&6; }
11950 michael 5052
11951 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11952     $as_echo_n "checking whether to build static libraries... " >&6; }
11953     # Make sure either enable_shared or enable_static is yes.
11954     test yes = "$enable_shared" || enable_static=yes
11955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11956     $as_echo "$enable_static" >&6; }
11957 michael 5052
11958    
11959    
11960    
11961     fi
11962     ac_ext=c
11963     ac_cpp='$CPP $CPPFLAGS'
11964     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967    
11968 michael 5059 CC=$lt_save_CC
11969 michael 5052
11970    
11971    
11972    
11973    
11974    
11975    
11976    
11977    
11978    
11979    
11980    
11981    
11982    
11983    
11984 michael 5059 ac_config_commands="$ac_config_commands libtool"
11985 michael 5052
11986    
11987    
11988    
11989 michael 5059 # Only expand once:
11990 michael 5052
11991    
11992    
11993    
11994     for ac_prog in 'bison -y' byacc
11995     do
11996     # Extract the first word of "$ac_prog", so it can be a program name with args.
11997     set dummy $ac_prog; ac_word=$2
11998 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999     $as_echo_n "checking for $ac_word... " >&6; }
12000     if ${ac_cv_prog_YACC+:} false; then :
12001     $as_echo_n "(cached) " >&6
12002 michael 5052 else
12003     if test -n "$YACC"; then
12004     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12005     else
12006     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007     for as_dir in $PATH
12008     do
12009     IFS=$as_save_IFS
12010     test -z "$as_dir" && as_dir=.
12011 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12012     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 michael 5052 ac_cv_prog_YACC="$ac_prog"
12014 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 michael 5052 break 2
12016     fi
12017     done
12018 michael 5059 done
12019 michael 5052 IFS=$as_save_IFS
12020    
12021     fi
12022     fi
12023     YACC=$ac_cv_prog_YACC
12024     if test -n "$YACC"; then
12025 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12026     $as_echo "$YACC" >&6; }
12027 michael 5052 else
12028 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029     $as_echo "no" >&6; }
12030 michael 5052 fi
12031    
12032    
12033     test -n "$YACC" && break
12034     done
12035     test -n "$YACC" || YACC="yacc"
12036    
12037    
12038     for ac_prog in flex lex
12039     do
12040     # Extract the first word of "$ac_prog", so it can be a program name with args.
12041     set dummy $ac_prog; ac_word=$2
12042 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043     $as_echo_n "checking for $ac_word... " >&6; }
12044     if ${ac_cv_prog_LEX+:} false; then :
12045     $as_echo_n "(cached) " >&6
12046 michael 5052 else
12047     if test -n "$LEX"; then
12048     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12049     else
12050     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051     for as_dir in $PATH
12052     do
12053     IFS=$as_save_IFS
12054     test -z "$as_dir" && as_dir=.
12055 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12056     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 michael 5052 ac_cv_prog_LEX="$ac_prog"
12058 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 michael 5052 break 2
12060     fi
12061     done
12062 michael 5059 done
12063 michael 5052 IFS=$as_save_IFS
12064    
12065     fi
12066     fi
12067     LEX=$ac_cv_prog_LEX
12068     if test -n "$LEX"; then
12069 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12070     $as_echo "$LEX" >&6; }
12071 michael 5052 else
12072 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073     $as_echo "no" >&6; }
12074 michael 5052 fi
12075    
12076    
12077     test -n "$LEX" && break
12078     done
12079     test -n "$LEX" || LEX=":"
12080    
12081 michael 5059 if test "x$LEX" != "x:"; then
12082     cat >conftest.l <<_ACEOF
12083     %%
12084     a { ECHO; }
12085     b { REJECT; }
12086     c { yymore (); }
12087     d { yyless (1); }
12088     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12089     yyless ((input () != 0)); }
12090     f { unput (yytext[0]); }
12091     . { BEGIN INITIAL; }
12092     %%
12093     #ifdef YYTEXT_POINTER
12094     extern char *yytext;
12095 michael 5052 #endif
12096     int
12097 michael 5059 main (void)
12098 michael 5052 {
12099 michael 5059 return ! yylex () + ! yywrap ();
12100 michael 5052 }
12101     _ACEOF
12102 michael 5059 { { ac_try="$LEX conftest.l"
12103 michael 5052 case "(($ac_try" in
12104     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105     *) ac_try_echo=$ac_try;;
12106     esac
12107 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12108     $as_echo "$ac_try_echo"; } >&5
12109     (eval "$LEX conftest.l") 2>&5
12110 michael 5052 ac_status=$?
12111 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112     test $ac_status = 0; }
12113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12114     $as_echo_n "checking lex output file root... " >&6; }
12115     if ${ac_cv_prog_lex_root+:} false; then :
12116     $as_echo_n "(cached) " >&6
12117 michael 5052 else
12118    
12119 michael 5059 if test -f lex.yy.c; then
12120     ac_cv_prog_lex_root=lex.yy
12121     elif test -f lexyy.c; then
12122     ac_cv_prog_lex_root=lexyy
12123     else
12124     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12125 michael 5052 fi
12126 michael 5059 fi
12127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12128     $as_echo "$ac_cv_prog_lex_root" >&6; }
12129     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12130 michael 5052
12131 michael 5059 if test -z "${LEXLIB+set}"; then
12132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12133     $as_echo_n "checking lex library... " >&6; }
12134     if ${ac_cv_lib_lex+:} false; then :
12135     $as_echo_n "(cached) " >&6
12136 michael 5052 else
12137 michael 5059
12138     ac_save_LIBS=$LIBS
12139     ac_cv_lib_lex='none needed'
12140     for ac_lib in '' -lfl -ll; do
12141     LIBS="$ac_lib $ac_save_LIBS"
12142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 michael 5052 /* end confdefs.h. */
12144 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12145 michael 5052 _ACEOF
12146 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12147     ac_cv_lib_lex=$ac_lib
12148 michael 5052 fi
12149     rm -f core conftest.err conftest.$ac_objext \
12150 michael 5059 conftest$ac_exeext conftest.$ac_ext
12151     test "$ac_cv_lib_lex" != 'none needed' && break
12152     done
12153     LIBS=$ac_save_LIBS
12154 michael 5052
12155     fi
12156 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12157     $as_echo "$ac_cv_lib_lex" >&6; }
12158     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12159 michael 5052 fi
12160    
12161    
12162 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12163     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12164     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12165     $as_echo_n "(cached) " >&6
12166 michael 5052 else
12167     # POSIX says lex can declare yytext either as a pointer or an array; the
12168 michael 5059 # default is implementation-dependent. Figure out which it is, since
12169 michael 5052 # not all implementations provide the %pointer and %array declarations.
12170     ac_cv_prog_lex_yytext_pointer=no
12171     ac_save_LIBS=$LIBS
12172 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174     /* end confdefs.h. */
12175    
12176     #define YYTEXT_POINTER 1
12177 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12178     _ACEOF
12179 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12180 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12181     fi
12182     rm -f core conftest.err conftest.$ac_objext \
12183 michael 5059 conftest$ac_exeext conftest.$ac_ext
12184 michael 5052 LIBS=$ac_save_LIBS
12185    
12186     fi
12187 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12188     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12189 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12190    
12191 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12192 michael 5052
12193     fi
12194 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12195 michael 5052
12196     fi
12197     if test "$LEX" = :; then
12198     LEX=${am_missing_run}flex
12199     fi
12200    
12201 michael 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12202     $as_echo_n "checking for library containing socket... " >&6; }
12203     if ${ac_cv_search_socket+:} false; then :
12204     $as_echo_n "(cached) " >&6
12205     else
12206     ac_func_search_save_LIBS=$LIBS
12207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208     /* end confdefs.h. */
12209 michael 5052
12210 michael 5062 /* Override any GCC internal prototype to avoid an error.
12211     Use char because int might match the return type of a GCC
12212     builtin and then its argument prototype would still apply. */
12213     #ifdef __cplusplus
12214     extern "C"
12215     #endif
12216     char socket ();
12217     int
12218     main ()
12219     {
12220     return socket ();
12221     ;
12222     return 0;
12223     }
12224     _ACEOF
12225     for ac_lib in '' socket; do
12226     if test -z "$ac_lib"; then
12227     ac_res="none required"
12228     else
12229     ac_res=-l$ac_lib
12230     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12231     fi
12232     if ac_fn_c_try_link "$LINENO"; then :
12233     ac_cv_search_socket=$ac_res
12234     fi
12235     rm -f core conftest.err conftest.$ac_objext \
12236     conftest$ac_exeext
12237     if ${ac_cv_search_socket+:} false; then :
12238     break
12239     fi
12240     done
12241     if ${ac_cv_search_socket+:} false; then :
12242    
12243     else
12244     ac_cv_search_socket=no
12245     fi
12246     rm conftest.$ac_ext
12247     LIBS=$ac_func_search_save_LIBS
12248     fi
12249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12250     $as_echo "$ac_cv_search_socket" >&6; }
12251     ac_res=$ac_cv_search_socket
12252     if test "$ac_res" != no; then :
12253     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12254    
12255     else
12256     as_fn_error $? "socket library not found" "$LINENO" 5
12257     fi
12258    
12259     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12260     if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12261    
12262     else
12263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12264     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12265     if ${ac_cv_search_getaddrinfo+:} false; then :
12266     $as_echo_n "(cached) " >&6
12267     else
12268     ac_func_search_save_LIBS=$LIBS
12269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270     /* end confdefs.h. */
12271    
12272     /* Override any GCC internal prototype to avoid an error.
12273     Use char because int might match the return type of a GCC
12274     builtin and then its argument prototype would still apply. */
12275     #ifdef __cplusplus
12276     extern "C"
12277     #endif
12278     char getaddrinfo ();
12279     int
12280     main ()
12281     {
12282     return getaddrinfo ();
12283     ;
12284     return 0;
12285     }
12286     _ACEOF
12287     for ac_lib in '' nsl; do
12288     if test -z "$ac_lib"; then
12289     ac_res="none required"
12290     else
12291     ac_res=-l$ac_lib
12292     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12293     fi
12294     if ac_fn_c_try_link "$LINENO"; then :
12295     ac_cv_search_getaddrinfo=$ac_res
12296     fi
12297     rm -f core conftest.err conftest.$ac_objext \
12298     conftest$ac_exeext
12299     if ${ac_cv_search_getaddrinfo+:} false; then :
12300     break
12301     fi
12302     done
12303     if ${ac_cv_search_getaddrinfo+:} false; then :
12304    
12305     else
12306     ac_cv_search_getaddrinfo=no
12307     fi
12308     rm conftest.$ac_ext
12309     LIBS=$ac_func_search_save_LIBS
12310     fi
12311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12312     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12313     ac_res=$ac_cv_search_getaddrinfo
12314     if test "$ac_res" != no; then :
12315     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12316    
12317     fi
12318    
12319     fi
12320    
12321     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12322     if test "x$ac_cv_func_getnameinfo" = xyes; then :
12323    
12324     else
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12326     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12327     if ${ac_cv_search_getnameinfo+:} false; then :
12328     $as_echo_n "(cached) " >&6
12329     else
12330     ac_func_search_save_LIBS=$LIBS
12331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332     /* end confdefs.h. */
12333    
12334     /* Override any GCC internal prototype to avoid an error.
12335     Use char because int might match the return type of a GCC
12336     builtin and then its argument prototype would still apply. */
12337     #ifdef __cplusplus
12338     extern "C"
12339     #endif
12340     char getnameinfo ();
12341     int
12342     main ()
12343     {
12344     return getnameinfo ();
12345     ;
12346     return 0;
12347     }
12348     _ACEOF
12349     for ac_lib in '' nsl; do
12350     if test -z "$ac_lib"; then
12351     ac_res="none required"
12352     else
12353     ac_res=-l$ac_lib
12354     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12355     fi
12356     if ac_fn_c_try_link "$LINENO"; then :
12357     ac_cv_search_getnameinfo=$ac_res
12358     fi
12359     rm -f core conftest.err conftest.$ac_objext \
12360     conftest$ac_exeext
12361     if ${ac_cv_search_getnameinfo+:} false; then :
12362     break
12363     fi
12364     done
12365     if ${ac_cv_search_getnameinfo+:} false; then :
12366    
12367     else
12368     ac_cv_search_getnameinfo=no
12369     fi
12370     rm conftest.$ac_ext
12371     LIBS=$ac_func_search_save_LIBS
12372     fi
12373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12374     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12375     ac_res=$ac_cv_search_getnameinfo
12376     if test "$ac_res" != no; then :
12377     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12378    
12379     fi
12380    
12381     fi
12382    
12383    
12384 michael 5264 for ac_func in strlcpy strlcat
12385 michael 5059 do :
12386     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12387     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12388     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12389     cat >>confdefs.h <<_ACEOF
12390     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12391 michael 5052 _ACEOF
12392    
12393     fi
12394 michael 5059 done
12395 michael 5052
12396    
12397 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12398     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12399     if ${ac_cv_c_bigendian+:} false; then :
12400     $as_echo_n "(cached) " >&6
12401 michael 5052 else
12402 michael 5059 ac_cv_c_bigendian=unknown
12403     # See if we're dealing with a universal compiler.
12404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 michael 5052 /* end confdefs.h. */
12406 michael 5059 #ifndef __APPLE_CC__
12407     not a universal capable compiler
12408     #endif
12409     typedef int dummy;
12410 michael 5052
12411     _ACEOF
12412 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12413 michael 5052
12414 michael 5059 # Check for potential -arch flags. It is not universal unless
12415     # there are at least two -arch flags with different values.
12416     ac_arch=
12417     ac_prev=
12418     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12419     if test -n "$ac_prev"; then
12420     case $ac_word in
12421     i?86 | x86_64 | ppc | ppc64)
12422     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12423     ac_arch=$ac_word
12424     else
12425     ac_cv_c_bigendian=universal
12426     break
12427     fi
12428     ;;
12429     esac
12430     ac_prev=
12431     elif test "x$ac_word" = "x-arch"; then
12432     ac_prev=arch
12433     fi
12434     done
12435 michael 5052 fi
12436 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437     if test $ac_cv_c_bigendian = unknown; then
12438     # See if sys/param.h defines the BYTE_ORDER macro.
12439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 michael 5052 /* end confdefs.h. */
12441     #include <sys/types.h>
12442 michael 5059 #include <sys/param.h>
12443 michael 5052
12444     int
12445     main ()
12446     {
12447 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12448     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12449     && LITTLE_ENDIAN)
12450     bogus endian macros
12451     #endif
12452 michael 5052
12453     ;
12454     return 0;
12455     }
12456     _ACEOF
12457 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12458 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12459 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 michael 5052 /* end confdefs.h. */
12461     #include <sys/types.h>
12462 michael 5059 #include <sys/param.h>
12463 michael 5052
12464     int
12465     main ()
12466     {
12467     #if BYTE_ORDER != BIG_ENDIAN
12468 michael 5059 not big endian
12469     #endif
12470 michael 5052
12471     ;
12472     return 0;
12473     }
12474     _ACEOF
12475 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12476 michael 5052 ac_cv_c_bigendian=yes
12477     else
12478     ac_cv_c_bigendian=no
12479     fi
12480     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481     fi
12482     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 michael 5059 fi
12484     if test $ac_cv_c_bigendian = unknown; then
12485     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 michael 5052 /* end confdefs.h. */
12488 michael 5059 #include <limits.h>
12489 michael 5052
12490     int
12491     main ()
12492     {
12493 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12494     bogus endian macros
12495     #endif
12496 michael 5052
12497     ;
12498     return 0;
12499     }
12500     _ACEOF
12501 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12502     # It does; now see whether it defined to _BIG_ENDIAN or not.
12503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 michael 5052 /* end confdefs.h. */
12505 michael 5059 #include <limits.h>
12506 michael 5052
12507     int
12508     main ()
12509     {
12510 michael 5059 #ifndef _BIG_ENDIAN
12511     not big endian
12512     #endif
12513 michael 5052
12514     ;
12515     return 0;
12516     }
12517     _ACEOF
12518 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12519     ac_cv_c_bigendian=yes
12520 michael 5052 else
12521 michael 5059 ac_cv_c_bigendian=no
12522 michael 5052 fi
12523     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524     fi
12525     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 michael 5059 fi
12527     if test $ac_cv_c_bigendian = unknown; then
12528     # Compile a test program.
12529     if test "$cross_compiling" = yes; then :
12530     # Try to guess by grepping values from an object file.
12531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532     /* end confdefs.h. */
12533     short int ascii_mm[] =
12534     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12535     short int ascii_ii[] =
12536     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12537     int use_ascii (int i) {
12538     return ascii_mm[i] + ascii_ii[i];
12539     }
12540     short int ebcdic_ii[] =
12541     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12542     short int ebcdic_mm[] =
12543     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12544     int use_ebcdic (int i) {
12545     return ebcdic_mm[i] + ebcdic_ii[i];
12546     }
12547     extern int foo;
12548 michael 5052
12549     int
12550     main ()
12551     {
12552 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12553 michael 5052 ;
12554     return 0;
12555     }
12556     _ACEOF
12557 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12558     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12559     ac_cv_c_bigendian=yes
12560     fi
12561     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12562     if test "$ac_cv_c_bigendian" = unknown; then
12563     ac_cv_c_bigendian=no
12564     else
12565     # finding both strings is unlikely to happen, but who knows?
12566     ac_cv_c_bigendian=unknown
12567     fi
12568     fi
12569 michael 5052 fi
12570     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571     else
12572 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 michael 5052 /* end confdefs.h. */
12574     $ac_includes_default
12575     int
12576     main ()
12577     {
12578    
12579 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12580     union
12581     {
12582     long int l;
12583     char c[sizeof (long int)];
12584     } u;
12585     u.l = 1;
12586     return u.c[sizeof (long int) - 1] == 1;
12587 michael 5052
12588     ;
12589     return 0;
12590     }
12591     _ACEOF
12592 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12593     ac_cv_c_bigendian=no
12594 michael 5052 else
12595 michael 5059 ac_cv_c_bigendian=yes
12596 michael 5052 fi
12597 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12598     conftest.$ac_objext conftest.beam conftest.$ac_ext
12599 michael 5052 fi
12600 michael 5059
12601     fi
12602 michael 5052 fi
12603 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12604     $as_echo "$ac_cv_c_bigendian" >&6; }
12605     case $ac_cv_c_bigendian in #(
12606     yes)
12607     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12608     ;; #(
12609     no)
12610     ;; #(
12611     universal)
12612 michael 5052
12613 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12614 michael 5052
12615 michael 5059 ;; #(
12616     *)
12617     as_fn_error $? "unknown endianness
12618     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12619     esac
12620 michael 5052
12621    
12622 michael 5260 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12623 michael 5052
12624     cat >confcache <<\_ACEOF
12625     # This file is a shell script that caches the results of configure
12626     # tests run on this system so they can be shared between configure
12627     # scripts and configure runs, see configure's option --config-cache.
12628     # It is not useful on other systems. If it contains results you don't
12629     # want to keep, you may remove or edit it.
12630     #
12631     # config.status only pays attention to the cache file if you give it
12632     # the --recheck option to rerun configure.
12633     #
12634     # `ac_cv_env_foo' variables (set or unset) will be overridden when
12635     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12636     # following values.
12637    
12638     _ACEOF
12639    
12640     # The following way of writing the cache mishandles newlines in values,
12641     # but we know of no workaround that is simple, portable, and efficient.
12642     # So, we kill variables containing newlines.
12643     # Ultrix sh set writes to stderr and can't be redirected directly,
12644     # and sets the high bit in the cache file unless we assign to the vars.
12645     (
12646     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12647     eval ac_val=\$$ac_var
12648     case $ac_val in #(
12649     *${as_nl}*)
12650     case $ac_var in #(
12651 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12652     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12653 michael 5052 esac
12654     case $ac_var in #(
12655     _ | IFS | as_nl) ;; #(
12656 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12657     *) { eval $ac_var=; unset $ac_var;} ;;
12658 michael 5052 esac ;;
12659     esac
12660     done
12661    
12662     (set) 2>&1 |
12663     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12664     *${as_nl}ac_space=\ *)
12665 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
12666     # substitution turns \\\\ into \\, and sed turns \\ into \.
12667 michael 5052 sed -n \
12668     "s/'/'\\\\''/g;
12669     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12670     ;; #(
12671     *)
12672     # `set' quotes correctly as required by POSIX, so do not add quotes.
12673     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12674     ;;
12675     esac |
12676     sort
12677     ) |
12678     sed '
12679     /^ac_cv_env_/b end
12680     t clear
12681     :clear
12682     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12683     t end
12684     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12685     :end' >>confcache
12686     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12687     if test -w "$cache_file"; then
12688 michael 5059 if test "x$cache_file" != "x/dev/null"; then
12689     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12690     $as_echo "$as_me: updating cache $cache_file" >&6;}
12691     if test ! -f "$cache_file" || test -h "$cache_file"; then
12692     cat confcache >"$cache_file"
12693     else
12694     case $cache_file in #(
12695     */* | ?:*)
12696     mv -f confcache "$cache_file"$$ &&
12697     mv -f "$cache_file"$$ "$cache_file" ;; #(
12698     *)
12699     mv -f confcache "$cache_file" ;;
12700     esac
12701     fi
12702     fi
12703 michael 5052 else
12704 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12705     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12706 michael 5052 fi
12707     fi
12708     rm -f confcache
12709    
12710     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12711     # Let make expand exec_prefix.
12712     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12713    
12714     DEFS=-DHAVE_CONFIG_H
12715    
12716     ac_libobjs=
12717     ac_ltlibobjs=
12718 michael 5145 U=
12719 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12720     # 1. Remove the extension, and $U if already installed.
12721     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12722 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12723 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12724     # will be set to the directory where LIBOBJS objects are built.
12725 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12726     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12727 michael 5052 done
12728     LIBOBJS=$ac_libobjs
12729    
12730     LTLIBOBJS=$ac_ltlibobjs
12731    
12732    
12733 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12734     $as_echo_n "checking that generated files are newer than configure... " >&6; }
12735     if test -n "$am_sleep_pid"; then
12736     # Hide warnings about reused PIDs.
12737     wait $am_sleep_pid 2>/dev/null
12738     fi
12739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12740     $as_echo "done" >&6; }
12741     if test -n "$EXEEXT"; then
12742     am__EXEEXT_TRUE=
12743     am__EXEEXT_FALSE='#'
12744     else
12745     am__EXEEXT_TRUE='#'
12746     am__EXEEXT_FALSE=
12747     fi
12748    
12749 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12750 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12751     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12752 michael 5052 fi
12753     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12754 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
12755     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756 michael 5052 fi
12757     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12758 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12759     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 michael 5052 fi
12761    
12762 michael 5059
12763     : "${CONFIG_STATUS=./config.status}"
12764     ac_write_fail=0
12765 michael 5052 ac_clean_files_save=$ac_clean_files
12766     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12767 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12768     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12769     as_write_fail=0
12770     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12771 michael 5052 #! $SHELL
12772     # Generated by $as_me.
12773     # Run this file to recreate the current configuration.
12774     # Compiler output produced by configure, useful for debugging
12775     # configure, is in config.log if it exists.
12776    
12777     debug=false
12778     ac_cs_recheck=false
12779     ac_cs_silent=false
12780 michael 5059
12781 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
12782 michael 5059 export SHELL
12783     _ASEOF
12784     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12785     ## -------------------- ##
12786     ## M4sh Initialization. ##
12787     ## -------------------- ##
12788 michael 5052
12789 michael 5059 # Be more Bourne compatible
12790     DUALCASE=1; export DUALCASE # for MKS sh
12791     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12792 michael 5052 emulate sh
12793     NULLCMD=:
12794 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12795 michael 5052 # is contrary to our usage. Disable this feature.
12796     alias -g '${1+"$@"}'='"$@"'
12797     setopt NO_GLOB_SUBST
12798     else
12799 michael 5059 case `(set -o) 2>/dev/null` in #(
12800     *posix*) :
12801     set -o posix ;; #(
12802     *) :
12803     ;;
12804     esac
12805 michael 5052 fi
12806    
12807    
12808 michael 5059 as_nl='
12809     '
12810     export as_nl
12811     # Printing a long string crashes Solaris 7 /usr/bin/printf.
12812     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12813     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12814     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12815     # Prefer a ksh shell builtin over an external printf program on Solaris,
12816     # but without wasting forks for bash or zsh.
12817     if test -z "$BASH_VERSION$ZSH_VERSION" \
12818     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12819     as_echo='print -r --'
12820     as_echo_n='print -rn --'
12821     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12822     as_echo='printf %s\n'
12823     as_echo_n='printf %s'
12824     else
12825     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12826     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12827     as_echo_n='/usr/ucb/echo -n'
12828 michael 5052 else
12829 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12830     as_echo_n_body='eval
12831     arg=$1;
12832     case $arg in #(
12833     *"$as_nl"*)
12834     expr "X$arg" : "X\\(.*\\)$as_nl";
12835     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12836     esac;
12837     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12838     '
12839     export as_echo_n_body
12840     as_echo_n='sh -c $as_echo_n_body as_echo'
12841 michael 5052 fi
12842 michael 5059 export as_echo_body
12843     as_echo='sh -c $as_echo_body as_echo'
12844 michael 5052 fi
12845    
12846 michael 5059 # The user is always right.
12847     if test "${PATH_SEPARATOR+set}" != set; then
12848     PATH_SEPARATOR=:
12849     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12850     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12851     PATH_SEPARATOR=';'
12852     }
12853 michael 5052 fi
12854    
12855    
12856     # IFS
12857     # We need space, tab and new line, in precisely that order. Quoting is
12858     # there to prevent editors from complaining about space-tab.
12859     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12860     # splitting by setting IFS to empty value.)
12861     IFS=" "" $as_nl"
12862    
12863     # Find who we are. Look in the path if we contain no directory separator.
12864 michael 5059 as_myself=
12865     case $0 in #((
12866 michael 5052 *[\\/]* ) as_myself=$0 ;;
12867     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868     for as_dir in $PATH
12869     do
12870     IFS=$as_save_IFS
12871     test -z "$as_dir" && as_dir=.
12872 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12873     done
12874 michael 5052 IFS=$as_save_IFS
12875    
12876     ;;
12877     esac
12878     # We did not find ourselves, most probably we were run as `sh COMMAND'
12879     # in which case we are not to be found in the path.
12880     if test "x$as_myself" = x; then
12881     as_myself=$0
12882     fi
12883     if test ! -f "$as_myself"; then
12884 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12885     exit 1
12886 michael 5052 fi
12887    
12888 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
12889     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12890     # suppresses any "Segmentation fault" message there. '((' could
12891     # trigger a bug in pdksh 5.2.14.
12892     for as_var in BASH_ENV ENV MAIL MAILPATH
12893     do eval test x\${$as_var+set} = xset \
12894     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12895 michael 5052 done
12896     PS1='$ '
12897     PS2='> '
12898     PS4='+ '
12899    
12900     # NLS nuisances.
12901 michael 5059 LC_ALL=C
12902     export LC_ALL
12903     LANGUAGE=C
12904     export LANGUAGE
12905    
12906     # CDPATH.
12907     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12908    
12909    
12910     # as_fn_error STATUS ERROR [LINENO LOG_FD]
12911     # ----------------------------------------
12912     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12913     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12914     # script with STATUS, using 1 if that was 0.
12915     as_fn_error ()
12916     {
12917     as_status=$1; test $as_status -eq 0 && as_status=1
12918     if test "$4"; then
12919     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12920     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12921 michael 5052 fi
12922 michael 5059 $as_echo "$as_me: error: $2" >&2
12923     as_fn_exit $as_status
12924     } # as_fn_error
12925 michael 5052
12926 michael 5059
12927     # as_fn_set_status STATUS
12928     # -----------------------
12929     # Set $? to STATUS, without forking.
12930     as_fn_set_status ()
12931     {
12932     return $1
12933     } # as_fn_set_status
12934    
12935     # as_fn_exit STATUS
12936     # -----------------
12937     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12938     as_fn_exit ()
12939     {
12940     set +e
12941     as_fn_set_status $1
12942     exit $1
12943     } # as_fn_exit
12944    
12945     # as_fn_unset VAR
12946     # ---------------
12947     # Portably unset VAR.
12948     as_fn_unset ()
12949     {
12950     { eval $1=; unset $1;}
12951     }
12952     as_unset=as_fn_unset
12953     # as_fn_append VAR VALUE
12954     # ----------------------
12955     # Append the text in VALUE to the end of the definition contained in VAR. Take
12956     # advantage of any shell optimizations that allow amortized linear growth over
12957     # repeated appends, instead of the typical quadratic growth present in naive
12958     # implementations.
12959     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12960     eval 'as_fn_append ()
12961     {
12962     eval $1+=\$2
12963     }'
12964     else
12965     as_fn_append ()
12966     {
12967     eval $1=\$$1\$2
12968     }
12969     fi # as_fn_append
12970    
12971     # as_fn_arith ARG...
12972     # ------------------
12973     # Perform arithmetic evaluation on the ARGs, and store the result in the
12974     # global $as_val. Take advantage of shells that can avoid forks. The arguments
12975     # must be portable across $(()) and expr.
12976     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12977     eval 'as_fn_arith ()
12978     {
12979     as_val=$(( $* ))
12980     }'
12981     else
12982     as_fn_arith ()
12983     {
12984     as_val=`expr "$@" || test $? -eq 1`
12985     }
12986     fi # as_fn_arith
12987    
12988    
12989 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
12990     test "X`expr 00001 : '.*\(...\)'`" = X001; then
12991     as_expr=expr
12992     else
12993     as_expr=false
12994     fi
12995    
12996     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12997     as_basename=basename
12998     else
12999     as_basename=false
13000     fi
13001    
13002 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13003     as_dirname=dirname
13004     else
13005     as_dirname=false
13006     fi
13007 michael 5052
13008     as_me=`$as_basename -- "$0" ||
13009     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13010     X"$0" : 'X\(//\)$' \| \
13011     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13012 michael 5059 $as_echo X/"$0" |
13013 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13014     s//\1/
13015     q
13016     }
13017     /^X\/\(\/\/\)$/{
13018     s//\1/
13019     q
13020     }
13021     /^X\/\(\/\).*/{
13022     s//\1/
13023     q
13024     }
13025     s/.*/./; q'`
13026    
13027 michael 5059 # Avoid depending upon Character Ranges.
13028     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13029     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13030     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13031     as_cr_digits='0123456789'
13032     as_cr_alnum=$as_cr_Letters$as_cr_digits
13033 michael 5052
13034     ECHO_C= ECHO_N= ECHO_T=
13035 michael 5059 case `echo -n x` in #(((((
13036 michael 5052 -n*)
13037 michael 5059 case `echo 'xy\c'` in
13038 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13039 michael 5059 xy) ECHO_C='\c';;
13040     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13041     ECHO_T=' ';;
13042 michael 5052 esac;;
13043     *)
13044     ECHO_N='-n';;
13045     esac
13046    
13047     rm -f conf$$ conf$$.exe conf$$.file
13048     if test -d conf$$.dir; then
13049     rm -f conf$$.dir/conf$$.file
13050     else
13051     rm -f conf$$.dir
13052 michael 5059 mkdir conf$$.dir 2>/dev/null
13053 michael 5052 fi
13054 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13055     if ln -s conf$$.file conf$$ 2>/dev/null; then
13056     as_ln_s='ln -s'
13057     # ... but there are two gotchas:
13058     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13059     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13060     # In both cases, we have to default to `cp -pR'.
13061     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13062     as_ln_s='cp -pR'
13063     elif ln conf$$.file conf$$ 2>/dev/null; then
13064     as_ln_s=ln
13065     else
13066     as_ln_s='cp -pR'
13067     fi
13068 michael 5052 else
13069 michael 5059 as_ln_s='cp -pR'
13070 michael 5052 fi
13071     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13072     rmdir conf$$.dir 2>/dev/null
13073    
13074 michael 5059
13075     # as_fn_mkdir_p
13076     # -------------
13077     # Create "$as_dir" as a directory, including parents if necessary.
13078     as_fn_mkdir_p ()
13079     {
13080    
13081     case $as_dir in #(
13082     -*) as_dir=./$as_dir;;
13083     esac
13084     test -d "$as_dir" || eval $as_mkdir_p || {
13085     as_dirs=
13086     while :; do
13087     case $as_dir in #(
13088     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13089     *) as_qdir=$as_dir;;
13090     esac
13091     as_dirs="'$as_qdir' $as_dirs"
13092     as_dir=`$as_dirname -- "$as_dir" ||
13093     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13094     X"$as_dir" : 'X\(//\)[^/]' \| \
13095     X"$as_dir" : 'X\(//\)$' \| \
13096     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13097     $as_echo X"$as_dir" |
13098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13099     s//\1/
13100     q
13101     }
13102     /^X\(\/\/\)[^/].*/{
13103     s//\1/
13104     q
13105     }
13106     /^X\(\/\/\)$/{
13107     s//\1/
13108     q
13109     }
13110     /^X\(\/\).*/{
13111     s//\1/
13112     q
13113     }
13114     s/.*/./; q'`
13115     test -d "$as_dir" && break
13116     done
13117     test -z "$as_dirs" || eval "mkdir $as_dirs"
13118     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13119    
13120    
13121     } # as_fn_mkdir_p
13122 michael 5052 if mkdir -p . 2>/dev/null; then
13123 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13124 michael 5052 else
13125     test -d ./-p && rmdir ./-p
13126     as_mkdir_p=false
13127     fi
13128    
13129    
13130 michael 5059 # as_fn_executable_p FILE
13131     # -----------------------
13132     # Test if FILE is an executable regular file.
13133     as_fn_executable_p ()
13134     {
13135     test -f "$1" && test -x "$1"
13136     } # as_fn_executable_p
13137     as_test_x='test -x'
13138     as_executable_p=as_fn_executable_p
13139    
13140 michael 5052 # Sed expression to map a string onto a valid CPP name.
13141     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13142    
13143     # Sed expression to map a string onto a valid variable name.
13144     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13145    
13146    
13147     exec 6>&1
13148 michael 5059 ## ----------------------------------- ##
13149     ## Main body of $CONFIG_STATUS script. ##
13150     ## ----------------------------------- ##
13151     _ASEOF
13152     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13153 michael 5052
13154 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155     # Save the log message, to keep $0 and so on meaningful, and to
13156 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13157     # values after options handling.
13158     ac_log="
13159 michael 5266 This file was extended by hopm $as_me TRUNK, which was
13160 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13161 michael 5052
13162     CONFIG_FILES = $CONFIG_FILES
13163     CONFIG_HEADERS = $CONFIG_HEADERS
13164     CONFIG_LINKS = $CONFIG_LINKS
13165     CONFIG_COMMANDS = $CONFIG_COMMANDS
13166     $ $0 $@
13167    
13168     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13169     "
13170    
13171     _ACEOF
13172    
13173 michael 5059 case $ac_config_files in *"
13174     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13175     esac
13176    
13177     case $ac_config_headers in *"
13178     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13179     esac
13180    
13181    
13182     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 michael 5052 # Files that config.status was made for.
13184     config_files="$ac_config_files"
13185     config_headers="$ac_config_headers"
13186     config_commands="$ac_config_commands"
13187    
13188     _ACEOF
13189    
13190 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191 michael 5052 ac_cs_usage="\
13192 michael 5059 \`$as_me' instantiates files and other configuration actions
13193     from templates according to the current configuration. Unless the files
13194     and actions are specified as TAGs, all are instantiated by default.
13195 michael 5052
13196 michael 5059 Usage: $0 [OPTION]... [TAG]...
13197 michael 5052
13198     -h, --help print this help, then exit
13199 michael 5059 -V, --version print version number and configuration settings, then exit
13200     --config print configuration, then exit
13201     -q, --quiet, --silent
13202     do not print progress messages
13203 michael 5052 -d, --debug don't remove temporary files
13204     --recheck update $as_me by reconfiguring in the same conditions
13205 michael 5059 --file=FILE[:TEMPLATE]
13206     instantiate the configuration file FILE
13207     --header=FILE[:TEMPLATE]
13208     instantiate the configuration header FILE
13209 michael 5052
13210     Configuration files:
13211     $config_files
13212    
13213     Configuration headers:
13214     $config_headers
13215    
13216     Configuration commands:
13217     $config_commands
13218    
13219 michael 5266 Report bugs to <bugs@ircd-hybrid.org>."
13220 michael 5052
13221     _ACEOF
13222 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13223     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13224 michael 5052 ac_cs_version="\\
13225 michael 5266 hopm config.status TRUNK
13226 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13227     with options \\"\$ac_cs_config\\"
13228 michael 5052
13229 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13230 michael 5052 This config.status script is free software; the Free Software Foundation
13231     gives unlimited permission to copy, distribute and modify it."
13232    
13233     ac_pwd='$ac_pwd'
13234     srcdir='$srcdir'
13235     INSTALL='$INSTALL'
13236 michael 5059 MKDIR_P='$MKDIR_P'
13237     AWK='$AWK'
13238     test -n "\$AWK" || AWK=awk
13239 michael 5052 _ACEOF
13240    
13241 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13242     # The default lists apply if the user does not specify any file.
13243 michael 5052 ac_need_defaults=:
13244     while test $# != 0
13245     do
13246     case $1 in
13247 michael 5059 --*=?*)
13248 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13249     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13250     ac_shift=:
13251     ;;
13252 michael 5059 --*=)
13253     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13254     ac_optarg=
13255     ac_shift=:
13256     ;;
13257 michael 5052 *)
13258     ac_option=$1
13259     ac_optarg=$2
13260     ac_shift=shift
13261     ;;
13262     esac
13263    
13264     case $ac_option in
13265     # Handling of the options.
13266     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13267     ac_cs_recheck=: ;;
13268     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13269 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13270     --config | --confi | --conf | --con | --co | --c )
13271     $as_echo "$ac_cs_config"; exit ;;
13272 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13273     debug=: ;;
13274     --file | --fil | --fi | --f )
13275     $ac_shift
13276 michael 5059 case $ac_optarg in
13277     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13278     '') as_fn_error $? "missing file argument" ;;
13279     esac
13280     as_fn_append CONFIG_FILES " '$ac_optarg'"
13281 michael 5052 ac_need_defaults=false;;
13282     --header | --heade | --head | --hea )
13283     $ac_shift
13284 michael 5059 case $ac_optarg in
13285     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13286     esac
13287     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13288 michael 5052 ac_need_defaults=false;;
13289     --he | --h)
13290     # Conflict between --help and --header
13291 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13292     Try \`$0 --help' for more information.";;
13293 michael 5052 --help | --hel | -h )
13294 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13295 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13296     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13297     ac_cs_silent=: ;;
13298    
13299     # This is an error.
13300 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13301     Try \`$0 --help' for more information." ;;
13302 michael 5052
13303 michael 5059 *) as_fn_append ac_config_targets " $1"
13304 michael 5052 ac_need_defaults=false ;;
13305    
13306     esac
13307     shift
13308     done
13309    
13310     ac_configure_extra_args=
13311    
13312     if $ac_cs_silent; then
13313     exec 6>/dev/null
13314     ac_configure_extra_args="$ac_configure_extra_args --silent"
13315     fi
13316    
13317     _ACEOF
13318 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13319 michael 5052 if \$ac_cs_recheck; then
13320 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13321     shift
13322     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13323     CONFIG_SHELL='$SHELL'
13324 michael 5052 export CONFIG_SHELL
13325 michael 5059 exec "\$@"
13326 michael 5052 fi
13327    
13328     _ACEOF
13329 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330 michael 5052 exec 5>>config.log
13331     {
13332     echo
13333     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13334     ## Running $as_me. ##
13335     _ASBOX
13336 michael 5059 $as_echo "$ac_log"
13337 michael 5052 } >&5
13338    
13339     _ACEOF
13340 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341 michael 5052 #
13342     # INIT-COMMANDS
13343     #
13344     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13345    
13346 michael 5059
13347     # The HP-UX ksh and POSIX shell print the target directory to stdout
13348     # if CDPATH is set.
13349     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13350    
13351     sed_quote_subst='$sed_quote_subst'
13352     double_quote_subst='$double_quote_subst'
13353     delay_variable_subst='$delay_variable_subst'
13354     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13355     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13356     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13357     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13358     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13359     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13360     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13361     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13362     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13363     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13364     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13365     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13366     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13367     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13368     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13369     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13370     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13371     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13372     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13373     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13374     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13375     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13376     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13377     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13378     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13379     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13380     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13381     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13382     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13383     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13384     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13385     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13386     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13387     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13388     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13389     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13390     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13391     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13392     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13393     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13394     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13395     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13396     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13397     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13398     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13399     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13400     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13401     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13402     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13403     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13404     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13405     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13406     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13407     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13408     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13409     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13410     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13411     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13412     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"`'
13413     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13414     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13415     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13416     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13417     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13418     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13419     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13420     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13421     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13422     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13423     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13424     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13425     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13426     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13427     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13428     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13429     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13430     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13431     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13432     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13433     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13434     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13435     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13436     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13437     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13438     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13439     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13440     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13441     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13442     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13443     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13444     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13445     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13446     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13447     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13448     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13449     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13450     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13451     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13452     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13453     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13454     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13455     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13456     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13457     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13458     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13459     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13460     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13461     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13462     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13463     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13464     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13465     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13466     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13467     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13468     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13469     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13470     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13471     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13472     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13473     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13474     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13475     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13476     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13477     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13478     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13479     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13480     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13481     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13482     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13483     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13484     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13485     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13486     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13487     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13488    
13489     LTCC='$LTCC'
13490     LTCFLAGS='$LTCFLAGS'
13491     compiler='$compiler_DEFAULT'
13492    
13493     # A function that is used when there is no print builtin or printf.
13494     func_fallback_echo ()
13495     {
13496     eval 'cat <<_LTECHO_EOF
13497     \$1
13498     _LTECHO_EOF'
13499     }
13500    
13501     # Quote evaled strings.
13502     for var in SHELL \
13503     ECHO \
13504     PATH_SEPARATOR \
13505     SED \
13506     GREP \
13507     EGREP \
13508     FGREP \
13509     LD \
13510     NM \
13511     LN_S \
13512     lt_SP2NL \
13513     lt_NL2SP \
13514     reload_flag \
13515     OBJDUMP \
13516     deplibs_check_method \
13517     file_magic_cmd \
13518     file_magic_glob \
13519     want_nocaseglob \
13520     DLLTOOL \
13521     sharedlib_from_linklib_cmd \
13522     AR \
13523     AR_FLAGS \
13524     archiver_list_spec \
13525     STRIP \
13526     RANLIB \
13527     CC \
13528     CFLAGS \
13529     compiler \
13530     lt_cv_sys_global_symbol_pipe \
13531     lt_cv_sys_global_symbol_to_cdecl \
13532     lt_cv_sys_global_symbol_to_import \
13533     lt_cv_sys_global_symbol_to_c_name_address \
13534     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13535     lt_cv_nm_interface \
13536     nm_file_list_spec \
13537     lt_cv_truncate_bin \
13538     lt_prog_compiler_no_builtin_flag \
13539     lt_prog_compiler_pic \
13540     lt_prog_compiler_wl \
13541     lt_prog_compiler_static \
13542     lt_cv_prog_compiler_c_o \
13543     need_locks \
13544     MANIFEST_TOOL \
13545     DSYMUTIL \
13546     NMEDIT \
13547     LIPO \
13548     OTOOL \
13549     OTOOL64 \
13550     shrext_cmds \
13551     export_dynamic_flag_spec \
13552     whole_archive_flag_spec \
13553     compiler_needs_object \
13554     with_gnu_ld \
13555     allow_undefined_flag \
13556     no_undefined_flag \
13557     hardcode_libdir_flag_spec \
13558     hardcode_libdir_separator \
13559     exclude_expsyms \
13560     include_expsyms \
13561     file_list_spec \
13562     variables_saved_for_relink \
13563     libname_spec \
13564     library_names_spec \
13565     soname_spec \
13566     install_override_mode \
13567     finish_eval \
13568     old_striplib \
13569     striplib; do
13570     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13571     *[\\\\\\\`\\"\\\$]*)
13572     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13573     ;;
13574     *)
13575     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13576     ;;
13577     esac
13578     done
13579    
13580     # Double-quote double-evaled strings.
13581     for var in reload_cmds \
13582     old_postinstall_cmds \
13583     old_postuninstall_cmds \
13584     old_archive_cmds \
13585     extract_expsyms_cmds \
13586     old_archive_from_new_cmds \
13587     old_archive_from_expsyms_cmds \
13588     archive_cmds \
13589     archive_expsym_cmds \
13590     module_cmds \
13591     module_expsym_cmds \
13592     export_symbols_cmds \
13593     prelink_cmds \
13594     postlink_cmds \
13595     postinstall_cmds \
13596     postuninstall_cmds \
13597     finish_cmds \
13598     sys_lib_search_path_spec \
13599     sys_lib_dlsearch_path_spec; do
13600     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13601     *[\\\\\\\`\\"\\\$]*)
13602     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13603     ;;
13604     *)
13605     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13606     ;;
13607     esac
13608     done
13609    
13610     ac_aux_dir='$ac_aux_dir'
13611    
13612     # See if we are running on zsh, and set the options that allow our
13613     # commands through without removal of \ escapes INIT.
13614     if test -n "\${ZSH_VERSION+set}"; then
13615     setopt NO_GLOB_SUBST
13616     fi
13617    
13618    
13619     PACKAGE='$PACKAGE'
13620     VERSION='$VERSION'
13621     RM='$RM'
13622     ofile='$ofile'
13623    
13624    
13625    
13626    
13627 michael 5052 _ACEOF
13628    
13629 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13630 michael 5052
13631     # Handling of arguments.
13632     for ac_config_target in $ac_config_targets
13633     do
13634     case $ac_config_target in
13635     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13636     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13637 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13638 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13639 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13640 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13641 michael 5260 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13642     "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13643 michael 5052
13644 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13645 michael 5052 esac
13646     done
13647    
13648    
13649     # If the user did not use the arguments to specify the items to instantiate,
13650     # then the envvar interface is used. Set only those that are not.
13651     # We use the long form for the default assignment because of an extremely
13652     # bizarre bug on SunOS 4.1.3.
13653     if $ac_need_defaults; then
13654     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13655     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13656     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13657     fi
13658    
13659     # Have a temporary directory for convenience. Make it in the build tree
13660     # simply because there is no reason against having it here, and in addition,
13661     # creating and moving files from /tmp can sometimes cause problems.
13662     # Hook for its removal unless debugging.
13663     # Note that there is a small window in which the directory will not be cleaned:
13664     # after its creation but before its name has been assigned to `$tmp'.
13665     $debug ||
13666     {
13667 michael 5059 tmp= ac_tmp=
13668 michael 5052 trap 'exit_status=$?
13669 michael 5059 : "${ac_tmp:=$tmp}"
13670     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13671 michael 5052 ' 0
13672 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
13673 michael 5052 }
13674     # Create a (secure) tmp directory for tmp files.
13675    
13676     {
13677     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13678 michael 5059 test -d "$tmp"
13679 michael 5052 } ||
13680     {
13681     tmp=./conf$$-$RANDOM
13682     (umask 077 && mkdir "$tmp")
13683 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13684     ac_tmp=$tmp
13685 michael 5052
13686 michael 5059 # Set up the scripts for CONFIG_FILES section.
13687     # No need to generate them if there are no CONFIG_FILES.
13688     # This happens for instance with `./config.status config.h'.
13689 michael 5052 if test -n "$CONFIG_FILES"; then
13690    
13691 michael 5059
13692     ac_cr=`echo X | tr X '\015'`
13693     # On cygwin, bash can eat \r inside `` if the user requested igncr.
13694     # But we know of no other shell where ac_cr would be empty at this
13695     # point, so we can use a bashism as a fallback.
13696     if test "x$ac_cr" = x; then
13697     eval ac_cr=\$\'\\r\'
13698     fi
13699     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13700     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13701     ac_cs_awk_cr='\\r'
13702     else
13703     ac_cs_awk_cr=$ac_cr
13704     fi
13705    
13706     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13707 michael 5052 _ACEOF
13708    
13709    
13710 michael 5059 {
13711     echo "cat >conf$$subs.awk <<_ACEOF" &&
13712     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13713     echo "_ACEOF"
13714     } >conf$$subs.sh ||
13715     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13716     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13717 michael 5052 ac_delim='%!_!# '
13718     for ac_last_try in false false false false false :; do
13719 michael 5059 . ./conf$$subs.sh ||
13720     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13721 michael 5052
13722 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13723     if test $ac_delim_n = $ac_delim_num; then
13724 michael 5052 break
13725     elif $ac_last_try; then
13726 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727 michael 5052 else
13728     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13729     fi
13730     done
13731 michael 5059 rm -f conf$$subs.sh
13732 michael 5052
13733 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13734     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13735     _ACEOF
13736     sed -n '
13737     h
13738     s/^/S["/; s/!.*/"]=/
13739     p
13740     g
13741     s/^[^!]*!//
13742     :repl
13743     t repl
13744     s/'"$ac_delim"'$//
13745     t delim
13746     :nl
13747     h
13748     s/\(.\{148\}\)..*/\1/
13749     t more1
13750     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13751     p
13752     n
13753     b repl
13754     :more1
13755     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13756     p
13757     g
13758     s/.\{148\}//
13759     t nl
13760     :delim
13761     h
13762     s/\(.\{148\}\)..*/\1/
13763     t more2
13764     s/["\\]/\\&/g; s/^/"/; s/$/"/
13765     p
13766     b
13767     :more2
13768     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13769     p
13770     g
13771     s/.\{148\}//
13772     t delim
13773     ' <conf$$subs.awk | sed '
13774     /^[^""]/{
13775     N
13776     s/\n//
13777     }
13778     ' >>$CONFIG_STATUS || ac_write_fail=1
13779     rm -f conf$$subs.awk
13780     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781     _ACAWK
13782     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13783     for (key in S) S_is_set[key] = 1
13784     FS = ""
13785 michael 5052
13786 michael 5059 }
13787     {
13788     line = $ 0
13789     nfields = split(line, field, "@")
13790     substed = 0
13791     len = length(field[1])
13792     for (i = 2; i < nfields; i++) {
13793     key = field[i]
13794     keylen = length(key)
13795     if (S_is_set[key]) {
13796     value = S[key]
13797     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13798     len += length(value) + length(field[++i])
13799     substed = 1
13800     } else
13801     len += 1 + keylen
13802     }
13803    
13804     print line
13805     }
13806    
13807     _ACAWK
13808 michael 5052 _ACEOF
13809 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13810     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13811     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13812     else
13813     cat
13814     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13815     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13816 michael 5052 _ACEOF
13817    
13818 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13819     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13820     # trailing colons and then remove the whole line if VPATH becomes empty
13821     # (actually we leave an empty line to preserve line numbers).
13822     if test "x$srcdir" = x.; then
13823     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13824     h
13825     s///
13826     s/^/:/
13827     s/[ ]*$/:/
13828     s/:\$(srcdir):/:/g
13829     s/:\${srcdir}:/:/g
13830     s/:@srcdir@:/:/g
13831     s/^:*//
13832     s/:*$//
13833     x
13834     s/\(=[ ]*\).*/\1/
13835     G
13836     s/\n//
13837     s/^[^=]*=[ ]*$//
13838     }'
13839     fi
13840 michael 5052
13841 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13842     fi # test -n "$CONFIG_FILES"
13843    
13844     # Set up the scripts for CONFIG_HEADERS section.
13845     # No need to generate them if there are no CONFIG_HEADERS.
13846     # This happens for instance with `./config.status Makefile'.
13847     if test -n "$CONFIG_HEADERS"; then
13848     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13849     BEGIN {
13850 michael 5052 _ACEOF
13851    
13852 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
13853     # here-document in config.status, that substitutes the proper values into
13854     # config.h.in to produce config.h.
13855    
13856     # Create a delimiter string that does not exist in confdefs.h, to ease
13857     # handling of long lines.
13858     ac_delim='%!_!# '
13859     for ac_last_try in false false :; do
13860     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13861     if test -z "$ac_tt"; then
13862 michael 5052 break
13863     elif $ac_last_try; then
13864 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13865 michael 5052 else
13866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13867     fi
13868     done
13869    
13870 michael 5059 # For the awk script, D is an array of macro values keyed by name,
13871     # likewise P contains macro parameters if any. Preserve backslash
13872     # newline sequences.
13873 michael 5052
13874 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13875     sed -n '
13876     s/.\{148\}/&'"$ac_delim"'/g
13877     t rset
13878     :rset
13879     s/^[ ]*#[ ]*define[ ][ ]*/ /
13880     t def
13881     d
13882     :def
13883     s/\\$//
13884     t bsnl
13885     s/["\\]/\\&/g
13886     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13887     D["\1"]=" \3"/p
13888     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13889     d
13890     :bsnl
13891     s/["\\]/\\&/g
13892     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13893     D["\1"]=" \3\\\\\\n"\\/p
13894     t cont
13895     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13896     t cont
13897     d
13898     :cont
13899     n
13900     s/.\{148\}/&'"$ac_delim"'/g
13901     t clear
13902     :clear
13903     s/\\$//
13904     t bsnlc
13905     s/["\\]/\\&/g; s/^/"/; s/$/"/p
13906     d
13907     :bsnlc
13908     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13909     b cont
13910     ' <confdefs.h | sed '
13911     s/'"$ac_delim"'/"\\\
13912     "/g' >>$CONFIG_STATUS || ac_write_fail=1
13913    
13914     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13915     for (key in D) D_is_set[key] = 1
13916     FS = ""
13917     }
13918     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13919     line = \$ 0
13920     split(line, arg, " ")
13921     if (arg[1] == "#") {
13922     defundef = arg[2]
13923     mac1 = arg[3]
13924     } else {
13925     defundef = substr(arg[1], 2)
13926     mac1 = arg[2]
13927     }
13928     split(mac1, mac2, "(") #)
13929     macro = mac2[1]
13930     prefix = substr(line, 1, index(line, defundef) - 1)
13931     if (D_is_set[macro]) {
13932     # Preserve the white space surrounding the "#".
13933     print prefix "define", macro P[macro] D[macro]
13934     next
13935     } else {
13936     # Replace #undef with comments. This is necessary, for example,
13937     # in the case of _POSIX_SOURCE, which is predefined and required
13938     # on some systems where configure will not decide to define it.
13939     if (defundef == "undef") {
13940     print "/*", prefix defundef, macro, "*/"
13941     next
13942     }
13943     }
13944     }
13945     { print }
13946     _ACAWK
13947 michael 5052 _ACEOF
13948 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13950     fi # test -n "$CONFIG_HEADERS"
13951 michael 5052
13952    
13953 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13954     shift
13955     for ac_tag
13956 michael 5052 do
13957     case $ac_tag in
13958     :[FHLC]) ac_mode=$ac_tag; continue;;
13959     esac
13960     case $ac_mode$ac_tag in
13961     :[FHL]*:*);;
13962 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13963 michael 5052 :[FH]-) ac_tag=-:-;;
13964     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13965     esac
13966     ac_save_IFS=$IFS
13967     IFS=:
13968     set x $ac_tag
13969     IFS=$ac_save_IFS
13970     shift
13971     ac_file=$1
13972     shift
13973    
13974     case $ac_mode in
13975     :L) ac_source=$1;;
13976     :[FH])
13977     ac_file_inputs=
13978     for ac_f
13979     do
13980     case $ac_f in
13981 michael 5059 -) ac_f="$ac_tmp/stdin";;
13982 michael 5052 *) # Look for the file first in the build tree, then in the source tree
13983     # (if the path is not absolute). The absolute path cannot be DOS-style,
13984     # because $ac_f cannot contain `:'.
13985     test -f "$ac_f" ||
13986     case $ac_f in
13987     [\\/$]*) false;;
13988     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13989     esac ||
13990 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13991 michael 5052 esac
13992 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13993     as_fn_append ac_file_inputs " '$ac_f'"
13994 michael 5052 done
13995    
13996     # Let's still pretend it is `configure' which instantiates (i.e., don't
13997     # use $as_me), people would be surprised to read:
13998     # /* config.h. Generated by config.status. */
13999 michael 5059 configure_input='Generated from '`
14000     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14001     `' by configure.'
14002 michael 5052 if test x"$ac_file" != x-; then
14003     configure_input="$ac_file. $configure_input"
14004 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14005     $as_echo "$as_me: creating $ac_file" >&6;}
14006 michael 5052 fi
14007 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14008     case $configure_input in #(
14009     *\&* | *\|* | *\\* )
14010     ac_sed_conf_input=`$as_echo "$configure_input" |
14011     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14012     *) ac_sed_conf_input=$configure_input;;
14013     esac
14014 michael 5052
14015     case $ac_tag in
14016 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14017     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14018 michael 5052 esac
14019     ;;
14020     esac
14021    
14022     ac_dir=`$as_dirname -- "$ac_file" ||
14023     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14024     X"$ac_file" : 'X\(//\)[^/]' \| \
14025     X"$ac_file" : 'X\(//\)$' \| \
14026     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14027 michael 5059 $as_echo X"$ac_file" |
14028 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14029     s//\1/
14030     q
14031     }
14032     /^X\(\/\/\)[^/].*/{
14033     s//\1/
14034     q
14035     }
14036     /^X\(\/\/\)$/{
14037     s//\1/
14038     q
14039     }
14040     /^X\(\/\).*/{
14041     s//\1/
14042     q
14043     }
14044     s/.*/./; q'`
14045 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14046 michael 5052 ac_builddir=.
14047    
14048     case "$ac_dir" in
14049     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14050     *)
14051 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14052 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14053 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14054 michael 5052 case $ac_top_builddir_sub in
14055     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14056     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14057     esac ;;
14058     esac
14059     ac_abs_top_builddir=$ac_pwd
14060     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14061     # for backward compatibility:
14062     ac_top_builddir=$ac_top_build_prefix
14063    
14064     case $srcdir in
14065     .) # We are building in place.
14066     ac_srcdir=.
14067     ac_top_srcdir=$ac_top_builddir_sub
14068     ac_abs_top_srcdir=$ac_pwd ;;
14069     [\\/]* | ?:[\\/]* ) # Absolute name.
14070     ac_srcdir=$srcdir$ac_dir_suffix;
14071     ac_top_srcdir=$srcdir
14072     ac_abs_top_srcdir=$srcdir ;;
14073     *) # Relative name.
14074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14075     ac_top_srcdir=$ac_top_build_prefix$srcdir
14076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14077     esac
14078     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14079    
14080    
14081     case $ac_mode in
14082     :F)
14083     #
14084     # CONFIG_FILE
14085     #
14086    
14087     case $INSTALL in
14088     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14089     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14090     esac
14091 michael 5059 ac_MKDIR_P=$MKDIR_P
14092     case $MKDIR_P in
14093     [\\/$]* | ?:[\\/]* ) ;;
14094     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14095     esac
14096 michael 5052 _ACEOF
14097    
14098 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14099 michael 5052 # If the template does not know about datarootdir, expand it.
14100     # FIXME: This hack should be removed a few years after 2.60.
14101     ac_datarootdir_hack=; ac_datarootdir_seen=
14102 michael 5059 ac_sed_dataroot='
14103     /datarootdir/ {
14104 michael 5052 p
14105     q
14106     }
14107     /@datadir@/p
14108     /@docdir@/p
14109     /@infodir@/p
14110     /@localedir@/p
14111 michael 5059 /@mandir@/p'
14112     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14113 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14114     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14115 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14116     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14117 michael 5052 _ACEOF
14118 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119 michael 5052 ac_datarootdir_hack='
14120     s&@datadir@&$datadir&g
14121     s&@docdir@&$docdir&g
14122     s&@infodir@&$infodir&g
14123     s&@localedir@&$localedir&g
14124     s&@mandir@&$mandir&g
14125 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14126 michael 5052 esac
14127     _ACEOF
14128    
14129     # Neutralize VPATH when `$srcdir' = `.'.
14130     # Shell code in configure.ac might set extrasub.
14131     # FIXME: do we really want to maintain this feature?
14132 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133     ac_sed_extra="$ac_vpsub
14134 michael 5052 $extrasub
14135     _ACEOF
14136 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 michael 5052 :t
14138     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14139 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14140 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14141 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14142 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14143     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14144     s&@top_srcdir@&$ac_top_srcdir&;t t
14145     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14146     s&@builddir@&$ac_builddir&;t t
14147     s&@abs_builddir@&$ac_abs_builddir&;t t
14148     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14149     s&@INSTALL@&$ac_INSTALL&;t t
14150 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14151 michael 5052 $ac_datarootdir_hack
14152 michael 5059 "
14153     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14154     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14155 michael 5052
14156     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14157 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14158     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14159     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14161     which seems to be undefined. Please make sure it is defined" >&5
14162     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14163     which seems to be undefined. Please make sure it is defined" >&2;}
14164 michael 5052
14165 michael 5059 rm -f "$ac_tmp/stdin"
14166 michael 5052 case $ac_file in
14167 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14168     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14169     esac \
14170     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14171 michael 5052 ;;
14172     :H)
14173     #
14174     # CONFIG_HEADER
14175     #
14176     if test x"$ac_file" != x-; then
14177 michael 5059 {
14178     $as_echo "/* $configure_input */" \
14179     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14180     } >"$ac_tmp/config.h" \
14181     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14182     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14183     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14184     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14185 michael 5052 else
14186 michael 5059 rm -f "$ac_file"
14187     mv "$ac_tmp/config.h" "$ac_file" \
14188     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189 michael 5052 fi
14190     else
14191 michael 5059 $as_echo "/* $configure_input */" \
14192     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14193     || as_fn_error $? "could not create -" "$LINENO" 5
14194 michael 5052 fi
14195 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14196     _am_arg="$ac_file"
14197 michael 5052 _am_stamp_count=1
14198     for _am_header in $config_headers :; do
14199     case $_am_header in
14200 michael 5059 $_am_arg | $_am_arg:* )
14201 michael 5052 break ;;
14202     * )
14203     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14204     esac
14205     done
14206 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14207     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14208     X"$_am_arg" : 'X\(//\)[^/]' \| \
14209     X"$_am_arg" : 'X\(//\)$' \| \
14210     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14211     $as_echo X"$_am_arg" |
14212 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14213     s//\1/
14214     q
14215     }
14216     /^X\(\/\/\)[^/].*/{
14217     s//\1/
14218     q
14219     }
14220     /^X\(\/\/\)$/{
14221     s//\1/
14222     q
14223     }
14224     /^X\(\/\).*/{
14225     s//\1/
14226     q
14227     }
14228     s/.*/./; q'`/stamp-h$_am_stamp_count
14229     ;;
14230    
14231 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14232     $as_echo "$as_me: executing $ac_file commands" >&6;}
14233 michael 5052 ;;
14234     esac
14235    
14236    
14237     case $ac_file$ac_mode in
14238 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14239     # Older Autoconf quotes --file arguments for eval, but not when files
14240     # are listed without --file. Let's play safe and only enable the eval
14241     # if we detect the quoting.
14242     case $CONFIG_FILES in
14243     *\'*) eval set x "$CONFIG_FILES" ;;
14244     *) set x $CONFIG_FILES ;;
14245     esac
14246     shift
14247     for mf
14248     do
14249     # Strip MF so we end up with the name of the file.
14250     mf=`echo "$mf" | sed -e 's/:.*$//'`
14251     # Check whether this is an Automake generated Makefile or not.
14252     # We used to match only the files named 'Makefile.in', but
14253     # some people rename them; so instead we look at the file content.
14254     # Grep'ing the first line is not enough: some people post-process
14255     # each Makefile.in and add a new line on top of each file to say so.
14256     # Grep'ing the whole file is not good either: AIX grep has a line
14257     # limit of 2048, but all sed's we know have understand at least 4000.
14258     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14259     dirpart=`$as_dirname -- "$mf" ||
14260 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14261     X"$mf" : 'X\(//\)[^/]' \| \
14262     X"$mf" : 'X\(//\)$' \| \
14263     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14264 michael 5059 $as_echo X"$mf" |
14265 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14266     s//\1/
14267     q
14268     }
14269     /^X\(\/\/\)[^/].*/{
14270     s//\1/
14271     q
14272     }
14273     /^X\(\/\/\)$/{
14274     s//\1/
14275     q
14276     }
14277     /^X\(\/\).*/{
14278     s//\1/
14279     q
14280     }
14281     s/.*/./; q'`
14282 michael 5059 else
14283     continue
14284     fi
14285     # Extract the definition of DEPDIR, am__include, and am__quote
14286     # from the Makefile without running 'make'.
14287     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14288     test -z "$DEPDIR" && continue
14289     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14290     test -z "$am__include" && continue
14291     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14292     # Find all dependency output files, they are included files with
14293     # $(DEPDIR) in their names. We invoke sed twice because it is the
14294     # simplest approach to changing $(DEPDIR) to its actual value in the
14295     # expansion.
14296     for file in `sed -n "
14297     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14298     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14299     # Make sure the directory exists.
14300     test -f "$dirpart/$file" && continue
14301     fdir=`$as_dirname -- "$file" ||
14302 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14303     X"$file" : 'X\(//\)[^/]' \| \
14304     X"$file" : 'X\(//\)$' \| \
14305     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14306 michael 5059 $as_echo X"$file" |
14307 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14308     s//\1/
14309     q
14310     }
14311     /^X\(\/\/\)[^/].*/{
14312     s//\1/
14313     q
14314     }
14315     /^X\(\/\/\)$/{
14316     s//\1/
14317     q
14318     }
14319     /^X\(\/\).*/{
14320     s//\1/
14321     q
14322     }
14323     s/.*/./; q'`
14324 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14325     # echo "creating $dirpart/$file"
14326     echo '# dummy' > "$dirpart/$file"
14327 michael 5052 done
14328     done
14329 michael 5059 }
14330 michael 5052 ;;
14331 michael 5059 "libtool":C)
14332 michael 5052
14333 michael 5059 # See if we are running on zsh, and set the options that allow our
14334     # commands through without removal of \ escapes.
14335     if test -n "${ZSH_VERSION+set}"; then
14336     setopt NO_GLOB_SUBST
14337     fi
14338    
14339     cfgfile=${ofile}T
14340     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14341     $RM "$cfgfile"
14342    
14343     cat <<_LT_EOF >> "$cfgfile"
14344     #! $SHELL
14345     # Generated automatically by $as_me ($PACKAGE) $VERSION
14346     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14347     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14348    
14349     # Provide generalized library-building support services.
14350     # Written by Gordon Matzigkeit, 1996
14351    
14352     # Copyright (C) 2014 Free Software Foundation, Inc.
14353     # This is free software; see the source for copying conditions. There is NO
14354     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14355    
14356     # GNU Libtool is free software; you can redistribute it and/or modify
14357     # it under the terms of the GNU General Public License as published by
14358     # the Free Software Foundation; either version 2 of of the License, or
14359     # (at your option) any later version.
14360     #
14361     # As a special exception to the GNU General Public License, if you
14362     # distribute this file as part of a program or library that is built
14363     # using GNU Libtool, you may include this file under the same
14364     # distribution terms that you use for the rest of that program.
14365     #
14366     # GNU Libtool is distributed in the hope that it will be useful, but
14367     # WITHOUT ANY WARRANTY; without even the implied warranty of
14368     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14369     # GNU General Public License for more details.
14370     #
14371     # You should have received a copy of the GNU General Public License
14372     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14373    
14374    
14375     # The names of the tagged configurations supported by this script.
14376     available_tags=''
14377    
14378     # ### BEGIN LIBTOOL CONFIG
14379    
14380     # Which release of libtool.m4 was used?
14381     macro_version=$macro_version
14382     macro_revision=$macro_revision
14383    
14384     # Whether or not to build shared libraries.
14385     build_libtool_libs=$enable_shared
14386    
14387     # Whether or not to build static libraries.
14388     build_old_libs=$enable_static
14389    
14390     # What type of objects to build.
14391     pic_mode=$pic_mode
14392    
14393     # Whether or not to optimize for fast installation.
14394     fast_install=$enable_fast_install
14395    
14396     # Shared archive member basename,for filename based shared library versioning on AIX.
14397     shared_archive_member_spec=$shared_archive_member_spec
14398    
14399     # Shell to use when invoking shell scripts.
14400     SHELL=$lt_SHELL
14401    
14402     # An echo program that protects backslashes.
14403     ECHO=$lt_ECHO
14404    
14405     # The PATH separator for the build system.
14406     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14407    
14408     # The host system.
14409     host_alias=$host_alias
14410     host=$host
14411     host_os=$host_os
14412    
14413     # The build system.
14414     build_alias=$build_alias
14415     build=$build
14416     build_os=$build_os
14417    
14418     # A sed program that does not truncate output.
14419     SED=$lt_SED
14420    
14421     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14422     Xsed="\$SED -e 1s/^X//"
14423    
14424     # A grep program that handles long lines.
14425     GREP=$lt_GREP
14426    
14427     # An ERE matcher.
14428     EGREP=$lt_EGREP
14429    
14430     # A literal string matcher.
14431     FGREP=$lt_FGREP
14432    
14433     # A BSD- or MS-compatible name lister.
14434     NM=$lt_NM
14435    
14436     # Whether we need soft or hard links.
14437     LN_S=$lt_LN_S
14438    
14439     # What is the maximum length of a command?
14440     max_cmd_len=$max_cmd_len
14441    
14442     # Object file suffix (normally "o").
14443     objext=$ac_objext
14444    
14445     # Executable file suffix (normally "").
14446     exeext=$exeext
14447    
14448     # whether the shell understands "unset".
14449     lt_unset=$lt_unset
14450    
14451     # turn spaces into newlines.
14452     SP2NL=$lt_lt_SP2NL
14453    
14454     # turn newlines into spaces.
14455     NL2SP=$lt_lt_NL2SP
14456    
14457     # convert \$build file names to \$host format.
14458     to_host_file_cmd=$lt_cv_to_host_file_cmd
14459    
14460     # convert \$build files to toolchain format.
14461     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14462    
14463     # An object symbol dumper.
14464     OBJDUMP=$lt_OBJDUMP
14465    
14466     # Method to check whether dependent libraries are shared objects.
14467     deplibs_check_method=$lt_deplibs_check_method
14468    
14469     # Command to use when deplibs_check_method = "file_magic".
14470     file_magic_cmd=$lt_file_magic_cmd
14471    
14472     # How to find potential files when deplibs_check_method = "file_magic".
14473     file_magic_glob=$lt_file_magic_glob
14474    
14475     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14476     want_nocaseglob=$lt_want_nocaseglob
14477    
14478     # DLL creation program.
14479     DLLTOOL=$lt_DLLTOOL
14480    
14481     # Command to associate shared and link libraries.
14482     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14483    
14484     # The archiver.
14485     AR=$lt_AR
14486    
14487     # Flags to create an archive.
14488     AR_FLAGS=$lt_AR_FLAGS
14489    
14490     # How to feed a file listing to the archiver.
14491     archiver_list_spec=$lt_archiver_list_spec
14492    
14493     # A symbol stripping program.
14494     STRIP=$lt_STRIP
14495    
14496     # Commands used to install an old-style archive.
14497     RANLIB=$lt_RANLIB
14498     old_postinstall_cmds=$lt_old_postinstall_cmds
14499     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14500    
14501     # Whether to use a lock for old archive extraction.
14502     lock_old_archive_extraction=$lock_old_archive_extraction
14503    
14504     # A C compiler.
14505     LTCC=$lt_CC
14506    
14507     # LTCC compiler flags.
14508     LTCFLAGS=$lt_CFLAGS
14509    
14510     # Take the output of nm and produce a listing of raw symbols and C names.
14511     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14512    
14513     # Transform the output of nm in a proper C declaration.
14514     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14515    
14516     # Transform the output of nm into a list of symbols to manually relocate.
14517     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14518    
14519     # Transform the output of nm in a C name address pair.
14520     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14521    
14522     # Transform the output of nm in a C name address pair when lib prefix is needed.
14523     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14524    
14525     # The name lister interface.
14526     nm_interface=$lt_lt_cv_nm_interface
14527    
14528     # Specify filename containing input files for \$NM.
14529     nm_file_list_spec=$lt_nm_file_list_spec
14530    
14531     # The root where to search for dependent libraries,and where our libraries should be installed.
14532     lt_sysroot=$lt_sysroot
14533    
14534     # Command to truncate a binary pipe.
14535     lt_truncate_bin=$lt_lt_cv_truncate_bin
14536    
14537     # The name of the directory that contains temporary libtool files.
14538     objdir=$objdir
14539    
14540     # Used to examine libraries when file_magic_cmd begins with "file".
14541     MAGIC_CMD=$MAGIC_CMD
14542    
14543     # Must we lock files when doing compilation?
14544     need_locks=$lt_need_locks
14545    
14546     # Manifest tool.
14547     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14548    
14549     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14550     DSYMUTIL=$lt_DSYMUTIL
14551    
14552     # Tool to change global to local symbols on Mac OS X.
14553     NMEDIT=$lt_NMEDIT
14554    
14555     # Tool to manipulate fat objects and archives on Mac OS X.
14556     LIPO=$lt_LIPO
14557    
14558     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14559     OTOOL=$lt_OTOOL
14560    
14561     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14562     OTOOL64=$lt_OTOOL64
14563    
14564     # Old archive suffix (normally "a").
14565     libext=$libext
14566    
14567     # Shared library suffix (normally ".so").
14568     shrext_cmds=$lt_shrext_cmds
14569    
14570     # The commands to extract the exported symbol list from a shared archive.
14571     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14572    
14573     # Variables whose values should be saved in libtool wrapper scripts and
14574     # restored at link time.
14575     variables_saved_for_relink=$lt_variables_saved_for_relink
14576    
14577     # Do we need the "lib" prefix for modules?
14578     need_lib_prefix=$need_lib_prefix
14579    
14580     # Do we need a version for libraries?
14581     need_version=$need_version
14582    
14583     # Library versioning type.
14584     version_type=$version_type
14585    
14586     # Shared library runtime path variable.
14587     runpath_var=$runpath_var
14588    
14589     # Shared library path variable.
14590     shlibpath_var=$shlibpath_var
14591    
14592     # Is shlibpath searched before the hard-coded library search path?
14593     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14594    
14595     # Format of library name prefix.
14596     libname_spec=$lt_libname_spec
14597    
14598     # List of archive names. First name is the real one, the rest are links.
14599     # The last name is the one that the linker finds with -lNAME
14600     library_names_spec=$lt_library_names_spec
14601    
14602     # The coded name of the library, if different from the real name.
14603     soname_spec=$lt_soname_spec
14604    
14605     # Permission mode override for installation of shared libraries.
14606     install_override_mode=$lt_install_override_mode
14607    
14608     # Command to use after installation of a shared archive.
14609     postinstall_cmds=$lt_postinstall_cmds
14610    
14611     # Command to use after uninstallation of a shared archive.
14612     postuninstall_cmds=$lt_postuninstall_cmds
14613    
14614     # Commands used to finish a libtool library installation in a directory.
14615     finish_cmds=$lt_finish_cmds
14616    
14617     # As "finish_cmds", except a single script fragment to be evaled but
14618     # not shown.
14619     finish_eval=$lt_finish_eval
14620    
14621     # Whether we should hardcode library paths into libraries.
14622     hardcode_into_libs=$hardcode_into_libs
14623    
14624     # Compile-time system search path for libraries.
14625     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14626    
14627     # Run-time system search path for libraries.
14628     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14629    
14630     # Whether dlopen is supported.
14631     dlopen_support=$enable_dlopen
14632    
14633     # Whether dlopen of programs is supported.
14634     dlopen_self=$enable_dlopen_self
14635    
14636     # Whether dlopen of statically linked programs is supported.
14637     dlopen_self_static=$enable_dlopen_self_static
14638    
14639     # Commands to strip libraries.
14640     old_striplib=$lt_old_striplib
14641     striplib=$lt_striplib
14642    
14643    
14644     # The linker used to build libraries.
14645     LD=$lt_LD
14646    
14647     # How to create reloadable object files.
14648     reload_flag=$lt_reload_flag
14649     reload_cmds=$lt_reload_cmds
14650    
14651     # Commands used to build an old-style archive.
14652     old_archive_cmds=$lt_old_archive_cmds
14653    
14654     # A language specific compiler.
14655     CC=$lt_compiler
14656    
14657     # Is the compiler the GNU compiler?
14658     with_gcc=$GCC
14659    
14660     # Compiler flag to turn off builtin functions.
14661     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14662    
14663     # Additional compiler flags for building library objects.
14664     pic_flag=$lt_lt_prog_compiler_pic
14665    
14666     # How to pass a linker flag through the compiler.
14667     wl=$lt_lt_prog_compiler_wl
14668    
14669     # Compiler flag to prevent dynamic linking.
14670     link_static_flag=$lt_lt_prog_compiler_static
14671    
14672     # Does compiler simultaneously support -c and -o options?
14673     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14674    
14675     # Whether or not to add -lc for building shared libraries.
14676     build_libtool_need_lc=$archive_cmds_need_lc
14677    
14678     # Whether or not to disallow shared libs when runtime libs are static.
14679     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14680    
14681     # Compiler flag to allow reflexive dlopens.
14682     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14683    
14684     # Compiler flag to generate shared objects directly from archives.
14685     whole_archive_flag_spec=$lt_whole_archive_flag_spec
14686    
14687     # Whether the compiler copes with passing no objects directly.
14688     compiler_needs_object=$lt_compiler_needs_object
14689    
14690     # Create an old-style archive from a shared archive.
14691     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14692    
14693     # Create a temporary old-style archive to link instead of a shared archive.
14694     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14695    
14696     # Commands used to build a shared archive.
14697     archive_cmds=$lt_archive_cmds
14698     archive_expsym_cmds=$lt_archive_expsym_cmds
14699    
14700     # Commands used to build a loadable module if different from building
14701     # a shared archive.
14702     module_cmds=$lt_module_cmds
14703     module_expsym_cmds=$lt_module_expsym_cmds
14704    
14705     # Whether we are building with GNU ld or not.
14706     with_gnu_ld=$lt_with_gnu_ld
14707    
14708     # Flag that allows shared libraries with undefined symbols to be built.
14709     allow_undefined_flag=$lt_allow_undefined_flag
14710    
14711     # Flag that enforces no undefined symbols.
14712     no_undefined_flag=$lt_no_undefined_flag
14713    
14714     # Flag to hardcode \$libdir into a binary during linking.
14715     # This must work even if \$libdir does not exist
14716     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14717    
14718     # Whether we need a single "-rpath" flag with a separated argument.
14719     hardcode_libdir_separator=$lt_hardcode_libdir_separator
14720    
14721     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14722     # DIR into the resulting binary.
14723     hardcode_direct=$hardcode_direct
14724    
14725     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14726     # DIR into the resulting binary and the resulting library dependency is
14727     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14728     # library is relocated.
14729     hardcode_direct_absolute=$hardcode_direct_absolute
14730    
14731     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14732     # into the resulting binary.
14733     hardcode_minus_L=$hardcode_minus_L
14734    
14735     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14736     # into the resulting binary.
14737     hardcode_shlibpath_var=$hardcode_shlibpath_var
14738    
14739     # Set to "yes" if building a shared library automatically hardcodes DIR
14740     # into the library and all subsequent libraries and executables linked
14741     # against it.
14742     hardcode_automatic=$hardcode_automatic
14743    
14744     # Set to yes if linker adds runtime paths of dependent libraries
14745     # to runtime path list.
14746     inherit_rpath=$inherit_rpath
14747    
14748     # Whether libtool must link a program against all its dependency libraries.
14749     link_all_deplibs=$link_all_deplibs
14750    
14751     # Set to "yes" if exported symbols are required.
14752     always_export_symbols=$always_export_symbols
14753    
14754     # The commands to list exported symbols.
14755     export_symbols_cmds=$lt_export_symbols_cmds
14756    
14757     # Symbols that should not be listed in the preloaded symbols.
14758     exclude_expsyms=$lt_exclude_expsyms
14759    
14760     # Symbols that must always be exported.
14761     include_expsyms=$lt_include_expsyms
14762    
14763     # Commands necessary for linking programs (against libraries) with templates.
14764     prelink_cmds=$lt_prelink_cmds
14765    
14766     # Commands necessary for finishing linking programs.
14767     postlink_cmds=$lt_postlink_cmds
14768    
14769     # Specify filename containing input files.
14770     file_list_spec=$lt_file_list_spec
14771    
14772     # How to hardcode a shared library path into an executable.
14773     hardcode_action=$hardcode_action
14774    
14775     # ### END LIBTOOL CONFIG
14776    
14777     _LT_EOF
14778    
14779     case $host_os in
14780     aix3*)
14781     cat <<\_LT_EOF >> "$cfgfile"
14782     # AIX sometimes has problems with the GCC collect2 program. For some
14783     # reason, if we set the COLLECT_NAMES environment variable, the problems
14784     # vanish in a puff of smoke.
14785     if test set != "${COLLECT_NAMES+set}"; then
14786     COLLECT_NAMES=
14787     export COLLECT_NAMES
14788     fi
14789     _LT_EOF
14790     ;;
14791 michael 5052 esac
14792 michael 5059
14793    
14794     ltmain=$ac_aux_dir/ltmain.sh
14795    
14796    
14797     # We use sed instead of cat because bash on DJGPP gets confused if
14798     # if finds mixed CR/LF and LF-only lines. Since sed operates in
14799     # text mode, it properly converts lines to CR/LF. This bash problem
14800     # is reportedly fixed, but why not run on old versions too?
14801     sed '$q' "$ltmain" >> "$cfgfile" \
14802     || (rm -f "$cfgfile"; exit 1)
14803    
14804     mv -f "$cfgfile" "$ofile" ||
14805     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14806     chmod +x "$ofile"
14807    
14808     ;;
14809    
14810     esac
14811 michael 5052 done # for ac_tag
14812    
14813    
14814 michael 5059 as_fn_exit 0
14815 michael 5052 _ACEOF
14816     ac_clean_files=$ac_clean_files_save
14817    
14818 michael 5059 test $ac_write_fail = 0 ||
14819     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14820 michael 5052
14821 michael 5059
14822 michael 5052 # configure is writing to config.log, and then calls config.status.
14823     # config.status does its own redirection, appending to config.log.
14824     # Unfortunately, on DOS this fails, as config.log is still kept open
14825     # by configure, so config.status won't be able to write to it; its
14826     # output is simply discarded. So we exec the FD to /dev/null,
14827     # effectively closing config.log, so it can be properly (re)opened and
14828     # appended to by config.status. When coming back to configure, we
14829     # need to make the FD available again.
14830     if test "$no_create" != yes; then
14831     ac_cs_success=:
14832     ac_config_status_args=
14833     test "$silent" = yes &&
14834     ac_config_status_args="$ac_config_status_args --quiet"
14835     exec 5>/dev/null
14836     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14837     exec 5>>config.log
14838     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14839     # would make configure fail if this is the last instruction.
14840 michael 5059 $ac_cs_success || as_fn_exit 1
14841 michael 5052 fi
14842 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14844     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14845     fi
14846 michael 5052
14847    
14848    
14849 michael 5110 echo "###############################################################################"
14850     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
14851 michael 5052 echo
14852 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
14853 michael 5052 echo " ./configure --prefix=DIRECTORY"
14854 michael 5110 echo "###############################################################################"

Properties

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