tizen 2.3.1 release
[external/gupnp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for gupnp 0.14.1.
4 #
5 # Report bugs to <http://www.gupnp.org/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.gupnp.org/ about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='gupnp'
703 PACKAGE_TARNAME='gupnp'
704 PACKAGE_VERSION='0.14.1'
705 PACKAGE_STRING='gupnp 0.14.1'
706 PACKAGE_BUGREPORT='http://www.gupnp.org/'
707 PACKAGE_URL=''
708
709 ac_unique_file="libgupnp/gupnp.h"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_header_list=
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 GTK_DOC_USE_REBASE_FALSE
752 GTK_DOC_USE_REBASE_TRUE
753 GTK_DOC_USE_LIBTOOL_FALSE
754 GTK_DOC_USE_LIBTOOL_TRUE
755 GTK_DOC_BUILD_PDF_FALSE
756 GTK_DOC_BUILD_PDF_TRUE
757 GTK_DOC_BUILD_HTML_FALSE
758 GTK_DOC_BUILD_HTML_TRUE
759 ENABLE_GTK_DOC_FALSE
760 ENABLE_GTK_DOC_TRUE
761 HTML_DIR
762 GTKDOC_MKPDF
763 GTKDOC_REBASE
764 GTKDOC_CHECK
765 HAVE_INTROSPECTION_FALSE
766 HAVE_INTROSPECTION_TRUE
767 INTROSPECTION_TYPELIBDIR
768 INTROSPECTION_GIRDIR
769 INTROSPECTION_GENERATE
770 INTROSPECTION_COMPILER
771 INTROSPECTION_SCANNER
772 GLIB_GENMARSHAL
773 DBUS_GLIB_LIBS
774 DBUS_GLIB_CFLAGS
775 USE_CONIC
776 USE_CONIC_FALSE
777 USE_CONIC_TRUE
778 LIBCONIC_LIBS
779 LIBCONIC_CFLAGS
780 USE_NETWORK_MANAGER_FALSE
781 USE_NETWORK_MANAGER_TRUE
782 GTHREAD_LIBS
783 GTHREAD_CFLAGS
784 LIBGUPNP_LIBS
785 LIBGUPNP_CFLAGS
786 PKG_CONFIG_LIBDIR
787 PKG_CONFIG_PATH
788 PKG_CONFIG
789 OTOOL64
790 OTOOL
791 LIPO
792 NMEDIT
793 DSYMUTIL
794 lt_ECHO
795 RANLIB
796 AR
797 OBJDUMP
798 LN_S
799 NM
800 ac_ct_DUMPBIN
801 DUMPBIN
802 LD
803 FGREP
804 SED
805 LIBTOOL
806 EGREP
807 GREP
808 CPP
809 am__fastdepCC_FALSE
810 am__fastdepCC_TRUE
811 CCDEPMODE
812 AMDEPBACKSLASH
813 AMDEP_FALSE
814 AMDEP_TRUE
815 am__quote
816 am__include
817 DEPDIR
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
824 CC
825 AM_BACKSLASH
826 AM_DEFAULT_VERBOSITY
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
835 MAINT
836 MAINTAINER_MODE_FALSE
837 MAINTAINER_MODE_TRUE
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 target_alias
862 host_alias
863 build_alias
864 LIBS
865 ECHO_T
866 ECHO_N
867 ECHO_C
868 DEFS
869 mandir
870 localedir
871 libdir
872 psdir
873 pdfdir
874 dvidir
875 htmldir
876 infodir
877 docdir
878 oldincludedir
879 includedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_maintainer_mode
903 enable_silent_rules
904 enable_dependency_tracking
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_largefile
912 with_context_manager
913 enable_debug
914 enable_introspection
915 with_html_dir
916 enable_gtk_doc
917 enable_gtk_doc_html
918 enable_gtk_doc_pdf
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 PKG_CONFIG
930 PKG_CONFIG_PATH
931 PKG_CONFIG_LIBDIR
932 LIBGUPNP_CFLAGS
933 LIBGUPNP_LIBS
934 GTHREAD_CFLAGS
935 GTHREAD_LIBS
936 LIBCONIC_CFLAGS
937 LIBCONIC_LIBS
938 DBUS_GLIB_CFLAGS
939 DBUS_GLIB_LIBS'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *=)   ac_optarg= ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error $? "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error $? "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error $? "invalid package name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=\$ac_optarg ;;
1290
1291   -without-* | --without-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error $? "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     case $ac_envvar in #(
1333       '' | [0-9]* | *[!_$as_cr_alnum]* )
1334       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335     esac
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   as_fn_error $? "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360   esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365                 datadir sysconfdir sharedstatedir localstatedir includedir \
1366                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367                 libdir localedir mandir
1368 do
1369   eval ac_val=\$$ac_var
1370   # Remove trailing slashes.
1371   case $ac_val in
1372     */ )
1373       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374       eval $ac_var=\$ac_val;;
1375   esac
1376   # Be sure to have absolute directory names.
1377   case $ac_val in
1378     [\\/$]* | ?:[\\/]* )  continue;;
1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380   esac
1381   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393   if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1396     If a cross compiler is detected then cross compile mode will be used" >&2
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   as_fn_error $? "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   as_fn_error $? "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures gupnp 0.14.1 to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking ...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR            user executables [EPREFIX/bin]
1517   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR        program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR            object code libraries [EPREFIX/lib]
1523   --includedir=DIR        C header files [PREFIX/include]
1524   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR           info documentation [DATAROOTDIR/info]
1528   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR            man documentation [DATAROOTDIR/man]
1530   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp]
1531   --htmldir=DIR           html documentation [DOCDIR]
1532   --dvidir=DIR            dvi documentation [DOCDIR]
1533   --pdfdir=DIR            pdf documentation [DOCDIR]
1534   --psdir=DIR             ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 Program names:
1540   --program-prefix=PREFIX            prepend PREFIX to installed program names
1541   --program-suffix=SUFFIX            append SUFFIX to installed program names
1542   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544 System types:
1545   --build=BUILD     configure for building on BUILD [guessed]
1546   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551   case $ac_init_help in
1552      short | recursive ) echo "Configuration of gupnp 0.14.1:";;
1553    esac
1554   cat <<\_ACEOF
1555
1556 Optional Features:
1557   --disable-option-checking  ignore unrecognized --enable/--with options
1558   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560   --enable-maintainer-mode  enable make rules and dependencies not useful
1561                           (and sometimes confusing) to the casual installer
1562   --enable-silent-rules          less verbose build output (undo: `make V=1')
1563   --disable-silent-rules         verbose build output (undo: `make V=0')
1564   --disable-dependency-tracking  speeds up one-time build
1565   --enable-dependency-tracking   do not reject slow dependency extractors
1566   --enable-shared[=PKGS]  build shared libraries [default=yes]
1567   --enable-static[=PKGS]  build static libraries [default=yes]
1568   --enable-fast-install[=PKGS]
1569                           optimize for fast installation [default=yes]
1570   --disable-libtool-lock  avoid locking (might break parallel builds)
1571   --disable-largefile     omit support for large files
1572   --enable-debug          enable debugging
1573   --enable-introspection=[no/auto/yes]
1574                           Enable introspection for this build
1575   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1576   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1577   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-pic              try to use only PIC/non-PIC objects [default=use
1583                           both]
1584   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585   --with-context-manager=[network-manager/unix]
1586                           Context Manager backend to use
1587   --with-html-dir=PATH    path to installed docs
1588
1589 Some influential environment variables:
1590   CC          C compiler command
1591   CFLAGS      C compiler flags
1592   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593               nonstandard directory <lib dir>
1594   LIBS        libraries to pass to the linker, e.g. -l<library>
1595   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596               you have headers in a nonstandard directory <include dir>
1597   CPP         C preprocessor
1598   PKG_CONFIG  path to pkg-config utility
1599   PKG_CONFIG_PATH
1600               directories to add to pkg-config's search path
1601   PKG_CONFIG_LIBDIR
1602               path overriding pkg-config's built-in search path
1603   LIBGUPNP_CFLAGS
1604               C compiler flags for LIBGUPNP, overriding pkg-config
1605   LIBGUPNP_LIBS
1606               linker flags for LIBGUPNP, overriding pkg-config
1607   GTHREAD_CFLAGS
1608               C compiler flags for GTHREAD, overriding pkg-config
1609   GTHREAD_LIBS
1610               linker flags for GTHREAD, overriding pkg-config
1611   LIBCONIC_CFLAGS
1612               C compiler flags for LIBCONIC, overriding pkg-config
1613   LIBCONIC_LIBS
1614               linker flags for LIBCONIC, overriding pkg-config
1615   DBUS_GLIB_CFLAGS
1616               C compiler flags for DBUS_GLIB, overriding pkg-config
1617   DBUS_GLIB_LIBS
1618               linker flags for DBUS_GLIB, overriding pkg-config
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to <http://www.gupnp.org/>.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629   # If there are subdirs, report their specific --help.
1630   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631     test -d "$ac_dir" ||
1632       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633       continue
1634     ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640   # A ".." for each directory in $ac_dir_suffix.
1641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642   case $ac_top_builddir_sub in
1643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645   esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653   .)  # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657   [\\/]* | ?:[\\/]* )  # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661   *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678     fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680   done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685   cat <<\_ACEOF
1686 gupnp configure 0.14.1
1687 generated by GNU Autoconf 2.67
1688
1689 Copyright (C) 2010 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693   exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   rm -f conftest.$ac_objext
1707   if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_compile") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && {
1723          test -z "$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        } && test -s conftest.$ac_objext; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731         ac_retval=1
1732 fi
1733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_link ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   rm -f conftest.$ac_objext conftest$ac_exeext
1745   if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_link") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && {
1761          test -z "$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        } && test -s conftest$ac_exeext && {
1764          test "$cross_compiling" = yes ||
1765          $as_test_x conftest$ac_exeext
1766        }; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772         ac_retval=1
1773 fi
1774   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776   # interfere with the next link command; also delete a directory that is
1777   # left behind by Apple's compiler.  We do this before executing the actions.
1778   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780   as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_link
1783
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798   ac_status=$?
1799   if test -s conftest.err; then
1800     grep -v '^ *+' conftest.err >conftest.er1
1801     cat conftest.er1 >&5
1802     mv -f conftest.er1 conftest.err
1803   fi
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } > conftest.i && {
1806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807          test ! -s conftest.err
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814     ac_retval=1
1815 fi
1816   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817   as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_link") 2>&5
1836   ac_status=$?
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839   { { case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_try") 2>&5
1846   ac_status=$?
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; }; }; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: program exited with status $ac_status" >&5
1852        $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855        ac_retval=$ac_status
1856 fi
1857   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_run
1862
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval "test \"\${$3+set}\"" = set; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   eval "$3=yes"
1882 else
1883   eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_header_compile
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1909 #define $2 innocuous_$2
1910
1911 /* System header to define __stub macros and hopefully few prototypes,
1912     which can conflict with char $2 (); below.
1913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914     <limits.h> exists even on freestanding compilers.  */
1915
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1921
1922 #undef $2
1923
1924 /* Override any GCC internal prototype to avoid an error.
1925    Use char because int might match the return type of a GCC
1926    builtin and then its argument prototype would still apply.  */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932     to always fail with ENOSYS.  Some functions are actually named
1933     something starting with __ and the normal name is an alias.  */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1937
1938 int
1939 main ()
1940 {
1941 return $2 ();
1942   ;
1943   return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947   eval "$3=yes"
1948 else
1949   eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext \
1952     conftest$ac_exeext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_func
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1963
1964 It was created by gupnp $as_me 0.14.1, which was
1965 generated by GNU Autoconf 2.67.  Invocation command line was
1966
1967   $ $0 $@
1968
1969 _ACEOF
1970 exec 5>>config.log
1971 {
1972 cat <<_ASUNAME
1973 ## --------- ##
1974 ## Platform. ##
1975 ## --------- ##
1976
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994 _ASUNAME
1995
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001     $as_echo "PATH: $as_dir"
2002   done
2003 IFS=$as_save_IFS
2004
2005 } >&5
2006
2007 cat >&5 <<_ACEOF
2008
2009
2010 ## ----------- ##
2011 ## Core tests. ##
2012 ## ----------- ##
2013
2014 _ACEOF
2015
2016
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2022 ac_configure_args=
2023 ac_configure_args0=
2024 ac_configure_args1=
2025 ac_must_keep_next=false
2026 for ac_pass in 1 2
2027 do
2028   for ac_arg
2029   do
2030     case $ac_arg in
2031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033     | -silent | --silent | --silen | --sile | --sil)
2034       continue ;;
2035     *\'*)
2036       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037     esac
2038     case $ac_pass in
2039     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040     2)
2041       as_fn_append ac_configure_args1 " '$ac_arg'"
2042       if test $ac_must_keep_next = true; then
2043         ac_must_keep_next=false # Got value, back to normal.
2044       else
2045         case $ac_arg in
2046           *=* | --config-cache | -C | -disable-* | --disable-* \
2047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049           | -with-* | --with-* | -without-* | --without-* | --x)
2050             case "$ac_configure_args0 " in
2051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052             esac
2053             ;;
2054           -* ) ac_must_keep_next=true ;;
2055         esac
2056       fi
2057       as_fn_append ac_configure_args " '$ac_arg'"
2058       ;;
2059     esac
2060   done
2061 done
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2064
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log.  We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071   # Save into config.log some information that might help in debugging.
2072   {
2073     echo
2074
2075     $as_echo "## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##"
2078     echo
2079     # The following way of writing the cache mishandles newlines in values,
2080 (
2081   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082     eval ac_val=\$$ac_var
2083     case $ac_val in #(
2084     *${as_nl}*)
2085       case $ac_var in #(
2086       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088       esac
2089       case $ac_var in #(
2090       _ | IFS | as_nl) ;; #(
2091       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092       *) { eval $ac_var=; unset $ac_var;} ;;
2093       esac ;;
2094     esac
2095   done
2096   (set) 2>&1 |
2097     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098     *${as_nl}ac_space=\ *)
2099       sed -n \
2100         "s/'\''/'\''\\\\'\'''\''/g;
2101           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102       ;; #(
2103     *)
2104       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105       ;;
2106     esac |
2107     sort
2108 )
2109     echo
2110
2111     $as_echo "## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##"
2114     echo
2115     for ac_var in $ac_subst_vars
2116     do
2117       eval ac_val=\$$ac_var
2118       case $ac_val in
2119       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120       esac
2121       $as_echo "$ac_var='\''$ac_val'\''"
2122     done | sort
2123     echo
2124
2125     if test -n "$ac_subst_files"; then
2126       $as_echo "## ------------------- ##
2127 ## File substitutions. ##
2128 ## ------------------- ##"
2129       echo
2130       for ac_var in $ac_subst_files
2131       do
2132         eval ac_val=\$$ac_var
2133         case $ac_val in
2134         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135         esac
2136         $as_echo "$ac_var='\''$ac_val'\''"
2137       done | sort
2138       echo
2139     fi
2140
2141     if test -s confdefs.h; then
2142       $as_echo "## ----------- ##
2143 ## confdefs.h. ##
2144 ## ----------- ##"
2145       echo
2146       cat confdefs.h
2147       echo
2148     fi
2149     test "$ac_signal" != 0 &&
2150       $as_echo "$as_me: caught signal $ac_signal"
2151     $as_echo "$as_me: exit $exit_status"
2152   } >&5
2153   rm -f core *.core core.conftest.* &&
2154     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155     exit $exit_status
2156 ' 0
2157 for ac_signal in 1 2 13 15; do
2158   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159 done
2160 ac_signal=0
2161
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2164
2165 $as_echo "/* confdefs.h */" > confdefs.h
2166
2167 # Predefined preprocessor variables.
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2191 _ACEOF
2192
2193
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2196 ac_site_file1=NONE
2197 ac_site_file2=NONE
2198 if test -n "$CONFIG_SITE"; then
2199   # We do not want a PATH search for config.site.
2200   case $CONFIG_SITE in #((
2201     -*)  ac_site_file1=./$CONFIG_SITE;;
2202     */*) ac_site_file1=$CONFIG_SITE;;
2203     *)   ac_site_file1=./$CONFIG_SITE;;
2204   esac
2205 elif test "x$prefix" != xNONE; then
2206   ac_site_file1=$prefix/share/config.site
2207   ac_site_file2=$prefix/etc/config.site
2208 else
2209   ac_site_file1=$ac_default_prefix/share/config.site
2210   ac_site_file2=$ac_default_prefix/etc/config.site
2211 fi
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213 do
2214   test "x$ac_site_file" = xNONE && continue
2215   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218     sed 's/^/| /' "$ac_site_file" >&5
2219     . "$ac_site_file" \
2220       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See \`config.log' for more details" "$LINENO" 5 ; }
2224   fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228   # Some versions of bash will fail to source /dev/null (special files
2229   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2233     case $cache_file in
2234       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235       *)                      . "./$cache_file";;
2236     esac
2237   fi
2238 else
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2241   >$cache_file
2242 fi
2243
2244 as_fn_append ac_header_list " stdlib.h"
2245 as_fn_append ac_header_list " unistd.h"
2246 as_fn_append ac_header_list " sys/param.h"
2247 # Check that the precious variables saved in the cache have kept the same
2248 # value.
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252   eval ac_new_set=\$ac_env_${ac_var}_set
2253   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254   eval ac_new_val=\$ac_env_${ac_var}_value
2255   case $ac_old_set,$ac_new_set in
2256     set,)
2257       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259       ac_cache_corrupted=: ;;
2260     ,set)
2261       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263       ac_cache_corrupted=: ;;
2264     ,);;
2265     *)
2266       if test "x$ac_old_val" != "x$ac_new_val"; then
2267         # differences in whitespace do not lead to failure.
2268         ac_old_val_w=`echo x $ac_old_val`
2269         ac_new_val_w=`echo x $ac_new_val`
2270         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273           ac_cache_corrupted=:
2274         else
2275           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277           eval $ac_var=\$ac_old_val
2278         fi
2279         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2280 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2281         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2283       fi;;
2284   esac
2285   # Pass precious variables to config.status.
2286   if test "$ac_new_set" = set; then
2287     case $ac_new_val in
2288     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289     *) ac_arg=$ac_var=$ac_new_val ;;
2290     esac
2291     case " $ac_configure_args " in
2292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2293       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294     esac
2295   fi
2296 done
2297 if $ac_cache_corrupted; then
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 fi
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313
2314
2315 am__api_version='1.11'
2316
2317 ac_aux_dir=
2318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319   if test -f "$ac_dir/install-sh"; then
2320     ac_aux_dir=$ac_dir
2321     ac_install_sh="$ac_aux_dir/install-sh -c"
2322     break
2323   elif test -f "$ac_dir/install.sh"; then
2324     ac_aux_dir=$ac_dir
2325     ac_install_sh="$ac_aux_dir/install.sh -c"
2326     break
2327   elif test -f "$ac_dir/shtool"; then
2328     ac_aux_dir=$ac_dir
2329     ac_install_sh="$ac_aux_dir/shtool install -c"
2330     break
2331   fi
2332 done
2333 if test -z "$ac_aux_dir"; then
2334   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2335 fi
2336
2337 # These three variables are undocumented and unsupported,
2338 # and are intended to be withdrawn in a future Autoconf release.
2339 # They can cause serious problems if a builder's source tree is in a directory
2340 # whose full name contains unusual characters.
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2343 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2344
2345
2346 # Find a good install program.  We prefer a C program (faster),
2347 # so one script is as good as another.  But avoid the broken or
2348 # incompatible versions:
2349 # SysV /etc/install, /usr/sbin/install
2350 # SunOS /usr/etc/install
2351 # IRIX /sbin/install
2352 # AIX /bin/install
2353 # AmigaOS /C/install, which installs bootblocks on floppy discs
2354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2357 # OS/2's system install, which has a completely different semantic
2358 # ./install, which can be erroneously created by make from ./install.sh.
2359 # Reject install programs that cannot install multiple files.
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2362 if test -z "$INSTALL"; then
2363 if test "${ac_cv_path_install+set}" = set; then :
2364   $as_echo_n "(cached) " >&6
2365 else
2366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371     # Account for people who put trailing slashes in PATH elements.
2372 case $as_dir/ in #((
2373   ./ | .// | /[cC]/* | \
2374   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2375   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2376   /usr/ucb/* ) ;;
2377   *)
2378     # OSF1 and SCO ODT 3.0 have their own names for install.
2379     # Don't use installbsd from OSF since it installs stuff as root
2380     # by default.
2381     for ac_prog in ginstall scoinst install; do
2382       for ac_exec_ext in '' $ac_executable_extensions; do
2383         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2384           if test $ac_prog = install &&
2385             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386             # AIX install.  It has an incompatible calling convention.
2387             :
2388           elif test $ac_prog = install &&
2389             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390             # program-specific install script used by HP pwplus--don't use.
2391             :
2392           else
2393             rm -rf conftest.one conftest.two conftest.dir
2394             echo one > conftest.one
2395             echo two > conftest.two
2396             mkdir conftest.dir
2397             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2398               test -s conftest.one && test -s conftest.two &&
2399               test -s conftest.dir/conftest.one &&
2400               test -s conftest.dir/conftest.two
2401             then
2402               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2403               break 3
2404             fi
2405           fi
2406         fi
2407       done
2408     done
2409     ;;
2410 esac
2411
2412   done
2413 IFS=$as_save_IFS
2414
2415 rm -rf conftest.one conftest.two conftest.dir
2416
2417 fi
2418   if test "${ac_cv_path_install+set}" = set; then
2419     INSTALL=$ac_cv_path_install
2420   else
2421     # As a last resort, use the slow shell script.  Don't cache a
2422     # value for INSTALL within a source directory, because that will
2423     # break other packages using the cache if that directory is
2424     # removed, or if the value is a relative name.
2425     INSTALL=$ac_install_sh
2426   fi
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2429 $as_echo "$INSTALL" >&6; }
2430
2431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2432 # It thinks the first close brace ends the variable substitution.
2433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2434
2435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2436
2437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2440 $as_echo_n "checking whether build environment is sane... " >&6; }
2441 # Just in case
2442 sleep 1
2443 echo timestamp > conftest.file
2444 # Reject unsafe characters in $srcdir or the absolute working directory
2445 # name.  Accept space and tab only in the latter.
2446 am_lf='
2447 '
2448 case `pwd` in
2449   *[\\\"\#\$\&\'\`$am_lf]*)
2450     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2451 esac
2452 case $srcdir in
2453   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2454     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2455 esac
2456
2457 # Do `set' in a subshell so we don't clobber the current shell's
2458 # arguments.  Must try -L first in case configure is actually a
2459 # symlink; some systems play weird games with the mod time of symlinks
2460 # (eg FreeBSD returns the mod time of the symlink's containing
2461 # directory).
2462 if (
2463    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2464    if test "$*" = "X"; then
2465       # -L didn't work.
2466       set X `ls -t "$srcdir/configure" conftest.file`
2467    fi
2468    rm -f conftest.file
2469    if test "$*" != "X $srcdir/configure conftest.file" \
2470       && test "$*" != "X conftest.file $srcdir/configure"; then
2471
2472       # If neither matched, then we have a broken ls.  This can happen
2473       # if, for instance, CONFIG_SHELL is bash and it inherits a
2474       # broken ls alias from the environment.  This has actually
2475       # happened.  Such a system could not be considered "sane".
2476       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2477 alias in your environment" "$LINENO" 5
2478    fi
2479
2480    test "$2" = conftest.file
2481    )
2482 then
2483    # Ok.
2484    :
2485 else
2486    as_fn_error $? "newly created file is older than distributed files!
2487 Check your system clock" "$LINENO" 5
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2490 $as_echo "yes" >&6; }
2491 test "$program_prefix" != NONE &&
2492   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2500
2501 # expand $ac_aux_dir to an absolute path
2502 am_aux_dir=`cd $ac_aux_dir && pwd`
2503
2504 if test x"${MISSING+set}" != xset; then
2505   case $am_aux_dir in
2506   *\ * | *\     *)
2507     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2508   *)
2509     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2510   esac
2511 fi
2512 # Use eval to expand $SHELL
2513 if eval "$MISSING --run true"; then
2514   am_missing_run="$MISSING --run "
2515 else
2516   am_missing_run=
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2518 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2519 fi
2520
2521 if test x"${install_sh}" != xset; then
2522   case $am_aux_dir in
2523   *\ * | *\     *)
2524     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2525   *)
2526     install_sh="\${SHELL} $am_aux_dir/install-sh"
2527   esac
2528 fi
2529
2530 # Installed binaries are usually stripped using `strip' when the user
2531 # run `make install-strip'.  However `strip' might not be the right
2532 # tool to use in cross-compilation environments, therefore Automake
2533 # will honor the `STRIP' environment variable to overrule this program.
2534 if test "$cross_compiling" != no; then
2535   if test -n "$ac_tool_prefix"; then
2536   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if test "${ac_cv_prog_STRIP+set}" = set; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$STRIP"; then
2544   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 STRIP=$ac_cv_prog_STRIP
2564 if test -n "$STRIP"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2566 $as_echo "$STRIP" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 fi
2574 if test -z "$ac_cv_prog_STRIP"; then
2575   ac_ct_STRIP=$STRIP
2576   # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2581   $as_echo_n "(cached) " >&6
2582 else
2583   if test -n "$ac_ct_STRIP"; then
2584   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     ac_cv_prog_ac_ct_STRIP="strip"
2594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598   done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2604 if test -n "$ac_ct_STRIP"; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2606 $as_echo "$ac_ct_STRIP" >&6; }
2607 else
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612   if test "x$ac_ct_STRIP" = x; then
2613     STRIP=":"
2614   else
2615     case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621     STRIP=$ac_ct_STRIP
2622   fi
2623 else
2624   STRIP="$ac_cv_prog_STRIP"
2625 fi
2626
2627 fi
2628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2632 if test -z "$MKDIR_P"; then
2633   if test "${ac_cv_path_mkdir+set}" = set; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_prog in mkdir gmkdir; do
2642          for ac_exec_ext in '' $ac_executable_extensions; do
2643            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2644            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2645              'mkdir (GNU coreutils) '* | \
2646              'mkdir (coreutils) '* | \
2647              'mkdir (fileutils) '4.1*)
2648                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2649                break 3;;
2650            esac
2651          done
2652        done
2653   done
2654 IFS=$as_save_IFS
2655
2656 fi
2657
2658   test -d ./--version && rmdir ./--version
2659   if test "${ac_cv_path_mkdir+set}" = set; then
2660     MKDIR_P="$ac_cv_path_mkdir -p"
2661   else
2662     # As a last resort, use the slow shell script.  Don't cache a
2663     # value for MKDIR_P within a source directory, because that will
2664     # break other packages using the cache if that directory is
2665     # removed, or if the value is a relative name.
2666     MKDIR_P="$ac_install_sh -d"
2667   fi
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2670 $as_echo "$MKDIR_P" >&6; }
2671
2672 mkdir_p="$MKDIR_P"
2673 case $mkdir_p in
2674   [\\/$]* | ?:[\\/]*) ;;
2675   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2676 esac
2677
2678 for ac_prog in gawk mawk nawk awk
2679 do
2680   # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_AWK+set}" = set; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   if test -n "$AWK"; then
2688   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_AWK="$ac_prog"
2698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702   done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 AWK=$ac_cv_prog_AWK
2708 if test -n "$AWK"; then
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2710 $as_echo "$AWK" >&6; }
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717   test -n "$AWK" && break
2718 done
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2721 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2722 set x ${MAKE-make}
2723 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2724 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   cat >conftest.make <<\_ACEOF
2728 SHELL = /bin/sh
2729 all:
2730         @echo '@@@%%%=$(MAKE)=@@@%%%'
2731 _ACEOF
2732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2734   *@@@%%%=?*=@@@%%%*)
2735     eval ac_cv_prog_make_${ac_make}_set=yes;;
2736   *)
2737     eval ac_cv_prog_make_${ac_make}_set=no;;
2738 esac
2739 rm -f conftest.make
2740 fi
2741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2744   SET_MAKE=
2745 else
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748   SET_MAKE="MAKE=${MAKE-make}"
2749 fi
2750
2751 rm -rf .tst 2>/dev/null
2752 mkdir .tst 2>/dev/null
2753 if test -d .tst; then
2754   am__leading_dot=.
2755 else
2756   am__leading_dot=_
2757 fi
2758 rmdir .tst 2>/dev/null
2759
2760 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2761   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2762   # is not polluted with repeated "-I."
2763   am__isrc=' -I$(srcdir)'
2764   # test to see if srcdir already configured
2765   if test -f $srcdir/config.status; then
2766     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2767   fi
2768 fi
2769
2770 # test whether we have cygpath
2771 if test -z "$CYGPATH_W"; then
2772   if (cygpath --version) >/dev/null 2>/dev/null; then
2773     CYGPATH_W='cygpath -w'
2774   else
2775     CYGPATH_W=echo
2776   fi
2777 fi
2778
2779
2780 # Define the identity of the package.
2781  PACKAGE='gupnp'
2782  VERSION='0.14.1'
2783
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE "$PACKAGE"
2787 _ACEOF
2788
2789
2790 cat >>confdefs.h <<_ACEOF
2791 #define VERSION "$VERSION"
2792 _ACEOF
2793
2794 # Some tools Automake needs.
2795
2796 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2797
2798
2799 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2800
2801
2802 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2803
2804
2805 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2806
2807
2808 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2809
2810 # We need awk for the "check" target.  The system "awk" is bad on
2811 # some platforms.
2812 # Always define AMTAR for backward compatibility.
2813
2814 AMTAR=${AMTAR-"${am_missing_run}tar"}
2815
2816 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2817
2818
2819
2820
2821
2822
2823 ac_config_headers="$ac_config_headers config.h"
2824
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828     # Check whether --enable-maintainer-mode was given.
2829 if test "${enable_maintainer_mode+set}" = set; then :
2830   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2831 else
2832   USE_MAINTAINER_MODE=no
2833 fi
2834
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2837    if test $USE_MAINTAINER_MODE = yes; then
2838   MAINTAINER_MODE_TRUE=
2839   MAINTAINER_MODE_FALSE='#'
2840 else
2841   MAINTAINER_MODE_TRUE='#'
2842   MAINTAINER_MODE_FALSE=
2843 fi
2844
2845   MAINT=$MAINTAINER_MODE_TRUE
2846
2847
2848 # Make sure we can run config.sub.
2849 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2850   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2853 $as_echo_n "checking build system type... " >&6; }
2854 if test "${ac_cv_build+set}" = set; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   ac_build_alias=$build_alias
2858 test "x$ac_build_alias" = x &&
2859   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2860 test "x$ac_build_alias" = x &&
2861   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2863   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2864
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2867 $as_echo "$ac_cv_build" >&6; }
2868 case $ac_cv_build in
2869 *-*-*) ;;
2870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2871 esac
2872 build=$ac_cv_build
2873 ac_save_IFS=$IFS; IFS='-'
2874 set x $ac_cv_build
2875 shift
2876 build_cpu=$1
2877 build_vendor=$2
2878 shift; shift
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2881 build_os=$*
2882 IFS=$ac_save_IFS
2883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2884
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2887 $as_echo_n "checking host system type... " >&6; }
2888 if test "${ac_cv_host+set}" = set; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test "x$host_alias" = x; then
2892   ac_cv_host=$ac_cv_build
2893 else
2894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2895     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2896 fi
2897
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2900 $as_echo "$ac_cv_host" >&6; }
2901 case $ac_cv_host in
2902 *-*-*) ;;
2903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2904 esac
2905 host=$ac_cv_host
2906 ac_save_IFS=$IFS; IFS='-'
2907 set x $ac_cv_host
2908 shift
2909 host_cpu=$1
2910 host_vendor=$2
2911 shift; shift
2912 # Remember, the first character of IFS is used to create $*,
2913 # except with old shells:
2914 host_os=$*
2915 IFS=$ac_save_IFS
2916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2917
2918
2919
2920 # Check whether --enable-silent-rules was given.
2921 if test "${enable_silent_rules+set}" = set; then :
2922   enableval=$enable_silent_rules;
2923 fi
2924
2925 case $enable_silent_rules in
2926 yes) AM_DEFAULT_VERBOSITY=0;;
2927 no)  AM_DEFAULT_VERBOSITY=1;;
2928 *)   AM_DEFAULT_VERBOSITY=0;;
2929 esac
2930 AM_BACKSLASH='\'
2931
2932
2933 DEPDIR="${am__leading_dot}deps"
2934
2935 ac_config_commands="$ac_config_commands depfiles"
2936
2937
2938 am_make=${MAKE-make}
2939 cat > confinc << 'END'
2940 am__doit:
2941         @echo this is the am__doit target
2942 .PHONY: am__doit
2943 END
2944 # If we don't find an include directive, just comment out the code.
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2946 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2947 am__include="#"
2948 am__quote=
2949 _am_result=none
2950 # First try GNU make style include.
2951 echo "include confinc" > confmf
2952 # Ignore all kinds of additional output from `make'.
2953 case `$am_make -s -f confmf 2> /dev/null` in #(
2954 *the\ am__doit\ target*)
2955   am__include=include
2956   am__quote=
2957   _am_result=GNU
2958   ;;
2959 esac
2960 # Now try BSD make style include.
2961 if test "$am__include" = "#"; then
2962    echo '.include "confinc"' > confmf
2963    case `$am_make -s -f confmf 2> /dev/null` in #(
2964    *the\ am__doit\ target*)
2965      am__include=.include
2966      am__quote="\""
2967      _am_result=BSD
2968      ;;
2969    esac
2970 fi
2971
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2974 $as_echo "$_am_result" >&6; }
2975 rm -f confinc confmf
2976
2977 # Check whether --enable-dependency-tracking was given.
2978 if test "${enable_dependency_tracking+set}" = set; then :
2979   enableval=$enable_dependency_tracking;
2980 fi
2981
2982 if test "x$enable_dependency_tracking" != xno; then
2983   am_depcomp="$ac_aux_dir/depcomp"
2984   AMDEPBACKSLASH='\'
2985 fi
2986  if test "x$enable_dependency_tracking" != xno; then
2987   AMDEP_TRUE=
2988   AMDEP_FALSE='#'
2989 else
2990   AMDEP_TRUE='#'
2991   AMDEP_FALSE=
2992 fi
2993
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_CC"; then
3040   ac_ct_CC=$CC
3041   # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$ac_ct_CC"; then
3049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058     ac_cv_prog_ac_ct_CC="gcc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 else
3089   CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
3093           if test -n "$ac_tool_prefix"; then
3094     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_CC="${ac_tool_prefix}cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131   fi
3132 fi
3133 if test -z "$CC"; then
3134   # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   if test -n "$CC"; then
3142   ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144   ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_exec_ext in '' $ac_executable_extensions; do
3151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153        ac_prog_rejected=yes
3154        continue
3155      fi
3156     ac_cv_prog_CC="cc"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 if test $ac_prog_rejected = yes; then
3165   # We found a bogon in the path, so make sure we never use it.
3166   set dummy $ac_cv_prog_CC
3167   shift
3168   if test $# != 0; then
3169     # We chose a different compiler from the bogus one.
3170     # However, it has the same basename, so the bogon will be chosen
3171     # first if we set CC to just the basename; use the full file name.
3172     shift
3173     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174   fi
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190   if test -n "$ac_tool_prefix"; then
3191   for ac_prog in cl.exe
3192   do
3193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230     test -n "$CC" && break
3231   done
3232 fi
3233 if test -z "$CC"; then
3234   ac_ct_CC=$CC
3235   for ac_prog in cl.exe
3236 do
3237   # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$ac_ct_CC"; then
3245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_ac_ct_CC="$ac_prog"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   test -n "$ac_ct_CC" && break
3275 done
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5 ; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303   { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311   ac_status=$?
3312   if test -s conftest.err; then
3313     sed '10a\
3314 ... rest of stderr output deleted ...
3315          10q' conftest.err >conftest.er1
3316     cat conftest.er1 >&5
3317   fi
3318   rm -f conftest.er1 conftest.err
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3338 # of exeext.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3345
3346 ac_rmfiles=
3347 for ac_file in $ac_files
3348 do
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3352   esac
3353 done
3354 rm -f $ac_rmfiles
3355
3356 if { { ac_try="$ac_link_default"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link_default") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3371 # Autoconf.
3372 for ac_file in $ac_files ''
3373 do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3377         ;;
3378     [ab].out )
3379         # We found the default executable, but exeext='' is most
3380         # certainly right.
3381         break;;
3382     *.* )
3383         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384         then :; else
3385            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386         fi
3387         # We set ac_cv_exeext here because the later test for it is not
3388         # safe: cross compilers may not add the suffix if given an `-o'
3389         # argument, so we may need to know it at that point already.
3390         # Even if this section looks crufty: it has the advantage of
3391         # actually working.
3392         break;;
3393     * )
3394         break;;
3395   esac
3396 done
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3398
3399 else
3400   ac_file=''
3401 fi
3402 if test -z "$ac_file"; then :
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5 ; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3421
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5 ; }
3455 fi
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465 #include <stdio.h>
3466 int
3467 main ()
3468 {
3469 FILE *f = fopen ("conftest.out", "w");
3470  return ferror (f) || fclose (f) != 0;
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run.  If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482   { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489   (eval "$ac_link") 2>&5
3490   ac_status=$?
3491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492   test $ac_status = 0; }
3493   if { ac_try='./conftest$ac_cv_exeext'
3494   { { case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_try") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; }; then
3504     cross_compiling=no
3505   else
3506     if test "$cross_compiling" = maybe; then
3507         cross_compiling=yes
3508     else
3509         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5 ; }
3514     fi
3515   fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3519
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if test "${ac_cv_objext+set}" = set; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_compile") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   for ac_file in conftest.o conftest.obj conftest.*; do
3551   test -f "$ac_file" || continue;
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555        break;;
3556   esac
3557 done
3558 else
3559   $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5 ; }
3566 fi
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3572 ac_objext=$OBJEXT
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584 #ifndef __GNUC__
3585        choke me
3586 #endif
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_compiler_gnu=yes
3594 else
3595   ac_compiler_gnu=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3604   GCC=yes
3605 else
3606   GCC=
3607 fi
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if test "${ac_cv_prog_cc_g+set}" = set; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_save_c_werror_flag=$ac_c_werror_flag
3616    ac_c_werror_flag=yes
3617    ac_cv_prog_cc_g=no
3618    CFLAGS="-g"
3619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631   ac_cv_prog_cc_g=yes
3632 else
3633   CFLAGS=""
3634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646
3647 else
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649          CFLAGS="-g"
3650          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662   ac_cv_prog_cc_g=yes
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669    ac_c_werror_flag=$ac_save_c_werror_flag
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674   CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676   if test "$GCC" = yes; then
3677     CFLAGS="-g -O2"
3678   else
3679     CFLAGS="-g"
3680   fi
3681 else
3682   if test "$GCC" = yes; then
3683     CFLAGS="-O2"
3684   else
3685     CFLAGS=
3686   fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   ac_cv_prog_cc_c89=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3705      char **p;
3706      int i;
3707 {
3708   return p[i];
3709 }
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3711 {
3712   char *s;
3713   va_list v;
3714   va_start (v,p);
3715   s = g (p, va_arg (v,int));
3716   va_end (v);
3717   return s;
3718 }
3719
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3721    function prototypes and stuff, but not '\xHH' hex character constants.
3722    These don't provoke an error unfortunately, instead are silently treated
3723    as 'x'.  The following induces an error, until -std is added to get
3724    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3725    array size at least.  It's necessary to write '\x00'==0 to get something
3726    that's true only with -std.  */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730    inside strings and character constants.  */
3731 #define FOO(x) 'x'
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738 int argc;
3739 char **argv;
3740 int
3741 main ()
3742 {
3743 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750 do
3751   CC="$ac_save_CC $ac_arg"
3752   if ac_fn_c_try_compile "$LINENO"; then :
3753   ac_cv_prog_cc_c89=$ac_arg
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext
3756   test "x$ac_cv_prog_cc_c89" != "xno" && break
3757 done
3758 rm -f conftest.$ac_ext
3759 CC=$ac_save_CC
3760
3761 fi
3762 # AC_CACHE_VAL
3763 case "x$ac_cv_prog_cc_c89" in
3764   x)
3765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766 $as_echo "none needed" >&6; } ;;
3767   xno)
3768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 $as_echo "unsupported" >&6; } ;;
3770   *)
3771     CC="$CC $ac_cv_prog_cc_c89"
3772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3774 esac
3775 if test "x$ac_cv_prog_cc_c89" != xno; then :
3776
3777 fi
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785 depcc="$CC"   am_compiler_list=
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   mkdir conftest.dir
3799   # Copy depcomp to subdir because otherwise we won't find it if we're
3800   # using a relative directory.
3801   cp "$am_depcomp" conftest.dir
3802   cd conftest.dir
3803   # We will build objects and dependencies in a subdirectory because
3804   # it helps to detect inapplicable dependency modes.  For instance
3805   # both Tru64's cc and ICC support -MD to output dependencies as a
3806   # side effect of compilation, but ICC will put the dependencies in
3807   # the current directory while Tru64 will put them in the object
3808   # directory.
3809   mkdir sub
3810
3811   am_cv_CC_dependencies_compiler_type=none
3812   if test "$am_compiler_list" = ""; then
3813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814   fi
3815   am__universal=false
3816   case " $depcc " in #(
3817      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818      esac
3819
3820   for depmode in $am_compiler_list; do
3821     # Setup a source with many dependencies, because some compilers
3822     # like to wrap large dependency lists on column 80 (with \), and
3823     # we should not choose a depcomp mode which is confused by this.
3824     #
3825     # We need to recreate these files for each test, as the compiler may
3826     # overwrite some of them when testing with obscure command lines.
3827     # This happens at least with the AIX C compiler.
3828     : > sub/conftest.c
3829     for i in 1 2 3 4 5 6; do
3830       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3832       # Solaris 8's {/usr,}/bin/sh.
3833       touch sub/conftst$i.h
3834     done
3835     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3836
3837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838     # mode.  It turns out that the SunPro C++ compiler does not properly
3839     # handle `-M -o', and we need to detect this.  Also, some Intel
3840     # versions had trouble with output in subdirs
3841     am__obj=sub/conftest.${OBJEXT-o}
3842     am__minus_obj="-o $am__obj"
3843     case $depmode in
3844     gcc)
3845       # This depmode causes a compiler race in universal mode.
3846       test "$am__universal" = false || continue
3847       ;;
3848     nosideeffect)
3849       # after this tag, mechanisms are not by side-effect, so they'll
3850       # only be used when explicitly requested
3851       if test "x$enable_dependency_tracking" = xyes; then
3852         continue
3853       else
3854         break
3855       fi
3856       ;;
3857     msvisualcpp | msvcmsys)
3858       # This compiler won't grok `-c -o', but also, the minuso test has
3859       # not run yet.  These depmodes are late enough in the game, and
3860       # so weak that their functioning should not be impacted.
3861       am__obj=conftest.${OBJEXT-o}
3862       am__minus_obj=
3863       ;;
3864     none) break ;;
3865     esac
3866     if depmode=$depmode \
3867        source=sub/conftest.c object=$am__obj \
3868        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3870          >/dev/null 2>conftest.err &&
3871        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3874        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875       # icc doesn't choke on unknown options, it will just issue warnings
3876       # or remarks (even with -Werror).  So we grep stderr for any message
3877       # that says an option was ignored or not supported.
3878       # When given -MP, icc 7.0 and 7.1 complain thusly:
3879       #   icc: Command line warning: ignoring option '-M'; no argument required
3880       # The diagnosis changed in icc 8.0:
3881       #   icc: Command line remark: option '-MP' not supported
3882       if (grep 'ignoring option' conftest.err ||
3883           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884         am_cv_CC_dependencies_compiler_type=$depmode
3885         break
3886       fi
3887     fi
3888   done
3889
3890   cd ..
3891   rm -rf conftest.dir
3892 else
3893   am_cv_CC_dependencies_compiler_type=none
3894 fi
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
3901  if
3902   test "x$enable_dependency_tracking" != xno \
3903   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904   am__fastdepCC_TRUE=
3905   am__fastdepCC_FALSE='#'
3906 else
3907   am__fastdepCC_TRUE='#'
3908   am__fastdepCC_FALSE=
3909 fi
3910
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3914 $as_echo_n "checking for library containing strerror... " >&6; }
3915 if test "${ac_cv_search_strerror+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   ac_func_search_save_LIBS=$LIBS
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921
3922 /* Override any GCC internal prototype to avoid an error.
3923    Use char because int might match the return type of a GCC
3924    builtin and then its argument prototype would still apply.  */
3925 #ifdef __cplusplus
3926 extern "C"
3927 #endif
3928 char strerror ();
3929 int
3930 main ()
3931 {
3932 return strerror ();
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 for ac_lib in '' cposix; do
3938   if test -z "$ac_lib"; then
3939     ac_res="none required"
3940   else
3941     ac_res=-l$ac_lib
3942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3943   fi
3944   if ac_fn_c_try_link "$LINENO"; then :
3945   ac_cv_search_strerror=$ac_res
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext \
3948     conftest$ac_exeext
3949   if test "${ac_cv_search_strerror+set}" = set; then :
3950   break
3951 fi
3952 done
3953 if test "${ac_cv_search_strerror+set}" = set; then :
3954
3955 else
3956   ac_cv_search_strerror=no
3957 fi
3958 rm conftest.$ac_ext
3959 LIBS=$ac_func_search_save_LIBS
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3962 $as_echo "$ac_cv_search_strerror" >&6; }
3963 ac_res=$ac_cv_search_strerror
3964 if test "$ac_res" != no; then :
3965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3966
3967 fi
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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 test "${ac_cv_c_compiler_gnu+set}" = set; 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 test "${ac_cv_prog_cc_g+set}" = set; 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 test "${ac_cv_prog_cc_c89+set}" = set; 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 test "${am_cv_CC_dependencies_compiler_type+set}" = set; 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   mkdir conftest.dir
4523   # Copy depcomp to subdir because otherwise we won't find it if we're
4524   # using a relative directory.
4525   cp "$am_depcomp" conftest.dir
4526   cd conftest.dir
4527   # We will build objects and dependencies in a subdirectory because
4528   # it helps to detect inapplicable dependency modes.  For instance
4529   # both Tru64's cc and ICC support -MD to output dependencies as a
4530   # side effect of compilation, but ICC will put the dependencies in
4531   # the current directory while Tru64 will put them in the object
4532   # directory.
4533   mkdir sub
4534
4535   am_cv_CC_dependencies_compiler_type=none
4536   if test "$am_compiler_list" = ""; then
4537      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4538   fi
4539   am__universal=false
4540   case " $depcc " in #(
4541      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4542      esac
4543
4544   for depmode in $am_compiler_list; do
4545     # Setup a source with many dependencies, because some compilers
4546     # like to wrap large dependency lists on column 80 (with \), and
4547     # we should not choose a depcomp mode which is confused by this.
4548     #
4549     # We need to recreate these files for each test, as the compiler may
4550     # overwrite some of them when testing with obscure command lines.
4551     # This happens at least with the AIX C compiler.
4552     : > sub/conftest.c
4553     for i in 1 2 3 4 5 6; do
4554       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4555       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4556       # Solaris 8's {/usr,}/bin/sh.
4557       touch sub/conftst$i.h
4558     done
4559     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560
4561     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4562     # mode.  It turns out that the SunPro C++ compiler does not properly
4563     # handle `-M -o', and we need to detect this.  Also, some Intel
4564     # versions had trouble with output in subdirs
4565     am__obj=sub/conftest.${OBJEXT-o}
4566     am__minus_obj="-o $am__obj"
4567     case $depmode in
4568     gcc)
4569       # This depmode causes a compiler race in universal mode.
4570       test "$am__universal" = false || continue
4571       ;;
4572     nosideeffect)
4573       # after this tag, mechanisms are not by side-effect, so they'll
4574       # only be used when explicitly requested
4575       if test "x$enable_dependency_tracking" = xyes; then
4576         continue
4577       else
4578         break
4579       fi
4580       ;;
4581     msvisualcpp | msvcmsys)
4582       # This compiler won't grok `-c -o', but also, the minuso test has
4583       # not run yet.  These depmodes are late enough in the game, and
4584       # so weak that their functioning should not be impacted.
4585       am__obj=conftest.${OBJEXT-o}
4586       am__minus_obj=
4587       ;;
4588     none) break ;;
4589     esac
4590     if depmode=$depmode \
4591        source=sub/conftest.c object=$am__obj \
4592        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4593        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4594          >/dev/null 2>conftest.err &&
4595        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4596        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4597        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4598        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4599       # icc doesn't choke on unknown options, it will just issue warnings
4600       # or remarks (even with -Werror).  So we grep stderr for any message
4601       # that says an option was ignored or not supported.
4602       # When given -MP, icc 7.0 and 7.1 complain thusly:
4603       #   icc: Command line warning: ignoring option '-M'; no argument required
4604       # The diagnosis changed in icc 8.0:
4605       #   icc: Command line remark: option '-MP' not supported
4606       if (grep 'ignoring option' conftest.err ||
4607           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4608         am_cv_CC_dependencies_compiler_type=$depmode
4609         break
4610       fi
4611     fi
4612   done
4613
4614   cd ..
4615   rm -rf conftest.dir
4616 else
4617   am_cv_CC_dependencies_compiler_type=none
4618 fi
4619
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4622 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4623 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4624
4625  if
4626   test "x$enable_dependency_tracking" != xno \
4627   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4628   am__fastdepCC_TRUE=
4629   am__fastdepCC_FALSE='#'
4630 else
4631   am__fastdepCC_TRUE='#'
4632   am__fastdepCC_FALSE=
4633 fi
4634
4635
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4642 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4643 # On Suns, sometimes $CPP names a directory.
4644 if test -n "$CPP" && test -d "$CPP"; then
4645   CPP=
4646 fi
4647 if test -z "$CPP"; then
4648   if test "${ac_cv_prog_CPP+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651       # Double quotes because CPP needs to be expanded
4652     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4653     do
4654       ac_preproc_ok=false
4655 for ac_c_preproc_warn_flag in '' yes
4656 do
4657   # Use a header file that comes with gcc, so configuring glibc
4658   # with a fresh cross-compiler works.
4659   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660   # <limits.h> exists even on freestanding compilers.
4661   # On the NeXT, cc -E runs the code through the compiler's parser,
4662   # not just through cpp. "Syntax error" is here to catch this case.
4663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #ifdef __STDC__
4666 # include <limits.h>
4667 #else
4668 # include <assert.h>
4669 #endif
4670                      Syntax error
4671 _ACEOF
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4673
4674 else
4675   # Broken: fails on valid input.
4676 continue
4677 fi
4678 rm -f conftest.err conftest.i conftest.$ac_ext
4679
4680   # OK, works on sane cases.  Now check whether nonexistent headers
4681   # can be detected and how.
4682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h.  */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687   # Broken: success on invalid input.
4688 continue
4689 else
4690   # Passes both tests.
4691 ac_preproc_ok=:
4692 break
4693 fi
4694 rm -f conftest.err conftest.i conftest.$ac_ext
4695
4696 done
4697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698 rm -f conftest.i conftest.err conftest.$ac_ext
4699 if $ac_preproc_ok; then :
4700   break
4701 fi
4702
4703     done
4704     ac_cv_prog_CPP=$CPP
4705
4706 fi
4707   CPP=$ac_cv_prog_CPP
4708 else
4709   ac_cv_prog_CPP=$CPP
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4712 $as_echo "$CPP" >&6; }
4713 ac_preproc_ok=false
4714 for ac_c_preproc_warn_flag in '' yes
4715 do
4716   # Use a header file that comes with gcc, so configuring glibc
4717   # with a fresh cross-compiler works.
4718   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4719   # <limits.h> exists even on freestanding compilers.
4720   # On the NeXT, cc -E runs the code through the compiler's parser,
4721   # not just through cpp. "Syntax error" is here to catch this case.
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #ifdef __STDC__
4725 # include <limits.h>
4726 #else
4727 # include <assert.h>
4728 #endif
4729                      Syntax error
4730 _ACEOF
4731 if ac_fn_c_try_cpp "$LINENO"; then :
4732
4733 else
4734   # Broken: fails on valid input.
4735 continue
4736 fi
4737 rm -f conftest.err conftest.i conftest.$ac_ext
4738
4739   # OK, works on sane cases.  Now check whether nonexistent headers
4740   # can be detected and how.
4741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if ac_fn_c_try_cpp "$LINENO"; then :
4746   # Broken: success on invalid input.
4747 continue
4748 else
4749   # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4752 fi
4753 rm -f conftest.err conftest.i conftest.$ac_ext
4754
4755 done
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.i conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then :
4759
4760 else
4761   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4764 See \`config.log' for more details" "$LINENO" 5 ; }
4765 fi
4766
4767 ac_ext=c
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4775 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4776 if test "${ac_cv_path_GREP+set}" = set; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   if test -z "$GREP"; then
4780   ac_path_GREP_found=false
4781   # Loop through the user's path and test for each of PROGNAME-LIST
4782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787     for ac_prog in grep ggrep; do
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4790       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4791 # Check for GNU ac_path_GREP and select it if it is found.
4792   # Check for GNU $ac_path_GREP
4793 case `"$ac_path_GREP" --version 2>&1` in
4794 *GNU*)
4795   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4796 *)
4797   ac_count=0
4798   $as_echo_n 0123456789 >"conftest.in"
4799   while :
4800   do
4801     cat "conftest.in" "conftest.in" >"conftest.tmp"
4802     mv "conftest.tmp" "conftest.in"
4803     cp "conftest.in" "conftest.nl"
4804     $as_echo 'GREP' >> "conftest.nl"
4805     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807     as_fn_arith $ac_count + 1 && ac_count=$as_val
4808     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4809       # Best one so far, save it but keep looking for a better one
4810       ac_cv_path_GREP="$ac_path_GREP"
4811       ac_path_GREP_max=$ac_count
4812     fi
4813     # 10*(2^10) chars as input seems more than enough
4814     test $ac_count -gt 10 && break
4815   done
4816   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 esac
4818
4819       $ac_path_GREP_found && break 3
4820     done
4821   done
4822   done
4823 IFS=$as_save_IFS
4824   if test -z "$ac_cv_path_GREP"; then
4825     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4826   fi
4827 else
4828   ac_cv_path_GREP=$GREP
4829 fi
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4833 $as_echo "$ac_cv_path_GREP" >&6; }
4834  GREP="$ac_cv_path_GREP"
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4838 $as_echo_n "checking for egrep... " >&6; }
4839 if test "${ac_cv_path_EGREP+set}" = set; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4843    then ac_cv_path_EGREP="$GREP -E"
4844    else
4845      if test -z "$EGREP"; then
4846   ac_path_EGREP_found=false
4847   # Loop through the user's path and test for each of PROGNAME-LIST
4848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853     for ac_prog in egrep; do
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4856       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4857 # Check for GNU ac_path_EGREP and select it if it is found.
4858   # Check for GNU $ac_path_EGREP
4859 case `"$ac_path_EGREP" --version 2>&1` in
4860 *GNU*)
4861   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4862 *)
4863   ac_count=0
4864   $as_echo_n 0123456789 >"conftest.in"
4865   while :
4866   do
4867     cat "conftest.in" "conftest.in" >"conftest.tmp"
4868     mv "conftest.tmp" "conftest.in"
4869     cp "conftest.in" "conftest.nl"
4870     $as_echo 'EGREP' >> "conftest.nl"
4871     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873     as_fn_arith $ac_count + 1 && ac_count=$as_val
4874     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4875       # Best one so far, save it but keep looking for a better one
4876       ac_cv_path_EGREP="$ac_path_EGREP"
4877       ac_path_EGREP_max=$ac_count
4878     fi
4879     # 10*(2^10) chars as input seems more than enough
4880     test $ac_count -gt 10 && break
4881   done
4882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885       $ac_path_EGREP_found && break 3
4886     done
4887   done
4888   done
4889 IFS=$as_save_IFS
4890   if test -z "$ac_cv_path_EGREP"; then
4891     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4892   fi
4893 else
4894   ac_cv_path_EGREP=$EGREP
4895 fi
4896
4897    fi
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4900 $as_echo "$ac_cv_path_EGREP" >&6; }
4901  EGREP="$ac_cv_path_EGREP"
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4905 $as_echo_n "checking for ANSI C header files... " >&6; }
4906 if test "${ac_cv_header_stdc+set}" = set; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #include <stdlib.h>
4912 #include <stdarg.h>
4913 #include <string.h>
4914 #include <float.h>
4915
4916 int
4917 main ()
4918 {
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925   ac_cv_header_stdc=yes
4926 else
4927   ac_cv_header_stdc=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930
4931 if test $ac_cv_header_stdc = yes; then
4932   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h.  */
4935 #include <string.h>
4936
4937 _ACEOF
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939   $EGREP "memchr" >/dev/null 2>&1; then :
4940
4941 else
4942   ac_cv_header_stdc=no
4943 fi
4944 rm -f conftest*
4945
4946 fi
4947
4948 if test $ac_cv_header_stdc = yes; then
4949   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952 #include <stdlib.h>
4953
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956   $EGREP "free" >/dev/null 2>&1; then :
4957
4958 else
4959   ac_cv_header_stdc=no
4960 fi
4961 rm -f conftest*
4962
4963 fi
4964
4965 if test $ac_cv_header_stdc = yes; then
4966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967   if test "$cross_compiling" = yes; then :
4968   :
4969 else
4970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h.  */
4972 #include <ctype.h>
4973 #include <stdlib.h>
4974 #if ((' ' & 0x0FF) == 0x020)
4975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4977 #else
4978 # define ISLOWER(c) \
4979                    (('a' <= (c) && (c) <= 'i') \
4980                      || ('j' <= (c) && (c) <= 'r') \
4981                      || ('s' <= (c) && (c) <= 'z'))
4982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4983 #endif
4984
4985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4986 int
4987 main ()
4988 {
4989   int i;
4990   for (i = 0; i < 256; i++)
4991     if (XOR (islower (i), ISLOWER (i))
4992         || toupper (i) != TOUPPER (i))
4993       return 2;
4994   return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_run "$LINENO"; then :
4998
4999 else
5000   ac_cv_header_stdc=no
5001 fi
5002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5003   conftest.$ac_objext conftest.beam conftest.$ac_ext
5004 fi
5005
5006 fi
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5009 $as_echo "$ac_cv_header_stdc" >&6; }
5010 if test $ac_cv_header_stdc = yes; then
5011
5012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5013
5014 fi
5015
5016 case `pwd` in
5017   *\ * | *\     *)
5018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5019 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5020 esac
5021
5022
5023
5024 macro_version='2.2.6b'
5025 macro_revision='1.3017'
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 ltmain="$ac_aux_dir/ltmain.sh"
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5043 if test "${ac_cv_path_SED+set}" = set; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5047      for ac_i in 1 2 3 4 5 6 7; do
5048        ac_script="$ac_script$as_nl$ac_script"
5049      done
5050      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5051      { ac_script=; unset ac_script;}
5052      if test -z "$SED"; then
5053   ac_path_SED_found=false
5054   # Loop through the user's path and test for each of PROGNAME-LIST
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_prog in sed gsed; do
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5063       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5064 # Check for GNU ac_path_SED and select it if it is found.
5065   # Check for GNU $ac_path_SED
5066 case `"$ac_path_SED" --version 2>&1` in
5067 *GNU*)
5068   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5069 *)
5070   ac_count=0
5071   $as_echo_n 0123456789 >"conftest.in"
5072   while :
5073   do
5074     cat "conftest.in" "conftest.in" >"conftest.tmp"
5075     mv "conftest.tmp" "conftest.in"
5076     cp "conftest.in" "conftest.nl"
5077     $as_echo '' >> "conftest.nl"
5078     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080     as_fn_arith $ac_count + 1 && ac_count=$as_val
5081     if test $ac_count -gt ${ac_path_SED_max-0}; then
5082       # Best one so far, save it but keep looking for a better one
5083       ac_cv_path_SED="$ac_path_SED"
5084       ac_path_SED_max=$ac_count
5085     fi
5086     # 10*(2^10) chars as input seems more than enough
5087     test $ac_count -gt 10 && break
5088   done
5089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5091
5092       $ac_path_SED_found && break 3
5093     done
5094   done
5095   done
5096 IFS=$as_save_IFS
5097   if test -z "$ac_cv_path_SED"; then
5098     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5099   fi
5100 else
5101   ac_cv_path_SED=$SED
5102 fi
5103
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5106 $as_echo "$ac_cv_path_SED" >&6; }
5107  SED="$ac_cv_path_SED"
5108   rm -f conftest.sed
5109
5110 test -z "$SED" && SED=sed
5111 Xsed="$SED -e 1s/^X//"
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5124 $as_echo_n "checking for fgrep... " >&6; }
5125 if test "${ac_cv_path_FGREP+set}" = set; then :
5126   $as_echo_n "(cached) " >&6
5127 else
5128   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5129    then ac_cv_path_FGREP="$GREP -F"
5130    else
5131      if test -z "$FGREP"; then
5132   ac_path_FGREP_found=false
5133   # Loop through the user's path and test for each of PROGNAME-LIST
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_prog in fgrep; do
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5142       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5143 # Check for GNU ac_path_FGREP and select it if it is found.
5144   # Check for GNU $ac_path_FGREP
5145 case `"$ac_path_FGREP" --version 2>&1` in
5146 *GNU*)
5147   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5148 *)
5149   ac_count=0
5150   $as_echo_n 0123456789 >"conftest.in"
5151   while :
5152   do
5153     cat "conftest.in" "conftest.in" >"conftest.tmp"
5154     mv "conftest.tmp" "conftest.in"
5155     cp "conftest.in" "conftest.nl"
5156     $as_echo 'FGREP' >> "conftest.nl"
5157     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5158     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5159     as_fn_arith $ac_count + 1 && ac_count=$as_val
5160     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5161       # Best one so far, save it but keep looking for a better one
5162       ac_cv_path_FGREP="$ac_path_FGREP"
5163       ac_path_FGREP_max=$ac_count
5164     fi
5165     # 10*(2^10) chars as input seems more than enough
5166     test $ac_count -gt 10 && break
5167   done
5168   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5169 esac
5170
5171       $ac_path_FGREP_found && break 3
5172     done
5173   done
5174   done
5175 IFS=$as_save_IFS
5176   if test -z "$ac_cv_path_FGREP"; then
5177     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5178   fi
5179 else
5180   ac_cv_path_FGREP=$FGREP
5181 fi
5182
5183    fi
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5186 $as_echo "$ac_cv_path_FGREP" >&6; }
5187  FGREP="$ac_cv_path_FGREP"
5188
5189
5190 test -z "$GREP" && GREP=grep
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210 # Check whether --with-gnu-ld was given.
5211 if test "${with_gnu_ld+set}" = set; then :
5212   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5213 else
5214   with_gnu_ld=no
5215 fi
5216
5217 ac_prog=ld
5218 if test "$GCC" = yes; then
5219   # Check if gcc -print-prog-name=ld gives a path.
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5221 $as_echo_n "checking for ld used by $CC... " >&6; }
5222   case $host in
5223   *-*-mingw*)
5224     # gcc leaves a trailing carriage return which upsets mingw
5225     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5226   *)
5227     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5228   esac
5229   case $ac_prog in
5230     # Accept absolute paths.
5231     [\\/]* | ?:[\\/]*)
5232       re_direlt='/[^/][^/]*/\.\./'
5233       # Canonicalize the pathname of ld
5234       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5235       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5236         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5237       done
5238       test -z "$LD" && LD="$ac_prog"
5239       ;;
5240   "")
5241     # If it fails, then pretend we aren't using GCC.
5242     ac_prog=ld
5243     ;;
5244   *)
5245     # If it is relative, then search for the first ld in PATH.
5246     with_gnu_ld=unknown
5247     ;;
5248   esac
5249 elif test "$with_gnu_ld" = yes; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5251 $as_echo_n "checking for GNU ld... " >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5254 $as_echo_n "checking for non-GNU ld... " >&6; }
5255 fi
5256 if test "${lt_cv_path_LD+set}" = set; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -z "$LD"; then
5260   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5261   for ac_dir in $PATH; do
5262     IFS="$lt_save_ifs"
5263     test -z "$ac_dir" && ac_dir=.
5264     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5265       lt_cv_path_LD="$ac_dir/$ac_prog"
5266       # Check to see if the program is GNU ld.  I'd rather use --version,
5267       # but apparently some variants of GNU ld only accept -v.
5268       # Break only if it was the GNU/non-GNU ld that we prefer.
5269       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5270       *GNU* | *'with BFD'*)
5271         test "$with_gnu_ld" != no && break
5272         ;;
5273       *)
5274         test "$with_gnu_ld" != yes && break
5275         ;;
5276       esac
5277     fi
5278   done
5279   IFS="$lt_save_ifs"
5280 else
5281   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5282 fi
5283 fi
5284
5285 LD="$lt_cv_path_LD"
5286 if test -n "$LD"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5288 $as_echo "$LD" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5295 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5296 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5300 case `$LD -v 2>&1 </dev/null` in
5301 *GNU* | *'with BFD'*)
5302   lt_cv_prog_gnu_ld=yes
5303   ;;
5304 *)
5305   lt_cv_prog_gnu_ld=no
5306   ;;
5307 esac
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5310 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5311 with_gnu_ld=$lt_cv_prog_gnu_ld
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5322 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5323 if test "${lt_cv_path_NM+set}" = set; then :
5324   $as_echo_n "(cached) " >&6
5325 else
5326   if test -n "$NM"; then
5327   # Let the user override the test.
5328   lt_cv_path_NM="$NM"
5329 else
5330   lt_nm_to_check="${ac_tool_prefix}nm"
5331   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5332     lt_nm_to_check="$lt_nm_to_check nm"
5333   fi
5334   for lt_tmp_nm in $lt_nm_to_check; do
5335     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5337       IFS="$lt_save_ifs"
5338       test -z "$ac_dir" && ac_dir=.
5339       tmp_nm="$ac_dir/$lt_tmp_nm"
5340       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341         # Check to see if the nm accepts a BSD-compat flag.
5342         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343         #   nm: unknown option "B" ignored
5344         # Tru64's nm complains that /dev/null is an invalid object file
5345         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346         */dev/null* | *'Invalid file or object type'*)
5347           lt_cv_path_NM="$tmp_nm -B"
5348           break
5349           ;;
5350         *)
5351           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5352           */dev/null*)
5353             lt_cv_path_NM="$tmp_nm -p"
5354             break
5355             ;;
5356           *)
5357             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358             continue # so that we can try to find one that supports BSD flags
5359             ;;
5360           esac
5361           ;;
5362         esac
5363       fi
5364     done
5365     IFS="$lt_save_ifs"
5366   done
5367   : ${lt_cv_path_NM=no}
5368 fi
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5371 $as_echo "$lt_cv_path_NM" >&6; }
5372 if test "$lt_cv_path_NM" != "no"; then
5373   NM="$lt_cv_path_NM"
5374 else
5375   # Didn't find any BSD compatible name lister, look for dumpbin.
5376   if test -n "$ac_tool_prefix"; then
5377   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5378   do
5379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$DUMPBIN"; then
5387   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 DUMPBIN=$ac_cv_prog_DUMPBIN
5407 if test -n "$DUMPBIN"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5409 $as_echo "$DUMPBIN" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416     test -n "$DUMPBIN" && break
5417   done
5418 fi
5419 if test -z "$DUMPBIN"; then
5420   ac_ct_DUMPBIN=$DUMPBIN
5421   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5422 do
5423   # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test -n "$ac_ct_DUMPBIN"; then
5431   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5451 if test -n "$ac_ct_DUMPBIN"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5453 $as_echo "$ac_ct_DUMPBIN" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459
5460   test -n "$ac_ct_DUMPBIN" && break
5461 done
5462
5463   if test "x$ac_ct_DUMPBIN" = x; then
5464     DUMPBIN=":"
5465   else
5466     case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472     DUMPBIN=$ac_ct_DUMPBIN
5473   fi
5474 fi
5475
5476
5477   if test "$DUMPBIN" != ":"; then
5478     NM="$DUMPBIN"
5479   fi
5480 fi
5481 test -z "$NM" && NM=nm
5482
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5489 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5490 if test "${lt_cv_nm_interface+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   lt_cv_nm_interface="BSD nm"
5494   echo "int some_variable = 0;" > conftest.$ac_ext
5495   (eval echo "\"\$as_me:5495: $ac_compile\"" >&5)
5496   (eval "$ac_compile" 2>conftest.err)
5497   cat conftest.err >&5
5498   (eval echo "\"\$as_me:5498: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5499   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5500   cat conftest.err >&5
5501   (eval echo "\"\$as_me:5501: output\"" >&5)
5502   cat conftest.out >&5
5503   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5504     lt_cv_nm_interface="MS dumpbin"
5505   fi
5506   rm -f conftest*
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5509 $as_echo "$lt_cv_nm_interface" >&6; }
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5512 $as_echo_n "checking whether ln -s works... " >&6; }
5513 LN_S=$as_ln_s
5514 if test "$LN_S" = "ln -s"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5519 $as_echo "no, using $LN_S" >&6; }
5520 fi
5521
5522 # find the maximum length of command line arguments
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5524 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5525 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528     i=0
5529   teststring="ABCD"
5530
5531   case $build_os in
5532   msdosdjgpp*)
5533     # On DJGPP, this test can blow up pretty badly due to problems in libc
5534     # (any single argument exceeding 2000 bytes causes a buffer overrun
5535     # during glob expansion).  Even if it were fixed, the result of this
5536     # check would be larger than it should be.
5537     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5538     ;;
5539
5540   gnu*)
5541     # Under GNU Hurd, this test is not required because there is
5542     # no limit to the length of command line arguments.
5543     # Libtool will interpret -1 as no limit whatsoever
5544     lt_cv_sys_max_cmd_len=-1;
5545     ;;
5546
5547   cygwin* | mingw* | cegcc*)
5548     # On Win9x/ME, this test blows up -- it succeeds, but takes
5549     # about 5 minutes as the teststring grows exponentially.
5550     # Worse, since 9x/ME are not pre-emptively multitasking,
5551     # you end up with a "frozen" computer, even though with patience
5552     # the test eventually succeeds (with a max line length of 256k).
5553     # Instead, let's just punt: use the minimum linelength reported by
5554     # all of the supported platforms: 8192 (on NT/2K/XP).
5555     lt_cv_sys_max_cmd_len=8192;
5556     ;;
5557
5558   amigaos*)
5559     # On AmigaOS with pdksh, this test takes hours, literally.
5560     # So we just punt and use a minimum line length of 8192.
5561     lt_cv_sys_max_cmd_len=8192;
5562     ;;
5563
5564   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5565     # This has been around since 386BSD, at least.  Likely further.
5566     if test -x /sbin/sysctl; then
5567       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5568     elif test -x /usr/sbin/sysctl; then
5569       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5570     else
5571       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5572     fi
5573     # And add a safety zone
5574     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5576     ;;
5577
5578   interix*)
5579     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5580     lt_cv_sys_max_cmd_len=196608
5581     ;;
5582
5583   osf*)
5584     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5585     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5586     # nice to cause kernel panics so lets avoid the loop below.
5587     # First set a reasonable default.
5588     lt_cv_sys_max_cmd_len=16384
5589     #
5590     if test -x /sbin/sysconfig; then
5591       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5592         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5593       esac
5594     fi
5595     ;;
5596   sco3.2v5*)
5597     lt_cv_sys_max_cmd_len=102400
5598     ;;
5599   sysv5* | sco5v6* | sysv4.2uw2*)
5600     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5601     if test -n "$kargmax"; then
5602       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5603     else
5604       lt_cv_sys_max_cmd_len=32768
5605     fi
5606     ;;
5607   *)
5608     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5609     if test -n "$lt_cv_sys_max_cmd_len"; then
5610       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5611       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5612     else
5613       # Make teststring a little bigger before we do anything with it.
5614       # a 1K string should be a reasonable start.
5615       for i in 1 2 3 4 5 6 7 8 ; do
5616         teststring=$teststring$teststring
5617       done
5618       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5619       # If test is not a shell built-in, we'll probably end up computing a
5620       # maximum length that is only half of the actual maximum length, but
5621       # we can't tell.
5622       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5623                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5624               test $i != 17 # 1/2 MB should be enough
5625       do
5626         i=`expr $i + 1`
5627         teststring=$teststring$teststring
5628       done
5629       # Only check the string length outside the loop.
5630       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5631       teststring=
5632       # Add a significant safety factor because C++ compilers can tack on
5633       # massive amounts of additional arguments before passing them to the
5634       # linker.  It appears as though 1/2 is a usable value.
5635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5636     fi
5637     ;;
5638   esac
5639
5640 fi
5641
5642 if test -n $lt_cv_sys_max_cmd_len ; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5644 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5647 $as_echo "none" >&6; }
5648 fi
5649 max_cmd_len=$lt_cv_sys_max_cmd_len
5650
5651
5652
5653
5654
5655
5656 : ${CP="cp -f"}
5657 : ${MV="mv -f"}
5658 : ${RM="rm -f"}
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5661 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5662 # Try some XSI features
5663 xsi_shell=no
5664 ( _lt_dummy="a/b/c"
5665   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5666       = c,a/b,, \
5667     && eval 'test $(( 1 + 1 )) -eq 2 \
5668     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5669   && xsi_shell=yes
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5671 $as_echo "$xsi_shell" >&6; }
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5675 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5676 lt_shell_append=no
5677 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5678     >/dev/null 2>&1 \
5679   && lt_shell_append=yes
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5681 $as_echo "$lt_shell_append" >&6; }
5682
5683
5684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5685   lt_unset=unset
5686 else
5687   lt_unset=false
5688 fi
5689
5690
5691
5692
5693
5694 # test EBCDIC or ASCII
5695 case `echo X|tr X '\101'` in
5696  A) # ASCII based system
5697     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5698   lt_SP2NL='tr \040 \012'
5699   lt_NL2SP='tr \015\012 \040\040'
5700   ;;
5701  *) # EBCDIC based system
5702   lt_SP2NL='tr \100 \n'
5703   lt_NL2SP='tr \r\n \100\100'
5704   ;;
5705 esac
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5716 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5717 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   lt_cv_ld_reload_flag='-r'
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5723 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5724 reload_flag=$lt_cv_ld_reload_flag
5725 case $reload_flag in
5726 "" | " "*) ;;
5727 *) reload_flag=" $reload_flag" ;;
5728 esac
5729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5730 case $host_os in
5731   darwin*)
5732     if test "$GCC" = yes; then
5733       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5734     else
5735       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5736     fi
5737     ;;
5738 esac
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 if test -n "$ac_tool_prefix"; then
5749   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5750 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if test -n "$OBJDUMP"; then
5757   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 OBJDUMP=$ac_cv_prog_OBJDUMP
5777 if test -n "$OBJDUMP"; then
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779 $as_echo "$OBJDUMP" >&6; }
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785
5786 fi
5787 if test -z "$ac_cv_prog_OBJDUMP"; then
5788   ac_ct_OBJDUMP=$OBJDUMP
5789   # Extract the first word of "objdump", so it can be a program name with args.
5790 set dummy objdump; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$ac_ct_OBJDUMP"; then
5797   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5817 if test -n "$ac_ct_OBJDUMP"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5819 $as_echo "$ac_ct_OBJDUMP" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825   if test "x$ac_ct_OBJDUMP" = x; then
5826     OBJDUMP="false"
5827   else
5828     case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834     OBJDUMP=$ac_ct_OBJDUMP
5835   fi
5836 else
5837   OBJDUMP="$ac_cv_prog_OBJDUMP"
5838 fi
5839
5840 test -z "$OBJDUMP" && OBJDUMP=objdump
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5851 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5852 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   lt_cv_file_magic_cmd='$MAGIC_CMD'
5856 lt_cv_file_magic_test_file=
5857 lt_cv_deplibs_check_method='unknown'
5858 # Need to set the preceding variable on all platforms that support
5859 # interlibrary dependencies.
5860 # 'none' -- dependencies not supported.
5861 # `unknown' -- same as none, but documents that we really don't know.
5862 # 'pass_all' -- all dependencies passed with no checks.
5863 # 'test_compile' -- check by making test program.
5864 # 'file_magic [[regex]]' -- check by looking for files in library path
5865 # which responds to the $file_magic_cmd with a given extended regex.
5866 # If you have `file' or equivalent on your system and you're not sure
5867 # whether `pass_all' will *always* work, you probably want this one.
5868
5869 case $host_os in
5870 aix[4-9]*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5873
5874 beos*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5877
5878 bsdi[45]*)
5879   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880   lt_cv_file_magic_cmd='/usr/bin/file -L'
5881   lt_cv_file_magic_test_file=/shlib/libc.so
5882   ;;
5883
5884 cygwin*)
5885   # func_win32_libid is a shell function defined in ltmain.sh
5886   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887   lt_cv_file_magic_cmd='func_win32_libid'
5888   ;;
5889
5890 mingw* | pw32*)
5891   # Base MSYS/MinGW do not provide the 'file' command needed by
5892   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893   # unless we find 'file', for example because we are cross-compiling.
5894   if ( file / ) >/dev/null 2>&1; then
5895     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896     lt_cv_file_magic_cmd='func_win32_libid'
5897   else
5898     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5899     lt_cv_file_magic_cmd='$OBJDUMP -f'
5900   fi
5901   ;;
5902
5903 cegcc)
5904   # use the weaker test based on 'objdump'. See mingw*.
5905   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5906   lt_cv_file_magic_cmd='$OBJDUMP -f'
5907   ;;
5908
5909 darwin* | rhapsody*)
5910   lt_cv_deplibs_check_method=pass_all
5911   ;;
5912
5913 freebsd* | dragonfly*)
5914   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915     case $host_cpu in
5916     i*86 )
5917       # Not sure whether the presence of OpenBSD here was a mistake.
5918       # Let's accept both of them until this is cleared up.
5919       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5920       lt_cv_file_magic_cmd=/usr/bin/file
5921       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5922       ;;
5923     esac
5924   else
5925     lt_cv_deplibs_check_method=pass_all
5926   fi
5927   ;;
5928
5929 gnu*)
5930   lt_cv_deplibs_check_method=pass_all
5931   ;;
5932
5933 hpux10.20* | hpux11*)
5934   lt_cv_file_magic_cmd=/usr/bin/file
5935   case $host_cpu in
5936   ia64*)
5937     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5938     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5939     ;;
5940   hppa*64*)
5941     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5942     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5943     ;;
5944   *)
5945     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5946     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5947     ;;
5948   esac
5949   ;;
5950
5951 interix[3-9]*)
5952   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5953   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5954   ;;
5955
5956 irix5* | irix6* | nonstopux*)
5957   case $LD in
5958   *-32|*"-32 ") libmagic=32-bit;;
5959   *-n32|*"-n32 ") libmagic=N32;;
5960   *-64|*"-64 ") libmagic=64-bit;;
5961   *) libmagic=never-match;;
5962   esac
5963   lt_cv_deplibs_check_method=pass_all
5964   ;;
5965
5966 # This must be Linux ELF.
5967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5968   lt_cv_deplibs_check_method=pass_all
5969   ;;
5970
5971 netbsd* | netbsdelf*-gnu)
5972   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5973     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5974   else
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5976   fi
5977   ;;
5978
5979 newos6*)
5980   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5981   lt_cv_file_magic_cmd=/usr/bin/file
5982   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5983   ;;
5984
5985 *nto* | *qnx*)
5986   lt_cv_deplibs_check_method=pass_all
5987   ;;
5988
5989 openbsd*)
5990   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5992   else
5993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5994   fi
5995   ;;
5996
5997 osf3* | osf4* | osf5*)
5998   lt_cv_deplibs_check_method=pass_all
5999   ;;
6000
6001 rdos*)
6002   lt_cv_deplibs_check_method=pass_all
6003   ;;
6004
6005 solaris*)
6006   lt_cv_deplibs_check_method=pass_all
6007   ;;
6008
6009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6010   lt_cv_deplibs_check_method=pass_all
6011   ;;
6012
6013 sysv4 | sysv4.3*)
6014   case $host_vendor in
6015   motorola)
6016     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]'
6017     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6018     ;;
6019   ncr)
6020     lt_cv_deplibs_check_method=pass_all
6021     ;;
6022   sequent)
6023     lt_cv_file_magic_cmd='/bin/file'
6024     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6025     ;;
6026   sni)
6027     lt_cv_file_magic_cmd='/bin/file'
6028     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6029     lt_cv_file_magic_test_file=/lib/libc.so
6030     ;;
6031   siemens)
6032     lt_cv_deplibs_check_method=pass_all
6033     ;;
6034   pc)
6035     lt_cv_deplibs_check_method=pass_all
6036     ;;
6037   esac
6038   ;;
6039
6040 tpf*)
6041   lt_cv_deplibs_check_method=pass_all
6042   ;;
6043 esac
6044
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6047 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6048 file_magic_cmd=$lt_cv_file_magic_cmd
6049 deplibs_check_method=$lt_cv_deplibs_check_method
6050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}ar; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_AR+set}" = set; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$AR"; then
6072   ac_cv_prog_AR="$AR" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_prog_AR="${ac_tool_prefix}ar"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 AR=$ac_cv_prog_AR
6092 if test -n "$AR"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6094 $as_echo "$AR" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101 fi
6102 if test -z "$ac_cv_prog_AR"; then
6103   ac_ct_AR=$AR
6104   # Extract the first word of "ar", so it can be a program name with args.
6105 set dummy ar; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$ac_ct_AR"; then
6112   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_ac_ct_AR="ar"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6132 if test -n "$ac_ct_AR"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6134 $as_echo "$ac_ct_AR" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140   if test "x$ac_ct_AR" = x; then
6141     AR="false"
6142   else
6143     case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149     AR=$ac_ct_AR
6150   fi
6151 else
6152   AR="$ac_cv_prog_AR"
6153 fi
6154
6155 test -z "$AR" && AR=ar
6156 test -z "$AR_FLAGS" && AR_FLAGS=cru
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}strip; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_STRIP+set}" = set; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if test -n "$STRIP"; then
6177   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6199 $as_echo "$STRIP" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_STRIP"; then
6208   ac_ct_STRIP=$STRIP
6209   # Extract the first word of "strip", so it can be a program name with args.
6210 set dummy strip; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -n "$ac_ct_STRIP"; then
6217   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_STRIP="strip"
6227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6237 if test -n "$ac_ct_STRIP"; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6239 $as_echo "$ac_ct_STRIP" >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245   if test "x$ac_ct_STRIP" = x; then
6246     STRIP=":"
6247   else
6248     case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254     STRIP=$ac_ct_STRIP
6255   fi
6256 else
6257   STRIP="$ac_cv_prog_STRIP"
6258 fi
6259
6260 test -z "$STRIP" && STRIP=:
6261
6262
6263
6264
6265
6266
6267 if test -n "$ac_tool_prefix"; then
6268   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   if test -n "$RANLIB"; then
6276   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283     for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290   done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 RANLIB=$ac_cv_prog_RANLIB
6296 if test -n "$RANLIB"; then
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6298 $as_echo "$RANLIB" >&6; }
6299 else
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303
6304
6305 fi
6306 if test -z "$ac_cv_prog_RANLIB"; then
6307   ac_ct_RANLIB=$RANLIB
6308   # Extract the first word of "ranlib", so it can be a program name with args.
6309 set dummy ranlib; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$ac_ct_RANLIB"; then
6316   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_prog_ac_ct_RANLIB="ranlib"
6326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330   done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6336 if test -n "$ac_ct_RANLIB"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6338 $as_echo "$ac_ct_RANLIB" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344   if test "x$ac_ct_RANLIB" = x; then
6345     RANLIB=":"
6346   else
6347     case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353     RANLIB=$ac_ct_RANLIB
6354   fi
6355 else
6356   RANLIB="$ac_cv_prog_RANLIB"
6357 fi
6358
6359 test -z "$RANLIB" && RANLIB=:
6360
6361
6362
6363
6364
6365
6366 # Determine commands to create old-style static archives.
6367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6368 old_postinstall_cmds='chmod 644 $oldlib'
6369 old_postuninstall_cmds=
6370
6371 if test -n "$RANLIB"; then
6372   case $host_os in
6373   openbsd*)
6374     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6375     ;;
6376   *)
6377     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6378     ;;
6379   esac
6380   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6381 fi
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 # If no C compiler was specified, use CC.
6417 LTCC=${LTCC-"$CC"}
6418
6419 # If no C compiler flags were specified, use CFLAGS.
6420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6421
6422 # Allow CC to be a program name with arguments.
6423 compiler=$CC
6424
6425
6426 # Check for command to grab the raw symbol name followed by C symbol from nm.
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6428 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6429 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432
6433 # These are sane defaults that work on at least a few old systems.
6434 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6435
6436 # Character class describing NM global symbol codes.
6437 symcode='[BCDEGRST]'
6438
6439 # Regexp to match symbols that can be accessed directly from C.
6440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6441
6442 # Define system-specific variables.
6443 case $host_os in
6444 aix*)
6445   symcode='[BCDT]'
6446   ;;
6447 cygwin* | mingw* | pw32* | cegcc*)
6448   symcode='[ABCDGISTW]'
6449   ;;
6450 hpux*)
6451   if test "$host_cpu" = ia64; then
6452     symcode='[ABCDEGRST]'
6453   fi
6454   ;;
6455 irix* | nonstopux*)
6456   symcode='[BCDEGRST]'
6457   ;;
6458 osf*)
6459   symcode='[BCDEGQRST]'
6460   ;;
6461 solaris*)
6462   symcode='[BDRT]'
6463   ;;
6464 sco3.2v5*)
6465   symcode='[DT]'
6466   ;;
6467 sysv4.2uw2*)
6468   symcode='[DT]'
6469   ;;
6470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6471   symcode='[ABDT]'
6472   ;;
6473 sysv4)
6474   symcode='[DFNSTU]'
6475   ;;
6476 esac
6477
6478 # If we're using GNU nm, then use its standard symbol codes.
6479 case `$NM -V 2>&1` in
6480 *GNU* | *'with BFD'*)
6481   symcode='[ABCDGIRSTW]' ;;
6482 esac
6483
6484 # Transform an extracted symbol line into a proper C declaration.
6485 # Some systems (esp. on ia64) link data and code symbols differently,
6486 # so use this general approach.
6487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6488
6489 # Transform an extracted symbol line into symbol name and symbol address
6490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6491 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'"
6492
6493 # Handle CRLF in mingw tool chain
6494 opt_cr=
6495 case $build_os in
6496 mingw*)
6497   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6498   ;;
6499 esac
6500
6501 # Try without a prefix underscore, then with it.
6502 for ac_symprfx in "" "_"; do
6503
6504   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6505   symxfrm="\\1 $ac_symprfx\\2 \\2"
6506
6507   # Write the raw and C identifiers.
6508   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6509     # Fake it for dumpbin and say T for any non-static function
6510     # and D for any global variable.
6511     # Also find C++ and __fastcall symbols from MSVC++,
6512     # which start with @ or ?.
6513     lt_cv_sys_global_symbol_pipe="$AWK '"\
6514 "     {last_section=section; section=\$ 3};"\
6515 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6516 "     \$ 0!~/External *\|/{next};"\
6517 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6518 "     {if(hide[section]) next};"\
6519 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6520 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6521 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6522 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6523 "     ' prfx=^$ac_symprfx"
6524   else
6525     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6526   fi
6527
6528   # Check to see that the pipe works correctly.
6529   pipe_works=no
6530
6531   rm -f conftest*
6532   cat > conftest.$ac_ext <<_LT_EOF
6533 #ifdef __cplusplus
6534 extern "C" {
6535 #endif
6536 char nm_test_var;
6537 void nm_test_func(void);
6538 void nm_test_func(void){}
6539 #ifdef __cplusplus
6540 }
6541 #endif
6542 int main(){nm_test_var='a';nm_test_func();return(0);}
6543 _LT_EOF
6544
6545   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6546   (eval $ac_compile) 2>&5
6547   ac_status=$?
6548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6549   test $ac_status = 0; }; then
6550     # Now try to grab the symbols.
6551     nlist=conftest.nm
6552     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6553   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6554   ac_status=$?
6555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6556   test $ac_status = 0; } && test -s "$nlist"; then
6557       # Try sorting and uniquifying the output.
6558       if sort "$nlist" | uniq > "$nlist"T; then
6559         mv -f "$nlist"T "$nlist"
6560       else
6561         rm -f "$nlist"T
6562       fi
6563
6564       # Make sure that we snagged all the symbols we need.
6565       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6566         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6567           cat <<_LT_EOF > conftest.$ac_ext
6568 #ifdef __cplusplus
6569 extern "C" {
6570 #endif
6571
6572 _LT_EOF
6573           # Now generate the symbol file.
6574           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6575
6576           cat <<_LT_EOF >> conftest.$ac_ext
6577
6578 /* The mapping between symbol names and symbols.  */
6579 const struct {
6580   const char *name;
6581   void       *address;
6582 }
6583 lt__PROGRAM__LTX_preloaded_symbols[] =
6584 {
6585   { "@PROGRAM@", (void *) 0 },
6586 _LT_EOF
6587           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6588           cat <<\_LT_EOF >> conftest.$ac_ext
6589   {0, (void *) 0}
6590 };
6591
6592 /* This works around a problem in FreeBSD linker */
6593 #ifdef FREEBSD_WORKAROUND
6594 static const void *lt_preloaded_setup() {
6595   return lt__PROGRAM__LTX_preloaded_symbols;
6596 }
6597 #endif
6598
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 _LT_EOF
6603           # Now try linking the two files.
6604           mv conftest.$ac_objext conftstm.$ac_objext
6605           lt_save_LIBS="$LIBS"
6606           lt_save_CFLAGS="$CFLAGS"
6607           LIBS="conftstm.$ac_objext"
6608           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6610   (eval $ac_link) 2>&5
6611   ac_status=$?
6612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6614             pipe_works=yes
6615           fi
6616           LIBS="$lt_save_LIBS"
6617           CFLAGS="$lt_save_CFLAGS"
6618         else
6619           echo "cannot find nm_test_func in $nlist" >&5
6620         fi
6621       else
6622         echo "cannot find nm_test_var in $nlist" >&5
6623       fi
6624     else
6625       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626     fi
6627   else
6628     echo "$progname: failed program was:" >&5
6629     cat conftest.$ac_ext >&5
6630   fi
6631   rm -rf conftest* conftst*
6632
6633   # Do not use the global_symbol_pipe unless it works.
6634   if test "$pipe_works" = yes; then
6635     break
6636   else
6637     lt_cv_sys_global_symbol_pipe=
6638   fi
6639 done
6640
6641 fi
6642
6643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644   lt_cv_sys_global_symbol_to_cdecl=
6645 fi
6646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6648 $as_echo "failed" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6651 $as_echo "ok" >&6; }
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 # Check whether --enable-libtool-lock was given.
6676 if test "${enable_libtool_lock+set}" = set; then :
6677   enableval=$enable_libtool_lock;
6678 fi
6679
6680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6681
6682 # Some flags need to be propagated to the compiler or linker for good
6683 # libtool support.
6684 case $host in
6685 ia64-*-hpux*)
6686   # Find out which ABI we are using.
6687   echo 'int i;' > conftest.$ac_ext
6688   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692   test $ac_status = 0; }; then
6693     case `/usr/bin/file conftest.$ac_objext` in
6694       *ELF-32*)
6695         HPUX_IA64_MODE="32"
6696         ;;
6697       *ELF-64*)
6698         HPUX_IA64_MODE="64"
6699         ;;
6700     esac
6701   fi
6702   rm -rf conftest*
6703   ;;
6704 *-*-irix6*)
6705   # Find out which ABI we are using.
6706   echo '#line 6706 "configure"' > conftest.$ac_ext
6707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6708   (eval $ac_compile) 2>&5
6709   ac_status=$?
6710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711   test $ac_status = 0; }; then
6712     if test "$lt_cv_prog_gnu_ld" = yes; then
6713       case `/usr/bin/file conftest.$ac_objext` in
6714         *32-bit*)
6715           LD="${LD-ld} -melf32bsmip"
6716           ;;
6717         *N32*)
6718           LD="${LD-ld} -melf32bmipn32"
6719           ;;
6720         *64-bit*)
6721           LD="${LD-ld} -melf64bmip"
6722         ;;
6723       esac
6724     else
6725       case `/usr/bin/file conftest.$ac_objext` in
6726         *32-bit*)
6727           LD="${LD-ld} -32"
6728           ;;
6729         *N32*)
6730           LD="${LD-ld} -n32"
6731           ;;
6732         *64-bit*)
6733           LD="${LD-ld} -64"
6734           ;;
6735       esac
6736     fi
6737   fi
6738   rm -rf conftest*
6739   ;;
6740
6741 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6742 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6743   # Find out which ABI we are using.
6744   echo 'int i;' > conftest.$ac_ext
6745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746   (eval $ac_compile) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }; then
6750     case `/usr/bin/file conftest.o` in
6751       *32-bit*)
6752         case $host in
6753           x86_64-*kfreebsd*-gnu)
6754             LD="${LD-ld} -m elf_i386_fbsd"
6755             ;;
6756           x86_64-*linux*)
6757             LD="${LD-ld} -m elf_i386"
6758             ;;
6759           ppc64-*linux*|powerpc64-*linux*)
6760             LD="${LD-ld} -m elf32ppclinux"
6761             ;;
6762           s390x-*linux*)
6763             LD="${LD-ld} -m elf_s390"
6764             ;;
6765           sparc64-*linux*)
6766             LD="${LD-ld} -m elf32_sparc"
6767             ;;
6768         esac
6769         ;;
6770       *64-bit*)
6771         case $host in
6772           x86_64-*kfreebsd*-gnu)
6773             LD="${LD-ld} -m elf_x86_64_fbsd"
6774             ;;
6775           x86_64-*linux*)
6776             LD="${LD-ld} -m elf_x86_64"
6777             ;;
6778           ppc*-*linux*|powerpc*-*linux*)
6779             LD="${LD-ld} -m elf64ppc"
6780             ;;
6781           s390*-*linux*|s390*-*tpf*)
6782             LD="${LD-ld} -m elf64_s390"
6783             ;;
6784           sparc*-*linux*)
6785             LD="${LD-ld} -m elf64_sparc"
6786             ;;
6787         esac
6788         ;;
6789     esac
6790   fi
6791   rm -rf conftest*
6792   ;;
6793
6794 *-*-sco3.2v5*)
6795   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6796   SAVE_CFLAGS="$CFLAGS"
6797   CFLAGS="$CFLAGS -belf"
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6799 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6800 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808
6809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h.  */
6811
6812 int
6813 main ()
6814 {
6815
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 if ac_fn_c_try_link "$LINENO"; then :
6821   lt_cv_cc_needs_belf=yes
6822 else
6823   lt_cv_cc_needs_belf=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext \
6826     conftest$ac_exeext conftest.$ac_ext
6827      ac_ext=c
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6835 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6836   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6837     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6838     CFLAGS="$SAVE_CFLAGS"
6839   fi
6840   ;;
6841 sparc*-*solaris*)
6842   # Find out which ABI we are using.
6843   echo 'int i;' > conftest.$ac_ext
6844   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845   (eval $ac_compile) 2>&5
6846   ac_status=$?
6847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848   test $ac_status = 0; }; then
6849     case `/usr/bin/file conftest.o` in
6850     *64-bit*)
6851       case $lt_cv_prog_gnu_ld in
6852       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6853       *)
6854         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6855           LD="${LD-ld} -64"
6856         fi
6857         ;;
6858       esac
6859       ;;
6860     esac
6861   fi
6862   rm -rf conftest*
6863   ;;
6864 esac
6865
6866 need_locks="$enable_libtool_lock"
6867
6868
6869   case $host_os in
6870     rhapsody* | darwin*)
6871     if test -n "$ac_tool_prefix"; then
6872   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879   if test -n "$DSYMUTIL"; then
6880   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887     for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894   done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6900 if test -n "$DSYMUTIL"; then
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6902 $as_echo "$DSYMUTIL" >&6; }
6903 else
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_DSYMUTIL"; then
6911   ac_ct_DSYMUTIL=$DSYMUTIL
6912   # Extract the first word of "dsymutil", so it can be a program name with args.
6913 set dummy dsymutil; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   if test -n "$ac_ct_DSYMUTIL"; then
6920   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927     for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934   done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6940 if test -n "$ac_ct_DSYMUTIL"; then
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6942 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948   if test "x$ac_ct_DSYMUTIL" = x; then
6949     DSYMUTIL=":"
6950   else
6951     case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957     DSYMUTIL=$ac_ct_DSYMUTIL
6958   fi
6959 else
6960   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6961 fi
6962
6963     if test -n "$ac_tool_prefix"; then
6964   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   if test -n "$NMEDIT"; then
6972   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979     for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986   done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 NMEDIT=$ac_cv_prog_NMEDIT
6992 if test -n "$NMEDIT"; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6994 $as_echo "$NMEDIT" >&6; }
6995 else
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_NMEDIT"; then
7003   ac_ct_NMEDIT=$NMEDIT
7004   # Extract the first word of "nmedit", so it can be a program name with args.
7005 set dummy nmedit; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$ac_ct_NMEDIT"; then
7012   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7032 if test -n "$ac_ct_NMEDIT"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7034 $as_echo "$ac_ct_NMEDIT" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040   if test "x$ac_ct_NMEDIT" = x; then
7041     NMEDIT=":"
7042   else
7043     case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049     NMEDIT=$ac_ct_NMEDIT
7050   fi
7051 else
7052   NMEDIT="$ac_cv_prog_NMEDIT"
7053 fi
7054
7055     if test -n "$ac_tool_prefix"; then
7056   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_LIPO+set}" = set; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$LIPO"; then
7064   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 LIPO=$ac_cv_prog_LIPO
7084 if test -n "$LIPO"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7086 $as_echo "$LIPO" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_LIPO"; then
7095   ac_ct_LIPO=$LIPO
7096   # Extract the first word of "lipo", so it can be a program name with args.
7097 set dummy lipo; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$ac_ct_LIPO"; then
7104   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_ac_ct_LIPO="lipo"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7124 if test -n "$ac_ct_LIPO"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7126 $as_echo "$ac_ct_LIPO" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132   if test "x$ac_ct_LIPO" = x; then
7133     LIPO=":"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     LIPO=$ac_ct_LIPO
7142   fi
7143 else
7144   LIPO="$ac_cv_prog_LIPO"
7145 fi
7146
7147     if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}otool; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$OTOOL"; then
7156   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 OTOOL=$ac_cv_prog_OTOOL
7176 if test -n "$OTOOL"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7178 $as_echo "$OTOOL" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_OTOOL"; then
7187   ac_ct_OTOOL=$OTOOL
7188   # Extract the first word of "otool", so it can be a program name with args.
7189 set dummy otool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$ac_ct_OTOOL"; then
7196   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_OTOOL="otool"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7216 if test -n "$ac_ct_OTOOL"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7218 $as_echo "$ac_ct_OTOOL" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_OTOOL" = x; then
7225     OTOOL=":"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     OTOOL=$ac_ct_OTOOL
7234   fi
7235 else
7236   OTOOL="$ac_cv_prog_OTOOL"
7237 fi
7238
7239     if test -n "$ac_tool_prefix"; then
7240   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$OTOOL64"; then
7248   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 OTOOL64=$ac_cv_prog_OTOOL64
7268 if test -n "$OTOOL64"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7270 $as_echo "$OTOOL64" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_OTOOL64"; then
7279   ac_ct_OTOOL64=$OTOOL64
7280   # Extract the first word of "otool64", so it can be a program name with args.
7281 set dummy otool64; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$ac_ct_OTOOL64"; then
7288   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_ac_ct_OTOOL64="otool64"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7308 if test -n "$ac_ct_OTOOL64"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7310 $as_echo "$ac_ct_OTOOL64" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316   if test "x$ac_ct_OTOOL64" = x; then
7317     OTOOL64=":"
7318   else
7319     case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325     OTOOL64=$ac_ct_OTOOL64
7326   fi
7327 else
7328   OTOOL64="$ac_cv_prog_OTOOL64"
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7358 $as_echo_n "checking for -single_module linker flag... " >&6; }
7359 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   lt_cv_apple_cc_single_mod=no
7363       if test -z "${LT_MULTI_MODULE}"; then
7364         # By default we will add the -single_module flag. You can override
7365         # by either setting the environment variable LT_MULTI_MODULE
7366         # non-empty at configure time, or by adding -multi_module to the
7367         # link flags.
7368         rm -rf libconftest.dylib*
7369         echo "int foo(void){return 1;}" > conftest.c
7370         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c" >&5
7372         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7373           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7374         _lt_result=$?
7375         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7376           lt_cv_apple_cc_single_mod=yes
7377         else
7378           cat conftest.err >&5
7379         fi
7380         rm -rf libconftest.dylib*
7381         rm -f conftest.*
7382       fi
7383 fi
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7387 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7388 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   lt_cv_ld_exported_symbols_list=no
7392       save_LDFLAGS=$LDFLAGS
7393       echo "_main" > conftest.sym
7394       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7395       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h.  */
7397
7398 int
7399 main ()
7400 {
7401
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407   lt_cv_ld_exported_symbols_list=yes
7408 else
7409   lt_cv_ld_exported_symbols_list=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412     conftest$ac_exeext conftest.$ac_ext
7413         LDFLAGS="$save_LDFLAGS"
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7417 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7418     case $host_os in
7419     rhapsody* | darwin1.[012])
7420       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7421     darwin1.*)
7422       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423     darwin*) # darwin 5.x on
7424       # if running on 10.5 or later, the deployment target defaults
7425       # to the OS version, if on x86, and 10.4, the deployment
7426       # target defaults to 10.4. Don't you love it?
7427       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430         10.[012]*)
7431           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432         10.*)
7433           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434       esac
7435     ;;
7436   esac
7437     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438       _lt_dar_single_mod='$single_module'
7439     fi
7440     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7442     else
7443       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7444     fi
7445     if test "$DSYMUTIL" != ":"; then
7446       _lt_dsymutil='~$DSYMUTIL $lib || :'
7447     else
7448       _lt_dsymutil=
7449     fi
7450     ;;
7451   esac
7452
7453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7455                   inttypes.h stdint.h unistd.h
7456 do :
7457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7459 "
7460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7461   cat >>confdefs.h <<_ACEOF
7462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463 _ACEOF
7464
7465 fi
7466
7467 done
7468
7469
7470 for ac_header in dlfcn.h
7471 do :
7472   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7473 "
7474 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7475   cat >>confdefs.h <<_ACEOF
7476 #define HAVE_DLFCN_H 1
7477 _ACEOF
7478
7479 fi
7480
7481 done
7482
7483
7484
7485 # Set options
7486
7487
7488
7489         enable_dlopen=no
7490
7491
7492   enable_win32_dll=no
7493
7494
7495             # Check whether --enable-shared was given.
7496 if test "${enable_shared+set}" = set; then :
7497   enableval=$enable_shared; p=${PACKAGE-default}
7498     case $enableval in
7499     yes) enable_shared=yes ;;
7500     no) enable_shared=no ;;
7501     *)
7502       enable_shared=no
7503       # Look at the argument we got.  We use all the common list separators.
7504       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7505       for pkg in $enableval; do
7506         IFS="$lt_save_ifs"
7507         if test "X$pkg" = "X$p"; then
7508           enable_shared=yes
7509         fi
7510       done
7511       IFS="$lt_save_ifs"
7512       ;;
7513     esac
7514 else
7515   enable_shared=yes
7516 fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526   # Check whether --enable-static was given.
7527 if test "${enable_static+set}" = set; then :
7528   enableval=$enable_static; p=${PACKAGE-default}
7529     case $enableval in
7530     yes) enable_static=yes ;;
7531     no) enable_static=no ;;
7532     *)
7533      enable_static=no
7534       # Look at the argument we got.  We use all the common list separators.
7535       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7536       for pkg in $enableval; do
7537         IFS="$lt_save_ifs"
7538         if test "X$pkg" = "X$p"; then
7539           enable_static=yes
7540         fi
7541       done
7542       IFS="$lt_save_ifs"
7543       ;;
7544     esac
7545 else
7546   enable_static=yes
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558 # Check whether --with-pic was given.
7559 if test "${with_pic+set}" = set; then :
7560   withval=$with_pic; pic_mode="$withval"
7561 else
7562   pic_mode=default
7563 fi
7564
7565
7566 test -z "$pic_mode" && pic_mode=default
7567
7568
7569
7570
7571
7572
7573
7574   # Check whether --enable-fast-install was given.
7575 if test "${enable_fast_install+set}" = set; then :
7576   enableval=$enable_fast_install; p=${PACKAGE-default}
7577     case $enableval in
7578     yes) enable_fast_install=yes ;;
7579     no) enable_fast_install=no ;;
7580     *)
7581       enable_fast_install=no
7582       # Look at the argument we got.  We use all the common list separators.
7583       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7584       for pkg in $enableval; do
7585         IFS="$lt_save_ifs"
7586         if test "X$pkg" = "X$p"; then
7587           enable_fast_install=yes
7588         fi
7589       done
7590       IFS="$lt_save_ifs"
7591       ;;
7592     esac
7593 else
7594   enable_fast_install=yes
7595 fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 # This can be used to rebuild libtool when needed
7608 LIBTOOL_DEPS="$ltmain"
7609
7610 # Always use our own libtool.
7611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637 test -z "$LN_S" && LN_S="ln -s"
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 if test -n "${ZSH_VERSION+set}" ; then
7653    setopt NO_GLOB_SUBST
7654 fi
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7657 $as_echo_n "checking for objdir... " >&6; }
7658 if test "${lt_cv_objdir+set}" = set; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   rm -f .libs 2>/dev/null
7662 mkdir .libs 2>/dev/null
7663 if test -d .libs; then
7664   lt_cv_objdir=.libs
7665 else
7666   # MS-DOS does not allow filenames that begin with a dot.
7667   lt_cv_objdir=_libs
7668 fi
7669 rmdir .libs 2>/dev/null
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7672 $as_echo "$lt_cv_objdir" >&6; }
7673 objdir=$lt_cv_objdir
7674
7675
7676
7677
7678
7679 cat >>confdefs.h <<_ACEOF
7680 #define LT_OBJDIR "$lt_cv_objdir/"
7681 _ACEOF
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 case $host_os in
7700 aix3*)
7701   # AIX sometimes has problems with the GCC collect2 program.  For some
7702   # reason, if we set the COLLECT_NAMES environment variable, the problems
7703   # vanish in a puff of smoke.
7704   if test "X${COLLECT_NAMES+set}" != Xset; then
7705     COLLECT_NAMES=
7706     export COLLECT_NAMES
7707   fi
7708   ;;
7709 esac
7710
7711 # Sed substitution that helps us do robust quoting.  It backslashifies
7712 # metacharacters that are still active within double-quoted strings.
7713 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7714
7715 # Same as above, but do not quote variable references.
7716 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7717
7718 # Sed substitution to delay expansion of an escaped shell variable in a
7719 # double_quote_subst'ed string.
7720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7721
7722 # Sed substitution to delay expansion of an escaped single quote.
7723 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7724
7725 # Sed substitution to avoid accidental globbing in evaled expressions
7726 no_glob_subst='s/\*/\\\*/g'
7727
7728 # Global variables:
7729 ofile=libtool
7730 can_build_shared=yes
7731
7732 # All known linkers require a `.a' archive for static linking (except MSVC,
7733 # which needs '.lib').
7734 libext=a
7735
7736 with_gnu_ld="$lt_cv_prog_gnu_ld"
7737
7738 old_CC="$CC"
7739 old_CFLAGS="$CFLAGS"
7740
7741 # Set sane defaults for various variables
7742 test -z "$CC" && CC=cc
7743 test -z "$LTCC" && LTCC=$CC
7744 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7745 test -z "$LD" && LD=ld
7746 test -z "$ac_objext" && ac_objext=o
7747
7748 for cc_temp in $compiler""; do
7749   case $cc_temp in
7750     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7751     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7752     \-*) ;;
7753     *) break;;
7754   esac
7755 done
7756 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7757
7758
7759 # Only perform the check for file, if the check method requires it
7760 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7761 case $deplibs_check_method in
7762 file_magic*)
7763   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7765 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   case $MAGIC_CMD in
7770 [\\/*] |  ?:[\\/]*)
7771   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7772   ;;
7773 *)
7774   lt_save_MAGIC_CMD="$MAGIC_CMD"
7775   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7776   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7777   for ac_dir in $ac_dummy; do
7778     IFS="$lt_save_ifs"
7779     test -z "$ac_dir" && ac_dir=.
7780     if test -f $ac_dir/${ac_tool_prefix}file; then
7781       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7782       if test -n "$file_magic_test_file"; then
7783         case $deplibs_check_method in
7784         "file_magic "*)
7785           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7786           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7787           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7788             $EGREP "$file_magic_regex" > /dev/null; then
7789             :
7790           else
7791             cat <<_LT_EOF 1>&2
7792
7793 *** Warning: the command libtool uses to detect shared libraries,
7794 *** $file_magic_cmd, produces output that libtool cannot recognize.
7795 *** The result is that libtool may fail to recognize shared libraries
7796 *** as such.  This will affect the creation of libtool libraries that
7797 *** depend on shared libraries, but programs linked with such libtool
7798 *** libraries will work regardless of this problem.  Nevertheless, you
7799 *** may want to report the problem to your system manager and/or to
7800 *** bug-libtool@gnu.org
7801
7802 _LT_EOF
7803           fi ;;
7804         esac
7805       fi
7806       break
7807     fi
7808   done
7809   IFS="$lt_save_ifs"
7810   MAGIC_CMD="$lt_save_MAGIC_CMD"
7811   ;;
7812 esac
7813 fi
7814
7815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7816 if test -n "$MAGIC_CMD"; then
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7818 $as_echo "$MAGIC_CMD" >&6; }
7819 else
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825
7826
7827
7828 if test -z "$lt_cv_path_MAGIC_CMD"; then
7829   if test -n "$ac_tool_prefix"; then
7830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7831 $as_echo_n "checking for file... " >&6; }
7832 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   case $MAGIC_CMD in
7836 [\\/*] |  ?:[\\/]*)
7837   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7838   ;;
7839 *)
7840   lt_save_MAGIC_CMD="$MAGIC_CMD"
7841   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7842   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7843   for ac_dir in $ac_dummy; do
7844     IFS="$lt_save_ifs"
7845     test -z "$ac_dir" && ac_dir=.
7846     if test -f $ac_dir/file; then
7847       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7848       if test -n "$file_magic_test_file"; then
7849         case $deplibs_check_method in
7850         "file_magic "*)
7851           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7852           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7853           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7854             $EGREP "$file_magic_regex" > /dev/null; then
7855             :
7856           else
7857             cat <<_LT_EOF 1>&2
7858
7859 *** Warning: the command libtool uses to detect shared libraries,
7860 *** $file_magic_cmd, produces output that libtool cannot recognize.
7861 *** The result is that libtool may fail to recognize shared libraries
7862 *** as such.  This will affect the creation of libtool libraries that
7863 *** depend on shared libraries, but programs linked with such libtool
7864 *** libraries will work regardless of this problem.  Nevertheless, you
7865 *** may want to report the problem to your system manager and/or to
7866 *** bug-libtool@gnu.org
7867
7868 _LT_EOF
7869           fi ;;
7870         esac
7871       fi
7872       break
7873     fi
7874   done
7875   IFS="$lt_save_ifs"
7876   MAGIC_CMD="$lt_save_MAGIC_CMD"
7877   ;;
7878 esac
7879 fi
7880
7881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882 if test -n "$MAGIC_CMD"; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7884 $as_echo "$MAGIC_CMD" >&6; }
7885 else
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890
7891   else
7892     MAGIC_CMD=:
7893   fi
7894 fi
7895
7896   fi
7897   ;;
7898 esac
7899
7900 # Use C for the default configuration in the libtool script
7901
7902 lt_save_CC="$CC"
7903 ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908
7909
7910 # Source file extension for C test sources.
7911 ac_ext=c
7912
7913 # Object file extension for compiled C test sources.
7914 objext=o
7915 objext=$objext
7916
7917 # Code to be used in simple compile tests
7918 lt_simple_compile_test_code="int some_variable = 0;"
7919
7920 # Code to be used in simple link tests
7921 lt_simple_link_test_code='int main(){return(0);}'
7922
7923
7924
7925
7926
7927
7928
7929 # If no C compiler was specified, use CC.
7930 LTCC=${LTCC-"$CC"}
7931
7932 # If no C compiler flags were specified, use CFLAGS.
7933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7934
7935 # Allow CC to be a program name with arguments.
7936 compiler=$CC
7937
7938 # Save the default compiler, since it gets overwritten when the other
7939 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7940 compiler_DEFAULT=$CC
7941
7942 # save warnings/boilerplate of simple test code
7943 ac_outfile=conftest.$ac_objext
7944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7946 _lt_compiler_boilerplate=`cat conftest.err`
7947 $RM conftest*
7948
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_linker_boilerplate=`cat conftest.err`
7953 $RM -r conftest*
7954
7955
7956 ## CAVEAT EMPTOR:
7957 ## There is no encapsulation within the following macros, do not change
7958 ## the running order or otherwise move them around unless you know exactly
7959 ## what you are doing...
7960 if test -n "$compiler"; then
7961
7962 lt_prog_compiler_no_builtin_flag=
7963
7964 if test "$GCC" = yes; then
7965   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7966
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7968 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   lt_cv_prog_compiler_rtti_exceptions=no
7973    ac_outfile=conftest.$ac_objext
7974    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975    lt_compiler_flag="-fno-rtti -fno-exceptions"
7976    # Insert the option either (1) after the last *FLAGS variable, or
7977    # (2) before a word containing "conftest.", or (3) at the end.
7978    # Note that $ac_compile itself does not contain backslashes and begins
7979    # with a dollar sign (not a hyphen), so the echo should work correctly.
7980    # The option is referenced via a variable to avoid confusing sed.
7981    lt_compile=`echo "$ac_compile" | $SED \
7982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984    -e 's:$: $lt_compiler_flag:'`
7985    (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986    (eval "$lt_compile" 2>conftest.err)
7987    ac_status=$?
7988    cat conftest.err >&5
7989    echo "$as_me:7989: \$? = $ac_status" >&5
7990    if (exit $ac_status) && test -s "$ac_outfile"; then
7991      # The compiler can only warn and ignore the option if not recognized
7992      # So say no if there are warnings other than the usual output.
7993      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7996        lt_cv_prog_compiler_rtti_exceptions=yes
7997      fi
7998    fi
7999    $RM conftest*
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8003 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8004
8005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8006     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8007 else
8008     :
8009 fi
8010
8011 fi
8012
8013
8014
8015
8016
8017
8018   lt_prog_compiler_wl=
8019 lt_prog_compiler_pic=
8020 lt_prog_compiler_static=
8021
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8024
8025   if test "$GCC" = yes; then
8026     lt_prog_compiler_wl='-Wl,'
8027     lt_prog_compiler_static='-static'
8028
8029     case $host_os in
8030       aix*)
8031       # All AIX code is PIC.
8032       if test "$host_cpu" = ia64; then
8033         # AIX 5 now supports IA64 processor
8034         lt_prog_compiler_static='-Bstatic'
8035       fi
8036       ;;
8037
8038     amigaos*)
8039       case $host_cpu in
8040       powerpc)
8041             # see comment about AmigaOS4 .so support
8042             lt_prog_compiler_pic='-fPIC'
8043         ;;
8044       m68k)
8045             # FIXME: we need at least 68020 code to build shared libraries, but
8046             # adding the `-m68020' flag to GCC prevents building anything better,
8047             # like `-m68040'.
8048             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8049         ;;
8050       esac
8051       ;;
8052
8053     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8054       # PIC is the default for these OSes.
8055       ;;
8056
8057     mingw* | cygwin* | pw32* | os2* | cegcc*)
8058       # This hack is so that the source file can tell whether it is being
8059       # built for inclusion in a dll (and should export symbols for example).
8060       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8061       # (--disable-auto-import) libraries
8062       lt_prog_compiler_pic='-DDLL_EXPORT'
8063       ;;
8064
8065     darwin* | rhapsody*)
8066       # PIC is the default on this platform
8067       # Common symbols not allowed in MH_DYLIB files
8068       lt_prog_compiler_pic='-fno-common'
8069       ;;
8070
8071     hpux*)
8072       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8073       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8074       # sets the default TLS model and affects inlining.
8075       case $host_cpu in
8076       hppa*64*)
8077         # +Z the default
8078         ;;
8079       *)
8080         lt_prog_compiler_pic='-fPIC'
8081         ;;
8082       esac
8083       ;;
8084
8085     interix[3-9]*)
8086       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8087       # Instead, we relocate shared libraries at runtime.
8088       ;;
8089
8090     msdosdjgpp*)
8091       # Just because we use GCC doesn't mean we suddenly get shared libraries
8092       # on systems that don't support them.
8093       lt_prog_compiler_can_build_shared=no
8094       enable_shared=no
8095       ;;
8096
8097     *nto* | *qnx*)
8098       # QNX uses GNU C++, but need to define -shared option too, otherwise
8099       # it will coredump.
8100       lt_prog_compiler_pic='-fPIC -shared'
8101       ;;
8102
8103     sysv4*MP*)
8104       if test -d /usr/nec; then
8105         lt_prog_compiler_pic=-Kconform_pic
8106       fi
8107       ;;
8108
8109     *)
8110       lt_prog_compiler_pic='-fPIC'
8111       ;;
8112     esac
8113   else
8114     # PORTME Check for flag to pass linker flags through the system compiler.
8115     case $host_os in
8116     aix*)
8117       lt_prog_compiler_wl='-Wl,'
8118       if test "$host_cpu" = ia64; then
8119         # AIX 5 now supports IA64 processor
8120         lt_prog_compiler_static='-Bstatic'
8121       else
8122         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8123       fi
8124       ;;
8125
8126     mingw* | cygwin* | pw32* | os2* | cegcc*)
8127       # This hack is so that the source file can tell whether it is being
8128       # built for inclusion in a dll (and should export symbols for example).
8129       lt_prog_compiler_pic='-DDLL_EXPORT'
8130       ;;
8131
8132     hpux9* | hpux10* | hpux11*)
8133       lt_prog_compiler_wl='-Wl,'
8134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8135       # not for PA HP-UX.
8136       case $host_cpu in
8137       hppa*64*|ia64*)
8138         # +Z the default
8139         ;;
8140       *)
8141         lt_prog_compiler_pic='+Z'
8142         ;;
8143       esac
8144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145       lt_prog_compiler_static='${wl}-a ${wl}archive'
8146       ;;
8147
8148     irix5* | irix6* | nonstopux*)
8149       lt_prog_compiler_wl='-Wl,'
8150       # PIC (with -KPIC) is the default.
8151       lt_prog_compiler_static='-non_shared'
8152       ;;
8153
8154     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155       case $cc_basename in
8156       # old Intel for x86_64 which still supported -KPIC.
8157       ecc*)
8158         lt_prog_compiler_wl='-Wl,'
8159         lt_prog_compiler_pic='-KPIC'
8160         lt_prog_compiler_static='-static'
8161         ;;
8162       # icc used to be incompatible with GCC.
8163       # ICC 10 doesn't accept -KPIC any more.
8164       icc* | ifort*)
8165         lt_prog_compiler_wl='-Wl,'
8166         lt_prog_compiler_pic='-fPIC'
8167         lt_prog_compiler_static='-static'
8168         ;;
8169       # Lahey Fortran 8.1.
8170       lf95*)
8171         lt_prog_compiler_wl='-Wl,'
8172         lt_prog_compiler_pic='--shared'
8173         lt_prog_compiler_static='--static'
8174         ;;
8175       pgcc* | pgf77* | pgf90* | pgf95*)
8176         # Portland Group compilers (*not* the Pentium gcc compiler,
8177         # which looks to be a dead project)
8178         lt_prog_compiler_wl='-Wl,'
8179         lt_prog_compiler_pic='-fpic'
8180         lt_prog_compiler_static='-Bstatic'
8181         ;;
8182       ccc*)
8183         lt_prog_compiler_wl='-Wl,'
8184         # All Alpha code is PIC.
8185         lt_prog_compiler_static='-non_shared'
8186         ;;
8187       xl*)
8188         # IBM XL C 8.0/Fortran 10.1 on PPC
8189         lt_prog_compiler_wl='-Wl,'
8190         lt_prog_compiler_pic='-qpic'
8191         lt_prog_compiler_static='-qstaticlink'
8192         ;;
8193       *)
8194         case `$CC -V 2>&1 | sed 5q` in
8195         *Sun\ C*)
8196           # Sun C 5.9
8197           lt_prog_compiler_pic='-KPIC'
8198           lt_prog_compiler_static='-Bstatic'
8199           lt_prog_compiler_wl='-Wl,'
8200           ;;
8201         *Sun\ F*)
8202           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8203           lt_prog_compiler_pic='-KPIC'
8204           lt_prog_compiler_static='-Bstatic'
8205           lt_prog_compiler_wl=''
8206           ;;
8207         esac
8208         ;;
8209       esac
8210       ;;
8211
8212     newsos6)
8213       lt_prog_compiler_pic='-KPIC'
8214       lt_prog_compiler_static='-Bstatic'
8215       ;;
8216
8217     *nto* | *qnx*)
8218       # QNX uses GNU C++, but need to define -shared option too, otherwise
8219       # it will coredump.
8220       lt_prog_compiler_pic='-fPIC -shared'
8221       ;;
8222
8223     osf3* | osf4* | osf5*)
8224       lt_prog_compiler_wl='-Wl,'
8225       # All OSF/1 code is PIC.
8226       lt_prog_compiler_static='-non_shared'
8227       ;;
8228
8229     rdos*)
8230       lt_prog_compiler_static='-non_shared'
8231       ;;
8232
8233     solaris*)
8234       lt_prog_compiler_pic='-KPIC'
8235       lt_prog_compiler_static='-Bstatic'
8236       case $cc_basename in
8237       f77* | f90* | f95*)
8238         lt_prog_compiler_wl='-Qoption ld ';;
8239       *)
8240         lt_prog_compiler_wl='-Wl,';;
8241       esac
8242       ;;
8243
8244     sunos4*)
8245       lt_prog_compiler_wl='-Qoption ld '
8246       lt_prog_compiler_pic='-PIC'
8247       lt_prog_compiler_static='-Bstatic'
8248       ;;
8249
8250     sysv4 | sysv4.2uw2* | sysv4.3*)
8251       lt_prog_compiler_wl='-Wl,'
8252       lt_prog_compiler_pic='-KPIC'
8253       lt_prog_compiler_static='-Bstatic'
8254       ;;
8255
8256     sysv4*MP*)
8257       if test -d /usr/nec ;then
8258         lt_prog_compiler_pic='-Kconform_pic'
8259         lt_prog_compiler_static='-Bstatic'
8260       fi
8261       ;;
8262
8263     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264       lt_prog_compiler_wl='-Wl,'
8265       lt_prog_compiler_pic='-KPIC'
8266       lt_prog_compiler_static='-Bstatic'
8267       ;;
8268
8269     unicos*)
8270       lt_prog_compiler_wl='-Wl,'
8271       lt_prog_compiler_can_build_shared=no
8272       ;;
8273
8274     uts4*)
8275       lt_prog_compiler_pic='-pic'
8276       lt_prog_compiler_static='-Bstatic'
8277       ;;
8278
8279     *)
8280       lt_prog_compiler_can_build_shared=no
8281       ;;
8282     esac
8283   fi
8284
8285 case $host_os in
8286   # For platforms which do not support PIC, -DPIC is meaningless:
8287   *djgpp*)
8288     lt_prog_compiler_pic=
8289     ;;
8290   *)
8291     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292     ;;
8293 esac
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8295 $as_echo "$lt_prog_compiler_pic" >&6; }
8296
8297
8298
8299
8300
8301
8302 #
8303 # Check to make sure the PIC flag actually works.
8304 #
8305 if test -n "$lt_prog_compiler_pic"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8308 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   lt_cv_prog_compiler_pic_works=no
8312    ac_outfile=conftest.$ac_objext
8313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8315    # Insert the option either (1) after the last *FLAGS variable, or
8316    # (2) before a word containing "conftest.", or (3) at the end.
8317    # Note that $ac_compile itself does not contain backslashes and begins
8318    # with a dollar sign (not a hyphen), so the echo should work correctly.
8319    # The option is referenced via a variable to avoid confusing sed.
8320    lt_compile=`echo "$ac_compile" | $SED \
8321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323    -e 's:$: $lt_compiler_flag:'`
8324    (eval echo "\"\$as_me:8324: $lt_compile\"" >&5)
8325    (eval "$lt_compile" 2>conftest.err)
8326    ac_status=$?
8327    cat conftest.err >&5
8328    echo "$as_me:8328: \$? = $ac_status" >&5
8329    if (exit $ac_status) && test -s "$ac_outfile"; then
8330      # The compiler can only warn and ignore the option if not recognized
8331      # So say no if there are warnings other than the usual output.
8332      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8333      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335        lt_cv_prog_compiler_pic_works=yes
8336      fi
8337    fi
8338    $RM conftest*
8339
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8342 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8343
8344 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8345     case $lt_prog_compiler_pic in
8346      "" | " "*) ;;
8347      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8348      esac
8349 else
8350     lt_prog_compiler_pic=
8351      lt_prog_compiler_can_build_shared=no
8352 fi
8353
8354 fi
8355
8356
8357
8358
8359
8360
8361 #
8362 # Check to make sure the static flag actually works.
8363 #
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8367 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   lt_cv_prog_compiler_static_works=no
8371    save_LDFLAGS="$LDFLAGS"
8372    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8374    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375      # The linker can only warn and ignore the option if not recognized
8376      # So say no if there are warnings
8377      if test -s conftest.err; then
8378        # Append any errors to the config.log.
8379        cat conftest.err 1>&5
8380        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8381        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382        if diff conftest.exp conftest.er2 >/dev/null; then
8383          lt_cv_prog_compiler_static_works=yes
8384        fi
8385      else
8386        lt_cv_prog_compiler_static_works=yes
8387      fi
8388    fi
8389    $RM -r conftest*
8390    LDFLAGS="$save_LDFLAGS"
8391
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8394 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8395
8396 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8397     :
8398 else
8399     lt_prog_compiler_static=
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   lt_cv_prog_compiler_c_o=no
8414    $RM -r conftest 2>/dev/null
8415    mkdir conftest
8416    cd conftest
8417    mkdir out
8418    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419
8420    lt_compiler_flag="-o out/conftest2.$ac_objext"
8421    # Insert the option either (1) after the last *FLAGS variable, or
8422    # (2) before a word containing "conftest.", or (3) at the end.
8423    # Note that $ac_compile itself does not contain backslashes and begins
8424    # with a dollar sign (not a hyphen), so the echo should work correctly.
8425    lt_compile=`echo "$ac_compile" | $SED \
8426    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428    -e 's:$: $lt_compiler_flag:'`
8429    (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
8430    (eval "$lt_compile" 2>out/conftest.err)
8431    ac_status=$?
8432    cat out/conftest.err >&5
8433    echo "$as_me:8433: \$? = $ac_status" >&5
8434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8435    then
8436      # The compiler can only warn and ignore the option if not recognized
8437      # So say no if there are warnings
8438      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8439      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441        lt_cv_prog_compiler_c_o=yes
8442      fi
8443    fi
8444    chmod u+w . 2>&5
8445    $RM conftest*
8446    # SGI C++ compiler will create directory out/ii_files/ for
8447    # template instantiation
8448    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449    $RM out/* && rmdir out
8450    cd ..
8451    $RM -r conftest
8452    $RM conftest*
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8457
8458
8459
8460
8461
8462
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   lt_cv_prog_compiler_c_o=no
8469    $RM -r conftest 2>/dev/null
8470    mkdir conftest
8471    cd conftest
8472    mkdir out
8473    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474
8475    lt_compiler_flag="-o out/conftest2.$ac_objext"
8476    # Insert the option either (1) after the last *FLAGS variable, or
8477    # (2) before a word containing "conftest.", or (3) at the end.
8478    # Note that $ac_compile itself does not contain backslashes and begins
8479    # with a dollar sign (not a hyphen), so the echo should work correctly.
8480    lt_compile=`echo "$ac_compile" | $SED \
8481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483    -e 's:$: $lt_compiler_flag:'`
8484    (eval echo "\"\$as_me:8484: $lt_compile\"" >&5)
8485    (eval "$lt_compile" 2>out/conftest.err)
8486    ac_status=$?
8487    cat out/conftest.err >&5
8488    echo "$as_me:8488: \$? = $ac_status" >&5
8489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8490    then
8491      # The compiler can only warn and ignore the option if not recognized
8492      # So say no if there are warnings
8493      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8494      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8495      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8496        lt_cv_prog_compiler_c_o=yes
8497      fi
8498    fi
8499    chmod u+w . 2>&5
8500    $RM conftest*
8501    # SGI C++ compiler will create directory out/ii_files/ for
8502    # template instantiation
8503    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8504    $RM out/* && rmdir out
8505    cd ..
8506    $RM -r conftest
8507    $RM conftest*
8508
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8512
8513
8514
8515
8516 hard_links="nottested"
8517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518   # do not overwrite the value of need_locks provided by the user
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8520 $as_echo_n "checking if we can lock with hard links... " >&6; }
8521   hard_links=yes
8522   $RM conftest*
8523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524   touch conftest.a
8525   ln conftest.a conftest.b 2>&5 || hard_links=no
8526   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8528 $as_echo "$hard_links" >&6; }
8529   if test "$hard_links" = no; then
8530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532     need_locks=warn
8533   fi
8534 else
8535   need_locks=no
8536 fi
8537
8538
8539
8540
8541
8542
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8545
8546   runpath_var=
8547   allow_undefined_flag=
8548   always_export_symbols=no
8549   archive_cmds=
8550   archive_expsym_cmds=
8551   compiler_needs_object=no
8552   enable_shared_with_static_runtimes=no
8553   export_dynamic_flag_spec=
8554   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555   hardcode_automatic=no
8556   hardcode_direct=no
8557   hardcode_direct_absolute=no
8558   hardcode_libdir_flag_spec=
8559   hardcode_libdir_flag_spec_ld=
8560   hardcode_libdir_separator=
8561   hardcode_minus_L=no
8562   hardcode_shlibpath_var=unsupported
8563   inherit_rpath=no
8564   link_all_deplibs=unknown
8565   module_cmds=
8566   module_expsym_cmds=
8567   old_archive_from_new_cmds=
8568   old_archive_from_expsyms_cmds=
8569   thread_safe_flag_spec=
8570   whole_archive_flag_spec=
8571   # include_expsyms should be a list of space-separated symbols to be *always*
8572   # included in the symbol list
8573   include_expsyms=
8574   # exclude_expsyms can be an extended regexp of symbols to exclude
8575   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8576   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8577   # as well as any symbol that contains `d'.
8578   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8579   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8580   # platforms (ab)use it in PIC code, but their linkers get confused if
8581   # the symbol is explicitly referenced.  Since portable code cannot
8582   # rely on this symbol name, it's probably fine to never include it in
8583   # preloaded symbol tables.
8584   # Exclude shared library initialization/finalization symbols.
8585   extract_expsyms_cmds=
8586
8587   case $host_os in
8588   cygwin* | mingw* | pw32* | cegcc*)
8589     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590     # When not using gcc, we currently assume that we are using
8591     # Microsoft Visual C++.
8592     if test "$GCC" != yes; then
8593       with_gnu_ld=no
8594     fi
8595     ;;
8596   interix*)
8597     # we just hope/assume this is gcc and not c89 (= MSVC++)
8598     with_gnu_ld=yes
8599     ;;
8600   openbsd*)
8601     with_gnu_ld=no
8602     ;;
8603   linux* | k*bsd*-gnu)
8604     link_all_deplibs=no
8605     ;;
8606   esac
8607
8608   ld_shlibs=yes
8609   if test "$with_gnu_ld" = yes; then
8610     # If archive_cmds runs LD, not CC, wlarc should be empty
8611     wlarc='${wl}'
8612
8613     # Set some defaults for GNU ld with shared library support. These
8614     # are reset later if shared libraries are not supported. Putting them
8615     # here allows them to be overridden if necessary.
8616     runpath_var=LD_RUN_PATH
8617     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618     export_dynamic_flag_spec='${wl}--export-dynamic'
8619     # ancient GNU ld didn't support --whole-archive et. al.
8620     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8621       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8622     else
8623       whole_archive_flag_spec=
8624     fi
8625     supports_anon_versioning=no
8626     case `$LD -v 2>&1` in
8627       *GNU\ gold*) supports_anon_versioning=yes ;;
8628       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8629       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8630       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8631       *\ 2.11.*) ;; # other 2.11 versions
8632       *) supports_anon_versioning=yes ;;
8633     esac
8634
8635     # See if GNU ld supports shared libraries.
8636     case $host_os in
8637     aix[3-9]*)
8638       # On AIX/PPC, the GNU linker is very broken
8639       if test "$host_cpu" != ia64; then
8640         ld_shlibs=no
8641         cat <<_LT_EOF 1>&2
8642
8643 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8644 *** to be unable to reliably create shared libraries on AIX.
8645 *** Therefore, libtool is disabling shared libraries support.  If you
8646 *** really care for shared libraries, you may want to modify your PATH
8647 *** so that a non-GNU linker is found, and then restart.
8648
8649 _LT_EOF
8650       fi
8651       ;;
8652
8653     amigaos*)
8654       case $host_cpu in
8655       powerpc)
8656             # see comment about AmigaOS4 .so support
8657             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658             archive_expsym_cmds=''
8659         ;;
8660       m68k)
8661             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)'
8662             hardcode_libdir_flag_spec='-L$libdir'
8663             hardcode_minus_L=yes
8664         ;;
8665       esac
8666       ;;
8667
8668     beos*)
8669       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670         allow_undefined_flag=unsupported
8671         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8672         # support --undefined.  This deserves some investigation.  FIXME
8673         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674       else
8675         ld_shlibs=no
8676       fi
8677       ;;
8678
8679     cygwin* | mingw* | pw32* | cegcc*)
8680       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8681       # as there is no search path for DLLs.
8682       hardcode_libdir_flag_spec='-L$libdir'
8683       allow_undefined_flag=unsupported
8684       always_export_symbols=no
8685       enable_shared_with_static_runtimes=yes
8686       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8687
8688       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8689         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8690         # If the export-symbols file already is a .def file (1st line
8691         # is EXPORTS), use it as is; otherwise, prepend...
8692         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8693           cp $export_symbols $output_objdir/$soname.def;
8694         else
8695           echo EXPORTS > $output_objdir/$soname.def;
8696           cat $export_symbols >> $output_objdir/$soname.def;
8697         fi~
8698         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8699       else
8700         ld_shlibs=no
8701       fi
8702       ;;
8703
8704     interix[3-9]*)
8705       hardcode_direct=no
8706       hardcode_shlibpath_var=no
8707       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8708       export_dynamic_flag_spec='${wl}-E'
8709       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8710       # Instead, shared libraries are loaded at an image base (0x10000000 by
8711       # default) and relocated if they conflict, which is a slow very memory
8712       # consuming and fragmenting process.  To avoid this, we pick a random,
8713       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8714       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8715       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8716       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'
8717       ;;
8718
8719     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8720       tmp_diet=no
8721       if test "$host_os" = linux-dietlibc; then
8722         case $cc_basename in
8723           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8724         esac
8725       fi
8726       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8727          && test "$tmp_diet" = no
8728       then
8729         tmp_addflag=
8730         tmp_sharedflag='-shared'
8731         case $cc_basename,$host_cpu in
8732         pgcc*)                          # Portland Group C compiler
8733           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8734           tmp_addflag=' $pic_flag'
8735           ;;
8736         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8737           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8738           tmp_addflag=' $pic_flag -Mnomain' ;;
8739         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8740           tmp_addflag=' -i_dynamic' ;;
8741         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8742           tmp_addflag=' -i_dynamic -nofor_main' ;;
8743         ifc* | ifort*)                  # Intel Fortran compiler
8744           tmp_addflag=' -nofor_main' ;;
8745         lf95*)                          # Lahey Fortran 8.1
8746           whole_archive_flag_spec=
8747           tmp_sharedflag='--shared' ;;
8748         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8749           tmp_sharedflag='-qmkshrobj'
8750           tmp_addflag= ;;
8751         esac
8752         case `$CC -V 2>&1 | sed 5q` in
8753         *Sun\ C*)                       # Sun C 5.9
8754           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8755           compiler_needs_object=yes
8756           tmp_sharedflag='-G' ;;
8757         *Sun\ F*)                       # Sun Fortran 8.3
8758           tmp_sharedflag='-G' ;;
8759         esac
8760         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761
8762         if test "x$supports_anon_versioning" = xyes; then
8763           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765             echo "local: *; };" >> $output_objdir/$libname.ver~
8766             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8767         fi
8768
8769         case $cc_basename in
8770         xlf*)
8771           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8772           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8773           hardcode_libdir_flag_spec=
8774           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8775           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8776           if test "x$supports_anon_versioning" = xyes; then
8777             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779               echo "local: *; };" >> $output_objdir/$libname.ver~
8780               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8781           fi
8782           ;;
8783         esac
8784       else
8785         ld_shlibs=no
8786       fi
8787       ;;
8788
8789     netbsd* | netbsdelf*-gnu)
8790       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8791         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8792         wlarc=
8793       else
8794         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8796       fi
8797       ;;
8798
8799     solaris*)
8800       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8801         ld_shlibs=no
8802         cat <<_LT_EOF 1>&2
8803
8804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8805 *** create shared libraries on Solaris systems.  Therefore, libtool
8806 *** is disabling shared libraries support.  We urge you to upgrade GNU
8807 *** binutils to release 2.9.1 or newer.  Another option is to modify
8808 *** your PATH or compiler configuration so that the native linker is
8809 *** used, and then restart.
8810
8811 _LT_EOF
8812       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8813         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8815       else
8816         ld_shlibs=no
8817       fi
8818       ;;
8819
8820     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8821       case `$LD -v 2>&1` in
8822         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8823         ld_shlibs=no
8824         cat <<_LT_EOF 1>&2
8825
8826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8827 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8828 *** is disabling shared libraries support.  We urge you to upgrade GNU
8829 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8830 *** your PATH or compiler configuration so that the native linker is
8831 *** used, and then restart.
8832
8833 _LT_EOF
8834         ;;
8835         *)
8836           # For security reasons, it is highly recommended that you always
8837           # use absolute paths for naming shared libraries, and exclude the
8838           # DT_RUNPATH tag from executables and libraries.  But doing so
8839           # requires that you compile everything twice, which is a pain.
8840           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8844           else
8845             ld_shlibs=no
8846           fi
8847         ;;
8848       esac
8849       ;;
8850
8851     sunos4*)
8852       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853       wlarc=
8854       hardcode_direct=yes
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     *)
8859       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866     esac
8867
8868     if test "$ld_shlibs" = no; then
8869       runpath_var=
8870       hardcode_libdir_flag_spec=
8871       export_dynamic_flag_spec=
8872       whole_archive_flag_spec=
8873     fi
8874   else
8875     # PORTME fill in a description of your system's linker (not GNU ld)
8876     case $host_os in
8877     aix3*)
8878       allow_undefined_flag=unsupported
8879       always_export_symbols=yes
8880       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'
8881       # Note: this linker hardcodes the directories in LIBPATH if there
8882       # are no directories specified by -L.
8883       hardcode_minus_L=yes
8884       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885         # Neither direct hardcoding nor static linking is supported with a
8886         # broken collect2.
8887         hardcode_direct=unsupported
8888       fi
8889       ;;
8890
8891     aix[4-9]*)
8892       if test "$host_cpu" = ia64; then
8893         # On IA64, the linker does run time linking by default, so we don't
8894         # have to do anything special.
8895         aix_use_runtimelinking=no
8896         exp_sym_flag='-Bexport'
8897         no_entry_flag=""
8898       else
8899         # If we're using GNU nm, then we don't want the "-C" option.
8900         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8901         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8902           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8903         else
8904           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'
8905         fi
8906         aix_use_runtimelinking=no
8907
8908         # Test if we are trying to use run time linking or normal
8909         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910         # need to do runtime linking.
8911         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912           for ld_flag in $LDFLAGS; do
8913           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914             aix_use_runtimelinking=yes
8915             break
8916           fi
8917           done
8918           ;;
8919         esac
8920
8921         exp_sym_flag='-bexport'
8922         no_entry_flag='-bnoentry'
8923       fi
8924
8925       # When large executables or shared objects are built, AIX ld can
8926       # have problems creating the table of contents.  If linking a library
8927       # or program results in "error TOC overflow" add -mminimal-toc to
8928       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8929       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8930
8931       archive_cmds=''
8932       hardcode_direct=yes
8933       hardcode_direct_absolute=yes
8934       hardcode_libdir_separator=':'
8935       link_all_deplibs=yes
8936       file_list_spec='${wl}-f,'
8937
8938       if test "$GCC" = yes; then
8939         case $host_os in aix4.[012]|aix4.[012].*)
8940         # We only want to do this on AIX 4.2 and lower, the check
8941         # below for broken collect2 doesn't work under 4.3+
8942           collect2name=`${CC} -print-prog-name=collect2`
8943           if test -f "$collect2name" &&
8944            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8945           then
8946           # We have reworked collect2
8947           :
8948           else
8949           # We have old collect2
8950           hardcode_direct=unsupported
8951           # It fails to find uninstalled libraries when the uninstalled
8952           # path is not listed in the libpath.  Setting hardcode_minus_L
8953           # to unsupported forces relinking
8954           hardcode_minus_L=yes
8955           hardcode_libdir_flag_spec='-L$libdir'
8956           hardcode_libdir_separator=
8957           fi
8958           ;;
8959         esac
8960         shared_flag='-shared'
8961         if test "$aix_use_runtimelinking" = yes; then
8962           shared_flag="$shared_flag "'${wl}-G'
8963         fi
8964         link_all_deplibs=no
8965       else
8966         # not using gcc
8967         if test "$host_cpu" = ia64; then
8968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8969         # chokes on -Wl,-G. The following line is correct:
8970           shared_flag='-G'
8971         else
8972           if test "$aix_use_runtimelinking" = yes; then
8973             shared_flag='${wl}-G'
8974           else
8975             shared_flag='${wl}-bM:SRE'
8976           fi
8977         fi
8978       fi
8979
8980       export_dynamic_flag_spec='${wl}-bexpall'
8981       # It seems that -bexpall does not export symbols beginning with
8982       # underscore (_), so it is better to generate a list of symbols to export.
8983       always_export_symbols=yes
8984       if test "$aix_use_runtimelinking" = yes; then
8985         # Warning - without using the other runtime loading flags (-brtl),
8986         # -berok will link without error, but may produce a broken library.
8987         allow_undefined_flag='-berok'
8988         # Determine the default libpath from the value encoded in an
8989         # empty executable.
8990         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992
8993 int
8994 main ()
8995 {
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002
9003 lt_aix_libpath_sed='
9004     /Import File Strings/,/^$/ {
9005         /^0/ {
9006             s/^0  *\(.*\)$/\1/
9007             p
9008         }
9009     }'
9010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011 # Check for a 64-bit object if we didn't find anything.
9012 if test -z "$aix_libpath"; then
9013   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9014 fi
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017     conftest$ac_exeext conftest.$ac_ext
9018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9019
9020         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9022       else
9023         if test "$host_cpu" = ia64; then
9024           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9025           allow_undefined_flag="-z nodefs"
9026           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"
9027         else
9028          # Determine the default libpath from the value encoded in an
9029          # empty executable.
9030          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h.  */
9032
9033 int
9034 main ()
9035 {
9036
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042
9043 lt_aix_libpath_sed='
9044     /Import File Strings/,/^$/ {
9045         /^0/ {
9046             s/^0  *\(.*\)$/\1/
9047             p
9048         }
9049     }'
9050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051 # Check for a 64-bit object if we didn't find anything.
9052 if test -z "$aix_libpath"; then
9053   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054 fi
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057     conftest$ac_exeext conftest.$ac_ext
9058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9059
9060          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9061           # Warning - without using the other run time loading flags,
9062           # -berok will link without error, but may produce a broken library.
9063           no_undefined_flag=' ${wl}-bernotok'
9064           allow_undefined_flag=' ${wl}-berok'
9065           # Exported symbols can be pulled into shared objects from archives
9066           whole_archive_flag_spec='$convenience'
9067           archive_cmds_need_lc=yes
9068           # This is similar to how AIX traditionally builds its shared libraries.
9069           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'
9070         fi
9071       fi
9072       ;;
9073
9074     amigaos*)
9075       case $host_cpu in
9076       powerpc)
9077             # see comment about AmigaOS4 .so support
9078             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079             archive_expsym_cmds=''
9080         ;;
9081       m68k)
9082             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)'
9083             hardcode_libdir_flag_spec='-L$libdir'
9084             hardcode_minus_L=yes
9085         ;;
9086       esac
9087       ;;
9088
9089     bsdi[45]*)
9090       export_dynamic_flag_spec=-rdynamic
9091       ;;
9092
9093     cygwin* | mingw* | pw32* | cegcc*)
9094       # When not using gcc, we currently assume that we are using
9095       # Microsoft Visual C++.
9096       # hardcode_libdir_flag_spec is actually meaningless, as there is
9097       # no search path for DLLs.
9098       hardcode_libdir_flag_spec=' '
9099       allow_undefined_flag=unsupported
9100       # Tell ltmain to make .lib files, not .a files.
9101       libext=lib
9102       # Tell ltmain to make .dll files, not .so files.
9103       shrext_cmds=".dll"
9104       # FIXME: Setting linknames here is a bad hack.
9105       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9106       # The linker will automatically build a .lib file if we build a DLL.
9107       old_archive_from_new_cmds='true'
9108       # FIXME: Should let the user specify the lib program.
9109       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9110       fix_srcfile_path='`cygpath -w "$srcfile"`'
9111       enable_shared_with_static_runtimes=yes
9112       ;;
9113
9114     darwin* | rhapsody*)
9115
9116
9117   archive_cmds_need_lc=no
9118   hardcode_direct=no
9119   hardcode_automatic=yes
9120   hardcode_shlibpath_var=unsupported
9121   whole_archive_flag_spec=''
9122   link_all_deplibs=yes
9123   allow_undefined_flag="$_lt_dar_allow_undefined"
9124   case $cc_basename in
9125      ifort*) _lt_dar_can_shared=yes ;;
9126      *) _lt_dar_can_shared=$GCC ;;
9127   esac
9128   if test "$_lt_dar_can_shared" = "yes"; then
9129     output_verbose_link_cmd=echo
9130     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9131     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9132     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}"
9133     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}"
9134
9135   else
9136   ld_shlibs=no
9137   fi
9138
9139       ;;
9140
9141     dgux*)
9142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143       hardcode_libdir_flag_spec='-L$libdir'
9144       hardcode_shlibpath_var=no
9145       ;;
9146
9147     freebsd1*)
9148       ld_shlibs=no
9149       ;;
9150
9151     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9152     # support.  Future versions do this automatically, but an explicit c++rt0.o
9153     # does not break anything, and helps significantly (at the cost of a little
9154     # extra space).
9155     freebsd2.2*)
9156       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9157       hardcode_libdir_flag_spec='-R$libdir'
9158       hardcode_direct=yes
9159       hardcode_shlibpath_var=no
9160       ;;
9161
9162     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9163     freebsd2*)
9164       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9165       hardcode_direct=yes
9166       hardcode_minus_L=yes
9167       hardcode_shlibpath_var=no
9168       ;;
9169
9170     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9171     freebsd* | dragonfly*)
9172       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9173       hardcode_libdir_flag_spec='-R$libdir'
9174       hardcode_direct=yes
9175       hardcode_shlibpath_var=no
9176       ;;
9177
9178     hpux9*)
9179       if test "$GCC" = yes; then
9180         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9181       else
9182         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'
9183       fi
9184       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9185       hardcode_libdir_separator=:
9186       hardcode_direct=yes
9187
9188       # hardcode_minus_L: Not really in the search PATH,
9189       # but as the default location of the library.
9190       hardcode_minus_L=yes
9191       export_dynamic_flag_spec='${wl}-E'
9192       ;;
9193
9194     hpux10*)
9195       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9196         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197       else
9198         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9199       fi
9200       if test "$with_gnu_ld" = no; then
9201         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202         hardcode_libdir_flag_spec_ld='+b $libdir'
9203         hardcode_libdir_separator=:
9204         hardcode_direct=yes
9205         hardcode_direct_absolute=yes
9206         export_dynamic_flag_spec='${wl}-E'
9207         # hardcode_minus_L: Not really in the search PATH,
9208         # but as the default location of the library.
9209         hardcode_minus_L=yes
9210       fi
9211       ;;
9212
9213     hpux11*)
9214       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9215         case $host_cpu in
9216         hppa*64*)
9217           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9218           ;;
9219         ia64*)
9220           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9221           ;;
9222         *)
9223           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9224           ;;
9225         esac
9226       else
9227         case $host_cpu in
9228         hppa*64*)
9229           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230           ;;
9231         ia64*)
9232           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9233           ;;
9234         *)
9235           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9236           ;;
9237         esac
9238       fi
9239       if test "$with_gnu_ld" = no; then
9240         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9241         hardcode_libdir_separator=:
9242
9243         case $host_cpu in
9244         hppa*64*|ia64*)
9245           hardcode_direct=no
9246           hardcode_shlibpath_var=no
9247           ;;
9248         *)
9249           hardcode_direct=yes
9250           hardcode_direct_absolute=yes
9251           export_dynamic_flag_spec='${wl}-E'
9252
9253           # hardcode_minus_L: Not really in the search PATH,
9254           # but as the default location of the library.
9255           hardcode_minus_L=yes
9256           ;;
9257         esac
9258       fi
9259       ;;
9260
9261     irix5* | irix6* | nonstopux*)
9262       if test "$GCC" = yes; then
9263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9264         # Try to use the -exported_symbol ld option, if it does not
9265         # work, assume that -exports_file does not work either and
9266         # implicitly export all symbols.
9267         save_LDFLAGS="$LDFLAGS"
9268         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h.  */
9271 int foo(void) {}
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9275
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278     conftest$ac_exeext conftest.$ac_ext
9279         LDFLAGS="$save_LDFLAGS"
9280       else
9281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9283       fi
9284       archive_cmds_need_lc='no'
9285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286       hardcode_libdir_separator=:
9287       inherit_rpath=yes
9288       link_all_deplibs=yes
9289       ;;
9290
9291     netbsd* | netbsdelf*-gnu)
9292       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9293         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9294       else
9295         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9296       fi
9297       hardcode_libdir_flag_spec='-R$libdir'
9298       hardcode_direct=yes
9299       hardcode_shlibpath_var=no
9300       ;;
9301
9302     newsos6)
9303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304       hardcode_direct=yes
9305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306       hardcode_libdir_separator=:
9307       hardcode_shlibpath_var=no
9308       ;;
9309
9310     *nto* | *qnx*)
9311       ;;
9312
9313     openbsd*)
9314       if test -f /usr/libexec/ld.so; then
9315         hardcode_direct=yes
9316         hardcode_shlibpath_var=no
9317         hardcode_direct_absolute=yes
9318         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9319           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9321           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322           export_dynamic_flag_spec='${wl}-E'
9323         else
9324           case $host_os in
9325            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9326              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327              hardcode_libdir_flag_spec='-R$libdir'
9328              ;;
9329            *)
9330              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9331              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9332              ;;
9333           esac
9334         fi
9335       else
9336         ld_shlibs=no
9337       fi
9338       ;;
9339
9340     os2*)
9341       hardcode_libdir_flag_spec='-L$libdir'
9342       hardcode_minus_L=yes
9343       allow_undefined_flag=unsupported
9344       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'
9345       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9346       ;;
9347
9348     osf3*)
9349       if test "$GCC" = yes; then
9350         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9352       else
9353         allow_undefined_flag=' -expect_unresolved \*'
9354         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9355       fi
9356       archive_cmds_need_lc='no'
9357       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358       hardcode_libdir_separator=:
9359       ;;
9360
9361     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9362       if test "$GCC" = yes; then
9363         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9364         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9365         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366       else
9367         allow_undefined_flag=' -expect_unresolved \*'
9368         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9369         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~
9370         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9371
9372         # Both c and cxx compiler support -rpath directly
9373         hardcode_libdir_flag_spec='-rpath $libdir'
9374       fi
9375       archive_cmds_need_lc='no'
9376       hardcode_libdir_separator=:
9377       ;;
9378
9379     solaris*)
9380       no_undefined_flag=' -z defs'
9381       if test "$GCC" = yes; then
9382         wlarc='${wl}'
9383         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9386       else
9387         case `$CC -V 2>&1` in
9388         *"Compilers 5.0"*)
9389           wlarc=''
9390           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9392           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9393           ;;
9394         *)
9395           wlarc='${wl}'
9396           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9397           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9399           ;;
9400         esac
9401       fi
9402       hardcode_libdir_flag_spec='-R$libdir'
9403       hardcode_shlibpath_var=no
9404       case $host_os in
9405       solaris2.[0-5] | solaris2.[0-5].*) ;;
9406       *)
9407         # The compiler driver will combine and reorder linker options,
9408         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9409         # but is careful enough not to reorder.
9410         # Supported since Solaris 2.6 (maybe 2.5.1?)
9411         if test "$GCC" = yes; then
9412           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9413         else
9414           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9415         fi
9416         ;;
9417       esac
9418       link_all_deplibs=yes
9419       ;;
9420
9421     sunos4*)
9422       if test "x$host_vendor" = xsequent; then
9423         # Use $CC to link under sequent, because it throws in some extra .o
9424         # files that make .init and .fini sections work.
9425         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9426       else
9427         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9428       fi
9429       hardcode_libdir_flag_spec='-L$libdir'
9430       hardcode_direct=yes
9431       hardcode_minus_L=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     sysv4)
9436       case $host_vendor in
9437         sni)
9438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439           hardcode_direct=yes # is this really true???
9440         ;;
9441         siemens)
9442           ## LD is ld it makes a PLAMLIB
9443           ## CC just makes a GrossModule.
9444           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9445           reload_cmds='$CC -r -o $output$reload_objs'
9446           hardcode_direct=no
9447         ;;
9448         motorola)
9449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9451         ;;
9452       esac
9453       runpath_var='LD_RUN_PATH'
9454       hardcode_shlibpath_var=no
9455       ;;
9456
9457     sysv4.3*)
9458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459       hardcode_shlibpath_var=no
9460       export_dynamic_flag_spec='-Bexport'
9461       ;;
9462
9463     sysv4*MP*)
9464       if test -d /usr/nec; then
9465         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466         hardcode_shlibpath_var=no
9467         runpath_var=LD_RUN_PATH
9468         hardcode_runpath_var=yes
9469         ld_shlibs=yes
9470       fi
9471       ;;
9472
9473     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9474       no_undefined_flag='${wl}-z,text'
9475       archive_cmds_need_lc=no
9476       hardcode_shlibpath_var=no
9477       runpath_var='LD_RUN_PATH'
9478
9479       if test "$GCC" = yes; then
9480         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482       else
9483         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485       fi
9486       ;;
9487
9488     sysv5* | sco3.2v5* | sco5v6*)
9489       # Note: We can NOT use -z defs as we might desire, because we do not
9490       # link with -lc, and that would cause any symbols used from libc to
9491       # always be unresolved, which means just about no library would
9492       # ever link correctly.  If we're not using GNU ld we use -z text
9493       # though, which does catch some bad symbols but isn't as heavy-handed
9494       # as -z defs.
9495       no_undefined_flag='${wl}-z,text'
9496       allow_undefined_flag='${wl}-z,nodefs'
9497       archive_cmds_need_lc=no
9498       hardcode_shlibpath_var=no
9499       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9500       hardcode_libdir_separator=':'
9501       link_all_deplibs=yes
9502       export_dynamic_flag_spec='${wl}-Bexport'
9503       runpath_var='LD_RUN_PATH'
9504
9505       if test "$GCC" = yes; then
9506         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508       else
9509         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511       fi
9512       ;;
9513
9514     uts4*)
9515       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516       hardcode_libdir_flag_spec='-L$libdir'
9517       hardcode_shlibpath_var=no
9518       ;;
9519
9520     *)
9521       ld_shlibs=no
9522       ;;
9523     esac
9524
9525     if test x$host_vendor = xsni; then
9526       case $host in
9527       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9528         export_dynamic_flag_spec='${wl}-Blargedynsym'
9529         ;;
9530       esac
9531     fi
9532   fi
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9535 $as_echo "$ld_shlibs" >&6; }
9536 test "$ld_shlibs" = no && can_build_shared=no
9537
9538 with_gnu_ld=$with_gnu_ld
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554 #
9555 # Do we need to explicitly link libc?
9556 #
9557 case "x$archive_cmds_need_lc" in
9558 x|xyes)
9559   # Assume -lc should be added
9560   archive_cmds_need_lc=yes
9561
9562   if test "$enable_shared" = yes && test "$GCC" = yes; then
9563     case $archive_cmds in
9564     *'~'*)
9565       # FIXME: we may have to deal with multi-command sequences.
9566       ;;
9567     '$CC '*)
9568       # Test whether the compiler implicitly links with -lc since on some
9569       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9570       # to ld, don't add -lc before -lgcc.
9571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9573       $RM conftest*
9574       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9575
9576       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9577   (eval $ac_compile) 2>&5
9578   ac_status=$?
9579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580   test $ac_status = 0; } 2>conftest.err; then
9581         soname=conftest
9582         lib=conftest
9583         libobjs=conftest.$ac_objext
9584         deplibs=
9585         wl=$lt_prog_compiler_wl
9586         pic_flag=$lt_prog_compiler_pic
9587         compiler_flags=-v
9588         linker_flags=-v
9589         verstring=
9590         output_objdir=.
9591         libname=conftest
9592         lt_save_allow_undefined_flag=$allow_undefined_flag
9593         allow_undefined_flag=
9594         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9595   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9596   ac_status=$?
9597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598   test $ac_status = 0; }
9599         then
9600           archive_cmds_need_lc=no
9601         else
9602           archive_cmds_need_lc=yes
9603         fi
9604         allow_undefined_flag=$lt_save_allow_undefined_flag
9605       else
9606         cat conftest.err 1>&5
9607       fi
9608       $RM conftest*
9609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9610 $as_echo "$archive_cmds_need_lc" >&6; }
9611       ;;
9612     esac
9613   fi
9614   ;;
9615 esac
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9775
9776 if test "$GCC" = yes; then
9777   case $host_os in
9778     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9779     *) lt_awk_arg="/^libraries:/" ;;
9780   esac
9781   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9782   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9783     # if the path contains ";" then we assume it to be the separator
9784     # otherwise default to the standard path separator (i.e. ":") - it is
9785     # assumed that no part of a normal pathname contains ";" but that should
9786     # okay in the real world where ";" in dirpaths is itself problematic.
9787     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9788   else
9789     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9790   fi
9791   # Ok, now we have the path, separated by spaces, we can step through it
9792   # and add multilib dir if necessary.
9793   lt_tmp_lt_search_path_spec=
9794   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9795   for lt_sys_path in $lt_search_path_spec; do
9796     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9797       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9798     else
9799       test -d "$lt_sys_path" && \
9800         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9801     fi
9802   done
9803   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9804 BEGIN {RS=" "; FS="/|\n";} {
9805   lt_foo="";
9806   lt_count=0;
9807   for (lt_i = NF; lt_i > 0; lt_i--) {
9808     if ($lt_i != "" && $lt_i != ".") {
9809       if ($lt_i == "..") {
9810         lt_count++;
9811       } else {
9812         if (lt_count == 0) {
9813           lt_foo="/" $lt_i lt_foo;
9814         } else {
9815           lt_count--;
9816         }
9817       }
9818     }
9819   }
9820   if (lt_foo != "") { lt_freq[lt_foo]++; }
9821   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9822 }'`
9823   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9824 else
9825   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9826 fi
9827 library_names_spec=
9828 libname_spec='lib$name'
9829 soname_spec=
9830 shrext_cmds=".so"
9831 postinstall_cmds=
9832 postuninstall_cmds=
9833 finish_cmds=
9834 finish_eval=
9835 shlibpath_var=
9836 shlibpath_overrides_runpath=unknown
9837 version_type=none
9838 dynamic_linker="$host_os ld.so"
9839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9840 need_lib_prefix=unknown
9841 hardcode_into_libs=no
9842
9843 # when you set need_version to no, make sure it does not cause -set_version
9844 # flags to be left without arguments
9845 need_version=unknown
9846
9847 case $host_os in
9848 aix3*)
9849   version_type=linux
9850   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9851   shlibpath_var=LIBPATH
9852
9853   # AIX 3 has no versioning support, so we append a major version to the name.
9854   soname_spec='${libname}${release}${shared_ext}$major'
9855   ;;
9856
9857 aix[4-9]*)
9858   version_type=linux
9859   need_lib_prefix=no
9860   need_version=no
9861   hardcode_into_libs=yes
9862   if test "$host_cpu" = ia64; then
9863     # AIX 5 supports IA64
9864     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9865     shlibpath_var=LD_LIBRARY_PATH
9866   else
9867     # With GCC up to 2.95.x, collect2 would create an import file
9868     # for dependence libraries.  The import file would start with
9869     # the line `#! .'.  This would cause the generated library to
9870     # depend on `.', always an invalid library.  This was fixed in
9871     # development snapshots of GCC prior to 3.0.
9872     case $host_os in
9873       aix4 | aix4.[01] | aix4.[01].*)
9874       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9875            echo ' yes '
9876            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9877         :
9878       else
9879         can_build_shared=no
9880       fi
9881       ;;
9882     esac
9883     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9884     # soname into executable. Probably we can add versioning support to
9885     # collect2, so additional links can be useful in future.
9886     if test "$aix_use_runtimelinking" = yes; then
9887       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9888       # instead of lib<name>.a to let people know that these are not
9889       # typical AIX shared libraries.
9890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891     else
9892       # We preserve .a as extension for shared libraries through AIX4.2
9893       # and later when we are not doing run time linking.
9894       library_names_spec='${libname}${release}.a $libname.a'
9895       soname_spec='${libname}${release}${shared_ext}$major'
9896     fi
9897     shlibpath_var=LIBPATH
9898   fi
9899   ;;
9900
9901 amigaos*)
9902   case $host_cpu in
9903   powerpc)
9904     # Since July 2007 AmigaOS4 officially supports .so libraries.
9905     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907     ;;
9908   m68k)
9909     library_names_spec='$libname.ixlibrary $libname.a'
9910     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9912     ;;
9913   esac
9914   ;;
9915
9916 beos*)
9917   library_names_spec='${libname}${shared_ext}'
9918   dynamic_linker="$host_os ld.so"
9919   shlibpath_var=LIBRARY_PATH
9920   ;;
9921
9922 bsdi[45]*)
9923   version_type=linux
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9931   # the default ld.so.conf also contains /usr/contrib/lib and
9932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9933   # libtool to hard-code these into programs
9934   ;;
9935
9936 cygwin* | mingw* | pw32* | cegcc*)
9937   version_type=windows
9938   shrext_cmds=".dll"
9939   need_version=no
9940   need_lib_prefix=no
9941
9942   case $GCC,$host_os in
9943   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9944     library_names_spec='$libname.dll.a'
9945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9946     postinstall_cmds='base_file=`basename \${file}`~
9947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9948       dldir=$destdir/`dirname \$dlpath`~
9949       test -d \$dldir || mkdir -p \$dldir~
9950       $install_prog $dir/$dlname \$dldir/$dlname~
9951       chmod a+x \$dldir/$dlname~
9952       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9953         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9954       fi'
9955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956       dlpath=$dir/\$dldll~
9957        $RM \$dlpath'
9958     shlibpath_overrides_runpath=yes
9959
9960     case $host_os in
9961     cygwin*)
9962       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9963       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9965       ;;
9966     mingw* | cegcc*)
9967       # MinGW DLLs use traditional 'lib' prefix
9968       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9970       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9971         # It is most probably a Windows format PATH printed by
9972         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9973         # path with ; separators, and with drive letters. We can handle the
9974         # drive letters (cygwin fileutils understands them), so leave them,
9975         # especially as we might pass files found there to a mingw objdump,
9976         # which wouldn't understand a cygwinified path. Ahh.
9977         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9978       else
9979         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9980       fi
9981       ;;
9982     pw32*)
9983       # pw32 DLLs use 'pw' prefix rather than 'lib'
9984       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985       ;;
9986     esac
9987     ;;
9988
9989   *)
9990     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9991     ;;
9992   esac
9993   dynamic_linker='Win32 ld.exe'
9994   # FIXME: first we should search . and the directory the executable is in
9995   shlibpath_var=PATH
9996   ;;
9997
9998 darwin* | rhapsody*)
9999   dynamic_linker="$host_os dyld"
10000   version_type=darwin
10001   need_lib_prefix=no
10002   need_version=no
10003   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10004   soname_spec='${libname}${release}${major}$shared_ext'
10005   shlibpath_overrides_runpath=yes
10006   shlibpath_var=DYLD_LIBRARY_PATH
10007   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10008
10009   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10010   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10011   ;;
10012
10013 dgux*)
10014   version_type=linux
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   ;;
10021
10022 freebsd1*)
10023   dynamic_linker=no
10024   ;;
10025
10026 freebsd* | dragonfly*)
10027   # DragonFly does not have aout.  When/if they implement a new
10028   # versioning mechanism, adjust this.
10029   if test -x /usr/bin/objformat; then
10030     objformat=`/usr/bin/objformat`
10031   else
10032     case $host_os in
10033     freebsd[123]*) objformat=aout ;;
10034     *) objformat=elf ;;
10035     esac
10036   fi
10037   version_type=freebsd-$objformat
10038   case $version_type in
10039     freebsd-elf*)
10040       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10041       need_version=no
10042       need_lib_prefix=no
10043       ;;
10044     freebsd-*)
10045       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10046       need_version=yes
10047       ;;
10048   esac
10049   shlibpath_var=LD_LIBRARY_PATH
10050   case $host_os in
10051   freebsd2*)
10052     shlibpath_overrides_runpath=yes
10053     ;;
10054   freebsd3.[01]* | freebsdelf3.[01]*)
10055     shlibpath_overrides_runpath=yes
10056     hardcode_into_libs=yes
10057     ;;
10058   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10059   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10060     shlibpath_overrides_runpath=no
10061     hardcode_into_libs=yes
10062     ;;
10063   *) # from 4.6 on, and DragonFly
10064     shlibpath_overrides_runpath=yes
10065     hardcode_into_libs=yes
10066     ;;
10067   esac
10068   ;;
10069
10070 gnu*)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   hardcode_into_libs=yes
10078   ;;
10079
10080 hpux9* | hpux10* | hpux11*)
10081   # Give a soname corresponding to the major version so that dld.sl refuses to
10082   # link against other versions.
10083   version_type=sunos
10084   need_lib_prefix=no
10085   need_version=no
10086   case $host_cpu in
10087   ia64*)
10088     shrext_cmds='.so'
10089     hardcode_into_libs=yes
10090     dynamic_linker="$host_os dld.so"
10091     shlibpath_var=LD_LIBRARY_PATH
10092     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094     soname_spec='${libname}${release}${shared_ext}$major'
10095     if test "X$HPUX_IA64_MODE" = X32; then
10096       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10097     else
10098       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10099     fi
10100     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10101     ;;
10102   hppa*64*)
10103     shrext_cmds='.sl'
10104     hardcode_into_libs=yes
10105     dynamic_linker="$host_os dld.sl"
10106     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109     soname_spec='${libname}${release}${shared_ext}$major'
10110     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10111     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10112     ;;
10113   *)
10114     shrext_cmds='.sl'
10115     dynamic_linker="$host_os dld.sl"
10116     shlibpath_var=SHLIB_PATH
10117     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119     soname_spec='${libname}${release}${shared_ext}$major'
10120     ;;
10121   esac
10122   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10123   postinstall_cmds='chmod 555 $lib'
10124   ;;
10125
10126 interix[3-9]*)
10127   version_type=linux
10128   need_lib_prefix=no
10129   need_version=no
10130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10131   soname_spec='${libname}${release}${shared_ext}$major'
10132   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10133   shlibpath_var=LD_LIBRARY_PATH
10134   shlibpath_overrides_runpath=no
10135   hardcode_into_libs=yes
10136   ;;
10137
10138 irix5* | irix6* | nonstopux*)
10139   case $host_os in
10140     nonstopux*) version_type=nonstopux ;;
10141     *)
10142         if test "$lt_cv_prog_gnu_ld" = yes; then
10143                 version_type=linux
10144         else
10145                 version_type=irix
10146         fi ;;
10147   esac
10148   need_lib_prefix=no
10149   need_version=no
10150   soname_spec='${libname}${release}${shared_ext}$major'
10151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10152   case $host_os in
10153   irix5* | nonstopux*)
10154     libsuff= shlibsuff=
10155     ;;
10156   *)
10157     case $LD in # libtool.m4 will add one of these switches to LD
10158     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10159       libsuff= shlibsuff= libmagic=32-bit;;
10160     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10161       libsuff=32 shlibsuff=N32 libmagic=N32;;
10162     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10163       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10164     *) libsuff= shlibsuff= libmagic=never-match;;
10165     esac
10166     ;;
10167   esac
10168   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10169   shlibpath_overrides_runpath=no
10170   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10171   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10172   hardcode_into_libs=yes
10173   ;;
10174
10175 # No shared lib support for Linux oldld, aout, or coff.
10176 linux*oldld* | linux*aout* | linux*coff*)
10177   dynamic_linker=no
10178   ;;
10179
10180 # This must be Linux ELF.
10181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10182   version_type=linux
10183   need_lib_prefix=no
10184   need_version=no
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186   soname_spec='${libname}${release}${shared_ext}$major'
10187   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10188   shlibpath_var=LD_LIBRARY_PATH
10189   shlibpath_overrides_runpath=no
10190   # Some binutils ld are patched to set DT_RUNPATH
10191   save_LDFLAGS=$LDFLAGS
10192   save_libdir=$libdir
10193   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10194        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h.  */
10197
10198 int
10199 main ()
10200 {
10201
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10208   shlibpath_overrides_runpath=yes
10209 fi
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213   LDFLAGS=$save_LDFLAGS
10214   libdir=$save_libdir
10215
10216   # This implies no fast_install, which is unacceptable.
10217   # Some rework will be needed to allow for fast_install
10218   # before this can be enabled.
10219   hardcode_into_libs=yes
10220
10221   # Append ld.so.conf contents to the search path
10222   if test -f /etc/ld.so.conf; then
10223     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10224     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10225   fi
10226
10227   # We used to test for /lib/ld.so.1 and disable shared libraries on
10228   # powerpc, because MkLinux only supported shared libraries with the
10229   # GNU dynamic linker.  Since this was broken with cross compilers,
10230   # most powerpc-linux boxes support dynamic linking these days and
10231   # people can always --disable-shared, the test was removed, and we
10232   # assume the GNU/Linux dynamic linker is in use.
10233   dynamic_linker='GNU/Linux ld.so'
10234   ;;
10235
10236 netbsdelf*-gnu)
10237   version_type=linux
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   shlibpath_overrides_runpath=no
10244   hardcode_into_libs=yes
10245   dynamic_linker='NetBSD ld.elf_so'
10246   ;;
10247
10248 netbsd*)
10249   version_type=sunos
10250   need_lib_prefix=no
10251   need_version=no
10252   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255     dynamic_linker='NetBSD (a.out) ld.so'
10256   else
10257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258     soname_spec='${libname}${release}${shared_ext}$major'
10259     dynamic_linker='NetBSD ld.elf_so'
10260   fi
10261   shlibpath_var=LD_LIBRARY_PATH
10262   shlibpath_overrides_runpath=yes
10263   hardcode_into_libs=yes
10264   ;;
10265
10266 newsos6)
10267   version_type=linux
10268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=yes
10271   ;;
10272
10273 *nto* | *qnx*)
10274   version_type=qnx
10275   need_lib_prefix=no
10276   need_version=no
10277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278   soname_spec='${libname}${release}${shared_ext}$major'
10279   shlibpath_var=LD_LIBRARY_PATH
10280   shlibpath_overrides_runpath=no
10281   hardcode_into_libs=yes
10282   dynamic_linker='ldqnx.so'
10283   ;;
10284
10285 openbsd*)
10286   version_type=sunos
10287   sys_lib_dlsearch_path_spec="/usr/lib"
10288   need_lib_prefix=no
10289   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10290   case $host_os in
10291     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10292     *)                          need_version=no  ;;
10293   esac
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298     case $host_os in
10299       openbsd2.[89] | openbsd2.[89].*)
10300         shlibpath_overrides_runpath=no
10301         ;;
10302       *)
10303         shlibpath_overrides_runpath=yes
10304         ;;
10305       esac
10306   else
10307     shlibpath_overrides_runpath=yes
10308   fi
10309   ;;
10310
10311 os2*)
10312   libname_spec='$name'
10313   shrext_cmds=".dll"
10314   need_lib_prefix=no
10315   library_names_spec='$libname${shared_ext} $libname.a'
10316   dynamic_linker='OS/2 ld.exe'
10317   shlibpath_var=LIBPATH
10318   ;;
10319
10320 osf3* | osf4* | osf5*)
10321   version_type=osf
10322   need_lib_prefix=no
10323   need_version=no
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   shlibpath_var=LD_LIBRARY_PATH
10327   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10329   ;;
10330
10331 rdos*)
10332   dynamic_linker=no
10333   ;;
10334
10335 solaris*)
10336   version_type=linux
10337   need_lib_prefix=no
10338   need_version=no
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   shlibpath_overrides_runpath=yes
10343   hardcode_into_libs=yes
10344   # ldd complains unless libraries are executable
10345   postinstall_cmds='chmod +x $lib'
10346   ;;
10347
10348 sunos4*)
10349   version_type=sunos
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10351   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   shlibpath_overrides_runpath=yes
10354   if test "$with_gnu_ld" = yes; then
10355     need_lib_prefix=no
10356   fi
10357   need_version=yes
10358   ;;
10359
10360 sysv4 | sysv4.3*)
10361   version_type=linux
10362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   case $host_vendor in
10366     sni)
10367       shlibpath_overrides_runpath=no
10368       need_lib_prefix=no
10369       runpath_var=LD_RUN_PATH
10370       ;;
10371     siemens)
10372       need_lib_prefix=no
10373       ;;
10374     motorola)
10375       need_lib_prefix=no
10376       need_version=no
10377       shlibpath_overrides_runpath=no
10378       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10379       ;;
10380   esac
10381   ;;
10382
10383 sysv4*MP*)
10384   if test -d /usr/nec ;then
10385     version_type=linux
10386     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10387     soname_spec='$libname${shared_ext}.$major'
10388     shlibpath_var=LD_LIBRARY_PATH
10389   fi
10390   ;;
10391
10392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10393   version_type=freebsd-elf
10394   need_lib_prefix=no
10395   need_version=no
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10397   soname_spec='${libname}${release}${shared_ext}$major'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   shlibpath_overrides_runpath=yes
10400   hardcode_into_libs=yes
10401   if test "$with_gnu_ld" = yes; then
10402     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10403   else
10404     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10405     case $host_os in
10406       sco3.2v5*)
10407         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10408         ;;
10409     esac
10410   fi
10411   sys_lib_dlsearch_path_spec='/usr/lib'
10412   ;;
10413
10414 tpf*)
10415   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10416   version_type=linux
10417   need_lib_prefix=no
10418   need_version=no
10419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   shlibpath_overrides_runpath=no
10422   hardcode_into_libs=yes
10423   ;;
10424
10425 uts4*)
10426   version_type=linux
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428   soname_spec='${libname}${release}${shared_ext}$major'
10429   shlibpath_var=LD_LIBRARY_PATH
10430   ;;
10431
10432 *)
10433   dynamic_linker=no
10434   ;;
10435 esac
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10437 $as_echo "$dynamic_linker" >&6; }
10438 test "$dynamic_linker" = no && can_build_shared=no
10439
10440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10441 if test "$GCC" = yes; then
10442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10443 fi
10444
10445 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10446   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10447 fi
10448 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10449   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10450 fi
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10540 hardcode_action=
10541 if test -n "$hardcode_libdir_flag_spec" ||
10542    test -n "$runpath_var" ||
10543    test "X$hardcode_automatic" = "Xyes" ; then
10544
10545   # We can hardcode non-existent directories.
10546   if test "$hardcode_direct" != no &&
10547      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10548      # have to relink, otherwise we might link with an installed library
10549      # when we should be linking with a yet-to-be-installed one
10550      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10551      test "$hardcode_minus_L" != no; then
10552     # Linking always hardcodes the temporary library directory.
10553     hardcode_action=relink
10554   else
10555     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10556     hardcode_action=immediate
10557   fi
10558 else
10559   # We cannot hardcode anything, or else we can only hardcode existing
10560   # directories.
10561   hardcode_action=unsupported
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10564 $as_echo "$hardcode_action" >&6; }
10565
10566 if test "$hardcode_action" = relink ||
10567    test "$inherit_rpath" = yes; then
10568   # Fast installation is not supported
10569   enable_fast_install=no
10570 elif test "$shlibpath_overrides_runpath" = yes ||
10571      test "$enable_shared" = no; then
10572   # Fast installation is not necessary
10573   enable_fast_install=needless
10574 fi
10575
10576
10577
10578
10579
10580
10581   if test "x$enable_dlopen" != xyes; then
10582   enable_dlopen=unknown
10583   enable_dlopen_self=unknown
10584   enable_dlopen_self_static=unknown
10585 else
10586   lt_cv_dlopen=no
10587   lt_cv_dlopen_libs=
10588
10589   case $host_os in
10590   beos*)
10591     lt_cv_dlopen="load_add_on"
10592     lt_cv_dlopen_libs=
10593     lt_cv_dlopen_self=yes
10594     ;;
10595
10596   mingw* | pw32* | cegcc*)
10597     lt_cv_dlopen="LoadLibrary"
10598     lt_cv_dlopen_libs=
10599     ;;
10600
10601   cygwin*)
10602     lt_cv_dlopen="dlopen"
10603     lt_cv_dlopen_libs=
10604     ;;
10605
10606   darwin*)
10607   # if libdl is installed we need to link against it
10608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10610 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-ldl  $LIBS"
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h.  */
10617
10618 /* Override any GCC internal prototype to avoid an error.
10619    Use char because int might match the return type of a GCC
10620    builtin and then its argument prototype would still apply.  */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 char dlopen ();
10625 int
10626 main ()
10627 {
10628 return dlopen ();
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"; then :
10634   ac_cv_lib_dl_dlopen=yes
10635 else
10636   ac_cv_lib_dl_dlopen=no
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext \
10639     conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10641 fi
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10644 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10645   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10646 else
10647
10648     lt_cv_dlopen="dyld"
10649     lt_cv_dlopen_libs=
10650     lt_cv_dlopen_self=yes
10651
10652 fi
10653
10654     ;;
10655
10656   *)
10657     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10658 if test "x$ac_cv_func_shl_load" = x""yes; then :
10659   lt_cv_dlopen="shl_load"
10660 else
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10662 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10663 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666   ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-ldld  $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h.  */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672    Use char because int might match the return type of a GCC
10673    builtin and then its argument prototype would still apply.  */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char shl_load ();
10678 int
10679 main ()
10680 {
10681 return shl_load ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687   ac_cv_lib_dld_shl_load=yes
10688 else
10689   ac_cv_lib_dld_shl_load=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692     conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10696 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10697 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10698   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10699 else
10700   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10701 if test "x$ac_cv_func_dlopen" = x""yes; then :
10702   lt_cv_dlopen="dlopen"
10703 else
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-ldl  $LIBS"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char dlopen ();
10721 int
10722 main ()
10723 {
10724 return dlopen ();
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"; then :
10730   ac_cv_lib_dl_dlopen=yes
10731 else
10732   ac_cv_lib_dl_dlopen=no
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735     conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10737 fi
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10739 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10740 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10744 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10745 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lsvld  $LIBS"
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char dlopen ();
10760 int
10761 main ()
10762 {
10763 return dlopen ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769   ac_cv_lib_svld_dlopen=yes
10770 else
10771   ac_cv_lib_svld_dlopen=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774     conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10779 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10780   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10784 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-ldld  $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char dld_link ();
10799 int
10800 main ()
10801 {
10802 return dld_link ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808   ac_cv_lib_dld_dld_link=yes
10809 else
10810   ac_cv_lib_dld_dld_link=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813     conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10817 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10818 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10819   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10820 fi
10821
10822
10823 fi
10824
10825
10826 fi
10827
10828
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837     ;;
10838   esac
10839
10840   if test "x$lt_cv_dlopen" != xno; then
10841     enable_dlopen=yes
10842   else
10843     enable_dlopen=no
10844   fi
10845
10846   case $lt_cv_dlopen in
10847   dlopen)
10848     save_CPPFLAGS="$CPPFLAGS"
10849     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10850
10851     save_LDFLAGS="$LDFLAGS"
10852     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10853
10854     save_LIBS="$LIBS"
10855     LIBS="$lt_cv_dlopen_libs $LIBS"
10856
10857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10858 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10859 if test "${lt_cv_dlopen_self+set}" = set; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862           if test "$cross_compiling" = yes; then :
10863   lt_cv_dlopen_self=cross
10864 else
10865   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10866   lt_status=$lt_dlunknown
10867   cat > conftest.$ac_ext <<_LT_EOF
10868 #line 10868 "configure"
10869 #include "confdefs.h"
10870
10871 #if HAVE_DLFCN_H
10872 #include <dlfcn.h>
10873 #endif
10874
10875 #include <stdio.h>
10876
10877 #ifdef RTLD_GLOBAL
10878 #  define LT_DLGLOBAL           RTLD_GLOBAL
10879 #else
10880 #  ifdef DL_GLOBAL
10881 #    define LT_DLGLOBAL         DL_GLOBAL
10882 #  else
10883 #    define LT_DLGLOBAL         0
10884 #  endif
10885 #endif
10886
10887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10888    find out it does not work in some platform. */
10889 #ifndef LT_DLLAZY_OR_NOW
10890 #  ifdef RTLD_LAZY
10891 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10892 #  else
10893 #    ifdef DL_LAZY
10894 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10895 #    else
10896 #      ifdef RTLD_NOW
10897 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10898 #      else
10899 #        ifdef DL_NOW
10900 #          define LT_DLLAZY_OR_NOW      DL_NOW
10901 #        else
10902 #          define LT_DLLAZY_OR_NOW      0
10903 #        endif
10904 #      endif
10905 #    endif
10906 #  endif
10907 #endif
10908
10909 void fnord() { int i=42;}
10910 int main ()
10911 {
10912   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10913   int status = $lt_dlunknown;
10914
10915   if (self)
10916     {
10917       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10918       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10919       /* dlclose (self); */
10920     }
10921   else
10922     puts (dlerror ());
10923
10924   return status;
10925 }
10926 _LT_EOF
10927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10928   (eval $ac_link) 2>&5
10929   ac_status=$?
10930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10931   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10932     (./conftest; exit; ) >&5 2>/dev/null
10933     lt_status=$?
10934     case x$lt_status in
10935       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10936       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10937       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10938     esac
10939   else :
10940     # compilation failed
10941     lt_cv_dlopen_self=no
10942   fi
10943 fi
10944 rm -fr conftest*
10945
10946
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10949 $as_echo "$lt_cv_dlopen_self" >&6; }
10950
10951     if test "x$lt_cv_dlopen_self" = xyes; then
10952       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10953       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10954 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10955 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958           if test "$cross_compiling" = yes; then :
10959   lt_cv_dlopen_self_static=cross
10960 else
10961   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10962   lt_status=$lt_dlunknown
10963   cat > conftest.$ac_ext <<_LT_EOF
10964 #line 10964 "configure"
10965 #include "confdefs.h"
10966
10967 #if HAVE_DLFCN_H
10968 #include <dlfcn.h>
10969 #endif
10970
10971 #include <stdio.h>
10972
10973 #ifdef RTLD_GLOBAL
10974 #  define LT_DLGLOBAL           RTLD_GLOBAL
10975 #else
10976 #  ifdef DL_GLOBAL
10977 #    define LT_DLGLOBAL         DL_GLOBAL
10978 #  else
10979 #    define LT_DLGLOBAL         0
10980 #  endif
10981 #endif
10982
10983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10984    find out it does not work in some platform. */
10985 #ifndef LT_DLLAZY_OR_NOW
10986 #  ifdef RTLD_LAZY
10987 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10988 #  else
10989 #    ifdef DL_LAZY
10990 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10991 #    else
10992 #      ifdef RTLD_NOW
10993 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10994 #      else
10995 #        ifdef DL_NOW
10996 #          define LT_DLLAZY_OR_NOW      DL_NOW
10997 #        else
10998 #          define LT_DLLAZY_OR_NOW      0
10999 #        endif
11000 #      endif
11001 #    endif
11002 #  endif
11003 #endif
11004
11005 void fnord() { int i=42;}
11006 int main ()
11007 {
11008   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11009   int status = $lt_dlunknown;
11010
11011   if (self)
11012     {
11013       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11014       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11015       /* dlclose (self); */
11016     }
11017   else
11018     puts (dlerror ());
11019
11020   return status;
11021 }
11022 _LT_EOF
11023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11024   (eval $ac_link) 2>&5
11025   ac_status=$?
11026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11027   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11028     (./conftest; exit; ) >&5 2>/dev/null
11029     lt_status=$?
11030     case x$lt_status in
11031       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11032       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11033       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11034     esac
11035   else :
11036     # compilation failed
11037     lt_cv_dlopen_self_static=no
11038   fi
11039 fi
11040 rm -fr conftest*
11041
11042
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11045 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11046     fi
11047
11048     CPPFLAGS="$save_CPPFLAGS"
11049     LDFLAGS="$save_LDFLAGS"
11050     LIBS="$save_LIBS"
11051     ;;
11052   esac
11053
11054   case $lt_cv_dlopen_self in
11055   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11056   *) enable_dlopen_self=unknown ;;
11057   esac
11058
11059   case $lt_cv_dlopen_self_static in
11060   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11061   *) enable_dlopen_self_static=unknown ;;
11062   esac
11063 fi
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 striplib=
11082 old_striplib=
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11084 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11085 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11086   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11087   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11089 $as_echo "yes" >&6; }
11090 else
11091 # FIXME - insert some real tests, host_os isn't really good enough
11092   case $host_os in
11093   darwin*)
11094     if test -n "$STRIP" ; then
11095       striplib="$STRIP -x"
11096       old_striplib="$STRIP -S"
11097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11098 $as_echo "yes" >&6; }
11099     else
11100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11102     fi
11103     ;;
11104   *)
11105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107     ;;
11108   esac
11109 fi
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122   # Report which library types will actually be built
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11126 $as_echo "$can_build_shared" >&6; }
11127
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11129 $as_echo_n "checking whether to build shared libraries... " >&6; }
11130   test "$can_build_shared" = "no" && enable_shared=no
11131
11132   # On AIX, shared libraries and static libraries use the same namespace, and
11133   # are all built from PIC.
11134   case $host_os in
11135   aix3*)
11136     test "$enable_shared" = yes && enable_static=no
11137     if test -n "$RANLIB"; then
11138       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11139       postinstall_cmds='$RANLIB $lib'
11140     fi
11141     ;;
11142
11143   aix[4-9]*)
11144     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11145       test "$enable_shared" = yes && enable_static=no
11146     fi
11147     ;;
11148   esac
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11150 $as_echo "$enable_shared" >&6; }
11151
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11153 $as_echo_n "checking whether to build static libraries... " >&6; }
11154   # Make sure either enable_shared or enable_static is yes.
11155   test "$enable_shared" = yes || enable_static=yes
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11157 $as_echo "$enable_static" >&6; }
11158
11159
11160
11161
11162 fi
11163 ac_ext=c
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11168
11169 CC="$lt_save_CC"
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183         ac_config_commands="$ac_config_commands libtool"
11184
11185
11186
11187
11188 # Only expand once:
11189
11190
11191
11192
11193
11194
11195   for ac_header in $ac_header_list
11196 do :
11197   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11199 "
11200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11201   cat >>confdefs.h <<_ACEOF
11202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11203 _ACEOF
11204
11205 fi
11206
11207 done
11208
11209
11210
11211
11212
11213
11214
11215
11216 for ac_func in getpagesize
11217 do :
11218   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11219 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11220   cat >>confdefs.h <<_ACEOF
11221 #define HAVE_GETPAGESIZE 1
11222 _ACEOF
11223
11224 fi
11225 done
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11228 $as_echo_n "checking for working mmap... " >&6; }
11229 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   if test "$cross_compiling" = yes; then :
11233   ac_cv_func_mmap_fixed_mapped=no
11234 else
11235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h.  */
11237 $ac_includes_default
11238 /* malloc might have been renamed as rpl_malloc. */
11239 #undef malloc
11240
11241 /* Thanks to Mike Haertel and Jim Avera for this test.
11242    Here is a matrix of mmap possibilities:
11243         mmap private not fixed
11244         mmap private fixed at somewhere currently unmapped
11245         mmap private fixed at somewhere already mapped
11246         mmap shared not fixed
11247         mmap shared fixed at somewhere currently unmapped
11248         mmap shared fixed at somewhere already mapped
11249    For private mappings, we should verify that changes cannot be read()
11250    back from the file, nor mmap's back from the file at a different
11251    address.  (There have been systems where private was not correctly
11252    implemented like the infamous i386 svr4.0, and systems where the
11253    VM page cache was not coherent with the file system buffer cache
11254    like early versions of FreeBSD and possibly contemporary NetBSD.)
11255    For shared mappings, we should conversely verify that changes get
11256    propagated back to all the places they're supposed to be.
11257
11258    Grep wants private fixed already mapped.
11259    The main things grep needs to know about mmap are:
11260    * does it exist and is it safe to write into the mmap'd area
11261    * how to use it (BSD variants)  */
11262
11263 #include <fcntl.h>
11264 #include <sys/mman.h>
11265
11266 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11267 char *malloc ();
11268 #endif
11269
11270 /* This mess was copied from the GNU getpagesize.h.  */
11271 #ifndef HAVE_GETPAGESIZE
11272 # ifdef _SC_PAGESIZE
11273 #  define getpagesize() sysconf(_SC_PAGESIZE)
11274 # else /* no _SC_PAGESIZE */
11275 #  ifdef HAVE_SYS_PARAM_H
11276 #   include <sys/param.h>
11277 #   ifdef EXEC_PAGESIZE
11278 #    define getpagesize() EXEC_PAGESIZE
11279 #   else /* no EXEC_PAGESIZE */
11280 #    ifdef NBPG
11281 #     define getpagesize() NBPG * CLSIZE
11282 #     ifndef CLSIZE
11283 #      define CLSIZE 1
11284 #     endif /* no CLSIZE */
11285 #    else /* no NBPG */
11286 #     ifdef NBPC
11287 #      define getpagesize() NBPC
11288 #     else /* no NBPC */
11289 #      ifdef PAGESIZE
11290 #       define getpagesize() PAGESIZE
11291 #      endif /* PAGESIZE */
11292 #     endif /* no NBPC */
11293 #    endif /* no NBPG */
11294 #   endif /* no EXEC_PAGESIZE */
11295 #  else /* no HAVE_SYS_PARAM_H */
11296 #   define getpagesize() 8192   /* punt totally */
11297 #  endif /* no HAVE_SYS_PARAM_H */
11298 # endif /* no _SC_PAGESIZE */
11299
11300 #endif /* no HAVE_GETPAGESIZE */
11301
11302 int
11303 main ()
11304 {
11305   char *data, *data2, *data3;
11306   const char *cdata2;
11307   int i, pagesize;
11308   int fd, fd2;
11309
11310   pagesize = getpagesize ();
11311
11312   /* First, make a file with some known garbage in it. */
11313   data = (char *) malloc (pagesize);
11314   if (!data)
11315     return 1;
11316   for (i = 0; i < pagesize; ++i)
11317     *(data + i) = rand ();
11318   umask (0);
11319   fd = creat ("conftest.mmap", 0600);
11320   if (fd < 0)
11321     return 2;
11322   if (write (fd, data, pagesize) != pagesize)
11323     return 3;
11324   close (fd);
11325
11326   /* Next, check that the tail of a page is zero-filled.  File must have
11327      non-zero length, otherwise we risk SIGBUS for entire page.  */
11328   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11329   if (fd2 < 0)
11330     return 4;
11331   cdata2 = "";
11332   if (write (fd2, cdata2, 1) != 1)
11333     return 5;
11334   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11335   if (data2 == MAP_FAILED)
11336     return 6;
11337   for (i = 0; i < pagesize; ++i)
11338     if (*(data2 + i))
11339       return 7;
11340   close (fd2);
11341   if (munmap (data2, pagesize))
11342     return 8;
11343
11344   /* Next, try to mmap the file at a fixed address which already has
11345      something else allocated at it.  If we can, also make sure that
11346      we see the same garbage.  */
11347   fd = open ("conftest.mmap", O_RDWR);
11348   if (fd < 0)
11349     return 9;
11350   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11351                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11352     return 10;
11353   for (i = 0; i < pagesize; ++i)
11354     if (*(data + i) != *(data2 + i))
11355       return 11;
11356
11357   /* Finally, make sure that changes to the mapped area do not
11358      percolate back to the file as seen by read().  (This is a bug on
11359      some variants of i386 svr4.0.)  */
11360   for (i = 0; i < pagesize; ++i)
11361     *(data2 + i) = *(data2 + i) + 1;
11362   data3 = (char *) malloc (pagesize);
11363   if (!data3)
11364     return 12;
11365   if (read (fd, data3, pagesize) != pagesize)
11366     return 13;
11367   for (i = 0; i < pagesize; ++i)
11368     if (*(data + i) != *(data3 + i))
11369       return 14;
11370   close (fd);
11371   return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_run "$LINENO"; then :
11375   ac_cv_func_mmap_fixed_mapped=yes
11376 else
11377   ac_cv_func_mmap_fixed_mapped=no
11378 fi
11379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11380   conftest.$ac_objext conftest.beam conftest.$ac_ext
11381 fi
11382
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11385 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11386 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11387
11388 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11389
11390 fi
11391 rm -f conftest.mmap conftest.txt
11392
11393 # Check whether --enable-largefile was given.
11394 if test "${enable_largefile+set}" = set; then :
11395   enableval=$enable_largefile;
11396 fi
11397
11398 if test "$enable_largefile" != no; then
11399
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11401 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11402 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11403   $as_echo_n "(cached) " >&6
11404 else
11405   ac_cv_sys_largefile_CC=no
11406      if test "$GCC" != yes; then
11407        ac_save_CC=$CC
11408        while :; do
11409          # IRIX 6.2 and later do not support large files by default,
11410          # so use the C compiler's -n32 option if that helps.
11411          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h.  */
11413 #include <sys/types.h>
11414  /* Check that off_t can represent 2**63 - 1 correctly.
11415     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11416     since some C++ compilers masquerading as C compilers
11417     incorrectly reject 9223372036854775807.  */
11418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11419   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11420                        && LARGE_OFF_T % 2147483647 == 1)
11421                       ? 1 : -1];
11422 int
11423 main ()
11424 {
11425
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430          if ac_fn_c_try_compile "$LINENO"; then :
11431   break
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext
11434          CC="$CC -n32"
11435          if ac_fn_c_try_compile "$LINENO"; then :
11436   ac_cv_sys_largefile_CC=' -n32'; break
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext
11439          break
11440        done
11441        CC=$ac_save_CC
11442        rm -f conftest.$ac_ext
11443     fi
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11446 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11447   if test "$ac_cv_sys_largefile_CC" != no; then
11448     CC=$CC$ac_cv_sys_largefile_CC
11449   fi
11450
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11452 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11454   $as_echo_n "(cached) " >&6
11455 else
11456   while :; do
11457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h.  */
11459 #include <sys/types.h>
11460  /* Check that off_t can represent 2**63 - 1 correctly.
11461     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11462     since some C++ compilers masquerading as C compilers
11463     incorrectly reject 9223372036854775807.  */
11464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11465   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11466                        && LARGE_OFF_T % 2147483647 == 1)
11467                       ? 1 : -1];
11468 int
11469 main ()
11470 {
11471
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_compile "$LINENO"; then :
11477   ac_cv_sys_file_offset_bits=no; break
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h.  */
11482 #define _FILE_OFFSET_BITS 64
11483 #include <sys/types.h>
11484  /* Check that off_t can represent 2**63 - 1 correctly.
11485     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11486     since some C++ compilers masquerading as C compilers
11487     incorrectly reject 9223372036854775807.  */
11488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11489   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11490                        && LARGE_OFF_T % 2147483647 == 1)
11491                       ? 1 : -1];
11492 int
11493 main ()
11494 {
11495
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_compile "$LINENO"; then :
11501   ac_cv_sys_file_offset_bits=64; break
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504   ac_cv_sys_file_offset_bits=unknown
11505   break
11506 done
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11509 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11510 case $ac_cv_sys_file_offset_bits in #(
11511   no | unknown) ;;
11512   *)
11513 cat >>confdefs.h <<_ACEOF
11514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11515 _ACEOF
11516 ;;
11517 esac
11518 rm -rf conftest*
11519   if test $ac_cv_sys_file_offset_bits = unknown; then
11520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11521 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11522 if test "${ac_cv_sys_large_files+set}" = set; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   while :; do
11526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h.  */
11528 #include <sys/types.h>
11529  /* Check that off_t can represent 2**63 - 1 correctly.
11530     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11531     since some C++ compilers masquerading as C compilers
11532     incorrectly reject 9223372036854775807.  */
11533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11534   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11535                        && LARGE_OFF_T % 2147483647 == 1)
11536                       ? 1 : -1];
11537 int
11538 main ()
11539 {
11540
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_compile "$LINENO"; then :
11546   ac_cv_sys_large_files=no; break
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551 #define _LARGE_FILES 1
11552 #include <sys/types.h>
11553  /* Check that off_t can represent 2**63 - 1 correctly.
11554     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11555     since some C++ compilers masquerading as C compilers
11556     incorrectly reject 9223372036854775807.  */
11557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11558   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11559                        && LARGE_OFF_T % 2147483647 == 1)
11560                       ? 1 : -1];
11561 int
11562 main ()
11563 {
11564
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570   ac_cv_sys_large_files=1; break
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573   ac_cv_sys_large_files=unknown
11574   break
11575 done
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11578 $as_echo "$ac_cv_sys_large_files" >&6; }
11579 case $ac_cv_sys_large_files in #(
11580   no | unknown) ;;
11581   *)
11582 cat >>confdefs.h <<_ACEOF
11583 #define _LARGE_FILES $ac_cv_sys_large_files
11584 _ACEOF
11585 ;;
11586 esac
11587 rm -rf conftest*
11588   fi
11589 fi
11590
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
11593 $as_echo_n "checking operating system... " >&6; }
11594 case "$host_os" in
11595      mingw*|cygwin*)
11596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
11597 $as_echo "Win32" >&6; }
11598         UUID=uuid
11599         ;;
11600      darwin*)
11601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
11602 $as_echo "Darwin" >&6; }
11603         UUID=
11604         ;;
11605      *)
11606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
11607 $as_echo "$host_os" >&6; }
11608         UUID=uuid
11609         ;;
11610 esac
11611
11612
11613
11614
11615
11616
11617
11618 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11619         if test -n "$ac_tool_prefix"; then
11620   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11621 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   case $PKG_CONFIG in
11628   [\\/]* | ?:[\\/]*)
11629   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11630   ;;
11631   *)
11632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635   IFS=$as_save_IFS
11636   test -z "$as_dir" && as_dir=.
11637     for ac_exec_ext in '' $ac_executable_extensions; do
11638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641     break 2
11642   fi
11643 done
11644   done
11645 IFS=$as_save_IFS
11646
11647   ;;
11648 esac
11649 fi
11650 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11651 if test -n "$PKG_CONFIG"; then
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11653 $as_echo "$PKG_CONFIG" >&6; }
11654 else
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658
11659
11660 fi
11661 if test -z "$ac_cv_path_PKG_CONFIG"; then
11662   ac_pt_PKG_CONFIG=$PKG_CONFIG
11663   # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   case $ac_pt_PKG_CONFIG in
11671   [\\/]* | ?:[\\/]*)
11672   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11673   ;;
11674   *)
11675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680     for ac_exec_ext in '' $ac_executable_extensions; do
11681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684     break 2
11685   fi
11686 done
11687   done
11688 IFS=$as_save_IFS
11689
11690   ;;
11691 esac
11692 fi
11693 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11694 if test -n "$ac_pt_PKG_CONFIG"; then
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11696 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11697 else
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11700 fi
11701
11702   if test "x$ac_pt_PKG_CONFIG" = x; then
11703     PKG_CONFIG=""
11704   else
11705     case $cross_compiling:$ac_tool_warned in
11706 yes:)
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11710 esac
11711     PKG_CONFIG=$ac_pt_PKG_CONFIG
11712   fi
11713 else
11714   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11715 fi
11716
11717 fi
11718 if test -n "$PKG_CONFIG"; then
11719         _pkg_min_version=0.9.0
11720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11721 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11722         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11723                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11725         else
11726                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728                 PKG_CONFIG=""
11729         fi
11730 fi
11731
11732 pkg_failed=no
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
11734 $as_echo_n "checking for LIBGUPNP... " >&6; }
11735
11736 if test -n "$LIBGUPNP_CFLAGS"; then
11737     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
11738  elif test -n "$PKG_CONFIG"; then
11739     if test -n "$PKG_CONFIG" && \
11740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.18 \\
11741                             gobject-2.0 >= 2.18 \\
11742                             gmodule-2.0 \\
11743                             gssdp-1.0 >= 0.7.1 \\
11744                             libsoup-2.4 >= 2.4.1 \\
11745                             libxml-2.0 \\
11746                             \$UUID\""; } >&5
11747   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.18 \
11748                             gobject-2.0 >= 2.18 \
11749                             gmodule-2.0 \
11750                             gssdp-1.0 >= 0.7.1 \
11751                             libsoup-2.4 >= 2.4.1 \
11752                             libxml-2.0 \
11753                             $UUID") 2>&5
11754   ac_status=$?
11755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756   test $ac_status = 0; }; then
11757   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.18 \
11758                             gobject-2.0 >= 2.18 \
11759                             gmodule-2.0 \
11760                             gssdp-1.0 >= 0.7.1 \
11761                             libsoup-2.4 >= 2.4.1 \
11762                             libxml-2.0 \
11763                             $UUID" 2>/dev/null`
11764 else
11765   pkg_failed=yes
11766 fi
11767  else
11768     pkg_failed=untried
11769 fi
11770 if test -n "$LIBGUPNP_LIBS"; then
11771     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
11772  elif test -n "$PKG_CONFIG"; then
11773     if test -n "$PKG_CONFIG" && \
11774     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.18 \\
11775                             gobject-2.0 >= 2.18 \\
11776                             gmodule-2.0 \\
11777                             gssdp-1.0 >= 0.7.1 \\
11778                             libsoup-2.4 >= 2.4.1 \\
11779                             libxml-2.0 \\
11780                             \$UUID\""; } >&5
11781   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.18 \
11782                             gobject-2.0 >= 2.18 \
11783                             gmodule-2.0 \
11784                             gssdp-1.0 >= 0.7.1 \
11785                             libsoup-2.4 >= 2.4.1 \
11786                             libxml-2.0 \
11787                             $UUID") 2>&5
11788   ac_status=$?
11789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790   test $ac_status = 0; }; then
11791   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.18 \
11792                             gobject-2.0 >= 2.18 \
11793                             gmodule-2.0 \
11794                             gssdp-1.0 >= 0.7.1 \
11795                             libsoup-2.4 >= 2.4.1 \
11796                             libxml-2.0 \
11797                             $UUID" 2>/dev/null`
11798 else
11799   pkg_failed=yes
11800 fi
11801  else
11802     pkg_failed=untried
11803 fi
11804
11805
11806
11807 if test $pkg_failed = yes; then
11808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810
11811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11812         _pkg_short_errors_supported=yes
11813 else
11814         _pkg_short_errors_supported=no
11815 fi
11816         if test $_pkg_short_errors_supported = yes; then
11817                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.18 \
11818                             gobject-2.0 >= 2.18 \
11819                             gmodule-2.0 \
11820                             gssdp-1.0 >= 0.7.1 \
11821                             libsoup-2.4 >= 2.4.1 \
11822                             libxml-2.0 \
11823                             $UUID" 2>&1`
11824         else
11825                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.18 \
11826                             gobject-2.0 >= 2.18 \
11827                             gmodule-2.0 \
11828                             gssdp-1.0 >= 0.7.1 \
11829                             libsoup-2.4 >= 2.4.1 \
11830                             libxml-2.0 \
11831                             $UUID" 2>&1`
11832         fi
11833         # Put the nasty error message in config.log where it belongs
11834         echo "$LIBGUPNP_PKG_ERRORS" >&5
11835
11836         as_fn_error $? "Package requirements (glib-2.0 >= 2.18 \
11837                             gobject-2.0 >= 2.18 \
11838                             gmodule-2.0 \
11839                             gssdp-1.0 >= 0.7.1 \
11840                             libsoup-2.4 >= 2.4.1 \
11841                             libxml-2.0 \
11842                             $UUID) were not met:
11843
11844 $LIBGUPNP_PKG_ERRORS
11845
11846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11847 installed software in a non-standard prefix.
11848
11849 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
11850 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
11851 See the pkg-config man page for more details." "$LINENO" 5
11852 elif test $pkg_failed = untried; then
11853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11857 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11858 is in your PATH or set the PKG_CONFIG environment variable to the full
11859 path to pkg-config.
11860
11861 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
11862 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
11863 See the pkg-config man page for more details.
11864
11865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11866 See \`config.log' for more details" "$LINENO" 5 ; }
11867 else
11868         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
11869         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
11870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11872
11873 fi
11874
11875
11876 pkg_failed=no
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
11878 $as_echo_n "checking for GTHREAD... " >&6; }
11879
11880 if test -n "$GTHREAD_CFLAGS"; then
11881     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
11882  elif test -n "$PKG_CONFIG"; then
11883     if test -n "$PKG_CONFIG" && \
11884     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
11885   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
11886   ac_status=$?
11887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888   test $ac_status = 0; }; then
11889   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
11890 else
11891   pkg_failed=yes
11892 fi
11893  else
11894     pkg_failed=untried
11895 fi
11896 if test -n "$GTHREAD_LIBS"; then
11897     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
11898  elif test -n "$PKG_CONFIG"; then
11899     if test -n "$PKG_CONFIG" && \
11900     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
11901   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
11902   ac_status=$?
11903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904   test $ac_status = 0; }; then
11905   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
11906 else
11907   pkg_failed=yes
11908 fi
11909  else
11910     pkg_failed=untried
11911 fi
11912
11913
11914
11915 if test $pkg_failed = yes; then
11916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918
11919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11920         _pkg_short_errors_supported=yes
11921 else
11922         _pkg_short_errors_supported=no
11923 fi
11924         if test $_pkg_short_errors_supported = yes; then
11925                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0" 2>&1`
11926         else
11927                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0" 2>&1`
11928         fi
11929         # Put the nasty error message in config.log where it belongs
11930         echo "$GTHREAD_PKG_ERRORS" >&5
11931
11932         as_fn_error $? "Package requirements (gthread-2.0) were not met:
11933
11934 $GTHREAD_PKG_ERRORS
11935
11936 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11937 installed software in a non-standard prefix.
11938
11939 Alternatively, you may set the environment variables GTHREAD_CFLAGS
11940 and GTHREAD_LIBS to avoid the need to call pkg-config.
11941 See the pkg-config man page for more details." "$LINENO" 5
11942 elif test $pkg_failed = untried; then
11943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11947 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11948 is in your PATH or set the PKG_CONFIG environment variable to the full
11949 path to pkg-config.
11950
11951 Alternatively, you may set the environment variables GTHREAD_CFLAGS
11952 and GTHREAD_LIBS to avoid the need to call pkg-config.
11953 See the pkg-config man page for more details.
11954
11955 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11956 See \`config.log' for more details" "$LINENO" 5 ; }
11957 else
11958         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
11959         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
11960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962
11963 fi
11964
11965
11966 # Check whether --with-context_manager was given.
11967 if test "${with_context_manager+set}" = set; then :
11968   withval=$with_context_manager;
11969 else
11970   with_context_manager="unix"
11971 fi
11972
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
11975 $as_echo_n "checking Context Manager backend to use... " >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
11977 $as_echo "${with_context_manager}" >&6; }
11978
11979  if test "x$with_context_manager" = "xnetwork-manager"; then
11980   USE_NETWORK_MANAGER_TRUE=
11981   USE_NETWORK_MANAGER_FALSE='#'
11982 else
11983   USE_NETWORK_MANAGER_TRUE='#'
11984   USE_NETWORK_MANAGER_FALSE=
11985 fi
11986
11987
11988 USE_CONIC=no
11989 if test "x$with_context_manager" = "xunix"; then
11990
11991 pkg_failed=no
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCONIC" >&5
11993 $as_echo_n "checking for LIBCONIC... " >&6; }
11994
11995 if test -n "$LIBCONIC_CFLAGS"; then
11996     pkg_cv_LIBCONIC_CFLAGS="$LIBCONIC_CFLAGS"
11997  elif test -n "$PKG_CONFIG"; then
11998     if test -n "$PKG_CONFIG" && \
11999     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic >= 0.13\""; } >&5
12000   ($PKG_CONFIG --exists --print-errors "conic >= 0.13") 2>&5
12001   ac_status=$?
12002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003   test $ac_status = 0; }; then
12004   pkg_cv_LIBCONIC_CFLAGS=`$PKG_CONFIG --cflags "conic >= 0.13" 2>/dev/null`
12005 else
12006   pkg_failed=yes
12007 fi
12008  else
12009     pkg_failed=untried
12010 fi
12011 if test -n "$LIBCONIC_LIBS"; then
12012     pkg_cv_LIBCONIC_LIBS="$LIBCONIC_LIBS"
12013  elif test -n "$PKG_CONFIG"; then
12014     if test -n "$PKG_CONFIG" && \
12015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic >= 0.13\""; } >&5
12016   ($PKG_CONFIG --exists --print-errors "conic >= 0.13") 2>&5
12017   ac_status=$?
12018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12019   test $ac_status = 0; }; then
12020   pkg_cv_LIBCONIC_LIBS=`$PKG_CONFIG --libs "conic >= 0.13" 2>/dev/null`
12021 else
12022   pkg_failed=yes
12023 fi
12024  else
12025     pkg_failed=untried
12026 fi
12027
12028
12029
12030 if test $pkg_failed = yes; then
12031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033
12034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12035         _pkg_short_errors_supported=yes
12036 else
12037         _pkg_short_errors_supported=no
12038 fi
12039         if test $_pkg_short_errors_supported = yes; then
12040                 LIBCONIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "conic >= 0.13" 2>&1`
12041         else
12042                 LIBCONIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "conic >= 0.13" 2>&1`
12043         fi
12044         # Put the nasty error message in config.log where it belongs
12045         echo "$LIBCONIC_PKG_ERRORS" >&5
12046
12047          USE_CONIC=no
12048                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conic 0.13 or greater not found." >&5
12049 $as_echo "$as_me: WARNING: conic 0.13 or greater not found." >&2;}
12050
12051 elif test $pkg_failed = untried; then
12052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054          USE_CONIC=no
12055                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conic 0.13 or greater not found." >&5
12056 $as_echo "$as_me: WARNING: conic 0.13 or greater not found." >&2;}
12057
12058 else
12059         LIBCONIC_CFLAGS=$pkg_cv_LIBCONIC_CFLAGS
12060         LIBCONIC_LIBS=$pkg_cv_LIBCONIC_LIBS
12061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062 $as_echo "yes" >&6; }
12063          USE_CONIC=yes
12064
12065
12066
12067 fi
12068 fi
12069
12070  if test x$USE_CONIC = xyes; then
12071   USE_CONIC_TRUE=
12072   USE_CONIC_FALSE='#'
12073 else
12074   USE_CONIC_TRUE='#'
12075   USE_CONIC_FALSE=
12076 fi
12077
12078
12079
12080 # We need dbus-glib if either NetworkManager or libconic is used
12081 if test "x$with_context_manager" = "xnetwork-manager" -o \
12082         "x$with_context_manager" = "xunix" -a \
12083         "x$USE_CONIC" = "xyes"; then
12084
12085 pkg_failed=no
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
12087 $as_echo_n "checking for DBUS_GLIB... " >&6; }
12088
12089 if test -n "$DBUS_GLIB_CFLAGS"; then
12090     pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
12091  elif test -n "$PKG_CONFIG"; then
12092     if test -n "$PKG_CONFIG" && \
12093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.76\""; } >&5
12094   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.76") 2>&5
12095   ac_status=$?
12096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097   test $ac_status = 0; }; then
12098   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.76" 2>/dev/null`
12099 else
12100   pkg_failed=yes
12101 fi
12102  else
12103     pkg_failed=untried
12104 fi
12105 if test -n "$DBUS_GLIB_LIBS"; then
12106     pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
12107  elif test -n "$PKG_CONFIG"; then
12108     if test -n "$PKG_CONFIG" && \
12109     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.76\""; } >&5
12110   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.76") 2>&5
12111   ac_status=$?
12112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12113   test $ac_status = 0; }; then
12114   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.76" 2>/dev/null`
12115 else
12116   pkg_failed=yes
12117 fi
12118  else
12119     pkg_failed=untried
12120 fi
12121
12122
12123
12124 if test $pkg_failed = yes; then
12125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127
12128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12129         _pkg_short_errors_supported=yes
12130 else
12131         _pkg_short_errors_supported=no
12132 fi
12133         if test $_pkg_short_errors_supported = yes; then
12134                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1 >= 0.76" 2>&1`
12135         else
12136                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1 >= 0.76" 2>&1`
12137         fi
12138         # Put the nasty error message in config.log where it belongs
12139         echo "$DBUS_GLIB_PKG_ERRORS" >&5
12140
12141         as_fn_error $? "Package requirements (dbus-glib-1 >= 0.76) were not met:
12142
12143 $DBUS_GLIB_PKG_ERRORS
12144
12145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12146 installed software in a non-standard prefix.
12147
12148 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
12149 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
12150 See the pkg-config man page for more details." "$LINENO" 5
12151 elif test $pkg_failed = untried; then
12152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12156 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12157 is in your PATH or set the PKG_CONFIG environment variable to the full
12158 path to pkg-config.
12159
12160 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
12161 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
12162 See the pkg-config man page for more details.
12163
12164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12165 See \`config.log' for more details" "$LINENO" 5 ; }
12166 else
12167         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
12168         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
12169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12170 $as_echo "yes" >&6; }
12171
12172 fi
12173 fi
12174
12175 # glib-genmarshal
12176 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12177
12178
12179 # Debugging
12180 # Check whether --enable-debug was given.
12181 if test "${enable_debug+set}" = set; then :
12182   enableval=$enable_debug;
12183 else
12184   enable_debug=no
12185 fi
12186
12187 if test "x$enable_debug" = "xyes"; then
12188         CFLAGS="$CFLAGS -g -Wall -Werror"
12189 fi
12190
12191
12192
12193
12194                 # Check whether --enable-introspection was given.
12195 if test "${enable_introspection+set}" = set; then :
12196   enableval=$enable_introspection;
12197 else
12198   enable_introspection=auto
12199 fi
12200
12201
12202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12203 $as_echo_n "checking for gobject-introspection... " >&6; }
12204
12205         case $enable_introspection in #(
12206   no) :
12207             found_introspection="no (disabled, use --enable-introspection to enable)"
12208      ;; #(
12209       yes) :
12210             if test -n "$PKG_CONFIG" && \
12211     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12212   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12213   ac_status=$?
12214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215   test $ac_status = 0; }; then
12216   :
12217 else
12218   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12219 fi
12220         if test -n "$PKG_CONFIG" && \
12221     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12222   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12223   ac_status=$?
12224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12225   test $ac_status = 0; }; then
12226   found_introspection=yes
12227 else
12228   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12229 fi
12230      ;; #(
12231       auto) :
12232             if test -n "$PKG_CONFIG" && \
12233     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12234   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12235   ac_status=$?
12236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237   test $ac_status = 0; }; then
12238   found_introspection=yes
12239 else
12240   found_introspection=no
12241 fi
12242      ;; #(
12243   *) :
12244                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12245      ;;
12246 esac
12247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12248 $as_echo "$found_introspection" >&6; }
12249
12250     INTROSPECTION_SCANNER=
12251     INTROSPECTION_COMPILER=
12252     INTROSPECTION_GENERATE=
12253     INTROSPECTION_GIRDIR=
12254     INTROSPECTION_TYPELIBDIR=
12255     if test "x$found_introspection" = "xyes"; then
12256        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12257        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12258        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12259        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12260        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12261     fi
12262
12263
12264
12265
12266
12267
12268      if test "x$found_introspection" = "xyes"; then
12269   HAVE_INTROSPECTION_TRUE=
12270   HAVE_INTROSPECTION_FALSE='#'
12271 else
12272   HAVE_INTROSPECTION_TRUE='#'
12273   HAVE_INTROSPECTION_FALSE=
12274 fi
12275
12276
12277
12278
12279 # Gtk-doc
12280
12281
12282     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12283 set dummy gtkdoc-check; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289   case $GTKDOC_CHECK in
12290   [\\/]* | ?:[\\/]*)
12291   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12292   ;;
12293   *)
12294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12296 do
12297   IFS=$as_save_IFS
12298   test -z "$as_dir" && as_dir=.
12299     for ac_exec_ext in '' $ac_executable_extensions; do
12300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303     break 2
12304   fi
12305 done
12306   done
12307 IFS=$as_save_IFS
12308
12309   ;;
12310 esac
12311 fi
12312 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12313 if test -n "$GTKDOC_CHECK"; then
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12315 $as_echo "$GTKDOC_CHECK" >&6; }
12316 else
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322   for ac_prog in gtkdoc-rebase
12323 do
12324   # Extract the first word of "$ac_prog", so it can be a program name with args.
12325 set dummy $ac_prog; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   case $GTKDOC_REBASE in
12332   [\\/]* | ?:[\\/]*)
12333   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12334   ;;
12335   *)
12336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339   IFS=$as_save_IFS
12340   test -z "$as_dir" && as_dir=.
12341     for ac_exec_ext in '' $ac_executable_extensions; do
12342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345     break 2
12346   fi
12347 done
12348   done
12349 IFS=$as_save_IFS
12350
12351   ;;
12352 esac
12353 fi
12354 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12355 if test -n "$GTKDOC_REBASE"; then
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12357 $as_echo "$GTKDOC_REBASE" >&6; }
12358 else
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363
12364   test -n "$GTKDOC_REBASE" && break
12365 done
12366 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12367
12368   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12369 set dummy gtkdoc-mkpdf; ac_word=$2
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   case $GTKDOC_MKPDF in
12376   [\\/]* | ?:[\\/]*)
12377   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12378   ;;
12379   *)
12380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12382 do
12383   IFS=$as_save_IFS
12384   test -z "$as_dir" && as_dir=.
12385     for ac_exec_ext in '' $ac_executable_extensions; do
12386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389     break 2
12390   fi
12391 done
12392   done
12393 IFS=$as_save_IFS
12394
12395   ;;
12396 esac
12397 fi
12398 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12399 if test -n "$GTKDOC_MKPDF"; then
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12401 $as_echo "$GTKDOC_MKPDF" >&6; }
12402 else
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408
12409
12410 # Check whether --with-html-dir was given.
12411 if test "${with_html_dir+set}" = set; then :
12412   withval=$with_html_dir;
12413 else
12414   with_html_dir='${datadir}/gtk-doc/html'
12415 fi
12416
12417   HTML_DIR="$with_html_dir"
12418
12419
12420     # Check whether --enable-gtk-doc was given.
12421 if test "${enable_gtk_doc+set}" = set; then :
12422   enableval=$enable_gtk_doc;
12423 else
12424   enable_gtk_doc=no
12425 fi
12426
12427
12428   if test x$enable_gtk_doc = xyes; then
12429     if test -n "$PKG_CONFIG" && \
12430     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
12431   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
12432   ac_status=$?
12433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434   test $ac_status = 0; }; then
12435   :
12436 else
12437   as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
12438 fi
12439   fi
12440
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12442 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12444 $as_echo "$enable_gtk_doc" >&6; }
12445
12446     # Check whether --enable-gtk-doc-html was given.
12447 if test "${enable_gtk_doc_html+set}" = set; then :
12448   enableval=$enable_gtk_doc_html;
12449 else
12450   enable_gtk_doc_html=yes
12451 fi
12452
12453     # Check whether --enable-gtk-doc-pdf was given.
12454 if test "${enable_gtk_doc_pdf+set}" = set; then :
12455   enableval=$enable_gtk_doc_pdf;
12456 else
12457   enable_gtk_doc_pdf=no
12458 fi
12459
12460
12461   if test -z "$GTKDOC_MKPDF"; then
12462     enable_gtk_doc_pdf=no
12463   fi
12464
12465
12466    if test x$enable_gtk_doc = xyes; then
12467   ENABLE_GTK_DOC_TRUE=
12468   ENABLE_GTK_DOC_FALSE='#'
12469 else
12470   ENABLE_GTK_DOC_TRUE='#'
12471   ENABLE_GTK_DOC_FALSE=
12472 fi
12473
12474    if test x$enable_gtk_doc_html = xyes; then
12475   GTK_DOC_BUILD_HTML_TRUE=
12476   GTK_DOC_BUILD_HTML_FALSE='#'
12477 else
12478   GTK_DOC_BUILD_HTML_TRUE='#'
12479   GTK_DOC_BUILD_HTML_FALSE=
12480 fi
12481
12482    if test x$enable_gtk_doc_pdf = xyes; then
12483   GTK_DOC_BUILD_PDF_TRUE=
12484   GTK_DOC_BUILD_PDF_FALSE='#'
12485 else
12486   GTK_DOC_BUILD_PDF_TRUE='#'
12487   GTK_DOC_BUILD_PDF_FALSE=
12488 fi
12489
12490    if test -n "$LIBTOOL"; then
12491   GTK_DOC_USE_LIBTOOL_TRUE=
12492   GTK_DOC_USE_LIBTOOL_FALSE='#'
12493 else
12494   GTK_DOC_USE_LIBTOOL_TRUE='#'
12495   GTK_DOC_USE_LIBTOOL_FALSE=
12496 fi
12497
12498    if test -n "$GTKDOC_REBASE"; then
12499   GTK_DOC_USE_REBASE_TRUE=
12500   GTK_DOC_USE_REBASE_FALSE='#'
12501 else
12502   GTK_DOC_USE_REBASE_TRUE='#'
12503   GTK_DOC_USE_REBASE_FALSE=
12504 fi
12505
12506
12507
12508 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile doc/Makefile doc/version.xml gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
12509
12510 cat >confcache <<\_ACEOF
12511 # This file is a shell script that caches the results of configure
12512 # tests run on this system so they can be shared between configure
12513 # scripts and configure runs, see configure's option --config-cache.
12514 # It is not useful on other systems.  If it contains results you don't
12515 # want to keep, you may remove or edit it.
12516 #
12517 # config.status only pays attention to the cache file if you give it
12518 # the --recheck option to rerun configure.
12519 #
12520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12522 # following values.
12523
12524 _ACEOF
12525
12526 # The following way of writing the cache mishandles newlines in values,
12527 # but we know of no workaround that is simple, portable, and efficient.
12528 # So, we kill variables containing newlines.
12529 # Ultrix sh set writes to stderr and can't be redirected directly,
12530 # and sets the high bit in the cache file unless we assign to the vars.
12531 (
12532   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12533     eval ac_val=\$$ac_var
12534     case $ac_val in #(
12535     *${as_nl}*)
12536       case $ac_var in #(
12537       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12539       esac
12540       case $ac_var in #(
12541       _ | IFS | as_nl) ;; #(
12542       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12543       *) { eval $ac_var=; unset $ac_var;} ;;
12544       esac ;;
12545     esac
12546   done
12547
12548   (set) 2>&1 |
12549     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12550     *${as_nl}ac_space=\ *)
12551       # `set' does not quote correctly, so add quotes: double-quote
12552       # substitution turns \\\\ into \\, and sed turns \\ into \.
12553       sed -n \
12554         "s/'/'\\\\''/g;
12555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12556       ;; #(
12557     *)
12558       # `set' quotes correctly as required by POSIX, so do not add quotes.
12559       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12560       ;;
12561     esac |
12562     sort
12563 ) |
12564   sed '
12565      /^ac_cv_env_/b end
12566      t clear
12567      :clear
12568      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12569      t end
12570      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12571      :end' >>confcache
12572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12573   if test -w "$cache_file"; then
12574     test "x$cache_file" != "x/dev/null" &&
12575       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12576 $as_echo "$as_me: updating cache $cache_file" >&6;}
12577     cat confcache >$cache_file
12578   else
12579     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12580 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12581   fi
12582 fi
12583 rm -f confcache
12584
12585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12586 # Let make expand exec_prefix.
12587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12588
12589 DEFS=-DHAVE_CONFIG_H
12590
12591 ac_libobjs=
12592 ac_ltlibobjs=
12593 U=
12594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12595   # 1. Remove the extension, and $U if already installed.
12596   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12597   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12598   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12599   #    will be set to the directory where LIBOBJS objects are built.
12600   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12601   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12602 done
12603 LIBOBJS=$ac_libobjs
12604
12605 LTLIBOBJS=$ac_ltlibobjs
12606
12607
12608  if test -n "$EXEEXT"; then
12609   am__EXEEXT_TRUE=
12610   am__EXEEXT_FALSE='#'
12611 else
12612   am__EXEEXT_TRUE='#'
12613   am__EXEEXT_FALSE=
12614 fi
12615
12616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12617   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12619 fi
12620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12621   as_fn_error $? "conditional \"AMDEP\" was never defined.
12622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12623 fi
12624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12625   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12627 fi
12628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12629   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12631 fi
12632 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
12633   as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12635 fi
12636 if test -z "${USE_CONIC_TRUE}" && test -z "${USE_CONIC_FALSE}"; then
12637   as_fn_error $? "conditional \"USE_CONIC\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12639 fi
12640 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
12641   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12643 fi
12644 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12645   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647 fi
12648 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12649   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 fi
12652 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12653   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12655 fi
12656 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12657   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12659 fi
12660 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12661   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12663 fi
12664
12665 : ${CONFIG_STATUS=./config.status}
12666 ac_write_fail=0
12667 ac_clean_files_save=$ac_clean_files
12668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12671 as_write_fail=0
12672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12673 #! $SHELL
12674 # Generated by $as_me.
12675 # Run this file to recreate the current configuration.
12676 # Compiler output produced by configure, useful for debugging
12677 # configure, is in config.log if it exists.
12678
12679 debug=false
12680 ac_cs_recheck=false
12681 ac_cs_silent=false
12682
12683 SHELL=\${CONFIG_SHELL-$SHELL}
12684 export SHELL
12685 _ASEOF
12686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12687 ## -------------------- ##
12688 ## M4sh Initialization. ##
12689 ## -------------------- ##
12690
12691 # Be more Bourne compatible
12692 DUALCASE=1; export DUALCASE # for MKS sh
12693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12694   emulate sh
12695   NULLCMD=:
12696   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12697   # is contrary to our usage.  Disable this feature.
12698   alias -g '${1+"$@"}'='"$@"'
12699   setopt NO_GLOB_SUBST
12700 else
12701   case `(set -o) 2>/dev/null` in #(
12702   *posix*) :
12703     set -o posix ;; #(
12704   *) :
12705      ;;
12706 esac
12707 fi
12708
12709
12710 as_nl='
12711 '
12712 export as_nl
12713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12717 # Prefer a ksh shell builtin over an external printf program on Solaris,
12718 # but without wasting forks for bash or zsh.
12719 if test -z "$BASH_VERSION$ZSH_VERSION" \
12720     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12721   as_echo='print -r --'
12722   as_echo_n='print -rn --'
12723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12724   as_echo='printf %s\n'
12725   as_echo_n='printf %s'
12726 else
12727   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12728     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12729     as_echo_n='/usr/ucb/echo -n'
12730   else
12731     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12732     as_echo_n_body='eval
12733       arg=$1;
12734       case $arg in #(
12735       *"$as_nl"*)
12736         expr "X$arg" : "X\\(.*\\)$as_nl";
12737         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12738       esac;
12739       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12740     '
12741     export as_echo_n_body
12742     as_echo_n='sh -c $as_echo_n_body as_echo'
12743   fi
12744   export as_echo_body
12745   as_echo='sh -c $as_echo_body as_echo'
12746 fi
12747
12748 # The user is always right.
12749 if test "${PATH_SEPARATOR+set}" != set; then
12750   PATH_SEPARATOR=:
12751   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12752     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12753       PATH_SEPARATOR=';'
12754   }
12755 fi
12756
12757
12758 # IFS
12759 # We need space, tab and new line, in precisely that order.  Quoting is
12760 # there to prevent editors from complaining about space-tab.
12761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12762 # splitting by setting IFS to empty value.)
12763 IFS=" ""        $as_nl"
12764
12765 # Find who we are.  Look in the path if we contain no directory separator.
12766 case $0 in #((
12767   *[\\/]* ) as_myself=$0 ;;
12768   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771   IFS=$as_save_IFS
12772   test -z "$as_dir" && as_dir=.
12773     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12774   done
12775 IFS=$as_save_IFS
12776
12777      ;;
12778 esac
12779 # We did not find ourselves, most probably we were run as `sh COMMAND'
12780 # in which case we are not to be found in the path.
12781 if test "x$as_myself" = x; then
12782   as_myself=$0
12783 fi
12784 if test ! -f "$as_myself"; then
12785   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12786   exit 1
12787 fi
12788
12789 # Unset variables that we do not need and which cause bugs (e.g. in
12790 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12791 # suppresses any "Segmentation fault" message there.  '((' could
12792 # trigger a bug in pdksh 5.2.14.
12793 for as_var in BASH_ENV ENV MAIL MAILPATH
12794 do eval test x\${$as_var+set} = xset \
12795   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12796 done
12797 PS1='$ '
12798 PS2='> '
12799 PS4='+ '
12800
12801 # NLS nuisances.
12802 LC_ALL=C
12803 export LC_ALL
12804 LANGUAGE=C
12805 export LANGUAGE
12806
12807 # CDPATH.
12808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12809
12810
12811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12812 # ----------------------------------------
12813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12815 # script with STATUS, using 1 if that was 0.
12816 as_fn_error ()
12817 {
12818   as_status=$1; test $as_status -eq 0 && as_status=1
12819   if test "$4"; then
12820     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12821     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12822   fi
12823   $as_echo "$as_me: error: $2" >&2
12824   as_fn_exit $as_status
12825 } # as_fn_error
12826
12827
12828 # as_fn_set_status STATUS
12829 # -----------------------
12830 # Set $? to STATUS, without forking.
12831 as_fn_set_status ()
12832 {
12833   return $1
12834 } # as_fn_set_status
12835
12836 # as_fn_exit STATUS
12837 # -----------------
12838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12839 as_fn_exit ()
12840 {
12841   set +e
12842   as_fn_set_status $1
12843   exit $1
12844 } # as_fn_exit
12845
12846 # as_fn_unset VAR
12847 # ---------------
12848 # Portably unset VAR.
12849 as_fn_unset ()
12850 {
12851   { eval $1=; unset $1;}
12852 }
12853 as_unset=as_fn_unset
12854 # as_fn_append VAR VALUE
12855 # ----------------------
12856 # Append the text in VALUE to the end of the definition contained in VAR. Take
12857 # advantage of any shell optimizations that allow amortized linear growth over
12858 # repeated appends, instead of the typical quadratic growth present in naive
12859 # implementations.
12860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12861   eval 'as_fn_append ()
12862   {
12863     eval $1+=\$2
12864   }'
12865 else
12866   as_fn_append ()
12867   {
12868     eval $1=\$$1\$2
12869   }
12870 fi # as_fn_append
12871
12872 # as_fn_arith ARG...
12873 # ------------------
12874 # Perform arithmetic evaluation on the ARGs, and store the result in the
12875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12876 # must be portable across $(()) and expr.
12877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12878   eval 'as_fn_arith ()
12879   {
12880     as_val=$(( $* ))
12881   }'
12882 else
12883   as_fn_arith ()
12884   {
12885     as_val=`expr "$@" || test $? -eq 1`
12886   }
12887 fi # as_fn_arith
12888
12889
12890 if expr a : '\(a\)' >/dev/null 2>&1 &&
12891    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12892   as_expr=expr
12893 else
12894   as_expr=false
12895 fi
12896
12897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12898   as_basename=basename
12899 else
12900   as_basename=false
12901 fi
12902
12903 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12904   as_dirname=dirname
12905 else
12906   as_dirname=false
12907 fi
12908
12909 as_me=`$as_basename -- "$0" ||
12910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12911          X"$0" : 'X\(//\)$' \| \
12912          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12913 $as_echo X/"$0" |
12914     sed '/^.*\/\([^/][^/]*\)\/*$/{
12915             s//\1/
12916             q
12917           }
12918           /^X\/\(\/\/\)$/{
12919             s//\1/
12920             q
12921           }
12922           /^X\/\(\/\).*/{
12923             s//\1/
12924             q
12925           }
12926           s/.*/./; q'`
12927
12928 # Avoid depending upon Character Ranges.
12929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12932 as_cr_digits='0123456789'
12933 as_cr_alnum=$as_cr_Letters$as_cr_digits
12934
12935 ECHO_C= ECHO_N= ECHO_T=
12936 case `echo -n x` in #(((((
12937 -n*)
12938   case `echo 'xy\c'` in
12939   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12940   xy)  ECHO_C='\c';;
12941   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12942        ECHO_T=' ';;
12943   esac;;
12944 *)
12945   ECHO_N='-n';;
12946 esac
12947
12948 rm -f conf$$ conf$$.exe conf$$.file
12949 if test -d conf$$.dir; then
12950   rm -f conf$$.dir/conf$$.file
12951 else
12952   rm -f conf$$.dir
12953   mkdir conf$$.dir 2>/dev/null
12954 fi
12955 if (echo >conf$$.file) 2>/dev/null; then
12956   if ln -s conf$$.file conf$$ 2>/dev/null; then
12957     as_ln_s='ln -s'
12958     # ... but there are two gotchas:
12959     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12960     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12961     # In both cases, we have to default to `cp -p'.
12962     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12963       as_ln_s='cp -p'
12964   elif ln conf$$.file conf$$ 2>/dev/null; then
12965     as_ln_s=ln
12966   else
12967     as_ln_s='cp -p'
12968   fi
12969 else
12970   as_ln_s='cp -p'
12971 fi
12972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12973 rmdir conf$$.dir 2>/dev/null
12974
12975
12976 # as_fn_mkdir_p
12977 # -------------
12978 # Create "$as_dir" as a directory, including parents if necessary.
12979 as_fn_mkdir_p ()
12980 {
12981
12982   case $as_dir in #(
12983   -*) as_dir=./$as_dir;;
12984   esac
12985   test -d "$as_dir" || eval $as_mkdir_p || {
12986     as_dirs=
12987     while :; do
12988       case $as_dir in #(
12989       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12990       *) as_qdir=$as_dir;;
12991       esac
12992       as_dirs="'$as_qdir' $as_dirs"
12993       as_dir=`$as_dirname -- "$as_dir" ||
12994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12995          X"$as_dir" : 'X\(//\)[^/]' \| \
12996          X"$as_dir" : 'X\(//\)$' \| \
12997          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12998 $as_echo X"$as_dir" |
12999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13000             s//\1/
13001             q
13002           }
13003           /^X\(\/\/\)[^/].*/{
13004             s//\1/
13005             q
13006           }
13007           /^X\(\/\/\)$/{
13008             s//\1/
13009             q
13010           }
13011           /^X\(\/\).*/{
13012             s//\1/
13013             q
13014           }
13015           s/.*/./; q'`
13016       test -d "$as_dir" && break
13017     done
13018     test -z "$as_dirs" || eval "mkdir $as_dirs"
13019   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13020
13021
13022 } # as_fn_mkdir_p
13023 if mkdir -p . 2>/dev/null; then
13024   as_mkdir_p='mkdir -p "$as_dir"'
13025 else
13026   test -d ./-p && rmdir ./-p
13027   as_mkdir_p=false
13028 fi
13029
13030 if test -x / >/dev/null 2>&1; then
13031   as_test_x='test -x'
13032 else
13033   if ls -dL / >/dev/null 2>&1; then
13034     as_ls_L_option=L
13035   else
13036     as_ls_L_option=
13037   fi
13038   as_test_x='
13039     eval sh -c '\''
13040       if test -d "$1"; then
13041         test -d "$1/.";
13042       else
13043         case $1 in #(
13044         -*)set "./$1";;
13045         esac;
13046         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13047         ???[sx]*):;;*)false;;esac;fi
13048     '\'' sh
13049   '
13050 fi
13051 as_executable_p=$as_test_x
13052
13053 # Sed expression to map a string onto a valid CPP name.
13054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13055
13056 # Sed expression to map a string onto a valid variable name.
13057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13058
13059
13060 exec 6>&1
13061 ## ----------------------------------- ##
13062 ## Main body of $CONFIG_STATUS script. ##
13063 ## ----------------------------------- ##
13064 _ASEOF
13065 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13066
13067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13068 # Save the log message, to keep $0 and so on meaningful, and to
13069 # report actual input values of CONFIG_FILES etc. instead of their
13070 # values after options handling.
13071 ac_log="
13072 This file was extended by gupnp $as_me 0.14.1, which was
13073 generated by GNU Autoconf 2.67.  Invocation command line was
13074
13075   CONFIG_FILES    = $CONFIG_FILES
13076   CONFIG_HEADERS  = $CONFIG_HEADERS
13077   CONFIG_LINKS    = $CONFIG_LINKS
13078   CONFIG_COMMANDS = $CONFIG_COMMANDS
13079   $ $0 $@
13080
13081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13082 "
13083
13084 _ACEOF
13085
13086 case $ac_config_files in *"
13087 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13088 esac
13089
13090 case $ac_config_headers in *"
13091 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13092 esac
13093
13094
13095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13096 # Files that config.status was made for.
13097 config_files="$ac_config_files"
13098 config_headers="$ac_config_headers"
13099 config_commands="$ac_config_commands"
13100
13101 _ACEOF
13102
13103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13104 ac_cs_usage="\
13105 \`$as_me' instantiates files and other configuration actions
13106 from templates according to the current configuration.  Unless the files
13107 and actions are specified as TAGs, all are instantiated by default.
13108
13109 Usage: $0 [OPTION]... [TAG]...
13110
13111   -h, --help       print this help, then exit
13112   -V, --version    print version number and configuration settings, then exit
13113       --config     print configuration, then exit
13114   -q, --quiet, --silent
13115                    do not print progress messages
13116   -d, --debug      don't remove temporary files
13117       --recheck    update $as_me by reconfiguring in the same conditions
13118       --file=FILE[:TEMPLATE]
13119                    instantiate the configuration file FILE
13120       --header=FILE[:TEMPLATE]
13121                    instantiate the configuration header FILE
13122
13123 Configuration files:
13124 $config_files
13125
13126 Configuration headers:
13127 $config_headers
13128
13129 Configuration commands:
13130 $config_commands
13131
13132 Report bugs to <http://www.gupnp.org/>."
13133
13134 _ACEOF
13135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13136 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13137 ac_cs_version="\\
13138 gupnp config.status 0.14.1
13139 configured by $0, generated by GNU Autoconf 2.67,
13140   with options \\"\$ac_cs_config\\"
13141
13142 Copyright (C) 2010 Free Software Foundation, Inc.
13143 This config.status script is free software; the Free Software Foundation
13144 gives unlimited permission to copy, distribute and modify it."
13145
13146 ac_pwd='$ac_pwd'
13147 srcdir='$srcdir'
13148 INSTALL='$INSTALL'
13149 MKDIR_P='$MKDIR_P'
13150 AWK='$AWK'
13151 test -n "\$AWK" || AWK=awk
13152 _ACEOF
13153
13154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155 # The default lists apply if the user does not specify any file.
13156 ac_need_defaults=:
13157 while test $# != 0
13158 do
13159   case $1 in
13160   --*=?*)
13161     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13162     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13163     ac_shift=:
13164     ;;
13165   --*=)
13166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13167     ac_optarg=
13168     ac_shift=:
13169     ;;
13170   *)
13171     ac_option=$1
13172     ac_optarg=$2
13173     ac_shift=shift
13174     ;;
13175   esac
13176
13177   case $ac_option in
13178   # Handling of the options.
13179   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13180     ac_cs_recheck=: ;;
13181   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13182     $as_echo "$ac_cs_version"; exit ;;
13183   --config | --confi | --conf | --con | --co | --c )
13184     $as_echo "$ac_cs_config"; exit ;;
13185   --debug | --debu | --deb | --de | --d | -d )
13186     debug=: ;;
13187   --file | --fil | --fi | --f )
13188     $ac_shift
13189     case $ac_optarg in
13190     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13191     '') as_fn_error $? "missing file argument" ;;
13192     esac
13193     as_fn_append CONFIG_FILES " '$ac_optarg'"
13194     ac_need_defaults=false;;
13195   --header | --heade | --head | --hea )
13196     $ac_shift
13197     case $ac_optarg in
13198     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13199     esac
13200     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13201     ac_need_defaults=false;;
13202   --he | --h)
13203     # Conflict between --help and --header
13204     as_fn_error $? "ambiguous option: \`$1'
13205 Try \`$0 --help' for more information.";;
13206   --help | --hel | -h )
13207     $as_echo "$ac_cs_usage"; exit ;;
13208   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13209   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13210     ac_cs_silent=: ;;
13211
13212   # This is an error.
13213   -*) as_fn_error $? "unrecognized option: \`$1'
13214 Try \`$0 --help' for more information." ;;
13215
13216   *) as_fn_append ac_config_targets " $1"
13217      ac_need_defaults=false ;;
13218
13219   esac
13220   shift
13221 done
13222
13223 ac_configure_extra_args=
13224
13225 if $ac_cs_silent; then
13226   exec 6>/dev/null
13227   ac_configure_extra_args="$ac_configure_extra_args --silent"
13228 fi
13229
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232 if \$ac_cs_recheck; then
13233   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13234   shift
13235   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13236   CONFIG_SHELL='$SHELL'
13237   export CONFIG_SHELL
13238   exec "\$@"
13239 fi
13240
13241 _ACEOF
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 exec 5>>config.log
13244 {
13245   echo
13246   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13247 ## Running $as_me. ##
13248 _ASBOX
13249   $as_echo "$ac_log"
13250 } >&5
13251
13252 _ACEOF
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 #
13255 # INIT-COMMANDS
13256 #
13257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13258
13259
13260 # The HP-UX ksh and POSIX shell print the target directory to stdout
13261 # if CDPATH is set.
13262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13263
13264 sed_quote_subst='$sed_quote_subst'
13265 double_quote_subst='$double_quote_subst'
13266 delay_variable_subst='$delay_variable_subst'
13267 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13268 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13269 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13270 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13271 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13272 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13273 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13274 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13275 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13276 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13277 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13278 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13279 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13280 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13281 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13282 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13283 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13284 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13285 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13286 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13287 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13288 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13289 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13290 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13291 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13292 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13293 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13294 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13295 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13296 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13297 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13298 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13299 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13300 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13301 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13302 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13303 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13304 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13305 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13306 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13307 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13308 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13309 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13311 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13313 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13314 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13315 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13316 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13317 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13318 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13319 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13320 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13321 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13322 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13323 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13324 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13325 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13326 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13327 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13328 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13329 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13330 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13331 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13332 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13333 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13334 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13335 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13336 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13337 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13338 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13339 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13340 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13341 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13343 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13344 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13346 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13347 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13348 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13349 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13350 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13351 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13352 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13353 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13354 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13355 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13356 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13357 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13358 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13359 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13360 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13361 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13362 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13363 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13364 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13365 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13366 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13367 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13368 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13369 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13370 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13373 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13376 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13377 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13378 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13379 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13380 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13381 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13382 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13383 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13384 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13385
13386 LTCC='$LTCC'
13387 LTCFLAGS='$LTCFLAGS'
13388 compiler='$compiler_DEFAULT'
13389
13390 # Quote evaled strings.
13391 for var in SED \
13392 GREP \
13393 EGREP \
13394 FGREP \
13395 LD \
13396 NM \
13397 LN_S \
13398 lt_SP2NL \
13399 lt_NL2SP \
13400 reload_flag \
13401 OBJDUMP \
13402 deplibs_check_method \
13403 file_magic_cmd \
13404 AR \
13405 AR_FLAGS \
13406 STRIP \
13407 RANLIB \
13408 CC \
13409 CFLAGS \
13410 compiler \
13411 lt_cv_sys_global_symbol_pipe \
13412 lt_cv_sys_global_symbol_to_cdecl \
13413 lt_cv_sys_global_symbol_to_c_name_address \
13414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13415 SHELL \
13416 ECHO \
13417 lt_prog_compiler_no_builtin_flag \
13418 lt_prog_compiler_wl \
13419 lt_prog_compiler_pic \
13420 lt_prog_compiler_static \
13421 lt_cv_prog_compiler_c_o \
13422 need_locks \
13423 DSYMUTIL \
13424 NMEDIT \
13425 LIPO \
13426 OTOOL \
13427 OTOOL64 \
13428 shrext_cmds \
13429 export_dynamic_flag_spec \
13430 whole_archive_flag_spec \
13431 compiler_needs_object \
13432 with_gnu_ld \
13433 allow_undefined_flag \
13434 no_undefined_flag \
13435 hardcode_libdir_flag_spec \
13436 hardcode_libdir_flag_spec_ld \
13437 hardcode_libdir_separator \
13438 fix_srcfile_path \
13439 exclude_expsyms \
13440 include_expsyms \
13441 file_list_spec \
13442 variables_saved_for_relink \
13443 libname_spec \
13444 library_names_spec \
13445 soname_spec \
13446 finish_eval \
13447 old_striplib \
13448 striplib; do
13449     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13450     *[\\\\\\\`\\"\\\$]*)
13451       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13452       ;;
13453     *)
13454       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13455       ;;
13456     esac
13457 done
13458
13459 # Double-quote double-evaled strings.
13460 for var in reload_cmds \
13461 old_postinstall_cmds \
13462 old_postuninstall_cmds \
13463 old_archive_cmds \
13464 extract_expsyms_cmds \
13465 old_archive_from_new_cmds \
13466 old_archive_from_expsyms_cmds \
13467 archive_cmds \
13468 archive_expsym_cmds \
13469 module_cmds \
13470 module_expsym_cmds \
13471 export_symbols_cmds \
13472 prelink_cmds \
13473 postinstall_cmds \
13474 postuninstall_cmds \
13475 finish_cmds \
13476 sys_lib_search_path_spec \
13477 sys_lib_dlsearch_path_spec; do
13478     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13479     *[\\\\\\\`\\"\\\$]*)
13480       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13481       ;;
13482     *)
13483       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13484       ;;
13485     esac
13486 done
13487
13488 # Fix-up fallback echo if it was mangled by the above quoting rules.
13489 case \$lt_ECHO in
13490 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13491   ;;
13492 esac
13493
13494 ac_aux_dir='$ac_aux_dir'
13495 xsi_shell='$xsi_shell'
13496 lt_shell_append='$lt_shell_append'
13497
13498 # See if we are running on zsh, and set the options which allow our
13499 # commands through without removal of \ escapes INIT.
13500 if test -n "\${ZSH_VERSION+set}" ; then
13501    setopt NO_GLOB_SUBST
13502 fi
13503
13504
13505     PACKAGE='$PACKAGE'
13506     VERSION='$VERSION'
13507     TIMESTAMP='$TIMESTAMP'
13508     RM='$RM'
13509     ofile='$ofile'
13510
13511
13512
13513
13514 _ACEOF
13515
13516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13517
13518 # Handling of arguments.
13519 for ac_config_target in $ac_config_targets
13520 do
13521   case $ac_config_target in
13522     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13523     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13524     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13525     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13526     "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
13527     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13528     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13529     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13530     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13531     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
13532     "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
13533     "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
13534
13535   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13536   esac
13537 done
13538
13539
13540 # If the user did not use the arguments to specify the items to instantiate,
13541 # then the envvar interface is used.  Set only those that are not.
13542 # We use the long form for the default assignment because of an extremely
13543 # bizarre bug on SunOS 4.1.3.
13544 if $ac_need_defaults; then
13545   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13546   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13547   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13548 fi
13549
13550 # Have a temporary directory for convenience.  Make it in the build tree
13551 # simply because there is no reason against having it here, and in addition,
13552 # creating and moving files from /tmp can sometimes cause problems.
13553 # Hook for its removal unless debugging.
13554 # Note that there is a small window in which the directory will not be cleaned:
13555 # after its creation but before its name has been assigned to `$tmp'.
13556 $debug ||
13557 {
13558   tmp=
13559   trap 'exit_status=$?
13560   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13561 ' 0
13562   trap 'as_fn_exit 1' 1 2 13 15
13563 }
13564 # Create a (secure) tmp directory for tmp files.
13565
13566 {
13567   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13568   test -n "$tmp" && test -d "$tmp"
13569 }  ||
13570 {
13571   tmp=./conf$$-$RANDOM
13572   (umask 077 && mkdir "$tmp")
13573 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13574
13575 # Set up the scripts for CONFIG_FILES section.
13576 # No need to generate them if there are no CONFIG_FILES.
13577 # This happens for instance with `./config.status config.h'.
13578 if test -n "$CONFIG_FILES"; then
13579
13580
13581 ac_cr=`echo X | tr X '\015'`
13582 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13583 # But we know of no other shell where ac_cr would be empty at this
13584 # point, so we can use a bashism as a fallback.
13585 if test "x$ac_cr" = x; then
13586   eval ac_cr=\$\'\\r\'
13587 fi
13588 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13589 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13590   ac_cs_awk_cr='\\r'
13591 else
13592   ac_cs_awk_cr=$ac_cr
13593 fi
13594
13595 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13596 _ACEOF
13597
13598
13599 {
13600   echo "cat >conf$$subs.awk <<_ACEOF" &&
13601   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13602   echo "_ACEOF"
13603 } >conf$$subs.sh ||
13604   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13606 ac_delim='%!_!# '
13607 for ac_last_try in false false false false false :; do
13608   . ./conf$$subs.sh ||
13609     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13610
13611   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13612   if test $ac_delim_n = $ac_delim_num; then
13613     break
13614   elif $ac_last_try; then
13615     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13616   else
13617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13618   fi
13619 done
13620 rm -f conf$$subs.sh
13621
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13624 _ACEOF
13625 sed -n '
13626 h
13627 s/^/S["/; s/!.*/"]=/
13628 p
13629 g
13630 s/^[^!]*!//
13631 :repl
13632 t repl
13633 s/'"$ac_delim"'$//
13634 t delim
13635 :nl
13636 h
13637 s/\(.\{148\}\)..*/\1/
13638 t more1
13639 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13640 p
13641 n
13642 b repl
13643 :more1
13644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13645 p
13646 g
13647 s/.\{148\}//
13648 t nl
13649 :delim
13650 h
13651 s/\(.\{148\}\)..*/\1/
13652 t more2
13653 s/["\\]/\\&/g; s/^/"/; s/$/"/
13654 p
13655 b
13656 :more2
13657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13658 p
13659 g
13660 s/.\{148\}//
13661 t delim
13662 ' <conf$$subs.awk | sed '
13663 /^[^""]/{
13664   N
13665   s/\n//
13666 }
13667 ' >>$CONFIG_STATUS || ac_write_fail=1
13668 rm -f conf$$subs.awk
13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13670 _ACAWK
13671 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13672   for (key in S) S_is_set[key] = 1
13673   FS = "\a"
13674
13675 }
13676 {
13677   line = $ 0
13678   nfields = split(line, field, "@")
13679   substed = 0
13680   len = length(field[1])
13681   for (i = 2; i < nfields; i++) {
13682     key = field[i]
13683     keylen = length(key)
13684     if (S_is_set[key]) {
13685       value = S[key]
13686       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13687       len += length(value) + length(field[++i])
13688       substed = 1
13689     } else
13690       len += 1 + keylen
13691   }
13692
13693   print line
13694 }
13695
13696 _ACAWK
13697 _ACEOF
13698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13699 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13700   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13701 else
13702   cat
13703 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13704   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13705 _ACEOF
13706
13707 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13708 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13709 # trailing colons and then remove the whole line if VPATH becomes empty
13710 # (actually we leave an empty line to preserve line numbers).
13711 if test "x$srcdir" = x.; then
13712   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13713 h
13714 s///
13715 s/^/:/
13716 s/[      ]*$/:/
13717 s/:\$(srcdir):/:/g
13718 s/:\${srcdir}:/:/g
13719 s/:@srcdir@:/:/g
13720 s/^:*//
13721 s/:*$//
13722 x
13723 s/\(=[   ]*\).*/\1/
13724 G
13725 s/\n//
13726 s/^[^=]*=[       ]*$//
13727 }'
13728 fi
13729
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 fi # test -n "$CONFIG_FILES"
13732
13733 # Set up the scripts for CONFIG_HEADERS section.
13734 # No need to generate them if there are no CONFIG_HEADERS.
13735 # This happens for instance with `./config.status Makefile'.
13736 if test -n "$CONFIG_HEADERS"; then
13737 cat >"$tmp/defines.awk" <<\_ACAWK ||
13738 BEGIN {
13739 _ACEOF
13740
13741 # Transform confdefs.h into an awk script `defines.awk', embedded as
13742 # here-document in config.status, that substitutes the proper values into
13743 # config.h.in to produce config.h.
13744
13745 # Create a delimiter string that does not exist in confdefs.h, to ease
13746 # handling of long lines.
13747 ac_delim='%!_!# '
13748 for ac_last_try in false false :; do
13749   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13750   if test -z "$ac_t"; then
13751     break
13752   elif $ac_last_try; then
13753     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13754   else
13755     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13756   fi
13757 done
13758
13759 # For the awk script, D is an array of macro values keyed by name,
13760 # likewise P contains macro parameters if any.  Preserve backslash
13761 # newline sequences.
13762
13763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13764 sed -n '
13765 s/.\{148\}/&'"$ac_delim"'/g
13766 t rset
13767 :rset
13768 s/^[     ]*#[    ]*define[       ][      ]*/ /
13769 t def
13770 d
13771 :def
13772 s/\\$//
13773 t bsnl
13774 s/["\\]/\\&/g
13775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13776 D["\1"]=" \3"/p
13777 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13778 d
13779 :bsnl
13780 s/["\\]/\\&/g
13781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13782 D["\1"]=" \3\\\\\\n"\\/p
13783 t cont
13784 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13785 t cont
13786 d
13787 :cont
13788 n
13789 s/.\{148\}/&'"$ac_delim"'/g
13790 t clear
13791 :clear
13792 s/\\$//
13793 t bsnlc
13794 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13795 d
13796 :bsnlc
13797 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13798 b cont
13799 ' <confdefs.h | sed '
13800 s/'"$ac_delim"'/"\\\
13801 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13802
13803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804   for (key in D) D_is_set[key] = 1
13805   FS = "\a"
13806 }
13807 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13808   line = \$ 0
13809   split(line, arg, " ")
13810   if (arg[1] == "#") {
13811     defundef = arg[2]
13812     mac1 = arg[3]
13813   } else {
13814     defundef = substr(arg[1], 2)
13815     mac1 = arg[2]
13816   }
13817   split(mac1, mac2, "(") #)
13818   macro = mac2[1]
13819   prefix = substr(line, 1, index(line, defundef) - 1)
13820   if (D_is_set[macro]) {
13821     # Preserve the white space surrounding the "#".
13822     print prefix "define", macro P[macro] D[macro]
13823     next
13824   } else {
13825     # Replace #undef with comments.  This is necessary, for example,
13826     # in the case of _POSIX_SOURCE, which is predefined and required
13827     # on some systems where configure will not decide to define it.
13828     if (defundef == "undef") {
13829       print "/*", prefix defundef, macro, "*/"
13830       next
13831     }
13832   }
13833 }
13834 { print }
13835 _ACAWK
13836 _ACEOF
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13839 fi # test -n "$CONFIG_HEADERS"
13840
13841
13842 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13843 shift
13844 for ac_tag
13845 do
13846   case $ac_tag in
13847   :[FHLC]) ac_mode=$ac_tag; continue;;
13848   esac
13849   case $ac_mode$ac_tag in
13850   :[FHL]*:*);;
13851   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13852   :[FH]-) ac_tag=-:-;;
13853   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13854   esac
13855   ac_save_IFS=$IFS
13856   IFS=:
13857   set x $ac_tag
13858   IFS=$ac_save_IFS
13859   shift
13860   ac_file=$1
13861   shift
13862
13863   case $ac_mode in
13864   :L) ac_source=$1;;
13865   :[FH])
13866     ac_file_inputs=
13867     for ac_f
13868     do
13869       case $ac_f in
13870       -) ac_f="$tmp/stdin";;
13871       *) # Look for the file first in the build tree, then in the source tree
13872          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13873          # because $ac_f cannot contain `:'.
13874          test -f "$ac_f" ||
13875            case $ac_f in
13876            [\\/$]*) false;;
13877            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13878            esac ||
13879            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13880       esac
13881       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13882       as_fn_append ac_file_inputs " '$ac_f'"
13883     done
13884
13885     # Let's still pretend it is `configure' which instantiates (i.e., don't
13886     # use $as_me), people would be surprised to read:
13887     #    /* config.h.  Generated by config.status.  */
13888     configure_input='Generated from '`
13889           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13890         `' by configure.'
13891     if test x"$ac_file" != x-; then
13892       configure_input="$ac_file.  $configure_input"
13893       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13894 $as_echo "$as_me: creating $ac_file" >&6;}
13895     fi
13896     # Neutralize special characters interpreted by sed in replacement strings.
13897     case $configure_input in #(
13898     *\&* | *\|* | *\\* )
13899        ac_sed_conf_input=`$as_echo "$configure_input" |
13900        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13901     *) ac_sed_conf_input=$configure_input;;
13902     esac
13903
13904     case $ac_tag in
13905     *:-:* | *:-) cat >"$tmp/stdin" \
13906       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
13907     esac
13908     ;;
13909   esac
13910
13911   ac_dir=`$as_dirname -- "$ac_file" ||
13912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13913          X"$ac_file" : 'X\(//\)[^/]' \| \
13914          X"$ac_file" : 'X\(//\)$' \| \
13915          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13916 $as_echo X"$ac_file" |
13917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13918             s//\1/
13919             q
13920           }
13921           /^X\(\/\/\)[^/].*/{
13922             s//\1/
13923             q
13924           }
13925           /^X\(\/\/\)$/{
13926             s//\1/
13927             q
13928           }
13929           /^X\(\/\).*/{
13930             s//\1/
13931             q
13932           }
13933           s/.*/./; q'`
13934   as_dir="$ac_dir"; as_fn_mkdir_p
13935   ac_builddir=.
13936
13937 case "$ac_dir" in
13938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13939 *)
13940   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13941   # A ".." for each directory in $ac_dir_suffix.
13942   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13943   case $ac_top_builddir_sub in
13944   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13945   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13946   esac ;;
13947 esac
13948 ac_abs_top_builddir=$ac_pwd
13949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13950 # for backward compatibility:
13951 ac_top_builddir=$ac_top_build_prefix
13952
13953 case $srcdir in
13954   .)  # We are building in place.
13955     ac_srcdir=.
13956     ac_top_srcdir=$ac_top_builddir_sub
13957     ac_abs_top_srcdir=$ac_pwd ;;
13958   [\\/]* | ?:[\\/]* )  # Absolute name.
13959     ac_srcdir=$srcdir$ac_dir_suffix;
13960     ac_top_srcdir=$srcdir
13961     ac_abs_top_srcdir=$srcdir ;;
13962   *) # Relative name.
13963     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13964     ac_top_srcdir=$ac_top_build_prefix$srcdir
13965     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13966 esac
13967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13968
13969
13970   case $ac_mode in
13971   :F)
13972   #
13973   # CONFIG_FILE
13974   #
13975
13976   case $INSTALL in
13977   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13978   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13979   esac
13980   ac_MKDIR_P=$MKDIR_P
13981   case $MKDIR_P in
13982   [\\/$]* | ?:[\\/]* ) ;;
13983   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13984   esac
13985 _ACEOF
13986
13987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13988 # If the template does not know about datarootdir, expand it.
13989 # FIXME: This hack should be removed a few years after 2.60.
13990 ac_datarootdir_hack=; ac_datarootdir_seen=
13991 ac_sed_dataroot='
13992 /datarootdir/ {
13993   p
13994   q
13995 }
13996 /@datadir@/p
13997 /@docdir@/p
13998 /@infodir@/p
13999 /@localedir@/p
14000 /@mandir@/p'
14001 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14002 *datarootdir*) ac_datarootdir_seen=yes;;
14003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14005 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14006 _ACEOF
14007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14008   ac_datarootdir_hack='
14009   s&@datadir@&$datadir&g
14010   s&@docdir@&$docdir&g
14011   s&@infodir@&$infodir&g
14012   s&@localedir@&$localedir&g
14013   s&@mandir@&$mandir&g
14014   s&\\\${datarootdir}&$datarootdir&g' ;;
14015 esac
14016 _ACEOF
14017
14018 # Neutralize VPATH when `$srcdir' = `.'.
14019 # Shell code in configure.ac might set extrasub.
14020 # FIXME: do we really want to maintain this feature?
14021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022 ac_sed_extra="$ac_vpsub
14023 $extrasub
14024 _ACEOF
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14026 :t
14027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14028 s|@configure_input@|$ac_sed_conf_input|;t t
14029 s&@top_builddir@&$ac_top_builddir_sub&;t t
14030 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14031 s&@srcdir@&$ac_srcdir&;t t
14032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14033 s&@top_srcdir@&$ac_top_srcdir&;t t
14034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14035 s&@builddir@&$ac_builddir&;t t
14036 s&@abs_builddir@&$ac_abs_builddir&;t t
14037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14038 s&@INSTALL@&$ac_INSTALL&;t t
14039 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14040 $ac_datarootdir_hack
14041 "
14042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14043   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14044
14045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14046   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14047   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14048   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14049 which seems to be undefined.  Please make sure it is defined" >&5
14050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14051 which seems to be undefined.  Please make sure it is defined" >&2;}
14052
14053   rm -f "$tmp/stdin"
14054   case $ac_file in
14055   -) cat "$tmp/out" && rm -f "$tmp/out";;
14056   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14057   esac \
14058   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14059  ;;
14060   :H)
14061   #
14062   # CONFIG_HEADER
14063   #
14064   if test x"$ac_file" != x-; then
14065     {
14066       $as_echo "/* $configure_input  */" \
14067       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14068     } >"$tmp/config.h" \
14069       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14070     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14071       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14073     else
14074       rm -f "$ac_file"
14075       mv "$tmp/config.h" "$ac_file" \
14076         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14077     fi
14078   else
14079     $as_echo "/* $configure_input  */" \
14080       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14081       || as_fn_error $? "could not create -" "$LINENO" 5
14082   fi
14083 # Compute "$ac_file"'s index in $config_headers.
14084 _am_arg="$ac_file"
14085 _am_stamp_count=1
14086 for _am_header in $config_headers :; do
14087   case $_am_header in
14088     $_am_arg | $_am_arg:* )
14089       break ;;
14090     * )
14091       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14092   esac
14093 done
14094 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14095 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14096          X"$_am_arg" : 'X\(//\)[^/]' \| \
14097          X"$_am_arg" : 'X\(//\)$' \| \
14098          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14099 $as_echo X"$_am_arg" |
14100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14101             s//\1/
14102             q
14103           }
14104           /^X\(\/\/\)[^/].*/{
14105             s//\1/
14106             q
14107           }
14108           /^X\(\/\/\)$/{
14109             s//\1/
14110             q
14111           }
14112           /^X\(\/\).*/{
14113             s//\1/
14114             q
14115           }
14116           s/.*/./; q'`/stamp-h$_am_stamp_count
14117  ;;
14118
14119   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14120 $as_echo "$as_me: executing $ac_file commands" >&6;}
14121  ;;
14122   esac
14123
14124
14125   case $ac_file$ac_mode in
14126     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14127   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14128   # are listed without --file.  Let's play safe and only enable the eval
14129   # if we detect the quoting.
14130   case $CONFIG_FILES in
14131   *\'*) eval set x "$CONFIG_FILES" ;;
14132   *)   set x $CONFIG_FILES ;;
14133   esac
14134   shift
14135   for mf
14136   do
14137     # Strip MF so we end up with the name of the file.
14138     mf=`echo "$mf" | sed -e 's/:.*$//'`
14139     # Check whether this is an Automake generated Makefile or not.
14140     # We used to match only the files named `Makefile.in', but
14141     # some people rename them; so instead we look at the file content.
14142     # Grep'ing the first line is not enough: some people post-process
14143     # each Makefile.in and add a new line on top of each file to say so.
14144     # Grep'ing the whole file is not good either: AIX grep has a line
14145     # limit of 2048, but all sed's we know have understand at least 4000.
14146     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14147       dirpart=`$as_dirname -- "$mf" ||
14148 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14149          X"$mf" : 'X\(//\)[^/]' \| \
14150          X"$mf" : 'X\(//\)$' \| \
14151          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14152 $as_echo X"$mf" |
14153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14154             s//\1/
14155             q
14156           }
14157           /^X\(\/\/\)[^/].*/{
14158             s//\1/
14159             q
14160           }
14161           /^X\(\/\/\)$/{
14162             s//\1/
14163             q
14164           }
14165           /^X\(\/\).*/{
14166             s//\1/
14167             q
14168           }
14169           s/.*/./; q'`
14170     else
14171       continue
14172     fi
14173     # Extract the definition of DEPDIR, am__include, and am__quote
14174     # from the Makefile without running `make'.
14175     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14176     test -z "$DEPDIR" && continue
14177     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14178     test -z "am__include" && continue
14179     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14180     # When using ansi2knr, U may be empty or an underscore; expand it
14181     U=`sed -n 's/^U = //p' < "$mf"`
14182     # Find all dependency output files, they are included files with
14183     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14184     # simplest approach to changing $(DEPDIR) to its actual value in the
14185     # expansion.
14186     for file in `sed -n "
14187       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14188          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14189       # Make sure the directory exists.
14190       test -f "$dirpart/$file" && continue
14191       fdir=`$as_dirname -- "$file" ||
14192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14193          X"$file" : 'X\(//\)[^/]' \| \
14194          X"$file" : 'X\(//\)$' \| \
14195          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14196 $as_echo X"$file" |
14197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14198             s//\1/
14199             q
14200           }
14201           /^X\(\/\/\)[^/].*/{
14202             s//\1/
14203             q
14204           }
14205           /^X\(\/\/\)$/{
14206             s//\1/
14207             q
14208           }
14209           /^X\(\/\).*/{
14210             s//\1/
14211             q
14212           }
14213           s/.*/./; q'`
14214       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14215       # echo "creating $dirpart/$file"
14216       echo '# dummy' > "$dirpart/$file"
14217     done
14218   done
14219 }
14220  ;;
14221     "libtool":C)
14222
14223     # See if we are running on zsh, and set the options which allow our
14224     # commands through without removal of \ escapes.
14225     if test -n "${ZSH_VERSION+set}" ; then
14226       setopt NO_GLOB_SUBST
14227     fi
14228
14229     cfgfile="${ofile}T"
14230     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14231     $RM "$cfgfile"
14232
14233     cat <<_LT_EOF >> "$cfgfile"
14234 #! $SHELL
14235
14236 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14237 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14239 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14240 #
14241 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14242 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14243 #   Written by Gordon Matzigkeit, 1996
14244 #
14245 #   This file is part of GNU Libtool.
14246 #
14247 # GNU Libtool is free software; you can redistribute it and/or
14248 # modify it under the terms of the GNU General Public License as
14249 # published by the Free Software Foundation; either version 2 of
14250 # the License, or (at your option) any later version.
14251 #
14252 # As a special exception to the GNU General Public License,
14253 # if you distribute this file as part of a program or library that
14254 # is built using GNU Libtool, you may include this file under the
14255 # same distribution terms that you use for the rest of that program.
14256 #
14257 # GNU Libtool is distributed in the hope that it will be useful,
14258 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14260 # GNU General Public License for more details.
14261 #
14262 # You should have received a copy of the GNU General Public License
14263 # along with GNU Libtool; see the file COPYING.  If not, a copy
14264 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14265 # obtained by writing to the Free Software Foundation, Inc.,
14266 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14267
14268
14269 # The names of the tagged configurations supported by this script.
14270 available_tags=""
14271
14272 # ### BEGIN LIBTOOL CONFIG
14273
14274 # Which release of libtool.m4 was used?
14275 macro_version=$macro_version
14276 macro_revision=$macro_revision
14277
14278 # Whether or not to build shared libraries.
14279 build_libtool_libs=$enable_shared
14280
14281 # Whether or not to build static libraries.
14282 build_old_libs=$enable_static
14283
14284 # What type of objects to build.
14285 pic_mode=$pic_mode
14286
14287 # Whether or not to optimize for fast installation.
14288 fast_install=$enable_fast_install
14289
14290 # The host system.
14291 host_alias=$host_alias
14292 host=$host
14293 host_os=$host_os
14294
14295 # The build system.
14296 build_alias=$build_alias
14297 build=$build
14298 build_os=$build_os
14299
14300 # A sed program that does not truncate output.
14301 SED=$lt_SED
14302
14303 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14304 Xsed="\$SED -e 1s/^X//"
14305
14306 # A grep program that handles long lines.
14307 GREP=$lt_GREP
14308
14309 # An ERE matcher.
14310 EGREP=$lt_EGREP
14311
14312 # A literal string matcher.
14313 FGREP=$lt_FGREP
14314
14315 # A BSD- or MS-compatible name lister.
14316 NM=$lt_NM
14317
14318 # Whether we need soft or hard links.
14319 LN_S=$lt_LN_S
14320
14321 # What is the maximum length of a command?
14322 max_cmd_len=$max_cmd_len
14323
14324 # Object file suffix (normally "o").
14325 objext=$ac_objext
14326
14327 # Executable file suffix (normally "").
14328 exeext=$exeext
14329
14330 # whether the shell understands "unset".
14331 lt_unset=$lt_unset
14332
14333 # turn spaces into newlines.
14334 SP2NL=$lt_lt_SP2NL
14335
14336 # turn newlines into spaces.
14337 NL2SP=$lt_lt_NL2SP
14338
14339 # How to create reloadable object files.
14340 reload_flag=$lt_reload_flag
14341 reload_cmds=$lt_reload_cmds
14342
14343 # An object symbol dumper.
14344 OBJDUMP=$lt_OBJDUMP
14345
14346 # Method to check whether dependent libraries are shared objects.
14347 deplibs_check_method=$lt_deplibs_check_method
14348
14349 # Command to use when deplibs_check_method == "file_magic".
14350 file_magic_cmd=$lt_file_magic_cmd
14351
14352 # The archiver.
14353 AR=$lt_AR
14354 AR_FLAGS=$lt_AR_FLAGS
14355
14356 # A symbol stripping program.
14357 STRIP=$lt_STRIP
14358
14359 # Commands used to install an old-style archive.
14360 RANLIB=$lt_RANLIB
14361 old_postinstall_cmds=$lt_old_postinstall_cmds
14362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14363
14364 # A C compiler.
14365 LTCC=$lt_CC
14366
14367 # LTCC compiler flags.
14368 LTCFLAGS=$lt_CFLAGS
14369
14370 # Take the output of nm and produce a listing of raw symbols and C names.
14371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14372
14373 # Transform the output of nm in a proper C declaration.
14374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14375
14376 # Transform the output of nm in a C name address pair.
14377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14378
14379 # Transform the output of nm in a C name address pair when lib prefix is needed.
14380 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14381
14382 # The name of the directory that contains temporary libtool files.
14383 objdir=$objdir
14384
14385 # Shell to use when invoking shell scripts.
14386 SHELL=$lt_SHELL
14387
14388 # An echo program that does not interpret backslashes.
14389 ECHO=$lt_ECHO
14390
14391 # Used to examine libraries when file_magic_cmd begins with "file".
14392 MAGIC_CMD=$MAGIC_CMD
14393
14394 # Must we lock files when doing compilation?
14395 need_locks=$lt_need_locks
14396
14397 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14398 DSYMUTIL=$lt_DSYMUTIL
14399
14400 # Tool to change global to local symbols on Mac OS X.
14401 NMEDIT=$lt_NMEDIT
14402
14403 # Tool to manipulate fat objects and archives on Mac OS X.
14404 LIPO=$lt_LIPO
14405
14406 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14407 OTOOL=$lt_OTOOL
14408
14409 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14410 OTOOL64=$lt_OTOOL64
14411
14412 # Old archive suffix (normally "a").
14413 libext=$libext
14414
14415 # Shared library suffix (normally ".so").
14416 shrext_cmds=$lt_shrext_cmds
14417
14418 # The commands to extract the exported symbol list from a shared archive.
14419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14420
14421 # Variables whose values should be saved in libtool wrapper scripts and
14422 # restored at link time.
14423 variables_saved_for_relink=$lt_variables_saved_for_relink
14424
14425 # Do we need the "lib" prefix for modules?
14426 need_lib_prefix=$need_lib_prefix
14427
14428 # Do we need a version for libraries?
14429 need_version=$need_version
14430
14431 # Library versioning type.
14432 version_type=$version_type
14433
14434 # Shared library runtime path variable.
14435 runpath_var=$runpath_var
14436
14437 # Shared library path variable.
14438 shlibpath_var=$shlibpath_var
14439
14440 # Is shlibpath searched before the hard-coded library search path?
14441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14442
14443 # Format of library name prefix.
14444 libname_spec=$lt_libname_spec
14445
14446 # List of archive names.  First name is the real one, the rest are links.
14447 # The last name is the one that the linker finds with -lNAME
14448 library_names_spec=$lt_library_names_spec
14449
14450 # The coded name of the library, if different from the real name.
14451 soname_spec=$lt_soname_spec
14452
14453 # Command to use after installation of a shared archive.
14454 postinstall_cmds=$lt_postinstall_cmds
14455
14456 # Command to use after uninstallation of a shared archive.
14457 postuninstall_cmds=$lt_postuninstall_cmds
14458
14459 # Commands used to finish a libtool library installation in a directory.
14460 finish_cmds=$lt_finish_cmds
14461
14462 # As "finish_cmds", except a single script fragment to be evaled but
14463 # not shown.
14464 finish_eval=$lt_finish_eval
14465
14466 # Whether we should hardcode library paths into libraries.
14467 hardcode_into_libs=$hardcode_into_libs
14468
14469 # Compile-time system search path for libraries.
14470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14471
14472 # Run-time system search path for libraries.
14473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14474
14475 # Whether dlopen is supported.
14476 dlopen_support=$enable_dlopen
14477
14478 # Whether dlopen of programs is supported.
14479 dlopen_self=$enable_dlopen_self
14480
14481 # Whether dlopen of statically linked programs is supported.
14482 dlopen_self_static=$enable_dlopen_self_static
14483
14484 # Commands to strip libraries.
14485 old_striplib=$lt_old_striplib
14486 striplib=$lt_striplib
14487
14488
14489 # The linker used to build libraries.
14490 LD=$lt_LD
14491
14492 # Commands used to build an old-style archive.
14493 old_archive_cmds=$lt_old_archive_cmds
14494
14495 # A language specific compiler.
14496 CC=$lt_compiler
14497
14498 # Is the compiler the GNU compiler?
14499 with_gcc=$GCC
14500
14501 # Compiler flag to turn off builtin functions.
14502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14503
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14506
14507 # Additional compiler flags for building library objects.
14508 pic_flag=$lt_lt_prog_compiler_pic
14509
14510 # Compiler flag to prevent dynamic linking.
14511 link_static_flag=$lt_lt_prog_compiler_static
14512
14513 # Does compiler simultaneously support -c and -o options?
14514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14515
14516 # Whether or not to add -lc for building shared libraries.
14517 build_libtool_need_lc=$archive_cmds_need_lc
14518
14519 # Whether or not to disallow shared libs when runtime libs are static.
14520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14521
14522 # Compiler flag to allow reflexive dlopens.
14523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14524
14525 # Compiler flag to generate shared objects directly from archives.
14526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14527
14528 # Whether the compiler copes with passing no objects directly.
14529 compiler_needs_object=$lt_compiler_needs_object
14530
14531 # Create an old-style archive from a shared archive.
14532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14533
14534 # Create a temporary old-style archive to link instead of a shared archive.
14535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14536
14537 # Commands used to build a shared archive.
14538 archive_cmds=$lt_archive_cmds
14539 archive_expsym_cmds=$lt_archive_expsym_cmds
14540
14541 # Commands used to build a loadable module if different from building
14542 # a shared archive.
14543 module_cmds=$lt_module_cmds
14544 module_expsym_cmds=$lt_module_expsym_cmds
14545
14546 # Whether we are building with GNU ld or not.
14547 with_gnu_ld=$lt_with_gnu_ld
14548
14549 # Flag that allows shared libraries with undefined symbols to be built.
14550 allow_undefined_flag=$lt_allow_undefined_flag
14551
14552 # Flag that enforces no undefined symbols.
14553 no_undefined_flag=$lt_no_undefined_flag
14554
14555 # Flag to hardcode \$libdir into a binary during linking.
14556 # This must work even if \$libdir does not exist
14557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14558
14559 # If ld is used when linking, flag to hardcode \$libdir into a binary
14560 # during linking.  This must work even if \$libdir does not exist.
14561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14562
14563 # Whether we need a single "-rpath" flag with a separated argument.
14564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14565
14566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567 # DIR into the resulting binary.
14568 hardcode_direct=$hardcode_direct
14569
14570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14571 # DIR into the resulting binary and the resulting library dependency is
14572 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14573 # library is relocated.
14574 hardcode_direct_absolute=$hardcode_direct_absolute
14575
14576 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14577 # into the resulting binary.
14578 hardcode_minus_L=$hardcode_minus_L
14579
14580 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14581 # into the resulting binary.
14582 hardcode_shlibpath_var=$hardcode_shlibpath_var
14583
14584 # Set to "yes" if building a shared library automatically hardcodes DIR
14585 # into the library and all subsequent libraries and executables linked
14586 # against it.
14587 hardcode_automatic=$hardcode_automatic
14588
14589 # Set to yes if linker adds runtime paths of dependent libraries
14590 # to runtime path list.
14591 inherit_rpath=$inherit_rpath
14592
14593 # Whether libtool must link a program against all its dependency libraries.
14594 link_all_deplibs=$link_all_deplibs
14595
14596 # Fix the shell variable \$srcfile for the compiler.
14597 fix_srcfile_path=$lt_fix_srcfile_path
14598
14599 # Set to "yes" if exported symbols are required.
14600 always_export_symbols=$always_export_symbols
14601
14602 # The commands to list exported symbols.
14603 export_symbols_cmds=$lt_export_symbols_cmds
14604
14605 # Symbols that should not be listed in the preloaded symbols.
14606 exclude_expsyms=$lt_exclude_expsyms
14607
14608 # Symbols that must always be exported.
14609 include_expsyms=$lt_include_expsyms
14610
14611 # Commands necessary for linking programs (against libraries) with templates.
14612 prelink_cmds=$lt_prelink_cmds
14613
14614 # Specify filename containing input files.
14615 file_list_spec=$lt_file_list_spec
14616
14617 # How to hardcode a shared library path into an executable.
14618 hardcode_action=$hardcode_action
14619
14620 # ### END LIBTOOL CONFIG
14621
14622 _LT_EOF
14623
14624   case $host_os in
14625   aix3*)
14626     cat <<\_LT_EOF >> "$cfgfile"
14627 # AIX sometimes has problems with the GCC collect2 program.  For some
14628 # reason, if we set the COLLECT_NAMES environment variable, the problems
14629 # vanish in a puff of smoke.
14630 if test "X${COLLECT_NAMES+set}" != Xset; then
14631   COLLECT_NAMES=
14632   export COLLECT_NAMES
14633 fi
14634 _LT_EOF
14635     ;;
14636   esac
14637
14638
14639 ltmain="$ac_aux_dir/ltmain.sh"
14640
14641
14642   # We use sed instead of cat because bash on DJGPP gets confused if
14643   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14644   # text mode, it properly converts lines to CR/LF.  This bash problem
14645   # is reportedly fixed, but why not run on old versions too?
14646   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14647     || (rm -f "$cfgfile"; exit 1)
14648
14649   case $xsi_shell in
14650   yes)
14651     cat << \_LT_EOF >> "$cfgfile"
14652
14653 # func_dirname file append nondir_replacement
14654 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14655 # otherwise set result to NONDIR_REPLACEMENT.
14656 func_dirname ()
14657 {
14658   case ${1} in
14659     */*) func_dirname_result="${1%/*}${2}" ;;
14660     *  ) func_dirname_result="${3}" ;;
14661   esac
14662 }
14663
14664 # func_basename file
14665 func_basename ()
14666 {
14667   func_basename_result="${1##*/}"
14668 }
14669
14670 # func_dirname_and_basename file append nondir_replacement
14671 # perform func_basename and func_dirname in a single function
14672 # call:
14673 #   dirname:  Compute the dirname of FILE.  If nonempty,
14674 #             add APPEND to the result, otherwise set result
14675 #             to NONDIR_REPLACEMENT.
14676 #             value returned in "$func_dirname_result"
14677 #   basename: Compute filename of FILE.
14678 #             value retuned in "$func_basename_result"
14679 # Implementation must be kept synchronized with func_dirname
14680 # and func_basename. For efficiency, we do not delegate to
14681 # those functions but instead duplicate the functionality here.
14682 func_dirname_and_basename ()
14683 {
14684   case ${1} in
14685     */*) func_dirname_result="${1%/*}${2}" ;;
14686     *  ) func_dirname_result="${3}" ;;
14687   esac
14688   func_basename_result="${1##*/}"
14689 }
14690
14691 # func_stripname prefix suffix name
14692 # strip PREFIX and SUFFIX off of NAME.
14693 # PREFIX and SUFFIX must not contain globbing or regex special
14694 # characters, hashes, percent signs, but SUFFIX may contain a leading
14695 # dot (in which case that matches only a dot).
14696 func_stripname ()
14697 {
14698   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14699   # positional parameters, so assign one to ordinary parameter first.
14700   func_stripname_result=${3}
14701   func_stripname_result=${func_stripname_result#"${1}"}
14702   func_stripname_result=${func_stripname_result%"${2}"}
14703 }
14704
14705 # func_opt_split
14706 func_opt_split ()
14707 {
14708   func_opt_split_opt=${1%%=*}
14709   func_opt_split_arg=${1#*=}
14710 }
14711
14712 # func_lo2o object
14713 func_lo2o ()
14714 {
14715   case ${1} in
14716     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14717     *)    func_lo2o_result=${1} ;;
14718   esac
14719 }
14720
14721 # func_xform libobj-or-source
14722 func_xform ()
14723 {
14724   func_xform_result=${1%.*}.lo
14725 }
14726
14727 # func_arith arithmetic-term...
14728 func_arith ()
14729 {
14730   func_arith_result=$(( $* ))
14731 }
14732
14733 # func_len string
14734 # STRING may not start with a hyphen.
14735 func_len ()
14736 {
14737   func_len_result=${#1}
14738 }
14739
14740 _LT_EOF
14741     ;;
14742   *) # Bourne compatible functions.
14743     cat << \_LT_EOF >> "$cfgfile"
14744
14745 # func_dirname file append nondir_replacement
14746 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14747 # otherwise set result to NONDIR_REPLACEMENT.
14748 func_dirname ()
14749 {
14750   # Extract subdirectory from the argument.
14751   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14752   if test "X$func_dirname_result" = "X${1}"; then
14753     func_dirname_result="${3}"
14754   else
14755     func_dirname_result="$func_dirname_result${2}"
14756   fi
14757 }
14758
14759 # func_basename file
14760 func_basename ()
14761 {
14762   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14763 }
14764
14765
14766 # func_stripname prefix suffix name
14767 # strip PREFIX and SUFFIX off of NAME.
14768 # PREFIX and SUFFIX must not contain globbing or regex special
14769 # characters, hashes, percent signs, but SUFFIX may contain a leading
14770 # dot (in which case that matches only a dot).
14771 # func_strip_suffix prefix name
14772 func_stripname ()
14773 {
14774   case ${2} in
14775     .*) func_stripname_result=`$ECHO "X${3}" \
14776            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14777     *)  func_stripname_result=`$ECHO "X${3}" \
14778            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14779   esac
14780 }
14781
14782 # sed scripts:
14783 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14784 my_sed_long_arg='1s/^-[^=]*=//'
14785
14786 # func_opt_split
14787 func_opt_split ()
14788 {
14789   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14790   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14791 }
14792
14793 # func_lo2o object
14794 func_lo2o ()
14795 {
14796   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14797 }
14798
14799 # func_xform libobj-or-source
14800 func_xform ()
14801 {
14802   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14803 }
14804
14805 # func_arith arithmetic-term...
14806 func_arith ()
14807 {
14808   func_arith_result=`expr "$@"`
14809 }
14810
14811 # func_len string
14812 # STRING may not start with a hyphen.
14813 func_len ()
14814 {
14815   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14816 }
14817
14818 _LT_EOF
14819 esac
14820
14821 case $lt_shell_append in
14822   yes)
14823     cat << \_LT_EOF >> "$cfgfile"
14824
14825 # func_append var value
14826 # Append VALUE to the end of shell variable VAR.
14827 func_append ()
14828 {
14829   eval "$1+=\$2"
14830 }
14831 _LT_EOF
14832     ;;
14833   *)
14834     cat << \_LT_EOF >> "$cfgfile"
14835
14836 # func_append var value
14837 # Append VALUE to the end of shell variable VAR.
14838 func_append ()
14839 {
14840   eval "$1=\$$1\$2"
14841 }
14842
14843 _LT_EOF
14844     ;;
14845   esac
14846
14847
14848   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14849     || (rm -f "$cfgfile"; exit 1)
14850
14851   mv -f "$cfgfile" "$ofile" ||
14852     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14853   chmod +x "$ofile"
14854
14855  ;;
14856
14857   esac
14858 done # for ac_tag
14859
14860
14861 as_fn_exit 0
14862 _ACEOF
14863 ac_clean_files=$ac_clean_files_save
14864
14865 test $ac_write_fail = 0 ||
14866   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14867
14868
14869 # configure is writing to config.log, and then calls config.status.
14870 # config.status does its own redirection, appending to config.log.
14871 # Unfortunately, on DOS this fails, as config.log is still kept open
14872 # by configure, so config.status won't be able to write to it; its
14873 # output is simply discarded.  So we exec the FD to /dev/null,
14874 # effectively closing config.log, so it can be properly (re)opened and
14875 # appended to by config.status.  When coming back to configure, we
14876 # need to make the FD available again.
14877 if test "$no_create" != yes; then
14878   ac_cs_success=:
14879   ac_config_status_args=
14880   test "$silent" = yes &&
14881     ac_config_status_args="$ac_config_status_args --quiet"
14882   exec 5>/dev/null
14883   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14884   exec 5>>config.log
14885   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14886   # would make configure fail if this is the last instruction.
14887   $ac_cs_success || as_fn_exit 1
14888 fi
14889 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14890   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14891 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14892 fi
14893