update service untis to be installed in /usr/lib vs /lib
[profile/ivi/ofono.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ofono 1.6.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='ofono'
569 PACKAGE_TARNAME='ofono'
570 PACKAGE_VERSION='1.6'
571 PACKAGE_STRING='ofono 1.6'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_default_prefix=/usr/local
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 DATAFILES_FALSE
617 DATAFILES_TRUE
618 PROVISION_FALSE
619 PROVISION_TRUE
620 BLUETOOTH_FALSE
621 BLUETOOTH_TRUE
622 BLUEZ_LIBS
623 BLUEZ_CFLAGS
624 ISIMODEM_FALSE
625 ISIMODEM_TRUE
626 PHONESIM_FALSE
627 PHONESIM_TRUE
628 CDMAMODEM_FALSE
629 CDMAMODEM_TRUE
630 ATMODEM_FALSE
631 ATMODEM_TRUE
632 TOOLS_FALSE
633 TOOLS_TRUE
634 USB_LIBS
635 USB_CFLAGS
636 UDEV_FALSE
637 UDEV_TRUE
638 UDEV_DATADIR
639 UDEV_LIBS
640 UDEV_CFLAGS
641 CAPNG_LIBS
642 CAPNG_CFLAGS
643 SYSTEMD_FALSE
644 SYSTEMD_TRUE
645 SYSTEMD_UNITDIR
646 DBUS_DATADIR
647 DBUS_CONFDIR
648 DBUS_LIBS
649 DBUS_CFLAGS
650 GTHREAD_LIBS
651 GTHREAD_CFLAGS
652 GLIB_LIBS
653 GLIB_CFLAGS
654 TEST_FALSE
655 TEST_TRUE
656 CPP
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 EGREP
675 GREP
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 LIBTOOL
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 PKG_CONFIG_LIBDIR
704 PKG_CONFIG_PATH
705 PKG_CONFIG
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_silent_rules
778 enable_maintainer_mode
779 enable_dependency_tracking
780 enable_static
781 enable_shared
782 with_pic
783 enable_fast_install
784 with_gnu_ld
785 with_sysroot
786 enable_libtool_lock
787 enable_optimization
788 enable_debug
789 enable_test
790 enable_pie
791 enable_threads
792 with_dbusconfdir
793 with_dbusdatadir
794 with_systemdunitdir
795 enable_capng
796 enable_udev
797 enable_tools
798 enable_atmodem
799 enable_cdmamodem
800 enable_phonesim
801 enable_isimodem
802 enable_bluetooth
803 with_provisiondb
804 enable_provision
805 enable_datafiles
806 '
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 PKG_CONFIG
811 PKG_CONFIG_PATH
812 PKG_CONFIG_LIBDIR
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP
819 GLIB_CFLAGS
820 GLIB_LIBS
821 GTHREAD_CFLAGS
822 GTHREAD_LIBS
823 DBUS_CFLAGS
824 DBUS_LIBS
825 CAPNG_CFLAGS
826 CAPNG_LIBS
827 UDEV_CFLAGS
828 UDEV_LIBS
829 USB_CFLAGS
830 USB_LIBS
831 BLUEZ_CFLAGS
832 BLUEZ_LIBS'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *=)   ac_optarg= ;;
897   *)    ac_optarg=yes ;;
898   esac
899
900   # Accept the important Cygnus configure options, so we can diagnose typos.
901
902   case $ac_dashdash$ac_option in
903   --)
904     ac_dashdash=yes ;;
905
906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
907     ac_prev=bindir ;;
908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909     bindir=$ac_optarg ;;
910
911   -build | --build | --buil | --bui | --bu)
912     ac_prev=build_alias ;;
913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914     build_alias=$ac_optarg ;;
915
916   -cache-file | --cache-file | --cache-fil | --cache-fi \
917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918     ac_prev=cache_file ;;
919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921     cache_file=$ac_optarg ;;
922
923   --config-cache | -C)
924     cache_file=config.cache ;;
925
926   -datadir | --datadir | --datadi | --datad)
927     ac_prev=datadir ;;
928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
929     datadir=$ac_optarg ;;
930
931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932   | --dataroo | --dataro | --datar)
933     ac_prev=datarootdir ;;
934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936     datarootdir=$ac_optarg ;;
937
938   -disable-* | --disable-*)
939     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942       as_fn_error $? "invalid feature name: $ac_useropt"
943     ac_useropt_orig=$ac_useropt
944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945     case $ac_user_opts in
946       *"
947 "enable_$ac_useropt"
948 "*) ;;
949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950          ac_unrecognized_sep=', ';;
951     esac
952     eval enable_$ac_useropt=no ;;
953
954   -docdir | --docdir | --docdi | --doc | --do)
955     ac_prev=docdir ;;
956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957     docdir=$ac_optarg ;;
958
959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960     ac_prev=dvidir ;;
961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962     dvidir=$ac_optarg ;;
963
964   -enable-* | --enable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       as_fn_error $? "invalid feature name: $ac_useropt"
969     ac_useropt_orig=$ac_useropt
970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971     case $ac_user_opts in
972       *"
973 "enable_$ac_useropt"
974 "*) ;;
975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976          ac_unrecognized_sep=', ';;
977     esac
978     eval enable_$ac_useropt=\$ac_optarg ;;
979
980   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982   | --exec | --exe | --ex)
983     ac_prev=exec_prefix ;;
984   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986   | --exec=* | --exe=* | --ex=*)
987     exec_prefix=$ac_optarg ;;
988
989   -gas | --gas | --ga | --g)
990     # Obsolete; use --with-gas.
991     with_gas=yes ;;
992
993   -help | --help | --hel | --he | -h)
994     ac_init_help=long ;;
995   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996     ac_init_help=recursive ;;
997   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998     ac_init_help=short ;;
999
1000   -host | --host | --hos | --ho)
1001     ac_prev=host_alias ;;
1002   -host=* | --host=* | --hos=* | --ho=*)
1003     host_alias=$ac_optarg ;;
1004
1005   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006     ac_prev=htmldir ;;
1007   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008   | --ht=*)
1009     htmldir=$ac_optarg ;;
1010
1011   -includedir | --includedir | --includedi | --included | --include \
1012   | --includ | --inclu | --incl | --inc)
1013     ac_prev=includedir ;;
1014   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015   | --includ=* | --inclu=* | --incl=* | --inc=*)
1016     includedir=$ac_optarg ;;
1017
1018   -infodir | --infodir | --infodi | --infod | --info | --inf)
1019     ac_prev=infodir ;;
1020   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021     infodir=$ac_optarg ;;
1022
1023   -libdir | --libdir | --libdi | --libd)
1024     ac_prev=libdir ;;
1025   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026     libdir=$ac_optarg ;;
1027
1028   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029   | --libexe | --libex | --libe)
1030     ac_prev=libexecdir ;;
1031   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032   | --libexe=* | --libex=* | --libe=*)
1033     libexecdir=$ac_optarg ;;
1034
1035   -localedir | --localedir | --localedi | --localed | --locale)
1036     ac_prev=localedir ;;
1037   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038     localedir=$ac_optarg ;;
1039
1040   -localstatedir | --localstatedir | --localstatedi | --localstated \
1041   | --localstate | --localstat | --localsta | --localst | --locals)
1042     ac_prev=localstatedir ;;
1043   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045     localstatedir=$ac_optarg ;;
1046
1047   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048     ac_prev=mandir ;;
1049   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050     mandir=$ac_optarg ;;
1051
1052   -nfp | --nfp | --nf)
1053     # Obsolete; use --without-fp.
1054     with_fp=no ;;
1055
1056   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057   | --no-cr | --no-c | -n)
1058     no_create=yes ;;
1059
1060   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062     no_recursion=yes ;;
1063
1064   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066   | --oldin | --oldi | --old | --ol | --o)
1067     ac_prev=oldincludedir ;;
1068   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071     oldincludedir=$ac_optarg ;;
1072
1073   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074     ac_prev=prefix ;;
1075   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076     prefix=$ac_optarg ;;
1077
1078   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079   | --program-pre | --program-pr | --program-p)
1080     ac_prev=program_prefix ;;
1081   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083     program_prefix=$ac_optarg ;;
1084
1085   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086   | --program-suf | --program-su | --program-s)
1087     ac_prev=program_suffix ;;
1088   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090     program_suffix=$ac_optarg ;;
1091
1092   -program-transform-name | --program-transform-name \
1093   | --program-transform-nam | --program-transform-na \
1094   | --program-transform-n | --program-transform- \
1095   | --program-transform | --program-transfor \
1096   | --program-transfo | --program-transf \
1097   | --program-trans | --program-tran \
1098   | --progr-tra | --program-tr | --program-t)
1099     ac_prev=program_transform_name ;;
1100   -program-transform-name=* | --program-transform-name=* \
1101   | --program-transform-nam=* | --program-transform-na=* \
1102   | --program-transform-n=* | --program-transform-=* \
1103   | --program-transform=* | --program-transfor=* \
1104   | --program-transfo=* | --program-transf=* \
1105   | --program-trans=* | --program-tran=* \
1106   | --progr-tra=* | --program-tr=* | --program-t=*)
1107     program_transform_name=$ac_optarg ;;
1108
1109   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110     ac_prev=pdfdir ;;
1111   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112     pdfdir=$ac_optarg ;;
1113
1114   -psdir | --psdir | --psdi | --psd | --ps)
1115     ac_prev=psdir ;;
1116   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117     psdir=$ac_optarg ;;
1118
1119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120   | -silent | --silent | --silen | --sile | --sil)
1121     silent=yes ;;
1122
1123   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124     ac_prev=sbindir ;;
1125   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126   | --sbi=* | --sb=*)
1127     sbindir=$ac_optarg ;;
1128
1129   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131   | --sharedst | --shareds | --shared | --share | --shar \
1132   | --sha | --sh)
1133     ac_prev=sharedstatedir ;;
1134   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137   | --sha=* | --sh=*)
1138     sharedstatedir=$ac_optarg ;;
1139
1140   -site | --site | --sit)
1141     ac_prev=site ;;
1142   -site=* | --site=* | --sit=*)
1143     site=$ac_optarg ;;
1144
1145   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146     ac_prev=srcdir ;;
1147   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148     srcdir=$ac_optarg ;;
1149
1150   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151   | --syscon | --sysco | --sysc | --sys | --sy)
1152     ac_prev=sysconfdir ;;
1153   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155     sysconfdir=$ac_optarg ;;
1156
1157   -target | --target | --targe | --targ | --tar | --ta | --t)
1158     ac_prev=target_alias ;;
1159   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160     target_alias=$ac_optarg ;;
1161
1162   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163     verbose=yes ;;
1164
1165   -version | --version | --versio | --versi | --vers | -V)
1166     ac_init_version=: ;;
1167
1168   -with-* | --with-*)
1169     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172       as_fn_error $? "invalid package name: $ac_useropt"
1173     ac_useropt_orig=$ac_useropt
1174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175     case $ac_user_opts in
1176       *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180          ac_unrecognized_sep=', ';;
1181     esac
1182     eval with_$ac_useropt=\$ac_optarg ;;
1183
1184   -without-* | --without-*)
1185     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188       as_fn_error $? "invalid package name: $ac_useropt"
1189     ac_useropt_orig=$ac_useropt
1190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191     case $ac_user_opts in
1192       *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196          ac_unrecognized_sep=', ';;
1197     esac
1198     eval with_$ac_useropt=no ;;
1199
1200   --x)
1201     # Obsolete; use --with-x.
1202     with_x=yes ;;
1203
1204   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205   | --x-incl | --x-inc | --x-in | --x-i)
1206     ac_prev=x_includes ;;
1207   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209     x_includes=$ac_optarg ;;
1210
1211   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213     ac_prev=x_libraries ;;
1214   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216     x_libraries=$ac_optarg ;;
1217
1218   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220     ;;
1221
1222   *=*)
1223     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224     # Reject names that are not valid shell variable names.
1225     case $ac_envvar in #(
1226       '' | [0-9]* | *[!_$as_cr_alnum]* )
1227       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228     esac
1229     eval $ac_envvar=\$ac_optarg
1230     export $ac_envvar ;;
1231
1232   *)
1233     # FIXME: should be removed in autoconf 3.0.
1234     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238     ;;
1239
1240   esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245   as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249   case $enable_option_checking in
1250     no) ;;
1251     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253   esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258                 datadir sysconfdir sharedstatedir localstatedir includedir \
1259                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260                 libdir localedir mandir
1261 do
1262   eval ac_val=\$$ac_var
1263   # Remove trailing slashes.
1264   case $ac_val in
1265     */ )
1266       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267       eval $ac_var=\$ac_val;;
1268   esac
1269   # Be sure to have absolute directory names.
1270   case $ac_val in
1271     [\\/$]* | ?:[\\/]* )  continue;;
1272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273   esac
1274   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286   if test "x$build_alias" = x; then
1287     cross_compiling=maybe
1288     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289     If a cross compiler is detected then cross compile mode will be used" >&2
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures ofono 1.6 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/ofono]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of ofono 1.6:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules          less verbose build output (undo: `make V=1')
1454   --disable-silent-rules         verbose build output (undo: `make V=0')
1455   --enable-maintainer-mode  enable make rules and dependencies not useful
1456                           (and sometimes confusing) to the casual installer
1457   --disable-dependency-tracking  speeds up one-time build
1458   --enable-dependency-tracking   do not reject slow dependency extractors
1459   --enable-static[=PKGS]  build static libraries [default=no]
1460   --enable-shared[=PKGS]  build shared libraries [default=yes]
1461   --enable-fast-install[=PKGS]
1462                           optimize for fast installation [default=yes]
1463   --disable-libtool-lock  avoid locking (might break parallel builds)
1464   --disable-optimization  disable code optimization through compiler
1465   --enable-debug          enable compiling with debugging information
1466   --enable-test           enable test/example scripts
1467   --enable-pie            enable position independent executables flag
1468   --enable-threads        enable threading support
1469   --enable-capng          enable capabilities support
1470   --disable-udev          don't use udev support even if available
1471   --enable-tools          enable testing tools
1472   --disable-atmodem       disable ETSI AT modem support
1473   --disable-cdmamodem     disable CDMA AT modem support
1474   --disable-phonesim      disable Phone simulator support
1475   --disable-isimodem      disable PhoNet/ISI modem support
1476   --disable-bluetooth     disable Bluetooth modem support
1477   --disable-provision     disable provisioning suport
1478   --disable-datafiles     don't install configuration and data files
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                           both]
1485   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486   --with-sysroot=DIR Search for dependent libraries within DIR
1487                         (or the compiler's sysroot if not specified).
1488   --with-dbusconfdir=PATH path to D-Bus config directory
1489   --with-dbusdatadir=PATH path to D-Bus data directory
1490   --with-systemdunitdir=DIR
1491                           path to systemd service directory
1492   --with-provisiondb=FILE location of provision database
1493
1494 Some influential environment variables:
1495   PKG_CONFIG  path to pkg-config utility
1496   PKG_CONFIG_PATH
1497               directories to add to pkg-config's search path
1498   PKG_CONFIG_LIBDIR
1499               path overriding pkg-config's built-in search path
1500   CC          C compiler command
1501   CFLAGS      C compiler flags
1502   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503               nonstandard directory <lib dir>
1504   LIBS        libraries to pass to the linker, e.g. -l<library>
1505   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506               you have headers in a nonstandard directory <include dir>
1507   CPP         C preprocessor
1508   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1509   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1510   GTHREAD_CFLAGS
1511               C compiler flags for GTHREAD, overriding pkg-config
1512   GTHREAD_LIBS
1513               linker flags for GTHREAD, overriding pkg-config
1514   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1515   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1516   CAPNG_CFLAGS
1517               C compiler flags for CAPNG, overriding pkg-config
1518   CAPNG_LIBS  linker flags for CAPNG, overriding pkg-config
1519   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1520   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1521   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
1522   USB_LIBS    linker flags for USB, overriding pkg-config
1523   BLUEZ_CFLAGS
1524               C compiler flags for BLUEZ, overriding pkg-config
1525   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to the package provider.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" ||
1539       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540       continue
1541     ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547   # A ".." for each directory in $ac_dir_suffix.
1548   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549   case $ac_top_builddir_sub in
1550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552   esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560   .)  # We are building in place.
1561     ac_srcdir=.
1562     ac_top_srcdir=$ac_top_builddir_sub
1563     ac_abs_top_srcdir=$ac_pwd ;;
1564   [\\/]* | ?:[\\/]* )  # Absolute name.
1565     ac_srcdir=$srcdir$ac_dir_suffix;
1566     ac_top_srcdir=$srcdir
1567     ac_abs_top_srcdir=$srcdir ;;
1568   *) # Relative name.
1569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570     ac_top_srcdir=$ac_top_build_prefix$srcdir
1571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575     cd "$ac_dir" || { ac_status=$?; continue; }
1576     # Check for guested configure.
1577     if test -f "$ac_srcdir/configure.gnu"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580     elif test -f "$ac_srcdir/configure"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure" --help=recursive
1583     else
1584       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585     fi || ac_status=$?
1586     cd "$ac_pwd" || { ac_status=$?; break; }
1587   done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592   cat <<\_ACEOF
1593 ofono configure 1.6
1594 generated by GNU Autoconf 2.68
1595
1596 Copyright (C) 2010 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   rm -f conftest.$ac_objext
1614   if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_compile") 2>conftest.err
1622   ac_status=$?
1623   if test -s conftest.err; then
1624     grep -v '^ *+' conftest.err >conftest.er1
1625     cat conftest.er1 >&5
1626     mv -f conftest.er1 conftest.err
1627   fi
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && {
1630          test -z "$ac_c_werror_flag" ||
1631          test ! -s conftest.err
1632        } && test -s conftest.$ac_objext; then :
1633   ac_retval=0
1634 else
1635   $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638         ac_retval=1
1639 fi
1640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641   as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   rm -f conftest.$ac_objext conftest$ac_exeext
1652   if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659   (eval "$ac_link") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } && {
1668          test -z "$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        } && test -s conftest$ac_exeext && {
1671          test "$cross_compiling" = yes ||
1672          $as_test_x conftest$ac_exeext
1673        }; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679         ac_retval=1
1680 fi
1681   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683   # interfere with the next link command; also delete a directory that is
1684   # left behind by Apple's compiler.  We do this before executing the actions.
1685   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_link
1690
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701   $as_echo_n "(cached) " >&6
1702 else
1703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 $4
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709   eval "$3=yes"
1710 else
1711   eval "$3=no"
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 fi
1715 eval ac_res=\$$3
1716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_compile
1721
1722 # ac_fn_c_try_cpp LINENO
1723 # ----------------------
1724 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_cpp ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_cpp conftest.$ac_ext"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736   ac_status=$?
1737   if test -s conftest.err; then
1738     grep -v '^ *+' conftest.err >conftest.er1
1739     cat conftest.er1 >&5
1740     mv -f conftest.er1 conftest.err
1741   fi
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; } > conftest.i && {
1744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745          test ! -s conftest.err
1746        }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752     ac_retval=1
1753 fi
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_cpp
1758
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1763 ac_fn_c_try_run ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>&5
1774   ac_status=$?
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777   { { case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_try") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; }; }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: program exited with status $ac_status" >&5
1790        $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793        ac_retval=$ac_status
1794 fi
1795   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_run
1800
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1816 #define $2 innocuous_$2
1817
1818 /* System header to define __stub macros and hopefully few prototypes,
1819     which can conflict with char $2 (); below.
1820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821     <limits.h> exists even on freestanding compilers.  */
1822
1823 #ifdef __STDC__
1824 # include <limits.h>
1825 #else
1826 # include <assert.h>
1827 #endif
1828
1829 #undef $2
1830
1831 /* Override any GCC internal prototype to avoid an error.
1832    Use char because int might match the return type of a GCC
1833    builtin and then its argument prototype would still apply.  */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839     to always fail with ENOSYS.  Some functions are actually named
1840     something starting with __ and the normal name is an alias.  */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1844
1845 int
1846 main ()
1847 {
1848 return $2 ();
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"; then :
1854   eval "$3=yes"
1855 else
1856   eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext \
1859     conftest$ac_exeext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_func
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by ofono $as_me 1.6, which was
1872 generated by GNU Autoconf 2.68.  Invocation command line was
1873
1874   $ $0 $@
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
1893 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906   IFS=$as_save_IFS
1907   test -z "$as_dir" && as_dir=.
1908     $as_echo "PATH: $as_dir"
1909   done
1910 IFS=$as_save_IFS
1911
1912 } >&5
1913
1914 cat >&5 <<_ACEOF
1915
1916
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1920
1921 _ACEOF
1922
1923
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1934 do
1935   for ac_arg
1936   do
1937     case $ac_arg in
1938     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940     | -silent | --silent | --silen | --sile | --sil)
1941       continue ;;
1942     *\'*)
1943       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944     esac
1945     case $ac_pass in
1946     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947     2)
1948       as_fn_append ac_configure_args1 " '$ac_arg'"
1949       if test $ac_must_keep_next = true; then
1950         ac_must_keep_next=false # Got value, back to normal.
1951       else
1952         case $ac_arg in
1953           *=* | --config-cache | -C | -disable-* | --disable-* \
1954           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956           | -with-* | --with-* | -without-* | --without-* | --x)
1957             case "$ac_configure_args0 " in
1958               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959             esac
1960             ;;
1961           -* ) ac_must_keep_next=true ;;
1962         esac
1963       fi
1964       as_fn_append ac_configure_args " '$ac_arg'"
1965       ;;
1966     esac
1967   done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1971
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log.  We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978   # Save into config.log some information that might help in debugging.
1979   {
1980     echo
1981
1982     $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985     echo
1986     # The following way of writing the cache mishandles newlines in values,
1987 (
1988   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989     eval ac_val=\$$ac_var
1990     case $ac_val in #(
1991     *${as_nl}*)
1992       case $ac_var in #(
1993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995       esac
1996       case $ac_var in #(
1997       _ | IFS | as_nl) ;; #(
1998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999       *) { eval $ac_var=; unset $ac_var;} ;;
2000       esac ;;
2001     esac
2002   done
2003   (set) 2>&1 |
2004     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005     *${as_nl}ac_space=\ *)
2006       sed -n \
2007         "s/'\''/'\''\\\\'\'''\''/g;
2008           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009       ;; #(
2010     *)
2011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012       ;;
2013     esac |
2014     sort
2015 )
2016     echo
2017
2018     $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021     echo
2022     for ac_var in $ac_subst_vars
2023     do
2024       eval ac_val=\$$ac_var
2025       case $ac_val in
2026       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027       esac
2028       $as_echo "$ac_var='\''$ac_val'\''"
2029     done | sort
2030     echo
2031
2032     if test -n "$ac_subst_files"; then
2033       $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036       echo
2037       for ac_var in $ac_subst_files
2038       do
2039         eval ac_val=\$$ac_var
2040         case $ac_val in
2041         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042         esac
2043         $as_echo "$ac_var='\''$ac_val'\''"
2044       done | sort
2045       echo
2046     fi
2047
2048     if test -s confdefs.h; then
2049       $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052       echo
2053       cat confdefs.h
2054       echo
2055     fi
2056     test "$ac_signal" != 0 &&
2057       $as_echo "$as_me: caught signal $ac_signal"
2058     $as_echo "$as_me: exit $exit_status"
2059   } >&5
2060   rm -f core *.core core.conftest.* &&
2061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062     exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 $as_echo "/* confdefs.h */" > confdefs.h
2073
2074 # Predefined preprocessor variables.
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106   # We do not want a PATH search for config.site.
2107   case $CONFIG_SITE in #((
2108     -*)  ac_site_file1=./$CONFIG_SITE;;
2109     */*) ac_site_file1=$CONFIG_SITE;;
2110     *)   ac_site_file1=./$CONFIG_SITE;;
2111   esac
2112 elif test "x$prefix" != xNONE; then
2113   ac_site_file1=$prefix/share/config.site
2114   ac_site_file2=$prefix/etc/config.site
2115 else
2116   ac_site_file1=$ac_default_prefix/share/config.site
2117   ac_site_file2=$ac_default_prefix/etc/config.site
2118 fi
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 do
2121   test "x$ac_site_file" = xNONE && continue
2122   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125     sed 's/^/| /' "$ac_site_file" >&5
2126     . "$ac_site_file" \
2127       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131   fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135   # Some versions of bash will fail to source /dev/null (special files
2136   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2137   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140     case $cache_file in
2141       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142       *)                      . "./$cache_file";;
2143     esac
2144   fi
2145 else
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148   >$cache_file
2149 fi
2150
2151 # Check that the precious variables saved in the cache have kept the same
2152 # value.
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156   eval ac_new_set=\$ac_env_${ac_var}_set
2157   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158   eval ac_new_val=\$ac_env_${ac_var}_value
2159   case $ac_old_set,$ac_new_set in
2160     set,)
2161       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163       ac_cache_corrupted=: ;;
2164     ,set)
2165       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167       ac_cache_corrupted=: ;;
2168     ,);;
2169     *)
2170       if test "x$ac_old_val" != "x$ac_new_val"; then
2171         # differences in whitespace do not lead to failure.
2172         ac_old_val_w=`echo x $ac_old_val`
2173         ac_new_val_w=`echo x $ac_new_val`
2174         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177           ac_cache_corrupted=:
2178         else
2179           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181           eval $ac_var=\$ac_old_val
2182         fi
2183         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2184 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2185         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2187       fi;;
2188   esac
2189   # Pass precious variables to config.status.
2190   if test "$ac_new_set" = set; then
2191     case $ac_new_val in
2192     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193     *) ac_arg=$ac_var=$ac_new_val ;;
2194     esac
2195     case " $ac_configure_args " in
2196       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2197       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198     esac
2199   fi
2200 done
2201 if $ac_cache_corrupted; then
2202   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 fi
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220 am__api_version='1.11'
2221
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224   if test -f "$ac_dir/install-sh"; then
2225     ac_aux_dir=$ac_dir
2226     ac_install_sh="$ac_aux_dir/install-sh -c"
2227     break
2228   elif test -f "$ac_dir/install.sh"; then
2229     ac_aux_dir=$ac_dir
2230     ac_install_sh="$ac_aux_dir/install.sh -c"
2231     break
2232   elif test -f "$ac_dir/shtool"; then
2233     ac_aux_dir=$ac_dir
2234     ac_install_sh="$ac_aux_dir/shtool install -c"
2235     break
2236   fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2249
2250
2251 # Find a good install program.  We prefer a C program (faster),
2252 # so one script is as good as another.  But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2257 # AIX /bin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269   $as_echo_n "(cached) " >&6
2270 else
2271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276     # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278   ./ | .// | /[cC]/* | \
2279   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281   /usr/ucb/* ) ;;
2282   *)
2283     # OSF1 and SCO ODT 3.0 have their own names for install.
2284     # Don't use installbsd from OSF since it installs stuff as root
2285     # by default.
2286     for ac_prog in ginstall scoinst install; do
2287       for ac_exec_ext in '' $ac_executable_extensions; do
2288         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2289           if test $ac_prog = install &&
2290             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291             # AIX install.  It has an incompatible calling convention.
2292             :
2293           elif test $ac_prog = install &&
2294             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295             # program-specific install script used by HP pwplus--don't use.
2296             :
2297           else
2298             rm -rf conftest.one conftest.two conftest.dir
2299             echo one > conftest.one
2300             echo two > conftest.two
2301             mkdir conftest.dir
2302             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303               test -s conftest.one && test -s conftest.two &&
2304               test -s conftest.dir/conftest.one &&
2305               test -s conftest.dir/conftest.two
2306             then
2307               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308               break 3
2309             fi
2310           fi
2311         fi
2312       done
2313     done
2314     ;;
2315 esac
2316
2317   done
2318 IFS=$as_save_IFS
2319
2320 rm -rf conftest.one conftest.two conftest.dir
2321
2322 fi
2323   if test "${ac_cv_path_install+set}" = set; then
2324     INSTALL=$ac_cv_path_install
2325   else
2326     # As a last resort, use the slow shell script.  Don't cache a
2327     # value for INSTALL within a source directory, because that will
2328     # break other packages using the cache if that directory is
2329     # removed, or if the value is a relative name.
2330     INSTALL=$ac_install_sh
2331   fi
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2335
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 # Just in case
2347 sleep 1
2348 echo timestamp > conftest.file
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name.  Accept space and tab only in the latter.
2351 am_lf='
2352 '
2353 case `pwd` in
2354   *[\\\"\#\$\&\'\`$am_lf]*)
2355     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 esac
2357 case $srcdir in
2358   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2359     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2360 esac
2361
2362 # Do `set' in a subshell so we don't clobber the current shell's
2363 # arguments.  Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2366 # directory).
2367 if (
2368    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369    if test "$*" = "X"; then
2370       # -L didn't work.
2371       set X `ls -t "$srcdir/configure" conftest.file`
2372    fi
2373    rm -f conftest.file
2374    if test "$*" != "X $srcdir/configure conftest.file" \
2375       && test "$*" != "X conftest.file $srcdir/configure"; then
2376
2377       # If neither matched, then we have a broken ls.  This can happen
2378       # if, for instance, CONFIG_SHELL is bash and it inherits a
2379       # broken ls alias from the environment.  This has actually
2380       # happened.  Such a system could not be considered "sane".
2381       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2382 alias in your environment" "$LINENO" 5
2383    fi
2384
2385    test "$2" = conftest.file
2386    )
2387 then
2388    # Ok.
2389    :
2390 else
2391    as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.
2402 # By default was `s,x,x', remove it if useless.
2403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2405
2406 # expand $ac_aux_dir to an absolute path
2407 am_aux_dir=`cd $ac_aux_dir && pwd`
2408
2409 if test x"${MISSING+set}" != xset; then
2410   case $am_aux_dir in
2411   *\ * | *\     *)
2412     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2413   *)
2414     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2415   esac
2416 fi
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419   am_missing_run="$MISSING --run "
2420 else
2421   am_missing_run=
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 fi
2425
2426 if test x"${install_sh}" != xset; then
2427   case $am_aux_dir in
2428   *\ * | *\     *)
2429     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2430   *)
2431     install_sh="\${SHELL} $am_aux_dir/install-sh"
2432   esac
2433 fi
2434
2435 # Installed binaries are usually stripped using `strip' when the user
2436 # run `make install-strip'.  However `strip' might not be the right
2437 # tool to use in cross-compilation environments, therefore Automake
2438 # will honor the `STRIP' environment variable to overrule this program.
2439 if test "$cross_compiling" != no; then
2440   if test -n "$ac_tool_prefix"; then
2441   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}strip; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_STRIP+:} false; then :
2446   $as_echo_n "(cached) " >&6
2447 else
2448   if test -n "$STRIP"; then
2449   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456     for ac_exec_ext in '' $ac_executable_extensions; do
2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463   done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 STRIP=$ac_cv_prog_STRIP
2469 if test -n "$STRIP"; then
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2471 $as_echo "$STRIP" >&6; }
2472 else
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 fi
2476
2477
2478 fi
2479 if test -z "$ac_cv_prog_STRIP"; then
2480   ac_ct_STRIP=$STRIP
2481   # Extract the first word of "strip", so it can be a program name with args.
2482 set dummy strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   if test -n "$ac_ct_STRIP"; then
2489   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496     for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_ac_ct_STRIP="strip"
2499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503   done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509 if test -n "$ac_ct_STRIP"; then
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2511 $as_echo "$ac_ct_STRIP" >&6; }
2512 else
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2515 fi
2516
2517   if test "x$ac_ct_STRIP" = x; then
2518     STRIP=":"
2519   else
2520     case $cross_compiling:$ac_tool_warned in
2521 yes:)
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526     STRIP=$ac_ct_STRIP
2527   fi
2528 else
2529   STRIP="$ac_cv_prog_STRIP"
2530 fi
2531
2532 fi
2533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2537 if test -z "$MKDIR_P"; then
2538   if ${ac_cv_path_mkdir+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546     for ac_prog in mkdir gmkdir; do
2547          for ac_exec_ext in '' $ac_executable_extensions; do
2548            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2549            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2550              'mkdir (GNU coreutils) '* | \
2551              'mkdir (coreutils) '* | \
2552              'mkdir (fileutils) '4.1*)
2553                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2554                break 3;;
2555            esac
2556          done
2557        done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562
2563   test -d ./--version && rmdir ./--version
2564   if test "${ac_cv_path_mkdir+set}" = set; then
2565     MKDIR_P="$ac_cv_path_mkdir -p"
2566   else
2567     # As a last resort, use the slow shell script.  Don't cache a
2568     # value for MKDIR_P within a source directory, because that will
2569     # break other packages using the cache if that directory is
2570     # removed, or if the value is a relative name.
2571     MKDIR_P="$ac_install_sh -d"
2572   fi
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2575 $as_echo "$MKDIR_P" >&6; }
2576
2577 mkdir_p="$MKDIR_P"
2578 case $mkdir_p in
2579   [\\/$]* | ?:[\\/]*) ;;
2580   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2581 esac
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585   # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_AWK+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$AWK"; then
2593   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602     ac_cv_prog_AWK="$ac_prog"
2603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622   test -n "$AWK" && break
2623 done
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2627 set x ${MAKE-make}
2628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   cat >conftest.make <<\_ACEOF
2633 SHELL = /bin/sh
2634 all:
2635         @echo '@@@%%%=$(MAKE)=@@@%%%'
2636 _ACEOF
2637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2639   *@@@%%%=?*=@@@%%%*)
2640     eval ac_cv_prog_make_${ac_make}_set=yes;;
2641   *)
2642     eval ac_cv_prog_make_${ac_make}_set=no;;
2643 esac
2644 rm -f conftest.make
2645 fi
2646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2649   SET_MAKE=
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653   SET_MAKE="MAKE=${MAKE-make}"
2654 fi
2655
2656 rm -rf .tst 2>/dev/null
2657 mkdir .tst 2>/dev/null
2658 if test -d .tst; then
2659   am__leading_dot=.
2660 else
2661   am__leading_dot=_
2662 fi
2663 rmdir .tst 2>/dev/null
2664
2665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2666   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2667   # is not polluted with repeated "-I."
2668   am__isrc=' -I$(srcdir)'
2669   # test to see if srcdir already configured
2670   if test -f $srcdir/config.status; then
2671     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2672   fi
2673 fi
2674
2675 # test whether we have cygpath
2676 if test -z "$CYGPATH_W"; then
2677   if (cygpath --version) >/dev/null 2>/dev/null; then
2678     CYGPATH_W='cygpath -w'
2679   else
2680     CYGPATH_W=echo
2681   fi
2682 fi
2683
2684
2685 # Define the identity of the package.
2686  PACKAGE='ofono'
2687  VERSION='1.6'
2688
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE "$PACKAGE"
2692 _ACEOF
2693
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define VERSION "$VERSION"
2697 _ACEOF
2698
2699 # Some tools Automake needs.
2700
2701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2702
2703
2704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2705
2706
2707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2708
2709
2710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2711
2712
2713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2714
2715 # We need awk for the "check" target.  The system "awk" is bad on
2716 # some platforms.
2717 # Always define AMTAR for backward compatibility.  Yes, it's still used
2718 # in the wild :-(  We should find a proper way to deprecate it ...
2719 AMTAR='$${TAR-tar}'
2720
2721 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2722
2723
2724
2725
2726
2727 ac_config_headers="$ac_config_headers config.h"
2728
2729
2730 # Check whether --enable-silent-rules was given.
2731 if test "${enable_silent_rules+set}" = set; then :
2732   enableval=$enable_silent_rules;
2733 fi
2734
2735 case $enable_silent_rules in
2736 yes) AM_DEFAULT_VERBOSITY=0;;
2737 no)  AM_DEFAULT_VERBOSITY=1;;
2738 *)   AM_DEFAULT_VERBOSITY=0;;
2739 esac
2740 am_make=${MAKE-make}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2742 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2743 if ${am_cv_make_support_nested_variables+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if $as_echo 'TRUE=$(BAR$(V))
2747 BAR0=false
2748 BAR1=true
2749 V=1
2750 am__doit:
2751         @$(TRUE)
2752 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2753   am_cv_make_support_nested_variables=yes
2754 else
2755   am_cv_make_support_nested_variables=no
2756 fi
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2759 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2760 if test $am_cv_make_support_nested_variables = yes; then
2761     AM_V='$(V)'
2762   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2763 else
2764   AM_V=$AM_DEFAULT_VERBOSITY
2765   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2766 fi
2767 AM_BACKSLASH='\'
2768
2769
2770
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2772 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2773     # Check whether --enable-maintainer-mode was given.
2774 if test "${enable_maintainer_mode+set}" = set; then :
2775   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2776 else
2777   USE_MAINTAINER_MODE=no
2778 fi
2779
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2782    if test $USE_MAINTAINER_MODE = yes; then
2783   MAINTAINER_MODE_TRUE=
2784   MAINTAINER_MODE_FALSE='#'
2785 else
2786   MAINTAINER_MODE_TRUE='#'
2787   MAINTAINER_MODE_FALSE=
2788 fi
2789
2790   MAINT=$MAINTAINER_MODE_TRUE
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2804         if test -n "$ac_tool_prefix"; then
2805   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   case $PKG_CONFIG in
2813   [\\/]* | ?:[\\/]*)
2814   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2815   ;;
2816   *)
2817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822     for ac_exec_ext in '' $ac_executable_extensions; do
2823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829   done
2830 IFS=$as_save_IFS
2831
2832   ;;
2833 esac
2834 fi
2835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2836 if test -n "$PKG_CONFIG"; then
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2838 $as_echo "$PKG_CONFIG" >&6; }
2839 else
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 fi
2846 if test -z "$ac_cv_path_PKG_CONFIG"; then
2847   ac_pt_PKG_CONFIG=$PKG_CONFIG
2848   # Extract the first word of "pkg-config", so it can be a program name with args.
2849 set dummy pkg-config; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   case $ac_pt_PKG_CONFIG in
2856   [\\/]* | ?:[\\/]*)
2857   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2858   ;;
2859   *)
2860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875   ;;
2876 esac
2877 fi
2878 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2879 if test -n "$ac_pt_PKG_CONFIG"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2881 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887   if test "x$ac_pt_PKG_CONFIG" = x; then
2888     PKG_CONFIG=""
2889   else
2890     case $cross_compiling:$ac_tool_warned in
2891 yes:)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896     PKG_CONFIG=$ac_pt_PKG_CONFIG
2897   fi
2898 else
2899   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2900 fi
2901
2902 fi
2903 if test -n "$PKG_CONFIG"; then
2904         _pkg_min_version=0.9.0
2905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2906 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2907         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2908                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910         else
2911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913                 PKG_CONFIG=""
2914         fi
2915 fi
2916
2917
2918         if (test "${CFLAGS}" = ""); then
2919                 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2920         fi
2921         if (test "$USE_MAINTAINER_MODE" = "yes"); then
2922                 CFLAGS="$CFLAGS -Werror -Wextra"
2923                 CFLAGS="$CFLAGS -Wno-unused-parameter"
2924                 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2925                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2926                 CFLAGS="$CFLAGS -Wmissing-declarations"
2927                 CFLAGS="$CFLAGS -Wredundant-decls"
2928                 CFLAGS="$CFLAGS -Wcast-align"
2929                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2930         fi
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938
2939
2940 DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 am__doit:
2948         @echo this is the am__doit target
2949 .PHONY: am__doit
2950 END
2951 # If we don't find an include directive, just comment out the code.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2954 am__include="#"
2955 am__quote=
2956 _am_result=none
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # Ignore all kinds of additional output from `make'.
2960 case `$am_make -s -f confmf 2> /dev/null` in #(
2961 *the\ am__doit\ target*)
2962   am__include=include
2963   am__quote=
2964   _am_result=GNU
2965   ;;
2966 esac
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969    echo '.include "confinc"' > confmf
2970    case `$am_make -s -f confmf 2> /dev/null` in #(
2971    *the\ am__doit\ target*)
2972      am__include=.include
2973      am__quote="\""
2974      _am_result=BSD
2975      ;;
2976    esac
2977 fi
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2981 $as_echo "$_am_result" >&6; }
2982 rm -f confinc confmf
2983
2984 # Check whether --enable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then :
2986   enableval=$enable_dependency_tracking;
2987 fi
2988
2989 if test "x$enable_dependency_tracking" != xno; then
2990   am_depcomp="$ac_aux_dir/depcomp"
2991   AMDEPBACKSLASH='\'
2992   am__nodep='_no'
2993 fi
2994  if test "x$enable_dependency_tracking" != xno; then
2995   AMDEP_TRUE=
2996   AMDEP_FALSE='#'
2997 else
2998   AMDEP_TRUE='#'
2999   AMDEP_FALSE=
3000 fi
3001
3002
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014   $as_echo_n "(cached) " >&6
3015 else
3016   if test -n "$CC"; then
3017   ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024     for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028     break 2
3029   fi
3030 done
3031   done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_CC"; then
3048   ac_ct_CC=$CC
3049   # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="gcc"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085   if test "x$ac_ct_CC" = x; then
3086     CC=""
3087   else
3088     case $cross_compiling:$ac_tool_warned in
3089 yes:)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094     CC=$ac_ct_CC
3095   fi
3096 else
3097   CC="$ac_cv_prog_CC"
3098 fi
3099
3100 if test -z "$CC"; then
3101           if test -n "$ac_tool_prefix"; then
3102     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     ac_cv_prog_CC="${ac_tool_prefix}cc"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139   fi
3140 fi
3141 if test -z "$CC"; then
3142   # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$CC"; then
3150   ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152   ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161        ac_prog_rejected=yes
3162        continue
3163      fi
3164     ac_cv_prog_CC="cc"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 if test $ac_prog_rejected = yes; then
3173   # We found a bogon in the path, so make sure we never use it.
3174   set dummy $ac_cv_prog_CC
3175   shift
3176   if test $# != 0; then
3177     # We chose a different compiler from the bogus one.
3178     # However, it has the same basename, so the bogon will be chosen
3179     # first if we set CC to just the basename; use the full file name.
3180     shift
3181     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182   fi
3183 fi
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$CC"; then
3198   if test -n "$ac_tool_prefix"; then
3199   for ac_prog in cl.exe
3200   do
3201     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$CC"; then
3209   ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238     test -n "$CC" && break
3239   done
3240 fi
3241 if test -z "$CC"; then
3242   ac_ct_CC=$CC
3243   for ac_prog in cl.exe
3244 do
3245   # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   if test -n "$ac_ct_CC"; then
3253   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258   IFS=$as_save_IFS
3259   test -z "$as_dir" && as_dir=.
3260     for ac_exec_ext in '' $ac_executable_extensions; do
3261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262     ac_cv_prog_ac_ct_CC="$ac_prog"
3263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264     break 2
3265   fi
3266 done
3267   done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282   test -n "$ac_ct_CC" && break
3283 done
3284
3285   if test "x$ac_ct_CC" = x; then
3286     CC=""
3287   else
3288     case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294     CC=$ac_ct_CC
3295   fi
3296 fi
3297
3298 fi
3299
3300
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details" "$LINENO" 5; }
3305
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 for ac_option in --version -v -V -qversion; do
3311   { { ac_try="$ac_compiler $ac_option >&5"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319   ac_status=$?
3320   if test -s conftest.err; then
3321     sed '10a\
3322 ... rest of stderr output deleted ...
3323          10q' conftest.err >conftest.er1
3324     cat conftest.er1 >&5
3325   fi
3326   rm -f conftest.er1 conftest.err
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }
3329 done
3330
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3346 # of exeext.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 $as_echo_n "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354 ac_rmfiles=
3355 for ac_file in $ac_files
3356 do
3357   case $ac_file in
3358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360   esac
3361 done
3362 rm -f $ac_rmfiles
3363
3364 if { { ac_try="$ac_link_default"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371   (eval "$ac_link_default") 2>&5
3372   ac_status=$?
3373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374   test $ac_status = 0; }; then :
3375   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3379 # Autoconf.
3380 for ac_file in $ac_files ''
3381 do
3382   test -f "$ac_file" || continue
3383   case $ac_file in
3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385         ;;
3386     [ab].out )
3387         # We found the default executable, but exeext='' is most
3388         # certainly right.
3389         break;;
3390     *.* )
3391         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392         then :; else
3393            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394         fi
3395         # We set ac_cv_exeext here because the later test for it is not
3396         # safe: cross compilers may not add the suffix if given an `-o'
3397         # argument, so we may need to know it at that point already.
3398         # Even if this section looks crufty: it has the advantage of
3399         # actually working.
3400         break;;
3401     * )
3402         break;;
3403   esac
3404 done
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407 else
3408   ac_file=''
3409 fi
3410 if test -z "$ac_file"; then :
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error 77 "C compiler cannot create executables
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 else
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422 $as_echo "yes" >&6; }
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3425 $as_echo_n "checking for C compiler default output file name... " >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3427 $as_echo "$ac_file" >&6; }
3428 ac_exeext=$ac_cv_exeext
3429
3430 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3431 ac_clean_files=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3433 $as_echo_n "checking for suffix of executables... " >&6; }
3434 if { { ac_try="$ac_link"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441   (eval "$ac_link") 2>&5
3442   ac_status=$?
3443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444   test $ac_status = 0; }; then :
3445   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3446 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3447 # work properly (i.e., refer to `conftest.exe'), while it won't with
3448 # `rm'.
3449 for ac_file in conftest.exe conftest conftest.*; do
3450   test -f "$ac_file" || continue
3451   case $ac_file in
3452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454           break;;
3455     * ) break;;
3456   esac
3457 done
3458 else
3459   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details" "$LINENO" 5; }
3463 fi
3464 rm -f conftest conftest$ac_cv_exeext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3466 $as_echo "$ac_cv_exeext" >&6; }
3467
3468 rm -f conftest.$ac_ext
3469 EXEEXT=$ac_cv_exeext
3470 ac_exeext=$EXEEXT
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473 #include <stdio.h>
3474 int
3475 main ()
3476 {
3477 FILE *f = fopen ("conftest.out", "w");
3478  return ferror (f) || fclose (f) != 0;
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files="$ac_clean_files conftest.out"
3485 # Check that the compiler produces executables we can run.  If not, either
3486 # the compiler is broken, or we cross compile.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3488 $as_echo_n "checking whether we are cross compiling... " >&6; }
3489 if test "$cross_compiling" != yes; then
3490   { { ac_try="$ac_link"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497   (eval "$ac_link") 2>&5
3498   ac_status=$?
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }
3501   if { ac_try='./conftest$ac_cv_exeext'
3502   { { case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508   (eval "$ac_try") 2>&5
3509   ac_status=$?
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }; }; then
3512     cross_compiling=no
3513   else
3514     if test "$cross_compiling" = maybe; then
3515         cross_compiling=yes
3516     else
3517         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot run C compiled programs.
3520 If you meant to cross compile, use \`--host'.
3521 See \`config.log' for more details" "$LINENO" 5; }
3522     fi
3523   fi
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3527
3528 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3531 $as_echo_n "checking for suffix of object files... " >&6; }
3532 if ${ac_cv_objext+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.o conftest.obj
3547 if { { ac_try="$ac_compile"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554   (eval "$ac_compile") 2>&5
3555   ac_status=$?
3556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557   test $ac_status = 0; }; then :
3558   for ac_file in conftest.o conftest.obj conftest.*; do
3559   test -f "$ac_file" || continue;
3560   case $ac_file in
3561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3562     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3563        break;;
3564   esac
3565 done
3566 else
3567   $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of object files: cannot compile
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3578 $as_echo "$ac_cv_objext" >&6; }
3579 OBJEXT=$ac_cv_objext
3580 ac_objext=$OBJEXT
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3583 if ${ac_cv_c_compiler_gnu+:} false; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592 #ifndef __GNUC__
3593        choke me
3594 #endif
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_compiler_gnu=yes
3602 else
3603   ac_compiler_gnu=no
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3611 if test $ac_compiler_gnu = yes; then
3612   GCC=yes
3613 else
3614   GCC=
3615 fi
3616 ac_test_CFLAGS=${CFLAGS+set}
3617 ac_save_CFLAGS=$CFLAGS
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3620 if ${ac_cv_prog_cc_g+:} false; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   ac_save_c_werror_flag=$ac_c_werror_flag
3624    ac_c_werror_flag=yes
3625    ac_cv_prog_cc_g=no
3626    CFLAGS="-g"
3627    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639   ac_cv_prog_cc_g=yes
3640 else
3641   CFLAGS=""
3642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644
3645 int
3646 main ()
3647 {
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654
3655 else
3656   ac_c_werror_flag=$ac_save_c_werror_flag
3657          CFLAGS="-g"
3658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660
3661 int
3662 main ()
3663 {
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670   ac_cv_prog_cc_g=yes
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677    ac_c_werror_flag=$ac_save_c_werror_flag
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3680 $as_echo "$ac_cv_prog_cc_g" >&6; }
3681 if test "$ac_test_CFLAGS" = set; then
3682   CFLAGS=$ac_save_CFLAGS
3683 elif test $ac_cv_prog_cc_g = yes; then
3684   if test "$GCC" = yes; then
3685     CFLAGS="-g -O2"
3686   else
3687     CFLAGS="-g"
3688   fi
3689 else
3690   if test "$GCC" = yes; then
3691     CFLAGS="-O2"
3692   else
3693     CFLAGS=
3694   fi
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3698 if ${ac_cv_prog_cc_c89+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   ac_cv_prog_cc_c89=no
3702 ac_save_CC=$CC
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705 #include <stdarg.h>
3706 #include <stdio.h>
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3713      char **p;
3714      int i;
3715 {
3716   return p[i];
3717 }
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3719 {
3720   char *s;
3721   va_list v;
3722   va_start (v,p);
3723   s = g (p, va_arg (v,int));
3724   va_end (v);
3725   return s;
3726 }
3727
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3729    function prototypes and stuff, but not '\xHH' hex character constants.
3730    These don't provoke an error unfortunately, instead are silently treated
3731    as 'x'.  The following induces an error, until -std is added to get
3732    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3733    array size at least.  It's necessary to write '\x00'==0 to get something
3734    that's true only with -std.  */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3736
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738    inside strings and character constants.  */
3739 #define FOO(x) 'x'
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3741
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3746 int argc;
3747 char **argv;
3748 int
3749 main ()
3750 {
3751 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3758 do
3759   CC="$ac_save_CC $ac_arg"
3760   if ac_fn_c_try_compile "$LINENO"; then :
3761   ac_cv_prog_cc_c89=$ac_arg
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext
3764   test "x$ac_cv_prog_cc_c89" != "xno" && break
3765 done
3766 rm -f conftest.$ac_ext
3767 CC=$ac_save_CC
3768
3769 fi
3770 # AC_CACHE_VAL
3771 case "x$ac_cv_prog_cc_c89" in
3772   x)
3773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 $as_echo "none needed" >&6; } ;;
3775   xno)
3776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3777 $as_echo "unsupported" >&6; } ;;
3778   *)
3779     CC="$CC $ac_cv_prog_cc_c89"
3780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3782 esac
3783 if test "x$ac_cv_prog_cc_c89" != xno; then :
3784
3785 fi
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793 depcc="$CC"   am_compiler_list=
3794
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796 $as_echo_n "checking dependency style of $depcc... " >&6; }
3797 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801   # We make a subdir and do the tests there.  Otherwise we can end up
3802   # making bogus files that we don't know about and never remove.  For
3803   # instance it was reported that on HP-UX the gcc test will end up
3804   # making a dummy file named `D' -- because `-MD' means `put the output
3805   # in D'.
3806   rm -rf conftest.dir
3807   mkdir conftest.dir
3808   # Copy depcomp to subdir because otherwise we won't find it if we're
3809   # using a relative directory.
3810   cp "$am_depcomp" conftest.dir
3811   cd conftest.dir
3812   # We will build objects and dependencies in a subdirectory because
3813   # it helps to detect inapplicable dependency modes.  For instance
3814   # both Tru64's cc and ICC support -MD to output dependencies as a
3815   # side effect of compilation, but ICC will put the dependencies in
3816   # the current directory while Tru64 will put them in the object
3817   # directory.
3818   mkdir sub
3819
3820   am_cv_CC_dependencies_compiler_type=none
3821   if test "$am_compiler_list" = ""; then
3822      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823   fi
3824   am__universal=false
3825   case " $depcc " in #(
3826      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827      esac
3828
3829   for depmode in $am_compiler_list; do
3830     # Setup a source with many dependencies, because some compilers
3831     # like to wrap large dependency lists on column 80 (with \), and
3832     # we should not choose a depcomp mode which is confused by this.
3833     #
3834     # We need to recreate these files for each test, as the compiler may
3835     # overwrite some of them when testing with obscure command lines.
3836     # This happens at least with the AIX C compiler.
3837     : > sub/conftest.c
3838     for i in 1 2 3 4 5 6; do
3839       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3841       # Solaris 8's {/usr,}/bin/sh.
3842       touch sub/conftst$i.h
3843     done
3844     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845
3846     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847     # mode.  It turns out that the SunPro C++ compiler does not properly
3848     # handle `-M -o', and we need to detect this.  Also, some Intel
3849     # versions had trouble with output in subdirs
3850     am__obj=sub/conftest.${OBJEXT-o}
3851     am__minus_obj="-o $am__obj"
3852     case $depmode in
3853     gcc)
3854       # This depmode causes a compiler race in universal mode.
3855       test "$am__universal" = false || continue
3856       ;;
3857     nosideeffect)
3858       # after this tag, mechanisms are not by side-effect, so they'll
3859       # only be used when explicitly requested
3860       if test "x$enable_dependency_tracking" = xyes; then
3861         continue
3862       else
3863         break
3864       fi
3865       ;;
3866     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867       # This compiler won't grok `-c -o', but also, the minuso test has
3868       # not run yet.  These depmodes are late enough in the game, and
3869       # so weak that their functioning should not be impacted.
3870       am__obj=conftest.${OBJEXT-o}
3871       am__minus_obj=
3872       ;;
3873     none) break ;;
3874     esac
3875     if depmode=$depmode \
3876        source=sub/conftest.c object=$am__obj \
3877        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879          >/dev/null 2>conftest.err &&
3880        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884       # icc doesn't choke on unknown options, it will just issue warnings
3885       # or remarks (even with -Werror).  So we grep stderr for any message
3886       # that says an option was ignored or not supported.
3887       # When given -MP, icc 7.0 and 7.1 complain thusly:
3888       #   icc: Command line warning: ignoring option '-M'; no argument required
3889       # The diagnosis changed in icc 8.0:
3890       #   icc: Command line remark: option '-MP' not supported
3891       if (grep 'ignoring option' conftest.err ||
3892           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893         am_cv_CC_dependencies_compiler_type=$depmode
3894         break
3895       fi
3896     fi
3897   done
3898
3899   cd ..
3900   rm -rf conftest.dir
3901 else
3902   am_cv_CC_dependencies_compiler_type=none
3903 fi
3904
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
3910  if
3911   test "x$enable_dependency_tracking" != xno \
3912   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913   am__fastdepCC_TRUE=
3914   am__fastdepCC_FALSE='#'
3915 else
3916   am__fastdepCC_TRUE='#'
3917   am__fastdepCC_FALSE=
3918 fi
3919
3920
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3923 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3924 if ${ac_cv_c_restrict+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   ac_cv_c_restrict=no
3928    # The order here caters to the fact that C++ does not require restrict.
3929    for ac_kw in __restrict __restrict__ _Restrict restrict; do
3930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h.  */
3932 typedef int * int_ptr;
3933         int foo (int_ptr $ac_kw ip) {
3934         return ip[0];
3935        }
3936 int
3937 main ()
3938 {
3939 int s[1];
3940         int * $ac_kw t = s;
3941         t[0] = 0;
3942         return foo(t)
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948   ac_cv_c_restrict=$ac_kw
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951      test "$ac_cv_c_restrict" != no && break
3952    done
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3956 $as_echo "$ac_cv_c_restrict" >&6; }
3957
3958  case $ac_cv_c_restrict in
3959    restrict) ;;
3960    no) $as_echo "#define restrict /**/" >>confdefs.h
3961  ;;
3962    *)  cat >>confdefs.h <<_ACEOF
3963 #define restrict $ac_cv_c_restrict
3964 _ACEOF
3965  ;;
3966  esac
3967
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 if test -n "$ac_tool_prefix"; then
3975   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_CC+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   if test -n "$CC"; then
3983   ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997   done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4006 else
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012 fi
4013 if test -z "$ac_cv_prog_CC"; then
4014   ac_ct_CC=$CC
4015   # Extract the first word of "gcc", so it can be a program name with args.
4016 set dummy gcc; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4020   $as_echo_n "(cached) " >&6
4021 else
4022   if test -n "$ac_ct_CC"; then
4023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030     for ac_exec_ext in '' $ac_executable_extensions; do
4031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032     ac_cv_prog_ac_ct_CC="gcc"
4033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037   done
4038 IFS=$as_save_IFS
4039
4040 fi
4041 fi
4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4046 else
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 fi
4050
4051   if test "x$ac_ct_CC" = x; then
4052     CC=""
4053   else
4054     case $cross_compiling:$ac_tool_warned in
4055 yes:)
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058 ac_tool_warned=yes ;;
4059 esac
4060     CC=$ac_ct_CC
4061   fi
4062 else
4063   CC="$ac_cv_prog_CC"
4064 fi
4065
4066 if test -z "$CC"; then
4067           if test -n "$ac_tool_prefix"; then
4068     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}cc; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_CC+:} false; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075   if test -n "$CC"; then
4076   ac_cv_prog_CC="$CC" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083     for ac_exec_ext in '' $ac_executable_extensions; do
4084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085     ac_cv_prog_CC="${ac_tool_prefix}cc"
4086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087     break 2
4088   fi
4089 done
4090   done
4091 IFS=$as_save_IFS
4092
4093 fi
4094 fi
4095 CC=$ac_cv_prog_CC
4096 if test -n "$CC"; then
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4098 $as_echo "$CC" >&6; }
4099 else
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 fi
4103
4104
4105   fi
4106 fi
4107 if test -z "$CC"; then
4108   # Extract the first word of "cc", so it can be a program name with args.
4109 set dummy cc; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if ${ac_cv_prog_CC+:} false; then :
4113   $as_echo_n "(cached) " >&6
4114 else
4115   if test -n "$CC"; then
4116   ac_cv_prog_CC="$CC" # Let the user override the test.
4117 else
4118   ac_prog_rejected=no
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4127        ac_prog_rejected=yes
4128        continue
4129      fi
4130     ac_cv_prog_CC="cc"
4131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135   done
4136 IFS=$as_save_IFS
4137
4138 if test $ac_prog_rejected = yes; then
4139   # We found a bogon in the path, so make sure we never use it.
4140   set dummy $ac_cv_prog_CC
4141   shift
4142   if test $# != 0; then
4143     # We chose a different compiler from the bogus one.
4144     # However, it has the same basename, so the bogon will be chosen
4145     # first if we set CC to just the basename; use the full file name.
4146     shift
4147     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4148   fi
4149 fi
4150 fi
4151 fi
4152 CC=$ac_cv_prog_CC
4153 if test -n "$CC"; then
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 $as_echo "$CC" >&6; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162 fi
4163 if test -z "$CC"; then
4164   if test -n "$ac_tool_prefix"; then
4165   for ac_prog in cl.exe
4166   do
4167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   if test -n "$CC"; then
4175   ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180   IFS=$as_save_IFS
4181   test -z "$as_dir" && as_dir=.
4182     for ac_exec_ext in '' $ac_executable_extensions; do
4183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186     break 2
4187   fi
4188 done
4189   done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203
4204     test -n "$CC" && break
4205   done
4206 fi
4207 if test -z "$CC"; then
4208   ac_ct_CC=$CC
4209   for ac_prog in cl.exe
4210 do
4211   # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if test -n "$ac_ct_CC"; then
4219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226     for ac_exec_ext in '' $ac_executable_extensions; do
4227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228     ac_cv_prog_ac_ct_CC="$ac_prog"
4229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230     break 2
4231   fi
4232 done
4233   done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 $as_echo "$ac_ct_CC" >&6; }
4242 else
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247
4248   test -n "$ac_ct_CC" && break
4249 done
4250
4251   if test "x$ac_ct_CC" = x; then
4252     CC=""
4253   else
4254     case $cross_compiling:$ac_tool_warned in
4255 yes:)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260     CC=$ac_ct_CC
4261   fi
4262 fi
4263
4264 fi
4265
4266
4267 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "no acceptable C compiler found in \$PATH
4270 See \`config.log' for more details" "$LINENO" 5; }
4271
4272 # Provide some information about the compiler.
4273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4274 set X $ac_compile
4275 ac_compiler=$2
4276 for ac_option in --version -v -V -qversion; do
4277   { { ac_try="$ac_compiler $ac_option >&5"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4285   ac_status=$?
4286   if test -s conftest.err; then
4287     sed '10a\
4288 ... rest of stderr output deleted ...
4289          10q' conftest.err >conftest.er1
4290     cat conftest.er1 >&5
4291   fi
4292   rm -f conftest.er1 conftest.err
4293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294   test $ac_status = 0; }
4295 done
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4299 if ${ac_cv_c_compiler_gnu+:} false; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h.  */
4304
4305 int
4306 main ()
4307 {
4308 #ifndef __GNUC__
4309        choke me
4310 #endif
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317   ac_compiler_gnu=yes
4318 else
4319   ac_compiler_gnu=no
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4323
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4327 if test $ac_compiler_gnu = yes; then
4328   GCC=yes
4329 else
4330   GCC=
4331 fi
4332 ac_test_CFLAGS=${CFLAGS+set}
4333 ac_save_CFLAGS=$CFLAGS
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4336 if ${ac_cv_prog_cc_g+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   ac_save_c_werror_flag=$ac_c_werror_flag
4340    ac_c_werror_flag=yes
4341    ac_cv_prog_cc_g=no
4342    CFLAGS="-g"
4343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355   ac_cv_prog_cc_g=yes
4356 else
4357   CFLAGS=""
4358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360
4361 int
4362 main ()
4363 {
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370
4371 else
4372   ac_c_werror_flag=$ac_save_c_werror_flag
4373          CFLAGS="-g"
4374          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376
4377 int
4378 main ()
4379 {
4380
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386   ac_cv_prog_cc_g=yes
4387 fi
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393    ac_c_werror_flag=$ac_save_c_werror_flag
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4396 $as_echo "$ac_cv_prog_cc_g" >&6; }
4397 if test "$ac_test_CFLAGS" = set; then
4398   CFLAGS=$ac_save_CFLAGS
4399 elif test $ac_cv_prog_cc_g = yes; then
4400   if test "$GCC" = yes; then
4401     CFLAGS="-g -O2"
4402   else
4403     CFLAGS="-g"
4404   fi
4405 else
4406   if test "$GCC" = yes; then
4407     CFLAGS="-O2"
4408   else
4409     CFLAGS=
4410   fi
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4414 if ${ac_cv_prog_cc_c89+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   ac_cv_prog_cc_c89=no
4418 ac_save_CC=$CC
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421 #include <stdarg.h>
4422 #include <stdio.h>
4423 #include <sys/types.h>
4424 #include <sys/stat.h>
4425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4426 struct buf { int x; };
4427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4428 static char *e (p, i)
4429      char **p;
4430      int i;
4431 {
4432   return p[i];
4433 }
4434 static char *f (char * (*g) (char **, int), char **p, ...)
4435 {
4436   char *s;
4437   va_list v;
4438   va_start (v,p);
4439   s = g (p, va_arg (v,int));
4440   va_end (v);
4441   return s;
4442 }
4443
4444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4445    function prototypes and stuff, but not '\xHH' hex character constants.
4446    These don't provoke an error unfortunately, instead are silently treated
4447    as 'x'.  The following induces an error, until -std is added to get
4448    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4449    array size at least.  It's necessary to write '\x00'==0 to get something
4450    that's true only with -std.  */
4451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4452
4453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4454    inside strings and character constants.  */
4455 #define FOO(x) 'x'
4456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4457
4458 int test (int i, double x);
4459 struct s1 {int (*f) (int a);};
4460 struct s2 {int (*f) (double a);};
4461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4462 int argc;
4463 char **argv;
4464 int
4465 main ()
4466 {
4467 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4473         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4474 do
4475   CC="$ac_save_CC $ac_arg"
4476   if ac_fn_c_try_compile "$LINENO"; then :
4477   ac_cv_prog_cc_c89=$ac_arg
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext
4480   test "x$ac_cv_prog_cc_c89" != "xno" && break
4481 done
4482 rm -f conftest.$ac_ext
4483 CC=$ac_save_CC
4484
4485 fi
4486 # AC_CACHE_VAL
4487 case "x$ac_cv_prog_cc_c89" in
4488   x)
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4490 $as_echo "none needed" >&6; } ;;
4491   xno)
4492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4493 $as_echo "unsupported" >&6; } ;;
4494   *)
4495     CC="$CC $ac_cv_prog_cc_c89"
4496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4498 esac
4499 if test "x$ac_cv_prog_cc_c89" != xno; then :
4500
4501 fi
4502
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509 depcc="$CC"   am_compiler_list=
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4512 $as_echo_n "checking dependency style of $depcc... " >&6; }
4513 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4517   # We make a subdir and do the tests there.  Otherwise we can end up
4518   # making bogus files that we don't know about and never remove.  For
4519   # instance it was reported that on HP-UX the gcc test will end up
4520   # making a dummy file named `D' -- because `-MD' means `put the output
4521   # in D'.
4522   rm -rf conftest.dir
4523   mkdir conftest.dir
4524   # Copy depcomp to subdir because otherwise we won't find it if we're
4525   # using a relative directory.
4526   cp "$am_depcomp" conftest.dir
4527   cd conftest.dir
4528   # We will build objects and dependencies in a subdirectory because
4529   # it helps to detect inapplicable dependency modes.  For instance
4530   # both Tru64's cc and ICC support -MD to output dependencies as a
4531   # side effect of compilation, but ICC will put the dependencies in
4532   # the current directory while Tru64 will put them in the object
4533   # directory.
4534   mkdir sub
4535
4536   am_cv_CC_dependencies_compiler_type=none
4537   if test "$am_compiler_list" = ""; then
4538      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4539   fi
4540   am__universal=false
4541   case " $depcc " in #(
4542      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4543      esac
4544
4545   for depmode in $am_compiler_list; do
4546     # Setup a source with many dependencies, because some compilers
4547     # like to wrap large dependency lists on column 80 (with \), and
4548     # we should not choose a depcomp mode which is confused by this.
4549     #
4550     # We need to recreate these files for each test, as the compiler may
4551     # overwrite some of them when testing with obscure command lines.
4552     # This happens at least with the AIX C compiler.
4553     : > sub/conftest.c
4554     for i in 1 2 3 4 5 6; do
4555       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4556       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4557       # Solaris 8's {/usr,}/bin/sh.
4558       touch sub/conftst$i.h
4559     done
4560     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4561
4562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4563     # mode.  It turns out that the SunPro C++ compiler does not properly
4564     # handle `-M -o', and we need to detect this.  Also, some Intel
4565     # versions had trouble with output in subdirs
4566     am__obj=sub/conftest.${OBJEXT-o}
4567     am__minus_obj="-o $am__obj"
4568     case $depmode in
4569     gcc)
4570       # This depmode causes a compiler race in universal mode.
4571       test "$am__universal" = false || continue
4572       ;;
4573     nosideeffect)
4574       # after this tag, mechanisms are not by side-effect, so they'll
4575       # only be used when explicitly requested
4576       if test "x$enable_dependency_tracking" = xyes; then
4577         continue
4578       else
4579         break
4580       fi
4581       ;;
4582     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4583       # This compiler won't grok `-c -o', but also, the minuso test has
4584       # not run yet.  These depmodes are late enough in the game, and
4585       # so weak that their functioning should not be impacted.
4586       am__obj=conftest.${OBJEXT-o}
4587       am__minus_obj=
4588       ;;
4589     none) break ;;
4590     esac
4591     if depmode=$depmode \
4592        source=sub/conftest.c object=$am__obj \
4593        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4594        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4595          >/dev/null 2>conftest.err &&
4596        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4597        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4598        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4599        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4600       # icc doesn't choke on unknown options, it will just issue warnings
4601       # or remarks (even with -Werror).  So we grep stderr for any message
4602       # that says an option was ignored or not supported.
4603       # When given -MP, icc 7.0 and 7.1 complain thusly:
4604       #   icc: Command line warning: ignoring option '-M'; no argument required
4605       # The diagnosis changed in icc 8.0:
4606       #   icc: Command line remark: option '-MP' not supported
4607       if (grep 'ignoring option' conftest.err ||
4608           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4609         am_cv_CC_dependencies_compiler_type=$depmode
4610         break
4611       fi
4612     fi
4613   done
4614
4615   cd ..
4616   rm -rf conftest.dir
4617 else
4618   am_cv_CC_dependencies_compiler_type=none
4619 fi
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4623 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4624 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4625
4626  if
4627   test "x$enable_dependency_tracking" != xno \
4628   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4629   am__fastdepCC_TRUE=
4630   am__fastdepCC_FALSE='#'
4631 else
4632   am__fastdepCC_TRUE='#'
4633   am__fastdepCC_FALSE=
4634 fi
4635
4636
4637 if test "x$CC" != xcc; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4639 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4642 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4643 fi
4644 set dummy $CC; ac_cc=`$as_echo "$2" |
4645                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4646 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h.  */
4651
4652 int
4653 main ()
4654 {
4655
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 # Make sure it works both with $CC and with simple cc.
4661 # We do the test twice because some compilers refuse to overwrite an
4662 # existing .o file with -o, though they will create one.
4663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4664 rm -f conftest2.*
4665 if { { case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674   test $ac_status = 0; } &&
4675    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681   (eval "$ac_try") 2>&5
4682   ac_status=$?
4683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684   test $ac_status = 0; };
4685 then
4686   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4687   if test "x$CC" != xcc; then
4688     # Test first that cc exists at all.
4689     if { ac_try='cc -c conftest.$ac_ext >&5'
4690   { { case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696   (eval "$ac_try") 2>&5
4697   ac_status=$?
4698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699   test $ac_status = 0; }; }; then
4700       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4701       rm -f conftest2.*
4702       if { { case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4707 $as_echo "$ac_try_echo"; } >&5
4708   (eval "$ac_try") 2>&5
4709   ac_status=$?
4710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711   test $ac_status = 0; } &&
4712          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4717 $as_echo "$ac_try_echo"; } >&5
4718   (eval "$ac_try") 2>&5
4719   ac_status=$?
4720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721   test $ac_status = 0; };
4722       then
4723         # cc works too.
4724         :
4725       else
4726         # cc exists but doesn't like -o.
4727         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4728       fi
4729     fi
4730   fi
4731 else
4732   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4733 fi
4734 rm -f core conftest*
4735
4736 fi
4737 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739 $as_echo "yes" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743
4744 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4745
4746 fi
4747
4748 # FIXME: we rely on the cache variable name because
4749 # there is no other way.
4750 set dummy $CC
4751 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4752 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4753 if test "$am_t" != yes; then
4754    # Losing compiler, so override with the script.
4755    # FIXME: It is wrong to rewrite CC.
4756    # But if we don't then we get into trouble of one sort or another.
4757    # A longer-term fix would be to have automake use am__CC in this case,
4758    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4759    CC="$am_aux_dir/compile $CC"
4760 fi
4761
4762
4763
4764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4765 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4766 if ${ac_cv_prog_cc_pie+:} false; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769
4770                 echo 'void f(){}' > conftest.c
4771                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4772                         ac_cv_prog_cc_pie=yes
4773                 else
4774                         ac_cv_prog_cc_pie=no
4775                 fi
4776                 rm -rf conftest*
4777
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4780 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4781
4782
4783 mkdir_p="$MKDIR_P"
4784 case $mkdir_p in
4785   [\\/$]* | ?:[\\/]*) ;;
4786   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4787 esac
4788
4789
4790
4791
4792
4793 # Check whether --enable-static was given.
4794 if test "${enable_static+set}" = set; then :
4795   enableval=$enable_static; p=${PACKAGE-default}
4796     case $enableval in
4797     yes) enable_static=yes ;;
4798     no) enable_static=no ;;
4799     *)
4800      enable_static=no
4801       # Look at the argument we got.  We use all the common list separators.
4802       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4803       for pkg in $enableval; do
4804         IFS="$lt_save_ifs"
4805         if test "X$pkg" = "X$p"; then
4806           enable_static=yes
4807         fi
4808       done
4809       IFS="$lt_save_ifs"
4810       ;;
4811     esac
4812 else
4813   enable_static=no
4814 fi
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 case `pwd` in
4825   *\ * | *\     *)
4826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4828 esac
4829
4830
4831
4832 macro_version='2.4.2'
4833 macro_revision='1.3337'
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 ltmain="$ac_aux_dir/ltmain.sh"
4848
4849 # Make sure we can run config.sub.
4850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4851   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4854 $as_echo_n "checking build system type... " >&6; }
4855 if ${ac_cv_build+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   ac_build_alias=$build_alias
4859 test "x$ac_build_alias" = x &&
4860   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4861 test "x$ac_build_alias" = x &&
4862   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4864   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4865
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4868 $as_echo "$ac_cv_build" >&6; }
4869 case $ac_cv_build in
4870 *-*-*) ;;
4871 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4872 esac
4873 build=$ac_cv_build
4874 ac_save_IFS=$IFS; IFS='-'
4875 set x $ac_cv_build
4876 shift
4877 build_cpu=$1
4878 build_vendor=$2
4879 shift; shift
4880 # Remember, the first character of IFS is used to create $*,
4881 # except with old shells:
4882 build_os=$*
4883 IFS=$ac_save_IFS
4884 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4888 $as_echo_n "checking host system type... " >&6; }
4889 if ${ac_cv_host+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   if test "x$host_alias" = x; then
4893   ac_cv_host=$ac_cv_build
4894 else
4895   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4896     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4897 fi
4898
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4901 $as_echo "$ac_cv_host" >&6; }
4902 case $ac_cv_host in
4903 *-*-*) ;;
4904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4905 esac
4906 host=$ac_cv_host
4907 ac_save_IFS=$IFS; IFS='-'
4908 set x $ac_cv_host
4909 shift
4910 host_cpu=$1
4911 host_vendor=$2
4912 shift; shift
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4915 host_os=$*
4916 IFS=$ac_save_IFS
4917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4918
4919
4920 # Backslashify metacharacters that are still active within
4921 # double-quoted strings.
4922 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4923
4924 # Same as above, but do not quote variable references.
4925 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4926
4927 # Sed substitution to delay expansion of an escaped shell variable in a
4928 # double_quote_subst'ed string.
4929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4930
4931 # Sed substitution to delay expansion of an escaped single quote.
4932 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4933
4934 # Sed substitution to avoid accidental globbing in evaled expressions
4935 no_glob_subst='s/\*/\\\*/g'
4936
4937 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4938 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4939 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4942 $as_echo_n "checking how to print strings... " >&6; }
4943 # Test print first, because it will be a builtin if present.
4944 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4945    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4946   ECHO='print -r --'
4947 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4948   ECHO='printf %s\n'
4949 else
4950   # Use this function as a fallback that always works.
4951   func_fallback_echo ()
4952   {
4953     eval 'cat <<_LTECHO_EOF
4954 $1
4955 _LTECHO_EOF'
4956   }
4957   ECHO='func_fallback_echo'
4958 fi
4959
4960 # func_echo_all arg...
4961 # Invoke $ECHO with all args, space-separated.
4962 func_echo_all ()
4963 {
4964     $ECHO ""
4965 }
4966
4967 case "$ECHO" in
4968   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4969 $as_echo "printf" >&6; } ;;
4970   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4971 $as_echo "print -r" >&6; } ;;
4972   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4973 $as_echo "cat" >&6; } ;;
4974 esac
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4990 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4991 if ${ac_cv_path_SED+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4995      for ac_i in 1 2 3 4 5 6 7; do
4996        ac_script="$ac_script$as_nl$ac_script"
4997      done
4998      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4999      { ac_script=; unset ac_script;}
5000      if test -z "$SED"; then
5001   ac_path_SED_found=false
5002   # Loop through the user's path and test for each of PROGNAME-LIST
5003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008     for ac_prog in sed gsed; do
5009     for ac_exec_ext in '' $ac_executable_extensions; do
5010       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5011       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5012 # Check for GNU ac_path_SED and select it if it is found.
5013   # Check for GNU $ac_path_SED
5014 case `"$ac_path_SED" --version 2>&1` in
5015 *GNU*)
5016   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5017 *)
5018   ac_count=0
5019   $as_echo_n 0123456789 >"conftest.in"
5020   while :
5021   do
5022     cat "conftest.in" "conftest.in" >"conftest.tmp"
5023     mv "conftest.tmp" "conftest.in"
5024     cp "conftest.in" "conftest.nl"
5025     $as_echo '' >> "conftest.nl"
5026     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028     as_fn_arith $ac_count + 1 && ac_count=$as_val
5029     if test $ac_count -gt ${ac_path_SED_max-0}; then
5030       # Best one so far, save it but keep looking for a better one
5031       ac_cv_path_SED="$ac_path_SED"
5032       ac_path_SED_max=$ac_count
5033     fi
5034     # 10*(2^10) chars as input seems more than enough
5035     test $ac_count -gt 10 && break
5036   done
5037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 esac
5039
5040       $ac_path_SED_found && break 3
5041     done
5042   done
5043   done
5044 IFS=$as_save_IFS
5045   if test -z "$ac_cv_path_SED"; then
5046     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5047   fi
5048 else
5049   ac_cv_path_SED=$SED
5050 fi
5051
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5054 $as_echo "$ac_cv_path_SED" >&6; }
5055  SED="$ac_cv_path_SED"
5056   rm -f conftest.sed
5057
5058 test -z "$SED" && SED=sed
5059 Xsed="$SED -e 1s/^X//"
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5072 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5073 if ${ac_cv_path_GREP+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -z "$GREP"; then
5077   ac_path_GREP_found=false
5078   # Loop through the user's path and test for each of PROGNAME-LIST
5079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_prog in grep ggrep; do
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5087       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5088 # Check for GNU ac_path_GREP and select it if it is found.
5089   # Check for GNU $ac_path_GREP
5090 case `"$ac_path_GREP" --version 2>&1` in
5091 *GNU*)
5092   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5093 *)
5094   ac_count=0
5095   $as_echo_n 0123456789 >"conftest.in"
5096   while :
5097   do
5098     cat "conftest.in" "conftest.in" >"conftest.tmp"
5099     mv "conftest.tmp" "conftest.in"
5100     cp "conftest.in" "conftest.nl"
5101     $as_echo 'GREP' >> "conftest.nl"
5102     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5103     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5104     as_fn_arith $ac_count + 1 && ac_count=$as_val
5105     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5106       # Best one so far, save it but keep looking for a better one
5107       ac_cv_path_GREP="$ac_path_GREP"
5108       ac_path_GREP_max=$ac_count
5109     fi
5110     # 10*(2^10) chars as input seems more than enough
5111     test $ac_count -gt 10 && break
5112   done
5113   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5114 esac
5115
5116       $ac_path_GREP_found && break 3
5117     done
5118   done
5119   done
5120 IFS=$as_save_IFS
5121   if test -z "$ac_cv_path_GREP"; then
5122     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5123   fi
5124 else
5125   ac_cv_path_GREP=$GREP
5126 fi
5127
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5130 $as_echo "$ac_cv_path_GREP" >&6; }
5131  GREP="$ac_cv_path_GREP"
5132
5133
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5135 $as_echo_n "checking for egrep... " >&6; }
5136 if ${ac_cv_path_EGREP+:} false; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5140    then ac_cv_path_EGREP="$GREP -E"
5141    else
5142      if test -z "$EGREP"; then
5143   ac_path_EGREP_found=false
5144   # Loop through the user's path and test for each of PROGNAME-LIST
5145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_prog in egrep; do
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5153       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5154 # Check for GNU ac_path_EGREP and select it if it is found.
5155   # Check for GNU $ac_path_EGREP
5156 case `"$ac_path_EGREP" --version 2>&1` in
5157 *GNU*)
5158   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5159 *)
5160   ac_count=0
5161   $as_echo_n 0123456789 >"conftest.in"
5162   while :
5163   do
5164     cat "conftest.in" "conftest.in" >"conftest.tmp"
5165     mv "conftest.tmp" "conftest.in"
5166     cp "conftest.in" "conftest.nl"
5167     $as_echo 'EGREP' >> "conftest.nl"
5168     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5169     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5170     as_fn_arith $ac_count + 1 && ac_count=$as_val
5171     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5172       # Best one so far, save it but keep looking for a better one
5173       ac_cv_path_EGREP="$ac_path_EGREP"
5174       ac_path_EGREP_max=$ac_count
5175     fi
5176     # 10*(2^10) chars as input seems more than enough
5177     test $ac_count -gt 10 && break
5178   done
5179   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5180 esac
5181
5182       $ac_path_EGREP_found && break 3
5183     done
5184   done
5185   done
5186 IFS=$as_save_IFS
5187   if test -z "$ac_cv_path_EGREP"; then
5188     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5189   fi
5190 else
5191   ac_cv_path_EGREP=$EGREP
5192 fi
5193
5194    fi
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198  EGREP="$ac_cv_path_EGREP"
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5202 $as_echo_n "checking for fgrep... " >&6; }
5203 if ${ac_cv_path_FGREP+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5207    then ac_cv_path_FGREP="$GREP -F"
5208    else
5209      if test -z "$FGREP"; then
5210   ac_path_FGREP_found=false
5211   # Loop through the user's path and test for each of PROGNAME-LIST
5212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217     for ac_prog in fgrep; do
5218     for ac_exec_ext in '' $ac_executable_extensions; do
5219       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5220       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5221 # Check for GNU ac_path_FGREP and select it if it is found.
5222   # Check for GNU $ac_path_FGREP
5223 case `"$ac_path_FGREP" --version 2>&1` in
5224 *GNU*)
5225   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5226 *)
5227   ac_count=0
5228   $as_echo_n 0123456789 >"conftest.in"
5229   while :
5230   do
5231     cat "conftest.in" "conftest.in" >"conftest.tmp"
5232     mv "conftest.tmp" "conftest.in"
5233     cp "conftest.in" "conftest.nl"
5234     $as_echo 'FGREP' >> "conftest.nl"
5235     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237     as_fn_arith $ac_count + 1 && ac_count=$as_val
5238     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5239       # Best one so far, save it but keep looking for a better one
5240       ac_cv_path_FGREP="$ac_path_FGREP"
5241       ac_path_FGREP_max=$ac_count
5242     fi
5243     # 10*(2^10) chars as input seems more than enough
5244     test $ac_count -gt 10 && break
5245   done
5246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 esac
5248
5249       $ac_path_FGREP_found && break 3
5250     done
5251   done
5252   done
5253 IFS=$as_save_IFS
5254   if test -z "$ac_cv_path_FGREP"; then
5255     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256   fi
5257 else
5258   ac_cv_path_FGREP=$FGREP
5259 fi
5260
5261    fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5264 $as_echo "$ac_cv_path_FGREP" >&6; }
5265  FGREP="$ac_cv_path_FGREP"
5266
5267
5268 test -z "$GREP" && GREP=grep
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 # Check whether --with-gnu-ld was given.
5289 if test "${with_gnu_ld+set}" = set; then :
5290   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5291 else
5292   with_gnu_ld=no
5293 fi
5294
5295 ac_prog=ld
5296 if test "$GCC" = yes; then
5297   # Check if gcc -print-prog-name=ld gives a path.
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5299 $as_echo_n "checking for ld used by $CC... " >&6; }
5300   case $host in
5301   *-*-mingw*)
5302     # gcc leaves a trailing carriage return which upsets mingw
5303     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5304   *)
5305     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5306   esac
5307   case $ac_prog in
5308     # Accept absolute paths.
5309     [\\/]* | ?:[\\/]*)
5310       re_direlt='/[^/][^/]*/\.\./'
5311       # Canonicalize the pathname of ld
5312       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5313       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5314         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5315       done
5316       test -z "$LD" && LD="$ac_prog"
5317       ;;
5318   "")
5319     # If it fails, then pretend we aren't using GCC.
5320     ac_prog=ld
5321     ;;
5322   *)
5323     # If it is relative, then search for the first ld in PATH.
5324     with_gnu_ld=unknown
5325     ;;
5326   esac
5327 elif test "$with_gnu_ld" = yes; then
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5329 $as_echo_n "checking for GNU ld... " >&6; }
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5332 $as_echo_n "checking for non-GNU ld... " >&6; }
5333 fi
5334 if ${lt_cv_path_LD+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -z "$LD"; then
5338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5339   for ac_dir in $PATH; do
5340     IFS="$lt_save_ifs"
5341     test -z "$ac_dir" && ac_dir=.
5342     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5343       lt_cv_path_LD="$ac_dir/$ac_prog"
5344       # Check to see if the program is GNU ld.  I'd rather use --version,
5345       # but apparently some variants of GNU ld only accept -v.
5346       # Break only if it was the GNU/non-GNU ld that we prefer.
5347       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5348       *GNU* | *'with BFD'*)
5349         test "$with_gnu_ld" != no && break
5350         ;;
5351       *)
5352         test "$with_gnu_ld" != yes && break
5353         ;;
5354       esac
5355     fi
5356   done
5357   IFS="$lt_save_ifs"
5358 else
5359   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5360 fi
5361 fi
5362
5363 LD="$lt_cv_path_LD"
5364 if test -n "$LD"; then
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5366 $as_echo "$LD" >&6; }
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5373 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5374 if ${lt_cv_prog_gnu_ld+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5378 case `$LD -v 2>&1 </dev/null` in
5379 *GNU* | *'with BFD'*)
5380   lt_cv_prog_gnu_ld=yes
5381   ;;
5382 *)
5383   lt_cv_prog_gnu_ld=no
5384   ;;
5385 esac
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5388 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5389 with_gnu_ld=$lt_cv_prog_gnu_ld
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5400 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5401 if ${lt_cv_path_NM+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   if test -n "$NM"; then
5405   # Let the user override the test.
5406   lt_cv_path_NM="$NM"
5407 else
5408   lt_nm_to_check="${ac_tool_prefix}nm"
5409   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5410     lt_nm_to_check="$lt_nm_to_check nm"
5411   fi
5412   for lt_tmp_nm in $lt_nm_to_check; do
5413     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5414     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5415       IFS="$lt_save_ifs"
5416       test -z "$ac_dir" && ac_dir=.
5417       tmp_nm="$ac_dir/$lt_tmp_nm"
5418       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5419         # Check to see if the nm accepts a BSD-compat flag.
5420         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5421         #   nm: unknown option "B" ignored
5422         # Tru64's nm complains that /dev/null is an invalid object file
5423         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5424         */dev/null* | *'Invalid file or object type'*)
5425           lt_cv_path_NM="$tmp_nm -B"
5426           break
5427           ;;
5428         *)
5429           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5430           */dev/null*)
5431             lt_cv_path_NM="$tmp_nm -p"
5432             break
5433             ;;
5434           *)
5435             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5436             continue # so that we can try to find one that supports BSD flags
5437             ;;
5438           esac
5439           ;;
5440         esac
5441       fi
5442     done
5443     IFS="$lt_save_ifs"
5444   done
5445   : ${lt_cv_path_NM=no}
5446 fi
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5449 $as_echo "$lt_cv_path_NM" >&6; }
5450 if test "$lt_cv_path_NM" != "no"; then
5451   NM="$lt_cv_path_NM"
5452 else
5453   # Didn't find any BSD compatible name lister, look for dumpbin.
5454   if test -n "$DUMPBIN"; then :
5455     # Let the user override the test.
5456   else
5457     if test -n "$ac_tool_prefix"; then
5458   for ac_prog in dumpbin "link -dump"
5459   do
5460     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_DUMPBIN+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$DUMPBIN"; then
5468   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 DUMPBIN=$ac_cv_prog_DUMPBIN
5488 if test -n "$DUMPBIN"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5490 $as_echo "$DUMPBIN" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497     test -n "$DUMPBIN" && break
5498   done
5499 fi
5500 if test -z "$DUMPBIN"; then
5501   ac_ct_DUMPBIN=$DUMPBIN
5502   for ac_prog in dumpbin "link -dump"
5503 do
5504   # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -n "$ac_ct_DUMPBIN"; then
5512   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5532 if test -n "$ac_ct_DUMPBIN"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5534 $as_echo "$ac_ct_DUMPBIN" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541   test -n "$ac_ct_DUMPBIN" && break
5542 done
5543
5544   if test "x$ac_ct_DUMPBIN" = x; then
5545     DUMPBIN=":"
5546   else
5547     case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553     DUMPBIN=$ac_ct_DUMPBIN
5554   fi
5555 fi
5556
5557     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5558     *COFF*)
5559       DUMPBIN="$DUMPBIN -symbols"
5560       ;;
5561     *)
5562       DUMPBIN=:
5563       ;;
5564     esac
5565   fi
5566
5567   if test "$DUMPBIN" != ":"; then
5568     NM="$DUMPBIN"
5569   fi
5570 fi
5571 test -z "$NM" && NM=nm
5572
5573
5574
5575
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5579 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5580 if ${lt_cv_nm_interface+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   lt_cv_nm_interface="BSD nm"
5584   echo "int some_variable = 0;" > conftest.$ac_ext
5585   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5586   (eval "$ac_compile" 2>conftest.err)
5587   cat conftest.err >&5
5588   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5589   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5590   cat conftest.err >&5
5591   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5592   cat conftest.out >&5
5593   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5594     lt_cv_nm_interface="MS dumpbin"
5595   fi
5596   rm -f conftest*
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5599 $as_echo "$lt_cv_nm_interface" >&6; }
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5602 $as_echo_n "checking whether ln -s works... " >&6; }
5603 LN_S=$as_ln_s
5604 if test "$LN_S" = "ln -s"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5609 $as_echo "no, using $LN_S" >&6; }
5610 fi
5611
5612 # find the maximum length of command line arguments
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5614 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5615 if ${lt_cv_sys_max_cmd_len+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618     i=0
5619   teststring="ABCD"
5620
5621   case $build_os in
5622   msdosdjgpp*)
5623     # On DJGPP, this test can blow up pretty badly due to problems in libc
5624     # (any single argument exceeding 2000 bytes causes a buffer overrun
5625     # during glob expansion).  Even if it were fixed, the result of this
5626     # check would be larger than it should be.
5627     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5628     ;;
5629
5630   gnu*)
5631     # Under GNU Hurd, this test is not required because there is
5632     # no limit to the length of command line arguments.
5633     # Libtool will interpret -1 as no limit whatsoever
5634     lt_cv_sys_max_cmd_len=-1;
5635     ;;
5636
5637   cygwin* | mingw* | cegcc*)
5638     # On Win9x/ME, this test blows up -- it succeeds, but takes
5639     # about 5 minutes as the teststring grows exponentially.
5640     # Worse, since 9x/ME are not pre-emptively multitasking,
5641     # you end up with a "frozen" computer, even though with patience
5642     # the test eventually succeeds (with a max line length of 256k).
5643     # Instead, let's just punt: use the minimum linelength reported by
5644     # all of the supported platforms: 8192 (on NT/2K/XP).
5645     lt_cv_sys_max_cmd_len=8192;
5646     ;;
5647
5648   mint*)
5649     # On MiNT this can take a long time and run out of memory.
5650     lt_cv_sys_max_cmd_len=8192;
5651     ;;
5652
5653   amigaos*)
5654     # On AmigaOS with pdksh, this test takes hours, literally.
5655     # So we just punt and use a minimum line length of 8192.
5656     lt_cv_sys_max_cmd_len=8192;
5657     ;;
5658
5659   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5660     # This has been around since 386BSD, at least.  Likely further.
5661     if test -x /sbin/sysctl; then
5662       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5663     elif test -x /usr/sbin/sysctl; then
5664       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5665     else
5666       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5667     fi
5668     # And add a safety zone
5669     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5670     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5671     ;;
5672
5673   interix*)
5674     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5675     lt_cv_sys_max_cmd_len=196608
5676     ;;
5677
5678   os2*)
5679     # The test takes a long time on OS/2.
5680     lt_cv_sys_max_cmd_len=8192
5681     ;;
5682
5683   osf*)
5684     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5685     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5686     # nice to cause kernel panics so lets avoid the loop below.
5687     # First set a reasonable default.
5688     lt_cv_sys_max_cmd_len=16384
5689     #
5690     if test -x /sbin/sysconfig; then
5691       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5692         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5693       esac
5694     fi
5695     ;;
5696   sco3.2v5*)
5697     lt_cv_sys_max_cmd_len=102400
5698     ;;
5699   sysv5* | sco5v6* | sysv4.2uw2*)
5700     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5701     if test -n "$kargmax"; then
5702       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5703     else
5704       lt_cv_sys_max_cmd_len=32768
5705     fi
5706     ;;
5707   *)
5708     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5709     if test -n "$lt_cv_sys_max_cmd_len"; then
5710       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712     else
5713       # Make teststring a little bigger before we do anything with it.
5714       # a 1K string should be a reasonable start.
5715       for i in 1 2 3 4 5 6 7 8 ; do
5716         teststring=$teststring$teststring
5717       done
5718       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719       # If test is not a shell built-in, we'll probably end up computing a
5720       # maximum length that is only half of the actual maximum length, but
5721       # we can't tell.
5722       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5723                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5724               test $i != 17 # 1/2 MB should be enough
5725       do
5726         i=`expr $i + 1`
5727         teststring=$teststring$teststring
5728       done
5729       # Only check the string length outside the loop.
5730       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5731       teststring=
5732       # Add a significant safety factor because C++ compilers can tack on
5733       # massive amounts of additional arguments before passing them to the
5734       # linker.  It appears as though 1/2 is a usable value.
5735       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5736     fi
5737     ;;
5738   esac
5739
5740 fi
5741
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747 $as_echo "none" >&6; }
5748 fi
5749 max_cmd_len=$lt_cv_sys_max_cmd_len
5750
5751
5752
5753
5754
5755
5756 : ${CP="cp -f"}
5757 : ${MV="mv -f"}
5758 : ${RM="rm -f"}
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5762 # Try some XSI features
5763 xsi_shell=no
5764 ( _lt_dummy="a/b/c"
5765   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5766       = c,a/b,b/c, \
5767     && eval 'test $(( 1 + 1 )) -eq 2 \
5768     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5769   && xsi_shell=yes
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5771 $as_echo "$xsi_shell" >&6; }
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5776 lt_shell_append=no
5777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5778     >/dev/null 2>&1 \
5779   && lt_shell_append=yes
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5781 $as_echo "$lt_shell_append" >&6; }
5782
5783
5784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5785   lt_unset=unset
5786 else
5787   lt_unset=false
5788 fi
5789
5790
5791
5792
5793
5794 # test EBCDIC or ASCII
5795 case `echo X|tr X '\101'` in
5796  A) # ASCII based system
5797     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5798   lt_SP2NL='tr \040 \012'
5799   lt_NL2SP='tr \015\012 \040\040'
5800   ;;
5801  *) # EBCDIC based system
5802   lt_SP2NL='tr \100 \n'
5803   lt_NL2SP='tr \r\n \100\100'
5804   ;;
5805 esac
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5816 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5817 if ${lt_cv_to_host_file_cmd+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   case $host in
5821   *-*-mingw* )
5822     case $build in
5823       *-*-mingw* ) # actually msys
5824         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5825         ;;
5826       *-*-cygwin* )
5827         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5828         ;;
5829       * ) # otherwise, assume *nix
5830         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5831         ;;
5832     esac
5833     ;;
5834   *-*-cygwin* )
5835     case $build in
5836       *-*-mingw* ) # actually msys
5837         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5838         ;;
5839       *-*-cygwin* )
5840         lt_cv_to_host_file_cmd=func_convert_file_noop
5841         ;;
5842       * ) # otherwise, assume *nix
5843         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5844         ;;
5845     esac
5846     ;;
5847   * ) # unhandled hosts (and "normal" native builds)
5848     lt_cv_to_host_file_cmd=func_convert_file_noop
5849     ;;
5850 esac
5851
5852 fi
5853
5854 to_host_file_cmd=$lt_cv_to_host_file_cmd
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5856 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5857
5858
5859
5860
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5863 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5864 if ${lt_cv_to_tool_file_cmd+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   #assume ordinary cross tools, or native build.
5868 lt_cv_to_tool_file_cmd=func_convert_file_noop
5869 case $host in
5870   *-*-mingw* )
5871     case $build in
5872       *-*-mingw* ) # actually msys
5873         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5874         ;;
5875     esac
5876     ;;
5877 esac
5878
5879 fi
5880
5881 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5883 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5884
5885
5886
5887
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5891 if ${lt_cv_ld_reload_flag+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   lt_cv_ld_reload_flag='-r'
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5898 reload_flag=$lt_cv_ld_reload_flag
5899 case $reload_flag in
5900 "" | " "*) ;;
5901 *) reload_flag=" $reload_flag" ;;
5902 esac
5903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5904 case $host_os in
5905   cygwin* | mingw* | pw32* | cegcc*)
5906     if test "$GCC" != yes; then
5907       reload_cmds=false
5908     fi
5909     ;;
5910   darwin*)
5911     if test "$GCC" = yes; then
5912       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5913     else
5914       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5915     fi
5916     ;;
5917 esac
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 if test -n "$ac_tool_prefix"; then
5928   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_prog_OBJDUMP+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   if test -n "$OBJDUMP"; then
5936   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943     for ac_exec_ext in '' $ac_executable_extensions; do
5944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950   done
5951 IFS=$as_save_IFS
5952
5953 fi
5954 fi
5955 OBJDUMP=$ac_cv_prog_OBJDUMP
5956 if test -n "$OBJDUMP"; then
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5958 $as_echo "$OBJDUMP" >&6; }
5959 else
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5962 fi
5963
5964
5965 fi
5966 if test -z "$ac_cv_prog_OBJDUMP"; then
5967   ac_ct_OBJDUMP=$OBJDUMP
5968   # Extract the first word of "objdump", so it can be a program name with args.
5969 set dummy objdump; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -n "$ac_ct_OBJDUMP"; then
5976   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983     for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990   done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5996 if test -n "$ac_ct_OBJDUMP"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5998 $as_echo "$ac_ct_OBJDUMP" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004   if test "x$ac_ct_OBJDUMP" = x; then
6005     OBJDUMP="false"
6006   else
6007     case $cross_compiling:$ac_tool_warned in
6008 yes:)
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011 ac_tool_warned=yes ;;
6012 esac
6013     OBJDUMP=$ac_ct_OBJDUMP
6014   fi
6015 else
6016   OBJDUMP="$ac_cv_prog_OBJDUMP"
6017 fi
6018
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6030 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6031 if ${lt_cv_deplibs_check_method+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   lt_cv_file_magic_cmd='$MAGIC_CMD'
6035 lt_cv_file_magic_test_file=
6036 lt_cv_deplibs_check_method='unknown'
6037 # Need to set the preceding variable on all platforms that support
6038 # interlibrary dependencies.
6039 # 'none' -- dependencies not supported.
6040 # `unknown' -- same as none, but documents that we really don't know.
6041 # 'pass_all' -- all dependencies passed with no checks.
6042 # 'test_compile' -- check by making test program.
6043 # 'file_magic [[regex]]' -- check by looking for files in library path
6044 # which responds to the $file_magic_cmd with a given extended regex.
6045 # If you have `file' or equivalent on your system and you're not sure
6046 # whether `pass_all' will *always* work, you probably want this one.
6047
6048 case $host_os in
6049 aix[4-9]*)
6050   lt_cv_deplibs_check_method=pass_all
6051   ;;
6052
6053 beos*)
6054   lt_cv_deplibs_check_method=pass_all
6055   ;;
6056
6057 bsdi[45]*)
6058   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6059   lt_cv_file_magic_cmd='/usr/bin/file -L'
6060   lt_cv_file_magic_test_file=/shlib/libc.so
6061   ;;
6062
6063 cygwin*)
6064   # func_win32_libid is a shell function defined in ltmain.sh
6065   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6066   lt_cv_file_magic_cmd='func_win32_libid'
6067   ;;
6068
6069 mingw* | pw32*)
6070   # Base MSYS/MinGW do not provide the 'file' command needed by
6071   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6072   # unless we find 'file', for example because we are cross-compiling.
6073   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6074   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6075     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076     lt_cv_file_magic_cmd='func_win32_libid'
6077   else
6078     # Keep this pattern in sync with the one in func_win32_libid.
6079     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6080     lt_cv_file_magic_cmd='$OBJDUMP -f'
6081   fi
6082   ;;
6083
6084 cegcc*)
6085   # use the weaker test based on 'objdump'. See mingw*.
6086   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6087   lt_cv_file_magic_cmd='$OBJDUMP -f'
6088   ;;
6089
6090 darwin* | rhapsody*)
6091   lt_cv_deplibs_check_method=pass_all
6092   ;;
6093
6094 freebsd* | dragonfly*)
6095   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6096     case $host_cpu in
6097     i*86 )
6098       # Not sure whether the presence of OpenBSD here was a mistake.
6099       # Let's accept both of them until this is cleared up.
6100       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6101       lt_cv_file_magic_cmd=/usr/bin/file
6102       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6103       ;;
6104     esac
6105   else
6106     lt_cv_deplibs_check_method=pass_all
6107   fi
6108   ;;
6109
6110 gnu*)
6111   lt_cv_deplibs_check_method=pass_all
6112   ;;
6113
6114 haiku*)
6115   lt_cv_deplibs_check_method=pass_all
6116   ;;
6117
6118 hpux10.20* | hpux11*)
6119   lt_cv_file_magic_cmd=/usr/bin/file
6120   case $host_cpu in
6121   ia64*)
6122     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6123     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6124     ;;
6125   hppa*64*)
6126     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]'
6127     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6128     ;;
6129   *)
6130     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6131     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6132     ;;
6133   esac
6134   ;;
6135
6136 interix[3-9]*)
6137   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6138   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6139   ;;
6140
6141 irix5* | irix6* | nonstopux*)
6142   case $LD in
6143   *-32|*"-32 ") libmagic=32-bit;;
6144   *-n32|*"-n32 ") libmagic=N32;;
6145   *-64|*"-64 ") libmagic=64-bit;;
6146   *) libmagic=never-match;;
6147   esac
6148   lt_cv_deplibs_check_method=pass_all
6149   ;;
6150
6151 # This must be glibc/ELF.
6152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6153   lt_cv_deplibs_check_method=pass_all
6154   ;;
6155
6156 netbsd* | netbsdelf*-gnu)
6157   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6158     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6159   else
6160     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6161   fi
6162   ;;
6163
6164 newos6*)
6165   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6166   lt_cv_file_magic_cmd=/usr/bin/file
6167   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6168   ;;
6169
6170 *nto* | *qnx*)
6171   lt_cv_deplibs_check_method=pass_all
6172   ;;
6173
6174 openbsd*)
6175   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6176     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6177   else
6178     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6179   fi
6180   ;;
6181
6182 osf3* | osf4* | osf5*)
6183   lt_cv_deplibs_check_method=pass_all
6184   ;;
6185
6186 rdos*)
6187   lt_cv_deplibs_check_method=pass_all
6188   ;;
6189
6190 solaris*)
6191   lt_cv_deplibs_check_method=pass_all
6192   ;;
6193
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197
6198 sysv4 | sysv4.3*)
6199   case $host_vendor in
6200   motorola)
6201     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]'
6202     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6203     ;;
6204   ncr)
6205     lt_cv_deplibs_check_method=pass_all
6206     ;;
6207   sequent)
6208     lt_cv_file_magic_cmd='/bin/file'
6209     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6210     ;;
6211   sni)
6212     lt_cv_file_magic_cmd='/bin/file'
6213     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6214     lt_cv_file_magic_test_file=/lib/libc.so
6215     ;;
6216   siemens)
6217     lt_cv_deplibs_check_method=pass_all
6218     ;;
6219   pc)
6220     lt_cv_deplibs_check_method=pass_all
6221     ;;
6222   esac
6223   ;;
6224
6225 tpf*)
6226   lt_cv_deplibs_check_method=pass_all
6227   ;;
6228 esac
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6232 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6233
6234 file_magic_glob=
6235 want_nocaseglob=no
6236 if test "$build" = "$host"; then
6237   case $host_os in
6238   mingw* | pw32*)
6239     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6240       want_nocaseglob=yes
6241     else
6242       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6243     fi
6244     ;;
6245   esac
6246 fi
6247
6248 file_magic_cmd=$lt_cv_file_magic_cmd
6249 deplibs_check_method=$lt_cv_deplibs_check_method
6250 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_DLLTOOL+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$DLLTOOL"; then
6282   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 DLLTOOL=$ac_cv_prog_DLLTOOL
6302 if test -n "$DLLTOOL"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6304 $as_echo "$DLLTOOL" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_DLLTOOL"; then
6313   ac_ct_DLLTOOL=$DLLTOOL
6314   # Extract the first word of "dlltool", so it can be a program name with args.
6315 set dummy dlltool; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$ac_ct_DLLTOOL"; then
6322   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329     for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336   done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6342 if test -n "$ac_ct_DLLTOOL"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6344 $as_echo "$ac_ct_DLLTOOL" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350   if test "x$ac_ct_DLLTOOL" = x; then
6351     DLLTOOL="false"
6352   else
6353     case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359     DLLTOOL=$ac_ct_DLLTOOL
6360   fi
6361 else
6362   DLLTOOL="$ac_cv_prog_DLLTOOL"
6363 fi
6364
6365 test -z "$DLLTOOL" && DLLTOOL=dlltool
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6377 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6378 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   lt_cv_sharedlib_from_linklib_cmd='unknown'
6382
6383 case $host_os in
6384 cygwin* | mingw* | pw32* | cegcc*)
6385   # two different shell functions defined in ltmain.sh
6386   # decide which to use based on capabilities of $DLLTOOL
6387   case `$DLLTOOL --help 2>&1` in
6388   *--identify-strict*)
6389     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6390     ;;
6391   *)
6392     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6393     ;;
6394   esac
6395   ;;
6396 *)
6397   # fallback: assume linklib IS sharedlib
6398   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6399   ;;
6400 esac
6401
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6404 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6405 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6406 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6407
6408
6409
6410
6411
6412
6413
6414 if test -n "$ac_tool_prefix"; then
6415   for ac_prog in ar
6416   do
6417     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_AR+:} false; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   if test -n "$AR"; then
6425   ac_cv_prog_AR="$AR" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432     for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439   done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 AR=$ac_cv_prog_AR
6445 if test -n "$AR"; then
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6447 $as_echo "$AR" >&6; }
6448 else
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454     test -n "$AR" && break
6455   done
6456 fi
6457 if test -z "$AR"; then
6458   ac_ct_AR=$AR
6459   for ac_prog in ar
6460 do
6461   # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   if test -n "$ac_ct_AR"; then
6469   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476     for ac_exec_ext in '' $ac_executable_extensions; do
6477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478     ac_cv_prog_ac_ct_AR="$ac_prog"
6479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483   done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6489 if test -n "$ac_ct_AR"; then
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6491 $as_echo "$ac_ct_AR" >&6; }
6492 else
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498   test -n "$ac_ct_AR" && break
6499 done
6500
6501   if test "x$ac_ct_AR" = x; then
6502     AR="false"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510     AR=$ac_ct_AR
6511   fi
6512 fi
6513
6514 : ${AR=ar}
6515 : ${AR_FLAGS=cru}
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6528 $as_echo_n "checking for archiver @FILE support... " >&6; }
6529 if ${lt_cv_ar_at_file+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   lt_cv_ar_at_file=no
6533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535
6536 int
6537 main ()
6538 {
6539
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545   echo conftest.$ac_objext > conftest.lst
6546       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6547       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6548   (eval $lt_ar_try) 2>&5
6549   ac_status=$?
6550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551   test $ac_status = 0; }
6552       if test "$ac_status" -eq 0; then
6553         # Ensure the archiver fails upon bogus file names.
6554         rm -f conftest.$ac_objext libconftest.a
6555         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6556   (eval $lt_ar_try) 2>&5
6557   ac_status=$?
6558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559   test $ac_status = 0; }
6560         if test "$ac_status" -ne 0; then
6561           lt_cv_ar_at_file=@
6562         fi
6563       fi
6564       rm -f conftest.* libconftest.a
6565
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6571 $as_echo "$lt_cv_ar_at_file" >&6; }
6572
6573 if test "x$lt_cv_ar_at_file" = xno; then
6574   archiver_list_spec=
6575 else
6576   archiver_list_spec=$lt_cv_ar_at_file
6577 fi
6578
6579
6580
6581
6582
6583
6584
6585 if test -n "$ac_tool_prefix"; then
6586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_STRIP+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$STRIP"; then
6594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 STRIP=$ac_cv_prog_STRIP
6614 if test -n "$STRIP"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6616 $as_echo "$STRIP" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622
6623 fi
6624 if test -z "$ac_cv_prog_STRIP"; then
6625   ac_ct_STRIP=$STRIP
6626   # Extract the first word of "strip", so it can be a program name with args.
6627 set dummy strip; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   if test -n "$ac_ct_STRIP"; then
6634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641     for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_prog_ac_ct_STRIP="strip"
6644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648   done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654 if test -n "$ac_ct_STRIP"; then
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6656 $as_echo "$ac_ct_STRIP" >&6; }
6657 else
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662   if test "x$ac_ct_STRIP" = x; then
6663     STRIP=":"
6664   else
6665     case $cross_compiling:$ac_tool_warned in
6666 yes:)
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671     STRIP=$ac_ct_STRIP
6672   fi
6673 else
6674   STRIP="$ac_cv_prog_STRIP"
6675 fi
6676
6677 test -z "$STRIP" && STRIP=:
6678
6679
6680
6681
6682
6683
6684 if test -n "$ac_tool_prefix"; then
6685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_RANLIB+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   if test -n "$RANLIB"; then
6693   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700     for ac_exec_ext in '' $ac_executable_extensions; do
6701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707   done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 RANLIB=$ac_cv_prog_RANLIB
6713 if test -n "$RANLIB"; then
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6715 $as_echo "$RANLIB" >&6; }
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_RANLIB"; then
6724   ac_ct_RANLIB=$RANLIB
6725   # Extract the first word of "ranlib", so it can be a program name with args.
6726 set dummy ranlib; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$ac_ct_RANLIB"; then
6733   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_prog_ac_ct_RANLIB="ranlib"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753 if test -n "$ac_ct_RANLIB"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6755 $as_echo "$ac_ct_RANLIB" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761   if test "x$ac_ct_RANLIB" = x; then
6762     RANLIB=":"
6763   else
6764     case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     RANLIB=$ac_ct_RANLIB
6771   fi
6772 else
6773   RANLIB="$ac_cv_prog_RANLIB"
6774 fi
6775
6776 test -z "$RANLIB" && RANLIB=:
6777
6778
6779
6780
6781
6782
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6787
6788 if test -n "$RANLIB"; then
6789   case $host_os in
6790   openbsd*)
6791     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6792     ;;
6793   *)
6794     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6795     ;;
6796   esac
6797   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6798 fi
6799
6800 case $host_os in
6801   darwin*)
6802     lock_old_archive_extraction=yes ;;
6803   *)
6804     lock_old_archive_extraction=no ;;
6805 esac
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 # If no C compiler was specified, use CC.
6846 LTCC=${LTCC-"$CC"}
6847
6848 # If no C compiler flags were specified, use CFLAGS.
6849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6850
6851 # Allow CC to be a program name with arguments.
6852 compiler=$CC
6853
6854
6855 # Check for command to grab the raw symbol name followed by C symbol from nm.
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6857 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6858 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861
6862 # These are sane defaults that work on at least a few old systems.
6863 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6864
6865 # Character class describing NM global symbol codes.
6866 symcode='[BCDEGRST]'
6867
6868 # Regexp to match symbols that can be accessed directly from C.
6869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6870
6871 # Define system-specific variables.
6872 case $host_os in
6873 aix*)
6874   symcode='[BCDT]'
6875   ;;
6876 cygwin* | mingw* | pw32* | cegcc*)
6877   symcode='[ABCDGISTW]'
6878   ;;
6879 hpux*)
6880   if test "$host_cpu" = ia64; then
6881     symcode='[ABCDEGRST]'
6882   fi
6883   ;;
6884 irix* | nonstopux*)
6885   symcode='[BCDEGRST]'
6886   ;;
6887 osf*)
6888   symcode='[BCDEGQRST]'
6889   ;;
6890 solaris*)
6891   symcode='[BDRT]'
6892   ;;
6893 sco3.2v5*)
6894   symcode='[DT]'
6895   ;;
6896 sysv4.2uw2*)
6897   symcode='[DT]'
6898   ;;
6899 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6900   symcode='[ABDT]'
6901   ;;
6902 sysv4)
6903   symcode='[DFNSTU]'
6904   ;;
6905 esac
6906
6907 # If we're using GNU nm, then use its standard symbol codes.
6908 case `$NM -V 2>&1` in
6909 *GNU* | *'with BFD'*)
6910   symcode='[ABCDGIRSTW]' ;;
6911 esac
6912
6913 # Transform an extracted symbol line into a proper C declaration.
6914 # Some systems (esp. on ia64) link data and code symbols differently,
6915 # so use this general approach.
6916 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6917
6918 # Transform an extracted symbol line into symbol name and symbol address
6919 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6921
6922 # Handle CRLF in mingw tool chain
6923 opt_cr=
6924 case $build_os in
6925 mingw*)
6926   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6927   ;;
6928 esac
6929
6930 # Try without a prefix underscore, then with it.
6931 for ac_symprfx in "" "_"; do
6932
6933   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6934   symxfrm="\\1 $ac_symprfx\\2 \\2"
6935
6936   # Write the raw and C identifiers.
6937   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6938     # Fake it for dumpbin and say T for any non-static function
6939     # and D for any global variable.
6940     # Also find C++ and __fastcall symbols from MSVC++,
6941     # which start with @ or ?.
6942     lt_cv_sys_global_symbol_pipe="$AWK '"\
6943 "     {last_section=section; section=\$ 3};"\
6944 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6945 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6946 "     \$ 0!~/External *\|/{next};"\
6947 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6948 "     {if(hide[section]) next};"\
6949 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6950 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6951 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6952 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6953 "     ' prfx=^$ac_symprfx"
6954   else
6955     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6956   fi
6957   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6958
6959   # Check to see that the pipe works correctly.
6960   pipe_works=no
6961
6962   rm -f conftest*
6963   cat > conftest.$ac_ext <<_LT_EOF
6964 #ifdef __cplusplus
6965 extern "C" {
6966 #endif
6967 char nm_test_var;
6968 void nm_test_func(void);
6969 void nm_test_func(void){}
6970 #ifdef __cplusplus
6971 }
6972 #endif
6973 int main(){nm_test_var='a';nm_test_func();return(0);}
6974 _LT_EOF
6975
6976   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6977   (eval $ac_compile) 2>&5
6978   ac_status=$?
6979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980   test $ac_status = 0; }; then
6981     # Now try to grab the symbols.
6982     nlist=conftest.nm
6983     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6984   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6985   ac_status=$?
6986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987   test $ac_status = 0; } && test -s "$nlist"; then
6988       # Try sorting and uniquifying the output.
6989       if sort "$nlist" | uniq > "$nlist"T; then
6990         mv -f "$nlist"T "$nlist"
6991       else
6992         rm -f "$nlist"T
6993       fi
6994
6995       # Make sure that we snagged all the symbols we need.
6996       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6997         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6998           cat <<_LT_EOF > conftest.$ac_ext
6999 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7000 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7001 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7002    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7003 # define LT_DLSYM_CONST
7004 #elif defined(__osf__)
7005 /* This system does not cope well with relocations in const data.  */
7006 # define LT_DLSYM_CONST
7007 #else
7008 # define LT_DLSYM_CONST const
7009 #endif
7010
7011 #ifdef __cplusplus
7012 extern "C" {
7013 #endif
7014
7015 _LT_EOF
7016           # Now generate the symbol file.
7017           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7018
7019           cat <<_LT_EOF >> conftest.$ac_ext
7020
7021 /* The mapping between symbol names and symbols.  */
7022 LT_DLSYM_CONST struct {
7023   const char *name;
7024   void       *address;
7025 }
7026 lt__PROGRAM__LTX_preloaded_symbols[] =
7027 {
7028   { "@PROGRAM@", (void *) 0 },
7029 _LT_EOF
7030           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7031           cat <<\_LT_EOF >> conftest.$ac_ext
7032   {0, (void *) 0}
7033 };
7034
7035 /* This works around a problem in FreeBSD linker */
7036 #ifdef FREEBSD_WORKAROUND
7037 static const void *lt_preloaded_setup() {
7038   return lt__PROGRAM__LTX_preloaded_symbols;
7039 }
7040 #endif
7041
7042 #ifdef __cplusplus
7043 }
7044 #endif
7045 _LT_EOF
7046           # Now try linking the two files.
7047           mv conftest.$ac_objext conftstm.$ac_objext
7048           lt_globsym_save_LIBS=$LIBS
7049           lt_globsym_save_CFLAGS=$CFLAGS
7050           LIBS="conftstm.$ac_objext"
7051           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7052           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7053   (eval $ac_link) 2>&5
7054   ac_status=$?
7055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7057             pipe_works=yes
7058           fi
7059           LIBS=$lt_globsym_save_LIBS
7060           CFLAGS=$lt_globsym_save_CFLAGS
7061         else
7062           echo "cannot find nm_test_func in $nlist" >&5
7063         fi
7064       else
7065         echo "cannot find nm_test_var in $nlist" >&5
7066       fi
7067     else
7068       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7069     fi
7070   else
7071     echo "$progname: failed program was:" >&5
7072     cat conftest.$ac_ext >&5
7073   fi
7074   rm -rf conftest* conftst*
7075
7076   # Do not use the global_symbol_pipe unless it works.
7077   if test "$pipe_works" = yes; then
7078     break
7079   else
7080     lt_cv_sys_global_symbol_pipe=
7081   fi
7082 done
7083
7084 fi
7085
7086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7087   lt_cv_sys_global_symbol_to_cdecl=
7088 fi
7089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7091 $as_echo "failed" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7094 $as_echo "ok" >&6; }
7095 fi
7096
7097 # Response file support.
7098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7099   nm_file_list_spec='@'
7100 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7101   nm_file_list_spec='@'
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7131 $as_echo_n "checking for sysroot... " >&6; }
7132
7133 # Check whether --with-sysroot was given.
7134 if test "${with_sysroot+set}" = set; then :
7135   withval=$with_sysroot;
7136 else
7137   with_sysroot=no
7138 fi
7139
7140
7141 lt_sysroot=
7142 case ${with_sysroot} in #(
7143  yes)
7144    if test "$GCC" = yes; then
7145      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7146    fi
7147    ;; #(
7148  /*)
7149    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7150    ;; #(
7151  no|'')
7152    ;; #(
7153  *)
7154    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7155 $as_echo "${with_sysroot}" >&6; }
7156    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7157    ;;
7158 esac
7159
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7161 $as_echo "${lt_sysroot:-no}" >&6; }
7162
7163
7164
7165
7166
7167 # Check whether --enable-libtool-lock was given.
7168 if test "${enable_libtool_lock+set}" = set; then :
7169   enableval=$enable_libtool_lock;
7170 fi
7171
7172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7173
7174 # Some flags need to be propagated to the compiler or linker for good
7175 # libtool support.
7176 case $host in
7177 ia64-*-hpux*)
7178   # Find out which ABI we are using.
7179   echo 'int i;' > conftest.$ac_ext
7180   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181   (eval $ac_compile) 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184   test $ac_status = 0; }; then
7185     case `/usr/bin/file conftest.$ac_objext` in
7186       *ELF-32*)
7187         HPUX_IA64_MODE="32"
7188         ;;
7189       *ELF-64*)
7190         HPUX_IA64_MODE="64"
7191         ;;
7192     esac
7193   fi
7194   rm -rf conftest*
7195   ;;
7196 *-*-irix6*)
7197   # Find out which ABI we are using.
7198   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7199   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200   (eval $ac_compile) 2>&5
7201   ac_status=$?
7202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203   test $ac_status = 0; }; then
7204     if test "$lt_cv_prog_gnu_ld" = yes; then
7205       case `/usr/bin/file conftest.$ac_objext` in
7206         *32-bit*)
7207           LD="${LD-ld} -melf32bsmip"
7208           ;;
7209         *N32*)
7210           LD="${LD-ld} -melf32bmipn32"
7211           ;;
7212         *64-bit*)
7213           LD="${LD-ld} -melf64bmip"
7214         ;;
7215       esac
7216     else
7217       case `/usr/bin/file conftest.$ac_objext` in
7218         *32-bit*)
7219           LD="${LD-ld} -32"
7220           ;;
7221         *N32*)
7222           LD="${LD-ld} -n32"
7223           ;;
7224         *64-bit*)
7225           LD="${LD-ld} -64"
7226           ;;
7227       esac
7228     fi
7229   fi
7230   rm -rf conftest*
7231   ;;
7232
7233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7235   # Find out which ABI we are using.
7236   echo 'int i;' > conftest.$ac_ext
7237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238   (eval $ac_compile) 2>&5
7239   ac_status=$?
7240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241   test $ac_status = 0; }; then
7242     case `/usr/bin/file conftest.o` in
7243       *32-bit*)
7244         case $host in
7245           x86_64-*kfreebsd*-gnu)
7246             LD="${LD-ld} -m elf_i386_fbsd"
7247             ;;
7248           x86_64-*linux*)
7249             LD="${LD-ld} -m elf_i386"
7250             ;;
7251           ppc64-*linux*|powerpc64-*linux*)
7252             LD="${LD-ld} -m elf32ppclinux"
7253             ;;
7254           s390x-*linux*)
7255             LD="${LD-ld} -m elf_s390"
7256             ;;
7257           sparc64-*linux*)
7258             LD="${LD-ld} -m elf32_sparc"
7259             ;;
7260         esac
7261         ;;
7262       *64-bit*)
7263         case $host in
7264           x86_64-*kfreebsd*-gnu)
7265             LD="${LD-ld} -m elf_x86_64_fbsd"
7266             ;;
7267           x86_64-*linux*)
7268             LD="${LD-ld} -m elf_x86_64"
7269             ;;
7270           ppc*-*linux*|powerpc*-*linux*)
7271             LD="${LD-ld} -m elf64ppc"
7272             ;;
7273           s390*-*linux*|s390*-*tpf*)
7274             LD="${LD-ld} -m elf64_s390"
7275             ;;
7276           sparc*-*linux*)
7277             LD="${LD-ld} -m elf64_sparc"
7278             ;;
7279         esac
7280         ;;
7281     esac
7282   fi
7283   rm -rf conftest*
7284   ;;
7285
7286 *-*-sco3.2v5*)
7287   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7288   SAVE_CFLAGS="$CFLAGS"
7289   CFLAGS="$CFLAGS -belf"
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7291 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7292 if ${lt_cv_cc_needs_belf+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   ac_ext=c
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
7301      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h.  */
7303
7304 int
7305 main ()
7306 {
7307
7308   ;
7309   return 0;
7310 }
7311 _ACEOF
7312 if ac_fn_c_try_link "$LINENO"; then :
7313   lt_cv_cc_needs_belf=yes
7314 else
7315   lt_cv_cc_needs_belf=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext \
7318     conftest$ac_exeext conftest.$ac_ext
7319      ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7327 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7328   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7329     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7330     CFLAGS="$SAVE_CFLAGS"
7331   fi
7332   ;;
7333 *-*solaris*)
7334   # Find out which ABI we are using.
7335   echo 'int i;' > conftest.$ac_ext
7336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337   (eval $ac_compile) 2>&5
7338   ac_status=$?
7339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340   test $ac_status = 0; }; then
7341     case `/usr/bin/file conftest.o` in
7342     *64-bit*)
7343       case $lt_cv_prog_gnu_ld in
7344       yes*)
7345         case $host in
7346         i?86-*-solaris*)
7347           LD="${LD-ld} -m elf_x86_64"
7348           ;;
7349         sparc*-*-solaris*)
7350           LD="${LD-ld} -m elf64_sparc"
7351           ;;
7352         esac
7353         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7354         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7355           LD="${LD-ld}_sol2"
7356         fi
7357         ;;
7358       *)
7359         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7360           LD="${LD-ld} -64"
7361         fi
7362         ;;
7363       esac
7364       ;;
7365     esac
7366   fi
7367   rm -rf conftest*
7368   ;;
7369 esac
7370
7371 need_locks="$enable_libtool_lock"
7372
7373 if test -n "$ac_tool_prefix"; then
7374   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}mt; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$MANIFEST_TOOL"; then
7382   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7402 if test -n "$MANIFEST_TOOL"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7404 $as_echo "$MANIFEST_TOOL" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410
7411 fi
7412 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7413   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7414   # Extract the first word of "mt", so it can be a program name with args.
7415 set dummy mt; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   if test -n "$ac_ct_MANIFEST_TOOL"; then
7422   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429     for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436   done
7437 IFS=$as_save_IFS
7438
7439 fi
7440 fi
7441 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7442 if test -n "$ac_ct_MANIFEST_TOOL"; then
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7444 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7445 else
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7451     MANIFEST_TOOL=":"
7452   else
7453     case $cross_compiling:$ac_tool_warned in
7454 yes:)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7458 esac
7459     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7460   fi
7461 else
7462   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7463 fi
7464
7465 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7467 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7468 if ${lt_cv_path_mainfest_tool+:} false; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   lt_cv_path_mainfest_tool=no
7472   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7473   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7474   cat conftest.err >&5
7475   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7476     lt_cv_path_mainfest_tool=yes
7477   fi
7478   rm -f conftest*
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7481 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7482 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7483   MANIFEST_TOOL=:
7484 fi
7485
7486
7487
7488
7489
7490
7491   case $host_os in
7492     rhapsody* | darwin*)
7493     if test -n "$ac_tool_prefix"; then
7494   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$DSYMUTIL"; then
7502   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7522 if test -n "$DSYMUTIL"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7524 $as_echo "$DSYMUTIL" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_DSYMUTIL"; then
7533   ac_ct_DSYMUTIL=$DSYMUTIL
7534   # Extract the first word of "dsymutil", so it can be a program name with args.
7535 set dummy dsymutil; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$ac_ct_DSYMUTIL"; then
7542   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7562 if test -n "$ac_ct_DSYMUTIL"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7564 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570   if test "x$ac_ct_DSYMUTIL" = x; then
7571     DSYMUTIL=":"
7572   else
7573     case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579     DSYMUTIL=$ac_ct_DSYMUTIL
7580   fi
7581 else
7582   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7583 fi
7584
7585     if test -n "$ac_tool_prefix"; then
7586   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_NMEDIT+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if test -n "$NMEDIT"; then
7594   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608   done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 NMEDIT=$ac_cv_prog_NMEDIT
7614 if test -n "$NMEDIT"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7616 $as_echo "$NMEDIT" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_NMEDIT"; then
7625   ac_ct_NMEDIT=$NMEDIT
7626   # Extract the first word of "nmedit", so it can be a program name with args.
7627 set dummy nmedit; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   if test -n "$ac_ct_NMEDIT"; then
7634   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641     for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648   done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7654 if test -n "$ac_ct_NMEDIT"; then
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7656 $as_echo "$ac_ct_NMEDIT" >&6; }
7657 else
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662   if test "x$ac_ct_NMEDIT" = x; then
7663     NMEDIT=":"
7664   else
7665     case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671     NMEDIT=$ac_ct_NMEDIT
7672   fi
7673 else
7674   NMEDIT="$ac_cv_prog_NMEDIT"
7675 fi
7676
7677     if test -n "$ac_tool_prefix"; then
7678   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_LIPO+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -n "$LIPO"; then
7686   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693     for ac_exec_ext in '' $ac_executable_extensions; do
7694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700   done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 LIPO=$ac_cv_prog_LIPO
7706 if test -n "$LIPO"; then
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7708 $as_echo "$LIPO" >&6; }
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 fi
7716 if test -z "$ac_cv_prog_LIPO"; then
7717   ac_ct_LIPO=$LIPO
7718   # Extract the first word of "lipo", so it can be a program name with args.
7719 set dummy lipo; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   if test -n "$ac_ct_LIPO"; then
7726   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733     for ac_exec_ext in '' $ac_executable_extensions; do
7734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735     ac_cv_prog_ac_ct_LIPO="lipo"
7736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740   done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7746 if test -n "$ac_ct_LIPO"; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7748 $as_echo "$ac_ct_LIPO" >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754   if test "x$ac_ct_LIPO" = x; then
7755     LIPO=":"
7756   else
7757     case $cross_compiling:$ac_tool_warned in
7758 yes:)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7762 esac
7763     LIPO=$ac_ct_LIPO
7764   fi
7765 else
7766   LIPO="$ac_cv_prog_LIPO"
7767 fi
7768
7769     if test -n "$ac_tool_prefix"; then
7770   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}otool; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_OTOOL+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   if test -n "$OTOOL"; then
7778   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785     for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792   done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 OTOOL=$ac_cv_prog_OTOOL
7798 if test -n "$OTOOL"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7800 $as_echo "$OTOOL" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_OTOOL"; then
7809   ac_ct_OTOOL=$OTOOL
7810   # Extract the first word of "otool", so it can be a program name with args.
7811 set dummy otool; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   if test -n "$ac_ct_OTOOL"; then
7818   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825     for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_prog_ac_ct_OTOOL="otool"
7828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832   done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7838 if test -n "$ac_ct_OTOOL"; then
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7840 $as_echo "$ac_ct_OTOOL" >&6; }
7841 else
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846   if test "x$ac_ct_OTOOL" = x; then
7847     OTOOL=":"
7848   else
7849     case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855     OTOOL=$ac_ct_OTOOL
7856   fi
7857 else
7858   OTOOL="$ac_cv_prog_OTOOL"
7859 fi
7860
7861     if test -n "$ac_tool_prefix"; then
7862   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7863 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if ${ac_cv_prog_OTOOL64+:} false; then :
7867   $as_echo_n "(cached) " >&6
7868 else
7869   if test -n "$OTOOL64"; then
7870   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875   IFS=$as_save_IFS
7876   test -z "$as_dir" && as_dir=.
7877     for ac_exec_ext in '' $ac_executable_extensions; do
7878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881     break 2
7882   fi
7883 done
7884   done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 OTOOL64=$ac_cv_prog_OTOOL64
7890 if test -n "$OTOOL64"; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7892 $as_echo "$OTOOL64" >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899 fi
7900 if test -z "$ac_cv_prog_OTOOL64"; then
7901   ac_ct_OTOOL64=$OTOOL64
7902   # Extract the first word of "otool64", so it can be a program name with args.
7903 set dummy otool64; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   if test -n "$ac_ct_OTOOL64"; then
7910   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915   IFS=$as_save_IFS
7916   test -z "$as_dir" && as_dir=.
7917     for ac_exec_ext in '' $ac_executable_extensions; do
7918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919     ac_cv_prog_ac_ct_OTOOL64="otool64"
7920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921     break 2
7922   fi
7923 done
7924   done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7930 if test -n "$ac_ct_OTOOL64"; then
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7932 $as_echo "$ac_ct_OTOOL64" >&6; }
7933 else
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938   if test "x$ac_ct_OTOOL64" = x; then
7939     OTOOL64=":"
7940   else
7941     case $cross_compiling:$ac_tool_warned in
7942 yes:)
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947     OTOOL64=$ac_ct_OTOOL64
7948   fi
7949 else
7950   OTOOL64="$ac_cv_prog_OTOOL64"
7951 fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7980 $as_echo_n "checking for -single_module linker flag... " >&6; }
7981 if ${lt_cv_apple_cc_single_mod+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   lt_cv_apple_cc_single_mod=no
7985       if test -z "${LT_MULTI_MODULE}"; then
7986         # By default we will add the -single_module flag. You can override
7987         # by either setting the environment variable LT_MULTI_MODULE
7988         # non-empty at configure time, or by adding -multi_module to the
7989         # link flags.
7990         rm -rf libconftest.dylib*
7991         echo "int foo(void){return 1;}" > conftest.c
7992         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7993 -dynamiclib -Wl,-single_module conftest.c" >&5
7994         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7995           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7996         _lt_result=$?
7997         # If there is a non-empty error log, and "single_module"
7998         # appears in it, assume the flag caused a linker warning
7999         if test -s conftest.err && $GREP single_module conftest.err; then
8000           cat conftest.err >&5
8001         # Otherwise, if the output was created with a 0 exit code from
8002         # the compiler, it worked.
8003         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8004           lt_cv_apple_cc_single_mod=yes
8005         else
8006           cat conftest.err >&5
8007         fi
8008         rm -rf libconftest.dylib*
8009         rm -f conftest.*
8010       fi
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8013 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8014
8015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8016 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8017 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   lt_cv_ld_exported_symbols_list=no
8021       save_LDFLAGS=$LDFLAGS
8022       echo "_main" > conftest.sym
8023       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8024       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026
8027 int
8028 main ()
8029 {
8030
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then :
8036   lt_cv_ld_exported_symbols_list=yes
8037 else
8038   lt_cv_ld_exported_symbols_list=no
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext \
8041     conftest$ac_exeext conftest.$ac_ext
8042         LDFLAGS="$save_LDFLAGS"
8043
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8046 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8047
8048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8049 $as_echo_n "checking for -force_load linker flag... " >&6; }
8050 if ${lt_cv_ld_force_load+:} false; then :
8051   $as_echo_n "(cached) " >&6
8052 else
8053   lt_cv_ld_force_load=no
8054       cat > conftest.c << _LT_EOF
8055 int forced_loaded() { return 2;}
8056 _LT_EOF
8057       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8058       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8059       echo "$AR cru libconftest.a conftest.o" >&5
8060       $AR cru libconftest.a conftest.o 2>&5
8061       echo "$RANLIB libconftest.a" >&5
8062       $RANLIB libconftest.a 2>&5
8063       cat > conftest.c << _LT_EOF
8064 int main() { return 0;}
8065 _LT_EOF
8066       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8067       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8068       _lt_result=$?
8069       if test -s conftest.err && $GREP force_load conftest.err; then
8070         cat conftest.err >&5
8071       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8072         lt_cv_ld_force_load=yes
8073       else
8074         cat conftest.err >&5
8075       fi
8076         rm -f conftest.err libconftest.a conftest conftest.c
8077         rm -rf conftest.dSYM
8078
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8081 $as_echo "$lt_cv_ld_force_load" >&6; }
8082     case $host_os in
8083     rhapsody* | darwin1.[012])
8084       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8085     darwin1.*)
8086       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8087     darwin*) # darwin 5.x on
8088       # if running on 10.5 or later, the deployment target defaults
8089       # to the OS version, if on x86, and 10.4, the deployment
8090       # target defaults to 10.4. Don't you love it?
8091       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8092         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8093           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8094         10.[012]*)
8095           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8096         10.*)
8097           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8098       esac
8099     ;;
8100   esac
8101     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8102       _lt_dar_single_mod='$single_module'
8103     fi
8104     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8105       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8106     else
8107       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8108     fi
8109     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8110       _lt_dsymutil='~$DSYMUTIL $lib || :'
8111     else
8112       _lt_dsymutil=
8113     fi
8114     ;;
8115   esac
8116
8117 ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8124 # On Suns, sometimes $CPP names a directory.
8125 if test -n "$CPP" && test -d "$CPP"; then
8126   CPP=
8127 fi
8128 if test -z "$CPP"; then
8129   if ${ac_cv_prog_CPP+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132       # Double quotes because CPP needs to be expanded
8133     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8134     do
8135       ac_preproc_ok=false
8136 for ac_c_preproc_warn_flag in '' yes
8137 do
8138   # Use a header file that comes with gcc, so configuring glibc
8139   # with a fresh cross-compiler works.
8140   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141   # <limits.h> exists even on freestanding compilers.
8142   # On the NeXT, cc -E runs the code through the compiler's parser,
8143   # not just through cpp. "Syntax error" is here to catch this case.
8144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h.  */
8146 #ifdef __STDC__
8147 # include <limits.h>
8148 #else
8149 # include <assert.h>
8150 #endif
8151                      Syntax error
8152 _ACEOF
8153 if ac_fn_c_try_cpp "$LINENO"; then :
8154
8155 else
8156   # Broken: fails on valid input.
8157 continue
8158 fi
8159 rm -f conftest.err conftest.i conftest.$ac_ext
8160
8161   # OK, works on sane cases.  Now check whether nonexistent headers
8162   # can be detected and how.
8163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h.  */
8165 #include <ac_nonexistent.h>
8166 _ACEOF
8167 if ac_fn_c_try_cpp "$LINENO"; then :
8168   # Broken: success on invalid input.
8169 continue
8170 else
8171   # Passes both tests.
8172 ac_preproc_ok=:
8173 break
8174 fi
8175 rm -f conftest.err conftest.i conftest.$ac_ext
8176
8177 done
8178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8179 rm -f conftest.i conftest.err conftest.$ac_ext
8180 if $ac_preproc_ok; then :
8181   break
8182 fi
8183
8184     done
8185     ac_cv_prog_CPP=$CPP
8186
8187 fi
8188   CPP=$ac_cv_prog_CPP
8189 else
8190   ac_cv_prog_CPP=$CPP
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8193 $as_echo "$CPP" >&6; }
8194 ac_preproc_ok=false
8195 for ac_c_preproc_warn_flag in '' yes
8196 do
8197   # Use a header file that comes with gcc, so configuring glibc
8198   # with a fresh cross-compiler works.
8199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8200   # <limits.h> exists even on freestanding compilers.
8201   # On the NeXT, cc -E runs the code through the compiler's parser,
8202   # not just through cpp. "Syntax error" is here to catch this case.
8203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205 #ifdef __STDC__
8206 # include <limits.h>
8207 #else
8208 # include <assert.h>
8209 #endif
8210                      Syntax error
8211 _ACEOF
8212 if ac_fn_c_try_cpp "$LINENO"; then :
8213
8214 else
8215   # Broken: fails on valid input.
8216 continue
8217 fi
8218 rm -f conftest.err conftest.i conftest.$ac_ext
8219
8220   # OK, works on sane cases.  Now check whether nonexistent headers
8221   # can be detected and how.
8222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h.  */
8224 #include <ac_nonexistent.h>
8225 _ACEOF
8226 if ac_fn_c_try_cpp "$LINENO"; then :
8227   # Broken: success on invalid input.
8228 continue
8229 else
8230   # Passes both tests.
8231 ac_preproc_ok=:
8232 break
8233 fi
8234 rm -f conftest.err conftest.i conftest.$ac_ext
8235
8236 done
8237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8238 rm -f conftest.i conftest.err conftest.$ac_ext
8239 if $ac_preproc_ok; then :
8240
8241 else
8242   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8245 See \`config.log' for more details" "$LINENO" 5; }
8246 fi
8247
8248 ac_ext=c
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8256 $as_echo_n "checking for ANSI C header files... " >&6; }
8257 if ${ac_cv_header_stdc+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h.  */
8262 #include <stdlib.h>
8263 #include <stdarg.h>
8264 #include <string.h>
8265 #include <float.h>
8266
8267 int
8268 main ()
8269 {
8270
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276   ac_cv_header_stdc=yes
8277 else
8278   ac_cv_header_stdc=no
8279 fi
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281
8282 if test $ac_cv_header_stdc = yes; then
8283   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h.  */
8286 #include <string.h>
8287
8288 _ACEOF
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290   $EGREP "memchr" >/dev/null 2>&1; then :
8291
8292 else
8293   ac_cv_header_stdc=no
8294 fi
8295 rm -f conftest*
8296
8297 fi
8298
8299 if test $ac_cv_header_stdc = yes; then
8300   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h.  */
8303 #include <stdlib.h>
8304
8305 _ACEOF
8306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8307   $EGREP "free" >/dev/null 2>&1; then :
8308
8309 else
8310   ac_cv_header_stdc=no
8311 fi
8312 rm -f conftest*
8313
8314 fi
8315
8316 if test $ac_cv_header_stdc = yes; then
8317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8318   if test "$cross_compiling" = yes; then :
8319   :
8320 else
8321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h.  */
8323 #include <ctype.h>
8324 #include <stdlib.h>
8325 #if ((' ' & 0x0FF) == 0x020)
8326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8328 #else
8329 # define ISLOWER(c) \
8330                    (('a' <= (c) && (c) <= 'i') \
8331                      || ('j' <= (c) && (c) <= 'r') \
8332                      || ('s' <= (c) && (c) <= 'z'))
8333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8334 #endif
8335
8336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8337 int
8338 main ()
8339 {
8340   int i;
8341   for (i = 0; i < 256; i++)
8342     if (XOR (islower (i), ISLOWER (i))
8343         || toupper (i) != TOUPPER (i))
8344       return 2;
8345   return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_run "$LINENO"; then :
8349
8350 else
8351   ac_cv_header_stdc=no
8352 fi
8353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8354   conftest.$ac_objext conftest.beam conftest.$ac_ext
8355 fi
8356
8357 fi
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8360 $as_echo "$ac_cv_header_stdc" >&6; }
8361 if test $ac_cv_header_stdc = yes; then
8362
8363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8364
8365 fi
8366
8367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8369                   inttypes.h stdint.h unistd.h
8370 do :
8371   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8373 "
8374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8375   cat >>confdefs.h <<_ACEOF
8376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8377 _ACEOF
8378
8379 fi
8380
8381 done
8382
8383
8384 for ac_header in dlfcn.h
8385 do :
8386   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8387 "
8388 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8389   cat >>confdefs.h <<_ACEOF
8390 #define HAVE_DLFCN_H 1
8391 _ACEOF
8392
8393 fi
8394
8395 done
8396
8397
8398
8399
8400
8401 # Set options
8402
8403
8404
8405         enable_dlopen=no
8406
8407
8408   enable_win32_dll=no
8409
8410
8411             # Check whether --enable-shared was given.
8412 if test "${enable_shared+set}" = set; then :
8413   enableval=$enable_shared; p=${PACKAGE-default}
8414     case $enableval in
8415     yes) enable_shared=yes ;;
8416     no) enable_shared=no ;;
8417     *)
8418       enable_shared=no
8419       # Look at the argument we got.  We use all the common list separators.
8420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8421       for pkg in $enableval; do
8422         IFS="$lt_save_ifs"
8423         if test "X$pkg" = "X$p"; then
8424           enable_shared=yes
8425         fi
8426       done
8427       IFS="$lt_save_ifs"
8428       ;;
8429     esac
8430 else
8431   enable_shared=yes
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444 # Check whether --with-pic was given.
8445 if test "${with_pic+set}" = set; then :
8446   withval=$with_pic; lt_p=${PACKAGE-default}
8447     case $withval in
8448     yes|no) pic_mode=$withval ;;
8449     *)
8450       pic_mode=default
8451       # Look at the argument we got.  We use all the common list separators.
8452       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8453       for lt_pkg in $withval; do
8454         IFS="$lt_save_ifs"
8455         if test "X$lt_pkg" = "X$lt_p"; then
8456           pic_mode=yes
8457         fi
8458       done
8459       IFS="$lt_save_ifs"
8460       ;;
8461     esac
8462 else
8463   pic_mode=default
8464 fi
8465
8466
8467 test -z "$pic_mode" && pic_mode=default
8468
8469
8470
8471
8472
8473
8474
8475   # Check whether --enable-fast-install was given.
8476 if test "${enable_fast_install+set}" = set; then :
8477   enableval=$enable_fast_install; p=${PACKAGE-default}
8478     case $enableval in
8479     yes) enable_fast_install=yes ;;
8480     no) enable_fast_install=no ;;
8481     *)
8482       enable_fast_install=no
8483       # Look at the argument we got.  We use all the common list separators.
8484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8485       for pkg in $enableval; do
8486         IFS="$lt_save_ifs"
8487         if test "X$pkg" = "X$p"; then
8488           enable_fast_install=yes
8489         fi
8490       done
8491       IFS="$lt_save_ifs"
8492       ;;
8493     esac
8494 else
8495   enable_fast_install=yes
8496 fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 # This can be used to rebuild libtool when needed
8509 LIBTOOL_DEPS="$ltmain"
8510
8511 # Always use our own libtool.
8512 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543 test -z "$LN_S" && LN_S="ln -s"
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 if test -n "${ZSH_VERSION+set}" ; then
8559    setopt NO_GLOB_SUBST
8560 fi
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8563 $as_echo_n "checking for objdir... " >&6; }
8564 if ${lt_cv_objdir+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   rm -f .libs 2>/dev/null
8568 mkdir .libs 2>/dev/null
8569 if test -d .libs; then
8570   lt_cv_objdir=.libs
8571 else
8572   # MS-DOS does not allow filenames that begin with a dot.
8573   lt_cv_objdir=_libs
8574 fi
8575 rmdir .libs 2>/dev/null
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8578 $as_echo "$lt_cv_objdir" >&6; }
8579 objdir=$lt_cv_objdir
8580
8581
8582
8583
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define LT_OBJDIR "$lt_cv_objdir/"
8587 _ACEOF
8588
8589
8590
8591
8592 case $host_os in
8593 aix3*)
8594   # AIX sometimes has problems with the GCC collect2 program.  For some
8595   # reason, if we set the COLLECT_NAMES environment variable, the problems
8596   # vanish in a puff of smoke.
8597   if test "X${COLLECT_NAMES+set}" != Xset; then
8598     COLLECT_NAMES=
8599     export COLLECT_NAMES
8600   fi
8601   ;;
8602 esac
8603
8604 # Global variables:
8605 ofile=libtool
8606 can_build_shared=yes
8607
8608 # All known linkers require a `.a' archive for static linking (except MSVC,
8609 # which needs '.lib').
8610 libext=a
8611
8612 with_gnu_ld="$lt_cv_prog_gnu_ld"
8613
8614 old_CC="$CC"
8615 old_CFLAGS="$CFLAGS"
8616
8617 # Set sane defaults for various variables
8618 test -z "$CC" && CC=cc
8619 test -z "$LTCC" && LTCC=$CC
8620 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8621 test -z "$LD" && LD=ld
8622 test -z "$ac_objext" && ac_objext=o
8623
8624 for cc_temp in $compiler""; do
8625   case $cc_temp in
8626     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8627     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8628     \-*) ;;
8629     *) break;;
8630   esac
8631 done
8632 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8633
8634
8635 # Only perform the check for file, if the check method requires it
8636 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8637 case $deplibs_check_method in
8638 file_magic*)
8639   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8641 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8642 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   case $MAGIC_CMD in
8646 [\\/*] |  ?:[\\/]*)
8647   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8648   ;;
8649 *)
8650   lt_save_MAGIC_CMD="$MAGIC_CMD"
8651   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8652   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8653   for ac_dir in $ac_dummy; do
8654     IFS="$lt_save_ifs"
8655     test -z "$ac_dir" && ac_dir=.
8656     if test -f $ac_dir/${ac_tool_prefix}file; then
8657       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8658       if test -n "$file_magic_test_file"; then
8659         case $deplibs_check_method in
8660         "file_magic "*)
8661           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8662           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8663           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8664             $EGREP "$file_magic_regex" > /dev/null; then
8665             :
8666           else
8667             cat <<_LT_EOF 1>&2
8668
8669 *** Warning: the command libtool uses to detect shared libraries,
8670 *** $file_magic_cmd, produces output that libtool cannot recognize.
8671 *** The result is that libtool may fail to recognize shared libraries
8672 *** as such.  This will affect the creation of libtool libraries that
8673 *** depend on shared libraries, but programs linked with such libtool
8674 *** libraries will work regardless of this problem.  Nevertheless, you
8675 *** may want to report the problem to your system manager and/or to
8676 *** bug-libtool@gnu.org
8677
8678 _LT_EOF
8679           fi ;;
8680         esac
8681       fi
8682       break
8683     fi
8684   done
8685   IFS="$lt_save_ifs"
8686   MAGIC_CMD="$lt_save_MAGIC_CMD"
8687   ;;
8688 esac
8689 fi
8690
8691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8692 if test -n "$MAGIC_CMD"; then
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8694 $as_echo "$MAGIC_CMD" >&6; }
8695 else
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701
8702
8703
8704 if test -z "$lt_cv_path_MAGIC_CMD"; then
8705   if test -n "$ac_tool_prefix"; then
8706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8707 $as_echo_n "checking for file... " >&6; }
8708 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   case $MAGIC_CMD in
8712 [\\/*] |  ?:[\\/]*)
8713   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8714   ;;
8715 *)
8716   lt_save_MAGIC_CMD="$MAGIC_CMD"
8717   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8718   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8719   for ac_dir in $ac_dummy; do
8720     IFS="$lt_save_ifs"
8721     test -z "$ac_dir" && ac_dir=.
8722     if test -f $ac_dir/file; then
8723       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8724       if test -n "$file_magic_test_file"; then
8725         case $deplibs_check_method in
8726         "file_magic "*)
8727           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8728           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8730             $EGREP "$file_magic_regex" > /dev/null; then
8731             :
8732           else
8733             cat <<_LT_EOF 1>&2
8734
8735 *** Warning: the command libtool uses to detect shared libraries,
8736 *** $file_magic_cmd, produces output that libtool cannot recognize.
8737 *** The result is that libtool may fail to recognize shared libraries
8738 *** as such.  This will affect the creation of libtool libraries that
8739 *** depend on shared libraries, but programs linked with such libtool
8740 *** libraries will work regardless of this problem.  Nevertheless, you
8741 *** may want to report the problem to your system manager and/or to
8742 *** bug-libtool@gnu.org
8743
8744 _LT_EOF
8745           fi ;;
8746         esac
8747       fi
8748       break
8749     fi
8750   done
8751   IFS="$lt_save_ifs"
8752   MAGIC_CMD="$lt_save_MAGIC_CMD"
8753   ;;
8754 esac
8755 fi
8756
8757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8758 if test -n "$MAGIC_CMD"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8760 $as_echo "$MAGIC_CMD" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767   else
8768     MAGIC_CMD=:
8769   fi
8770 fi
8771
8772   fi
8773   ;;
8774 esac
8775
8776 # Use C for the default configuration in the libtool script
8777
8778 lt_save_CC="$CC"
8779 ac_ext=c
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
8785
8786 # Source file extension for C test sources.
8787 ac_ext=c
8788
8789 # Object file extension for compiled C test sources.
8790 objext=o
8791 objext=$objext
8792
8793 # Code to be used in simple compile tests
8794 lt_simple_compile_test_code="int some_variable = 0;"
8795
8796 # Code to be used in simple link tests
8797 lt_simple_link_test_code='int main(){return(0);}'
8798
8799
8800
8801
8802
8803
8804
8805 # If no C compiler was specified, use CC.
8806 LTCC=${LTCC-"$CC"}
8807
8808 # If no C compiler flags were specified, use CFLAGS.
8809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8810
8811 # Allow CC to be a program name with arguments.
8812 compiler=$CC
8813
8814 # Save the default compiler, since it gets overwritten when the other
8815 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8816 compiler_DEFAULT=$CC
8817
8818 # save warnings/boilerplate of simple test code
8819 ac_outfile=conftest.$ac_objext
8820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8822 _lt_compiler_boilerplate=`cat conftest.err`
8823 $RM conftest*
8824
8825 ac_outfile=conftest.$ac_objext
8826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8828 _lt_linker_boilerplate=`cat conftest.err`
8829 $RM -r conftest*
8830
8831
8832 if test -n "$compiler"; then
8833
8834 lt_prog_compiler_no_builtin_flag=
8835
8836 if test "$GCC" = yes; then
8837   case $cc_basename in
8838   nvcc*)
8839     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8840   *)
8841     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8842   esac
8843
8844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8845 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8846 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8847   $as_echo_n "(cached) " >&6
8848 else
8849   lt_cv_prog_compiler_rtti_exceptions=no
8850    ac_outfile=conftest.$ac_objext
8851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852    lt_compiler_flag="-fno-rtti -fno-exceptions"
8853    # Insert the option either (1) after the last *FLAGS variable, or
8854    # (2) before a word containing "conftest.", or (3) at the end.
8855    # Note that $ac_compile itself does not contain backslashes and begins
8856    # with a dollar sign (not a hyphen), so the echo should work correctly.
8857    # The option is referenced via a variable to avoid confusing sed.
8858    lt_compile=`echo "$ac_compile" | $SED \
8859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861    -e 's:$: $lt_compiler_flag:'`
8862    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8863    (eval "$lt_compile" 2>conftest.err)
8864    ac_status=$?
8865    cat conftest.err >&5
8866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867    if (exit $ac_status) && test -s "$ac_outfile"; then
8868      # The compiler can only warn and ignore the option if not recognized
8869      # So say no if there are warnings other than the usual output.
8870      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8871      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8872      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8873        lt_cv_prog_compiler_rtti_exceptions=yes
8874      fi
8875    fi
8876    $RM conftest*
8877
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8880 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8881
8882 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8883     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8884 else
8885     :
8886 fi
8887
8888 fi
8889
8890
8891
8892
8893
8894
8895   lt_prog_compiler_wl=
8896 lt_prog_compiler_pic=
8897 lt_prog_compiler_static=
8898
8899
8900   if test "$GCC" = yes; then
8901     lt_prog_compiler_wl='-Wl,'
8902     lt_prog_compiler_static='-static'
8903
8904     case $host_os in
8905       aix*)
8906       # All AIX code is PIC.
8907       if test "$host_cpu" = ia64; then
8908         # AIX 5 now supports IA64 processor
8909         lt_prog_compiler_static='-Bstatic'
8910       fi
8911       ;;
8912
8913     amigaos*)
8914       case $host_cpu in
8915       powerpc)
8916             # see comment about AmigaOS4 .so support
8917             lt_prog_compiler_pic='-fPIC'
8918         ;;
8919       m68k)
8920             # FIXME: we need at least 68020 code to build shared libraries, but
8921             # adding the `-m68020' flag to GCC prevents building anything better,
8922             # like `-m68040'.
8923             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8924         ;;
8925       esac
8926       ;;
8927
8928     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8929       # PIC is the default for these OSes.
8930       ;;
8931
8932     mingw* | cygwin* | pw32* | os2* | cegcc*)
8933       # This hack is so that the source file can tell whether it is being
8934       # built for inclusion in a dll (and should export symbols for example).
8935       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8936       # (--disable-auto-import) libraries
8937       lt_prog_compiler_pic='-DDLL_EXPORT'
8938       ;;
8939
8940     darwin* | rhapsody*)
8941       # PIC is the default on this platform
8942       # Common symbols not allowed in MH_DYLIB files
8943       lt_prog_compiler_pic='-fno-common'
8944       ;;
8945
8946     haiku*)
8947       # PIC is the default for Haiku.
8948       # The "-static" flag exists, but is broken.
8949       lt_prog_compiler_static=
8950       ;;
8951
8952     hpux*)
8953       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8954       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8955       # sets the default TLS model and affects inlining.
8956       case $host_cpu in
8957       hppa*64*)
8958         # +Z the default
8959         ;;
8960       *)
8961         lt_prog_compiler_pic='-fPIC'
8962         ;;
8963       esac
8964       ;;
8965
8966     interix[3-9]*)
8967       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8968       # Instead, we relocate shared libraries at runtime.
8969       ;;
8970
8971     msdosdjgpp*)
8972       # Just because we use GCC doesn't mean we suddenly get shared libraries
8973       # on systems that don't support them.
8974       lt_prog_compiler_can_build_shared=no
8975       enable_shared=no
8976       ;;
8977
8978     *nto* | *qnx*)
8979       # QNX uses GNU C++, but need to define -shared option too, otherwise
8980       # it will coredump.
8981       lt_prog_compiler_pic='-fPIC -shared'
8982       ;;
8983
8984     sysv4*MP*)
8985       if test -d /usr/nec; then
8986         lt_prog_compiler_pic=-Kconform_pic
8987       fi
8988       ;;
8989
8990     *)
8991       lt_prog_compiler_pic='-fPIC'
8992       ;;
8993     esac
8994
8995     case $cc_basename in
8996     nvcc*) # Cuda Compiler Driver 2.2
8997       lt_prog_compiler_wl='-Xlinker '
8998       if test -n "$lt_prog_compiler_pic"; then
8999         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9000       fi
9001       ;;
9002     esac
9003   else
9004     # PORTME Check for flag to pass linker flags through the system compiler.
9005     case $host_os in
9006     aix*)
9007       lt_prog_compiler_wl='-Wl,'
9008       if test "$host_cpu" = ia64; then
9009         # AIX 5 now supports IA64 processor
9010         lt_prog_compiler_static='-Bstatic'
9011       else
9012         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9013       fi
9014       ;;
9015
9016     mingw* | cygwin* | pw32* | os2* | cegcc*)
9017       # This hack is so that the source file can tell whether it is being
9018       # built for inclusion in a dll (and should export symbols for example).
9019       lt_prog_compiler_pic='-DDLL_EXPORT'
9020       ;;
9021
9022     hpux9* | hpux10* | hpux11*)
9023       lt_prog_compiler_wl='-Wl,'
9024       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9025       # not for PA HP-UX.
9026       case $host_cpu in
9027       hppa*64*|ia64*)
9028         # +Z the default
9029         ;;
9030       *)
9031         lt_prog_compiler_pic='+Z'
9032         ;;
9033       esac
9034       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9035       lt_prog_compiler_static='${wl}-a ${wl}archive'
9036       ;;
9037
9038     irix5* | irix6* | nonstopux*)
9039       lt_prog_compiler_wl='-Wl,'
9040       # PIC (with -KPIC) is the default.
9041       lt_prog_compiler_static='-non_shared'
9042       ;;
9043
9044     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9045       case $cc_basename in
9046       # old Intel for x86_64 which still supported -KPIC.
9047       ecc*)
9048         lt_prog_compiler_wl='-Wl,'
9049         lt_prog_compiler_pic='-KPIC'
9050         lt_prog_compiler_static='-static'
9051         ;;
9052       # icc used to be incompatible with GCC.
9053       # ICC 10 doesn't accept -KPIC any more.
9054       icc* | ifort*)
9055         lt_prog_compiler_wl='-Wl,'
9056         lt_prog_compiler_pic='-fPIC'
9057         lt_prog_compiler_static='-static'
9058         ;;
9059       # Lahey Fortran 8.1.
9060       lf95*)
9061         lt_prog_compiler_wl='-Wl,'
9062         lt_prog_compiler_pic='--shared'
9063         lt_prog_compiler_static='--static'
9064         ;;
9065       nagfor*)
9066         # NAG Fortran compiler
9067         lt_prog_compiler_wl='-Wl,-Wl,,'
9068         lt_prog_compiler_pic='-PIC'
9069         lt_prog_compiler_static='-Bstatic'
9070         ;;
9071       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9072         # Portland Group compilers (*not* the Pentium gcc compiler,
9073         # which looks to be a dead project)
9074         lt_prog_compiler_wl='-Wl,'
9075         lt_prog_compiler_pic='-fpic'
9076         lt_prog_compiler_static='-Bstatic'
9077         ;;
9078       ccc*)
9079         lt_prog_compiler_wl='-Wl,'
9080         # All Alpha code is PIC.
9081         lt_prog_compiler_static='-non_shared'
9082         ;;
9083       xl* | bgxl* | bgf* | mpixl*)
9084         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9085         lt_prog_compiler_wl='-Wl,'
9086         lt_prog_compiler_pic='-qpic'
9087         lt_prog_compiler_static='-qstaticlink'
9088         ;;
9089       *)
9090         case `$CC -V 2>&1 | sed 5q` in
9091         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9092           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9093           lt_prog_compiler_pic='-KPIC'
9094           lt_prog_compiler_static='-Bstatic'
9095           lt_prog_compiler_wl=''
9096           ;;
9097         *Sun\ F* | *Sun*Fortran*)
9098           lt_prog_compiler_pic='-KPIC'
9099           lt_prog_compiler_static='-Bstatic'
9100           lt_prog_compiler_wl='-Qoption ld '
9101           ;;
9102         *Sun\ C*)
9103           # Sun C 5.9
9104           lt_prog_compiler_pic='-KPIC'
9105           lt_prog_compiler_static='-Bstatic'
9106           lt_prog_compiler_wl='-Wl,'
9107           ;;
9108         *Intel*\ [CF]*Compiler*)
9109           lt_prog_compiler_wl='-Wl,'
9110           lt_prog_compiler_pic='-fPIC'
9111           lt_prog_compiler_static='-static'
9112           ;;
9113         *Portland\ Group*)
9114           lt_prog_compiler_wl='-Wl,'
9115           lt_prog_compiler_pic='-fpic'
9116           lt_prog_compiler_static='-Bstatic'
9117           ;;
9118         esac
9119         ;;
9120       esac
9121       ;;
9122
9123     newsos6)
9124       lt_prog_compiler_pic='-KPIC'
9125       lt_prog_compiler_static='-Bstatic'
9126       ;;
9127
9128     *nto* | *qnx*)
9129       # QNX uses GNU C++, but need to define -shared option too, otherwise
9130       # it will coredump.
9131       lt_prog_compiler_pic='-fPIC -shared'
9132       ;;
9133
9134     osf3* | osf4* | osf5*)
9135       lt_prog_compiler_wl='-Wl,'
9136       # All OSF/1 code is PIC.
9137       lt_prog_compiler_static='-non_shared'
9138       ;;
9139
9140     rdos*)
9141       lt_prog_compiler_static='-non_shared'
9142       ;;
9143
9144     solaris*)
9145       lt_prog_compiler_pic='-KPIC'
9146       lt_prog_compiler_static='-Bstatic'
9147       case $cc_basename in
9148       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9149         lt_prog_compiler_wl='-Qoption ld ';;
9150       *)
9151         lt_prog_compiler_wl='-Wl,';;
9152       esac
9153       ;;
9154
9155     sunos4*)
9156       lt_prog_compiler_wl='-Qoption ld '
9157       lt_prog_compiler_pic='-PIC'
9158       lt_prog_compiler_static='-Bstatic'
9159       ;;
9160
9161     sysv4 | sysv4.2uw2* | sysv4.3*)
9162       lt_prog_compiler_wl='-Wl,'
9163       lt_prog_compiler_pic='-KPIC'
9164       lt_prog_compiler_static='-Bstatic'
9165       ;;
9166
9167     sysv4*MP*)
9168       if test -d /usr/nec ;then
9169         lt_prog_compiler_pic='-Kconform_pic'
9170         lt_prog_compiler_static='-Bstatic'
9171       fi
9172       ;;
9173
9174     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9175       lt_prog_compiler_wl='-Wl,'
9176       lt_prog_compiler_pic='-KPIC'
9177       lt_prog_compiler_static='-Bstatic'
9178       ;;
9179
9180     unicos*)
9181       lt_prog_compiler_wl='-Wl,'
9182       lt_prog_compiler_can_build_shared=no
9183       ;;
9184
9185     uts4*)
9186       lt_prog_compiler_pic='-pic'
9187       lt_prog_compiler_static='-Bstatic'
9188       ;;
9189
9190     *)
9191       lt_prog_compiler_can_build_shared=no
9192       ;;
9193     esac
9194   fi
9195
9196 case $host_os in
9197   # For platforms which do not support PIC, -DPIC is meaningless:
9198   *djgpp*)
9199     lt_prog_compiler_pic=
9200     ;;
9201   *)
9202     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9203     ;;
9204 esac
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9207 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9208 if ${lt_cv_prog_compiler_pic+:} false; then :
9209   $as_echo_n "(cached) " >&6
9210 else
9211   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9214 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9215 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9216
9217 #
9218 # Check to make sure the PIC flag actually works.
9219 #
9220 if test -n "$lt_prog_compiler_pic"; then
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9222 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9223 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   lt_cv_prog_compiler_pic_works=no
9227    ac_outfile=conftest.$ac_objext
9228    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9230    # Insert the option either (1) after the last *FLAGS variable, or
9231    # (2) before a word containing "conftest.", or (3) at the end.
9232    # Note that $ac_compile itself does not contain backslashes and begins
9233    # with a dollar sign (not a hyphen), so the echo should work correctly.
9234    # The option is referenced via a variable to avoid confusing sed.
9235    lt_compile=`echo "$ac_compile" | $SED \
9236    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9238    -e 's:$: $lt_compiler_flag:'`
9239    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9240    (eval "$lt_compile" 2>conftest.err)
9241    ac_status=$?
9242    cat conftest.err >&5
9243    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244    if (exit $ac_status) && test -s "$ac_outfile"; then
9245      # The compiler can only warn and ignore the option if not recognized
9246      # So say no if there are warnings other than the usual output.
9247      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9248      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9249      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9250        lt_cv_prog_compiler_pic_works=yes
9251      fi
9252    fi
9253    $RM conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9257 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9258
9259 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9260     case $lt_prog_compiler_pic in
9261      "" | " "*) ;;
9262      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9263      esac
9264 else
9265     lt_prog_compiler_pic=
9266      lt_prog_compiler_can_build_shared=no
9267 fi
9268
9269 fi
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 #
9282 # Check to make sure the static flag actually works.
9283 #
9284 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9286 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9287 if ${lt_cv_prog_compiler_static_works+:} false; then :
9288   $as_echo_n "(cached) " >&6
9289 else
9290   lt_cv_prog_compiler_static_works=no
9291    save_LDFLAGS="$LDFLAGS"
9292    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9293    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9294    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9295      # The linker can only warn and ignore the option if not recognized
9296      # So say no if there are warnings
9297      if test -s conftest.err; then
9298        # Append any errors to the config.log.
9299        cat conftest.err 1>&5
9300        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9301        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9302        if diff conftest.exp conftest.er2 >/dev/null; then
9303          lt_cv_prog_compiler_static_works=yes
9304        fi
9305      else
9306        lt_cv_prog_compiler_static_works=yes
9307      fi
9308    fi
9309    $RM -r conftest*
9310    LDFLAGS="$save_LDFLAGS"
9311
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9314 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9315
9316 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9317     :
9318 else
9319     lt_prog_compiler_static=
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9330 if ${lt_cv_prog_compiler_c_o+:} false; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   lt_cv_prog_compiler_c_o=no
9334    $RM -r conftest 2>/dev/null
9335    mkdir conftest
9336    cd conftest
9337    mkdir out
9338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9339
9340    lt_compiler_flag="-o out/conftest2.$ac_objext"
9341    # Insert the option either (1) after the last *FLAGS variable, or
9342    # (2) before a word containing "conftest.", or (3) at the end.
9343    # Note that $ac_compile itself does not contain backslashes and begins
9344    # with a dollar sign (not a hyphen), so the echo should work correctly.
9345    lt_compile=`echo "$ac_compile" | $SED \
9346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9348    -e 's:$: $lt_compiler_flag:'`
9349    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9350    (eval "$lt_compile" 2>out/conftest.err)
9351    ac_status=$?
9352    cat out/conftest.err >&5
9353    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9355    then
9356      # The compiler can only warn and ignore the option if not recognized
9357      # So say no if there are warnings
9358      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9359      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9360      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9361        lt_cv_prog_compiler_c_o=yes
9362      fi
9363    fi
9364    chmod u+w . 2>&5
9365    $RM conftest*
9366    # SGI C++ compiler will create directory out/ii_files/ for
9367    # template instantiation
9368    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9369    $RM out/* && rmdir out
9370    cd ..
9371    $RM -r conftest
9372    $RM conftest*
9373
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9376 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9377
9378
9379
9380
9381
9382
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9385 if ${lt_cv_prog_compiler_c_o+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   lt_cv_prog_compiler_c_o=no
9389    $RM -r conftest 2>/dev/null
9390    mkdir conftest
9391    cd conftest
9392    mkdir out
9393    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394
9395    lt_compiler_flag="-o out/conftest2.$ac_objext"
9396    # Insert the option either (1) after the last *FLAGS variable, or
9397    # (2) before a word containing "conftest.", or (3) at the end.
9398    # Note that $ac_compile itself does not contain backslashes and begins
9399    # with a dollar sign (not a hyphen), so the echo should work correctly.
9400    lt_compile=`echo "$ac_compile" | $SED \
9401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403    -e 's:$: $lt_compiler_flag:'`
9404    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405    (eval "$lt_compile" 2>out/conftest.err)
9406    ac_status=$?
9407    cat out/conftest.err >&5
9408    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9410    then
9411      # The compiler can only warn and ignore the option if not recognized
9412      # So say no if there are warnings
9413      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9414      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9415      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9416        lt_cv_prog_compiler_c_o=yes
9417      fi
9418    fi
9419    chmod u+w . 2>&5
9420    $RM conftest*
9421    # SGI C++ compiler will create directory out/ii_files/ for
9422    # template instantiation
9423    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9424    $RM out/* && rmdir out
9425    cd ..
9426    $RM -r conftest
9427    $RM conftest*
9428
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9431 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9432
9433
9434
9435
9436 hard_links="nottested"
9437 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9438   # do not overwrite the value of need_locks provided by the user
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9440 $as_echo_n "checking if we can lock with hard links... " >&6; }
9441   hard_links=yes
9442   $RM conftest*
9443   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9444   touch conftest.a
9445   ln conftest.a conftest.b 2>&5 || hard_links=no
9446   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9448 $as_echo "$hard_links" >&6; }
9449   if test "$hard_links" = no; then
9450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9451 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9452     need_locks=warn
9453   fi
9454 else
9455   need_locks=no
9456 fi
9457
9458
9459
9460
9461
9462
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9465
9466   runpath_var=
9467   allow_undefined_flag=
9468   always_export_symbols=no
9469   archive_cmds=
9470   archive_expsym_cmds=
9471   compiler_needs_object=no
9472   enable_shared_with_static_runtimes=no
9473   export_dynamic_flag_spec=
9474   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9475   hardcode_automatic=no
9476   hardcode_direct=no
9477   hardcode_direct_absolute=no
9478   hardcode_libdir_flag_spec=
9479   hardcode_libdir_separator=
9480   hardcode_minus_L=no
9481   hardcode_shlibpath_var=unsupported
9482   inherit_rpath=no
9483   link_all_deplibs=unknown
9484   module_cmds=
9485   module_expsym_cmds=
9486   old_archive_from_new_cmds=
9487   old_archive_from_expsyms_cmds=
9488   thread_safe_flag_spec=
9489   whole_archive_flag_spec=
9490   # include_expsyms should be a list of space-separated symbols to be *always*
9491   # included in the symbol list
9492   include_expsyms=
9493   # exclude_expsyms can be an extended regexp of symbols to exclude
9494   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9495   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9496   # as well as any symbol that contains `d'.
9497   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9498   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9499   # platforms (ab)use it in PIC code, but their linkers get confused if
9500   # the symbol is explicitly referenced.  Since portable code cannot
9501   # rely on this symbol name, it's probably fine to never include it in
9502   # preloaded symbol tables.
9503   # Exclude shared library initialization/finalization symbols.
9504   extract_expsyms_cmds=
9505
9506   case $host_os in
9507   cygwin* | mingw* | pw32* | cegcc*)
9508     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9509     # When not using gcc, we currently assume that we are using
9510     # Microsoft Visual C++.
9511     if test "$GCC" != yes; then
9512       with_gnu_ld=no
9513     fi
9514     ;;
9515   interix*)
9516     # we just hope/assume this is gcc and not c89 (= MSVC++)
9517     with_gnu_ld=yes
9518     ;;
9519   openbsd*)
9520     with_gnu_ld=no
9521     ;;
9522   linux* | k*bsd*-gnu | gnu*)
9523     link_all_deplibs=no
9524     ;;
9525   esac
9526
9527   ld_shlibs=yes
9528
9529   # On some targets, GNU ld is compatible enough with the native linker
9530   # that we're better off using the native interface for both.
9531   lt_use_gnu_ld_interface=no
9532   if test "$with_gnu_ld" = yes; then
9533     case $host_os in
9534       aix*)
9535         # The AIX port of GNU ld has always aspired to compatibility
9536         # with the native linker.  However, as the warning in the GNU ld
9537         # block says, versions before 2.19.5* couldn't really create working
9538         # shared libraries, regardless of the interface used.
9539         case `$LD -v 2>&1` in
9540           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9541           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9542           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9543           *)
9544             lt_use_gnu_ld_interface=yes
9545             ;;
9546         esac
9547         ;;
9548       *)
9549         lt_use_gnu_ld_interface=yes
9550         ;;
9551     esac
9552   fi
9553
9554   if test "$lt_use_gnu_ld_interface" = yes; then
9555     # If archive_cmds runs LD, not CC, wlarc should be empty
9556     wlarc='${wl}'
9557
9558     # Set some defaults for GNU ld with shared library support. These
9559     # are reset later if shared libraries are not supported. Putting them
9560     # here allows them to be overridden if necessary.
9561     runpath_var=LD_RUN_PATH
9562     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563     export_dynamic_flag_spec='${wl}--export-dynamic'
9564     # ancient GNU ld didn't support --whole-archive et. al.
9565     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9566       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9567     else
9568       whole_archive_flag_spec=
9569     fi
9570     supports_anon_versioning=no
9571     case `$LD -v 2>&1` in
9572       *GNU\ gold*) supports_anon_versioning=yes ;;
9573       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9574       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9575       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9576       *\ 2.11.*) ;; # other 2.11 versions
9577       *) supports_anon_versioning=yes ;;
9578     esac
9579
9580     # See if GNU ld supports shared libraries.
9581     case $host_os in
9582     aix[3-9]*)
9583       # On AIX/PPC, the GNU linker is very broken
9584       if test "$host_cpu" != ia64; then
9585         ld_shlibs=no
9586         cat <<_LT_EOF 1>&2
9587
9588 *** Warning: the GNU linker, at least up to release 2.19, is reported
9589 *** to be unable to reliably create shared libraries on AIX.
9590 *** Therefore, libtool is disabling shared libraries support.  If you
9591 *** really care for shared libraries, you may want to install binutils
9592 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9593 *** You will then need to restart the configuration process.
9594
9595 _LT_EOF
9596       fi
9597       ;;
9598
9599     amigaos*)
9600       case $host_cpu in
9601       powerpc)
9602             # see comment about AmigaOS4 .so support
9603             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604             archive_expsym_cmds=''
9605         ;;
9606       m68k)
9607             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)'
9608             hardcode_libdir_flag_spec='-L$libdir'
9609             hardcode_minus_L=yes
9610         ;;
9611       esac
9612       ;;
9613
9614     beos*)
9615       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9616         allow_undefined_flag=unsupported
9617         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9618         # support --undefined.  This deserves some investigation.  FIXME
9619         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620       else
9621         ld_shlibs=no
9622       fi
9623       ;;
9624
9625     cygwin* | mingw* | pw32* | cegcc*)
9626       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9627       # as there is no search path for DLLs.
9628       hardcode_libdir_flag_spec='-L$libdir'
9629       export_dynamic_flag_spec='${wl}--export-all-symbols'
9630       allow_undefined_flag=unsupported
9631       always_export_symbols=no
9632       enable_shared_with_static_runtimes=yes
9633       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'
9634       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9635
9636       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9637         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9638         # If the export-symbols file already is a .def file (1st line
9639         # is EXPORTS), use it as is; otherwise, prepend...
9640         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9641           cp $export_symbols $output_objdir/$soname.def;
9642         else
9643           echo EXPORTS > $output_objdir/$soname.def;
9644           cat $export_symbols >> $output_objdir/$soname.def;
9645         fi~
9646         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9647       else
9648         ld_shlibs=no
9649       fi
9650       ;;
9651
9652     haiku*)
9653       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654       link_all_deplibs=yes
9655       ;;
9656
9657     interix[3-9]*)
9658       hardcode_direct=no
9659       hardcode_shlibpath_var=no
9660       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661       export_dynamic_flag_spec='${wl}-E'
9662       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9663       # Instead, shared libraries are loaded at an image base (0x10000000 by
9664       # default) and relocated if they conflict, which is a slow very memory
9665       # consuming and fragmenting process.  To avoid this, we pick a random,
9666       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9667       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9668       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9669       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'
9670       ;;
9671
9672     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9673       tmp_diet=no
9674       if test "$host_os" = linux-dietlibc; then
9675         case $cc_basename in
9676           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9677         esac
9678       fi
9679       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9680          && test "$tmp_diet" = no
9681       then
9682         tmp_addflag=' $pic_flag'
9683         tmp_sharedflag='-shared'
9684         case $cc_basename,$host_cpu in
9685         pgcc*)                          # Portland Group C compiler
9686           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'
9687           tmp_addflag=' $pic_flag'
9688           ;;
9689         pgf77* | pgf90* | pgf95* | pgfortran*)
9690                                         # Portland Group f77 and f90 compilers
9691           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'
9692           tmp_addflag=' $pic_flag -Mnomain' ;;
9693         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9694           tmp_addflag=' -i_dynamic' ;;
9695         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9696           tmp_addflag=' -i_dynamic -nofor_main' ;;
9697         ifc* | ifort*)                  # Intel Fortran compiler
9698           tmp_addflag=' -nofor_main' ;;
9699         lf95*)                          # Lahey Fortran 8.1
9700           whole_archive_flag_spec=
9701           tmp_sharedflag='--shared' ;;
9702         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9703           tmp_sharedflag='-qmkshrobj'
9704           tmp_addflag= ;;
9705         nvcc*)  # Cuda Compiler Driver 2.2
9706           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'
9707           compiler_needs_object=yes
9708           ;;
9709         esac
9710         case `$CC -V 2>&1 | sed 5q` in
9711         *Sun\ C*)                       # Sun C 5.9
9712           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'
9713           compiler_needs_object=yes
9714           tmp_sharedflag='-G' ;;
9715         *Sun\ F*)                       # Sun Fortran 8.3
9716           tmp_sharedflag='-G' ;;
9717         esac
9718         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719
9720         if test "x$supports_anon_versioning" = xyes; then
9721           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9722             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9723             echo "local: *; };" >> $output_objdir/$libname.ver~
9724             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9725         fi
9726
9727         case $cc_basename in
9728         xlf* | bgf* | bgxlf* | mpixlf*)
9729           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9730           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9731           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9733           if test "x$supports_anon_versioning" = xyes; then
9734             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9735               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9736               echo "local: *; };" >> $output_objdir/$libname.ver~
9737               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9738           fi
9739           ;;
9740         esac
9741       else
9742         ld_shlibs=no
9743       fi
9744       ;;
9745
9746     netbsd* | netbsdelf*-gnu)
9747       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9748         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9749         wlarc=
9750       else
9751         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9753       fi
9754       ;;
9755
9756     solaris*)
9757       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9758         ld_shlibs=no
9759         cat <<_LT_EOF 1>&2
9760
9761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9762 *** create shared libraries on Solaris systems.  Therefore, libtool
9763 *** is disabling shared libraries support.  We urge you to upgrade GNU
9764 *** binutils to release 2.9.1 or newer.  Another option is to modify
9765 *** your PATH or compiler configuration so that the native linker is
9766 *** used, and then restart.
9767
9768 _LT_EOF
9769       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9770         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9772       else
9773         ld_shlibs=no
9774       fi
9775       ;;
9776
9777     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9778       case `$LD -v 2>&1` in
9779         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9780         ld_shlibs=no
9781         cat <<_LT_EOF 1>&2
9782
9783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9784 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9785 *** is disabling shared libraries support.  We urge you to upgrade GNU
9786 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9787 *** your PATH or compiler configuration so that the native linker is
9788 *** used, and then restart.
9789
9790 _LT_EOF
9791         ;;
9792         *)
9793           # For security reasons, it is highly recommended that you always
9794           # use absolute paths for naming shared libraries, and exclude the
9795           # DT_RUNPATH tag from executables and libraries.  But doing so
9796           # requires that you compile everything twice, which is a pain.
9797           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9799             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801           else
9802             ld_shlibs=no
9803           fi
9804         ;;
9805       esac
9806       ;;
9807
9808     sunos4*)
9809       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9810       wlarc=
9811       hardcode_direct=yes
9812       hardcode_shlibpath_var=no
9813       ;;
9814
9815     *)
9816       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9817         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9819       else
9820         ld_shlibs=no
9821       fi
9822       ;;
9823     esac
9824
9825     if test "$ld_shlibs" = no; then
9826       runpath_var=
9827       hardcode_libdir_flag_spec=
9828       export_dynamic_flag_spec=
9829       whole_archive_flag_spec=
9830     fi
9831   else
9832     # PORTME fill in a description of your system's linker (not GNU ld)
9833     case $host_os in
9834     aix3*)
9835       allow_undefined_flag=unsupported
9836       always_export_symbols=yes
9837       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'
9838       # Note: this linker hardcodes the directories in LIBPATH if there
9839       # are no directories specified by -L.
9840       hardcode_minus_L=yes
9841       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9842         # Neither direct hardcoding nor static linking is supported with a
9843         # broken collect2.
9844         hardcode_direct=unsupported
9845       fi
9846       ;;
9847
9848     aix[4-9]*)
9849       if test "$host_cpu" = ia64; then
9850         # On IA64, the linker does run time linking by default, so we don't
9851         # have to do anything special.
9852         aix_use_runtimelinking=no
9853         exp_sym_flag='-Bexport'
9854         no_entry_flag=""
9855       else
9856         # If we're using GNU nm, then we don't want the "-C" option.
9857         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9858         # Also, AIX nm treats weak defined symbols like other global
9859         # defined symbols, whereas GNU nm marks them as "W".
9860         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9861           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9862         else
9863           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9864         fi
9865         aix_use_runtimelinking=no
9866
9867         # Test if we are trying to use run time linking or normal
9868         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9869         # need to do runtime linking.
9870         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9871           for ld_flag in $LDFLAGS; do
9872           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9873             aix_use_runtimelinking=yes
9874             break
9875           fi
9876           done
9877           ;;
9878         esac
9879
9880         exp_sym_flag='-bexport'
9881         no_entry_flag='-bnoentry'
9882       fi
9883
9884       # When large executables or shared objects are built, AIX ld can
9885       # have problems creating the table of contents.  If linking a library
9886       # or program results in "error TOC overflow" add -mminimal-toc to
9887       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9888       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9889
9890       archive_cmds=''
9891       hardcode_direct=yes
9892       hardcode_direct_absolute=yes
9893       hardcode_libdir_separator=':'
9894       link_all_deplibs=yes
9895       file_list_spec='${wl}-f,'
9896
9897       if test "$GCC" = yes; then
9898         case $host_os in aix4.[012]|aix4.[012].*)
9899         # We only want to do this on AIX 4.2 and lower, the check
9900         # below for broken collect2 doesn't work under 4.3+
9901           collect2name=`${CC} -print-prog-name=collect2`
9902           if test -f "$collect2name" &&
9903            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9904           then
9905           # We have reworked collect2
9906           :
9907           else
9908           # We have old collect2
9909           hardcode_direct=unsupported
9910           # It fails to find uninstalled libraries when the uninstalled
9911           # path is not listed in the libpath.  Setting hardcode_minus_L
9912           # to unsupported forces relinking
9913           hardcode_minus_L=yes
9914           hardcode_libdir_flag_spec='-L$libdir'
9915           hardcode_libdir_separator=
9916           fi
9917           ;;
9918         esac
9919         shared_flag='-shared'
9920         if test "$aix_use_runtimelinking" = yes; then
9921           shared_flag="$shared_flag "'${wl}-G'
9922         fi
9923         link_all_deplibs=no
9924       else
9925         # not using gcc
9926         if test "$host_cpu" = ia64; then
9927         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9928         # chokes on -Wl,-G. The following line is correct:
9929           shared_flag='-G'
9930         else
9931           if test "$aix_use_runtimelinking" = yes; then
9932             shared_flag='${wl}-G'
9933           else
9934             shared_flag='${wl}-bM:SRE'
9935           fi
9936         fi
9937       fi
9938
9939       export_dynamic_flag_spec='${wl}-bexpall'
9940       # It seems that -bexpall does not export symbols beginning with
9941       # underscore (_), so it is better to generate a list of symbols to export.
9942       always_export_symbols=yes
9943       if test "$aix_use_runtimelinking" = yes; then
9944         # Warning - without using the other runtime loading flags (-brtl),
9945         # -berok will link without error, but may produce a broken library.
9946         allow_undefined_flag='-berok'
9947         # Determine the default libpath from the value encoded in an
9948         # empty executable.
9949         if test "${lt_cv_aix_libpath+set}" = set; then
9950   aix_libpath=$lt_cv_aix_libpath
9951 else
9952   if ${lt_cv_aix_libpath_+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h.  */
9957
9958 int
9959 main ()
9960 {
9961
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 if ac_fn_c_try_link "$LINENO"; then :
9967
9968   lt_aix_libpath_sed='
9969       /Import File Strings/,/^$/ {
9970           /^0/ {
9971               s/^0  *\([^ ]*\) *$/\1/
9972               p
9973           }
9974       }'
9975   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9976   # Check for a 64-bit object if we didn't find anything.
9977   if test -z "$lt_cv_aix_libpath_"; then
9978     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979   fi
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982     conftest$ac_exeext conftest.$ac_ext
9983   if test -z "$lt_cv_aix_libpath_"; then
9984     lt_cv_aix_libpath_="/usr/lib:/lib"
9985   fi
9986
9987 fi
9988
9989   aix_libpath=$lt_cv_aix_libpath_
9990 fi
9991
9992         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9993         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9994       else
9995         if test "$host_cpu" = ia64; then
9996           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9997           allow_undefined_flag="-z nodefs"
9998           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"
9999         else
10000          # Determine the default libpath from the value encoded in an
10001          # empty executable.
10002          if test "${lt_cv_aix_libpath+set}" = set; then
10003   aix_libpath=$lt_cv_aix_libpath
10004 else
10005   if ${lt_cv_aix_libpath_+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 int
10012 main ()
10013 {
10014
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020
10021   lt_aix_libpath_sed='
10022       /Import File Strings/,/^$/ {
10023           /^0/ {
10024               s/^0  *\([^ ]*\) *$/\1/
10025               p
10026           }
10027       }'
10028   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029   # Check for a 64-bit object if we didn't find anything.
10030   if test -z "$lt_cv_aix_libpath_"; then
10031     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032   fi
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035     conftest$ac_exeext conftest.$ac_ext
10036   if test -z "$lt_cv_aix_libpath_"; then
10037     lt_cv_aix_libpath_="/usr/lib:/lib"
10038   fi
10039
10040 fi
10041
10042   aix_libpath=$lt_cv_aix_libpath_
10043 fi
10044
10045          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10046           # Warning - without using the other run time loading flags,
10047           # -berok will link without error, but may produce a broken library.
10048           no_undefined_flag=' ${wl}-bernotok'
10049           allow_undefined_flag=' ${wl}-berok'
10050           if test "$with_gnu_ld" = yes; then
10051             # We only use this code for GNU lds that support --whole-archive.
10052             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10053           else
10054             # Exported symbols can be pulled into shared objects from archives
10055             whole_archive_flag_spec='$convenience'
10056           fi
10057           archive_cmds_need_lc=yes
10058           # This is similar to how AIX traditionally builds its shared libraries.
10059           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10060         fi
10061       fi
10062       ;;
10063
10064     amigaos*)
10065       case $host_cpu in
10066       powerpc)
10067             # see comment about AmigaOS4 .so support
10068             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069             archive_expsym_cmds=''
10070         ;;
10071       m68k)
10072             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)'
10073             hardcode_libdir_flag_spec='-L$libdir'
10074             hardcode_minus_L=yes
10075         ;;
10076       esac
10077       ;;
10078
10079     bsdi[45]*)
10080       export_dynamic_flag_spec=-rdynamic
10081       ;;
10082
10083     cygwin* | mingw* | pw32* | cegcc*)
10084       # When not using gcc, we currently assume that we are using
10085       # Microsoft Visual C++.
10086       # hardcode_libdir_flag_spec is actually meaningless, as there is
10087       # no search path for DLLs.
10088       case $cc_basename in
10089       cl*)
10090         # Native MSVC
10091         hardcode_libdir_flag_spec=' '
10092         allow_undefined_flag=unsupported
10093         always_export_symbols=yes
10094         file_list_spec='@'
10095         # Tell ltmain to make .lib files, not .a files.
10096         libext=lib
10097         # Tell ltmain to make .dll files, not .so files.
10098         shrext_cmds=".dll"
10099         # FIXME: Setting linknames here is a bad hack.
10100         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10101         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10102             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10103           else
10104             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10105           fi~
10106           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10107           linknames='
10108         # The linker will not automatically build a static lib if we build a DLL.
10109         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10110         enable_shared_with_static_runtimes=yes
10111         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10112         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10113         # Don't use ranlib
10114         old_postinstall_cmds='chmod 644 $oldlib'
10115         postlink_cmds='lt_outputfile="@OUTPUT@"~
10116           lt_tool_outputfile="@TOOL_OUTPUT@"~
10117           case $lt_outputfile in
10118             *.exe|*.EXE) ;;
10119             *)
10120               lt_outputfile="$lt_outputfile.exe"
10121               lt_tool_outputfile="$lt_tool_outputfile.exe"
10122               ;;
10123           esac~
10124           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10125             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10126             $RM "$lt_outputfile.manifest";
10127           fi'
10128         ;;
10129       *)
10130         # Assume MSVC wrapper
10131         hardcode_libdir_flag_spec=' '
10132         allow_undefined_flag=unsupported
10133         # Tell ltmain to make .lib files, not .a files.
10134         libext=lib
10135         # Tell ltmain to make .dll files, not .so files.
10136         shrext_cmds=".dll"
10137         # FIXME: Setting linknames here is a bad hack.
10138         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10139         # The linker will automatically build a .lib file if we build a DLL.
10140         old_archive_from_new_cmds='true'
10141         # FIXME: Should let the user specify the lib program.
10142         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10143         enable_shared_with_static_runtimes=yes
10144         ;;
10145       esac
10146       ;;
10147
10148     darwin* | rhapsody*)
10149
10150
10151   archive_cmds_need_lc=no
10152   hardcode_direct=no
10153   hardcode_automatic=yes
10154   hardcode_shlibpath_var=unsupported
10155   if test "$lt_cv_ld_force_load" = "yes"; then
10156     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\"`'
10157
10158   else
10159     whole_archive_flag_spec=''
10160   fi
10161   link_all_deplibs=yes
10162   allow_undefined_flag="$_lt_dar_allow_undefined"
10163   case $cc_basename in
10164      ifort*) _lt_dar_can_shared=yes ;;
10165      *) _lt_dar_can_shared=$GCC ;;
10166   esac
10167   if test "$_lt_dar_can_shared" = "yes"; then
10168     output_verbose_link_cmd=func_echo_all
10169     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10170     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10171     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}"
10172     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}"
10173
10174   else
10175   ld_shlibs=no
10176   fi
10177
10178       ;;
10179
10180     dgux*)
10181       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182       hardcode_libdir_flag_spec='-L$libdir'
10183       hardcode_shlibpath_var=no
10184       ;;
10185
10186     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10187     # support.  Future versions do this automatically, but an explicit c++rt0.o
10188     # does not break anything, and helps significantly (at the cost of a little
10189     # extra space).
10190     freebsd2.2*)
10191       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10192       hardcode_libdir_flag_spec='-R$libdir'
10193       hardcode_direct=yes
10194       hardcode_shlibpath_var=no
10195       ;;
10196
10197     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10198     freebsd2.*)
10199       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10200       hardcode_direct=yes
10201       hardcode_minus_L=yes
10202       hardcode_shlibpath_var=no
10203       ;;
10204
10205     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10206     freebsd* | dragonfly*)
10207       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10208       hardcode_libdir_flag_spec='-R$libdir'
10209       hardcode_direct=yes
10210       hardcode_shlibpath_var=no
10211       ;;
10212
10213     hpux9*)
10214       if test "$GCC" = yes; then
10215         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10216       else
10217         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10218       fi
10219       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10220       hardcode_libdir_separator=:
10221       hardcode_direct=yes
10222
10223       # hardcode_minus_L: Not really in the search PATH,
10224       # but as the default location of the library.
10225       hardcode_minus_L=yes
10226       export_dynamic_flag_spec='${wl}-E'
10227       ;;
10228
10229     hpux10*)
10230       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10231         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232       else
10233         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10234       fi
10235       if test "$with_gnu_ld" = no; then
10236         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10237         hardcode_libdir_separator=:
10238         hardcode_direct=yes
10239         hardcode_direct_absolute=yes
10240         export_dynamic_flag_spec='${wl}-E'
10241         # hardcode_minus_L: Not really in the search PATH,
10242         # but as the default location of the library.
10243         hardcode_minus_L=yes
10244       fi
10245       ;;
10246
10247     hpux11*)
10248       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10249         case $host_cpu in
10250         hppa*64*)
10251           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10252           ;;
10253         ia64*)
10254           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10255           ;;
10256         *)
10257           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258           ;;
10259         esac
10260       else
10261         case $host_cpu in
10262         hppa*64*)
10263           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264           ;;
10265         ia64*)
10266           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10267           ;;
10268         *)
10269
10270           # Older versions of the 11.00 compiler do not understand -b yet
10271           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10272           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10273 $as_echo_n "checking if $CC understands -b... " >&6; }
10274 if ${lt_cv_prog_compiler__b+:} false; then :
10275   $as_echo_n "(cached) " >&6
10276 else
10277   lt_cv_prog_compiler__b=no
10278    save_LDFLAGS="$LDFLAGS"
10279    LDFLAGS="$LDFLAGS -b"
10280    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10281    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10282      # The linker can only warn and ignore the option if not recognized
10283      # So say no if there are warnings
10284      if test -s conftest.err; then
10285        # Append any errors to the config.log.
10286        cat conftest.err 1>&5
10287        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10288        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10289        if diff conftest.exp conftest.er2 >/dev/null; then
10290          lt_cv_prog_compiler__b=yes
10291        fi
10292      else
10293        lt_cv_prog_compiler__b=yes
10294      fi
10295    fi
10296    $RM -r conftest*
10297    LDFLAGS="$save_LDFLAGS"
10298
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10301 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10302
10303 if test x"$lt_cv_prog_compiler__b" = xyes; then
10304     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10305 else
10306     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10307 fi
10308
10309           ;;
10310         esac
10311       fi
10312       if test "$with_gnu_ld" = no; then
10313         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10314         hardcode_libdir_separator=:
10315
10316         case $host_cpu in
10317         hppa*64*|ia64*)
10318           hardcode_direct=no
10319           hardcode_shlibpath_var=no
10320           ;;
10321         *)
10322           hardcode_direct=yes
10323           hardcode_direct_absolute=yes
10324           export_dynamic_flag_spec='${wl}-E'
10325
10326           # hardcode_minus_L: Not really in the search PATH,
10327           # but as the default location of the library.
10328           hardcode_minus_L=yes
10329           ;;
10330         esac
10331       fi
10332       ;;
10333
10334     irix5* | irix6* | nonstopux*)
10335       if test "$GCC" = yes; then
10336         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'
10337         # Try to use the -exported_symbol ld option, if it does not
10338         # work, assume that -exports_file does not work either and
10339         # implicitly export all symbols.
10340         # This should be the same for all languages, so no per-tag cache variable.
10341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10342 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10343 if ${lt_cv_irix_exported_symbol+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   save_LDFLAGS="$LDFLAGS"
10347            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10348            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h.  */
10350 int foo (void) { return 0; }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353   lt_cv_irix_exported_symbol=yes
10354 else
10355   lt_cv_irix_exported_symbol=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext \
10358     conftest$ac_exeext conftest.$ac_ext
10359            LDFLAGS="$save_LDFLAGS"
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10362 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10363         if test "$lt_cv_irix_exported_symbol" = yes; then
10364           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'
10365         fi
10366       else
10367         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'
10368         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'
10369       fi
10370       archive_cmds_need_lc='no'
10371       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10372       hardcode_libdir_separator=:
10373       inherit_rpath=yes
10374       link_all_deplibs=yes
10375       ;;
10376
10377     netbsd* | netbsdelf*-gnu)
10378       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10380       else
10381         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10382       fi
10383       hardcode_libdir_flag_spec='-R$libdir'
10384       hardcode_direct=yes
10385       hardcode_shlibpath_var=no
10386       ;;
10387
10388     newsos6)
10389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390       hardcode_direct=yes
10391       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392       hardcode_libdir_separator=:
10393       hardcode_shlibpath_var=no
10394       ;;
10395
10396     *nto* | *qnx*)
10397       ;;
10398
10399     openbsd*)
10400       if test -f /usr/libexec/ld.so; then
10401         hardcode_direct=yes
10402         hardcode_shlibpath_var=no
10403         hardcode_direct_absolute=yes
10404         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10405           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10407           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408           export_dynamic_flag_spec='${wl}-E'
10409         else
10410           case $host_os in
10411            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10412              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10413              hardcode_libdir_flag_spec='-R$libdir'
10414              ;;
10415            *)
10416              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10418              ;;
10419           esac
10420         fi
10421       else
10422         ld_shlibs=no
10423       fi
10424       ;;
10425
10426     os2*)
10427       hardcode_libdir_flag_spec='-L$libdir'
10428       hardcode_minus_L=yes
10429       allow_undefined_flag=unsupported
10430       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10431       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10432       ;;
10433
10434     osf3*)
10435       if test "$GCC" = yes; then
10436         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10437         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'
10438       else
10439         allow_undefined_flag=' -expect_unresolved \*'
10440         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'
10441       fi
10442       archive_cmds_need_lc='no'
10443       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444       hardcode_libdir_separator=:
10445       ;;
10446
10447     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10448       if test "$GCC" = yes; then
10449         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10450         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'
10451         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452       else
10453         allow_undefined_flag=' -expect_unresolved \*'
10454         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'
10455         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~
10456         $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'
10457
10458         # Both c and cxx compiler support -rpath directly
10459         hardcode_libdir_flag_spec='-rpath $libdir'
10460       fi
10461       archive_cmds_need_lc='no'
10462       hardcode_libdir_separator=:
10463       ;;
10464
10465     solaris*)
10466       no_undefined_flag=' -z defs'
10467       if test "$GCC" = yes; then
10468         wlarc='${wl}'
10469         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471           $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'
10472       else
10473         case `$CC -V 2>&1` in
10474         *"Compilers 5.0"*)
10475           wlarc=''
10476           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10478           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10479           ;;
10480         *)
10481           wlarc='${wl}'
10482           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10483           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10484           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10485           ;;
10486         esac
10487       fi
10488       hardcode_libdir_flag_spec='-R$libdir'
10489       hardcode_shlibpath_var=no
10490       case $host_os in
10491       solaris2.[0-5] | solaris2.[0-5].*) ;;
10492       *)
10493         # The compiler driver will combine and reorder linker options,
10494         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10495         # but is careful enough not to reorder.
10496         # Supported since Solaris 2.6 (maybe 2.5.1?)
10497         if test "$GCC" = yes; then
10498           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10499         else
10500           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10501         fi
10502         ;;
10503       esac
10504       link_all_deplibs=yes
10505       ;;
10506
10507     sunos4*)
10508       if test "x$host_vendor" = xsequent; then
10509         # Use $CC to link under sequent, because it throws in some extra .o
10510         # files that make .init and .fini sections work.
10511         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10512       else
10513         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10514       fi
10515       hardcode_libdir_flag_spec='-L$libdir'
10516       hardcode_direct=yes
10517       hardcode_minus_L=yes
10518       hardcode_shlibpath_var=no
10519       ;;
10520
10521     sysv4)
10522       case $host_vendor in
10523         sni)
10524           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525           hardcode_direct=yes # is this really true???
10526         ;;
10527         siemens)
10528           ## LD is ld it makes a PLAMLIB
10529           ## CC just makes a GrossModule.
10530           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10531           reload_cmds='$CC -r -o $output$reload_objs'
10532           hardcode_direct=no
10533         ;;
10534         motorola)
10535           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10537         ;;
10538       esac
10539       runpath_var='LD_RUN_PATH'
10540       hardcode_shlibpath_var=no
10541       ;;
10542
10543     sysv4.3*)
10544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545       hardcode_shlibpath_var=no
10546       export_dynamic_flag_spec='-Bexport'
10547       ;;
10548
10549     sysv4*MP*)
10550       if test -d /usr/nec; then
10551         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552         hardcode_shlibpath_var=no
10553         runpath_var=LD_RUN_PATH
10554         hardcode_runpath_var=yes
10555         ld_shlibs=yes
10556       fi
10557       ;;
10558
10559     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10560       no_undefined_flag='${wl}-z,text'
10561       archive_cmds_need_lc=no
10562       hardcode_shlibpath_var=no
10563       runpath_var='LD_RUN_PATH'
10564
10565       if test "$GCC" = yes; then
10566         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568       else
10569         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571       fi
10572       ;;
10573
10574     sysv5* | sco3.2v5* | sco5v6*)
10575       # Note: We can NOT use -z defs as we might desire, because we do not
10576       # link with -lc, and that would cause any symbols used from libc to
10577       # always be unresolved, which means just about no library would
10578       # ever link correctly.  If we're not using GNU ld we use -z text
10579       # though, which does catch some bad symbols but isn't as heavy-handed
10580       # as -z defs.
10581       no_undefined_flag='${wl}-z,text'
10582       allow_undefined_flag='${wl}-z,nodefs'
10583       archive_cmds_need_lc=no
10584       hardcode_shlibpath_var=no
10585       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10586       hardcode_libdir_separator=':'
10587       link_all_deplibs=yes
10588       export_dynamic_flag_spec='${wl}-Bexport'
10589       runpath_var='LD_RUN_PATH'
10590
10591       if test "$GCC" = yes; then
10592         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594       else
10595         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10596         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597       fi
10598       ;;
10599
10600     uts4*)
10601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602       hardcode_libdir_flag_spec='-L$libdir'
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     *)
10607       ld_shlibs=no
10608       ;;
10609     esac
10610
10611     if test x$host_vendor = xsni; then
10612       case $host in
10613       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10614         export_dynamic_flag_spec='${wl}-Blargedynsym'
10615         ;;
10616       esac
10617     fi
10618   fi
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10621 $as_echo "$ld_shlibs" >&6; }
10622 test "$ld_shlibs" = no && can_build_shared=no
10623
10624 with_gnu_ld=$with_gnu_ld
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 #
10641 # Do we need to explicitly link libc?
10642 #
10643 case "x$archive_cmds_need_lc" in
10644 x|xyes)
10645   # Assume -lc should be added
10646   archive_cmds_need_lc=yes
10647
10648   if test "$enable_shared" = yes && test "$GCC" = yes; then
10649     case $archive_cmds in
10650     *'~'*)
10651       # FIXME: we may have to deal with multi-command sequences.
10652       ;;
10653     '$CC '*)
10654       # Test whether the compiler implicitly links with -lc since on some
10655       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10656       # to ld, don't add -lc before -lgcc.
10657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10658 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10659 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   $RM conftest*
10663         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10664
10665         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10666   (eval $ac_compile) 2>&5
10667   ac_status=$?
10668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669   test $ac_status = 0; } 2>conftest.err; then
10670           soname=conftest
10671           lib=conftest
10672           libobjs=conftest.$ac_objext
10673           deplibs=
10674           wl=$lt_prog_compiler_wl
10675           pic_flag=$lt_prog_compiler_pic
10676           compiler_flags=-v
10677           linker_flags=-v
10678           verstring=
10679           output_objdir=.
10680           libname=conftest
10681           lt_save_allow_undefined_flag=$allow_undefined_flag
10682           allow_undefined_flag=
10683           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10684   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10685   ac_status=$?
10686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687   test $ac_status = 0; }
10688           then
10689             lt_cv_archive_cmds_need_lc=no
10690           else
10691             lt_cv_archive_cmds_need_lc=yes
10692           fi
10693           allow_undefined_flag=$lt_save_allow_undefined_flag
10694         else
10695           cat conftest.err 1>&5
10696         fi
10697         $RM conftest*
10698
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10701 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10702       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10703       ;;
10704     esac
10705   fi
10706   ;;
10707 esac
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10861 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10862
10863 if test "$GCC" = yes; then
10864   case $host_os in
10865     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10866     *) lt_awk_arg="/^libraries:/" ;;
10867   esac
10868   case $host_os in
10869     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10870     *) lt_sed_strip_eq="s,=/,/,g" ;;
10871   esac
10872   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10873   case $lt_search_path_spec in
10874   *\;*)
10875     # if the path contains ";" then we assume it to be the separator
10876     # otherwise default to the standard path separator (i.e. ":") - it is
10877     # assumed that no part of a normal pathname contains ";" but that should
10878     # okay in the real world where ";" in dirpaths is itself problematic.
10879     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10880     ;;
10881   *)
10882     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10883     ;;
10884   esac
10885   # Ok, now we have the path, separated by spaces, we can step through it
10886   # and add multilib dir if necessary.
10887   lt_tmp_lt_search_path_spec=
10888   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10889   for lt_sys_path in $lt_search_path_spec; do
10890     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10891       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10892     else
10893       test -d "$lt_sys_path" && \
10894         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10895     fi
10896   done
10897   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10898 BEGIN {RS=" "; FS="/|\n";} {
10899   lt_foo="";
10900   lt_count=0;
10901   for (lt_i = NF; lt_i > 0; lt_i--) {
10902     if ($lt_i != "" && $lt_i != ".") {
10903       if ($lt_i == "..") {
10904         lt_count++;
10905       } else {
10906         if (lt_count == 0) {
10907           lt_foo="/" $lt_i lt_foo;
10908         } else {
10909           lt_count--;
10910         }
10911       }
10912     }
10913   }
10914   if (lt_foo != "") { lt_freq[lt_foo]++; }
10915   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10916 }'`
10917   # AWK program above erroneously prepends '/' to C:/dos/paths
10918   # for these hosts.
10919   case $host_os in
10920     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10921       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10922   esac
10923   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10924 else
10925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10926 fi
10927 library_names_spec=
10928 libname_spec='lib$name'
10929 soname_spec=
10930 shrext_cmds=".so"
10931 postinstall_cmds=
10932 postuninstall_cmds=
10933 finish_cmds=
10934 finish_eval=
10935 shlibpath_var=
10936 shlibpath_overrides_runpath=unknown
10937 version_type=none
10938 dynamic_linker="$host_os ld.so"
10939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10940 need_lib_prefix=unknown
10941 hardcode_into_libs=no
10942
10943 # when you set need_version to no, make sure it does not cause -set_version
10944 # flags to be left without arguments
10945 need_version=unknown
10946
10947 case $host_os in
10948 aix3*)
10949   version_type=linux # correct to gnu/linux during the next big refactor
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10951   shlibpath_var=LIBPATH
10952
10953   # AIX 3 has no versioning support, so we append a major version to the name.
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   ;;
10956
10957 aix[4-9]*)
10958   version_type=linux # correct to gnu/linux during the next big refactor
10959   need_lib_prefix=no
10960   need_version=no
10961   hardcode_into_libs=yes
10962   if test "$host_cpu" = ia64; then
10963     # AIX 5 supports IA64
10964     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10965     shlibpath_var=LD_LIBRARY_PATH
10966   else
10967     # With GCC up to 2.95.x, collect2 would create an import file
10968     # for dependence libraries.  The import file would start with
10969     # the line `#! .'.  This would cause the generated library to
10970     # depend on `.', always an invalid library.  This was fixed in
10971     # development snapshots of GCC prior to 3.0.
10972     case $host_os in
10973       aix4 | aix4.[01] | aix4.[01].*)
10974       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10975            echo ' yes '
10976            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10977         :
10978       else
10979         can_build_shared=no
10980       fi
10981       ;;
10982     esac
10983     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10984     # soname into executable. Probably we can add versioning support to
10985     # collect2, so additional links can be useful in future.
10986     if test "$aix_use_runtimelinking" = yes; then
10987       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988       # instead of lib<name>.a to let people know that these are not
10989       # typical AIX shared libraries.
10990       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991     else
10992       # We preserve .a as extension for shared libraries through AIX4.2
10993       # and later when we are not doing run time linking.
10994       library_names_spec='${libname}${release}.a $libname.a'
10995       soname_spec='${libname}${release}${shared_ext}$major'
10996     fi
10997     shlibpath_var=LIBPATH
10998   fi
10999   ;;
11000
11001 amigaos*)
11002   case $host_cpu in
11003   powerpc)
11004     # Since July 2007 AmigaOS4 officially supports .so libraries.
11005     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007     ;;
11008   m68k)
11009     library_names_spec='$libname.ixlibrary $libname.a'
11010     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11011     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11012     ;;
11013   esac
11014   ;;
11015
11016 beos*)
11017   library_names_spec='${libname}${shared_ext}'
11018   dynamic_linker="$host_os ld.so"
11019   shlibpath_var=LIBRARY_PATH
11020   ;;
11021
11022 bsdi[45]*)
11023   version_type=linux # correct to gnu/linux during the next big refactor
11024   need_version=no
11025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026   soname_spec='${libname}${release}${shared_ext}$major'
11027   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11028   shlibpath_var=LD_LIBRARY_PATH
11029   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11030   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11031   # the default ld.so.conf also contains /usr/contrib/lib and
11032   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11033   # libtool to hard-code these into programs
11034   ;;
11035
11036 cygwin* | mingw* | pw32* | cegcc*)
11037   version_type=windows
11038   shrext_cmds=".dll"
11039   need_version=no
11040   need_lib_prefix=no
11041
11042   case $GCC,$cc_basename in
11043   yes,*)
11044     # gcc
11045     library_names_spec='$libname.dll.a'
11046     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11047     postinstall_cmds='base_file=`basename \${file}`~
11048       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11049       dldir=$destdir/`dirname \$dlpath`~
11050       test -d \$dldir || mkdir -p \$dldir~
11051       $install_prog $dir/$dlname \$dldir/$dlname~
11052       chmod a+x \$dldir/$dlname~
11053       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11054         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11055       fi'
11056     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11057       dlpath=$dir/\$dldll~
11058        $RM \$dlpath'
11059     shlibpath_overrides_runpath=yes
11060
11061     case $host_os in
11062     cygwin*)
11063       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11064       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11065
11066       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11067       ;;
11068     mingw* | cegcc*)
11069       # MinGW DLLs use traditional 'lib' prefix
11070       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11071       ;;
11072     pw32*)
11073       # pw32 DLLs use 'pw' prefix rather than 'lib'
11074       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11075       ;;
11076     esac
11077     dynamic_linker='Win32 ld.exe'
11078     ;;
11079
11080   *,cl*)
11081     # Native MSVC
11082     libname_spec='$name'
11083     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11084     library_names_spec='${libname}.dll.lib'
11085
11086     case $build_os in
11087     mingw*)
11088       sys_lib_search_path_spec=
11089       lt_save_ifs=$IFS
11090       IFS=';'
11091       for lt_path in $LIB
11092       do
11093         IFS=$lt_save_ifs
11094         # Let DOS variable expansion print the short 8.3 style file name.
11095         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11096         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11097       done
11098       IFS=$lt_save_ifs
11099       # Convert to MSYS style.
11100       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11101       ;;
11102     cygwin*)
11103       # Convert to unix form, then to dos form, then back to unix form
11104       # but this time dos style (no spaces!) so that the unix form looks
11105       # like /cygdrive/c/PROGRA~1:/cygdr...
11106       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11107       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11108       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11109       ;;
11110     *)
11111       sys_lib_search_path_spec="$LIB"
11112       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11113         # It is most probably a Windows format PATH.
11114         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11115       else
11116         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11117       fi
11118       # FIXME: find the short name or the path components, as spaces are
11119       # common. (e.g. "Program Files" -> "PROGRA~1")
11120       ;;
11121     esac
11122
11123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124     postinstall_cmds='base_file=`basename \${file}`~
11125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11126       dldir=$destdir/`dirname \$dlpath`~
11127       test -d \$dldir || mkdir -p \$dldir~
11128       $install_prog $dir/$dlname \$dldir/$dlname'
11129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11130       dlpath=$dir/\$dldll~
11131        $RM \$dlpath'
11132     shlibpath_overrides_runpath=yes
11133     dynamic_linker='Win32 link.exe'
11134     ;;
11135
11136   *)
11137     # Assume MSVC wrapper
11138     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11139     dynamic_linker='Win32 ld.exe'
11140     ;;
11141   esac
11142   # FIXME: first we should search . and the directory the executable is in
11143   shlibpath_var=PATH
11144   ;;
11145
11146 darwin* | rhapsody*)
11147   dynamic_linker="$host_os dyld"
11148   version_type=darwin
11149   need_lib_prefix=no
11150   need_version=no
11151   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11152   soname_spec='${libname}${release}${major}$shared_ext'
11153   shlibpath_overrides_runpath=yes
11154   shlibpath_var=DYLD_LIBRARY_PATH
11155   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11156
11157   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11158   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11159   ;;
11160
11161 dgux*)
11162   version_type=linux # correct to gnu/linux during the next big refactor
11163   need_lib_prefix=no
11164   need_version=no
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11166   soname_spec='${libname}${release}${shared_ext}$major'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   ;;
11169
11170 freebsd* | dragonfly*)
11171   # DragonFly does not have aout.  When/if they implement a new
11172   # versioning mechanism, adjust this.
11173   if test -x /usr/bin/objformat; then
11174     objformat=`/usr/bin/objformat`
11175   else
11176     case $host_os in
11177     freebsd[23].*) objformat=aout ;;
11178     *) objformat=elf ;;
11179     esac
11180   fi
11181   version_type=freebsd-$objformat
11182   case $version_type in
11183     freebsd-elf*)
11184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11185       need_version=no
11186       need_lib_prefix=no
11187       ;;
11188     freebsd-*)
11189       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11190       need_version=yes
11191       ;;
11192   esac
11193   shlibpath_var=LD_LIBRARY_PATH
11194   case $host_os in
11195   freebsd2.*)
11196     shlibpath_overrides_runpath=yes
11197     ;;
11198   freebsd3.[01]* | freebsdelf3.[01]*)
11199     shlibpath_overrides_runpath=yes
11200     hardcode_into_libs=yes
11201     ;;
11202   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11203   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11204     shlibpath_overrides_runpath=no
11205     hardcode_into_libs=yes
11206     ;;
11207   *) # from 4.6 on, and DragonFly
11208     shlibpath_overrides_runpath=yes
11209     hardcode_into_libs=yes
11210     ;;
11211   esac
11212   ;;
11213
11214 gnu*)
11215   version_type=linux # correct to gnu/linux during the next big refactor
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   shlibpath_overrides_runpath=no
11222   hardcode_into_libs=yes
11223   ;;
11224
11225 haiku*)
11226   version_type=linux # correct to gnu/linux during the next big refactor
11227   need_lib_prefix=no
11228   need_version=no
11229   dynamic_linker="$host_os runtime_loader"
11230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11231   soname_spec='${libname}${release}${shared_ext}$major'
11232   shlibpath_var=LIBRARY_PATH
11233   shlibpath_overrides_runpath=yes
11234   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11235   hardcode_into_libs=yes
11236   ;;
11237
11238 hpux9* | hpux10* | hpux11*)
11239   # Give a soname corresponding to the major version so that dld.sl refuses to
11240   # link against other versions.
11241   version_type=sunos
11242   need_lib_prefix=no
11243   need_version=no
11244   case $host_cpu in
11245   ia64*)
11246     shrext_cmds='.so'
11247     hardcode_into_libs=yes
11248     dynamic_linker="$host_os dld.so"
11249     shlibpath_var=LD_LIBRARY_PATH
11250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252     soname_spec='${libname}${release}${shared_ext}$major'
11253     if test "X$HPUX_IA64_MODE" = X32; then
11254       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11255     else
11256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11257     fi
11258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11259     ;;
11260   hppa*64*)
11261     shrext_cmds='.sl'
11262     hardcode_into_libs=yes
11263     dynamic_linker="$host_os dld.sl"
11264     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267     soname_spec='${libname}${release}${shared_ext}$major'
11268     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11270     ;;
11271   *)
11272     shrext_cmds='.sl'
11273     dynamic_linker="$host_os dld.sl"
11274     shlibpath_var=SHLIB_PATH
11275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277     soname_spec='${libname}${release}${shared_ext}$major'
11278     ;;
11279   esac
11280   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11281   postinstall_cmds='chmod 555 $lib'
11282   # or fails outright, so override atomically:
11283   install_override_mode=555
11284   ;;
11285
11286 interix[3-9]*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11291   soname_spec='${libname}${release}${shared_ext}$major'
11292   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295   hardcode_into_libs=yes
11296   ;;
11297
11298 irix5* | irix6* | nonstopux*)
11299   case $host_os in
11300     nonstopux*) version_type=nonstopux ;;
11301     *)
11302         if test "$lt_cv_prog_gnu_ld" = yes; then
11303                 version_type=linux # correct to gnu/linux during the next big refactor
11304         else
11305                 version_type=irix
11306         fi ;;
11307   esac
11308   need_lib_prefix=no
11309   need_version=no
11310   soname_spec='${libname}${release}${shared_ext}$major'
11311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11312   case $host_os in
11313   irix5* | nonstopux*)
11314     libsuff= shlibsuff=
11315     ;;
11316   *)
11317     case $LD in # libtool.m4 will add one of these switches to LD
11318     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11319       libsuff= shlibsuff= libmagic=32-bit;;
11320     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11321       libsuff=32 shlibsuff=N32 libmagic=N32;;
11322     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11323       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11324     *) libsuff= shlibsuff= libmagic=never-match;;
11325     esac
11326     ;;
11327   esac
11328   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11329   shlibpath_overrides_runpath=no
11330   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11331   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11332   hardcode_into_libs=yes
11333   ;;
11334
11335 # No shared lib support for Linux oldld, aout, or coff.
11336 linux*oldld* | linux*aout* | linux*coff*)
11337   dynamic_linker=no
11338   ;;
11339
11340 # This must be glibc/ELF.
11341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11342   version_type=linux # correct to gnu/linux during the next big refactor
11343   need_lib_prefix=no
11344   need_version=no
11345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346   soname_spec='${libname}${release}${shared_ext}$major'
11347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=no
11350
11351   # Some binutils ld are patched to set DT_RUNPATH
11352   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   lt_cv_shlibpath_overrides_runpath=no
11356     save_LDFLAGS=$LDFLAGS
11357     save_libdir=$libdir
11358     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11359          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 int
11364 main ()
11365 {
11366
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 if ac_fn_c_try_link "$LINENO"; then :
11372   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11373   lt_cv_shlibpath_overrides_runpath=yes
11374 fi
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext \
11377     conftest$ac_exeext conftest.$ac_ext
11378     LDFLAGS=$save_LDFLAGS
11379     libdir=$save_libdir
11380
11381 fi
11382
11383   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11384
11385   # This implies no fast_install, which is unacceptable.
11386   # Some rework will be needed to allow for fast_install
11387   # before this can be enabled.
11388   hardcode_into_libs=yes
11389
11390   # Append ld.so.conf contents to the search path
11391   if test -f /etc/ld.so.conf; then
11392     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' ' '`
11393     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11394   fi
11395
11396   # We used to test for /lib/ld.so.1 and disable shared libraries on
11397   # powerpc, because MkLinux only supported shared libraries with the
11398   # GNU dynamic linker.  Since this was broken with cross compilers,
11399   # most powerpc-linux boxes support dynamic linking these days and
11400   # people can always --disable-shared, the test was removed, and we
11401   # assume the GNU/Linux dynamic linker is in use.
11402   dynamic_linker='GNU/Linux ld.so'
11403   ;;
11404
11405 netbsdelf*-gnu)
11406   version_type=linux
11407   need_lib_prefix=no
11408   need_version=no
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410   soname_spec='${libname}${release}${shared_ext}$major'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   shlibpath_overrides_runpath=no
11413   hardcode_into_libs=yes
11414   dynamic_linker='NetBSD ld.elf_so'
11415   ;;
11416
11417 netbsd*)
11418   version_type=sunos
11419   need_lib_prefix=no
11420   need_version=no
11421   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11424     dynamic_linker='NetBSD (a.out) ld.so'
11425   else
11426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11427     soname_spec='${libname}${release}${shared_ext}$major'
11428     dynamic_linker='NetBSD ld.elf_so'
11429   fi
11430   shlibpath_var=LD_LIBRARY_PATH
11431   shlibpath_overrides_runpath=yes
11432   hardcode_into_libs=yes
11433   ;;
11434
11435 newsos6)
11436   version_type=linux # correct to gnu/linux during the next big refactor
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438   shlibpath_var=LD_LIBRARY_PATH
11439   shlibpath_overrides_runpath=yes
11440   ;;
11441
11442 *nto* | *qnx*)
11443   version_type=qnx
11444   need_lib_prefix=no
11445   need_version=no
11446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447   soname_spec='${libname}${release}${shared_ext}$major'
11448   shlibpath_var=LD_LIBRARY_PATH
11449   shlibpath_overrides_runpath=no
11450   hardcode_into_libs=yes
11451   dynamic_linker='ldqnx.so'
11452   ;;
11453
11454 openbsd*)
11455   version_type=sunos
11456   sys_lib_dlsearch_path_spec="/usr/lib"
11457   need_lib_prefix=no
11458   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11459   case $host_os in
11460     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11461     *)                          need_version=no  ;;
11462   esac
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11467     case $host_os in
11468       openbsd2.[89] | openbsd2.[89].*)
11469         shlibpath_overrides_runpath=no
11470         ;;
11471       *)
11472         shlibpath_overrides_runpath=yes
11473         ;;
11474       esac
11475   else
11476     shlibpath_overrides_runpath=yes
11477   fi
11478   ;;
11479
11480 os2*)
11481   libname_spec='$name'
11482   shrext_cmds=".dll"
11483   need_lib_prefix=no
11484   library_names_spec='$libname${shared_ext} $libname.a'
11485   dynamic_linker='OS/2 ld.exe'
11486   shlibpath_var=LIBPATH
11487   ;;
11488
11489 osf3* | osf4* | osf5*)
11490   version_type=osf
11491   need_lib_prefix=no
11492   need_version=no
11493   soname_spec='${libname}${release}${shared_ext}$major'
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495   shlibpath_var=LD_LIBRARY_PATH
11496   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11497   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11498   ;;
11499
11500 rdos*)
11501   dynamic_linker=no
11502   ;;
11503
11504 solaris*)
11505   version_type=linux # correct to gnu/linux during the next big refactor
11506   need_lib_prefix=no
11507   need_version=no
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=yes
11512   hardcode_into_libs=yes
11513   # ldd complains unless libraries are executable
11514   postinstall_cmds='chmod +x $lib'
11515   ;;
11516
11517 sunos4*)
11518   version_type=sunos
11519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   shlibpath_overrides_runpath=yes
11523   if test "$with_gnu_ld" = yes; then
11524     need_lib_prefix=no
11525   fi
11526   need_version=yes
11527   ;;
11528
11529 sysv4 | sysv4.3*)
11530   version_type=linux # correct to gnu/linux during the next big refactor
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   case $host_vendor in
11535     sni)
11536       shlibpath_overrides_runpath=no
11537       need_lib_prefix=no
11538       runpath_var=LD_RUN_PATH
11539       ;;
11540     siemens)
11541       need_lib_prefix=no
11542       ;;
11543     motorola)
11544       need_lib_prefix=no
11545       need_version=no
11546       shlibpath_overrides_runpath=no
11547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11548       ;;
11549   esac
11550   ;;
11551
11552 sysv4*MP*)
11553   if test -d /usr/nec ;then
11554     version_type=linux # correct to gnu/linux during the next big refactor
11555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11556     soname_spec='$libname${shared_ext}.$major'
11557     shlibpath_var=LD_LIBRARY_PATH
11558   fi
11559   ;;
11560
11561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11562   version_type=freebsd-elf
11563   need_lib_prefix=no
11564   need_version=no
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   shlibpath_overrides_runpath=yes
11569   hardcode_into_libs=yes
11570   if test "$with_gnu_ld" = yes; then
11571     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11572   else
11573     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11574     case $host_os in
11575       sco3.2v5*)
11576         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11577         ;;
11578     esac
11579   fi
11580   sys_lib_dlsearch_path_spec='/usr/lib'
11581   ;;
11582
11583 tpf*)
11584   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11585   version_type=linux # correct to gnu/linux during the next big refactor
11586   need_lib_prefix=no
11587   need_version=no
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589   shlibpath_var=LD_LIBRARY_PATH
11590   shlibpath_overrides_runpath=no
11591   hardcode_into_libs=yes
11592   ;;
11593
11594 uts4*)
11595   version_type=linux # correct to gnu/linux during the next big refactor
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   ;;
11600
11601 *)
11602   dynamic_linker=no
11603   ;;
11604 esac
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11606 $as_echo "$dynamic_linker" >&6; }
11607 test "$dynamic_linker" = no && can_build_shared=no
11608
11609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11610 if test "$GCC" = yes; then
11611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11612 fi
11613
11614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11615   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11616 fi
11617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11618   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11619 fi
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11714 hardcode_action=
11715 if test -n "$hardcode_libdir_flag_spec" ||
11716    test -n "$runpath_var" ||
11717    test "X$hardcode_automatic" = "Xyes" ; then
11718
11719   # We can hardcode non-existent directories.
11720   if test "$hardcode_direct" != no &&
11721      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11722      # have to relink, otherwise we might link with an installed library
11723      # when we should be linking with a yet-to-be-installed one
11724      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11725      test "$hardcode_minus_L" != no; then
11726     # Linking always hardcodes the temporary library directory.
11727     hardcode_action=relink
11728   else
11729     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11730     hardcode_action=immediate
11731   fi
11732 else
11733   # We cannot hardcode anything, or else we can only hardcode existing
11734   # directories.
11735   hardcode_action=unsupported
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11738 $as_echo "$hardcode_action" >&6; }
11739
11740 if test "$hardcode_action" = relink ||
11741    test "$inherit_rpath" = yes; then
11742   # Fast installation is not supported
11743   enable_fast_install=no
11744 elif test "$shlibpath_overrides_runpath" = yes ||
11745      test "$enable_shared" = no; then
11746   # Fast installation is not necessary
11747   enable_fast_install=needless
11748 fi
11749
11750
11751
11752
11753
11754
11755   if test "x$enable_dlopen" != xyes; then
11756   enable_dlopen=unknown
11757   enable_dlopen_self=unknown
11758   enable_dlopen_self_static=unknown
11759 else
11760   lt_cv_dlopen=no
11761   lt_cv_dlopen_libs=
11762
11763   case $host_os in
11764   beos*)
11765     lt_cv_dlopen="load_add_on"
11766     lt_cv_dlopen_libs=
11767     lt_cv_dlopen_self=yes
11768     ;;
11769
11770   mingw* | pw32* | cegcc*)
11771     lt_cv_dlopen="LoadLibrary"
11772     lt_cv_dlopen_libs=
11773     ;;
11774
11775   cygwin*)
11776     lt_cv_dlopen="dlopen"
11777     lt_cv_dlopen_libs=
11778     ;;
11779
11780   darwin*)
11781   # if libdl is installed we need to link against it
11782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11784 if ${ac_cv_lib_dl_dlopen+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-ldl  $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char dlopen ();
11799 int
11800 main ()
11801 {
11802 return dlopen ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808   ac_cv_lib_dl_dlopen=yes
11809 else
11810   ac_cv_lib_dl_dlopen=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813     conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11818 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11820 else
11821
11822     lt_cv_dlopen="dyld"
11823     lt_cv_dlopen_libs=
11824     lt_cv_dlopen_self=yes
11825
11826 fi
11827
11828     ;;
11829
11830   *)
11831     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11832 if test "x$ac_cv_func_shl_load" = xyes; then :
11833   lt_cv_dlopen="shl_load"
11834 else
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11837 if ${ac_cv_lib_dld_shl_load+:} false; then :
11838   $as_echo_n "(cached) " >&6
11839 else
11840   ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-ldld  $LIBS"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h.  */
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846    Use char because int might match the return type of a GCC
11847    builtin and then its argument prototype would still apply.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char shl_load ();
11852 int
11853 main ()
11854 {
11855 return shl_load ();
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_link "$LINENO"; then :
11861   ac_cv_lib_dld_shl_load=yes
11862 else
11863   ac_cv_lib_dld_shl_load=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext \
11866     conftest$ac_exeext conftest.$ac_ext
11867 LIBS=$ac_check_lib_save_LIBS
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11871 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11872   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11873 else
11874   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11875 if test "x$ac_cv_func_dlopen" = xyes; then :
11876   lt_cv_dlopen="dlopen"
11877 else
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11880 if ${ac_cv_lib_dl_dlopen+:} false; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-ldl  $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h.  */
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889    Use char because int might match the return type of a GCC
11890    builtin and then its argument prototype would still apply.  */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char dlopen ();
11895 int
11896 main ()
11897 {
11898 return dlopen ();
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904   ac_cv_lib_dl_dlopen=yes
11905 else
11906   ac_cv_lib_dl_dlopen=no
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909     conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11915   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11919 if ${ac_cv_lib_svld_dlopen+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lsvld  $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h.  */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928    Use char because int might match the return type of a GCC
11929    builtin and then its argument prototype would still apply.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char dlopen ();
11934 int
11935 main ()
11936 {
11937 return dlopen ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943   ac_cv_lib_svld_dlopen=yes
11944 else
11945   ac_cv_lib_svld_dlopen=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext \
11948     conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11953 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11954   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11955 else
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11958 if ${ac_cv_lib_dld_dld_link+:} false; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-ldld  $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h.  */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967    Use char because int might match the return type of a GCC
11968    builtin and then its argument prototype would still apply.  */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char dld_link ();
11973 int
11974 main ()
11975 {
11976 return dld_link ();
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982   ac_cv_lib_dld_dld_link=yes
11983 else
11984   ac_cv_lib_dld_dld_link=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987     conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11992 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11993   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11994 fi
11995
11996
11997 fi
11998
11999
12000 fi
12001
12002
12003 fi
12004
12005
12006 fi
12007
12008
12009 fi
12010
12011     ;;
12012   esac
12013
12014   if test "x$lt_cv_dlopen" != xno; then
12015     enable_dlopen=yes
12016   else
12017     enable_dlopen=no
12018   fi
12019
12020   case $lt_cv_dlopen in
12021   dlopen)
12022     save_CPPFLAGS="$CPPFLAGS"
12023     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12024
12025     save_LDFLAGS="$LDFLAGS"
12026     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12027
12028     save_LIBS="$LIBS"
12029     LIBS="$lt_cv_dlopen_libs $LIBS"
12030
12031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12033 if ${lt_cv_dlopen_self+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036           if test "$cross_compiling" = yes; then :
12037   lt_cv_dlopen_self=cross
12038 else
12039   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12040   lt_status=$lt_dlunknown
12041   cat > conftest.$ac_ext <<_LT_EOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12044
12045 #if HAVE_DLFCN_H
12046 #include <dlfcn.h>
12047 #endif
12048
12049 #include <stdio.h>
12050
12051 #ifdef RTLD_GLOBAL
12052 #  define LT_DLGLOBAL           RTLD_GLOBAL
12053 #else
12054 #  ifdef DL_GLOBAL
12055 #    define LT_DLGLOBAL         DL_GLOBAL
12056 #  else
12057 #    define LT_DLGLOBAL         0
12058 #  endif
12059 #endif
12060
12061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12062    find out it does not work in some platform. */
12063 #ifndef LT_DLLAZY_OR_NOW
12064 #  ifdef RTLD_LAZY
12065 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12066 #  else
12067 #    ifdef DL_LAZY
12068 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12069 #    else
12070 #      ifdef RTLD_NOW
12071 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12072 #      else
12073 #        ifdef DL_NOW
12074 #          define LT_DLLAZY_OR_NOW      DL_NOW
12075 #        else
12076 #          define LT_DLLAZY_OR_NOW      0
12077 #        endif
12078 #      endif
12079 #    endif
12080 #  endif
12081 #endif
12082
12083 /* When -fvisbility=hidden is used, assume the code has been annotated
12084    correspondingly for the symbols needed.  */
12085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12086 int fnord () __attribute__((visibility("default")));
12087 #endif
12088
12089 int fnord () { return 42; }
12090 int main ()
12091 {
12092   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12093   int status = $lt_dlunknown;
12094
12095   if (self)
12096     {
12097       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12098       else
12099         {
12100           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12101           else puts (dlerror ());
12102         }
12103       /* dlclose (self); */
12104     }
12105   else
12106     puts (dlerror ());
12107
12108   return status;
12109 }
12110 _LT_EOF
12111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12112   (eval $ac_link) 2>&5
12113   ac_status=$?
12114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12116     (./conftest; exit; ) >&5 2>/dev/null
12117     lt_status=$?
12118     case x$lt_status in
12119       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12120       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12121       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12122     esac
12123   else :
12124     # compilation failed
12125     lt_cv_dlopen_self=no
12126   fi
12127 fi
12128 rm -fr conftest*
12129
12130
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12133 $as_echo "$lt_cv_dlopen_self" >&6; }
12134
12135     if test "x$lt_cv_dlopen_self" = xyes; then
12136       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12139 if ${lt_cv_dlopen_self_static+:} false; then :
12140   $as_echo_n "(cached) " >&6
12141 else
12142           if test "$cross_compiling" = yes; then :
12143   lt_cv_dlopen_self_static=cross
12144 else
12145   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146   lt_status=$lt_dlunknown
12147   cat > conftest.$ac_ext <<_LT_EOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12150
12151 #if HAVE_DLFCN_H
12152 #include <dlfcn.h>
12153 #endif
12154
12155 #include <stdio.h>
12156
12157 #ifdef RTLD_GLOBAL
12158 #  define LT_DLGLOBAL           RTLD_GLOBAL
12159 #else
12160 #  ifdef DL_GLOBAL
12161 #    define LT_DLGLOBAL         DL_GLOBAL
12162 #  else
12163 #    define LT_DLGLOBAL         0
12164 #  endif
12165 #endif
12166
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168    find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12170 #  ifdef RTLD_LAZY
12171 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12172 #  else
12173 #    ifdef DL_LAZY
12174 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12175 #    else
12176 #      ifdef RTLD_NOW
12177 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12178 #      else
12179 #        ifdef DL_NOW
12180 #          define LT_DLLAZY_OR_NOW      DL_NOW
12181 #        else
12182 #          define LT_DLLAZY_OR_NOW      0
12183 #        endif
12184 #      endif
12185 #    endif
12186 #  endif
12187 #endif
12188
12189 /* When -fvisbility=hidden is used, assume the code has been annotated
12190    correspondingly for the symbols needed.  */
12191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12192 int fnord () __attribute__((visibility("default")));
12193 #endif
12194
12195 int fnord () { return 42; }
12196 int main ()
12197 {
12198   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199   int status = $lt_dlunknown;
12200
12201   if (self)
12202     {
12203       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12204       else
12205         {
12206           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12207           else puts (dlerror ());
12208         }
12209       /* dlclose (self); */
12210     }
12211   else
12212     puts (dlerror ());
12213
12214   return status;
12215 }
12216 _LT_EOF
12217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12218   (eval $ac_link) 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12222     (./conftest; exit; ) >&5 2>/dev/null
12223     lt_status=$?
12224     case x$lt_status in
12225       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12226       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12227       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12228     esac
12229   else :
12230     # compilation failed
12231     lt_cv_dlopen_self_static=no
12232   fi
12233 fi
12234 rm -fr conftest*
12235
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12240     fi
12241
12242     CPPFLAGS="$save_CPPFLAGS"
12243     LDFLAGS="$save_LDFLAGS"
12244     LIBS="$save_LIBS"
12245     ;;
12246   esac
12247
12248   case $lt_cv_dlopen_self in
12249   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12250   *) enable_dlopen_self=unknown ;;
12251   esac
12252
12253   case $lt_cv_dlopen_self_static in
12254   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12255   *) enable_dlopen_self_static=unknown ;;
12256   esac
12257 fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275 striplib=
12276 old_striplib=
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12280   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12281   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284 else
12285 # FIXME - insert some real tests, host_os isn't really good enough
12286   case $host_os in
12287   darwin*)
12288     if test -n "$STRIP" ; then
12289       striplib="$STRIP -x"
12290       old_striplib="$STRIP -S"
12291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12293     else
12294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296     fi
12297     ;;
12298   *)
12299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301     ;;
12302   esac
12303 fi
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316   # Report which library types will actually be built
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12320 $as_echo "$can_build_shared" >&6; }
12321
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12323 $as_echo_n "checking whether to build shared libraries... " >&6; }
12324   test "$can_build_shared" = "no" && enable_shared=no
12325
12326   # On AIX, shared libraries and static libraries use the same namespace, and
12327   # are all built from PIC.
12328   case $host_os in
12329   aix3*)
12330     test "$enable_shared" = yes && enable_static=no
12331     if test -n "$RANLIB"; then
12332       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12333       postinstall_cmds='$RANLIB $lib'
12334     fi
12335     ;;
12336
12337   aix[4-9]*)
12338     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12339       test "$enable_shared" = yes && enable_static=no
12340     fi
12341     ;;
12342   esac
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12344 $as_echo "$enable_shared" >&6; }
12345
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12347 $as_echo_n "checking whether to build static libraries... " >&6; }
12348   # Make sure either enable_shared or enable_static is yes.
12349   test "$enable_shared" = yes || enable_static=yes
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12351 $as_echo "$enable_static" >&6; }
12352
12353
12354
12355
12356 fi
12357 ac_ext=c
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362
12363 CC="$lt_save_CC"
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379         ac_config_commands="$ac_config_commands libtool"
12380
12381
12382
12383
12384 # Only expand once:
12385
12386
12387
12388 # Check whether --enable-optimization was given.
12389 if test "${enable_optimization+set}" = set; then :
12390   enableval=$enable_optimization;
12391         if (test "${enableval}" = "no"); then
12392                 CFLAGS="$CFLAGS -O0"
12393         fi
12394
12395 fi
12396
12397
12398 # Check whether --enable-debug was given.
12399 if test "${enable_debug+set}" = set; then :
12400   enableval=$enable_debug;
12401         if (test "${enableval}" = "yes" &&
12402                                 test "${ac_cv_prog_cc_g}" = "yes"); then
12403                 CFLAGS="$CFLAGS -g"
12404         fi
12405
12406 fi
12407
12408
12409 # Check whether --enable-test was given.
12410 if test "${enable_test+set}" = set; then :
12411   enableval=$enable_test; enable_test=${enableval}
12412 fi
12413
12414  if test "${enable_test}" = "yes"; then
12415   TEST_TRUE=
12416   TEST_FALSE='#'
12417 else
12418   TEST_TRUE='#'
12419   TEST_FALSE=
12420 fi
12421
12422
12423 # Check whether --enable-pie was given.
12424 if test "${enable_pie+set}" = set; then :
12425   enableval=$enable_pie;
12426         if (test "${enableval}" = "yes" &&
12427                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
12428                 CFLAGS="$CFLAGS -fPIE"
12429                 LDFLAGS="$LDFLAGS -pie"
12430         fi
12431
12432 fi
12433
12434
12435 # Check whether --enable-threads was given.
12436 if test "${enable_threads+set}" = set; then :
12437   enableval=$enable_threads; enable_threads=${enableval}
12438 fi
12439
12440
12441 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12442 if test "x$ac_cv_func_signalfd" = xyes; then :
12443   dummy=yes
12444 else
12445   as_fn_error $? "signalfd support is required" "$LINENO" 5
12446 fi
12447
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12451 if ${ac_cv_lib_dl_dlopen+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-ldl  $LIBS"
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h.  */
12458
12459 /* Override any GCC internal prototype to avoid an error.
12460    Use char because int might match the return type of a GCC
12461    builtin and then its argument prototype would still apply.  */
12462 #ifdef __cplusplus
12463 extern "C"
12464 #endif
12465 char dlopen ();
12466 int
12467 main ()
12468 {
12469 return dlopen ();
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475   ac_cv_lib_dl_dlopen=yes
12476 else
12477   ac_cv_lib_dl_dlopen=no
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext \
12480     conftest$ac_exeext conftest.$ac_ext
12481 LIBS=$ac_check_lib_save_LIBS
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12484 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12485 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12486   dummy=yes
12487 else
12488   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12489 fi
12490
12491
12492
12493 pkg_failed=no
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12495 $as_echo_n "checking for GLIB... " >&6; }
12496
12497 if test -n "$GLIB_CFLAGS"; then
12498     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12499  elif test -n "$PKG_CONFIG"; then
12500     if test -n "$PKG_CONFIG" && \
12501     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12502   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12503   ac_status=$?
12504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12505   test $ac_status = 0; }; then
12506   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12507                       test "x$?" != "x0" && pkg_failed=yes
12508 else
12509   pkg_failed=yes
12510 fi
12511  else
12512     pkg_failed=untried
12513 fi
12514 if test -n "$GLIB_LIBS"; then
12515     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12516  elif test -n "$PKG_CONFIG"; then
12517     if test -n "$PKG_CONFIG" && \
12518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12519   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12520   ac_status=$?
12521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522   test $ac_status = 0; }; then
12523   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12524                       test "x$?" != "x0" && pkg_failed=yes
12525 else
12526   pkg_failed=yes
12527 fi
12528  else
12529     pkg_failed=untried
12530 fi
12531
12532
12533
12534 if test $pkg_failed = yes; then
12535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537
12538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12539         _pkg_short_errors_supported=yes
12540 else
12541         _pkg_short_errors_supported=no
12542 fi
12543         if test $_pkg_short_errors_supported = yes; then
12544                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12545         else
12546                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12547         fi
12548         # Put the nasty error message in config.log where it belongs
12549         echo "$GLIB_PKG_ERRORS" >&5
12550
12551         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12552 elif test $pkg_failed = untried; then
12553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12556 else
12557         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12558         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 $as_echo "yes" >&6; }
12561         dummy=yes
12562 fi
12563
12564
12565
12566 if (test "${enable_threads}" = "yes"); then
12567
12568 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12569
12570
12571 pkg_failed=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12573 $as_echo_n "checking for GTHREAD... " >&6; }
12574
12575 if test -n "$GTHREAD_CFLAGS"; then
12576     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12577  elif test -n "$PKG_CONFIG"; then
12578     if test -n "$PKG_CONFIG" && \
12579     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12580   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12581   ac_status=$?
12582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583   test $ac_status = 0; }; then
12584   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12585                       test "x$?" != "x0" && pkg_failed=yes
12586 else
12587   pkg_failed=yes
12588 fi
12589  else
12590     pkg_failed=untried
12591 fi
12592 if test -n "$GTHREAD_LIBS"; then
12593     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12594  elif test -n "$PKG_CONFIG"; then
12595     if test -n "$PKG_CONFIG" && \
12596     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12597   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12598   ac_status=$?
12599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600   test $ac_status = 0; }; then
12601   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12602                       test "x$?" != "x0" && pkg_failed=yes
12603 else
12604   pkg_failed=yes
12605 fi
12606  else
12607     pkg_failed=untried
12608 fi
12609
12610
12611
12612 if test $pkg_failed = yes; then
12613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615
12616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12617         _pkg_short_errors_supported=yes
12618 else
12619         _pkg_short_errors_supported=no
12620 fi
12621         if test $_pkg_short_errors_supported = yes; then
12622                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12623         else
12624                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12625         fi
12626         # Put the nasty error message in config.log where it belongs
12627         echo "$GTHREAD_PKG_ERRORS" >&5
12628
12629         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12630 elif test $pkg_failed = untried; then
12631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12634 else
12635         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12636         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12639         dummy=yes
12640 fi
12641         GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12642         GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12643 fi
12644
12645
12646 pkg_failed=no
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12648 $as_echo_n "checking for DBUS... " >&6; }
12649
12650 if test -n "$DBUS_CFLAGS"; then
12651     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12652  elif test -n "$PKG_CONFIG"; then
12653     if test -n "$PKG_CONFIG" && \
12654     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12655   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12656   ac_status=$?
12657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658   test $ac_status = 0; }; then
12659   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12660                       test "x$?" != "x0" && pkg_failed=yes
12661 else
12662   pkg_failed=yes
12663 fi
12664  else
12665     pkg_failed=untried
12666 fi
12667 if test -n "$DBUS_LIBS"; then
12668     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12669  elif test -n "$PKG_CONFIG"; then
12670     if test -n "$PKG_CONFIG" && \
12671     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12672   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12673   ac_status=$?
12674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675   test $ac_status = 0; }; then
12676   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12677                       test "x$?" != "x0" && pkg_failed=yes
12678 else
12679   pkg_failed=yes
12680 fi
12681  else
12682     pkg_failed=untried
12683 fi
12684
12685
12686
12687 if test $pkg_failed = yes; then
12688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690
12691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12692         _pkg_short_errors_supported=yes
12693 else
12694         _pkg_short_errors_supported=no
12695 fi
12696         if test $_pkg_short_errors_supported = yes; then
12697                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12698         else
12699                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12700         fi
12701         # Put the nasty error message in config.log where it belongs
12702         echo "$DBUS_PKG_ERRORS" >&5
12703
12704         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12705 elif test $pkg_failed = untried; then
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12709 else
12710         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12711         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713 $as_echo "yes" >&6; }
12714         dummy=yes
12715 fi
12716
12717
12718
12719
12720 # Check whether --with-dbusconfdir was given.
12721 if test "${with_dbusconfdir+set}" = set; then :
12722   withval=$with_dbusconfdir; path_dbusconf=${withval}
12723 else
12724   path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12725 fi
12726
12727 if (test -z "${path_dbusconf}"); then
12728         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12729 else
12730         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12731 fi
12732
12733
12734
12735 # Check whether --with-dbusdatadir was given.
12736 if test "${with_dbusdatadir+set}" = set; then :
12737   withval=$with_dbusdatadir; path_dbusdata=${withval}
12738 else
12739   path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12740 fi
12741
12742 if (test -z "${path_dbusdata}"); then
12743         DBUS_DATADIR="${datadir}/dbus-1/system-services"
12744 else
12745         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12746 fi
12747
12748
12749
12750 # Check whether --with-systemdunitdir was given.
12751 if test "${with_systemdunitdir+set}" = set; then :
12752   withval=$with_systemdunitdir; path_systemdunit=${withval}
12753 else
12754   path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12755 fi
12756
12757 if (test -n "${path_systemdunit}"); then
12758         SYSTEMD_UNITDIR="${path_systemdunit}"
12759
12760 fi
12761  if test -n "${path_systemdunit}"; then
12762   SYSTEMD_TRUE=
12763   SYSTEMD_FALSE='#'
12764 else
12765   SYSTEMD_TRUE='#'
12766   SYSTEMD_FALSE=
12767 fi
12768
12769
12770 # Check whether --enable-capng was given.
12771 if test "${enable_capng+set}" = set; then :
12772   enableval=$enable_capng; enable_capng=${enableval}
12773 fi
12774
12775 if (test "${enable_capng}" = "yes"); then
12776
12777 pkg_failed=no
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
12779 $as_echo_n "checking for CAPNG... " >&6; }
12780
12781 if test -n "$CAPNG_CFLAGS"; then
12782     pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
12783  elif test -n "$PKG_CONFIG"; then
12784     if test -n "$PKG_CONFIG" && \
12785     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng\""; } >&5
12786   ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
12787   ac_status=$?
12788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12789   test $ac_status = 0; }; then
12790   pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng" 2>/dev/null`
12791                       test "x$?" != "x0" && pkg_failed=yes
12792 else
12793   pkg_failed=yes
12794 fi
12795  else
12796     pkg_failed=untried
12797 fi
12798 if test -n "$CAPNG_LIBS"; then
12799     pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
12800  elif test -n "$PKG_CONFIG"; then
12801     if test -n "$PKG_CONFIG" && \
12802     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng\""; } >&5
12803   ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
12804   ac_status=$?
12805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806   test $ac_status = 0; }; then
12807   pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng" 2>/dev/null`
12808                       test "x$?" != "x0" && pkg_failed=yes
12809 else
12810   pkg_failed=yes
12811 fi
12812  else
12813     pkg_failed=untried
12814 fi
12815
12816
12817
12818 if test $pkg_failed = yes; then
12819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821
12822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12823         _pkg_short_errors_supported=yes
12824 else
12825         _pkg_short_errors_supported=no
12826 fi
12827         if test $_pkg_short_errors_supported = yes; then
12828                 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap-ng" 2>&1`
12829         else
12830                 CAPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap-ng" 2>&1`
12831         fi
12832         # Put the nasty error message in config.log where it belongs
12833         echo "$CAPNG_PKG_ERRORS" >&5
12834
12835         as_fn_error $? "Capabilities library is required" "$LINENO" 5
12836 elif test $pkg_failed = untried; then
12837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839         as_fn_error $? "Capabilities library is required" "$LINENO" 5
12840 else
12841         CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
12842         CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
12843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12845         dummy=yes
12846 fi
12847
12848
12849
12850 $as_echo "#define HAVE_CAPNG 1" >>confdefs.h
12851
12852 fi
12853
12854 # Check whether --enable-udev was given.
12855 if test "${enable_udev+set}" = set; then :
12856   enableval=$enable_udev; enable_udev=${enableval}
12857 fi
12858
12859 if (test "${enable_udev}" != "no"); then
12860
12861 pkg_failed=no
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
12863 $as_echo_n "checking for UDEV... " >&6; }
12864
12865 if test -n "$UDEV_CFLAGS"; then
12866     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
12867  elif test -n "$PKG_CONFIG"; then
12868     if test -n "$PKG_CONFIG" && \
12869     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12870   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12871   ac_status=$?
12872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873   test $ac_status = 0; }; then
12874   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
12875                       test "x$?" != "x0" && pkg_failed=yes
12876 else
12877   pkg_failed=yes
12878 fi
12879  else
12880     pkg_failed=untried
12881 fi
12882 if test -n "$UDEV_LIBS"; then
12883     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
12884  elif test -n "$PKG_CONFIG"; then
12885     if test -n "$PKG_CONFIG" && \
12886     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12887   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12888   ac_status=$?
12889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12890   test $ac_status = 0; }; then
12891   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
12892                       test "x$?" != "x0" && pkg_failed=yes
12893 else
12894   pkg_failed=yes
12895 fi
12896  else
12897     pkg_failed=untried
12898 fi
12899
12900
12901
12902 if test $pkg_failed = yes; then
12903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12905
12906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12907         _pkg_short_errors_supported=yes
12908 else
12909         _pkg_short_errors_supported=no
12910 fi
12911         if test $_pkg_short_errors_supported = yes; then
12912                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
12913         else
12914                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
12915         fi
12916         # Put the nasty error message in config.log where it belongs
12917         echo "$UDEV_PKG_ERRORS" >&5
12918
12919         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12920 elif test $pkg_failed = untried; then
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12924 else
12925         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
12926         UDEV_LIBS=$pkg_cv_UDEV_LIBS
12927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928 $as_echo "yes" >&6; }
12929         enable_udev="yes"
12930 fi
12931         UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
12932         if (test -z "${UDEV_DATADIR}"); then
12933                 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
12934         else
12935                 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
12936         fi
12937
12938 fi
12939
12940
12941  if test "${enable_udev}" = "yes"; then
12942   UDEV_TRUE=
12943   UDEV_FALSE='#'
12944 else
12945   UDEV_TRUE='#'
12946   UDEV_FALSE=
12947 fi
12948
12949
12950 # Check whether --enable-tools was given.
12951 if test "${enable_tools+set}" = set; then :
12952   enableval=$enable_tools; enable_tools=${enableval}
12953 fi
12954
12955 if (test "${enable_tools}" = "yes"); then
12956
12957 pkg_failed=no
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
12959 $as_echo_n "checking for USB... " >&6; }
12960
12961 if test -n "$USB_CFLAGS"; then
12962     pkg_cv_USB_CFLAGS="$USB_CFLAGS"
12963  elif test -n "$PKG_CONFIG"; then
12964     if test -n "$PKG_CONFIG" && \
12965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12966   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12967   ac_status=$?
12968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969   test $ac_status = 0; }; then
12970   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
12971                       test "x$?" != "x0" && pkg_failed=yes
12972 else
12973   pkg_failed=yes
12974 fi
12975  else
12976     pkg_failed=untried
12977 fi
12978 if test -n "$USB_LIBS"; then
12979     pkg_cv_USB_LIBS="$USB_LIBS"
12980  elif test -n "$PKG_CONFIG"; then
12981     if test -n "$PKG_CONFIG" && \
12982     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12983   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12984   ac_status=$?
12985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12986   test $ac_status = 0; }; then
12987   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
12988                       test "x$?" != "x0" && pkg_failed=yes
12989 else
12990   pkg_failed=yes
12991 fi
12992  else
12993     pkg_failed=untried
12994 fi
12995
12996
12997
12998 if test $pkg_failed = yes; then
12999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001
13002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13003         _pkg_short_errors_supported=yes
13004 else
13005         _pkg_short_errors_supported=no
13006 fi
13007         if test $_pkg_short_errors_supported = yes; then
13008                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13009         else
13010                 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13011         fi
13012         # Put the nasty error message in config.log where it belongs
13013         echo "$USB_PKG_ERRORS" >&5
13014
13015         as_fn_error $? "USB library is required" "$LINENO" 5
13016 elif test $pkg_failed = untried; then
13017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019         as_fn_error $? "USB library is required" "$LINENO" 5
13020 else
13021         USB_CFLAGS=$pkg_cv_USB_CFLAGS
13022         USB_LIBS=$pkg_cv_USB_LIBS
13023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 $as_echo "yes" >&6; }
13025         dummy=yes
13026 fi
13027
13028
13029 fi
13030  if test "${enable_tools}" = "yes"; then
13031   TOOLS_TRUE=
13032   TOOLS_FALSE='#'
13033 else
13034   TOOLS_TRUE='#'
13035   TOOLS_FALSE=
13036 fi
13037
13038
13039 # Check whether --enable-atmodem was given.
13040 if test "${enable_atmodem+set}" = set; then :
13041   enableval=$enable_atmodem; enable_atmodem=${enableval}
13042 fi
13043
13044  if test "${enable_atmodem}" != "no"; then
13045   ATMODEM_TRUE=
13046   ATMODEM_FALSE='#'
13047 else
13048   ATMODEM_TRUE='#'
13049   ATMODEM_FALSE=
13050 fi
13051
13052
13053 # Check whether --enable-cdmamodem was given.
13054 if test "${enable_cdmamodem+set}" = set; then :
13055   enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13056 fi
13057
13058  if test "${enable_cdmamodem}" != "no"; then
13059   CDMAMODEM_TRUE=
13060   CDMAMODEM_FALSE='#'
13061 else
13062   CDMAMODEM_TRUE='#'
13063   CDMAMODEM_FALSE=
13064 fi
13065
13066
13067 # Check whether --enable-phonesim was given.
13068 if test "${enable_phonesim+set}" = set; then :
13069   enableval=$enable_phonesim; enable_phonesim=${enableval}
13070 fi
13071
13072  if test "${enable_phonesim}" != "no" &&
13073                                         test "${enable_atmodem}" != "no"; then
13074   PHONESIM_TRUE=
13075   PHONESIM_FALSE='#'
13076 else
13077   PHONESIM_TRUE='#'
13078   PHONESIM_FALSE=
13079 fi
13080
13081
13082 # Check whether --enable-isimodem was given.
13083 if test "${enable_isimodem+set}" = set; then :
13084   enableval=$enable_isimodem; enable_isimodem=${enableval}
13085 fi
13086
13087  if test "${enable_isimodem}" != "no"; then
13088   ISIMODEM_TRUE=
13089   ISIMODEM_FALSE='#'
13090 else
13091   ISIMODEM_TRUE='#'
13092   ISIMODEM_FALSE=
13093 fi
13094
13095
13096 # Check whether --enable-bluetooth was given.
13097 if test "${enable_bluetooth+set}" = set; then :
13098   enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13099 fi
13100
13101 if (test "${enable_bluetooth}" != "no"); then
13102
13103 pkg_failed=no
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
13105 $as_echo_n "checking for BLUEZ... " >&6; }
13106
13107 if test -n "$BLUEZ_CFLAGS"; then
13108     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13109  elif test -n "$PKG_CONFIG"; then
13110     if test -n "$PKG_CONFIG" && \
13111     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\""; } >&5
13112   ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13113   ac_status=$?
13114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115   test $ac_status = 0; }; then
13116   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.30" 2>/dev/null`
13117                       test "x$?" != "x0" && pkg_failed=yes
13118 else
13119   pkg_failed=yes
13120 fi
13121  else
13122     pkg_failed=untried
13123 fi
13124 if test -n "$BLUEZ_LIBS"; then
13125     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13126  elif test -n "$PKG_CONFIG"; then
13127     if test -n "$PKG_CONFIG" && \
13128     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\""; } >&5
13129   ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13130   ac_status=$?
13131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132   test $ac_status = 0; }; then
13133   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.30" 2>/dev/null`
13134                       test "x$?" != "x0" && pkg_failed=yes
13135 else
13136   pkg_failed=yes
13137 fi
13138  else
13139     pkg_failed=untried
13140 fi
13141
13142
13143
13144 if test $pkg_failed = yes; then
13145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13147
13148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13149         _pkg_short_errors_supported=yes
13150 else
13151         _pkg_short_errors_supported=no
13152 fi
13153         if test $_pkg_short_errors_supported = yes; then
13154                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez >= 4.30" 2>&1`
13155         else
13156                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez >= 4.30" 2>&1`
13157         fi
13158         # Put the nasty error message in config.log where it belongs
13159         echo "$BLUEZ_PKG_ERRORS" >&5
13160
13161         as_fn_error $? "Bluetooth library >= 4.30 is required" "$LINENO" 5
13162 elif test $pkg_failed = untried; then
13163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165         as_fn_error $? "Bluetooth library >= 4.30 is required" "$LINENO" 5
13166 else
13167         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13168         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13170 $as_echo "yes" >&6; }
13171         dummy=yes
13172 fi
13173 fi
13174
13175
13176  if test "${enable_bluetooth}" != "no"; then
13177   BLUETOOTH_TRUE=
13178   BLUETOOTH_FALSE='#'
13179 else
13180   BLUETOOTH_TRUE='#'
13181   BLUETOOTH_FALSE=
13182 fi
13183
13184
13185
13186 # Check whether --with-provisiondb was given.
13187 if test "${with_provisiondb+set}" = set; then :
13188   withval=$with_provisiondb; path_provisiondb=${withval}
13189 fi
13190
13191
13192 # Check whether --enable-provision was given.
13193 if test "${enable_provision+set}" = set; then :
13194   enableval=$enable_provision; enable_provision=${enableval}
13195 fi
13196
13197 if (test "${enable_provision}" != "no"); then
13198         if (test -n "${path_provisiondb}"); then
13199
13200 cat >>confdefs.h <<_ACEOF
13201 #define PROVIDER_DATABASE "${path_provisiondb}"
13202 _ACEOF
13203
13204         else
13205                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mobile-broadband-provider-info" >&5
13206 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13207                 if test -n "$PKG_CONFIG" && \
13208     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13209   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13210   ac_status=$?
13211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13212   test $ac_status = 0; }; then
13213   if test -n "$PROVIDER_DATABASE"; then
13214     pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13215  elif test -n "$PKG_CONFIG"; then
13216     if test -n "$PKG_CONFIG" && \
13217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13218   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13219   ac_status=$?
13220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221   test $ac_status = 0; }; then
13222   pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13223                       test "x$?" != "x0" && pkg_failed=yes
13224 else
13225   pkg_failed=yes
13226 fi
13227  else
13228     pkg_failed=untried
13229 fi
13230
13231 cat >>confdefs.h <<_ACEOF
13232 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13233 _ACEOF
13234
13235                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236 $as_echo "yes" >&6; }
13237 else
13238   as_fn_error $? "Mobile broadband provider database is required" "$LINENO" 5
13239 fi
13240         fi
13241 fi
13242  if test "${enable_provision}" != "no"; then
13243   PROVISION_TRUE=
13244   PROVISION_FALSE='#'
13245 else
13246   PROVISION_TRUE='#'
13247   PROVISION_FALSE=
13248 fi
13249
13250
13251 # Check whether --enable-datafiles was given.
13252 if test "${enable_datafiles+set}" = set; then :
13253   enableval=$enable_datafiles; enable_datafiles=${enableval}
13254 fi
13255
13256  if test "${enable_datafiles}" != "no"; then
13257   DATAFILES_TRUE=
13258   DATAFILES_FALSE='#'
13259 else
13260   DATAFILES_TRUE='#'
13261   DATAFILES_FALSE=
13262 fi
13263
13264
13265 if (test "${prefix}" = "NONE"); then
13266                 if (test "$localstatedir" = '${prefix}/var'); then
13267                 localstatedir='/var'
13268
13269         fi
13270
13271         prefix="${ac_default_prefix}"
13272 fi
13273
13274 if (test "$localstatedir" = '${prefix}/var'); then
13275         storagedir="${prefix}/var/lib/ofono"
13276 else
13277         storagedir="${localstatedir}/lib/ofono"
13278 fi
13279
13280 cat >>confdefs.h <<_ACEOF
13281 #define STORAGEDIR "${storagedir}"
13282 _ACEOF
13283
13284
13285 if (test "$sysconfdir" = '${prefix}/etc'); then
13286         configdir="${prefix}/etc/ofono"
13287 else
13288         configdir="${sysconfdir}/ofono"
13289 fi
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define CONFIGDIR "${configdir}"
13293 _ACEOF
13294
13295
13296 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc"
13297
13298 cat >confcache <<\_ACEOF
13299 # This file is a shell script that caches the results of configure
13300 # tests run on this system so they can be shared between configure
13301 # scripts and configure runs, see configure's option --config-cache.
13302 # It is not useful on other systems.  If it contains results you don't
13303 # want to keep, you may remove or edit it.
13304 #
13305 # config.status only pays attention to the cache file if you give it
13306 # the --recheck option to rerun configure.
13307 #
13308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13310 # following values.
13311
13312 _ACEOF
13313
13314 # The following way of writing the cache mishandles newlines in values,
13315 # but we know of no workaround that is simple, portable, and efficient.
13316 # So, we kill variables containing newlines.
13317 # Ultrix sh set writes to stderr and can't be redirected directly,
13318 # and sets the high bit in the cache file unless we assign to the vars.
13319 (
13320   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13321     eval ac_val=\$$ac_var
13322     case $ac_val in #(
13323     *${as_nl}*)
13324       case $ac_var in #(
13325       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13327       esac
13328       case $ac_var in #(
13329       _ | IFS | as_nl) ;; #(
13330       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13331       *) { eval $ac_var=; unset $ac_var;} ;;
13332       esac ;;
13333     esac
13334   done
13335
13336   (set) 2>&1 |
13337     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13338     *${as_nl}ac_space=\ *)
13339       # `set' does not quote correctly, so add quotes: double-quote
13340       # substitution turns \\\\ into \\, and sed turns \\ into \.
13341       sed -n \
13342         "s/'/'\\\\''/g;
13343           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13344       ;; #(
13345     *)
13346       # `set' quotes correctly as required by POSIX, so do not add quotes.
13347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13348       ;;
13349     esac |
13350     sort
13351 ) |
13352   sed '
13353      /^ac_cv_env_/b end
13354      t clear
13355      :clear
13356      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13357      t end
13358      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13359      :end' >>confcache
13360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13361   if test -w "$cache_file"; then
13362     if test "x$cache_file" != "x/dev/null"; then
13363       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13364 $as_echo "$as_me: updating cache $cache_file" >&6;}
13365       if test ! -f "$cache_file" || test -h "$cache_file"; then
13366         cat confcache >"$cache_file"
13367       else
13368         case $cache_file in #(
13369         */* | ?:*)
13370           mv -f confcache "$cache_file"$$ &&
13371           mv -f "$cache_file"$$ "$cache_file" ;; #(
13372         *)
13373           mv -f confcache "$cache_file" ;;
13374         esac
13375       fi
13376     fi
13377   else
13378     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13380   fi
13381 fi
13382 rm -f confcache
13383
13384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13385 # Let make expand exec_prefix.
13386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13387
13388 DEFS=-DHAVE_CONFIG_H
13389
13390 ac_libobjs=
13391 ac_ltlibobjs=
13392 U=
13393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13394   # 1. Remove the extension, and $U if already installed.
13395   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13396   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13397   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13398   #    will be set to the directory where LIBOBJS objects are built.
13399   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13400   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13401 done
13402 LIBOBJS=$ac_libobjs
13403
13404 LTLIBOBJS=$ac_ltlibobjs
13405
13406
13407  if test -n "$EXEEXT"; then
13408   am__EXEEXT_TRUE=
13409   am__EXEEXT_FALSE='#'
13410 else
13411   am__EXEEXT_TRUE='#'
13412   am__EXEEXT_FALSE=
13413 fi
13414
13415 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13416   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13418 fi
13419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13420   as_fn_error $? "conditional \"AMDEP\" was never defined.
13421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13422 fi
13423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13424   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13426 fi
13427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13428   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430 fi
13431 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13432   as_fn_error $? "conditional \"TEST\" was never defined.
13433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434 fi
13435 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13436   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 fi
13439 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13440   as_fn_error $? "conditional \"UDEV\" was never defined.
13441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13442 fi
13443 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13444   as_fn_error $? "conditional \"TOOLS\" was never defined.
13445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13446 fi
13447 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13448   as_fn_error $? "conditional \"ATMODEM\" was never defined.
13449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13450 fi
13451 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13452   as_fn_error $? "conditional \"CDMAMODEM\" was never defined.
13453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454 fi
13455 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13456   as_fn_error $? "conditional \"PHONESIM\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458 fi
13459 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13460   as_fn_error $? "conditional \"ISIMODEM\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462 fi
13463 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13464   as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466 fi
13467 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13468   as_fn_error $? "conditional \"PROVISION\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13470 fi
13471 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13472   as_fn_error $? "conditional \"DATAFILES\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13474 fi
13475
13476 : "${CONFIG_STATUS=./config.status}"
13477 ac_write_fail=0
13478 ac_clean_files_save=$ac_clean_files
13479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13482 as_write_fail=0
13483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13484 #! $SHELL
13485 # Generated by $as_me.
13486 # Run this file to recreate the current configuration.
13487 # Compiler output produced by configure, useful for debugging
13488 # configure, is in config.log if it exists.
13489
13490 debug=false
13491 ac_cs_recheck=false
13492 ac_cs_silent=false
13493
13494 SHELL=\${CONFIG_SHELL-$SHELL}
13495 export SHELL
13496 _ASEOF
13497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13498 ## -------------------- ##
13499 ## M4sh Initialization. ##
13500 ## -------------------- ##
13501
13502 # Be more Bourne compatible
13503 DUALCASE=1; export DUALCASE # for MKS sh
13504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13505   emulate sh
13506   NULLCMD=:
13507   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13508   # is contrary to our usage.  Disable this feature.
13509   alias -g '${1+"$@"}'='"$@"'
13510   setopt NO_GLOB_SUBST
13511 else
13512   case `(set -o) 2>/dev/null` in #(
13513   *posix*) :
13514     set -o posix ;; #(
13515   *) :
13516      ;;
13517 esac
13518 fi
13519
13520
13521 as_nl='
13522 '
13523 export as_nl
13524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13528 # Prefer a ksh shell builtin over an external printf program on Solaris,
13529 # but without wasting forks for bash or zsh.
13530 if test -z "$BASH_VERSION$ZSH_VERSION" \
13531     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13532   as_echo='print -r --'
13533   as_echo_n='print -rn --'
13534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13535   as_echo='printf %s\n'
13536   as_echo_n='printf %s'
13537 else
13538   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13539     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13540     as_echo_n='/usr/ucb/echo -n'
13541   else
13542     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13543     as_echo_n_body='eval
13544       arg=$1;
13545       case $arg in #(
13546       *"$as_nl"*)
13547         expr "X$arg" : "X\\(.*\\)$as_nl";
13548         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13549       esac;
13550       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13551     '
13552     export as_echo_n_body
13553     as_echo_n='sh -c $as_echo_n_body as_echo'
13554   fi
13555   export as_echo_body
13556   as_echo='sh -c $as_echo_body as_echo'
13557 fi
13558
13559 # The user is always right.
13560 if test "${PATH_SEPARATOR+set}" != set; then
13561   PATH_SEPARATOR=:
13562   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13563     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13564       PATH_SEPARATOR=';'
13565   }
13566 fi
13567
13568
13569 # IFS
13570 # We need space, tab and new line, in precisely that order.  Quoting is
13571 # there to prevent editors from complaining about space-tab.
13572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13573 # splitting by setting IFS to empty value.)
13574 IFS=" ""        $as_nl"
13575
13576 # Find who we are.  Look in the path if we contain no directory separator.
13577 as_myself=
13578 case $0 in #((
13579   *[\\/]* ) as_myself=$0 ;;
13580   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583   IFS=$as_save_IFS
13584   test -z "$as_dir" && as_dir=.
13585     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13586   done
13587 IFS=$as_save_IFS
13588
13589      ;;
13590 esac
13591 # We did not find ourselves, most probably we were run as `sh COMMAND'
13592 # in which case we are not to be found in the path.
13593 if test "x$as_myself" = x; then
13594   as_myself=$0
13595 fi
13596 if test ! -f "$as_myself"; then
13597   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13598   exit 1
13599 fi
13600
13601 # Unset variables that we do not need and which cause bugs (e.g. in
13602 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13603 # suppresses any "Segmentation fault" message there.  '((' could
13604 # trigger a bug in pdksh 5.2.14.
13605 for as_var in BASH_ENV ENV MAIL MAILPATH
13606 do eval test x\${$as_var+set} = xset \
13607   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13608 done
13609 PS1='$ '
13610 PS2='> '
13611 PS4='+ '
13612
13613 # NLS nuisances.
13614 LC_ALL=C
13615 export LC_ALL
13616 LANGUAGE=C
13617 export LANGUAGE
13618
13619 # CDPATH.
13620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13621
13622
13623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13624 # ----------------------------------------
13625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13627 # script with STATUS, using 1 if that was 0.
13628 as_fn_error ()
13629 {
13630   as_status=$1; test $as_status -eq 0 && as_status=1
13631   if test "$4"; then
13632     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13633     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13634   fi
13635   $as_echo "$as_me: error: $2" >&2
13636   as_fn_exit $as_status
13637 } # as_fn_error
13638
13639
13640 # as_fn_set_status STATUS
13641 # -----------------------
13642 # Set $? to STATUS, without forking.
13643 as_fn_set_status ()
13644 {
13645   return $1
13646 } # as_fn_set_status
13647
13648 # as_fn_exit STATUS
13649 # -----------------
13650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13651 as_fn_exit ()
13652 {
13653   set +e
13654   as_fn_set_status $1
13655   exit $1
13656 } # as_fn_exit
13657
13658 # as_fn_unset VAR
13659 # ---------------
13660 # Portably unset VAR.
13661 as_fn_unset ()
13662 {
13663   { eval $1=; unset $1;}
13664 }
13665 as_unset=as_fn_unset
13666 # as_fn_append VAR VALUE
13667 # ----------------------
13668 # Append the text in VALUE to the end of the definition contained in VAR. Take
13669 # advantage of any shell optimizations that allow amortized linear growth over
13670 # repeated appends, instead of the typical quadratic growth present in naive
13671 # implementations.
13672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13673   eval 'as_fn_append ()
13674   {
13675     eval $1+=\$2
13676   }'
13677 else
13678   as_fn_append ()
13679   {
13680     eval $1=\$$1\$2
13681   }
13682 fi # as_fn_append
13683
13684 # as_fn_arith ARG...
13685 # ------------------
13686 # Perform arithmetic evaluation on the ARGs, and store the result in the
13687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13688 # must be portable across $(()) and expr.
13689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13690   eval 'as_fn_arith ()
13691   {
13692     as_val=$(( $* ))
13693   }'
13694 else
13695   as_fn_arith ()
13696   {
13697     as_val=`expr "$@" || test $? -eq 1`
13698   }
13699 fi # as_fn_arith
13700
13701
13702 if expr a : '\(a\)' >/dev/null 2>&1 &&
13703    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13704   as_expr=expr
13705 else
13706   as_expr=false
13707 fi
13708
13709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13710   as_basename=basename
13711 else
13712   as_basename=false
13713 fi
13714
13715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13716   as_dirname=dirname
13717 else
13718   as_dirname=false
13719 fi
13720
13721 as_me=`$as_basename -- "$0" ||
13722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13723          X"$0" : 'X\(//\)$' \| \
13724          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13725 $as_echo X/"$0" |
13726     sed '/^.*\/\([^/][^/]*\)\/*$/{
13727             s//\1/
13728             q
13729           }
13730           /^X\/\(\/\/\)$/{
13731             s//\1/
13732             q
13733           }
13734           /^X\/\(\/\).*/{
13735             s//\1/
13736             q
13737           }
13738           s/.*/./; q'`
13739
13740 # Avoid depending upon Character Ranges.
13741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13744 as_cr_digits='0123456789'
13745 as_cr_alnum=$as_cr_Letters$as_cr_digits
13746
13747 ECHO_C= ECHO_N= ECHO_T=
13748 case `echo -n x` in #(((((
13749 -n*)
13750   case `echo 'xy\c'` in
13751   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13752   xy)  ECHO_C='\c';;
13753   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13754        ECHO_T=' ';;
13755   esac;;
13756 *)
13757   ECHO_N='-n';;
13758 esac
13759
13760 rm -f conf$$ conf$$.exe conf$$.file
13761 if test -d conf$$.dir; then
13762   rm -f conf$$.dir/conf$$.file
13763 else
13764   rm -f conf$$.dir
13765   mkdir conf$$.dir 2>/dev/null
13766 fi
13767 if (echo >conf$$.file) 2>/dev/null; then
13768   if ln -s conf$$.file conf$$ 2>/dev/null; then
13769     as_ln_s='ln -s'
13770     # ... but there are two gotchas:
13771     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13772     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13773     # In both cases, we have to default to `cp -p'.
13774     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13775       as_ln_s='cp -p'
13776   elif ln conf$$.file conf$$ 2>/dev/null; then
13777     as_ln_s=ln
13778   else
13779     as_ln_s='cp -p'
13780   fi
13781 else
13782   as_ln_s='cp -p'
13783 fi
13784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13785 rmdir conf$$.dir 2>/dev/null
13786
13787
13788 # as_fn_mkdir_p
13789 # -------------
13790 # Create "$as_dir" as a directory, including parents if necessary.
13791 as_fn_mkdir_p ()
13792 {
13793
13794   case $as_dir in #(
13795   -*) as_dir=./$as_dir;;
13796   esac
13797   test -d "$as_dir" || eval $as_mkdir_p || {
13798     as_dirs=
13799     while :; do
13800       case $as_dir in #(
13801       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13802       *) as_qdir=$as_dir;;
13803       esac
13804       as_dirs="'$as_qdir' $as_dirs"
13805       as_dir=`$as_dirname -- "$as_dir" ||
13806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13807          X"$as_dir" : 'X\(//\)[^/]' \| \
13808          X"$as_dir" : 'X\(//\)$' \| \
13809          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13810 $as_echo X"$as_dir" |
13811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13812             s//\1/
13813             q
13814           }
13815           /^X\(\/\/\)[^/].*/{
13816             s//\1/
13817             q
13818           }
13819           /^X\(\/\/\)$/{
13820             s//\1/
13821             q
13822           }
13823           /^X\(\/\).*/{
13824             s//\1/
13825             q
13826           }
13827           s/.*/./; q'`
13828       test -d "$as_dir" && break
13829     done
13830     test -z "$as_dirs" || eval "mkdir $as_dirs"
13831   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13832
13833
13834 } # as_fn_mkdir_p
13835 if mkdir -p . 2>/dev/null; then
13836   as_mkdir_p='mkdir -p "$as_dir"'
13837 else
13838   test -d ./-p && rmdir ./-p
13839   as_mkdir_p=false
13840 fi
13841
13842 if test -x / >/dev/null 2>&1; then
13843   as_test_x='test -x'
13844 else
13845   if ls -dL / >/dev/null 2>&1; then
13846     as_ls_L_option=L
13847   else
13848     as_ls_L_option=
13849   fi
13850   as_test_x='
13851     eval sh -c '\''
13852       if test -d "$1"; then
13853         test -d "$1/.";
13854       else
13855         case $1 in #(
13856         -*)set "./$1";;
13857         esac;
13858         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13859         ???[sx]*):;;*)false;;esac;fi
13860     '\'' sh
13861   '
13862 fi
13863 as_executable_p=$as_test_x
13864
13865 # Sed expression to map a string onto a valid CPP name.
13866 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13867
13868 # Sed expression to map a string onto a valid variable name.
13869 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13870
13871
13872 exec 6>&1
13873 ## ----------------------------------- ##
13874 ## Main body of $CONFIG_STATUS script. ##
13875 ## ----------------------------------- ##
13876 _ASEOF
13877 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13878
13879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13880 # Save the log message, to keep $0 and so on meaningful, and to
13881 # report actual input values of CONFIG_FILES etc. instead of their
13882 # values after options handling.
13883 ac_log="
13884 This file was extended by ofono $as_me 1.6, which was
13885 generated by GNU Autoconf 2.68.  Invocation command line was
13886
13887   CONFIG_FILES    = $CONFIG_FILES
13888   CONFIG_HEADERS  = $CONFIG_HEADERS
13889   CONFIG_LINKS    = $CONFIG_LINKS
13890   CONFIG_COMMANDS = $CONFIG_COMMANDS
13891   $ $0 $@
13892
13893 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13894 "
13895
13896 _ACEOF
13897
13898 case $ac_config_files in *"
13899 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13900 esac
13901
13902 case $ac_config_headers in *"
13903 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13904 esac
13905
13906
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 # Files that config.status was made for.
13909 config_files="$ac_config_files"
13910 config_headers="$ac_config_headers"
13911 config_commands="$ac_config_commands"
13912
13913 _ACEOF
13914
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 ac_cs_usage="\
13917 \`$as_me' instantiates files and other configuration actions
13918 from templates according to the current configuration.  Unless the files
13919 and actions are specified as TAGs, all are instantiated by default.
13920
13921 Usage: $0 [OPTION]... [TAG]...
13922
13923   -h, --help       print this help, then exit
13924   -V, --version    print version number and configuration settings, then exit
13925       --config     print configuration, then exit
13926   -q, --quiet, --silent
13927                    do not print progress messages
13928   -d, --debug      don't remove temporary files
13929       --recheck    update $as_me by reconfiguring in the same conditions
13930       --file=FILE[:TEMPLATE]
13931                    instantiate the configuration file FILE
13932       --header=FILE[:TEMPLATE]
13933                    instantiate the configuration header FILE
13934
13935 Configuration files:
13936 $config_files
13937
13938 Configuration headers:
13939 $config_headers
13940
13941 Configuration commands:
13942 $config_commands
13943
13944 Report bugs to the package provider."
13945
13946 _ACEOF
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13949 ac_cs_version="\\
13950 ofono config.status 1.6
13951 configured by $0, generated by GNU Autoconf 2.68,
13952   with options \\"\$ac_cs_config\\"
13953
13954 Copyright (C) 2010 Free Software Foundation, Inc.
13955 This config.status script is free software; the Free Software Foundation
13956 gives unlimited permission to copy, distribute and modify it."
13957
13958 ac_pwd='$ac_pwd'
13959 srcdir='$srcdir'
13960 INSTALL='$INSTALL'
13961 MKDIR_P='$MKDIR_P'
13962 AWK='$AWK'
13963 test -n "\$AWK" || AWK=awk
13964 _ACEOF
13965
13966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13967 # The default lists apply if the user does not specify any file.
13968 ac_need_defaults=:
13969 while test $# != 0
13970 do
13971   case $1 in
13972   --*=?*)
13973     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13974     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13975     ac_shift=:
13976     ;;
13977   --*=)
13978     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13979     ac_optarg=
13980     ac_shift=:
13981     ;;
13982   *)
13983     ac_option=$1
13984     ac_optarg=$2
13985     ac_shift=shift
13986     ;;
13987   esac
13988
13989   case $ac_option in
13990   # Handling of the options.
13991   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13992     ac_cs_recheck=: ;;
13993   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13994     $as_echo "$ac_cs_version"; exit ;;
13995   --config | --confi | --conf | --con | --co | --c )
13996     $as_echo "$ac_cs_config"; exit ;;
13997   --debug | --debu | --deb | --de | --d | -d )
13998     debug=: ;;
13999   --file | --fil | --fi | --f )
14000     $ac_shift
14001     case $ac_optarg in
14002     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14003     '') as_fn_error $? "missing file argument" ;;
14004     esac
14005     as_fn_append CONFIG_FILES " '$ac_optarg'"
14006     ac_need_defaults=false;;
14007   --header | --heade | --head | --hea )
14008     $ac_shift
14009     case $ac_optarg in
14010     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14011     esac
14012     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14013     ac_need_defaults=false;;
14014   --he | --h)
14015     # Conflict between --help and --header
14016     as_fn_error $? "ambiguous option: \`$1'
14017 Try \`$0 --help' for more information.";;
14018   --help | --hel | -h )
14019     $as_echo "$ac_cs_usage"; exit ;;
14020   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14021   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14022     ac_cs_silent=: ;;
14023
14024   # This is an error.
14025   -*) as_fn_error $? "unrecognized option: \`$1'
14026 Try \`$0 --help' for more information." ;;
14027
14028   *) as_fn_append ac_config_targets " $1"
14029      ac_need_defaults=false ;;
14030
14031   esac
14032   shift
14033 done
14034
14035 ac_configure_extra_args=
14036
14037 if $ac_cs_silent; then
14038   exec 6>/dev/null
14039   ac_configure_extra_args="$ac_configure_extra_args --silent"
14040 fi
14041
14042 _ACEOF
14043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14044 if \$ac_cs_recheck; then
14045   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14046   shift
14047   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14048   CONFIG_SHELL='$SHELL'
14049   export CONFIG_SHELL
14050   exec "\$@"
14051 fi
14052
14053 _ACEOF
14054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055 exec 5>>config.log
14056 {
14057   echo
14058   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14059 ## Running $as_me. ##
14060 _ASBOX
14061   $as_echo "$ac_log"
14062 } >&5
14063
14064 _ACEOF
14065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14066 #
14067 # INIT-COMMANDS
14068 #
14069 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14070
14071
14072 # The HP-UX ksh and POSIX shell print the target directory to stdout
14073 # if CDPATH is set.
14074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14075
14076 sed_quote_subst='$sed_quote_subst'
14077 double_quote_subst='$double_quote_subst'
14078 delay_variable_subst='$delay_variable_subst'
14079 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14080 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14081 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14082 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14083 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14084 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14085 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14086 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14087 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14088 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14089 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14090 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14091 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14092 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14093 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14094 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14095 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14096 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14097 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14098 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14099 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14100 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14101 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14102 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14103 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14104 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14105 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14106 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14107 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14108 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14109 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14110 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14111 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14112 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14113 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14114 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14115 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14116 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14117 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14118 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14119 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14120 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14121 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14122 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14123 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14124 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14125 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14126 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14127 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14128 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14129 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14130 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14131 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14132 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14133 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14134 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14135 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"`'
14136 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14137 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14138 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14139 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14140 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14141 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14142 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14143 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14144 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14145 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14146 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14147 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14148 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14149 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14150 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14151 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14152 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14153 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14154 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14155 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14156 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14157 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14158 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14159 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14160 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14161 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14162 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14163 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14164 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14165 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14166 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14167 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14168 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14169 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14170 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14171 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14172 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14173 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14174 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14175 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14176 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14177 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14178 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14179 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14180 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14181 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14182 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14183 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14184 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14185 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14186 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14187 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14188 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14189 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14190 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14191 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14192 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14193 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14194 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14195 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14196 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14197 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14198 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14199 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14200 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14201 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14202 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14203 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14204 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14205 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14206 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14207 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14208 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14209
14210 LTCC='$LTCC'
14211 LTCFLAGS='$LTCFLAGS'
14212 compiler='$compiler_DEFAULT'
14213
14214 # A function that is used when there is no print builtin or printf.
14215 func_fallback_echo ()
14216 {
14217   eval 'cat <<_LTECHO_EOF
14218 \$1
14219 _LTECHO_EOF'
14220 }
14221
14222 # Quote evaled strings.
14223 for var in SHELL \
14224 ECHO \
14225 PATH_SEPARATOR \
14226 SED \
14227 GREP \
14228 EGREP \
14229 FGREP \
14230 LD \
14231 NM \
14232 LN_S \
14233 lt_SP2NL \
14234 lt_NL2SP \
14235 reload_flag \
14236 OBJDUMP \
14237 deplibs_check_method \
14238 file_magic_cmd \
14239 file_magic_glob \
14240 want_nocaseglob \
14241 DLLTOOL \
14242 sharedlib_from_linklib_cmd \
14243 AR \
14244 AR_FLAGS \
14245 archiver_list_spec \
14246 STRIP \
14247 RANLIB \
14248 CC \
14249 CFLAGS \
14250 compiler \
14251 lt_cv_sys_global_symbol_pipe \
14252 lt_cv_sys_global_symbol_to_cdecl \
14253 lt_cv_sys_global_symbol_to_c_name_address \
14254 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14255 nm_file_list_spec \
14256 lt_prog_compiler_no_builtin_flag \
14257 lt_prog_compiler_pic \
14258 lt_prog_compiler_wl \
14259 lt_prog_compiler_static \
14260 lt_cv_prog_compiler_c_o \
14261 need_locks \
14262 MANIFEST_TOOL \
14263 DSYMUTIL \
14264 NMEDIT \
14265 LIPO \
14266 OTOOL \
14267 OTOOL64 \
14268 shrext_cmds \
14269 export_dynamic_flag_spec \
14270 whole_archive_flag_spec \
14271 compiler_needs_object \
14272 with_gnu_ld \
14273 allow_undefined_flag \
14274 no_undefined_flag \
14275 hardcode_libdir_flag_spec \
14276 hardcode_libdir_separator \
14277 exclude_expsyms \
14278 include_expsyms \
14279 file_list_spec \
14280 variables_saved_for_relink \
14281 libname_spec \
14282 library_names_spec \
14283 soname_spec \
14284 install_override_mode \
14285 finish_eval \
14286 old_striplib \
14287 striplib; do
14288     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14289     *[\\\\\\\`\\"\\\$]*)
14290       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14291       ;;
14292     *)
14293       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14294       ;;
14295     esac
14296 done
14297
14298 # Double-quote double-evaled strings.
14299 for var in reload_cmds \
14300 old_postinstall_cmds \
14301 old_postuninstall_cmds \
14302 old_archive_cmds \
14303 extract_expsyms_cmds \
14304 old_archive_from_new_cmds \
14305 old_archive_from_expsyms_cmds \
14306 archive_cmds \
14307 archive_expsym_cmds \
14308 module_cmds \
14309 module_expsym_cmds \
14310 export_symbols_cmds \
14311 prelink_cmds \
14312 postlink_cmds \
14313 postinstall_cmds \
14314 postuninstall_cmds \
14315 finish_cmds \
14316 sys_lib_search_path_spec \
14317 sys_lib_dlsearch_path_spec; do
14318     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14319     *[\\\\\\\`\\"\\\$]*)
14320       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14321       ;;
14322     *)
14323       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14324       ;;
14325     esac
14326 done
14327
14328 ac_aux_dir='$ac_aux_dir'
14329 xsi_shell='$xsi_shell'
14330 lt_shell_append='$lt_shell_append'
14331
14332 # See if we are running on zsh, and set the options which allow our
14333 # commands through without removal of \ escapes INIT.
14334 if test -n "\${ZSH_VERSION+set}" ; then
14335    setopt NO_GLOB_SUBST
14336 fi
14337
14338
14339     PACKAGE='$PACKAGE'
14340     VERSION='$VERSION'
14341     TIMESTAMP='$TIMESTAMP'
14342     RM='$RM'
14343     ofile='$ofile'
14344
14345
14346
14347
14348 _ACEOF
14349
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351
14352 # Handling of arguments.
14353 for ac_config_target in $ac_config_targets
14354 do
14355   case $ac_config_target in
14356     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14357     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14358     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14359     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14360     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14361     "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14362     "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14363
14364   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14365   esac
14366 done
14367
14368
14369 # If the user did not use the arguments to specify the items to instantiate,
14370 # then the envvar interface is used.  Set only those that are not.
14371 # We use the long form for the default assignment because of an extremely
14372 # bizarre bug on SunOS 4.1.3.
14373 if $ac_need_defaults; then
14374   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14375   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14376   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14377 fi
14378
14379 # Have a temporary directory for convenience.  Make it in the build tree
14380 # simply because there is no reason against having it here, and in addition,
14381 # creating and moving files from /tmp can sometimes cause problems.
14382 # Hook for its removal unless debugging.
14383 # Note that there is a small window in which the directory will not be cleaned:
14384 # after its creation but before its name has been assigned to `$tmp'.
14385 $debug ||
14386 {
14387   tmp= ac_tmp=
14388   trap 'exit_status=$?
14389   : "${ac_tmp:=$tmp}"
14390   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14391 ' 0
14392   trap 'as_fn_exit 1' 1 2 13 15
14393 }
14394 # Create a (secure) tmp directory for tmp files.
14395
14396 {
14397   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14398   test -d "$tmp"
14399 }  ||
14400 {
14401   tmp=./conf$$-$RANDOM
14402   (umask 077 && mkdir "$tmp")
14403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14404 ac_tmp=$tmp
14405
14406 # Set up the scripts for CONFIG_FILES section.
14407 # No need to generate them if there are no CONFIG_FILES.
14408 # This happens for instance with `./config.status config.h'.
14409 if test -n "$CONFIG_FILES"; then
14410
14411
14412 ac_cr=`echo X | tr X '\015'`
14413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14414 # But we know of no other shell where ac_cr would be empty at this
14415 # point, so we can use a bashism as a fallback.
14416 if test "x$ac_cr" = x; then
14417   eval ac_cr=\$\'\\r\'
14418 fi
14419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14421   ac_cs_awk_cr='\\r'
14422 else
14423   ac_cs_awk_cr=$ac_cr
14424 fi
14425
14426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14427 _ACEOF
14428
14429
14430 {
14431   echo "cat >conf$$subs.awk <<_ACEOF" &&
14432   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14433   echo "_ACEOF"
14434 } >conf$$subs.sh ||
14435   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14437 ac_delim='%!_!# '
14438 for ac_last_try in false false false false false :; do
14439   . ./conf$$subs.sh ||
14440     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14441
14442   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14443   if test $ac_delim_n = $ac_delim_num; then
14444     break
14445   elif $ac_last_try; then
14446     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14447   else
14448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14449   fi
14450 done
14451 rm -f conf$$subs.sh
14452
14453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14455 _ACEOF
14456 sed -n '
14457 h
14458 s/^/S["/; s/!.*/"]=/
14459 p
14460 g
14461 s/^[^!]*!//
14462 :repl
14463 t repl
14464 s/'"$ac_delim"'$//
14465 t delim
14466 :nl
14467 h
14468 s/\(.\{148\}\)..*/\1/
14469 t more1
14470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14471 p
14472 n
14473 b repl
14474 :more1
14475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14476 p
14477 g
14478 s/.\{148\}//
14479 t nl
14480 :delim
14481 h
14482 s/\(.\{148\}\)..*/\1/
14483 t more2
14484 s/["\\]/\\&/g; s/^/"/; s/$/"/
14485 p
14486 b
14487 :more2
14488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14489 p
14490 g
14491 s/.\{148\}//
14492 t delim
14493 ' <conf$$subs.awk | sed '
14494 /^[^""]/{
14495   N
14496   s/\n//
14497 }
14498 ' >>$CONFIG_STATUS || ac_write_fail=1
14499 rm -f conf$$subs.awk
14500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14501 _ACAWK
14502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14503   for (key in S) S_is_set[key] = 1
14504   FS = "\a"
14505
14506 }
14507 {
14508   line = $ 0
14509   nfields = split(line, field, "@")
14510   substed = 0
14511   len = length(field[1])
14512   for (i = 2; i < nfields; i++) {
14513     key = field[i]
14514     keylen = length(key)
14515     if (S_is_set[key]) {
14516       value = S[key]
14517       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14518       len += length(value) + length(field[++i])
14519       substed = 1
14520     } else
14521       len += 1 + keylen
14522   }
14523
14524   print line
14525 }
14526
14527 _ACAWK
14528 _ACEOF
14529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14531   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14532 else
14533   cat
14534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14535   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14536 _ACEOF
14537
14538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14540 # trailing colons and then remove the whole line if VPATH becomes empty
14541 # (actually we leave an empty line to preserve line numbers).
14542 if test "x$srcdir" = x.; then
14543   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14544 h
14545 s///
14546 s/^/:/
14547 s/[      ]*$/:/
14548 s/:\$(srcdir):/:/g
14549 s/:\${srcdir}:/:/g
14550 s/:@srcdir@:/:/g
14551 s/^:*//
14552 s/:*$//
14553 x
14554 s/\(=[   ]*\).*/\1/
14555 G
14556 s/\n//
14557 s/^[^=]*=[       ]*$//
14558 }'
14559 fi
14560
14561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 fi # test -n "$CONFIG_FILES"
14563
14564 # Set up the scripts for CONFIG_HEADERS section.
14565 # No need to generate them if there are no CONFIG_HEADERS.
14566 # This happens for instance with `./config.status Makefile'.
14567 if test -n "$CONFIG_HEADERS"; then
14568 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14569 BEGIN {
14570 _ACEOF
14571
14572 # Transform confdefs.h into an awk script `defines.awk', embedded as
14573 # here-document in config.status, that substitutes the proper values into
14574 # config.h.in to produce config.h.
14575
14576 # Create a delimiter string that does not exist in confdefs.h, to ease
14577 # handling of long lines.
14578 ac_delim='%!_!# '
14579 for ac_last_try in false false :; do
14580   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14581   if test -z "$ac_tt"; then
14582     break
14583   elif $ac_last_try; then
14584     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14585   else
14586     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14587   fi
14588 done
14589
14590 # For the awk script, D is an array of macro values keyed by name,
14591 # likewise P contains macro parameters if any.  Preserve backslash
14592 # newline sequences.
14593
14594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14595 sed -n '
14596 s/.\{148\}/&'"$ac_delim"'/g
14597 t rset
14598 :rset
14599 s/^[     ]*#[    ]*define[       ][      ]*/ /
14600 t def
14601 d
14602 :def
14603 s/\\$//
14604 t bsnl
14605 s/["\\]/\\&/g
14606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14607 D["\1"]=" \3"/p
14608 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14609 d
14610 :bsnl
14611 s/["\\]/\\&/g
14612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14613 D["\1"]=" \3\\\\\\n"\\/p
14614 t cont
14615 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14616 t cont
14617 d
14618 :cont
14619 n
14620 s/.\{148\}/&'"$ac_delim"'/g
14621 t clear
14622 :clear
14623 s/\\$//
14624 t bsnlc
14625 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14626 d
14627 :bsnlc
14628 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14629 b cont
14630 ' <confdefs.h | sed '
14631 s/'"$ac_delim"'/"\\\
14632 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14633
14634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14635   for (key in D) D_is_set[key] = 1
14636   FS = "\a"
14637 }
14638 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14639   line = \$ 0
14640   split(line, arg, " ")
14641   if (arg[1] == "#") {
14642     defundef = arg[2]
14643     mac1 = arg[3]
14644   } else {
14645     defundef = substr(arg[1], 2)
14646     mac1 = arg[2]
14647   }
14648   split(mac1, mac2, "(") #)
14649   macro = mac2[1]
14650   prefix = substr(line, 1, index(line, defundef) - 1)
14651   if (D_is_set[macro]) {
14652     # Preserve the white space surrounding the "#".
14653     print prefix "define", macro P[macro] D[macro]
14654     next
14655   } else {
14656     # Replace #undef with comments.  This is necessary, for example,
14657     # in the case of _POSIX_SOURCE, which is predefined and required
14658     # on some systems where configure will not decide to define it.
14659     if (defundef == "undef") {
14660       print "/*", prefix defundef, macro, "*/"
14661       next
14662     }
14663   }
14664 }
14665 { print }
14666 _ACAWK
14667 _ACEOF
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14670 fi # test -n "$CONFIG_HEADERS"
14671
14672
14673 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14674 shift
14675 for ac_tag
14676 do
14677   case $ac_tag in
14678   :[FHLC]) ac_mode=$ac_tag; continue;;
14679   esac
14680   case $ac_mode$ac_tag in
14681   :[FHL]*:*);;
14682   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14683   :[FH]-) ac_tag=-:-;;
14684   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14685   esac
14686   ac_save_IFS=$IFS
14687   IFS=:
14688   set x $ac_tag
14689   IFS=$ac_save_IFS
14690   shift
14691   ac_file=$1
14692   shift
14693
14694   case $ac_mode in
14695   :L) ac_source=$1;;
14696   :[FH])
14697     ac_file_inputs=
14698     for ac_f
14699     do
14700       case $ac_f in
14701       -) ac_f="$ac_tmp/stdin";;
14702       *) # Look for the file first in the build tree, then in the source tree
14703          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14704          # because $ac_f cannot contain `:'.
14705          test -f "$ac_f" ||
14706            case $ac_f in
14707            [\\/$]*) false;;
14708            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14709            esac ||
14710            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14711       esac
14712       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14713       as_fn_append ac_file_inputs " '$ac_f'"
14714     done
14715
14716     # Let's still pretend it is `configure' which instantiates (i.e., don't
14717     # use $as_me), people would be surprised to read:
14718     #    /* config.h.  Generated by config.status.  */
14719     configure_input='Generated from '`
14720           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14721         `' by configure.'
14722     if test x"$ac_file" != x-; then
14723       configure_input="$ac_file.  $configure_input"
14724       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14725 $as_echo "$as_me: creating $ac_file" >&6;}
14726     fi
14727     # Neutralize special characters interpreted by sed in replacement strings.
14728     case $configure_input in #(
14729     *\&* | *\|* | *\\* )
14730        ac_sed_conf_input=`$as_echo "$configure_input" |
14731        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14732     *) ac_sed_conf_input=$configure_input;;
14733     esac
14734
14735     case $ac_tag in
14736     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14737       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14738     esac
14739     ;;
14740   esac
14741
14742   ac_dir=`$as_dirname -- "$ac_file" ||
14743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14744          X"$ac_file" : 'X\(//\)[^/]' \| \
14745          X"$ac_file" : 'X\(//\)$' \| \
14746          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14747 $as_echo X"$ac_file" |
14748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14749             s//\1/
14750             q
14751           }
14752           /^X\(\/\/\)[^/].*/{
14753             s//\1/
14754             q
14755           }
14756           /^X\(\/\/\)$/{
14757             s//\1/
14758             q
14759           }
14760           /^X\(\/\).*/{
14761             s//\1/
14762             q
14763           }
14764           s/.*/./; q'`
14765   as_dir="$ac_dir"; as_fn_mkdir_p
14766   ac_builddir=.
14767
14768 case "$ac_dir" in
14769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14770 *)
14771   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14772   # A ".." for each directory in $ac_dir_suffix.
14773   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14774   case $ac_top_builddir_sub in
14775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14777   esac ;;
14778 esac
14779 ac_abs_top_builddir=$ac_pwd
14780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14781 # for backward compatibility:
14782 ac_top_builddir=$ac_top_build_prefix
14783
14784 case $srcdir in
14785   .)  # We are building in place.
14786     ac_srcdir=.
14787     ac_top_srcdir=$ac_top_builddir_sub
14788     ac_abs_top_srcdir=$ac_pwd ;;
14789   [\\/]* | ?:[\\/]* )  # Absolute name.
14790     ac_srcdir=$srcdir$ac_dir_suffix;
14791     ac_top_srcdir=$srcdir
14792     ac_abs_top_srcdir=$srcdir ;;
14793   *) # Relative name.
14794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14795     ac_top_srcdir=$ac_top_build_prefix$srcdir
14796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14797 esac
14798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14799
14800
14801   case $ac_mode in
14802   :F)
14803   #
14804   # CONFIG_FILE
14805   #
14806
14807   case $INSTALL in
14808   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14809   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14810   esac
14811   ac_MKDIR_P=$MKDIR_P
14812   case $MKDIR_P in
14813   [\\/$]* | ?:[\\/]* ) ;;
14814   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14815   esac
14816 _ACEOF
14817
14818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14819 # If the template does not know about datarootdir, expand it.
14820 # FIXME: This hack should be removed a few years after 2.60.
14821 ac_datarootdir_hack=; ac_datarootdir_seen=
14822 ac_sed_dataroot='
14823 /datarootdir/ {
14824   p
14825   q
14826 }
14827 /@datadir@/p
14828 /@docdir@/p
14829 /@infodir@/p
14830 /@localedir@/p
14831 /@mandir@/p'
14832 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14833 *datarootdir*) ac_datarootdir_seen=yes;;
14834 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14836 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14837 _ACEOF
14838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14839   ac_datarootdir_hack='
14840   s&@datadir@&$datadir&g
14841   s&@docdir@&$docdir&g
14842   s&@infodir@&$infodir&g
14843   s&@localedir@&$localedir&g
14844   s&@mandir@&$mandir&g
14845   s&\\\${datarootdir}&$datarootdir&g' ;;
14846 esac
14847 _ACEOF
14848
14849 # Neutralize VPATH when `$srcdir' = `.'.
14850 # Shell code in configure.ac might set extrasub.
14851 # FIXME: do we really want to maintain this feature?
14852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14853 ac_sed_extra="$ac_vpsub
14854 $extrasub
14855 _ACEOF
14856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14857 :t
14858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14859 s|@configure_input@|$ac_sed_conf_input|;t t
14860 s&@top_builddir@&$ac_top_builddir_sub&;t t
14861 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14862 s&@srcdir@&$ac_srcdir&;t t
14863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14864 s&@top_srcdir@&$ac_top_srcdir&;t t
14865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14866 s&@builddir@&$ac_builddir&;t t
14867 s&@abs_builddir@&$ac_abs_builddir&;t t
14868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14869 s&@INSTALL@&$ac_INSTALL&;t t
14870 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14871 $ac_datarootdir_hack
14872 "
14873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14874   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14875
14876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14877   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14879       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14880   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14881 which seems to be undefined.  Please make sure it is defined" >&5
14882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14883 which seems to be undefined.  Please make sure it is defined" >&2;}
14884
14885   rm -f "$ac_tmp/stdin"
14886   case $ac_file in
14887   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14888   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14889   esac \
14890   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14891  ;;
14892   :H)
14893   #
14894   # CONFIG_HEADER
14895   #
14896   if test x"$ac_file" != x-; then
14897     {
14898       $as_echo "/* $configure_input  */" \
14899       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14900     } >"$ac_tmp/config.h" \
14901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14902     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14903       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14905     else
14906       rm -f "$ac_file"
14907       mv "$ac_tmp/config.h" "$ac_file" \
14908         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14909     fi
14910   else
14911     $as_echo "/* $configure_input  */" \
14912       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14913       || as_fn_error $? "could not create -" "$LINENO" 5
14914   fi
14915 # Compute "$ac_file"'s index in $config_headers.
14916 _am_arg="$ac_file"
14917 _am_stamp_count=1
14918 for _am_header in $config_headers :; do
14919   case $_am_header in
14920     $_am_arg | $_am_arg:* )
14921       break ;;
14922     * )
14923       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14924   esac
14925 done
14926 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14927 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14928          X"$_am_arg" : 'X\(//\)[^/]' \| \
14929          X"$_am_arg" : 'X\(//\)$' \| \
14930          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14931 $as_echo X"$_am_arg" |
14932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14933             s//\1/
14934             q
14935           }
14936           /^X\(\/\/\)[^/].*/{
14937             s//\1/
14938             q
14939           }
14940           /^X\(\/\/\)$/{
14941             s//\1/
14942             q
14943           }
14944           /^X\(\/\).*/{
14945             s//\1/
14946             q
14947           }
14948           s/.*/./; q'`/stamp-h$_am_stamp_count
14949  ;;
14950
14951   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14952 $as_echo "$as_me: executing $ac_file commands" >&6;}
14953  ;;
14954   esac
14955
14956
14957   case $ac_file$ac_mode in
14958     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14959   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14960   # are listed without --file.  Let's play safe and only enable the eval
14961   # if we detect the quoting.
14962   case $CONFIG_FILES in
14963   *\'*) eval set x "$CONFIG_FILES" ;;
14964   *)   set x $CONFIG_FILES ;;
14965   esac
14966   shift
14967   for mf
14968   do
14969     # Strip MF so we end up with the name of the file.
14970     mf=`echo "$mf" | sed -e 's/:.*$//'`
14971     # Check whether this is an Automake generated Makefile or not.
14972     # We used to match only the files named `Makefile.in', but
14973     # some people rename them; so instead we look at the file content.
14974     # Grep'ing the first line is not enough: some people post-process
14975     # each Makefile.in and add a new line on top of each file to say so.
14976     # Grep'ing the whole file is not good either: AIX grep has a line
14977     # limit of 2048, but all sed's we know have understand at least 4000.
14978     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14979       dirpart=`$as_dirname -- "$mf" ||
14980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981          X"$mf" : 'X\(//\)[^/]' \| \
14982          X"$mf" : 'X\(//\)$' \| \
14983          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14984 $as_echo X"$mf" |
14985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14986             s//\1/
14987             q
14988           }
14989           /^X\(\/\/\)[^/].*/{
14990             s//\1/
14991             q
14992           }
14993           /^X\(\/\/\)$/{
14994             s//\1/
14995             q
14996           }
14997           /^X\(\/\).*/{
14998             s//\1/
14999             q
15000           }
15001           s/.*/./; q'`
15002     else
15003       continue
15004     fi
15005     # Extract the definition of DEPDIR, am__include, and am__quote
15006     # from the Makefile without running `make'.
15007     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15008     test -z "$DEPDIR" && continue
15009     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15010     test -z "am__include" && continue
15011     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15012     # When using ansi2knr, U may be empty or an underscore; expand it
15013     U=`sed -n 's/^U = //p' < "$mf"`
15014     # Find all dependency output files, they are included files with
15015     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15016     # simplest approach to changing $(DEPDIR) to its actual value in the
15017     # expansion.
15018     for file in `sed -n "
15019       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15020          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15021       # Make sure the directory exists.
15022       test -f "$dirpart/$file" && continue
15023       fdir=`$as_dirname -- "$file" ||
15024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025          X"$file" : 'X\(//\)[^/]' \| \
15026          X"$file" : 'X\(//\)$' \| \
15027          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15028 $as_echo X"$file" |
15029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030             s//\1/
15031             q
15032           }
15033           /^X\(\/\/\)[^/].*/{
15034             s//\1/
15035             q
15036           }
15037           /^X\(\/\/\)$/{
15038             s//\1/
15039             q
15040           }
15041           /^X\(\/\).*/{
15042             s//\1/
15043             q
15044           }
15045           s/.*/./; q'`
15046       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15047       # echo "creating $dirpart/$file"
15048       echo '# dummy' > "$dirpart/$file"
15049     done
15050   done
15051 }
15052  ;;
15053     "libtool":C)
15054
15055     # See if we are running on zsh, and set the options which allow our
15056     # commands through without removal of \ escapes.
15057     if test -n "${ZSH_VERSION+set}" ; then
15058       setopt NO_GLOB_SUBST
15059     fi
15060
15061     cfgfile="${ofile}T"
15062     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15063     $RM "$cfgfile"
15064
15065     cat <<_LT_EOF >> "$cfgfile"
15066 #! $SHELL
15067
15068 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15069 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15071 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15072 #
15073 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15074 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15075 #                 Foundation, Inc.
15076 #   Written by Gordon Matzigkeit, 1996
15077 #
15078 #   This file is part of GNU Libtool.
15079 #
15080 # GNU Libtool is free software; you can redistribute it and/or
15081 # modify it under the terms of the GNU General Public License as
15082 # published by the Free Software Foundation; either version 2 of
15083 # the License, or (at your option) any later version.
15084 #
15085 # As a special exception to the GNU General Public License,
15086 # if you distribute this file as part of a program or library that
15087 # is built using GNU Libtool, you may include this file under the
15088 # same distribution terms that you use for the rest of that program.
15089 #
15090 # GNU Libtool is distributed in the hope that it will be useful,
15091 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15092 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15093 # GNU General Public License for more details.
15094 #
15095 # You should have received a copy of the GNU General Public License
15096 # along with GNU Libtool; see the file COPYING.  If not, a copy
15097 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15098 # obtained by writing to the Free Software Foundation, Inc.,
15099 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15100
15101
15102 # The names of the tagged configurations supported by this script.
15103 available_tags=""
15104
15105 # ### BEGIN LIBTOOL CONFIG
15106
15107 # Whether or not to build static libraries.
15108 build_old_libs=$enable_static
15109
15110 # Which release of libtool.m4 was used?
15111 macro_version=$macro_version
15112 macro_revision=$macro_revision
15113
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15116
15117 # What type of objects to build.
15118 pic_mode=$pic_mode
15119
15120 # Whether or not to optimize for fast installation.
15121 fast_install=$enable_fast_install
15122
15123 # Shell to use when invoking shell scripts.
15124 SHELL=$lt_SHELL
15125
15126 # An echo program that protects backslashes.
15127 ECHO=$lt_ECHO
15128
15129 # The PATH separator for the build system.
15130 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15131
15132 # The host system.
15133 host_alias=$host_alias
15134 host=$host
15135 host_os=$host_os
15136
15137 # The build system.
15138 build_alias=$build_alias
15139 build=$build
15140 build_os=$build_os
15141
15142 # A sed program that does not truncate output.
15143 SED=$lt_SED
15144
15145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15146 Xsed="\$SED -e 1s/^X//"
15147
15148 # A grep program that handles long lines.
15149 GREP=$lt_GREP
15150
15151 # An ERE matcher.
15152 EGREP=$lt_EGREP
15153
15154 # A literal string matcher.
15155 FGREP=$lt_FGREP
15156
15157 # A BSD- or MS-compatible name lister.
15158 NM=$lt_NM
15159
15160 # Whether we need soft or hard links.
15161 LN_S=$lt_LN_S
15162
15163 # What is the maximum length of a command?
15164 max_cmd_len=$max_cmd_len
15165
15166 # Object file suffix (normally "o").
15167 objext=$ac_objext
15168
15169 # Executable file suffix (normally "").
15170 exeext=$exeext
15171
15172 # whether the shell understands "unset".
15173 lt_unset=$lt_unset
15174
15175 # turn spaces into newlines.
15176 SP2NL=$lt_lt_SP2NL
15177
15178 # turn newlines into spaces.
15179 NL2SP=$lt_lt_NL2SP
15180
15181 # convert \$build file names to \$host format.
15182 to_host_file_cmd=$lt_cv_to_host_file_cmd
15183
15184 # convert \$build files to toolchain format.
15185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15186
15187 # An object symbol dumper.
15188 OBJDUMP=$lt_OBJDUMP
15189
15190 # Method to check whether dependent libraries are shared objects.
15191 deplibs_check_method=$lt_deplibs_check_method
15192
15193 # Command to use when deplibs_check_method = "file_magic".
15194 file_magic_cmd=$lt_file_magic_cmd
15195
15196 # How to find potential files when deplibs_check_method = "file_magic".
15197 file_magic_glob=$lt_file_magic_glob
15198
15199 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15200 want_nocaseglob=$lt_want_nocaseglob
15201
15202 # DLL creation program.
15203 DLLTOOL=$lt_DLLTOOL
15204
15205 # Command to associate shared and link libraries.
15206 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15207
15208 # The archiver.
15209 AR=$lt_AR
15210
15211 # Flags to create an archive.
15212 AR_FLAGS=$lt_AR_FLAGS
15213
15214 # How to feed a file listing to the archiver.
15215 archiver_list_spec=$lt_archiver_list_spec
15216
15217 # A symbol stripping program.
15218 STRIP=$lt_STRIP
15219
15220 # Commands used to install an old-style archive.
15221 RANLIB=$lt_RANLIB
15222 old_postinstall_cmds=$lt_old_postinstall_cmds
15223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15224
15225 # Whether to use a lock for old archive extraction.
15226 lock_old_archive_extraction=$lock_old_archive_extraction
15227
15228 # A C compiler.
15229 LTCC=$lt_CC
15230
15231 # LTCC compiler flags.
15232 LTCFLAGS=$lt_CFLAGS
15233
15234 # Take the output of nm and produce a listing of raw symbols and C names.
15235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15236
15237 # Transform the output of nm in a proper C declaration.
15238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15239
15240 # Transform the output of nm in a C name address pair.
15241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15242
15243 # Transform the output of nm in a C name address pair when lib prefix is needed.
15244 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15245
15246 # Specify filename containing input files for \$NM.
15247 nm_file_list_spec=$lt_nm_file_list_spec
15248
15249 # The root where to search for dependent libraries,and in which our libraries should be installed.
15250 lt_sysroot=$lt_sysroot
15251
15252 # The name of the directory that contains temporary libtool files.
15253 objdir=$objdir
15254
15255 # Used to examine libraries when file_magic_cmd begins with "file".
15256 MAGIC_CMD=$MAGIC_CMD
15257
15258 # Must we lock files when doing compilation?
15259 need_locks=$lt_need_locks
15260
15261 # Manifest tool.
15262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15263
15264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15265 DSYMUTIL=$lt_DSYMUTIL
15266
15267 # Tool to change global to local symbols on Mac OS X.
15268 NMEDIT=$lt_NMEDIT
15269
15270 # Tool to manipulate fat objects and archives on Mac OS X.
15271 LIPO=$lt_LIPO
15272
15273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15274 OTOOL=$lt_OTOOL
15275
15276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15277 OTOOL64=$lt_OTOOL64
15278
15279 # Old archive suffix (normally "a").
15280 libext=$libext
15281
15282 # Shared library suffix (normally ".so").
15283 shrext_cmds=$lt_shrext_cmds
15284
15285 # The commands to extract the exported symbol list from a shared archive.
15286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15287
15288 # Variables whose values should be saved in libtool wrapper scripts and
15289 # restored at link time.
15290 variables_saved_for_relink=$lt_variables_saved_for_relink
15291
15292 # Do we need the "lib" prefix for modules?
15293 need_lib_prefix=$need_lib_prefix
15294
15295 # Do we need a version for libraries?
15296 need_version=$need_version
15297
15298 # Library versioning type.
15299 version_type=$version_type
15300
15301 # Shared library runtime path variable.
15302 runpath_var=$runpath_var
15303
15304 # Shared library path variable.
15305 shlibpath_var=$shlibpath_var
15306
15307 # Is shlibpath searched before the hard-coded library search path?
15308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15309
15310 # Format of library name prefix.
15311 libname_spec=$lt_libname_spec
15312
15313 # List of archive names.  First name is the real one, the rest are links.
15314 # The last name is the one that the linker finds with -lNAME
15315 library_names_spec=$lt_library_names_spec
15316
15317 # The coded name of the library, if different from the real name.
15318 soname_spec=$lt_soname_spec
15319
15320 # Permission mode override for installation of shared libraries.
15321 install_override_mode=$lt_install_override_mode
15322
15323 # Command to use after installation of a shared archive.
15324 postinstall_cmds=$lt_postinstall_cmds
15325
15326 # Command to use after uninstallation of a shared archive.
15327 postuninstall_cmds=$lt_postuninstall_cmds
15328
15329 # Commands used to finish a libtool library installation in a directory.
15330 finish_cmds=$lt_finish_cmds
15331
15332 # As "finish_cmds", except a single script fragment to be evaled but
15333 # not shown.
15334 finish_eval=$lt_finish_eval
15335
15336 # Whether we should hardcode library paths into libraries.
15337 hardcode_into_libs=$hardcode_into_libs
15338
15339 # Compile-time system search path for libraries.
15340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15341
15342 # Run-time system search path for libraries.
15343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15344
15345 # Whether dlopen is supported.
15346 dlopen_support=$enable_dlopen
15347
15348 # Whether dlopen of programs is supported.
15349 dlopen_self=$enable_dlopen_self
15350
15351 # Whether dlopen of statically linked programs is supported.
15352 dlopen_self_static=$enable_dlopen_self_static
15353
15354 # Commands to strip libraries.
15355 old_striplib=$lt_old_striplib
15356 striplib=$lt_striplib
15357
15358
15359 # The linker used to build libraries.
15360 LD=$lt_LD
15361
15362 # How to create reloadable object files.
15363 reload_flag=$lt_reload_flag
15364 reload_cmds=$lt_reload_cmds
15365
15366 # Commands used to build an old-style archive.
15367 old_archive_cmds=$lt_old_archive_cmds
15368
15369 # A language specific compiler.
15370 CC=$lt_compiler
15371
15372 # Is the compiler the GNU compiler?
15373 with_gcc=$GCC
15374
15375 # Compiler flag to turn off builtin functions.
15376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15377
15378 # Additional compiler flags for building library objects.
15379 pic_flag=$lt_lt_prog_compiler_pic
15380
15381 # How to pass a linker flag through the compiler.
15382 wl=$lt_lt_prog_compiler_wl
15383
15384 # Compiler flag to prevent dynamic linking.
15385 link_static_flag=$lt_lt_prog_compiler_static
15386
15387 # Does compiler simultaneously support -c and -o options?
15388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15389
15390 # Whether or not to add -lc for building shared libraries.
15391 build_libtool_need_lc=$archive_cmds_need_lc
15392
15393 # Whether or not to disallow shared libs when runtime libs are static.
15394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15395
15396 # Compiler flag to allow reflexive dlopens.
15397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15398
15399 # Compiler flag to generate shared objects directly from archives.
15400 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15401
15402 # Whether the compiler copes with passing no objects directly.
15403 compiler_needs_object=$lt_compiler_needs_object
15404
15405 # Create an old-style archive from a shared archive.
15406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15407
15408 # Create a temporary old-style archive to link instead of a shared archive.
15409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15410
15411 # Commands used to build a shared archive.
15412 archive_cmds=$lt_archive_cmds
15413 archive_expsym_cmds=$lt_archive_expsym_cmds
15414
15415 # Commands used to build a loadable module if different from building
15416 # a shared archive.
15417 module_cmds=$lt_module_cmds
15418 module_expsym_cmds=$lt_module_expsym_cmds
15419
15420 # Whether we are building with GNU ld or not.
15421 with_gnu_ld=$lt_with_gnu_ld
15422
15423 # Flag that allows shared libraries with undefined symbols to be built.
15424 allow_undefined_flag=$lt_allow_undefined_flag
15425
15426 # Flag that enforces no undefined symbols.
15427 no_undefined_flag=$lt_no_undefined_flag
15428
15429 # Flag to hardcode \$libdir into a binary during linking.
15430 # This must work even if \$libdir does not exist
15431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15432
15433 # Whether we need a single "-rpath" flag with a separated argument.
15434 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15435
15436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15437 # DIR into the resulting binary.
15438 hardcode_direct=$hardcode_direct
15439
15440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15441 # DIR into the resulting binary and the resulting library dependency is
15442 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15443 # library is relocated.
15444 hardcode_direct_absolute=$hardcode_direct_absolute
15445
15446 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15447 # into the resulting binary.
15448 hardcode_minus_L=$hardcode_minus_L
15449
15450 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15451 # into the resulting binary.
15452 hardcode_shlibpath_var=$hardcode_shlibpath_var
15453
15454 # Set to "yes" if building a shared library automatically hardcodes DIR
15455 # into the library and all subsequent libraries and executables linked
15456 # against it.
15457 hardcode_automatic=$hardcode_automatic
15458
15459 # Set to yes if linker adds runtime paths of dependent libraries
15460 # to runtime path list.
15461 inherit_rpath=$inherit_rpath
15462
15463 # Whether libtool must link a program against all its dependency libraries.
15464 link_all_deplibs=$link_all_deplibs
15465
15466 # Set to "yes" if exported symbols are required.
15467 always_export_symbols=$always_export_symbols
15468
15469 # The commands to list exported symbols.
15470 export_symbols_cmds=$lt_export_symbols_cmds
15471
15472 # Symbols that should not be listed in the preloaded symbols.
15473 exclude_expsyms=$lt_exclude_expsyms
15474
15475 # Symbols that must always be exported.
15476 include_expsyms=$lt_include_expsyms
15477
15478 # Commands necessary for linking programs (against libraries) with templates.
15479 prelink_cmds=$lt_prelink_cmds
15480
15481 # Commands necessary for finishing linking programs.
15482 postlink_cmds=$lt_postlink_cmds
15483
15484 # Specify filename containing input files.
15485 file_list_spec=$lt_file_list_spec
15486
15487 # How to hardcode a shared library path into an executable.
15488 hardcode_action=$hardcode_action
15489
15490 # ### END LIBTOOL CONFIG
15491
15492 _LT_EOF
15493
15494   case $host_os in
15495   aix3*)
15496     cat <<\_LT_EOF >> "$cfgfile"
15497 # AIX sometimes has problems with the GCC collect2 program.  For some
15498 # reason, if we set the COLLECT_NAMES environment variable, the problems
15499 # vanish in a puff of smoke.
15500 if test "X${COLLECT_NAMES+set}" != Xset; then
15501   COLLECT_NAMES=
15502   export COLLECT_NAMES
15503 fi
15504 _LT_EOF
15505     ;;
15506   esac
15507
15508
15509 ltmain="$ac_aux_dir/ltmain.sh"
15510
15511
15512   # We use sed instead of cat because bash on DJGPP gets confused if
15513   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15514   # text mode, it properly converts lines to CR/LF.  This bash problem
15515   # is reportedly fixed, but why not run on old versions too?
15516   sed '$q' "$ltmain" >> "$cfgfile" \
15517      || (rm -f "$cfgfile"; exit 1)
15518
15519   if test x"$xsi_shell" = xyes; then
15520   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15521 func_dirname ()\
15522 {\
15523 \    case ${1} in\
15524 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15525 \      *  ) func_dirname_result="${3}" ;;\
15526 \    esac\
15527 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15528   && mv -f "$cfgfile.tmp" "$cfgfile" \
15529     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15530 test 0 -eq $? || _lt_function_replace_fail=:
15531
15532
15533   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15534 func_basename ()\
15535 {\
15536 \    func_basename_result="${1##*/}"\
15537 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15538   && mv -f "$cfgfile.tmp" "$cfgfile" \
15539     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15540 test 0 -eq $? || _lt_function_replace_fail=:
15541
15542
15543   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15544 func_dirname_and_basename ()\
15545 {\
15546 \    case ${1} in\
15547 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15548 \      *  ) func_dirname_result="${3}" ;;\
15549 \    esac\
15550 \    func_basename_result="${1##*/}"\
15551 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15552   && mv -f "$cfgfile.tmp" "$cfgfile" \
15553     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15554 test 0 -eq $? || _lt_function_replace_fail=:
15555
15556
15557   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15558 func_stripname ()\
15559 {\
15560 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15561 \    # positional parameters, so assign one to ordinary parameter first.\
15562 \    func_stripname_result=${3}\
15563 \    func_stripname_result=${func_stripname_result#"${1}"}\
15564 \    func_stripname_result=${func_stripname_result%"${2}"}\
15565 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15566   && mv -f "$cfgfile.tmp" "$cfgfile" \
15567     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15568 test 0 -eq $? || _lt_function_replace_fail=:
15569
15570
15571   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15572 func_split_long_opt ()\
15573 {\
15574 \    func_split_long_opt_name=${1%%=*}\
15575 \    func_split_long_opt_arg=${1#*=}\
15576 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15577   && mv -f "$cfgfile.tmp" "$cfgfile" \
15578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15579 test 0 -eq $? || _lt_function_replace_fail=:
15580
15581
15582   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15583 func_split_short_opt ()\
15584 {\
15585 \    func_split_short_opt_arg=${1#??}\
15586 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15587 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15588   && mv -f "$cfgfile.tmp" "$cfgfile" \
15589     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15590 test 0 -eq $? || _lt_function_replace_fail=:
15591
15592
15593   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15594 func_lo2o ()\
15595 {\
15596 \    case ${1} in\
15597 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15598 \      *)    func_lo2o_result=${1} ;;\
15599 \    esac\
15600 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15601   && mv -f "$cfgfile.tmp" "$cfgfile" \
15602     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603 test 0 -eq $? || _lt_function_replace_fail=:
15604
15605
15606   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15607 func_xform ()\
15608 {\
15609     func_xform_result=${1%.*}.lo\
15610 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15611   && mv -f "$cfgfile.tmp" "$cfgfile" \
15612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15613 test 0 -eq $? || _lt_function_replace_fail=:
15614
15615
15616   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15617 func_arith ()\
15618 {\
15619     func_arith_result=$(( $* ))\
15620 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15621   && mv -f "$cfgfile.tmp" "$cfgfile" \
15622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15623 test 0 -eq $? || _lt_function_replace_fail=:
15624
15625
15626   sed -e '/^func_len ()$/,/^} # func_len /c\
15627 func_len ()\
15628 {\
15629     func_len_result=${#1}\
15630 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15631   && mv -f "$cfgfile.tmp" "$cfgfile" \
15632     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15633 test 0 -eq $? || _lt_function_replace_fail=:
15634
15635 fi
15636
15637 if test x"$lt_shell_append" = xyes; then
15638   sed -e '/^func_append ()$/,/^} # func_append /c\
15639 func_append ()\
15640 {\
15641     eval "${1}+=\\${2}"\
15642 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15643   && mv -f "$cfgfile.tmp" "$cfgfile" \
15644     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15645 test 0 -eq $? || _lt_function_replace_fail=:
15646
15647
15648   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15649 func_append_quoted ()\
15650 {\
15651 \    func_quote_for_eval "${2}"\
15652 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15653 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15654   && mv -f "$cfgfile.tmp" "$cfgfile" \
15655     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15656 test 0 -eq $? || _lt_function_replace_fail=:
15657
15658
15659   # Save a `func_append' function call where possible by direct use of '+='
15660   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15661     && mv -f "$cfgfile.tmp" "$cfgfile" \
15662       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15663   test 0 -eq $? || _lt_function_replace_fail=:
15664 else
15665   # Save a `func_append' function call even when '+=' is not available
15666   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15667     && mv -f "$cfgfile.tmp" "$cfgfile" \
15668       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15669   test 0 -eq $? || _lt_function_replace_fail=:
15670 fi
15671
15672 if test x"$_lt_function_replace_fail" = x":"; then
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15674 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15675 fi
15676
15677
15678    mv -f "$cfgfile" "$ofile" ||
15679     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15680   chmod +x "$ofile"
15681
15682  ;;
15683
15684   esac
15685 done # for ac_tag
15686
15687
15688 as_fn_exit 0
15689 _ACEOF
15690 ac_clean_files=$ac_clean_files_save
15691
15692 test $ac_write_fail = 0 ||
15693   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15694
15695
15696 # configure is writing to config.log, and then calls config.status.
15697 # config.status does its own redirection, appending to config.log.
15698 # Unfortunately, on DOS this fails, as config.log is still kept open
15699 # by configure, so config.status won't be able to write to it; its
15700 # output is simply discarded.  So we exec the FD to /dev/null,
15701 # effectively closing config.log, so it can be properly (re)opened and
15702 # appended to by config.status.  When coming back to configure, we
15703 # need to make the FD available again.
15704 if test "$no_create" != yes; then
15705   ac_cs_success=:
15706   ac_config_status_args=
15707   test "$silent" = yes &&
15708     ac_config_status_args="$ac_config_status_args --quiet"
15709   exec 5>/dev/null
15710   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15711   exec 5>>config.log
15712   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15713   # would make configure fail if this is the last instruction.
15714   $ac_cs_success || as_fn_exit 1
15715 fi
15716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15719 fi
15720